]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Fix application of default-frame-alist (Bug#5378).
[gnu-emacs] / src / ChangeLog
1 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4 check default-frame-alist.
5
6 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7
8 * process.c (create_process): Avoid using invalid file descriptors.
9
10 * callproc.c (child_setup): Avoid closing a file descriptor twice.
11
12 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
13
14 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
15 Improve documentation. Return font regardless of use_system_font.
16 (syms_of_xsettings): Improve documentation for font-use-system-font.
17
18 2009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
19
20 * xftfont.c (xftfont_open): Check font width one by one also when
21 spacing is dual.
22
23 * ftfont.c (ftfont_open): Ditto.
24
25 2010-06-30 Glenn Morris <rgm@gnu.org>
26
27 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
28
29 * Makefile.in (CANNOT_DUMP): Update for configure name change.
30
31 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
32 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
33 * s/darwin.h (SYSTEM_MALLOC):
34 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
35
36 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
37
38 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
39 (ns_get_screen): Don't assign integer to f.
40 (Fx_display_color_cells): Declarations before statements.
41
42 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
43
44 * xfns.c (x_default_font_parameter): Remove got_from_system
45 (Bug#6526).
46
47 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
48 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
49 defines based on what configure finds.
50
51 * xterm.c (XTflash): Use gtk_widget_get_window.
52 (xg_scroll_callback): Use gtk_adjustment_get_upper and
53 gtk_adjustment_get_page_size.
54 (handle_one_xevent): Use gtk_widget_get_mapped.
55 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
56 messages.
57
58 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
59
60 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
61 HAVE_GTK_FILE_SELECTION_NEW.
62
63 * gtkutil.c (xg_display_open, xg_display_close): Remove
64 HAVE_GTK_MULTIDISPLAY, it is always defined.
65 (xg_display_open): Return type is void.
66 (gtk_widget_set_has_window)
67 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
68 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
69 (gtk_adjustment_set_page_increment)
70 (gtk_adjustment_get_step_increment): #define these if not found
71 by configure.
72 (remove_submenu): New define based on Gtk+ version.
73 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
74 gtk_widget_get_window.
75 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
76 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
77 (create_dialog): Use gtk_dialog_get_action_area and
78 gtk_dialog_get_content_area.
79 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
80 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
81 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
82 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
83 g_object_ref and g_object_unref.
84 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
85 gtk_widget_get_sensitive.
86 (xg_update_submenu): Use remove_submenu.
87 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
88 properties instead to get old x and y position.
89 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
90 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
91 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
92 (xg_get_tool_bar_widgets): New function.
93 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
94 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
95 (toolbar_set_orientation): New #define based on if configure
96 finds gtk_orientable_set_orientation.
97 (xg_create_tool_bar): Call toolbar_set_orientation.
98 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
99 instead of gtk_box_pack_start_defaults.
100
101 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
102
103 * cmds.c (Fdelete_backward_char): Move into Lisp.
104
105 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
106
107 * s/freebsd.h (BSD4_2): Remove redundant definition.
108 bsd-common.h defines it already.
109
110 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
111
112 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
113 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
114 tool-bar-mode, which are now set using these X resources at
115 startup, to determine the defaults (Bug#2249).
116
117 * w32fns.c (Fx_create_frame):
118 * nsfns.m (Fx_create_frame): Likewise.
119
120 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
121
122 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
123
124 * gtkutil.c (xg_update_scrollbar_pos):
125 Avoid C99 mid-block variable declaration.
126
127 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
128
129 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
130
131 * gtkutil.h (xg_show_scroll_bar): Remove.
132
133 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
134 if height is less than scroll bar min size.
135 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
136
137 * xfns.c (x_default_font_parameter): Try to open font from system
138 before using it (bug#6478). Rename got_from_gconf to got_from_system.
139
140 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
141
142 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
143
144 2010-06-20 Eli Zaretskii <eliz@gnu.org>
145
146 * xdisp.c (try_scrolling): When scroll-conservatively is set to
147 most-positive-fixnum, be extra accurate when scrolling window
148 start, to avoid missing the cursor line.
149
150 2010-06-19 Eli Zaretskii <eliz@gnu.org>
151
152 * xdisp.c (try_scrolling): Compute the limit for searching point
153 in forward scroll from scroll_max, instead of an arbitrary limit
154 of 10 screen lines. See
155 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
156 and
157 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
158 for details.
159
160 2010-06-16 Glenn Morris <rgm@gnu.org>
161
162 * editfns.c (Fbyte_to_string): Pacify compiler.
163
164 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
165
166 * lread.c (read1): Phase out old-style backquotes a bit more.
167
168 2010-06-12 Eli Zaretskii <eliz@gnu.org>
169
170 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
171 bidimirror.h.
172
173 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
174
175 * bidi.c (bidi_initialize): Remove explicit initialization of
176 bidi_type_table; include biditype.h instead. Don't support
177 entries whose second codepoint is zero. Initialize bidi_mirror_table.
178 (bidi_mirror_char): Use bidi_mirror_table.
179
180 * biditype.h: New file.
181
182 * bidimirror.h: New file.
183
184 * window.c (syms_of_window): Doc fix (bug#6409).
185
186 2010-06-12 Romain Francoise <romain@orebokech.com>
187
188 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
189 ediff-hook.
190
191 2010-06-10 Glenn Morris <rgm@gnu.org>
192
193 * editfns.c (Fbyte_to_string): Pacify compiler.
194
195 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
196
197 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
198
199 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
200 Check `object's type before accessing its guts.
201
202 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
203
204 * s/usg5-4.h: Fix previous change.
205 Suggested by Lawrence Mitchell <wence@gmx.li>
206
207 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
208
209 * minibuf.c (Fall_completions): Add more checks.
210
211 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
212
213 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
214
215 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
216
217 * lread.c (X_OK): Remove, unused.
218
219 * dispnew.c: Remove obsolete comment.
220
221 Remove INCLUDED_FCNTL.
222 * xterm.c (INCLUDED_FCNTL):
223 * callproc.c (INCLUDED_FCNTL):
224 * alloc.c (INCLUDED_FCNTL):
225 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
226 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
227
228 2010-06-07 Martin Rudalics <rudalics@gmx.at>
229
230 * window.c (Fselect_window): Move `record_buffer' up to the
231 beginning of this function, so the buffer gets recorded
232 even if the selected window does not change.
233 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
234
235 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
236
237 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
238 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
239
240 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
241
242 Remove BSTRING related code, all platforms define it.
243 * s/usg5-4.h (BSTRING): Remove definition.
244 * s/template.h (BSTRING):
245 * s/msdos.h (BSTRING):
246 * s/ms-w32.h (BSTRING):
247 * s/hpux10-20.h (BSTRING):
248 * s/gnu-linux.h (BSTRING):
249 * s/darwin.h (BSTRING):
250 * s/cygwin.h (BSTRING):
251 * s/bsd-common.h (BSTRING):
252 * s/aix4-2.h (BSTRING): Likewise.
253 * sysdep.c: Remove code depending on BSTRING not being defined.
254
255 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
256
257 Remove obsolete macro BASE_LEADING_CODE_P.
258 * character.h (BASE_LEADING_CODE_P): Remove.
259 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
260 * buffer.c (Fset_buffer_multibyte):
261 * indent.c (scan_for_column, compute_motion):
262 * insdel.c (count_combining_before, count_combining_after):
263 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
264
265 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
266
267 Turn `directory-sep-char' into a noop.
268
269 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
270 (DIRECTORY_SEP): Define unconditionally.
271
272 * s/ms-w32.h (DIRECTORY_SEP): Remove.
273
274 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
275 call dostounix_filename directly.
276
277 * fileio.c (CORRECT_DIR_SEPS): Remove.
278 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
279 (Fsubstitute_in_file_name): Use dostounix_filename instead.
280 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
281 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
282
283 * w32proc.c (CORRECT_DIR_SEPS): Remove.
284 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
285
286 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
287
288 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
289 address. (Bug#6346)
290
291 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
292
293 * ccl.c (Fccl_program_p): Fix typo in docstring.
294
295 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
296
297 Move UNEXEC definition to autoconf.
298 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
299 * s/sol2-10.h (UNEXEC):
300 * s/irix6-5.h (UNEXEC):
301 * s/hpux10-20.h (UNEXEC):
302 * s/gnu-linux.h (UNEXEC):
303 * s/darwin.h (UNEXEC):
304 * s/cygwin.h (UNEXEC):
305 * s/bsd-common.h (UNEXEC):
306 * s/aix4-2.h (UNEXEC):
307 * m/alpha.h (UNEXEC): Likewise.
308 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
309
310 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
311
312 Remove obsolete pre-unicode2 macros.
313 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
314 * composite.c (composition_reseat_it):
315 * data.c (Faset):
316 * fns.c (Ffillarray):
317 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
318 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
319
320 2010-06-03 Juri Linkov <juri@jurta.org>
321
322 * buffer.c (Fother_buffer): Add CHECK_FRAME.
323 (Fswitch_to_buffer): Remove unused variable `err'.
324
325 2010-06-03 Glenn Morris <rgm@gnu.org>
326
327 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
328
329 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
330 now that AH_BOTTOM does it.
331
332 * m/hp800.h (HAVE_ALLOCA):
333 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
334
335 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
336 Remove NOT_C_CODE tests, it is always true now.
337
338 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
339
340 Fix config.h includes.
341 * xsettings.c:
342 * xgselect.c:
343 * nsterm.m:
344 * nsselect.m:
345 * nsimage.m:
346 * nsfont.m:
347 * nsfns.m:
348 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
349 other files do.
350
351 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
352
353 * s/sol2-6.h: Remove obsolete comments.
354
355 Remove unnecessary alloca.h includes.
356 * keymap.c: Do not include alloca.h, config.h does that.
357 * sysdep.c: Likewise. Do not define fwrite, not used.
358
359 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
360
361 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
362 the HAVE_TERMIO where it belongs (bug#6149).
363
364 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
365
366 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
367 of bug#6305).
368
369 2010-05-30 Eli Zaretskii <eliz@gnu.org>
370
371 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
372 state is always cached (bug#6306).
373
374 2010-05-29 Eli Zaretskii <eliz@gnu.org>
375
376 Fix cursor motion in bidi-reordered continued lines.
377 * xdisp.c (try_cursor_movement): Backup to non-continuation line
378 only after finding point's row. Fix the logic. Rewrite the loop
379 over continuation lines in bidi-reordered buffers. Return
380 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
381 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
382
383 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
384
385 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
386
387 2010-05-28 Kenichi Handa <handa@m17n.org>
388
389 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
390 Don't sheck SPEC if it is nil.
391 (font_list_entities): Call font_delete_unmatched if
392 Vface_ignored_fonts is non-nil. (Bug#6287)
393
394 2010-05-28 Glenn Morris <rgm@gnu.org>
395
396 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
397
398 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
399
400 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
401 whether to trash.
402 (internal_delete_file, Frename_file): Callers changed.
403 (delete_by_moving_to_trash): Doc fix.
404 (Fdelete_directory_internal): Don't move to trash.
405
406 * callproc.c (delete_temp_file):
407 * buffer.c (Fkill_buffer): Callers changed.
408
409 * lisp.h: Update prototype.
410
411 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
412
413 * xdisp.c (redisplay_window): After redisplay, check if point is
414 still valid before setting it (Bug#6177).
415
416 2010-05-27 Glenn Morris <rgm@gnu.org>
417
418 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
419 Convert comments to Makefile format.
420
421 * Makefile.in (bootstrap-clean): No more Makefile.c.
422
423 2010-05-26 Glenn Morris <rgm@gnu.org>
424
425 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
426 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
427
428 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
429 Remove.
430 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
431
432 2010-05-26 Kenichi Handa <handa@m17n.org>
433
434 * composite.c (composition_compute_stop_pos): Fix condition for
435 backward scanning.
436
437 2010-05-25 Glenn Morris <rgm@gnu.org>
438
439 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
440 Move before TEMACS_LDFLAGS.
441 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
442 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
443
444 * Makefile.in (NOT_C_CODE): No longer define.
445 (config.h): No longer include.
446
447 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
448 variables it may reference.
449
450 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
451 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
452
453 2010-05-25 Kenichi Handa <handa@m17n.org>
454
455 * dispextern.h (struct composition_it): New members rule_idx and
456 charpos.
457
458 * xdisp.c (set_iterator_to_next): While scanning backward, assume
459 that the character positions of IT point the last character of the
460 current grapheme cluster.
461 (next_element_from_composition): Don't change character positions
462 of IT.
463 (append_composite_glyph): Set glyph->charpos to
464 it->cmp_it.charpos.
465
466 * composite.c (autocmp_chars): Change the first argument to RULE,
467 and try composition with RULE only.
468 (composition_compute_stop_pos): Record the index number of the
469 composition rule in CMP_IT->rule_idx.
470 (composition_reseat_it): Call autocmp_chars repeatedly until the
471 correct rule of the composition is found.
472 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
473 is at the last character of the current grapheme cluster when
474 CMP_IT->reversed_p is nonzero.
475
476 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
477
478 * editfns.c (Fbyte_to_string): New function.
479
480 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
481
482 * process.c (Fmake_network_process): Set :host to nil if it's not used.
483 Suggested by Masatake YAMATO <yamato@redhat.com>.
484
485 2010-05-23 Eli Zaretskii <eliz@gnu.org>
486
487 * dispextern.h (init_iterator): Sync prototype with changed definition.
488
489 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
490
491 * s/netbsd.h: If terminfo is found, use it in preference to
492 termcap. (Bug#6190) [Backport from trunk]
493
494 2010-05-19 Eli Zaretskii <eliz@gnu.org>
495
496 Redesign and reimplement bidi-aware edge positions of glyph rows.
497
498 * dispextern.h (struct glyph_row): New members minpos and maxpos.
499 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
500 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
501 and maxpos members instead of start.pos and end.pos, respectively.
502
503 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
504 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
505 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
506 (try_window_reusing_current_matrix, try_window_id):
507 Use ROW->minpos rather than ROW->start.pos.
508 (init_from_display_pos, init_iterator): Use EMACS_INT for
509 character and byte positions.
510 (find_row_edges): Rename from find_row_end. Accept additional
511 arguments for minimum and maximum buffer positions seen by
512 display_line for this row. Don't use iterator to find the
513 position following the maximum one; instead, increment the
514 position found by display_line directly. Fix logic; eol_pos
515 should be tested before the rest. Handle the case of characters
516 delivered from display vector (bug#6036). Fix tests related to
517 it->method. Handle the truncated_on_right_p rows.
518 (RECORD_MAX_MIN_POS): New macro.
519 (display_line): Use it to record the minimum and maximum buffer
520 positions for glyphs in the row being assembled. Record the
521 position of the newline that terminates the line. If word wrap is
522 in effect, restore minimum and maximum positions seen up to the
523 wrap point, when iterator returns to it.
524 (try_window_reusing_current_matrix): Give up if in bidi-reordered
525 row and cursor not already at point. Restore original pre-bidi
526 code for unidirectional buffers.
527
528 * dispnew.c (increment_row_positions, check_matrix_invariants):
529 Increment and check row->start.pos and row->end.pos, in addition
530 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
531
532 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
533 Display truncated_on_left_p and truncated_on_right_p flags.
534 Formatting fixes.
535 (pmtxrows): Display the ordinal number of each row. Don't display
536 rows beyond the last one.
537
538 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
539 it is not copied by bidi_copy_it.
540
541 2010-05-22 Eli Zaretskii <eliz@gnu.org>
542
543 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
544 (Bug#6237)
545
546 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
547
548 * image.c (Fimage_flush): Rename from image-refresh.
549
550 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
551
552 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
553 just one window.
554
555 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
556 (clear_image_cache): If the number of cached images is unusually
557 large, decrease the cache eviction delay (Bug#6230).
558
559 2010-05-21 Glenn Morris <rgm@gnu.org>
560
561 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
562 Move these rules to ns.mk.
563 * ns.mk: New file.
564
565 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
566
567 * Makefile.in (CANNOT_DUMP): New, set by configure.
568 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
569
570 2010-05-20 Juri Linkov <juri@jurta.org>
571
572 * fileio.c (Fdelete_file): Change interative spec to use
573 `read-file-name' like in `find-file-read-args' where the default
574 value is `default-directory' instead of `buffer-file-name'.
575 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
576
577 2010-05-20 Kevin Ryde <user42@zip.com.au>
578
579 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
580 (Voverriding_terminal_local_map, Vsystem_key_alist)
581 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
582
583 2010-05-20 Glenn Morris <rgm@gnu.org>
584
585 * Makefile.in (DEPDIR): New constant.
586 (DEPFLAGS): Set with configure, not cpp.
587 (MKDEPDIR): New, set by configure.
588 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
589 (clean): Use $DEPDIR.
590 (deps_frag): Include from configure.
591 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
592 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
593
594 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
595 reallocation of the cache. (Bug#6210)
596
597 2010-05-19 Glenn Morris <rgm@gnu.org>
598
599 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
600
601 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
602 (GNULIB_VAR): Remove.
603 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
604
605 * m/ibms390x.h (LINKER):
606 * m/macppc.h (LINKER) [GNU_LINUX]:
607 * s/aix4-2.h (ORDINARY_LINK):
608 * s/cygwin.h (LINKER):
609 * s/darwin.h (ORDINARY_LINK):
610 * s/gnu.h (ORDINARY_LINK):
611 * s/netbsd.h (LINKER):
612 * s/usg5-4.h (ORDINARY_LINK):
613 Move to configure.
614
615 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
616
617 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
618
619 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
620 prevent stack overflow if number of arguments is too large
621 (Bug#6214).
622
623 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
624
625 * charset.c (load_charset_map_from_file): Don't call close after fclose.
626
627 2010-05-18 Glenn Morris <rgm@gnu.org>
628
629 * s/gnu-linux.h: Combine two conditionals.
630
631 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
632 $(POST_ALLOC_OBJ).
633
634 * Makefile.in (RALLOC_OBJ): New, set by configure.
635 (rallocobj): Replace with the previous variable.
636 (otherobj): Use $RALLOC_OBJ.
637
638 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
639 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
640
641 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
642 (gmallocobj, vmlimitobj): Replace with previous two variables.
643 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
644
645 2010-05-17 Glenn Morris <rgm@gnu.org>
646
647 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
648 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
649
650 2010-05-16 Glenn Morris <rgm@gnu.org>
651
652 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
653
654 * Makefile.in (clean): Get rid of HAVE_NS conditional.
655
656 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
657 trailing "/".
658
659 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
660 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
661
662 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
663 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
664 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
665 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
666 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
667
668 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
669 Remove ${STARTFLAGS}, nothing ever sets it.
670
671 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
672
673 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
674
675 2010-05-16 Glenn Morris <rgm@gnu.org>
676
677 * Makefile.in (LIBX_BASE): Always define.
678
679 * Makefile.in (LIBX_OTHER): Move out of cpp section.
680
681 * Makefile.in (LIBXT): Always define.
682
683 2010-05-15 Glenn Morris <rgm@gnu.org>
684
685 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
686
687 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
688 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
689
690 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
691
692 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
693 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
694
695 * emacs.c (main): Initialize initial-environment and
696 process-environment before generating from env, not after.
697
698 Handle --version reasonably in CANNOT_DUMP configuration.
699 * emacs.c (emacs_version, emacs_copyright): New string variables.
700 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
701 (syms_of_emacs): Defvar them, and initialize them from the C
702 string variables.
703 (main): If initialization hasn't been done, print initial version
704 info from the C strings, instead of starting an interactive session.
705
706 2010-05-15 Eli Zaretskii <eliz@gnu.org>
707
708 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
709 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
710 (bidi_paragraph_init): Remove redundant assertion that we are at
711 the beginning of a line after call to bidi_find_paragraph_start.
712
713 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
714 (syms_of_xdisp): Defsubr it.
715
716 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
717
718 * Makefile.in: Fix MSDOS-related comments.
719
720 2010-05-15 Glenn Morris <rgm@gnu.org>
721
722 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
723 (really-lwlib, really-oldXMenu): Always define.
724 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
725
726 * Makefile.in: Simplify cpp conditional.
727
728 * Makefile.in (${ns_appdir}): Simplify using umask.
729
730 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
731
732 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
733
734 * eval.c (specbind): Remove left-over duplicate test.
735 Disallow let-binding frame-local vars. Add comment.
736
737 2010-05-14 Eli Zaretskii <eliz@gnu.org>
738
739 Make the cache of bidi iterator states dynamically allocated.
740 * bidi.c (bidi_cache_shrink): New function.
741 (bidi_init_it): Call it.
742 (bidi_cache_iterator_state): Enlarge the cache if needed.
743
744 * bidi.c (bidi_move_to_visually_next): Rename from
745 bidi_get_next_char_visually. All callers changed.
746
747 2010-05-14 Kenichi Handa <handa@m17n.org>
748
749 * dispextern.h (struct composition_it): New member reversed_p.
750
751 * composite.c (composition_compute_stop_pos): Search backward if
752 ENDPOS < CHARPOS.
753 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
754 Set CMP_IT->reversed_p.
755 (composition_update_it): Pay attention to CMP_IT->reversed_p.
756
757 * xdisp.c (set_iterator_to_next):
758 Call composition_compute_stop_pos with negative ENDPOS if we are
759 scanning backward. Call composition_compute_stop_pos if scan
760 direction is changed.
761 (next_element_from_buffer): Call composition_compute_stop_pos with
762 negative ENDPOS if we are scanning backward.
763 (next_element_from_composition): Pay attention to
764 IT->cmp_it.reversed_p.
765
766 2010-05-14 Kenichi Handa <handa@m17n.org>
767
768 * font.c (font_range): Return the range for the font found at first.
769
770 2010-05-14 Glenn Morris <rgm@gnu.org>
771
772 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
773
774 * Makefile.in (mktime, X11, register): Move undefs to configure.
775
776 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
777 (MSDOS_X_OBJ): New variable.
778 (MSDOS_SUPPORT_REAL): New constant.
779 (MSDOS_SUPPORT): Set as a variable, not with cpp.
780 (obj): Use MSDOS_X_OBJ.
781 (lisp): Use MSDOS_SUPPORT as a variable.
782
783 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
784 (GPM_MOUSE_SUPPORT): Now it's a constant.
785 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
786 not cpp.
787
788 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
789 (ns_appresdir): Remove, unused.
790
791 * Makefile.in (SHELL): Move outside cpp section.
792
793 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
794
795 2010-05-13 Glenn Morris <rgm@gnu.org>
796
797 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
798 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
799
800 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
801 HAVE_WINDOW_SYSTEM must be too.
802
803 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
804 (lisp): Remove WINNT_SUPPORT.
805
806 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
807 Let configure set these variables (to empty) in this case as well.
808
809 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
810 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
811
812 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
813 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
814 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
815 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
816 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
817 the values output by configure.
818 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
819
820 2010-05-12 Glenn Morris <rgm@gnu.org>
821
822 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
823 (LINKER_WAS_SPECIFIED): Remove.
824
825 * Makefile.in (LIB_GCC): Set using configure, not cpp.
826 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
827 * m/arm.h (LIB_GCC) [GNU_LINUX]:
828 * s/cygwin.h (LIB_GCC):
829 * s/freebsd.h (LIB_GCC):
830 * s/gnu-linux.h (LIB_GCC):
831 * s/msdos.h (LIB_GCC):
832 * s/netbsd.h (LIB_GCC):
833 Move to configure.
834
835 2010-05-11 Karel Klic <kklic@redhat.com>
836
837 * ftfont.c: Fix incorrect parentheses of #if condition for
838 definining M17N_FLT_USE_NEW_FEATURE.
839
840 2010-05-11 Glenn Morris <rgm@gnu.org>
841
842 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
843 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
844
845 2010-05-10 Eli Zaretskii <eliz@gnu.org>
846
847 * xdisp.c (init_iterator): Don't turn on bidi reordering in
848 unibyte buffers. See
849 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
850
851 2010-05-10 Glenn Morris <rgm@gnu.org>
852
853 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
854 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
855 (LIBES): Use LIBS_SYSTEM as a variable.
856 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
857 * s/aix4-2.h (LIBS_SYSTEM):
858 * s/freebsd.h (LIBS_SYSTEM):
859 * s/hpux10-20.h (LIBS_SYSTEM):
860 * s/sol2-6.h (LIBS_SYSTEM):
861 * s/unixware.h (LIBS_SYSTEM):
862 Move to configure.
863
864 * s/aix4-2.h (MAIL_USE_LOCKF):
865 * s/bsd-common.h (MAIL_USE_FLOCK):
866 * s/darwin.h (MAIL_USE_FLOCK):
867 * s/gnu-linux.h (MAIL_USE_FLOCK):
868 * s/irix6-5.h (MAIL_USE_FLOCK):
869 * s/template.h (MAIL_USE_FLOCK):
870 Move to configure.
871
872 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
873
874 * Version 23.2 released.
875
876 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
877
878 * composite.c (autocmp_chars): Save point as marker before calling
879 auto-composition-function (Bug#5984).
880
881 * lisp.h (restore_point_unwind): Add prototype.
882
883 * fileio.c (restore_point_unwind): Remove static attribute.
884
885 2010-05-08 Kenichi Handa <handa@m17n.org>
886
887 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
888 new feature of libotf and m17n-flt.
889 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
890 Call OTF_check_features even if no specific feature is given.
891 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
892 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
893 that OUT is NULL. Use OTF_drive_gsub_with_log and
894 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
895 OTF_drive_gpos.
896 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
897 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
898 Setup mflt_enable_new_feature and mflt_try_otf.
899
900 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
901
902 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
903
904 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
905 box and toolbar (Bug #6139).
906 (xg_create_tool_bar): Remove comment (Bug #6139).
907 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
908 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
909
910 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
911
912 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
913 Update dependencies.
914
915 2010-05-08 Eli Zaretskii <eliz@gnu.org>
916
917 * fringe.c (update_window_fringes): Set up truncation bitmaps for
918 R2L lines.
919
920 2010-05-08 Glenn Morris <rgm@gnu.org>
921
922 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
923
924 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
925 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
926 (termcapobj): Replace with TERMCAP_OBJ.
927 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
928 (LIBES): Use LIBS_TERMCAP as a variable.
929
930 * s/freebsd.h (osreldate.h): No longer include, since this file
931 does not use __FreeBSD_version any more.
932
933 * s/aix4-2.h (TERMINFO):
934 * s/cygwin.h (TERMINFO):
935 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
936 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
937 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
938 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
939 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
940 * s/irix6-5.h (TERMINFO):
941 * s/netbsd.h (LIBS_TERMCAP):
942 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
943 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
944 * s/usg5-4.h (TERMINFO):
945 Move to configure.
946
947 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
948
949 * eval.c (unbind_to): Don't unbind a local binding into the global
950 binding when the local binding disappeared. Inversely, don't unbind
951 a global binding into a newly created local binding.
952 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
953 can specify the frame to use, when applicable. Adjust callers.
954
955 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
956 Stefan Monnier <monnier@iro.umontreal.ca>
957
958 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
959
960 2010-05-07 Eli Zaretskii <eliz@gnu.org>
961
962 * w32fns.c: Include w32.h.
963 (Fw32_shell_execute): Decode the error message before passing it
964 to `error'. (Bug#6126)
965
966 * msdos.c (dos_set_window_size):
967 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
968 instead of `XSYMBOL (foo)->value'.
969
970 2010-05-07 Eli Zaretskii <eliz@gnu.org>
971
972 Fix the MS-DOS build, broken by autoconfiscation.
973
974 * Makefile.in: Don't use Make-style comments past the "start of
975 cpp stuff" line.
976 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
977
978 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
979 edited directly by msdos/sed1v2.inp).
980
981 2010-05-07 Glenn Morris <rgm@gnu.org>
982
983 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
984 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
985 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
986 move out of cpp section.
987 * s/freebsd.h (LD_SWITCH_SYSTEM):
988 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
989 * s/netbsd.h (LD_SWITCH_SYSTEM):
990 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
991
992 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
993
994 Define LIB_STANDARD and START_FILES using autoconf.
995 * s/usg5-4.h (LIB_STANDARD):
996 * s/netbsd.h (START_FILES):
997 * s/irix6-5.h (LIB_STANDARD):
998 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
999 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1000 * s/freebsd.h (START_FILES):
1001 * s/darwin.h (START_FILES):
1002 * s/cygwin.h (START_FILES):
1003 * s/aix4-2.h (LIB_STANDARD):
1004 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
1005 * Makefile.in (STARTFILES): Rename to START_FILES, define using
1006 autoconf, not cpp.
1007
1008 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
1009
1010 Remove NEED_BSDTTY and NEED_UNISTD_H.
1011 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1012 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1013 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1014 <sys/ptyio.h> and <unistd.h>.
1015
1016 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1017
1018 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1019 * s/gnu.h (START_FILES): Remove empty definition.
1020
1021 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1022
1023 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1024
1025 2010-05-06 Glenn Morris <rgm@gnu.org>
1026
1027 * Makefile.in (CPP, LN_S): Remove unused variables.
1028
1029 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1030
1031 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1032
1033 2010-05-05 Lawrence Mitchell <wence@gmx.li>
1034
1035 * m/sparc.h: Fix typo in earlier change.
1036
1037 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 Misc tweaks.
1040 * eval.c (Fdefvaralias): Remove unintended nested if.
1041 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1042
1043 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
1044
1045 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1046
1047 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1048
1049 Remove BSD_PGRPS.
1050 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1051 * s/gnu-linux.h (BSD_PGRPS): Remove.
1052 * term.c (dissociate_if_controlling_tty):
1053 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1054 (init_sys_modes, reset_sys_modes):
1055 * emacs.c (main):
1056 * callproc.c (Fcall_process, child_setup): Remove code depending
1057 on BSD_PGRPS.
1058
1059 Remove POSIX_SIGNALS.
1060 * s/usg5-4.h (POSIX_SIGNALS):
1061 * s/netbsd.h (POSIX_SIGNALS):
1062 * s/msdos.h (POSIX_SIGNALS):
1063 * s/ms-w32.h (POSIX_SIGNALS):
1064 * s/hpux11.h (POSIX_SIGNALS):
1065 * s/gnu.h (POSIX_SIGNALS):
1066 * s/gnu-linux.h (POSIX_SIGNALS):
1067 * s/freebsd.h (POSIX_SIGNALS):
1068 * s/darwin.h (POSIX_SIGNALS):
1069 * s/cygwin.h (POSIX_SIGNALS):
1070 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1071 * s/unixware.h:
1072 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1073 * process.c (create_process):
1074 * syssignal.h:
1075 * sysdep.c (wait_for_termination, init_signals):
1076 * process.c (create_process):
1077 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1078 remove all code that assumes the contrary.
1079
1080 2010-05-04 Glenn Morris <rgm@gnu.org>
1081
1082 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1083 variable.
1084 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1085 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1086 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1087 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1088 LD_SWITCH_SYSTEM_tmp.
1089 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1090 New variables, set by configure.
1091
1092 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1093 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1094 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1095 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1096 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1097
1098 * s/aix4-2.h (C_SWITCH_SYSTEM):
1099 * m/alpha.h (C_SWITCH_MACHINE):
1100 Move to configure.in.
1101 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1102 New variables, set by configure.
1103 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1104 $c_switch_machine and $c_switch_system.
1105
1106 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1107
1108 * s/hpux10-20.h (LIB_STANDARD): New definition.
1109 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1110 on it, not used anymore.
1111
1112 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
1113
1114 * eval.c (internal_condition_case_n): Rename from
1115 internal_condition_case_2.
1116 (internal_condition_case_2): New function.
1117
1118 * xdisp.c (safe_call): Use internal_condition_case_n.
1119
1120 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1121 (internal_delete_file, Frename_file): Callers changed.
1122
1123 * buffer.c (Fkill_buffer):
1124 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1125
1126 * lisp.h: Update prototypes.
1127
1128 2010-05-03 Glenn Morris <rgm@gnu.org>
1129
1130 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1131 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1132 (LIBXT): Set with configure, not cpp.
1133 (LIBX): Remove.
1134 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1135
1136 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1137
1138 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1139 The FreeBSD is not needed, the default works, Solaris version is
1140 not needed, and the remaining case is not supported by configure.
1141
1142 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1143
1144 * xsmfns.c (CHDIR_OPT): New define.
1145 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1146 restarting emacs.
1147
1148 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1149 shut_down_emacs.
1150
1151 * emacs.c (USAGE1): Mention --chdir.
1152 (main): Handle --chdir.
1153 (standard_args): Add --chdir.
1154 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1155 #5552).
1156
1157 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1158
1159 Remove LD_SWITCH_MACHINE.
1160 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1161 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1162
1163 Clean up IRIX code.
1164 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1165 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1166
1167 Clean up AIX code.
1168 * m/ibmrs6000.inp: Remove file, unused.
1169 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1170 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1171 definition ...
1172 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1173
1174 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1175 unused.
1176
1177 2010-05-01 Eli Zaretskii <eliz@gnu.org>
1178
1179 Emulate POSIX_SIGNALS on MS-Windows.
1180
1181 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1182 (SIG_SETMASK, SIG_UNBLOCK): Define.
1183
1184 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1185 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1186 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1187
1188 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1189 New stubs.
1190
1191 Miscellaneous fixes of bidi display.
1192
1193 * xdisp.c (find_row_end): New function, refactored from display_line.
1194 (display_line): Use it.
1195 (extend_face_to_end_of_line): In almost-filled rows, extend only
1196 if the row is R2L and not continued.
1197 (display_line): Fix prepending of truncation glyphs to R2L rows.
1198 Preserve overlay and string info in row->end.
1199 (insert_left_trunc_glyphs): Support addition of left truncation
1200 glyphs to R2L rows.
1201 (set_cursor_from_row): Don't place cursor on the vertical border
1202 glyph between adjacent windows. Fix a crash when a display string
1203 is continued to the next line. Don't return zero if cursor was
1204 found by `cursor' property of a display string.
1205 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1206 test for that explicitly.
1207
1208 2010-05-01 Glenn Morris <rgm@gnu.org>
1209
1210 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1211 for clarity.
1212 (OTHER_OBJ): Remove.
1213 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1214 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1215
1216 2010-05-01 Karel Klíč <kklic@redhat.com>
1217
1218 * fileio.c (Ffile_selinux_context): Context functions may return null.
1219
1220 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1221
1222 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
1223
1224 2010-04-30 Glenn Morris <rgm@gnu.org>
1225
1226 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1227 (OTHER_OBJ): Define as a separate variable, for clarity.
1228
1229 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1230
1231 * xsettings.c: include limits.h and update file comment.
1232
1233 2010-04-30 Glenn Morris <rgm@gnu.org>
1234
1235 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1236 Set with configure, not cpp.
1237 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1238
1239 * Makefile.in (mallocobj): Remove.
1240 (otherobj): Simplify using @OTHER_OBJ@.
1241
1242 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1243 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1244 Don't bother making nsgui.h dependency platform-specific.
1245
1246 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1247
1248 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 * process.c (read_process_output, exec_sentinel): Don't burp if the
1251 sentinel/filter kills the current buffer (bug#6060).
1252
1253 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
1254 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1255 Remove unused var `args'.
1256 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1257 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1258 * doc.c (store_function_docstring): Use XSETCAR.
1259
1260 2010-04-28 Glenn Morris <rgm@gnu.org>
1261
1262 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1263 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1264
1265 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1266
1267 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1268 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1269
1270 * Makefile.in (FONT_OBJ): New, set by configure.
1271 (FONT_DRIVERS): Use $FONT_OBJ.
1272
1273 * Makefile.in (LIBXMU): Set with configure, not cpp.
1274 * s/aix4-2.h (LIBXMU):
1275 * s/hpux10-20.h (LIBXMU):
1276 Remove definition, now set in configure.
1277
1278 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1279
1280 * m/amdx86-64.h [i386]: Move this test to configure.in.
1281
1282 2010-04-27 Glenn Morris <rgm@gnu.org>
1283
1284 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1285 * s/unixware.h (NEED_LIBW): Remove definition.
1286
1287 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1288 (TOOLKIT_LIBW): New, set by configure.
1289 (@X_TOOLKIT_TYPE@): No longer define it.
1290
1291 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1292 (MOTIF_LIBW): Set with configure, not cpp.
1293 * s/aix4-2.h (LIB_MOTIF):
1294 * s/gnu-linux.h (LIB_MOTIF):
1295 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1296
1297 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1298
1299 Reduce CPP usage.
1300 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1301 (obj): Use autoconf for unexec instead of cpp.
1302 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1303 definitions and undefs. Inline definitions in the only user.
1304 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
1305
1306 2010-04-27 Glenn Morris <rgm@gnu.org>
1307
1308 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1309 since the defaults (set by the system file) are fine in most cases.
1310 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1311 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1312 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1313 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1314 Remove definitions, since they are set correctly in s/gnu-linux.h.
1315 * s/freebsd.h (START_FILES, LIB_STANDARD):
1316 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1317 * s/hpux10-20.h (START_FILES):
1318 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1319 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1320
1321 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1322 (MOTIF_LIBW): Use $LIBXP.
1323 (otherobj): Use $WIDGET_OBJ.
1324
1325 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1326
1327 * Makefile.in (LIBS_MACHINE): Remove, unused.
1328
1329 Use autoconf instead of cpp for LIB_MATH.
1330 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1331 * s/cygwin.h (LIB_MATH): Likewise.
1332 * Makefile.in (LIB_MATH): Do not define with cpp.
1333 (LIBES): Use autoconf for LIB_MATH.
1334
1335 2010-04-26 Kenichi Handa <handa@m17n.org>
1336
1337 * composite.c (Ffind_composition_internal): Fix the return value
1338 for an automatic composition.
1339
1340 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1341
1342 Remove all NO_ARG_ARRAY uses.
1343 * fns.c (concat2, concat3, nconc2):
1344 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1345 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1346 * m/xtensa.h (NO_ARG_ARRAY):
1347 * m/template.h (NO_ARG_ARRAY):
1348 * m/sparc.h (NO_ARG_ARRAY):
1349 * m/sh3.h (NO_ARG_ARRAY):
1350 * m/mips.h (NO_ARG_ARRAY):
1351 * m/macppc.h (NO_ARG_ARRAY):
1352 * m/iris4d.h (NO_ARG_ARRAY):
1353 * m/intel386.h (NO_ARG_ARRAY):
1354 * m/ibms390x.h (NO_ARG_ARRAY):
1355 * m/ibms390.h (NO_ARG_ARRAY):
1356 * m/ibmrs6000.h (NO_ARG_ARRAY):
1357 * m/ia64.h (NO_ARG_ARRAY):
1358 * m/hp800.h (NO_ARG_ARRAY):
1359 * m/arm.h (NO_ARG_ARRAY):
1360 * m/amdx86-64.h (NO_ARG_ARRAY):
1361 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1362
1363 2010-04-25 Eli Zaretskii <eliz@gnu.org>
1364
1365 * xdisp.c (display_line): Don't assume 2nd call to
1366 get_next_display_element cannot return zero. (Bug#6030)
1367 (iterate_out_of_display_property): New function, body from pop_it.
1368 (pop_it): Use it.
1369
1370 2010-04-24 Glenn Morris <rgm@gnu.org>
1371
1372 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1373 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1374 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1375 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1376
1377 2010-04-24 Eli Zaretskii <eliz@gnu.org>
1378
1379 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1380 use `get_next_display_element' and `set_iterator_to_next' to
1381 advance to the next character, when looking for the character that
1382 begins the next row.
1383
1384 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
1385 definition of "struct Lisp_Symbol".
1386
1387 2010-04-24 Glenn Morris <rgm@gnu.org>
1388
1389 * Makefile.in (CRT_DIR): New variable, set by configure.
1390 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1391 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1392
1393 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1394
1395 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1396
1397 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1398
1399 Remove redundant flags.
1400 * s/freebsd.h (C_SWITCH_SYSTEM):
1401 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1402 * s/netbsd.h (C_SWITCH_SYSTEM):
1403 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1404 of these.
1405
1406 Simplify m/intel386.h.
1407 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1408 user: ecrt0.c.
1409 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1410 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1411 the only user: s/unixware.h.
1412 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1413 from m/intel386.h.
1414 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1415 moved here from m/intel386.h.
1416
1417 * m/mips.h: Remove #if 0 code.
1418
1419 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1420
1421 Fix display of composed characters from L2R scripts in bidi buffers.
1422 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1423 After advancing IT past the composition, resync the bidi iterator
1424 with IT's position. (Bug#5977)
1425
1426 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1427
1428 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1429 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1430
1431 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1432
1433 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1434
1435 2010-04-23 Eli Zaretskii <eliz@gnu.org>
1436
1437 Support `display' text properties and overlay strings in bidi buffers.
1438 * xdisp.c (pop_it): When the stack is popped after displaying
1439 from a string, bidi-iterate to exit from the text portion covered
1440 by the `display' property or overlay. (Bug#5988, bug#5920)
1441
1442 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1443
1444 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1445 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1446
1447 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1448 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1449
1450 Simplify STARTFILES definition.
1451 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1452 relying on Makefile.in to define it.
1453 * s/cygwin.h (START_FILES): Likewise.
1454 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1455
1456 Clean up Solaris code.
1457 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1458 (LIB_MOTIF): Remove, configure takes care of this.
1459 (NOT_USING_MOTIF): Remove, unused.
1460 * xrdb.c: Remove #if 0-ed #include.
1461 (SYSV): Remove conditional for old SysV.
1462 * sysdep.c (closedir): Remove conditional code for Solaris,
1463 Solaris has closedir.
1464
1465 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1466
1467 * xsettings.c (read_and_apply_settings): Check if current_font is
1468 NULL before strcmp (Bug#6001).
1469
1470 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1471
1472 Clean up HP-UX files.
1473 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1474 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1475 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1476 * s/hpux10-20.h: ... to the only user, here.
1477
1478 2010-04-21 Eli Zaretskii <eliz@gnu.org>
1479
1480 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1481 use buffer-local values of paragraph-start and paragraph-separate.
1482 <paragraph_start_re, paragraph_separate_re>: Rename from
1483 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1484 (Bug#5992)
1485
1486 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1487
1488 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1489 current_tool_bar_style are new.
1490 (store_config_changed_event): Rename from store_font_changed_event.
1491 (XSETTINGS_TOOL_BAR_STYLE): New define.
1492 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1493 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1494 HAVE_XFT.
1495 (something_changedCB): store_font_changed_event is now
1496 store_config_changed_event
1497 (parse_settings): Rename from parse_xft_settings. Read
1498 non-xft xsettings outside #ifdef HAVE_XFT.
1499 (read_settings): Renamed from read_xft_settings.
1500 (apply_xft_settings): Take current settings as parameter. Do not
1501 call read_(xft)_settings.
1502 (read_and_apply_settings): New function.
1503 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1504 read_and_apply_settings if there are settings to be read.
1505 (init_xsettings): Renamed from init_xfd_settings.
1506 Call read_and_apply_settings unconditionally.
1507 (xsettings_initialize): Call init_xsettings.
1508 (Ftool_bar_get_system_style): New function.
1509 (syms_of_xsettings): Define Qmonospace_font_name and
1510 Qtool_bar_style. Initialize current_tool_bar_style to nil.
1511 defsubr Stool_bar_get_system_style. Fprovide on
1512 dynamic-setting.
1513 Move misplaced HAVE_GCONF
1514
1515 * xsettings.h (Ftool_bar_get_system_style): Declare.
1516
1517 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1518 Qtext, Qboth, Qboth_horiz are new.
1519 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1520 Vtool_bar_style, tool_bar_max_label_size.
1521
1522 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1523
1524 * keyboard.c: QClabel is new.
1525 (parse_tool_bar_item): Take out QClabel from tool bar items.
1526 Try to construct a label if ther is no QClabel.
1527 (syms_of_keyboard): Intern :label as QClabel.
1528
1529 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1530 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1531 New.
1532
1533 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1534 dynamic-setting.el.
1535
1536 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1537 (xg_make_tool_item, xg_show_toolbar_item): New function.
1538 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1539 Call xg_make_tool_item to make a tool bar item.
1540 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1541
1542 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1543 into account for toolbars.
1544
1545 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1546
1547 * data.c (make_blv): Declarations before code (Bug#5993).
1548
1549 2010-04-21 Glenn Morris <rgm@gnu.org>
1550
1551 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1552 Define using autoconf, not cpp.
1553 (LIBXSM): New variable, set by autoconf.
1554 (LIBXT): Use $LIBXSM.
1555
1556 2010-04-21 Dan Nicolaescu <local_user@dannlt>
1557
1558 Remove NOMULTIPLEJOBS, unused.
1559 * s/template.h (NOMULTIPLEJOBS):
1560 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1561
1562 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1563 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1564 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1565 detects -znocombreloc and passes it to the linker
1566 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1567
1568 2010-04-21 Glenn Morris <rgm@gnu.org>
1569
1570 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1571
1572 2010-04-21 Karel Klíč <kklic@redhat.com>
1573
1574 * Makefile.in (LIBSELINUX_LIBS): New.
1575 (LIBES): Add $LIBSELINUX_LIBS.
1576 * eval.c, lisp.h (call7): New function.
1577 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1578 (Ffile_selinux_context, Fset_file_selinux_context):
1579 New functions.
1580 (Fcopy_file): New parameter preserve-selinux-context.
1581 (Frename_file): Preserve selinux context when renaming by copy-file.
1582
1583 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
1584 Eli Zaretskii <eliz@gnu.org>
1585
1586 Don't depend on cm.c or termcap.c on Windows, use stubs.
1587 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1588 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1589 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1590 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1591 (sys_tputs, sys_tgetstr): New stubs.
1592 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1593 (tputs, tgetstr): New; define to sys_*.
1594
1595 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
1596
1597 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1598
1599 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1600
1601 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1602 Just signal a warning rather than an error when inside a let.
1603 (Fmake_variable_frame_local): Add the same test.
1604
1605 * font.c (syms_of_font): Make the style table vars read-only.
1606
1607 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1608 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1609
1610 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1611
1612 2010-04-20 Eli Zaretskii <eliz@gnu.org>
1613
1614 Fix R2L paragraph display on TTY.
1615
1616 * xdisp.c (unproduce_glyphs): New function.
1617 (display_line): Use it when produced glyphs are discarded from R2L
1618 glyph rows.
1619 (append_composite_glyph): In R2L rows, prepend the glyph rather
1620 than appending it.
1621
1622 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1623 rather than append it. Set up the resolved_level and bidi_type
1624 attributes of the appended glyph.
1625 (produce_special_glyphs): Mirror the backslash continuation
1626 character in R2L lines.
1627
1628 Implement display of R2L paragraphs in GUI sessions.
1629
1630 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1631 append_stretch_glyph.
1632 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1633 off-by-one error in computing x at end of text in the row.
1634 (append_stretch_glyph): In reversed row, prepend the glyph rather
1635 than append it. Set resolved_level and bidi_type of the glyph.
1636 (extend_face_to_end_of_line): If the row is reversed, prepend a
1637 stretch glyph whose width is such that the rightmost glyph will be
1638 drawn at the right margin of the window. Fix off-by-one error on
1639 TTY frames in testing whether a line needs face extension. Fix
1640 face extension at ZV. If this is the last glyph row, use
1641 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1642 region face.
1643 (set_cursor_from_row, display_line): Use
1644 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1645 row->continuation_lines_width.
1646 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1647 are at ZV. Fixes a crash when reseated to ZV by
1648 try_window_reusing_current_matrix.
1649 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1650 which happens with R2L glyph rows. Fixes a crash when inserting a
1651 character at end of an R2L line.
1652 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1653 treat them as having zero-width characters. Improve comments.
1654 Don't reverse pos_before and pos_after for reversed glyph rows.
1655 Set cursor.x to negative value when the cursor might be on the
1656 left fringe.
1657 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1658 left fringe, not the right one.
1659 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1660 (erase_phys_cursor): For reversed cursor_row, support cursor on
1661 the left fringe.
1662
1663 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1664 of continuation indicators on the fringes.
1665 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1666 left fringe.
1667
1668 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1669 draw cursor on the left fringe.
1670
1671 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1672 cursor on the left fringe.
1673
1674 * dispnew.c (update_text_area): Handle reversed desired rows when
1675 the cursor is on the left fringe.
1676 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1677 below, not by 0, for when the cursor is on the left fringe.
1678
1679 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1680
1681 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1682 widget is a scrollbar.
1683
1684 2010-04-20 Kenichi Handa <handa@m17n.org>
1685
1686 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1687 only when the arg CHARSET_LIST is nil.
1688
1689 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1690
1691 Make variable forwarding explicit rather the using special values.
1692 Basically, this makes the structure of buffer-local values and object
1693 forwarding explicit in the type of Lisp_Symbols rather than use
1694 special Lisp_Objects for that. This tends to lead to slightly more
1695 verbose code, but is more C-like, simpler, and makes it easier to make
1696 sure we handled all cases, among other things by letting the compiler
1697 help us check it.
1698 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1699 Removing forwarding objects.
1700 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1701 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1702 explicit rather than hiding them inside Lisp_Object "values".
1703 (XFWDTYPE): New macro.
1704 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1705 (XBUFFER_LOCAL_VALUE): Remove.
1706 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1707 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1708 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1709 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1710 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1711 Remove the Lisp_Misc_* header.
1712 (struct Lisp_Buffer_Local_Value): Redefine.
1713 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1714 (struct Lisp_Misc_Any): Add filler to get the right size.
1715 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1716 Lisp_Intfwd.
1717 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1718 (DEFVAR_KBOARD): Allocate a forwarding object.
1719 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1720 (let_shadows_global_binding_p): New function.
1721 (union Lisp_Val_Fwd): New type.
1722 (make_blv): New function.
1723 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1724 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1725 (swap_in_symval_forwarding, find_symbol_value, Fset)
1726 (let_shadows_buffer_binding_p, set_internal, default_value)
1727 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1728 (Fkill_local_variable, Fmake_variable_frame_local)
1729 (Flocal_variable_p, Flocal_variable_if_set_p)
1730 (Fvariable_binding_locus):
1731 * xdisp.c (select_frame_for_redisplay):
1732 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1733 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1734 * frame.c (store_frame_param):
1735 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1736 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1737 value structure.
1738 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1739 (clone_per_buffer_values): Only adjust markers into the current buffer.
1740 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1741 (Fbuffer_local_value, set_buffer_internal_1)
1742 (swap_out_buffer_local_variables):
1743 Adapt to the new symbol value structure.
1744 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1745 (defvar_per_buffer): Take a new arg for the fwd object.
1746 (buffer_lisp_local_variables): Return a proper alist (different fix
1747 for bug#4138).
1748 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1749 (Fgarbage_collect): Don't handle buffer_defaults specially.
1750 (mark_object): Handle new symbol value structure rather than the old
1751 special Lisp_Misc_* objects.
1752 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1753 * term.c (set_tty_color_mode):
1754 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1755 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1756 a buffer_local_flags.
1757 * print.c (print_object): Get rid of impossible forwarding objects.
1758
1759 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1760
1761 * bidi.c (bidi_get_type, bidi_get_category)
1762 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
1763 (bidi_type_of_next_char, bidi_level_of_next_char):
1764 Declare static. Use `INLINE' rather than `inline'.
1765
1766 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
1767
1768 * dired.c (Ffile_attributes): Fix typo in docstring.
1769
1770 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
1771
1772 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1773 NSInteger (Bug#5811).
1774
1775 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1776
1777 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1778 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1779
1780 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1781
1782 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1783
1784 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
1785
1786 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1787 terminal frames (Bug#5837).
1788
1789 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1790
1791 * .gdbinit (xsubchartable): New command.
1792
1793 2010-04-19 Eli Zaretskii <eliz@gnu.org>
1794
1795 * xdisp.c (display_line): Don't write beyond the last glyph row in
1796 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
1797 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1798 and
1799 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1800
1801 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1802
1803 * alloc.c (Fpurecopy): Hash-cons if requested.
1804 (syms_of_alloc): Update purify-flag docstring.
1805
1806 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1807
1808 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1809 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1810
1811 2010-04-17 Eli Zaretskii <eliz@gnu.org>
1812
1813 Fix a crash when an NSM character is inserted at BEGV.
1814
1815 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1816 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1817 NEUTRAL_B or UNKNOWN_BT.
1818
1819 2010-04-16 Eli Zaretskii <eliz@gnu.org>
1820
1821 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1822 other rows with cursor unless they are different from this row and
1823 this row is part of a continued line. (Bug#5943)
1824
1825 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1826
1827 * s/freebsd.h: Restore osreldate.h include.
1828 Suggested by Naohiro Aota.
1829
1830 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1831
1832 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1833
1834 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1835
1836 * s/cygwin.h: Avoid linking against static libgcc.
1837
1838 2010-04-15 Juri Linkov <juri@jurta.org>
1839
1840 * window.c: Add Qscroll_command.
1841 Remove Vscroll_preserve_screen_position_commands.
1842 (window_scroll_pixel_based, window_scroll_line_based): Check the
1843 `scroll-command' property on the last command instead of searching
1844 the last command in Vscroll_preserve_screen_position_commands.
1845 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1846 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1847 (scroll-preserve-screen-position): Doc fix.
1848 (Vscroll_preserve_screen_position_commands): Remove variable.
1849
1850 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1851
1852 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1853
1854 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1855
1856 Reduce cpp use in Makefile.in.
1857 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1858 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1859 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1860 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1861 (CRT0_COMPILE): Remove, inline it in the only user.
1862
1863 2010-04-14 Juri Linkov <juri@jurta.org>
1864
1865 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1866 `scroll-up-command' and `M-v' from `scroll-down' to
1867 `scroll-down-command'.
1868
1869 2010-04-14 Juri Linkov <juri@jurta.org>
1870
1871 * window.c (Vscroll_preserve_screen_position_commands): New variable
1872 with the default value as the list of Qscroll_down and Qscroll_up.
1873 (window_scroll_pixel_based, window_scroll_line_based): Search the
1874 last command in the list Vscroll_preserve_screen_position_commands
1875 instead of comparing with Qscroll_up and Qscroll_down.
1876
1877 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1878
1879 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1880 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1881 does that.
1882
1883 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1884 to zero.
1885
1886 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1887
1888 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1889
1890 Try to solve the problem of spurious EOF chars in long lines of text
1891 sent to interactive subprocesses.
1892 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1893 (system_process_attributes): Remove unused var `ttotal'.
1894 * process.c (send_process): Don't bother breaking long line with EOF
1895 chars when talking to ttys any more.
1896 (wait_reading_process_output): Output a warning when called in such
1897 a way that it could block without being interruptible.
1898
1899 Try to detect file modification within the same second.
1900 * buffer.h (struct buffer): New field modtime_size.
1901 * buffer.c (reset_buffer): Initialize it.
1902 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1903 (Fverify_visited_file_modtime): Check it.
1904 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1905 (Fset_visited_file_modtime): Set (or clear) it.
1906
1907 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1908
1909 * process.c (status_notify): Remove unused var `ro'.
1910
1911 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1912
1913 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1914 more than one visual (Bug#5938).
1915
1916 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1917
1918 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1919 Undefine.
1920
1921 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1922
1923 Remove C_SWITCH_SYSTEM_TEMACS.
1924 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1925 (malloc, realloc, free): Use emacs, not temacs for conditional
1926 definition.
1927
1928 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1929 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1930
1931 Use autoconf, not cpp for some variables.
1932 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1933 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1934 (ALL_CFLAGS): Use them as make variables.
1935 (really-lwlib, really-oldXMenu): Do not pass them.
1936
1937 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1938
1939 * xmenu.c (apply_systemfont_to_dialog): New.
1940 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1941
1942 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1943
1944 * process.c (exec_sentinel): Preserve current-buffer.
1945
1946 * process.c (read_process_output): Move the save-current-buffer to
1947 apply to both the filter and the non-filter branches.
1948
1949 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1950
1951 * s/msdos.h (UNEXEC): New definition.
1952
1953 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1954
1955 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1956 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1957
1958 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1959 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1960 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1961 TRY_WINDOW_CHECK_MARGINS.
1962
1963 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
1964 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1965 width only when it is for padding.
1966
1967 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1968
1969 * xfns.c (Fx_show_tip): Call try_window in a loop until
1970 fonts_changed_p is zero (Bug#2423).
1971
1972 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1973
1974 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1975 the end of TEXT_AREA. (Bug#5856)
1976
1977 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1978
1979 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1980 HAVE_GCONF.
1981
1982 2010-04-08 Eli Zaretskii <eliz@gnu.org>
1983
1984 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1985 prev.orig_type, for resolving type of NSM. (Bug#5858)
1986
1987 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1988
1989 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1990 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1991 in current_font.
1992 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
1993 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1994 New functions.
1995 (syms_of_xsettings): Initialize current_font.
1996 defsubr Sfont_get_system_normal_font.
1997
1998 * xsettings.h (Ffont_get_system_normal_font,
1999 xsettings_get_system_normal_font): Declare.
2000
2001 * xfns.c (extern xlwmenu_default_font): Remove.
2002 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
2003 to xlwmenu.c.
2004
2005 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
2006 menu items in UTF-8.
2007
2008 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
2009 (apply_systemfont_to_menu): New function.
2010 (set_frame_menubar, create_and_show_popup_menu): Call
2011 apply_systemfont_to_menu.
2012
2013 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2014
2015 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2016 FRAME_LINE_TO_PIXEL_Y.
2017
2018 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2019 pixelwidth/height.
2020
2021 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2022
2023 Simplify code for HP machines.
2024 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2025 for GNU_LINUX, not needed.
2026 (UNEXEC, NEED_BSDTTY): Move definitions...
2027 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2028
2029 * m/iris4d.h (UNEXEC): Move definition ...
2030 * s/irix6-5.h (UNEXEC): ... here.
2031
2032 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2033
2034 * xfns.c (set_machine_and_pid_properties): New function.
2035 (Fx_create_frame): Call set_machine_and_pid_properties.
2036
2037 2010-04-03 Eli Zaretskii <eliz@gnu.org>
2038
2039 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2040 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2041 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2042
2043 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2044 in this function. (Bug#5703)
2045
2046 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
2047
2048 * nsterm.h: Fix last change.
2049
2050 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2051
2052 * m/intel386.h (NO_REMAP): Move definition ...
2053 * s/msdos.h (NO_REMAP): ... here.
2054
2055 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2056
2057 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2058 used on those platforms.
2059
2060 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2061
2062 Remove extern errno declarations.
2063 * xterm.c:
2064 * xrdb.c:
2065 * w32term.c:
2066 * unexec.c:
2067 * unexaix.c:
2068 * sysdep.c:
2069 * process.c:
2070 * lread.c:
2071 * keyboard.c:
2072 * floatfns.c:
2073 * filelock.c:
2074 * fileio.c:
2075 * emacs.c (main):
2076 * ecrt0.c:
2077 * dispnew.c:
2078 * callproc.c:
2079 * buffer.c: Remove errno extern declarations.
2080 * s/netbsd.h (NEED_ERRNO): Remove.
2081
2082 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2083
2084 Remove all uses of LIBX11_SYSTEM.
2085 * Makefile.in (LIBX11_SYSTEM): Remove.
2086 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2087 instead.
2088
2089 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2090
2091 Remove support for DJGPP v1.x (bug#5813).
2092
2093 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
2094 * s/msdos.h:
2095 * unexec.c (make_hdr, copy_text_and_data):
2096 * sysdep.c (wait_for_termination, sys_subshell):
2097 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
2098 (IT_set_terminal_modes, __write, _rename, gethostname)
2099 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2100 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2101 the value of __DJGPP__.
2102 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2103 compatibility code.
2104 * lread.c:
2105 * gmalloc.c (memalign):
2106 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2107 * emacs.c (main):
2108 * dosfns.c (init_dosfns):
2109 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2110
2111 2010-04-01 Eli Zaretskii <eliz@gnu.org>
2112
2113 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2114 string with `cursor' property comes from an `after-string'
2115 overlay. (Bug#5816)
2116
2117 2010-04-01 Glenn Morris <rgm@gnu.org>
2118
2119 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2120 Define as Makefile variables.
2121 (LIBX): Use above variables rather than directly using autoconf.
2122
2123 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2124
2125 Clean up BSD_SYSTEM use.
2126 * xterm.c:
2127 * process.c:
2128 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2129 for including <sys/ioctl.h>.
2130 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2131 code is only used for MSDOS.
2132
2133 2010-03-31 Juri Linkov <juri@jurta.org>
2134
2135 * image.c: Add `Qextension_data'.
2136 (syms_of_image): Initialize and staticpro `Qextension_data'.
2137 (Fimage_metadata): Rename from `Fimage_extension_data'.
2138 (gif_load): Put GIF extension data to the property
2139 `Qextension_data'.
2140
2141 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2142
2143 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2144 * nsterm.h: Fix prototype.
2145
2146 2010-03-31 Eli Zaretskii <eliz@gnu.org>
2147
2148 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2149 trailing whitespace in right-to-left rows.
2150
2151 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2152
2153 Get rid of the direct_output optimizations.
2154 * keyboard.c (nonundocount): Remove extern declaration.
2155 (command_loop_1): Remove brittle optimisation for cheap and
2156 common operations.
2157 * xdisp.c (redisplay_internal): Don't bother checking
2158 redisplay_performed_directly_p any more.
2159 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2160 any more.
2161 * dispnew.c (redisplay_performed_directly_p)
2162 (direct_output_for_insert, direct_output_forward_char):
2163 * dispextern.h (redisplay_performed_directly_p)
2164 (direct_output_for_insert, direct_output_forward_char): Remove.
2165 * cmds.c (nonundocount): Make it static.
2166
2167 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
2168
2169 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2170
2171 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
2172
2173 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2174 invisible (Bug#5766).
2175
2176 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
2177
2178 * xdisp.c (x_consider_frame_title, update_window_cursor):
2179 Remove HAVE_NS conditionals.
2180 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
2181
2182 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2183 filename for the title.
2184 (ns_set_doc_edited): Do nothing if the selected window is a
2185 minibuffer window.
2186
2187 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2188 ns_set_doc_edited.
2189
2190 * nsterm.m: Remove unneeded prototype.
2191
2192 2010-03-31 Glenn Morris <rgm@gnu.org>
2193
2194 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2195 in the DOC file. (Bug#5336)
2196
2197 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
2198
2199 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2200
2201 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2202
2203 * window.c (keys_of_window): Remove redundant/overridden bindings.
2204
2205 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2206
2207 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2208 Restore original behavior when the iterator is not bidi_p.
2209
2210 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2211
2212 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2213
2214 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2215
2216 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2217 are outside the range of cached character positions.
2218
2219 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
2220
2221 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2222
2223 2010-03-30 Eli Zaretskii <eliz@gnu.org>
2224
2225 Initial support for bidirectional editing.
2226
2227 * Makefile.in (obj): Include bidi.o.
2228 (bidi.o): New target.
2229
2230 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2231 ($(BLD)/bidi.$(O)): New target.
2232
2233 * bidi.c: New file.
2234
2235 * buffer.h (struct buffer): New members bidi_display_reordering
2236 and bidi_paragraph_direction.
2237
2238 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2239 and bidi_paragraph_direction.
2240 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2241 and bidi-paragraph-direction.
2242 (Fbuffer_swap_text): Swap the values of
2243 bidi_display_reordering and bidi_paragraph_direction.
2244
2245 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2246 (bidi_type_t, bidi_dir_t): New types.
2247 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2248 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2249 prev_stop, base_level_stop, and eol_pos.
2250 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2251 (IT_STACK_SIZE): Enlarge to 5.
2252 (struct glyph_row): New member reversed_p.
2253 <string_buffer_position>: Update prototype.
2254 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2255 glyph_row if bidi_it.paragraph_dir == R2L.
2256 (struct glyph): New members resolved_level and bidi_type.
2257
2258 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2259 processing or buffer's direction is right-to-left.
2260 (prepare_desired_row): Preserve the reversed_p flag.
2261 (row_equal_p): Compare the reversed_p attributes as well.
2262
2263 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2264 bidi_init_it and set it->paragraph_embedding from the current
2265 buffer's value of bidi_paragraph_direction.
2266 (reseat_1): Initialize bidi_it.first_elt.
2267 (set_iterator_to_next, next_element_from_buffer): Use the value of
2268 paragraph_embedding to determine the paragraph direction.
2269 (set_iterator_to_next): Under bidi reordering, call
2270 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2271 new_paragraph flag is set in the bidi iterator.
2272 (next_element_from_buffer): If bidi_it.first_elt is set,
2273 initialize paragraph direction and find the first character to
2274 display in the visual order. If reseated to a middle of a line,
2275 prime the bidi iterator starting at the line's beginning. Handle
2276 the situation where we overstepped stop_charpos due to
2277 non-linearity of the bidi iteration. Likewise for when we back up
2278 beyond the previous stop_charpos. When moving across stop_charpos,
2279 record it in prev_stop.
2280 (display_line): Set row->end and it->start for the next row to the
2281 next character in logical order. Always extend reversed_p rows to
2282 the end of line, even if they end at ZV. Copy the reversed_p flag
2283 to the next glyph row. Keep calling set_cursor_from_row for
2284 bidi-reordered rows even if we already have a possible candidate
2285 for cursor position. Set row_end after all the row's glyphs have
2286 been produced, by looping over the glyphs. Record the position
2287 after EOL in it->eol_pos, and use it to set end_pos of the last
2288 row produced for a continued line.
2289 <Qright_to_left, Qleft_to_right>: New variables.
2290 (syms_of_xdisp): Initialize and staticpro them.
2291 (string_buffer_position_lim): New function.
2292 (string_buffer_position): Most of code moved to
2293 string_buffer_position_lim. Last argument and return value are
2294 now EMACS_INT; all callers changed.
2295 (set_cursor_from_row): Rewritten to support bidirectional text and
2296 reversed glyph rows.
2297 (text_outside_line_unchanged_p, try_window_id): Disable
2298 optimizations if we are reordering bidirectional text and the
2299 paragraph direction can be affected by the change.
2300 (append_glyph, append_composite_glyph)
2301 (produce_image_glyph, append_stretch_glyph): Set the
2302 resolved_level and bidi_type members of each glyph.
2303 (append_glyph): If the glyph row is reversed, prepend the glyph
2304 rather than appending it.
2305 (handle_stop_backwards): New function.
2306 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2307 (reseat): call handle_stop_backwards to recompute prev_stop and
2308 base_level_stop for the new position.
2309 (handle_invisible_prop): Under bidi iteration, skip invisible text
2310 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2311 paragraph direction. Update IT->prev_stop after skipping
2312 invisible text.
2313 (move_it_in_display_line_to): New variables prev_method
2314 and prev_pos. Compare for strict equality in
2315 BUFFER_POS_REACHED_P.
2316 (try_cursor_movement): Examine all the candidate rows that occlude
2317 point, to return the best match. If rows are bidi-reordered
2318 and point moved backwards, back up to the row that is not a
2319 continuation line, and start looking for a suitable row from
2320 there.
2321
2322 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2323 rather than appending, if the glyph_row's reversed_p flag is set.
2324 Set the resolved_level and bidi_type members of each glyph.
2325
2326 * .gdbinit (pbiditype): New command.
2327 (pgx): Use it to display bidi level and type of the glyph.
2328 (pitx): Display some bidi information about the iterator.
2329 (prowlims, pmtxrows): New commands.
2330
2331 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2332
2333 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2334 * s/usg5-4.h (LIBS_DEBUG):
2335 * s/irix6-5.h (C_DEBUG_SWITCH):
2336 * s/gnu-linux.h (LIBS_DEBUG):
2337 * s/darwin.h (LIBS_DEBUG):
2338 * s/bsd-common.h (LIBS_DEBUG):
2339 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2340 * m/iris4d.h (LIBS_DEBUG):
2341 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2342
2343 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2344 (LIBS_DEBUG): Remove definition.
2345
2346 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
2347
2348 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2349 Windows.
2350
2351 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2352
2353 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2354 `connect' (Bug#5723).
2355
2356 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
2357
2358 * process.c (Fmake_network_process): Call `select' for interrupted
2359 `connect' rather than creating new socket (Bug#5173).
2360
2361 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
2362
2363 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2364
2365 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2366
2367 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2368
2369 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2370
2371 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2372 XLoadQueryFont.
2373
2374 2010-03-24 Kenichi Handa <handa@m17n.org>
2375
2376 * coding.c (decode_coding_ccl): Fix previous change for the
2377 multibyte case.
2378 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2379 case that the output buffer is fullfilled.
2380 (encode_coding): Setup ccl program here.
2381
2382 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2383
2384 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2385
2386 Simplify LIBS_MACHINE definitions.
2387 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2388 * m/iris4d.h (LIBS_MACHINE): Likewise.
2389 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2390 * s/aix4-2.h (LIBS_SYSTEM): ... here.
2391 * s/netbsd.h: Remove commented out code.
2392
2393 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2394
2395 Remove dead code dealing with POSIX_SIGNALS.
2396 * atimer.c (set_alarm): Remove dead code, all USG systems define
2397 POSIX_SIGNALS.
2398 * data.c (arith_error): Likewise.
2399 * keyboard.c (input_available_signal, handle_user_signal)
2400 (interrupt_signal): Likewise.
2401 * process.c (sigchld_handler): Likewise.
2402 (create_process): Remove if 0 code. Remove HPUX conditional when
2403 !defined (POSIX_SIGNALS), it cannot be true.
2404 * syssignal.h: Remove USG5_4 and USG conditionals when
2405 !POSIX_SIGNALS, they cannot be true.
2406
2407 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2408 NO_SOCK_SIGIO, not used anymore.
2409
2410 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2411
2412 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2413 support vax on BSDs.
2414
2415 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2416 * s/aix4-2.h (ORDINARY_LINK): ... here.
2417
2418 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2419
2420 * Makefile.in (abs_builddir): Define.
2421 (bootstrap_exe): Use it.
2422 (VPATH): Use $(srcdir) instead of @srcdir@.
2423
2424 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2425
2426 * Makefile.in (bootstrap_exe): Use an absolute name.
2427
2428 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2429
2430 Remove support for old GNU/Linux using libc version 5.
2431 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2432 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2433
2434 Consolidate redundant definitions in s/bsd-common.h.
2435 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2436 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2437 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2438 doing it in all files that include this one.
2439 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2440 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2441 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2442 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2443 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2444 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2445 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2446 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2447 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2448
2449 Consolidate redundant definitions.
2450 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2451 it's undefined in all files that include this one.
2452 (POSIX_SIGNALS): Define here instead of doing it in all files that
2453 include this one.
2454 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2455 (POSIX_SIGNALS): Do not define.
2456 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2457 (POSIX_SIGNALS): Do not define.
2458 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2459 (POSIX_SIGNALS): Do not define.
2460
2461 Remove support for old UNIX System V systems.
2462 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2463 * s/usg-5-4-2.h: Remove.
2464
2465 Remove support for Solaris on PPC and for old versions.
2466 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2467 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2468 that cancel each other.
2469 * s/sol2-3.h:
2470 * s/sol2-4.h:
2471 * s/sol2-5.h: Remove.
2472 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2473 (NO_REMAP): Remove, unused.
2474 (UNEXEC): Move definition ...
2475 * s/aix4-2.h (UNEXEC): ... here.
2476
2477 * s/openbsd.h: Remove support for non-ELF and for systems that do
2478 not support shared libraries.
2479 * s/netbsd.h:
2480 * s/freebsd.h: Likewise.
2481
2482 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2483
2484 Remove non-working support for lynxos 3.0.
2485 * s/lynxos.h: Remove file.
2486
2487 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2488 COFF_BSD_SYMBOLS, nothing defines it anymore.
2489
2490 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2491
2492 Remove obsolete uses of HAVE_SHM.
2493 * emacs.c (standard_args):
2494 (Fdump_emacs):
2495 (syms_of_emacs): Remove code depending on HAVE_SHM.
2496
2497 * alloc.c: Remove HAVE_SHM dependent definition.
2498
2499 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2500
2501 2010-03-18 Glenn Morris <rgm@gnu.org>
2502
2503 * emacs.c (USAGE4): Hard-code bug address.
2504 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2505 (bug_reporting_address): Remove.
2506 (main): Don't call bug_reporting_address.
2507
2508 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2509 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2510
2511 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
2512
2513 * xfns.c (Fx_create_frame):
2514 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2515 on left.
2516
2517 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2518
2519 * editfns.c (Fformat): Account for string precision when computing
2520 field width (Bug#5710).
2521
2522 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
2523
2524 * xfns.c (Fx_create_frame): Set default to Qright.
2525
2526 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2527 all window systems.
2528
2529 2010-03-12 Eli Zaretskii <eliz@gnu.org>
2530
2531 These changes remove termcap.c from the build on Posix platforms.
2532 * Makefile.in (termcapobj): Move termcap.o from here...
2533 (MSDOS_OBJ): ...to here.
2534 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2535 now identical to when LIBS_TERMCAP is defined.
2536
2537 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2538
2539 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2540
2541 * config.in: Regenerated. (See top-level ChangeLog.)
2542
2543 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
2544
2545 * Branch for 23.2.
2546
2547 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2548
2549 Cleanup setup of gl_state in various parts of the code.
2550 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2551 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2552 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2553 (skip_chars):
2554 * regex.c (regex_compile): Use it.
2555 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2556 it's now set in regex_compile when/if we need it.
2557
2558 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2559
2560 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2561 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2562 (QUIT): Use it to consolidate code and remove redundancy.
2563 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2564
2565 * regex.c (regex_compile): Setup gl_state as well.
2566
2567 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2568 (in_classes): Use CONSP before XCAR/XCDR.
2569
2570 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2573 definitions, so that keyboard macros are correctly handled
2574 (Bug#5481).
2575
2576 2010-03-02 Eli Zaretskii <eliz@gnu.org>
2577
2578 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2579 text that could be relocated inside the call to emacs_mule_char.
2580 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2581 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2582
2583 2010-03-02 Kenichi Handa <handa@m17n.org>
2584
2585 * character.c (parse_str_as_multibyte): Fix handling of the
2586 multibyte form of raw-bytes.
2587 (str_as_multibyte): Likewise.
2588
2589 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2590 form of raw-bytes.
2591
2592 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
2593
2594 * charset.c (load_charset_map_from_file)
2595 (load_charset_map_from_vector): Zero out allocated
2596 charset_map_entries before using them.
2597
2598 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2599
2600 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2601
2602 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
2603
2604 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2605 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
2606
2607 2010-02-26 Kenichi Handa <handa@m17n.org>
2608
2609 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2610
2611 * xdisp.c (reseat_to_string): Fix previous change.
2612
2613 2010-02-26 David Reitter <david.reitter@gmail.com>
2614
2615 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2616 Lisp_Object (Bug#4736).
2617
2618 2010-02-25 Kenichi Handa <handa@m17n.org>
2619
2620 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2621
2622 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2623
2624 * xterm.c (XTflash): Move declarations before statements.
2625
2626 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2627 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2628 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2629 (xg_create_tool_bar): Remove unused variables.
2630 (x_wm_set_size_hint): Move declarations before statements.
2631 (xg_create_frame_widgets): Remove variable grav.
2632
2633 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
2634
2635 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2636
2637 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2638
2639 * term.c (fatal): Add a final \n if needed (bug#5596).
2640
2641 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
2642
2643 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2644
2645 2010-02-18 Glenn Morris <rgm@gnu.org>
2646
2647 * callint.c (Finteractive): Doc fix.
2648
2649 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2650
2651 * coding.c (record_conversion_result):
2652 Handle CODING_RESULT_INSUFFICIENT_DST.
2653 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2654 memory allocation error.
2655
2656 2010-02-17 Kenichi Handa <handa@m17n.org>
2657
2658 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2659 Fix for the case that the output buffer is fullfilled.
2660 (decode_coding): Setup ccl program here. Keep looping when the
2661 decoder stopped because the output buffer is
2662 fullfilled (bug#5534).
2663
2664 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2665
2666 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2667
2668 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
2669 bug #5571.
2670 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
2671 overdrawn.
2672
2673 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2674
2675 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2676 doing_interact here.
2677 (ice_connection_closed): New function.
2678 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2679 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2680 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2681 returns I/O error.
2682 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2683 bug #5512.
2684
2685 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
2686
2687 * nsfont.m (nsfont_open): The system's value for the font descent
2688 is negative, so round it down to avoid clipping.
2689
2690 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
2691
2692 * charset.c (load_charset_map_from_file)
2693 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
2694 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
2695
2696 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
2697
2698 * charset.c (load_charset_map_from_file): Allocate large
2699 charset_map_entries structure on the heap rather than the stack.
2700 (Bug#5526).
2701
2702 2010-01-31 Kenichi Handa <handa@m17n.org>
2703
2704 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
2705 size in NAME is invalid, return -1 (Bug#5396).
2706
2707 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
2708
2709 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2710 <deactivated@gmail.com> (Bug#3605).
2711
2712 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
2713
2714 * fileio.c (Frename_file): Correctly rename symlinks to
2715 directories (Bug#5496).
2716
2717 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2718
2719 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2720
2721 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2722
2723 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2724
2725 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
2726
2727 * frame.c (DEFAULT_ROWS): Change default to 35.
2728
2729 * xfns.c (x_default_font_parameter): Change default XFT font to
2730 monospace-10 (Bug#3643).
2731
2732 2010-01-29 Eli Zaretskii <eliz@gnu.org>
2733
2734 * w32inevt.c (key_event): Remove unnecessary comparison of
2735 event->uChar.AsciiChar with 128.
2736
2737 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
2738
2739 * fileio.c (Frename_file): Fix last change (Bug#5487).
2740
2741 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2742
2743 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2744
2745 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2746
2747 * xfns.c (Fx_create_frame): Remove window size matching code from
2748 2010-01-15.
2749 (x_get_current_desktop, x_get_desktop_workarea): Remove.
2750
2751 2010-01-27 Jason Rumney <jasonr@gnu.org>
2752
2753 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
2754 (key_event): Use unicode for characters 128 and higher (Bug#4567).
2755
2756 2010-01-27 Kenichi Handa <handa@m17n.org>
2757
2758 * regex.c (analyse_first): Fix setting of fastmap for unibyte
2759 pattern string (Bug#4209).
2760
2761 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
2762
2763 * fileio.c (Frename_file): Call copy-directory and
2764 delete-directory for directories, in order to handle cross-device
2765 renaming (Bug#3353).
2766
2767 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2768
2769 * xfns.c (Fx_create_frame): If frame height is too big, try
2770 sizes 24 and 10. Bug #3643.
2771
2772 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2773
2774 Try and fix bug#788, hopefully for real this time.
2775 * keymap.c (shadow_lookup): Add `remap' arg.
2776 (describe_map, describe_vector): Update calls to shadow_lookup.
2777 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2778 `remapped' so this flag is applicable to `sequence'. Be careful to
2779 perform remapping during shadow_lookup check of remapped_sequences.
2780
2781 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2782
2783 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2784 png_check_sig, which has been removed in libpng 1.4.
2785
2786 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2787
2788 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2789 lacks this header file).
2790
2791 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2792
2793 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2794 as in Emacs 22.
2795
2796 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2797
2798 * lisp.h (make_pure_string): String pointer arg now points to const.
2799
2800 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2801 args now point to const.
2802
2803 2010-01-22 Eli Zaretskii <eliz@gnu.org>
2804
2805 * lread.c (Fload): Don't treat files without .elc extension as
2806 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2807 them. (bug#5303)
2808
2809 2010-01-20 Kenichi Handa <handa@m17n.org>
2810
2811 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2812 treat the source as actual byte sequence.
2813
2814 2010-01-19 Alan Mackenzie <acm@muc.de>
2815
2816 Fix spurious before-change-functions invocation from (insert ?\n).
2817 * textprop.c (set_text_properties): Rename parameter
2818 `signal_after_change_p' to `coherent_change_p', and make the
2819 invocation of `modify_region' conditional on it.
2820
2821 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2822
2823 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2824 for debug purpose.
2825 (syms_of_xsettings): Declare xft-settings.
2826
2827 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
2828
2829 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2830
2831 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2832
2833 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2834
2835 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
2836
2837 * emacs.c (standard_args): Adjust arg priorities to reflect how
2838 they are processed in startup.el.
2839
2840 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2841
2842 * Makefile.in (lisp, shortlisp): Update.
2843
2844 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2845
2846 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2847 code, link the new kboard into all_kboard before running Lisp code,
2848 and protect the new terminal with GCPRO (Bug#5365).
2849 (x_term_init): Remove unused var `atom'.
2850 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2851
2852 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2853
2854 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2855 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2856 to find out usable size of the desktop. Don't make frames larger than
2857 this. Bug #3643.
2858
2859 2010-01-15 Kenichi Handa <handa@m17n.org>
2860
2861 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2862
2863 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
2864
2865 * nsterm.m (Qnone): Define.
2866
2867 * nsfns.m (Qnone): Move definition to nsterm.m.
2868
2869 2010-01-14 Kenichi Handa <handa@m17n.org>
2870
2871 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2872 systems.
2873
2874 2010-01-14 Kenichi Handa <handa@m17n.org>
2875
2876 Make auto-composition work on all buffers even if they are
2877 fundamental mode.
2878
2879 * composite.c (Vauto_composition_mode): New variable.
2880 (composition_compute_stop_pos): Check Vauto_composition_mode
2881 instead of Vauto_composition_function.
2882 (composition_adjust_point, Ffind_composition_internal): Likewise.
2883 (syms_of_composite): Declare Lisp variable
2884 "auto-composition-mode" here.
2885
2886 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
2887
2888 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2889 during call to vendor-specific-keysyms (Bug#5365).
2890
2891 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2892
2893 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2894 Call SIGNAL_THREAD_CHECK (Bug#5333).
2895
2896 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2897 Call SIGNAL_THREAD_CHECK.
2898
2899 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2900
2901 Try to fix bug#5314. This is probably not the final word, tho.
2902 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2903 recent-auto-save-p as a side-effect.
2904 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2905 * buffer.c (Fkill_buffer, reset_buffer):
2906 * editfns.c (Fsubst_char_in_region):
2907 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2908 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2909
2910 2010-01-13 Kenichi Handa <handa@m17n.org>
2911
2912 Display buffer name, etc. in mode line by composing correctly.
2913
2914 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2915 STRING is not nil.
2916 (display_mode_element): Adjust for the change of
2917 decode_mode_spec and display_line.
2918 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2919 (display_string): Handle the case that STRING is non-null and
2920 LISP_STRING is not nil.
2921
2922 * xterm.c (x_draw_composite_glyph_string_foreground):
2923 Pay attention to s->face->overstrike.
2924
2925 * composite.c (composition_reseat_it): Don't check PT if STRING is
2926 non nil.
2927
2928 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2929
2930 * keyboard.c (read_char): Don't apply previous change when current
2931 buffer is unchanged by command execution.
2932
2933 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2934
2935 * keyboard.c (read_char): Return after executing from special map.
2936
2937 2010-01-12 Glenn Morris <rgm@gnu.org>
2938
2939 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2940 bug-gnu-emacs rather than emacs-pretest-bug.
2941
2942 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
2943
2944 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2945 initializing the Lisp variables that depend on them.
2946
2947 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2948
2949 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2950 Clear areas that will not be updated after change of menu bar lines.
2951 Clear the menu bar window's current matrix when the window gets empty.
2952
2953 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
2954
2955 * intervals.h, textprop.c (extend_property_ranges): Return value
2956 and args changed. Discard properties that begin at or after the
2957 new end (Bug#5306).
2958
2959 * editfns.c (Fformat): Caller changed.
2960
2961 * nsterm.m (ns_set_default_prefs): Delete function.
2962 (syms_of_nsterm): Initialize ns_command_modifier,
2963 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2964 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2965
2966 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2967 position (Bug#4040).
2968
2969 2010-01-09 Eli Zaretskii <eliz@gnu.org>
2970
2971 * editfns.c (Ffloat_time): Doc fix.
2972
2973 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2974
2975 * xfns.c (Fx_create_frame): Don't create frame larger than display
2976 by default bug#3643.
2977
2978 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2979
2980 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2981 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2982 windows above internal border.
2983
2984 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2985 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2986 windows above internal border.
2987
2988 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2989 tool bar windows specially.
2990
2991 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2992
2993 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2994 specially.
2995 (XTflash): Take account of menu bar height.
2996
2997 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2998 specially.
2999
3000 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
3001
3002 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
3003 also be true before we can return early (bug #5339).
3004
3005 2010-01-06 David Reitter <david.reitter@gmail.com>
3006
3007 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
3008 (Fns_display_usable_bounds): Rewrite, computing bounds properly
3009 (Bug#3233).
3010
3011 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3012
3013 * font.c (font_open_entity): Enable chache and call cached_font_ok
3014 for the driver if defined.
3015 (QCuser_spec): New symbol.
3016 (font_spec_from_name): Save name as user-spec.
3017 (font_load_for_lface): Keep user-spec instead of name.
3018 (font_open_by_name): Save name as user-spec.
3019 (syms_of_font): Initialize QCuser_spec.
3020 (font_clear_prop): Clear name if it exists in font (bug#5157).
3021
3022 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3023 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3024 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3025
3026 * font.h (struct font_driver): Add cached_font_ok.
3027
3028 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3029
3030 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3031
3032 * xterm.c (x_new_font): Move code for setting rows/cols before
3033 resizing ...
3034 (x_set_window_size): ... to here. Bug #2568.
3035
3036 * gtkutil.c (xg_clear_under_internal_border): New function.
3037 (xg_frame_resized, xg_frame_set_char_size):
3038 Call xg_clear_under_internal_border.
3039 (xg_update_scrollbar_pos): Clear under old scroll bar position.
3040
3041 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
3042
3043 * keyboard.c (read_key_sequence): Catch keyboard switch after
3044 making a new tty frame (Bug#5095).
3045
3046 2010-01-05 Kenichi Handa <handa@m17n.org>
3047
3048 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3049
3050 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3051
3052 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3053 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3054 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3055
3056 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
3057
3058 * dbusbind.c (xd_add_watch): Improve debug message.
3059 (xd_remove_watch): Improve debug message. If DATA is the session
3060 bus, unset D-Bus session environment.
3061 (Fdbus_init_bus): Pass the bus as argument to
3062 dbus_connection_set_watch_functions. (Bug#5283)
3063
3064 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
3065
3066 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3067
3068 * lread.c (syms_of_lread): Make it clearer that these are the
3069 names of loaded files (Bug#5068).
3070
3071 * eval.c (run_hook_with_args): Handle the case where the global
3072 value has the obsolete single-function form (Bug#5026).
3073
3074 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
3075
3076 * minibuf.c (Fall_completions): Minor optimization.
3077
3078 2009-12-26 Eli Zaretskii <eliz@gnu.org>
3079
3080 * .gdbinit (pgx): Fix display of composite glyphs.
3081 Display cmp.from and cmp.to as well.
3082 (pitx): Fix last change.
3083
3084 2009-12-25 Kenichi Handa <handa@m17n.org>
3085
3086 * composite.h (composition_adjust_point): Update prototype.
3087
3088 * composite.c (composition_reseat_it): Don't make a composition
3089 spanning over point.
3090 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3091 composable characters.
3092 (composition_adjust_point): New arg NEW_PT. Callers changed.
3093
3094 * keyboard.c (command_loop_1): Force redisplay if the last point
3095 was within a composition.
3096 (adjust_point_for_property): Don't adjust point for automatic
3097 composition when called after buffer modification.
3098
3099 2009-12-19 Eli Zaretskii <eliz@gnu.org>
3100
3101 * .gdbinit (pitx): Don't use enum names, use their values.
3102 Remove reference to non-existing value GET_FROM_COMPOSITION.
3103 (pgx): Don't use enum names, use their values.
3104 (pitmethod): New helper command.
3105 (pitx): Use it to display iteration method.
3106 (pgrowit): New command.
3107
3108 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3109
3110 Update dependencies in Makefile.in.
3111
3112 * Makefile.in (alloc.o): Depend on termhooks.h.
3113 (atimer.o): Depend on blockinput.h.
3114 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3115 and frame.h.
3116 (callint.o): Depend on systime.h, coding.h, and composite.h.
3117 (callproc.o): Depend on buffer.h.
3118 (casefiddle.o): Don't depend on charset.h.
3119 (casetab.o): Depend on character.h.
3120 (ccl.o): Depend on composite.h.
3121 (chartab.o): Depend on ccl.h.
3122 (cm.o): Depend on dispextern.h.
3123 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3124 (coding.o): Don't depend on $(INTERVALS_H).
3125 (composite.o): Don't depend on dispextern.h explicitly (it's in
3126 $(INTERVALS_H)). Depend on ccl.h.
3127 (data.o): Depend on systime.h, coding.h, composite.h,
3128 dispextern.h, font.h, and ccl.h.
3129 (dired.o): Depend on composite.h.
3130 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3131 composite.h (it's in $(INTERVALS_H)).
3132 (doc.o): Depend on systime.h, coding.h, and composite.h.
3133 (editfns.o): Don't depend explicitly on dispextern.h.
3134 (emacs.o): Depend on frame.h and coding.h.
3135 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3136 (fileio.o): Depend on frame.h and commands.h. Don't depend
3137 explicitly on dispextern.h.
3138 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3139 composite.h.
3140 (fns.o): Don't depend on termhooks.h.
3141 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3142 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3143 coding.h, $(INTERVALS_H), window.h, xterm.h.
3144 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3145 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3146 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3147 fontset.h, ccl.h, and ftfont.h.
3148 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3149 (gtkutil.o): Depend on dispextern.h and composite.h.
3150 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3151 termhooks.h, and ccl.h.
3152 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3153 (intervals.o): Depend on systime.h and coding.h.
3154 (keyboard.o): Depend on composite.h and coding.h.
3155 (keymap.o): Depend on coding.h and frame.h.
3156 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3157 (macros.o): Depend on systime.h, coding.h, and composite.h.
3158 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3159 and atimer.h.
3160 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3161 dispextern.h explicitly.
3162 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3163 Don't depend explicitly on dispextern.h and composite.h.
3164 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3165 (regex.o): Don't depend on charset.h.
3166 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3167 (search.o): Don't depend explicitly on composite.h.
3168 (sound.o): Depend on atimer.h and systime.h.
3169 (syntax.o): Don't depend explicitly on composite.h.
3170 (sysdep.o): Depend on coding.h and composite.h.
3171 (term.o): Depend on xterm.h and buffer.h.
3172 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3173 (textprop.o): Don't depend on dispextern.h explicitly.
3174 (undo.o): Depend on dispextern.h.
3175 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3176 dispextern.h and composite.h explicitly.
3177 (xdisp.o): Depend on ccl.h.
3178 (xfaces.o): Depend on coding.h and ccl.h.
3179 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3180 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3181 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3182 ftfont.h.
3183 (xgselect.o): New dependency.
3184 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3185 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3186 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3187 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3188 (xsmfns.o): Depend on frame.h and dispextern.h.
3189 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3190 sysselect.h.
3191
3192 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3193
3194 * font.c (Fclear_font_cache): Pass correct cache argument to
3195 font_clear_cache.
3196
3197 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3198
3199 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3200 twice.
3201
3202 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
3203
3204 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3205 calling file-remote-p. Reported by Jim Meyering.
3206
3207 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
3208
3209 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
3210 avoid compiler warnings. (Bug #5217)
3211
3212 2009-12-14 Kenichi Handa <handa@m17n.org>
3213
3214 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3215 in 8-bit encoding.
3216
3217 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
3218
3219 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3220 tooltip windows.
3221
3222 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3223
3224 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3225 Xatom_net_window_type.
3226
3227 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3228 Xatom_net_window_type.
3229
3230 * xterm.c (my_log_handler): New function.
3231 (x_term_init): Set my_log_handler as log handler during gtk_init
3232 so we can filter out buggy messages. (Bug #5120).
3233
3234 * xterm.c (xg_scroll_callback): Parameter list changed,
3235 use parameter GtkScrollType to determine scroll/line/page.
3236 Only allow dragging if a button < 4 is grabbed (bug #5177).
3237 (xg_end_scroll_callback): New function.
3238 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3239 xg_create_scroll_bar.
3240
3241 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3242 (scroll_end_callback): Remove.
3243 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3244 button-release-event. Replace value-changed event with change-value,
3245 bug #5177,
3246 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3247 bug #5177.
3248
3249 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3250 (xg_create_scroll_bar): Add GCallback end_callback.
3251
3252 * xftfont.c (QClcdfilter): New variable.
3253 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3254 (syms_of_xftfont): Initialize QClcdfilter.
3255
3256 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3257
3258 * xsettings.c (struct xsettings): Add member seen.
3259 (parse_xft_settings): Update member seen with what we have read.
3260 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3261 (apply_xft_settings): Only update Xft settings with what member seen
3262 indicates as new.
3263
3264 2009-12-12 Eli Zaretskii <eliz@gnu.org>
3265
3266 * dispextern.h (struct text_pos): Use EMACS_INT;
3267 (struct glyph): Use EMACS_INT for charpos.
3268 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3269 region_beg_charpos, region_end_charpos,
3270 redisplay_end_trigger_charpos, and also for
3271 iterator_stack_entry.end_charpos and
3272 iterator_stack_entry.stop_charpos.
3273
3274 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3275
3276 * gtkutil.c (scroll_end_callback): New function (bug #5177).
3277 (xg_create_scroll_bar): Call scroll_end_callback on button release
3278 event (bug #5177).
3279 (xg_event_is_for_scrollbar): != replaced with ==.
3280
3281 2009-12-12 Kenichi Handa <handa@m17n.org>
3282
3283 * ftfont.c (struct ftfont_info): New member matrix.
3284 (ftfont_open): Setup xftfont_info->matrix.
3285 (MFLTFontFT): New member matrix.
3286 (FLOOR, CEIL, ROUND): New macros.
3287 (ftfont_get_metrics): Handle matrix transformation.
3288 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3289
3290 * xftfont.c (struct xftfont_info): New member matrix.
3291 (xftfont_open): Setup xftfont_info->matrix.
3292
3293 2009-12-10 Kenichi Handa <handa@m17n.org>
3294
3295 * xdisp.c (append_space_for_newline): Consider face-remapping.
3296
3297 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3298
3299 * xsettings.c: Include "keyboard.h".
3300
3301 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3302
3303 Fix implicit function declarations.
3304 * cmds.c: Include "frame.h".
3305 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3306 * frame.h: Move declaration of delete_frame outside of
3307 HAVE_WINDOW_SYSTEM.
3308
3309 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3310
3311 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3312
3313 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3314 GTK builds.
3315
3316 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3317
3318 * unexelf.c (unexec): Don't search for .data twice.
3319
3320 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3323 if push failed.
3324 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3325 of push_display_prop (Bug#5000).
3326
3327 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3328 value of font_list_entities (Bug#5085).
3329
3330 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
3331
3332 Fix `string-to-number' to deal consistently with integers and floats.
3333 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3334 trailing characters, not just whitespace.
3335 (read1): Pass new arg 0 to keep old behavior.
3336 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3337 trailing chars, as it is already done for integers. Doc fixes.
3338 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3339
3340 2009-12-04 Eli Zaretskii <eliz@gnu.org>
3341
3342 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3343 Delete unused enumeration value.
3344
3345 2009-12-03 Eli Zaretskii <eliz@gnu.org>
3346
3347 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3348
3349 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3350
3351 * process.c (Fmake_network_process): Fix up the tests for
3352 "connectionless socket", so they DTRT for seqpacket sockets as well.
3353
3354 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3355
3356 * process.c (Qseqpacket): New symbol.
3357 (HAVE_SEQPACKET): New macro.
3358 (Fmake_network_process): Accept new :type `seqpacket'.
3359 (init_process): Add `seqpacket' feature when applicable.
3360 (syms_of_process): Initialize Qseqpacket.
3361
3362 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3363
3364 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3365 if entity is Qnil.
3366
3367 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3368
3369 * print.c (print_preprocess): Preprocess the key_and_value table of
3370 hashtables, even tho they're "hidden" (bug#5082).
3371
3372 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3373
3374 * frame.c (frame_make_pointer_invisible)
3375 (frame_make_pointer_visible): Declare f before statements.
3376
3377 2009-11-28 Eli Zaretskii <eliz@gnu.org>
3378
3379 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3380 omitted dependencies on lisp.h.
3381
3382 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3383
3384 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3385 is NULL.
3386
3387 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3388
3389 * frame.c (frame_make_pointer_invisible)
3390 (frame_make_pointer_visible): Just return if there isn't any selected
3391 frame.
3392
3393 * search.c (simple_search): Remove warning by making *p const.
3394
3395 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3396
3397 * xdisp.c (power_letter): Remove duplicate const.
3398
3399 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3400
3401 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3402
3403 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
3404 defaults (bug #5025).
3405
3406 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3407
3408 * insdel.c (adjust_markers_for_delete): Move it in the
3409 right direction! (bug#4803)
3410
3411 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3412
3413 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3414
3415 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3416
3417 2009-11-24 Glenn Morris <rgm@gnu.org>
3418
3419 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3420
3421 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3422
3423 * Makefile.in: Must create deps for ecrt0.o in its rule.
3424
3425 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3426 because that is what Gtk+ font dialog understands.
3427
3428 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3429 of Fcopy_sequence.
3430 (font_open_by_name): Put name given into QCname for font-object returned.
3431
3432 * frame.c (x_set_font): Save original font name as frame parameter
3433 font-parameter.
3434
3435 * xsettings.c (set_default_xft_settings): New function.
3436 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3437 is found.
3438
3439 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3440
3441 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3442 searching backwards through multibyte buffer.
3443
3444 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3445
3446 * xterm.c: #include xgselect.h.
3447 (x_initialize): Call xgselect_initialize.
3448
3449 * xsettings.c (something_changedCB): C++ comments => C comments.
3450 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3451 does that now.
3452
3453 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3454 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3455 (scroll_bar_button_cb): Remove.
3456 (create_menus): C++ comments => C comments. Don't bind grab-notify
3457 event.
3458 (xg_create_scroll_bar): Don't bind button-press-event and
3459 button-release-event.
3460
3461 * process.c: Include xgselect.h if defined (USE_GTK) ||
3462 defined (HAVE_GCONF).
3463 (wait_reading_process_output): Call xg_select for the same condition.
3464
3465 * xgselect.c (xg_select): New function to better integrate with
3466 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3467
3468 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3469
3470 * Makefile.in (XOBJ): Add xgselect.o.
3471
3472 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3473
3474 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3475 Remove ignored second argument. All callers changed.
3476 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3477 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3478 * xdisp.c (string_char_and_length): Likewise.
3479
3480 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3481
3482 * xterm.c (x_new_font):
3483 * print.c (print_object):
3484 * cmds.c (Fself_insert_command): Move declarations before statements.
3485
3486 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3487
3488 * s/cygwin.h: Remove unneeded linker flags.
3489
3490 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3491
3492 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3493
3494 * xsettings.h: Declare xsettings_get_system_font.
3495
3496 * xsettings.c (xsettings_get_system_font): New function.
3497 (init_gconf): No use initiating gconf unless we have Xft also.
3498 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3499 HAVE_GCONF.
3500
3501 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3502 add a blank entry so it doesn't collapse into nothing.
3503
3504 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3505
3506 * lread.c (Funintern): Comment out last change.
3507
3508 2009-11-19 Richard Stallman <rms@gnu.org>
3509
3510 * lread.c (Funintern): Error if symbol is t or nil.
3511
3512 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3513
3514 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3515 representation of Lisp integers.
3516 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3517
3518 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3519
3520 * lisp.h: Remove declaration of Ffont_get_system_font.
3521 * xfns.c: Move include of "xsettings.h".
3522 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3523
3524 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3525
3526 * xsettings.c (something_changedCB, Ffont_get_system_font):
3527 Check use_system_font.
3528 (syms_of_xsettings): DEFVAR font-use-system-font.
3529
3530 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3531
3532 * xfns.c (x_default_font_parameter): Remove dead assignment.
3533
3534 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3535
3536 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3537
3538 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
3539 not have FC_LCD_*. #define them if not there.
3540
3541 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
3542
3543 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3544
3545 * xterm.c (handle_one_xevent): Call xft_settings_event for
3546 ClientMessage, PropertyNotify and DestroyNotify.
3547 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3548 Call xsettings_initialize.
3549
3550 * xftfont.c (xftfont_fix_match): New function.
3551 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3552 Call xftfont_fix_match after XftFontMatch.
3553
3554 * xfont.c (xfont_driver): Initialize all members.
3555
3556 * xfns.c (x_default_font_parameter):
3557 Try font from Ffont_get_system_font.
3558 Do not get font from x_default_parameter if we got one from
3559 Ffont_get_system_font.
3560 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
3561
3562 * w32font.c (w32font_driver): Initialize all members.
3563
3564 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3565
3566 * lisp.h: Declare syms_of_xsettings.
3567
3568 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3569 Handle CONFIG_CHANGED_EVENT.
3570
3571 * ftfont.c (ftfont_filter_properties): New function.
3572
3573 * frame.c (x_set_font): Remove unused variable lval.
3574
3575 * font.h (struct font_driver): Add filter_properties.
3576
3577 * font.c (font_put_extra): Don't return if val is nil, it means
3578 boolean option is off.
3579 (font_parse_fcname): Collect all extra properties in extra_props
3580 and call filter_properties for all drivers with extra_props and
3581 font as parameter.
3582 (font_open_entity): Do not use cache, it does not pick up new
3583 fontconfig settings like hinting.
3584 (font_load_for_lface): If spec had a name in it, store it in entity.
3585
3586 * emacs.c (main): Call syms_of_xsettings.
3587
3588 * config.in: HAVE_GCONF is new.
3589
3590 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3591 xsettings.o is new.
3592
3593 2009-11-17 Kenichi Handa <handa@m17n.org>
3594
3595 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3596 back to the default font in case that no suitable font is found.
3597
3598 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3599
3600 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3601 Suggested by Chad Brown <yandros@mit.edu>.
3602 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3603
3604 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3605
3606 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3607
3608 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3609
3610 * Makefile.in: Ignore errors from mkdir when creating deps directory.
3611
3612 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3613
3614 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3615 has a parent.
3616
3617 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
3618 dependency files in deps/. Include those files into Makefile.
3619
3620 * config.in: Generated (AUTO_DEPEND).
3621
3622 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
3623
3624 * dbusbind.c (Vdbus_registered_objects_table): Rename from
3625 Vdbus_registered_functions_table, because it contains also
3626 properties. Fix docstring.
3627 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
3628
3629 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3630
3631 * alloc.c (mark_object): Don't reprocess marked strings.
3632 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3633 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3634
3635 2009-11-13 Kenichi Handa <handa@m17n.org>
3636
3637 * category.c (word_boundary_p): Adjust for the change of the
3638 semantics of Vword_combining_categories.
3639 (Vword_combining_categories): Describe the slight change of the
3640 semantics.
3641
3642 2009-11-13 Eli Zaretskii <eliz@gnu.org>
3643
3644 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3645
3646 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3647
3648 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3649
3650 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3651
3652 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
3653
3654 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3655
3656 2009-11-11 David Reitter <david.reitter@gmail.com>
3657
3658 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3659 variables to fix 2009-11-09 change.
3660
3661 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3662
3663 * process.c (ifflag_def): Make flag_sym constant.
3664 (Fnetwork_interface_info): Use a constant pointer.
3665 (ifflag_table):
3666 * xfns.c (cursor_bits):
3667 * xdisp.c (power_letter):
3668 * termcap.c (speeds, esctab):
3669 * sysdep.c (baud_convert):
3670 * keyboard.c (lispy_accent_codes, modifier_names):
3671 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3672 (jpeg_format, tiff_format, gif_format, svg_format)
3673 (interlace_start, interlace_increment, gs_format):
3674 * gtkutil.c (separator_names):
3675 * fringe.c (swap_nibble):
3676 * fns.c (base64_value_to_char, base64_char_to_value):
3677 * fileio.c (make_temp_name_tbl):
3678 * coding.c (suffixes): Make constant.
3679
3680 * frame.c (make_initial_frame):
3681 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3682 build_string.
3683 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3684
3685 * s/freebsd.h:
3686 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3687
3688 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3689 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3690
3691 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3692 * xterm.c (syms_of_xterm):
3693 * xfaces.c (syms_of_xfaces):
3694 * xdisp.c (syms_of_xdisp):
3695 * lread.c (syms_of_lread):
3696 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3697 build_string.
3698
3699 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3700
3701 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3702
3703 * fns.c (Fplist_get): Merge the active and the commented out code.
3704
3705 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3706
3707 * keyboard.h: Declare timer_check.
3708
3709 * keyboard.c (timer_check_2): New function that does what the old
3710 timer_check did.
3711 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3712 returned, i.e. don't return -1 with timers pending.
3713
3714 * process.c: Remove extern declaration of timer_check.
3715
3716 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3717 even if timer_check returned -1.
3718
3719 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3720 xg_dialog_data.
3721 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3722 the event loop.
3723 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3724 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3725 Destroy the dialog after xg_dialog_run.
3726
3727 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3728
3729 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3730
3731 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3732
3733 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3734
3735 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
3736
3737 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3738
3739 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3740
3741 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3742 w32menu.c, and nsmenu.m.
3743 Simplify the obsolete case where position is nil.
3744 (cleanup_popup_menu): New function, moved from nsmenu.m.
3745 (struct skp): Remove slot `notreal'.
3746 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3747 adjust callers.
3748 (single_menu_item): Adjust call to parse_menu_item.
3749 (syms_of_menu): Defsubr x-popup-menu.
3750 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3751 (keymap_panes): Don't export any more.
3752 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3753 (xmenu_show): Declare.
3754 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3755 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3756 * keyboard.h (parse_menu_item): Update declaration.
3757 * xmenu.c (Fx_popup_menu): Remove.
3758 (syms_of_xmenu): Don't defsubr x-popup-menu.
3759 * w32menu.c (Fx_popup_menu): Remove.
3760 (syms_of_w32menu): Don't defsubr x-popup-menu.
3761 * nsmenu.m (cleanup_popup_menu): Remove.
3762 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3763 moved to menu.c's Fx_popup_menu.
3764 (Fx_popup_menu): Remove.
3765 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3766 menu_items (it's done in menu.c already).
3767
3768 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3769
3770 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3771 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3772
3773 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
3774
3775 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
3776 xmenu_show. Hide any tooltip before opening a menu.
3777 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3778 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3779
3780 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3781
3782 Let integers use up 2 tags to give them one extra bit and thus double
3783 their range.
3784 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3785 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3786 New macros.
3787 (enum Lisp_Type): Use them. Give explicit values.
3788 (Lisp_Type_Limit): Remove.
3789 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3790 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3791 Pay attention to USE_2_TAGS_FOR_INTS.
3792 (INTEGERP): Use LISP_INT_TAG_P.
3793 * fns.c (internal_equal): Simplify the default case.
3794 (sxhash): Use case_Lisp_Int.
3795 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3796 any more.
3797 (Ftype_of): Use case_Lisp_Int.
3798 (store_symval_forwarding): Take into account the fact that Ints can
3799 now have more than one tag.
3800 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3801 buffer_slot_type_mismatch):
3802 * xfaces.c (face_attr_equal_p):
3803 * print.c (print_object):
3804 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3805 Use case_Lisp_Int.
3806
3807 2009-11-06 Eli Zaretskii <eliz@gnu.org>
3808
3809 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3810
3811 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3812 warning.
3813
3814 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3815
3816 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3817
3818 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3819
3820 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3821 ButtonPressRelease and MotionNotify (bug#4870).
3822
3823 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3824
3825 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3826
3827 * xterm.c (syms_of_xterm):
3828 * xselect.c (syms_of_xselect):
3829 * xmenu.c (syms_of_xmenu):
3830 * xfns.c (syms_of_xfns):
3831 * xfaces.c (syms_of_xfaces):
3832 * xdisp.c (syms_of_xdisp):
3833 * window.c (syms_of_window):
3834 * w32fns.c (syms_of_w32fns):
3835 * undo.c (syms_of_undo):
3836 * textprop.c (syms_of_textprop):
3837 * terminal.c (syms_of_terminal):
3838 * syntax.c (syms_of_syntax):
3839 * sound.c (syms_of_sound):
3840 * search.c (syms_of_search):
3841 * print.c (syms_of_print):
3842 * minibuf.c (syms_of_minibuf):
3843 * macros.c (syms_of_macros):
3844 * keymap.c (syms_of_keymap, initial_define_key)
3845 (initial_define_lispy_key):
3846 * keyboard.c (syms_of_keyboard):
3847 * insdel.c (syms_of_insdel):
3848 * image.c (syms_of_image):
3849 * fringe.c (syms_of_fringe):
3850 * frame.c (syms_of_frame):
3851 * fontset.c (syms_of_fontset):
3852 * fns.c (syms_of_fns):
3853 * fns.c (syms_of_fns):
3854 * fileio.c (syms_of_fileio):
3855 * fileio.c (syms_of_fileio):
3856 * eval.c (syms_of_eval):
3857 * doc.c (syms_of_doc):
3858 * dispnew.c (syms_of_display):
3859 * dired.c (syms_of_dired):
3860 * dbusbind.c (syms_of_dbusbind):
3861 * data.c (syms_of_data):
3862 * composite.c (syms_of_composite):
3863 * coding.c (syms_of_coding):
3864 * cmds.c (syms_of_cmds):
3865 * charset.c (define_charset_internal, syms_of_character):
3866 * ccl.c (syms_of_ccl):
3867 * category.c (syms_of_category, init_category_once):
3868 * casetab.c (syms_of_casetab):
3869 * casefiddle.c (syms_of_casefiddle):
3870 * callint.c (syms_of_callint):
3871 * bytecode.c (syms_of_bytecode):
3872 * buffer.c (keys_of_buffer, syms_of_buffer):
3873 * alloc.c (syms_of_alloc):
3874 * process.c (syms_of_process, init_process):
3875 * lread.c (syms_of_lread, init_obarray):
3876 * font.c (build_style_table):
3877 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3878 intern_c_string, calls to make_pure_string with
3879 make_pure_c_string. Use pure_cons instead of Fcons.
3880
3881 * process.c (socket_options): Make it const.
3882 (set_socket_option, init_process): Use a const pointer.
3883
3884 * lread.c (intern_c_string): New function.
3885 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3886 (defvar_int): Uset it. Make the name const char*.
3887
3888 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3889 (defvar_int): Update prototypes.
3890 (DEFUN, EXFUN): Support for prototypes is now required.
3891 (intern_c_string): New prototype.
3892 (struct Lisp_Subr): Make symbol_name constant.
3893
3894 * font.c (struct table_entry): Remove unused member. Make NAMES
3895 constant.
3896 (weight_table, slant_table, width_table): Make constant.
3897
3898 * emacs.c (struct standard_args): Make name and longname constant.
3899
3900 * character.h (DEFSYM): Use intern_c_string.
3901
3902 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3903
3904 * alloc.c (make_pure_c_string): New function.
3905
3906 * eval.c (Fautoload): Purecopy all arguments.
3907
3908 2009-11-05 Kenichi Handa <handa@m17n.org>
3909
3910 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3911 the buffer in case of replace.
3912
3913 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3914
3915 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3916
3917 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3918
3919 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3920 when applicable (bug#4851).
3921
3922 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3923 (P_): Support for prototypes is now required.
3924
3925 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
3926
3927 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3928 (Bug#4827).
3929
3930 2009-10-30 Eli Zaretskii <eliz@gnu.org>
3931
3932 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
3933
3934 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3935
3936 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3937
3938 * lread.c (Fload): Purecopy the file name when building
3939 Vpreloaded_file_list.
3940
3941 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3942
3943 * w32fns.c (syms_of_w32fns): Change default value of
3944 w32-scroll-lock-modifier to nil. (Bug#2827)
3945
3946 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3947
3948 * minibuf.c (Fall_completions): Fix typos in docstring.
3949
3950 2009-10-26 Andreas Schwab <schwab@redhat.com>
3951
3952 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3953
3954 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
3955
3956 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3957 For delta < 0, skip check that only makes sense when the mini-window
3958 is going to be enlarged. (Bug#4534)
3959
3960 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3963 string in menu maps (Bug#4471).
3964
3965 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
3966
3967 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3968 FRAME_NS_VIEW on terminal frames (Bug#4765).
3969
3970 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3971
3972 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3973 DBUS_TYPE_UINTnn separately to get proper sign extension.
3974
3975 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3976 can properly handle unsigned types.
3977 (make_uid, make_gid): Remove.
3978
3979 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3980 types again.
3981
3982 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
3983 (system_process_attributes): Likewise.
3984
3985 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3986
3987 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3988
3989 * eval.c (Fautoload): Purecopy the filename. Simplify.
3990
3991 * category.c (Fdefine_category): Purecopy docstring.
3992
3993 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3994
3995 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3996
3997 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3998
3999 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
4000
4001 * window.c (Fwindow_edges, Fwindow_pixel_edges)
4002 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
4003 (Bug#4775).
4004
4005 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
4006
4007 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
4008 (init_fileio_once):
4009 * lisp.h (init_fileio_once): Remove.
4010 * emacs.c (main): Don't call init_fileio_once.
4011
4012 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4013
4014 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4015
4016 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4017
4018 * doprnt.c (doprnt): Fix overflow check.
4019
4020 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4021
4022 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4023
4024 * xterm.h (x_wait_for_event): Declare it.
4025
4026 * xterm.c (pending_event_wait): New variable.
4027 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4028 see pending_event_wait.eventtype.
4029 (handle_one_xevent): Don't change gravity when parent changes.
4030 (x_new_font): Call change_frame_size with new rows/columns before we
4031 try to resize the frame.
4032 (x_wait_for_event): New function.
4033 (x_set_window_size_1): Don't change gravity unless change_gravity
4034 is set.
4035 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4036 don't change frame size, instead wait for the ConfigureNotify.
4037 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4038 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4039 (x_initialize): Initialize pending_event_wait.
4040
4041 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4042 size.
4043
4044 * widget.c (EmacsFrameSetValues): Add comment.
4045 (EmacsFrameSetCharSize): Just call x_set_window_size.
4046
4047 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4048 x_wait_for_event.
4049 (flush_and_sync): Remove again.
4050 (xg_get_font_name): Suggest monospace if no previous font is known.
4051
4052 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4053
4054 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
4055 8th bit, since that only made sense in the ASCII world (bug#4751).
4056
4057 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4058
4059 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4060 processing pending events when event is filtered for input method.
4061 (Bug#3681)
4062
4063 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
4064
4065 * fns.c: Add #endif accidentally removed in previous change.
4066
4067 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4068
4069 * fns.c: Remove code for unsupported system: MAC_OS.
4070 * image.c: Likewise. Include setjmp.h.
4071
4072 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4073
4074 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4075 pixel -1 (bug #4742).
4076
4077 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4078
4079 * process.c (create_pty): Remove conditionals for no longer
4080 supported systems: UNIPLUS and RTU.
4081
4082 * xterm.c:
4083 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4084
4085 * alloc.c: Do not define struct catchtag.
4086 * eval.c: Move struct catchtag definition ...
4087 * lisp.h: ... here.
4088
4089 * image.c: Move png.h #include earlier to avoid warnings.
4090
4091 * xterm.c:
4092 * xsmfns.c:
4093 * xselect.c:
4094 * xrdb.c:
4095 * xmenu.c:
4096 * xftfont.c:
4097 * xfont.c:
4098 * xfns.c:
4099 * xfaces.c:
4100 * xdisp.c:
4101 * window.c:
4102 * widget.c:
4103 * w32xfns.c:
4104 * w32uniscribe.c:
4105 * w32term.c:
4106 * w32select.c:
4107 * w32reg.c:
4108 * w32proc.c:
4109 * w32menu.c:
4110 * w32inevt.c:
4111 * w32heap.c:
4112 * w32font.c:
4113 * w32fns.c:
4114 * w32console.c:
4115 * w32.c:
4116 * w16select.c:
4117 * vm-limit.c:
4118 * unexsol.c:
4119 * unexec.c:
4120 * unexcw.c:
4121 * unexaix.c:
4122 * undo.c:
4123 * tparam.c:
4124 * textprop.c:
4125 * terminfo.c:
4126 * terminal.c:
4127 * termcap.c:
4128 * term.c:
4129 * syntax.c:
4130 * sound.c:
4131 * sheap.c:
4132 * search.c:
4133 * scroll.c:
4134 * region-cache.c:
4135 * regex.c:
4136 * ralloc.c:
4137 * process.c:
4138 * print.c:
4139 * nsterm.m:
4140 * nsselect.m:
4141 * nsmenu.m:
4142 * nsimage.m:
4143 * nsfont.m:
4144 * nsfns.m:
4145 * msdos.c:
4146 * minibuf.c:
4147 * menu.c:
4148 * marker.c:
4149 * macros.c:
4150 * keymap.c:
4151 * keyboard.c:
4152 * intervals.c:
4153 * insdel.c:
4154 * indent.c:
4155 * gtkutil.c:
4156 * ftxfont.c:
4157 * ftfont.c:
4158 * fringe.c:
4159 * frame.c:
4160 * fontset.c:
4161 * font.c:
4162 * fns.c:
4163 * floatfns.c:
4164 * filelock.c:
4165 * fileio.c:
4166 * emacs.c:
4167 * editfns.c:
4168 * dosfns.c:
4169 * doprnt.c:
4170 * doc.c:
4171 * dispnew.c:
4172 * dired.c:
4173 * dbusbind.c:
4174 * data.c:
4175 * composite.c:
4176 * coding.c:
4177 * cmds.c:
4178 * cm.c:
4179 * chartab.c:
4180 * charset.c:
4181 * character.c:
4182 * ccl.c:
4183 * category.c:
4184 * casetab.c:
4185 * casefiddle.c:
4186 * callproc.c:
4187 * callint.c:
4188 * bytecode.c:
4189 * buffer.c:
4190 * atimer.c: Include setjmp.h. (Bug#4643)
4191
4192 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4193
4194 Remove leftover table unibyte_to_multibyte_table.
4195 * character.c (unibyte_to_multibyte_table): Remove.
4196 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4197 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4198 * character.h (UNIBYTE_TO_CHAR): New macro.
4199 (MAKE_CHAR_MULTIBYTE): Use it.
4200 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4201 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4202 (message_dolog, set_message_1):
4203 * search.c (Freplace_match):
4204 * editfns.c (Fcompare_buffer_substrings):
4205 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4206 (concat):
4207 * insdel.c (copy_text, count_size_as_multibyte):
4208 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4209 * term.c (produce_glyphs):
4210 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4211 * regex.c (RE_CHAR_TO_MULTIBYTE):
4212 * cmds.c (internal_self_insert):
4213 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4214
4215 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4216
4217 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4218
4219 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4220
4221 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
4222
4223 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4224
4225 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4226
4227 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4228 still needed under Tiger.
4229
4230 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4231
4232 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4233 __Apple__.
4234
4235 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4236
4237 2009-10-15 Kenichi Handa <handa@m17n.org>
4238
4239 * print.c (print_object): Escape a symbol like "2E10" too.
4240
4241 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
4242
4243 Cleanups and changes for 64-bit compile under Snow Leopard.
4244 Based on suggestions by Erik Charlebois.
4245
4246 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4247
4248 * nsfont.m (ns_char_width): Replace deprecated call.
4249 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4250 cast argument.
4251 (nsfont_open): Use ns_char_width() everywhere.
4252 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
4253
4254 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4255
4256 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4257 where appropriate.
4258
4259 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4260 where appropriate.
4261 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4262 Use stringWithUTF8String.
4263 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4264
4265 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4266 Add formal protocol mention to inheritance.
4267 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4268
4269 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4270 Fix printf format.
4271 (ns_query_color): Use CGFloat where appropriate.
4272 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
4273 (EmacsScroller-mouseDown:): Use long format in printf, and cast
4274 argument.
4275
4276 * config.in (NS_HAVE_NSINTEGER): Drop.
4277
4278 * dbusbind.c (dbus-method-return-internal)
4279 (dbus-method-error-internal): Use long format in printf, and cast
4280 argument.
4281
4282 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4283 in printf, and cast argument.
4284
4285 * process.c (list_processes_1): Use long format in printf, and
4286 cast argument.
4287
4288 2009-10-11 Glenn Morris <rgm@gnu.org>
4289
4290 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4291
4292 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4293
4294 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4295 menu bar with a small width so it doesn't enlarge the frame.
4296
4297 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
4298
4299 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4300
4301 2009-10-06 Glenn Morris <rgm@gnu.org>
4302
4303 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4304 SOME_MACHINE_LISP (this enters indirectly via DOC).
4305
4306 2009-10-05 Eli Zaretskii <eliz@gnu.org>
4307
4308 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4309
4310 2009-10-04 Eli Zaretskii <eliz@gnu.org>
4311
4312 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4313 Doc fix.
4314
4315 2009-10-03 Martin Rudalics <rudalics@gmx.at>
4316
4317 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4318
4319 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
4320
4321 * lisp.h (Qdelete_directory_internal): Remove, because it is not
4322 used anymore outside fileio.c.
4323
4324 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4325
4326 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
4327
4328 * lisp.h (Qdelete_directory_internal):
4329 Declare, instead of Qdelete_directory.
4330
4331 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4332
4333 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4334
4335 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4336
4337 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
4338
4339 * fileio.c (Fdelete_directory_internal): Rename from
4340 Fdelete_directory. It is not a command anymore. It has no file
4341 name handler.
4342
4343 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4344
4345 * xdisp.c (get_next_display_element): Use an enum in last change.
4346
4347 2009-09-28 Kenichi Handa <handa@m17n.org>
4348
4349 * xdisp.c (get_next_display_element): Pay attention to
4350 unibyte_display_via_language_environment in handling
4351 Vnobreak_char_display.
4352
4353 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4354
4355 * nsterm.h (ns_app_name): New extern variable.
4356
4357 * nsterm.m (ns_app_name): New variable.
4358 (ns_term_init): Set and use it.
4359 (ns_term_shutdown): Use it.
4360
4361 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4362 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4363
4364 * nsfns.m (ns_set_name_iconic, ns_set_name)
4365 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4366 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4367
4368 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4369 Remove double-casting in client_data comparison.
4370
4371 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4372
4373 * keyboard.c (make_lispy_event): Remember last wheel direction.
4374 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4375
4376 2009-09-26 Glenn Morris <rgm@gnu.org>
4377
4378 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4379 internal.elc. Add term/pc-win.elc.
4380 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4381 term/x-win.elc.
4382 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4383 term/w32-win.elc.
4384 (NS_SUPPORT): New.
4385 (lisp): Add NS_SUPPORT.
4386 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4387
4388 2009-09-25 David Reitter <david.reitter@gmail.com>
4389
4390 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4391 on Mac OS X 10.6+ (bug#4513).
4392
4393 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4394
4395 * frame.c (xrdb_get_resource): Return nil for empty string resources;
4396 some parts of Emacs code (like font selection) don't grok them.
4397 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
4398
4399 2009-09-24 Andreas Schwab <schwab@redhat.com>
4400
4401 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4402
4403 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
4404
4405 * dired.c (Fdirectory_files): Fix typo in docstring.
4406
4407 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4408
4409 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4410 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4411 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4412 under GNUstep.
4413 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4414
4415 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4416 glyph advancement.
4417
4418 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4419
4420 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
4421 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
4422
4423 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4424 deleted (bug #4492).
4425
4426 * nsfont.m (Vns_reg_to_script): New lisp variable.
4427 (syms_of_nsfont): Declare it.
4428 (ns_registry_to_script): New function.
4429 (ns_get_req_script): Call it.
4430 (ns_findfonts): Don't give up on non-unicode registry.
4431
4432 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4433
4434 2009-09-20 Tom Tromey <tromey@redhat.com>
4435
4436 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4437 batch mode (bug#4228).
4438
4439 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
4440
4441 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4442 carefully. (Bug #4339)
4443
4444 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
4445
4446 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
4447
4448 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4449
4450 * emacs.c (inhibit_x_resources): Update doc string for NS.
4451 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
4452 legacy code for -NXHost. Fix error printf in daemon case.
4453
4454 * nsterm.h (ns_no_defaults): Remove.
4455
4456 * nsterm.m (ns_no_defaults): Remove.
4457 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4458 (ns_use_qd_smoothing): Remove legacy variable.
4459 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4460 don't update the NSWindow itself.
4461 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
4462 state detection and store user rect ourselves. (Bug #3581)
4463
4464 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4465 ns_use_qd_smoothing.
4466
4467 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4468 platform versions. Drop support for emacs-20-style face specs.
4469 (x-close-connection): Drop PSFlush() under OS X.
4470 (x-focus-frame): Activate the app first. (Bug #4180)
4471
4472 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * emacs.c (inhibit_x_resources): New variable.
4475 (main) [HAVE_NS]: Don't process --quick command line option.
4476 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4477
4478 * lisp.h (inhibit_x_resources): Declare it extern.
4479
4480 * w32reg.c (x_get_string_resource):
4481 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4482
4483 2009-09-17 Eli Zaretskii <eliz@gnu.org>
4484
4485 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4486 Add lisp/term/internal.elc.
4487
4488 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4489
4490 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4491 (bug#4461).
4492
4493 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4494
4495 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4496
4497 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4498 (OBJECTS_MACHINE): Remove, unused.
4499
4500 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * frame.c (x_get_resource_string): Remove unused.
4503
4504 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4505
4506 * xterm.c (x_new_font): Call change_frame_size before calling
4507 x_set_window_size, in case frame size won't change.
4508
4509 * frame.c (x_set_font): Remove dead code.
4510
4511 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4512
4513 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4514
4515 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4516
4517 * lread.c (Fload): Don't output a message after loading an obsolete
4518 package any more (done in Lisp now).
4519
4520 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
4521
4522 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4523
4524 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4525
4526 * keymap.c (Fwhere_is_internal): Use nconc2.
4527
4528 2009-09-11 Alan Mackenzie <acm@muc.de>
4529
4530 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4531 batch mode.
4532
4533 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4534
4535 * xdisp.c (display_mode_element): Detect cycles.
4536
4537 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4538
4539 * keymap.c (where_is_internal): Don't erroneously return nil right after
4540 filling the cache.
4541 (where_is_internal_1): Fix up typo.
4542
4543 2009-09-11 Glenn Morris <rgm@gnu.org>
4544
4545 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4546 share a common doc-string.
4547
4548 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4549
4550 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4551 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4552
4553 * keymap.c (QCadvertised_binding): New constant.
4554 (syms_of_keymap): Initialize it.
4555 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4556 if applicable.
4557
4558 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4559
4560 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4561 (parse_menu_item): Streamline since bindings are recomputed all the
4562 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4563 more and don't support lmenu's menu-alias any more either.
4564
4565 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4566 (where_is_internal): Strip it down to only traverse the keymaps.
4567 Move the cache handling from Fwhere_is_internal to here.
4568 (Fwhere_is_internal): Move the handling of remapping and the choice of
4569 the best binding from where_is_internal to here.
4570 Unify the cached/noncached paths, so remapping is also handled
4571 correctly when the cache is used, and so the cache can be used to
4572 speed up remap-handling when applicable.
4573 Give preference to non-remapped bindings.
4574 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4575 non-remapped bindings.
4576 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4577 command remapping.
4578
4579 * xdisp.c (display_mode_element): Move list length limit from 50 to
4580 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4581
4582 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
4583
4584 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4585
4586 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4587
4588 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4589 (Bug#4334)
4590
4591 * keymap.c (where_is_internal): Filter out shadowed remappings.
4592 Assume that where_is_internal returns unshadowed bindings to simplify
4593 the code and get rid of the gotos. Use ASIZE.
4594
4595 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4596
4597 * xterm.c (x_focus_changed): If we get a focusout and pointer
4598 is invisible, make it visible.
4599
4600 * xterm.h: Remove condition for declaration of
4601 x_*_window_to_frame.
4602
4603 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4604
4605 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4606 initial terminal as well.
4607
4608 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4609
4610 * xterm.h: Rename x_non_menubar_window_to_frame to
4611 x_menubar_window_to_frame.
4612
4613 * xterm.c: Remove declarations also in xterm.h.
4614 (XTmouse_position): Do not return valid positions
4615 for clicks in the menubar and the toolbar for Gtk+.
4616
4617 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4618 if the widget for the event has the same top level as a frame,
4619 return the frame.
4620 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4621 internal windows, bug #4122.
4622 (x_non_menubar_window_to_frame): Remove.
4623
4624 2009-09-02 Glenn Morris <rgm@gnu.org>
4625
4626 * buffer.c (default-major-mode): Move most of the doc from here...
4627 (major-mode): ... to here.
4628
4629 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
4630
4631 * process.c (wait_reading_process_output): Keep the descriptor
4632 when pty is used by a non-child process, e.g., in I/O buffer of
4633 GDB this allows inferior to be restarted.
4634
4635 2009-08-29 Eli Zaretskii <eliz@gnu.org>
4636
4637 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4638 both branches into one.
4639
4640 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4641
4642 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4643 (main): Use enable-multibyte-characters rather than
4644 default-enable-multibyte-characters. Output a warning message when
4645 running a unibyte session.
4646
4647 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4648
4649 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4650 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4651 (copy_data_segment): Also copy __program_vars section.
4652 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4653 (dump_it) [LC_DYLD_INFO]: Use it.
4654
4655 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4656
4657 2009-08-28 Eli Zaretskii <eliz@gnu.org>
4658
4659 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4660 $(SRC)/buildobj.h.
4661 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4662 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4663 $(SRC)/buildobj.h.
4664 (clean): Add buildobj.h.
4665
4666 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4667
4668 * print.c (print_object): Set escapeflag to 1 when printing
4669 hashtable keys and values.
4670
4671 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4672
4673 * lread.c (read_integer): Use doubles (and potentially return a float
4674 number) as we do in string-to-number.
4675 (read1): Use strtol to read integers, signal errors on strtol's
4676 overflow and use floats if strtol's output is too large for
4677 Elisp integers.
4678
4679 2009-08-27 Eli Zaretskii <eliz@gnu.org>
4680
4681 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4682 (make-buildobj-SH): Fix last change.
4683 (SRC): Move to before where it's first used.
4684
4685 2009-08-27 Kenichi Handa <handa@m17n.org>
4686
4687 * process.c (send_process): Use encode_coding_object instead of
4688 encode_coding_string to perform eol-conversion even if the string
4689 is unibyte.
4690
4691 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4692 character.
4693
4694 * cmds.c (Fself_insert_command): Avoid unnecessay
4695 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
4696
4697 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4698
4699 * callproc.c (Fcall_process): Remove always true #if.
4700
4701 * lisp.h: Replace #if 0 code for checking with text pointing to
4702 the --enable-checking configure flag.
4703
4704 * emacs.c (main): Mention the --enable-profiling configure flag
4705 instead of using CFLAGS.
4706
4707 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
4708
4709 * Makefile.in (buildobj.h): New target.
4710 (doc.o): Depend on it.
4711 (temacs${EXEEXT}): Don't generate buildobj.lst.
4712 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4713 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4714 ($(BLD)/doc.$(O)): Depend on it.
4715 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4716 provided by Eli Zaretskii.)
4717 ($(TEMACS)): Don't generate buildobj.lst.
4718 * doc.c: Include buildobj.h.
4719 (buildobj): New static variable.
4720 (Fsnarf_documentation): Use it, instead of opening and reading
4721 buildobj.lst.
4722
4723 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
4724
4725 * dbusbind.c (Fdbus_call_method)
4726 (Fdbus_call_method_asynchronously): Use English numeric format for
4727 timeout values in doc string.
4728
4729 2009-08-25 Kenichi Handa <handa@m17n.org>
4730
4731 * alloc.c (mark_char_table): New function.
4732 (mark_object): Use mark_char_table for a char-table.
4733
4734 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4735 (CHAR_TABLE_REF): Use it.
4736
4737 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
4738
4739 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4740 before invoking the newly build emacs to check for load-path
4741 shadowing.
4742
4743 2009-08-22 Glenn Morris <rgm@gnu.org>
4744
4745 * Makefile.in (bootstrap_exe): New variable.
4746 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4747 Use ${bootstrap_exe}.
4748
4749 2009-08-22 Eli Zaretskii <eliz@gnu.org>
4750
4751 * coding.h (encode_coding_string): Don't encode unibyte strings.
4752 (Bug#4047)
4753
4754 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
4755
4756 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4757
4758 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4759 intended as hotfix only.
4760 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4761
4762 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4763
4764 * nsterm.m (ns_get_color): Update documentation properly for last
4765 change, and clean up loose ends in the code left by it. Fix
4766 longstanding bug with 16-bit hex parsing, and add support for
4767 yet another X11 format (rgb:r/g/b) for compatibility.
4768 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4769 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4770
4771 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4772
4773 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4774
4775 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
4776
4777 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4778 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4779 (xd_initialize, xd_pending_messages): Check, whether
4780 $DBUS_SESSION_BUS_ADDRESS is set.
4781
4782 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4783
4784 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4785
4786 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4787
4788 2009-08-20 Glenn Morris <rgm@gnu.org>
4789
4790 * emacs.c (system-type): Doc fix.
4791
4792 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4793
4794 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4795 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4796
4797 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
4798
4799 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4800 New functions.
4801 (xd_initialize): Revert change from 2009-08-16.
4802
4803 2009-08-18 Kenichi Handa <handa@m17n.org>
4804
4805 * fontset.c (Ffontset_font): If a nil element is found in a
4806 font-group vector, return nil.
4807
4808 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
4809
4810 * process.c (status_notify): Don't perform redisplay.
4811 (Fdelete_process, list_processes_1, process_send_signal):
4812 Expliticly perform redisplay.
4813 (wait_reading_process_output): Always check process status, but
4814 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4815
4816 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
4817
4818 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
4819 (XFLOAT_INIT): New macro for storing a float value.
4820 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4821 * fns.c (sxhash): Copy out the value of a float in order to
4822 examine its bytes.
4823 * dbusbind.c (xd_append_arg): Likewise.
4824
4825 * emacs.c (main): Don't call syms_of_data twice.
4826
4827 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
4828
4829 * dbusbind.c (xd_initialize): Add connection file descriptor to
4830 input_wait_mask, in order to let select() detect, whether a new
4831 message has been arrived.
4832 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
4833
4834 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
4835
4836 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4837 New functions.
4838
4839 * lisp.h (xd_pending_messages): Declare.
4840
4841 * keyboard.c (readable_events): Call xd_pending_messages.
4842
4843 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
4844
4845 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
4846
4847 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4848
4849 * buffer.c (set_buffer_internal_1)
4850 (swap_out_buffer_local_variables): Check for unbound local
4851 variables (Bug#4138).
4852
4853 2009-08-14 Eli Zaretskii <eliz@gnu.org>
4854
4855 * process.c (create_pty): Fix last change.
4856
4857 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
4858
4859 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4860 (xbm_load_image): Caller changed.
4861 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
4862
4863 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
4864
4865 * process.c (create_pty): New function.
4866 (Fstart_process): Use it to allow Emacs to just associate a pty
4867 with the buffer. See associated change in gdb-mi.el.
4868 (list_processes_1): Deal with no program name.
4869 (start_process_unwind): Use pid == -2 to mean no process.
4870
4871 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4872
4873 * cmds.c (nonundocount): New global variable.
4874 (keys_of_cmds): Initialize it.
4875 (Fself_insert_command): Use it to combine upto 20 sequential chars
4876 into a single undo entry, just like the Qself_insert_command code in
4877 keyboard.c does.
4878 Call frame_make_pointer_invisible, also like the Qself_insert_command
4879 code in keyboard.c does.
4880 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4881 than its own local replacement for it.
4882
4883 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
4884
4885 * fns.c (concat): Don't re-set string length to its current value.
4886
4887 * coding.h (decode_coding_string, encode_coding_string):
4888 Use SBYTES macro.
4889
4890 * doprnt.c (doprnt_lisp): Delete unused function.
4891 (doprnt): Merge with doprnt1, discarding lispstrings code.
4892 * lisp.h (doprnt_lisp): Don't declare.
4893
4894 2009-08-07 Juri Linkov <juri@jurta.org>
4895
4896 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4897
4898 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4899
4900 * print.c (syms_of_print): Undo previous change.
4901
4902 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4903
4904 * lread.c (read1, syms_of_lread): Read hashtables back from the
4905 readable format.
4906
4907 * print.c (print_preprocess, print_object): Print hashtables fully
4908 and readably.
4909 (syms_of_print): Provide 'hashtable-print-readable.
4910
4911 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4912
4913 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4914 no family set.
4915 (nsfont_open): Handle case when entity has no family.
4916
4917 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4918
4919 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4920 element, not a list, for match case.
4921
4922 2009-07-28 Kenichi Handa <handa@m17n.org>
4923
4924 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4925 rigidly.
4926
4927 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4928 font_parse_xlfd. Check font properties more rigidly.
4929
4930 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4931
4932 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4933 bsd-common.h.
4934
4935 2009-07-27 Kenichi Handa <handa@m17n.org>
4936
4937 * xfaces.c (face_with_height): Call font_clear_prop.
4938
4939 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
4940
4941 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4942
4943 * xterm.c (x_term_init): Use Qx.
4944
4945 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4946
4947 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4948 (ns_get_color): Revert 2009-07-16 change.
4949
4950 2009-07-25 Eli Zaretskii <eliz@gnu.org>
4951
4952 * lread.c (syms_of_lread) <force_load_messages>: New variable.
4953 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
4954
4955 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
4956
4957 * coding.h (decode_coding_string, encode_coding_string):
4958 Use SCHARS macro.
4959
4960 * lread.c: Rewrite 2009-07-21 changes.
4961 (load_depth): Delete.
4962 (Qload_in_progress): New variable.
4963 (load_unwind): Don't reference load_depth or load_in_progress.
4964 (Fload): Likewise; specbind Qload_in_progress instead.
4965 (init_lread): Don't initialize load_depth.
4966 (syms_of_lread): Initialize and protect Qload_in_progress.
4967
4968 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4969
4970 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4971
4972 2009-07-23 Yavor Doganov <yavor@gnu.org>
4973
4974 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4975
4976 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4977
4978 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
4979 Bugs 3792, 3720, 2402.
4980 (ns_lookup_indexed_color): Check for bad index.
4981 (ns_index_color): Init unused slot to 0.
4982 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4983 Bug 3714, possibly 3082.
4984
4985 2009-07-22 Jason Rumney <jasonr@gnu.org>
4986
4987 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4988 Position IME window at cursor (Bug#2570).
4989 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4990 (globals_of_w32fns): Dynamically load functions required above.
4991
4992 * w32term.c (w32_draw_window_cursor): Send message to reposition
4993 any IME window.
4994
4995 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
4996
4997 * fileio.c: Revert 2009-07-16 changes.
4998 (Vauto_save_include_big_deletions): New variable.
4999 (Fdo_auto_save): Disable auto-save only if
5000 auto-save-include-big-deletions is nil.
5001
5002 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
5003
5004 * xdisp.c (move_it_to): For continued lines ending in a tab, take
5005 the overflowed pixels into account (Bug#3879).
5006
5007 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
5008
5009 * lread.c (load_depth): New variable.
5010 (Fload, load_unwind, init_lread): Set it to the load recursion
5011 depth; set load_in_progress as a simple boolean based on the
5012 current load_depth. (Bug#3892)
5013
5014 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5015
5016 * nsfont.m (ns_has_attribute): Remove.
5017 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5018
5019 2009-07-18 Juri Linkov <juri@jurta.org>
5020
5021 * process.c (Fset_process_query_on_exit_flag): Mention killing
5022 a buffer in docstring.
5023
5024 2009-07-17 Kenichi Handa <handa@m17n.org>
5025
5026 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5027
5028 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5029
5030 * nsfns.m (Fns_set_alpha): Remove function.
5031 (syms_of_nsfns): Don't defsubr it.
5032
5033 * nsterm.m (ns_get_color): Remove incompatible color formats.
5034 (ns_color_to_lisp): Generate #rrggbb color format string.
5035
5036 2009-07-16 Richard Stallman <rms@gnu.org>
5037
5038 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5039 (Fset_buffer_auto_saved): Handle save_length = -2.
5040
5041 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
5042
5043 * xterm.c (Qx_gtk_map_stock): New var.
5044
5045 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5046 of calling intern each time.
5047
5048 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5049
5050 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5051 does tiling.
5052
5053 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5054
5055 2009-07-14 Kenichi Handa <handa@m17n.org>
5056
5057 * font.c (font_vconcat_entity_vectors): New function.
5058 (struct font_sort_data): New member font_driver_preference.
5059 (font_compare): Check font_driver_preference.
5060 (font_sort_entities): The format of the first argument changed.
5061 (font_delete_unmatched): Likewise.
5062 (font_list_entities): The return type changed.
5063 (font_select_entity): The format of the second argument changed.
5064 (font_find_for_lface): Adjuste for the above changes.
5065 Don't suppress the checking of C even if the repertory supports it.
5066 (Flist_fonts): Adjust for the above changes.
5067
5068 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5069 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
5070 Reject a font who has adstyle property that is different from a
5071 langname derived from registry property.
5072 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
5073
5074 2009-07-13 Eli Zaretskii <eliz@gnu.org>
5075
5076 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5077 local copy of dirfilename.
5078
5079 2009-07-13 Kenichi Handa <handa@m17n.org>
5080
5081 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5082 against max_char.
5083
5084 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5085 calling XSYMBOL (sym).
5086
5087 2009-07-11 Eli Zaretskii <eliz@gnu.org>
5088
5089 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5090 New function.
5091 (directory_files_internal) [WINDOWSNT]:
5092 Bind w32-get-true-file-attributes to either t or nil, depending whether
5093 the filesystem of the directory is fast or slow.
5094
5095 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5096 file name.
5097 (is_slow_fs): New function.
5098 (stat): Use it to determine whether to issue more system calls to
5099 get accurate file attributes, when w32-get-true-file-attributes is
5100 `local'.
5101
5102 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5103
5104 * xfns.c (Fx_select_font): Remember last font selected in
5105 x_last_font_name and use that the next time. Also try the frame
5106 parameter font-parameter as default to the font dialog.
5107
5108 2009-07-10 Kenichi Handa <handa@m17n.org>
5109
5110 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5111
5112 2009-07-09 Eli Zaretskii <eliz@gnu.org>
5113
5114 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
5115
5116 * w32.c (stat): Treat UNC file names as residing on remote
5117 drives. (Bug#3542)
5118
5119 2009-07-09 Kenichi Handa <handa@m17n.org>
5120
5121 * fontset.c (fontset_find_font): Fix previous change.
5122
5123 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
5124
5125 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5126 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5127 error flag.
5128
5129 2009-07-08 Kenichi Handa <handa@m17n.org>
5130
5131 * fontset.c (fontset_find_font): Fix the logic of handling
5132 charset_matched.
5133 (font_for_char): Delete unused var.
5134 (generate_ascii_font_name): Delete it.
5135
5136 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5137
5138 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5139 (encode_coding_sjis): Fix the code range check.
5140
5141 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
5142
5143 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5144 (Fexpand_file_name): Copy string data properly (Bug#3772).
5145
5146 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5147
5148 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5149 first MapNotify.
5150
5151 2009-07-07 Kenichi Handa <handa@m17n.org>
5152
5153 * character.h (unibyte_has_multibyte_table): Delete extern.
5154 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5155
5156 * charset.c (Fset_charset_priority): Update charset_unibyte.
5157 (syms_of_charset): Initialize charset_unibyte.
5158
5159 * character.c (unibyte_has_multibyte_table): Delete it.
5160 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5161 charset_unibyte.
5162 (multibyte_char_to_unibyte_safe): Likewise.
5163 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5164
5165 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
5166 (x_produce_glyphs): Likewise.
5167
5168 * .gdbinit (xcharset): Fix the treating $arg0.
5169
5170 2009-07-04 Eli Zaretskii <eliz@gnu.org>
5171
5172 Emulation of `getloadavg' on MS-Windows.
5173 * w32.c: Include float.h.
5174 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5175 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5176 (get_native_system_info, get_system_times): New functions.
5177 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5178 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5179 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5180 g_b_init_get_system_times, and num_of_processors.
5181
5182 2009-07-03 Jason Rumney <jasonr@gnu.org>
5183
5184 * w32term.c (w32_initialize): Use standard types.
5185
5186 2009-07-03 Eli Zaretskii <eliz@gnu.org>
5187
5188 * dired.c (Ffile_attributes): Decode user and group names by the
5189 locale's encoding. (Bug#3443)
5190
5191 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5192
5193 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5194 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5195
5196 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5197
5198 * term.c (init_tty): Remove spurious #ifdef.
5199
5200 * m/mips.h: Mention this file is also used for netbsd.
5201 * m/pmax.h: Remove file.
5202
5203 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5204
5205 * xterm.h (struct x_display_info): Add invisible_cursor.
5206 (struct x_output): Add current_cursor.
5207
5208 * xterm.c (XTtoggle_invisible_pointer): New function.
5209 (x_define_frame_cursor): Don't define cursor if invisible or the
5210 same as before. Set current_cursor.
5211 (x_create_terminal): Set toggle_invisible_pointer_hook.
5212
5213 * xfns.c (make_invisible_cursor): New function.
5214 (x_set_mouse_color): Call make_invisible_cursor.
5215 Set current_cursor.
5216 (x_window): Set current_cursor.
5217
5218 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5219
5220 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5221 inserting a character.
5222 (read_avail_input): Call frame_make_pointer_visible.
5223
5224 * frame.c (Vmake_pointer_invisible): New variable.
5225 (frame_make_pointer_invisible, frame_make_pointer_visible):
5226 New functions.
5227 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5228
5229 * frame.h: Declare frame_make_pointer_invisible and
5230 frame_make_pointer_visible.
5231 (struct frame): Add pointer_invisible.
5232
5233 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5234
5235 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5236 frame isn't visible.
5237 (xg_frame_resized): If width/height is -1, get size of window
5238 from X server.
5239
5240 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5241 for MapNotify.
5242
5243 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
5244 here or call change_frame_size. Just call flush_and_sync.
5245 (flush_and_sync): Reintroduce.
5246
5247 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
5248
5249 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
5250
5251 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5252 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5253
5254 * frame.h: Declare Qsticky.
5255
5256 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5257
5258 * nsfns.m (ns_frame_parm_handlers): Ditto.
5259
5260 * frame.c: Declare Qsticky.
5261 (frame_parms): Add sticky.
5262
5263 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5264
5265 * xterm.h: Declare x_set_sticky.
5266
5267 * xterm.c (x_set_sticky): New function.
5268
5269 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5270 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5271 xg_tool_bar_proxy_help_callback.
5272
5273 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5274
5275 * frame.c: Qmaximized is new.
5276 (x_set_frame_parameters): Do not handle fullscreen specially.
5277 Only set width and height if explicitly set.
5278 (x_set_fullscreen): Handle Qmaximized.
5279 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5280 (syms_of_frame): Initialize Qmaximized.
5281
5282 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5283 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
5284
5285 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
5286 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5287 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
5288 set gravity to NorthWestGravity when USE_GTK.
5289 (set_wm_state): New function.
5290 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
5291 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5292 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
5293 or the case when no window manager is running. That means remove calls
5294 to x_real_positions and x_fullscreen_adjust.
5295
5296 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5297 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5298 flush_and_sync.
5299 (xg_height_changed): New function.
5300 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
5301 and gtk_window_set_policy. Set frame gravity after parsing the
5302 geometry string.
5303 (xg_update_frame_menubar, free_frame_menubar)
5304 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5305 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5306 Remove calls to xg_frame_set_char_size.
5307
5308 2009-07-01 Kenichi Handa <handa@m17n.org>
5309
5310 * keyboard.c (decode_keyboard_code): New function.
5311 (tty_read_avail_input): Decode the input bytes if necessary.
5312
5313 * coding.c (setup_coding_system):
5314 Initialize coding->carryover_bytes to 0.
5315 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5316 use Qno_conversion.
5317
5318 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5321
5322 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
5323
5324 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
5325
5326 2009-06-30 Jason Rumney <jasonr@gnu.org>
5327
5328 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5329 is already loaded.
5330 Set user model ID if supported (bug#1849).
5331
5332 2009-06-29 Jim Meyering <meyering@redhat.com>
5333
5334 Remove useless if-before-xfree test.
5335 * nsfont.m (nsfont_close): Remove useless test.
5336 * term.c (delete_tty): Likewise.
5337 * w32.c (system_process_attributes): Likewise.
5338 * w32font.c (w32font_close): Likewise.
5339 * xfaces.c (x_free_gc): Likewise.
5340 * xselect.c (buffer): Likewise.
5341
5342 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5343
5344 * process.c (send_process): Keep decoded string in a local
5345 variable and protect it from GC. (Bug#3521)
5346
5347 2009-06-28 Eli Zaretskii <eliz@gnu.org>
5348
5349 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5350 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5351
5352 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
5353
5354 * xdisp.c (start_display, handle_face_prop)
5355 (move_it_vertically_backward, cursor_row_fully_visible_p)
5356 (redisplay_window, try_window_id, produce_image_glyph):
5357 Delete some #ifdef-ed out code chunks that are now obsolete.
5358
5359 * xterm.c (x_update_window_begin, x_new_focus_frame)
5360 (x_scroll_bar_handle_click, handle_one_xevent)
5361 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5362 (x_make_frame_visible, x_make_frame_invisible)
5363 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5364 code chunks that are now obsolete.
5365
5366 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
5367
5368 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5369 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5370 for hours, when optimzation is enabled.
5371 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5372 (xd_read_message): Make them static.
5373
5374 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5375
5376 * term.c (turn_on_face): Allow simultaneously bold and dim
5377 terminal faces (Bug#3530).
5378
5379 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5382
5383 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5384 truncation glyphs (Bug#3686).
5385
5386 2009-06-27 Glenn Morris <rgm@gnu.org>
5387
5388 * m/pmax.h: Restore file, with only netbsd portions.
5389
5390 2009-06-26 David Reitter <david.reitter@gmail.com>
5391
5392 * nsterm.m (keydown): Avoid infinite loop.
5393
5394 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5395
5396 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5397 the arg FORCE_SYMBOL.
5398
5399 2009-06-25 Kenichi Handa <handa@m17n.org>
5400
5401 * fontset.c (fontset_find_font): When a usable rfont_def is found
5402 in a fallback font-group, make it the first element of the group.
5403
5404 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
5405
5406 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5407
5408 2009-06-24 Kenichi Handa <handa@m17n.org>
5409
5410 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5411 set for C.
5412 (fontset_font): Record the availability of a font for C both in
5413 the realized fontsets of the current one and the default one.
5414
5415 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5416
5417 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5418 conditional, it is always defined on AIX.
5419
5420 2009-06-23 Miles Bader <miles@gnu.org>
5421
5422 * window.c (Vrecenter_redisplay): New variable.
5423 (syms_of_window): Initialize it.
5424 (Qtty): New extern declaration.
5425 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5426
5427 2009-06-23 Jim Meyering <meyering@redhat.com>
5428
5429 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5430 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
5431 pointer dereferences are guaranteed to be valid.
5432
5433 2009-06-23 Kenichi Handa <handa@m17n.org>
5434
5435 * emacs.c (main): Call init_font ().
5436
5437 * font.h (Vfont_log): Extern it.
5438 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5439
5440 * font.c (font_sort_entities, font_list_entities)
5441 (font_matching_entity, font_open_entity)
5442 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5443 (Vfont_log): Delete static.
5444 (font_log_env_checked): Delete this variable.
5445 (font_add_log): Don't check font_log_env_checked.
5446 (font_deferred_log): Check Vfont_log.
5447 (init_font): New function.
5448
5449 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5450
5451 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5452
5453 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5454
5455 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5456
5457 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5458 (face_for_char): Don't call font_deferred_log here.
5459 (font_for_char): Likewise.
5460
5461 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
5462
5463 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5464 rather than its background_width for drawing the overline and
5465 underline (Bug#489).
5466
5467 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5468 rather than its background_width for drawing the overline and
5469 underline (Bug#489).
5470 (xg_default_icon_file): New variable.
5471 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5472 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
5473
5474 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5475 (load_overlay_strings): Remove externs.
5476 (fast_find_position): Function deleted.
5477 (mouse_face_from_buffer_pos): New function, based on
5478 fast_find_position. Correctly handle before-strings,
5479 display-strings, and after-strings (Bug#1220).
5480 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5481
5482 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5483
5484 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
5485 (move_it_in_display_line_to, move_it_in_display_line_to)
5486 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5487
5488 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
5489
5490 * Branch for 23.1.
5491
5492 2009-06-21 Jason Rumney <jasonr@gnu.org>
5493
5494 * w32term.c (keyboard_codepage): New static variable.
5495 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5496 (w32_read_socket) [WM_CHAR]: Use it to decode character
5497 input (bug#3237).
5498 (w32_initialize): Initialize it.
5499 (codepage_for_locale): New function.
5500
5501 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
5502
5503 * process.c (status_message): Pass Faset index argument as a lisp
5504 object, so as to work with USE_LISP_UNION_TYPE.
5505
5506 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5507
5508 * coding.c (Ffind_coding_systems_region_internal):
5509 Cache checked characters.
5510
5511 2009-06-18 Kenichi Handa <handa@m17n.org>
5512
5513 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
5514
5515 2009-06-18 Andreas Schwab <aschwab@redhat.com>
5516
5517 * xdisp.c (redisplay_internal): Check that the frame is still
5518 live after redisplay of its windows.
5519 (redisplay_windows): Check that the window is still live.
5520
5521 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5522
5523 * coding.c (detect_coding_utf_16): Fix previous change.
5524
5525 2009-06-16 Kenichi Handa <handa@m17n.org>
5526
5527 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5528 UTF-16 by checking the dispersion of Eth and Oth bytes.
5529
5530 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5531
5532 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5533
5534 2009-06-15 Kenichi Handa <handa@m17n.org>
5535
5536 * process.c (status_message): Fix previous change. Be sure to
5537 decode a localized string.
5538
5539 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5540
5541 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5542 add comment explaining why.
5543
5544 2009-06-14 Sidney Markowitz <sidney@sidney.com>
5545
5546 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5547
5548 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5549
5550 * nsfont.m (ns_attribute_value): Remove.
5551 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5552 (ns_has_attribute): Shrink the normal range.
5553 (ns_findfonts): Don't worry about requested spec in determining
5554 need for synthItal.
5555 (ns_get_covering_families): Retain scriptToFamilies.
5556
5557 2009-06-14 Seiji Zenitani <zenitani@mac.com>
5558
5559 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5560
5561 2009-06-11 Kenichi Handa <handa@m17n.org>
5562
5563 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5564 overhang for the static composition case.
5565
5566 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5567
5568 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5569 overhang for the automatic composition case.
5570
5571 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5572 composition case.
5573
5574 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
5575
5576 * xdisp.c (get_next_display_element): When handling wrap-prefix
5577 and line-prefix, treat \n as a control character (bug#3502).
5578
5579 2009-06-10 Kenichi Handa <handa@m17n.org>
5580
5581 * font.c (font_parse_family_registry): Fix for one-char foundry.
5582 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5583
5584 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5585
5586 * process.c (status_message): Fix handling of multibyte signal
5587 string (Bug#3499).
5588
5589 2009-06-09 Jim Meyering <meyering@redhat.com>
5590
5591 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5592 color name is missing.
5593
5594 2009-06-09 Kenichi Handa <handa@m17n.org>
5595
5596 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5597 FROM-CODE and TO-CODE are codepoints of CHARSET.
5598
5599 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5600
5601 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5602
5603 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5604
5605 Changes to support :script/:lang/:otf in NS font driver.
5606 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5607 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5608 indicate not part of font driver interface, and change callers.
5609 (ns_get_family): Remove pointless null check.
5610 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5611 ns_spec_to_descriptor, ns_descriptor_to_entity.
5612 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5613 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5614 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5615 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5616 (ns_get_req_script, ns_accumulate_script_ranges)
5617 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5618 New functions.
5619 (nsfont_list, nsfont_match): Use ns_findfonts.
5620 (nsfont_open): Use font descriptor instead of traits.
5621 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5622 (dump_glyphstring): Rename to ns_dump_glyphstring.
5623
5624 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5625
5626 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5627
5628 * fontset.c (fontset_from_font): Remove NS-specific code.
5629
5630 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
5631
5632 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5633 nonactive windows.
5634
5635 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
5636
5637 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
5638
5639 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5640
5641 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5642
5643 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
5644
5645 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5646 account for the overflowing of newlines into the last glyph on the
5647 display line (Bug#3482).
5648
5649 2009-06-05 David Reitter <david.reitter@gmail.com>
5650
5651 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5652 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
5653 Fns_selection_exists_p, Fns_selection_owner_p.
5654
5655 2009-06-03 Jason Rumney <jasonr@gnu.org>
5656
5657 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5658 available. (Bug#3379)
5659
5660 2009-05-29 Kenichi Handa <handa@m17n.org>
5661
5662 * coding.c (get_translation_table):
5663 Check Venable_character_translation.
5664
5665 2009-05-26 David Reitter <david.reitter@gmail.com>
5666
5667 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5668 (x_make_frame_visible): Move frame to front rather than calling
5669 ns_raise_frame().
5670 (keyDown:): Do not swallow events that aren't re-sent if frame
5671 isn't key window.
5672 (drawRect:): Do not set visibility/iconified flags because
5673 drawRect may be called by NSView even if the frame is hidden.
5674
5675 * nsfns.m (Fx_create_frame): Follow other ports in
5676 determining visibility; default to t. Ensure async_visible is set.
5677
5678 2009-05-23 Eli Zaretskii <eliz@gnu.org>
5679
5680 * dired.c (Ffile_attributes): Doc fix.
5681
5682 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
5683
5684 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5685
5686 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5687
5688 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5689 and xfont_scratch_props.
5690 (syms_of_xfont): Do it here instead.
5691 (xfont_find_ccl_program): Delete, unused.
5692 (xfont_open): Delete unused var `i'.
5693
5694 2009-05-21 Kenichi Handa <handa@m17n.org>
5695
5696 * fontset.c (Qlatin): Don't make it static.
5697
5698 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5699 New functions.
5700 (xfont_scripts_cache, xfont_scratch_props): New variables.
5701 (Qlatin, Vscalable_fonts_allowed): Extern it.
5702 (xfont_list_pattern): Argument changed. Callers changed.
5703 Check Vscalable_fonts_allowed. Check the support of a script.
5704 (xfont_list): Don't reject a font spec with :script property.
5705 (xfont_has_char): Fix setting of encoding.
5706 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5707 xfont_scratch_props.
5708
5709 2009-05-19 Kenichi Handa <handa@m17n.org>
5710
5711 * font.c (font_sort_entities): Rename from font_sort_entites.
5712 Callers changed.
5713
5714 2009-05-18 Kenichi Handa <handa@m17n.org>
5715
5716 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5717
5718 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5719
5720 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5721 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5722
5723 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5724
5725 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5726 (x_delete_terminal): Dissociate resource database from display and
5727 then call XrmDestroyDatabase before closing display.
5728
5729 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5730
5731 * nsterm.m (ns_read_socket): Remove unused variable.
5732 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5733 whether selected frame is viable before raising it (based on patch
5734 by David Reitter), and improve commentary.
5735 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
5736
5737 2009-05-15 Kenichi Handa <handa@m17n.org>
5738
5739 * font.c (Ffont_spec): Check arguments.
5740
5741 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5744 weight when testing attributes (Bug#3282).
5745
5746 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5747
5748 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5749 what we expect to get in the next ConfigureNotify event.
5750
5751 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5752 before Xft one (Bug#1696).
5753
5754 2009-05-07 David Reitter <david.reitter@gmail.com>
5755
5756 * nsfns.m (Fx_display_planes): Compute bitplanes using
5757 NSBitsPerPixelFromDepth (Bug#3207).
5758
5759 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
5760
5761 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5762
5763 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
5764
5765 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5766
5767 2009-05-07 David Reitter <david.reitter@gmail.com>
5768
5769 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5770 Respect mouse face background.
5771
5772 2009-05-07 David Reitter <david.reitter@gmail.com>
5773
5774 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5775 Mouse movement/highlight: bracket drawing operations
5776 in ns_update_begin and ns_update_end.
5777
5778 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5779
5780 * nsfns.m (ns_get_screen): Rewrite.
5781 Don't presume selected-frame is of type `ns'.
5782
5783 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5784 all drivers.
5785
5786 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5787
5788 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5789
5790 * keyboard.h (add_user_signal): Fix typo in extern.
5791
5792 * lisp.h (add_user_signal): Remove extern.
5793
5794 * unexelf.c (unexec): Consider a section to precede the .bss section
5795 if its addresses overlap that of .bss.
5796 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5797 instead of dumping process.
5798
5799 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5800
5801 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5802
5803 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5804
5805 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5806
5807 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5808
5809 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5810 any statements.
5811
5812 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5813
5814 * process.c (read_process_output): Make sure the current buffer is
5815 always restored.
5816
5817 * coding.c (record_conversion_result): Don't modify
5818 Vlast_code_conversion_error for successful result.
5819 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5820
5821 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5822
5823 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
5824 (load_charset_map): Remove unnecessary code.
5825
5826 2009-04-30 David Reitter <david.reitter@gmail.com>
5827
5828 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
5829 through f24.
5830
5831 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
5832
5833 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5834
5835 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5836 face_at_buffer_position.
5837 (face_before_or_after_it_pos, get_next_display_element)
5838 (note_mouse_highlight): Update face_at_buffer_position call.
5839
5840 * term.c (term_mouse_highlight):
5841 * msdos.c (IT_note_mouse_highlight):
5842 * fontset.c (Finternal_char_font):
5843 * font.c (font_at, font_range): Update face_at_buffer_position call.
5844
5845 * dispextern.h (face_at_buffer_position): Update prototype.
5846
5847 2009-04-30 Kenichi Handa <handa@m17n.org>
5848
5849 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
5850
5851 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5852
5853 * callproc.c (Fcall_process): Fix GC protection. Make sure
5854 current buffer is always restored.
5855
5856 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5857
5858 * atimer.c (init_atimer): Also clear stopped_atimers.
5859
5860 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5861
5862 * process.c (create_process): Clean up merger residues of
5863 2008-07-17 change.
5864
5865 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
5866
5867 * lread.c (Vread_circle): New variable.
5868 (read1): Disable recursive read if Vread_circle is nil.
5869
5870 2009-04-29 Kenichi Handa <handa@m17n.org>
5871
5872 * fontset.h (set_default_ascii_font): Delete extern.
5873
5874 * fontset.c (set_default_ascii_font): Delete this unused function.
5875
5876 * frame.c (x_set_font): When ARG is a font-object, check if the
5877 font-object matches with the ASCII font-spec of the frame's
5878 fontset. If not, create a new fontset for the frame. (Bug #3075)
5879
5880 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5881
5882 * fns.c (Flocale_info): Protect vector from GC during decoding.
5883
5884 * process.c (Fstart_process): Protect argv strings from GC during
5885 encoding.
5886
5887 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5888
5889 * sysdep.c: Include <ctype.h>.
5890
5891 2009-04-27 David Reitter <david.reitter@gmail.com>
5892
5893 * nsfont.m (nsfont_open): Remove unused variable shrink.
5894 Remove commented-out code.
5895
5896 2009-04-26 Johan Bockgård <bojohan@gnu.org>
5897
5898 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5899
5900 2009-04-25 Jason Rumney <jasonr@gnu.org>
5901
5902 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5903
5904 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5905
5906 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5907 Swap bytes in short integer if fringe bitmap width > 8.
5908
5909 2009-04-23 Kenichi Handa <handa@m17n.org>
5910
5911 * xfaces.c (Fx_list_fonts): If a font size is specified in
5912 PATTERN, set it in returned scalable fonts.
5913
5914 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
5915
5916 * keyboard.c (Fset_input_meta_mode): Doc fix.
5917
5918 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5919
5920 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
5921
5922 * coding.c (Fterminal_coding_system): Doc fix.
5923
5924 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5925 (Fx_display_pixel_height, Fx_display_planes)
5926 (Fx_display_color_cells, Fx_server_max_request_size)
5927 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5928 (Fx_display_mm_height, Fx_display_mm_width)
5929 (Fx_display_backing_store, Fx_display_visual_class)
5930 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5931 Doc fixes, replacing "terminal id" with "terminal object".
5932 (check_x_display_info): Handle terminal objects instead of
5933 terminal ids.
5934
5935 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5936 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
5937 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5938 Doc fixes, replacing "terminal id" with "terminal object".
5939
5940 2009-04-21 Kenichi Handa <handa@m17n.org>
5941
5942 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
5943 (font_score): Check AVGWIDTH too.
5944
5945 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5946 worst case.
5947 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5948 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
5949
5950 2009-04-19 Jason Rumney <jasonr@gnu.org>
5951
5952 The following changes fix Bug#3005 for wide glyphs on each platform,
5953 without reintroducing Bug#1258 for stretch glyphs.
5954
5955 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5956 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5957 get_phys_cursor_geometry.
5958
5959 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
5960 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5961 using get_phys_cursor_geometry.
5962
5963 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5964 correctly calculated.
5965
5966 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5967
5968 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5969 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
5970 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5971 is deprecated.
5972
5973 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5974
5975 * font.c (font_put_frame_data): Use xfree instead of free.
5976
5977 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
5978
5979 * w32font.c (Qja, Qko): Remove declarations.
5980 (syms_of_w32font): Don't DEFSYM them.
5981
5982 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5985
5986 * font.h (Qja, Qko): Extern them.
5987
5988 * ftfont.c (Qja, Qko): Remove declarations.
5989
5990 * xfont.c (Qja, Qko): Remove declarations.
5991
5992 2009-04-17 Kenichi Handa <handa@m17n.org>
5993
5994 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5995 string from a vector to handle Latin-1 characters correctly.
5996
5997 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5998 entity even if the cache hits.
5999
6000 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
6001
6002 * search.c (boyer_moore): Use zero as marker value for a possible
6003 match instead of depending on overflow behavior. (Bug#2844)
6004
6005 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
6006 * lisp.h: Adjust prototypes.
6007
6008 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6011 change (Bug#3003).
6012
6013 2009-04-16 Kenichi Handa <handa@m17n.org>
6014
6015 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
6016
6017 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6018 adstyle.
6019
6020 * ftfont.c (Qja, Qko): Don't make them static.
6021 (enum ftfont_cache_for): New enum.
6022 (fc_charset_table): Undo the previous change.
6023 (ftfont_get_latin1_charset): Delete it.
6024 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6025 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
6026 non-scarable font, try to get AVERAGE_WIDTH.
6027 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6028 Change ft_face_cache from a list of a hash-table. Don't check
6029 `ja' and `ko' adstyle here.
6030 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6031 FTFONT_CACHE_FOR_CHARET.
6032 (ftfont_get_charset): Undo the previous change.
6033 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
6034 (ftfont_close): Likewise.
6035 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6036
6037 * font.c (font_sort_entites): Change the meaning of the arg
6038 BEST-ONLY. Don't optimize for VEC of lenght 1.
6039 (font_select_entity): Just return the value of font_sort_entites.
6040
6041 * xfaces.c (merge_face_vectors): Reflect font properties in
6042 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6043 font_clear_prop if a face attribute doesn't change.
6044
6045 * charset.h (charset_ksc5601): Extern it.
6046
6047 * charset.c (charset_ksc5601): New variable.
6048 (Fdefine_charset_internal): Set charset_ksc5601.
6049 (init_charset_once): Initialize charset_ksc5601 to -1.
6050
6051 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6052
6053 * fileio.c (history_delete_duplicates): Remove unused declaration.
6054
6055 * callint.c (history_delete_duplicates): New declaration.
6056 (Fcall_interactively): Remove command history duplicates when
6057 history_delete_duplicates is true.
6058
6059 2009-04-14 Eli Zaretskii <eliz@gnu.org>
6060
6061 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6062
6063 2009-04-14 Kenichi Handa <handa@m17n.org>
6064
6065 * font.c (Ffont_info): Fix docstring. Fix the second element of
6066 the returned value (bug#2949).
6067
6068 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
6069
6070 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6071
6072 2009-04-14 Kenichi Handa <handa@m17n.org>
6073
6074 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6075 encoding charset is ascii_compatible.
6076
6077 * charset.c (Fdefine_charset_internal): Make charset
6078 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6079 code_offset is 0, and covers all ASCII characters.
6080
6081 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6082
6083 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6084 (ns_string_to_pasteboard_internal):
6085 * nsmenu.m (process_dialog):
6086 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6087 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6088 * lisp.h (Fx_load_color_file): Declare.
6089
6090 2009-04-13 Kenichi Handa <handa@m17n.org>
6091
6092 * font.c (font_delete_unmatched): Preserve the order of list elements.
6093 (font_select_entity): Suppress the code to optimize for the same
6094 kind of fonts.
6095 (font_load_for_lface): Get a font that supports at least ASCII
6096 characters.
6097
6098 * ftfont.c (Qja, Qko): New variables.
6099 (fc_charset_table): Delete uniquifier data for iso8859-1.
6100 (ftfont_get_latin1_charset): New function.
6101 (get_adstyle_property): New function.
6102 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6103 bitmap fonts.
6104 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6105 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6106 `ko' or `ja'.
6107 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
6108 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
6109 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6110 property.
6111 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6112 (syms_of_ftfont): DEFSYM Qja and Qko.
6113
6114 2009-04-09 Kenichi Handa <handa@m17n.org>
6115
6116 * charset.c (map_charset_chars): For a charset of `superset'
6117 method, fix calculation of code range.
6118
6119 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6120 from the list of extra properties.
6121 (font_clear_prop): Be sure to delete `:name' font property.
6122
6123 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6124
6125 * dispnew.c (redraw_overlapping_rows): Fix detection of
6126 overlapping for topmost and bottommost rows.
6127
6128 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
6129
6130 2009-04-06 Jason Rumney <jasonr@gnu.org>
6131
6132 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6133
6134 2009-04-06 Kenichi Handa <handa@m17n.org>
6135
6136 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6137
6138 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6139
6140 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6141
6142 * ftfont.c (ftfont_open): Fix checking of the return value of
6143 FT_Load_Char. Fix setting font->underline_thickness.
6144
6145 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
6146
6147 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6148 (Fterminal_parameters, Fterminal_parameter)
6149 (Fset_terminal_parameter): In doc string, refer to terminal
6150 objects rather than terminal ids.
6151
6152 2009-04-04 Eli Zaretskii <eliz@gnu.org>
6153
6154 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6155 ret_lim_data. (Bug#2867)
6156
6157 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
6158
6159 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6160 so they don't get wider than the window, matching 2006-01-23
6161 change to the partner function in xdisp.c (Bug#2800).
6162
6163 2009-04-03 Kenichi Handa <handa@m17n.org>
6164
6165 * print.c (print_object): Make each lowest sub_char_table start a
6166 new line (Bug#2866).
6167
6168 2009-04-02 Kenichi Handa <handa@m17n.org>
6169
6170 * fontset.c (fontset_font): Record no-font when a fontset
6171 explicitly tells not to try another font-specs.
6172
6173 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6174
6175 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6176
6177 2009-03-30 Kenichi Handa <handa@m17n.org>
6178
6179 * fontset.c (fontset_from_font): Specify only registry in a
6180 font-spec for all characters supported by that registry.
6181
6182 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6183 even if HAVE_M17N_FLT is not defined.
6184
6185 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6186
6187 * ftfont.c: Conditionalize prototyping and use of
6188 ftfont_variation_glyphs.
6189
6190 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6191
6192 * frame.c (delete_frame): Work around compiler bug.
6193
6194 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6195 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6196 Some more EMACS_INT.
6197 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6198
6199 * xdisp.c (dump_glyph): Fix typo.
6200
6201 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6202 (adjust_markers_gap_motion, adjust_markers_for_delete)
6203 (adjust_markers_for_insert, adjust_point)
6204 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6205 (make_gap, copy_text, count_size_as_multibyte, insert)
6206 (insert_and_inherit, insert_before_markers)
6207 (insert_before_markers_and_inherit, insert_1)
6208 (count_combining_before, count_combining_after, insert_1_both)
6209 (insert_from_string, insert_from_string_before_markers)
6210 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6211 (insert_from_buffer_1, adjust_after_replace)
6212 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6213 (replace_range_2, del_range, del_range_1, del_range_byte)
6214 (del_range_both, del_range_2, modify_region)
6215 (prepare_to_modify_buffer, signal_before_change)
6216 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6217 for buffer positions and sizes.
6218 * lisp.h: Adjust prototypes accordingly.
6219
6220 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6221 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6222 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6223
6224 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6225
6226 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6227
6228 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6229 lines and columns so we keep the same pixel height and width.
6230
6231 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6232 the property _NET_WM_STATE has changed.
6233 (x_handle_net_wm_state): New function to update frame parameter
6234 fullscreen.
6235 (x_term_init): Initialize atoms for _NET_WM_STATE.
6236
6237 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6238
6239 2009-03-27 Kevin Ryde <user42@zip.com.au>
6240
6241 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6242 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6243 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6244 (Fgpm_mouse_stop): Pass that new parameter.
6245 * termhooks.h (close_gpm): Adjust prototype.
6246
6247 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6248
6249 * lisp.h (Fx_focus_frame): Declare.
6250
6251 * callint.c (Fcall_interactively): For '^' just delegate the work to
6252 handle-shift-selection.
6253 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6254
6255 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
6256
6257 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6258
6259 * data.c (Qinteractive_form): New variable.
6260 (Finteractive_form): Use it.
6261
6262 * eval.c (Fcommandp): Use Qinteractive_form.
6263
6264 2009-03-24 Jason Rumney <jasonr@gnu.org>
6265
6266 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6267 Calculate total size precisely. Decode environment variables
6268 before substituting. (Bug#38)
6269
6270 2009-03-24 Kenichi Handa <handa@m17n.org>
6271
6272 * font.c (find_font_encoding): Return Qnil for unsupported
6273 encoding (Bug#2722).
6274
6275 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6276
6277 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6278 that gdpy is set.
6279
6280 2009-03-22 Alan Mackenzie <acm@muc.de>
6281
6282 * callint.c (Finteractive): Clarify the doc string - even
6283 promptless elements need \n separators.
6284
6285 2009-03-22 Jason Rumney <jasonr@gnu.org>
6286
6287 * w32term.c (syms_of_w32term): Doc fix for
6288 x-use-underline-position-properties.
6289
6290 2009-03-21 Eli Zaretskii <eliz@gnu.org>
6291
6292 * w32.c (getpwuid): Change argument type to unsigned.
6293 (struct w32_id): Change type of `rid' member to unsigned.
6294 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6295 argument ID to unsigned. All callers changed.
6296 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6297
6298 2009-03-20 Eli Zaretskii <eliz@gnu.org>
6299
6300 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6301 negative, produce a float value.
6302
6303 * dired.c (make_uid, make_gid): New functions.
6304 (Ffile_attributes): Use them to avoid negative UID and GID.
6305
6306 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
6307
6308 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6309 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6310 Fix typos in docstrings.
6311
6312 2009-03-19 Kenichi Handa <handa@m17n.org>
6313
6314 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
6315 changed, use font_load_for_lface to get a new font object.
6316 Call free_realized_fontset after handling ASCII font change.
6317
6318 * frame.c (x_set_font): Handle the case that ARG is a cons.
6319
6320 2009-03-19 Glenn Morris <rgm@gnu.org>
6321
6322 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6323
6324 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
6325
6326 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6327
6328 2009-03-19 Kenichi Handa <handa@m17n.org>
6329
6330 * charset.c (load_charset_map_from_file): When a mapfile can't be
6331 loaded, signal an error.
6332
6333 2009-03-18 Eli Zaretskii <eliz@gnu.org>
6334
6335 * dired.c (Ffile_attributes): Make sure UID and GID are always
6336 positive, even if the value is too large for a positive EMACS_INT.
6337 Doc fix.
6338
6339 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6340
6341 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6342
6343 * xmenu.c (xdialog_show): Move Fredisplay call ...
6344 (Fx_popup_dialog): ... here.
6345
6346 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6347
6348 * dired.c (file_name_completion): Disable the first optimization just
6349 installed, since it is not implemented correctly.
6350
6351 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6352
6353 * dired.c (file_name_completion): Check completion-ignored-extensions
6354 only if the entry can affect bestmatch.
6355 Stop the search early, as Ftry_completion already does.
6356
6357 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
6358
6359 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
6360
6361 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * keyboard.c (parse_menu_item): Don't display remappings as menu
6364 equivalent bindings (Bug#788).
6365
6366 2009-03-15 Jason Rumney <jasonr@gnu.org>
6367
6368 * w32term.h (WM_EMACS_PAINT): New message.
6369 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6370 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6371 before passing to lisp thread. (Bug#950)
6372
6373 2009-03-14 David Reitter <david.reitter@gmail.com>
6374
6375 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6376 variable as it was never reset.
6377 (ns_term_init): Remove initialization of Lisp-settable defaults
6378 and ns_expand_space.
6379 (-setPanelFromDefaultValues): Remove ns_expand_space.
6380 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6381 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
6382 i.e. no additional spacing, similar to Carbon port.
6383
6384 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6385 * nsfns.m (ns-popup-prefs-panel): Remove.
6386
6387 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6388
6389 * sound.c (alsa_configure): Remove call to deprecated
6390 snd_pcm_sw_params_set_xfer_align.
6391
6392 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
6393
6394 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6395 after clicking in a detached tool bar.
6396 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6397
6398 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6399
6400 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6401 int/Lisp_Object mixup).
6402
6403 2009-03-13 Kenichi Handa <handa@m17n.org>
6404
6405 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
6406 Handle NAME nil and t correctly. Callers changed.
6407 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6408 (set_fontset_font): Change ARG to a vector. Handle range_list in
6409 ARG correctly.
6410 (Fset_fontset_font): Fix the case that TARGET is both a script
6411 name and charset name. Adjust the arg to set_fontset_font for
6412 the above change.
6413 (fontset_from_font): Fix previous change.
6414 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
6415 entry. If FONTSET is the default fontset, don't set the extra
6416 slot of the returning char-table.
6417
6418 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
6419
6420 * nsfns.m (Fx_close_connection): Doc fix.
6421 (Fns_do_applescript): Reflow docstring.
6422 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6423 (Fx_display_pixel_width, Fx_display_pixel_height)
6424 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6425 Fix typos in docstrings.
6426 (Fns_set_alpha): Fix typos in error messages.
6427
6428 2009-03-12 David Reitter <david.reitter@gmail.com>
6429
6430 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
6431 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6432 were used for such events.
6433
6434 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6435 (toggleToolbar, performDragOperation, runHelp): Use it.
6436
6437 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
6438 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6439
6440 2009-03-11 Kenichi Handa <handa@m17n.org>
6441
6442 * font.h (font_open_by_spec): Extern it.
6443
6444 * font.c (font_open_by_spec): New function.
6445 (font_open_by_name): Use font_open_by_spec.
6446
6447 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6448 fontset of the frame.
6449
6450 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6451 modify the default font of frames that use this fontset.
6452 (num_auto_fontsets): New variable.
6453 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6454 name. Be sure to set FONTSET_ASCII to the correct font name.
6455 (update_auto_fontset_alist): New function.
6456
6457 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
6458
6459 * makefile.w32-in: Update dependencies.
6460
6461 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6462
6463 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6464
6465 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6466
6467 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6468
6469 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
6470
6471 * lread.c (Feval_buffer): Doc fix.
6472
6473 2009-03-09 Kenichi Handa <handa@m17n.org>
6474
6475 * charset.c (Qfile_name_handler_alist): Extern it.
6476 (load_charset_map_from_file): Temporarily bind
6477 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6478
6479 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
6480
6481 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6482 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
6483
6484 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6485
6486 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6487 (x_set_window_size): Change back to calculated method of setting
6488 toolbar height under Cocoa. (Bug#2546)
6489 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6490 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6491
6492 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6493
6494 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6495 accelerator in parens under GNUstep.
6496
6497 2009-03-06 Kenichi Handa <handa@m17n.org>
6498
6499 These changes are to detect incorrect composition sequence without
6500 looking ahead the source. (Bug#2370)
6501
6502 * coding.h: Include "composite.h".
6503 (enum compisition_state): New enum.
6504 (struct compisition_status): New struct.
6505 (struct iso_2022_spec): New member cmp_status.
6506 (struct emacs_mule_spec): New struct.
6507 (struct coding_system): New members ctext_extended_segment_len and
6508 embedded_utf_8. Change the union member
6509 spec.emacs_mule_full_support to spec.emacs_mule.
6510
6511 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6512 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
6513 (MAX_ANNOTATION_LENGTH): Define to 5.
6514 (ADD_COMPOSITION_DATA): New arg nbytes.
6515 (emacs_mule_char): New arg cmp_status.
6516 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6517 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6518 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6519 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6520 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6521 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6522 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6523 (EMACS_MULE_COMPOSITION_END): New macro.
6524 (emacs_mule_finish_composition): New function.
6525 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6526 (decode_coding_emacs_mule): Avoid long looking ahead while
6527 handling composition.
6528 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6529 (ENCODE_COMPOSITION_RULE): New macro.
6530 (finish_composition): New function.
6531 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6532 (DECODE_COMPOSITION_START): New implementation.
6533 (DECODE_COMPOSITION_END): Likewise.
6534 (STORE_COMPOSITION_RULE): New macro.
6535 (decode_coding_iso_2022): Avoid long looking ahead while handling
6536 composition, CTEXT extended segment, and embedded UTF-8.
6537 (setup_coding_system): For a coding of type iso-2022, reset
6538 CODING_ISO_EXTSEGMENT_LEN (coding) and
6539 CODING_ISO_EMBEDDED_UTF_8 (coding).
6540 (get_translation): Delete arguments last_block, from_nchars,
6541 to_nchars. Callers changed.
6542 (produce_chars): Don't modify charbuf. Adjusted for the change of
6543 get_translation.
6544 (produce_composition): Adjust for the new annotation sequence.
6545 (handle_composition_annotation): Likewise.
6546 (consume_chars): Adjust for the change of get_translation.
6547
6548 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6549
6550 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
6551
6552 2009-03-05 Kenichi Handa <handa@m17n.org>
6553
6554 * font.c (font_select_entity): New function.
6555 (font_find_for_lface): Use font_select_entity to select a font.
6556
6557 * fontset.c (fontset_find_font): If a font found without
6558 restricting to the characters C doesn't support C, try to find a
6559 font with C restriction.
6560
6561 2009-03-04 Nikolaj Schumacher <me@nschum.de>
6562
6563 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
6564
6565 2009-03-04 Jason Rumney <jasonr@gnu.org>
6566
6567 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
6568 characters that have already been read. (Bug#2569)
6569
6570 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6571 Log an error message if check_image_size failed.
6572 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
6573 (gs_load): Mention max-image-size in size error message. (Bug#2560)
6574
6575 2009-03-02 Eli Zaretskii <eliz@gnu.org>
6576
6577 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6578 when decoding process output.
6579
6580 2009-03-01 Richard M Stallman <rms@gnu.org>
6581
6582 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6583
6584 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6585
6586 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6587
6588 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6589 (decode_coding_emacs_mule, decode_coding_iso_2022)
6590 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6591 (decode_coding_raw_text, decode_coding_charset)
6592 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6593 Honor inhibit-eol-conversion. (Bug #2186)
6594
6595 2009-02-28 Jason Rumney <jasonr@gnu.org>
6596
6597 * coding.c (detect_coding_charset): If not checking latin extra,
6598 fail on characters between 0x80 and 0xA0. (Bug#2354)
6599
6600 2009-02-28 Eli Zaretskii <eliz@gnu.org>
6601
6602 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
6603 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
6604
6605 2009-02-27 Glenn Morris <rgm@gnu.org>
6606
6607 * callint.c (Finteractive): Doc fix.
6608
6609 2009-02-27 Kenichi Handa <handa@m17n.org>
6610
6611 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6612
6613 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
6614
6615 * font.c (font_style_to_value): Set value for unknown symbols to
6616 100 instead of 255.
6617 (weight_table, slant_table, width_table): Treat "unspecified" as
6618 the default value.
6619
6620 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
6621
6622 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6623
6624 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
6625
6626 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6627 error as soon as a recursive load is detected.
6628
6629 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6630
6631 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6632 before caching.
6633
6634 2009-02-24 Kenichi Handa <handa@m17n.org>
6635
6636 * fontset.c (fontset_find_font): Fix the condition for checking
6637 unavailable font.
6638
6639 2009-02-24 Glenn Morris <rgm@gnu.org>
6640
6641 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6642 whitespace that confuses documentation.
6643
6644 2009-02-23 Miles Bader <miles@gnu.org>
6645
6646 * process.c (Flist_system_processes, Fprocess_attributes)
6647 (syms_of_process): Rename `system-process-attributes' to
6648 `process-attributes'.
6649
6650 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6651
6652 * coding.h (struct coding_system): Make safe_charsets a pointer to
6653 unsigned char.
6654 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6655 being 255.
6656 (SAFE_CHARSET_P): Likewise.
6657 (setup_iso_safe_charsets): Properly setup safe_charsets.
6658 (Fdefine_coding_system_internal): Likewise.
6659 (setup_coding_system): Likewise. Remove unneeded casts.
6660 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6661 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6662 unneeded casts.
6663
6664 * insdel.c (del_range_2): Don't modify gap contents when called
6665 from decode_coding_object. (Bug#1809)
6666
6667 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6670 Qfont_object.
6671 (Ftype_of): Recognize font objects.
6672
6673 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6674
6675 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6676 moved to data.c.
6677
6678 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6679
6680 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6681 async_iconified. Based on a patch by Christian Lynbech
6682 <christian.lynbech@tieto.com>.
6683 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6684
6685 2009-02-20 Glenn Morris <rgm@gnu.org>
6686
6687 * syntax.c (Fskip_chars_forward): Fix doc typo.
6688
6689 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
6690
6691 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6692
6693 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
6694
6695 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6696
6697 2009-02-19 Kenichi Handa <handa@m17n.org>
6698
6699 * coding.c (detect_coding): Preserve coding->mode.
6700 Don't overflow coding->carryover. (Bug#2370)
6701
6702 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6705
6706 2009-02-18 Kenichi Handa <handa@m17n.org>
6707
6708 * font.c (font_check_otf_features): Fix handling of `nil' element.
6709 (Ffont_spec): Describe :lang and :otf in the docstring.
6710
6711 2009-02-16 Andreas Schwab <schwab@suse.de>
6712
6713 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6714 string.
6715
6716 2009-02-16 Kenichi Handa <handa@m17n.org>
6717
6718 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
6719 (Bug#1723)
6720
6721 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
6722
6723 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
6724
6725 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6726 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6727
6728 2009-02-14 Eli Zaretskii <eliz@gnu.org>
6729
6730 * msdos.c (MAX_SCREEN_BUF): New macro.
6731 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6732 Encode the entire run of glyphs sharing the same face, instead of
6733 doing that one glyph at a time (fixes a bug with displaying
6734 double-size characters).
6735
6736 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6737
6738 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6739
6740 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6741 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
6742 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
6743
6744 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
6745 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
6746
6747 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6748
6749 * keyboard.c (adjust_point_for_property): Allow stopping between two
6750 invisible areas.
6751
6752 2009-02-12 Jason Rumney <jasonr@gnu.org>
6753
6754 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6755 (add_font_entity_to_list): Call check_face_name even when family
6756 is unspecified.
6757
6758 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6759 Release DC when finished. Use NULL window to refer to desktop.
6760 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
6761
6762 * w32font.c (add_font_entity_to_list): Fix check for substituted
6763 raster fonts. (Bug#2219)
6764
6765 2009-02-12 Kenichi Handa <handa@m17n.org>
6766
6767 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6768 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6769 (autocmp_chars): Use fast_looking_at. Don't compose more
6770 characters than MAX_COMPOSITION_COMPONENTS.
6771 (find_automatic_composition): While looking forward and backward,
6772 check static composition. Fix where to stop looking forward.
6773 (composition_adjust_point): Fix checking of static composition.
6774 (Fcomposition_get_gstring): Pay attention to
6775 MAX_COMPOSITION_COMPONENTS.
6776
6777 * lisp.h (fast_looking_at): Extern it.
6778
6779 * search.c (fast_looking_at): New function.
6780
6781 * term.c (encode_terminal_code): Adjust for the change of
6782 <struct glyph>.u.cmp.to.
6783 (append_composite_glyph): Likewise.
6784
6785 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
6786 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6787 composition.
6788 (append_composite_glyph): Adjust for the change of
6789 <strcut glyph>.u.cmp.to.
6790
6791 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
6792
6793 * casetab.c (init_casetab_once):
6794 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6795 * font.c (font_update_lface):
6796 * fontset.c (Fnew_fontset):
6797 * ftfont.c (ftfont_drive_otf):
6798 * xfont.c (xfont_open):
6799 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6800
6801 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6802
6803 * fileio.c (Fwrite_region): !NILP -> CONSP.
6804
6805 2009-02-10 Andreas Schwab <schwab@suse.de>
6806
6807 * process.c (send_process): Properly relocate pointer into data
6808 when using encoded data. (Bug#2272)
6809
6810 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6811
6812 * coding.c (detect_coding_charset): Fix previous change.
6813
6814 2009-02-08 Jason Rumney <jasonr@gnu.org>
6815
6816 * w32fns.c (w32_hide_hourglass): Handle case where frame
6817 disappeared while hourglass was displayed. (Bug #2193)
6818
6819 2009-02-07 Andreas Schwab <schwab@suse.de>
6820
6821 * unexelf.c (unexec): Fix error message.
6822
6823 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6824
6825 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
6826 when modal window is active. (Bug #2152)
6827 (applicationShouldTerminate:): Remove now-unneeded while loop
6828 around NSRunAlertPanel.
6829
6830 * nsmenu.m (popupSession): New file-global variable.
6831 (pop_down_menu): End the popupSession before closing dialog.
6832 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6833 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6834 don't query NSApp for events (just sleep instead).
6835
6836 2009-02-07 Eli Zaretskii <eliz@gnu.org>
6837
6838 * coding.c (syms_of_coding) <translation-table-for-input>:
6839 Modify doc string to discourage use for character code unification.
6840
6841 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6842
6843 * atimer.c (run_timers): Update pending_atimers.
6844
6845 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
6846
6847 * image.c (svg_load_image): Fix last change.
6848
6849 * xfns.c (Fx_create_frame): Signal an error if no font is
6850 found (Bug#2147).
6851
6852 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
6853
6854 * character.c (syms_of_character) <script-representative-chars>:
6855 Fix typo in docstring.
6856
6857 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6858
6859 * nsmenu.m (pop_down_menu): New function.
6860 (ns_popup_dialog): Call it on unwind.
6861 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6862 call timer_check() (Bug#2154).
6863 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6864 handling_signal is set.
6865 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6866
6867 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
6868
6869 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6870
6871 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6872
6873 * keyboard.c (poll_for_input_1, handle_async_input):
6874 Set handling_signal under HAVE_NS.
6875
6876 2009-02-04 Glenn Morris <rgm@gnu.org>
6877
6878 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6879
6880 2009-02-04 Kenichi Handa <handa@m17n.org>
6881
6882 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6883
6884 * charset.c (Fchar_charset): New optional arg restriction.
6885
6886 * coding.h (coding_system_charset_list): Extern it.
6887
6888 * coding.c (coding_system_charset_list): New function.
6889
6890 * composite.c: Include coding.h and termhooks.h.
6891 (composition_gstring_p): Fix for the terminal case.
6892 (composition_gstring_width): Likewise.
6893 (fill_gstring_body): Likewise.
6894 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6895 the frame.
6896 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6897 is within a composition.
6898 (Fcomposition_get_gstring): Fix the terminal case.
6899
6900 * term.c (encode_terminal_code): Fix handling of composition.
6901 (produce_composite_glyph): For static composition, get pixel_width
6902 from struct composition.
6903
6904 2009-02-02 Andreas Schwab <schwab@suse.de>
6905
6906 * unexelf.c (unexec): Handle unaligned bss offset.
6907
6908 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6909
6910 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6911 XT,w32read_socket changes to ns_read_socket.
6912
6913 * keyboard.c (handle_interrupt): Don't call
6914 quit_throw_to_read_char() under NS.
6915
6916 * blockinput.h: Remove NS-specific code.
6917
6918 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6919
6920 * dispnew.c (window_change_signal): Don't try to get the size of a
6921 suspended tty frame.
6922 * term.c (Fresume_tty): Resize if the size has changed while the
6923 tty was suspended.
6924
6925 * alloc.c (mark_stack): Properly conditionalize previous change.
6926
6927 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6928
6929 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6930 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6931 Remove; this code is not used on Windows.
6932
6933 2009-01-30 Eli Zaretskii <eliz@gnu.org>
6934
6935 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6936 EOLs that also has stray ^M characters.
6937
6938 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
6939
6940 * atimer.c (run_timers, alarm_signal_handler):
6941 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6942 * w32inevt.c (w32_console_read_socket):
6943 * w32term.c (w32_read_socket):
6944 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6945
6946 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
6947
6948 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6949 Initialize it as a relative filename pattern.
6950 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6951 (Fcall_process_region): Simplify temp file creation using
6952 temporary-file-directory.
6953
6954 2009-01-29 Eli Zaretskii <eliz@gnu.org>
6955
6956 * msdos.c: Rename pending_signals to msdos_pending_signals.
6957 (sig_suspender, sigprocmask): Adjust.
6958
6959 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
6960
6961 * keyboard.c (pending_signals): New var.
6962 (poll_for_input, input_available_signal, init_keyboard): Set it.
6963 (process_pending_signals): New function.
6964
6965 * lisp.h (QUIT): Check pending_signals instead of
6966 interrupt_input_pending. Use process_pending_signals.
6967
6968 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
6969
6970 * process.c (wait_reading_process_output): Use process_pending_signals.
6971
6972 * sysdep.c (emacs_write): Use process_pending_signals.
6973
6974 * xterm.c (XTread_socket): Update pending_signals.
6975
6976 * w32term.c (w32_read_socket): Update pending_signals.
6977
6978 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6979
6980 2009-01-29 Kenichi Handa <handa@m17n.org>
6981
6982 * xftfont.c (xftfont_has_char): New function.
6983 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6984
6985 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6986
6987 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6988 under GNUstep.
6989 (ns_query_color): New declaration.
6990
6991 * nsterm.m (ns_confirm_quit): New variable.
6992 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6993 (EmacsApp-applicationShouldTerminate:): Use it.
6994 (EmacsPrefsController): Let user set it.
6995 (ns_query_color): New function.
6996 (ns_defined_color): Use it.
6997 (ns_initialize): Drop.
6998 (ns_term_init): Add two lines from ns_initialize(), and set
6999 input_interrupt_mode to nil.
7000
7001 * image.c (svg_load_image): Don't right-shift background RGB when
7002 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
7003
7004 2009-01-28 Kenichi Handa <handa@m17n.org>
7005
7006 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7007 (fontset_get_font_group): Remember that no font-group is specified
7008 for C.
7009
7010 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
7011
7012 * fns.c (concat): Check for string overflow (bug#1787).
7013
7014 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7015 Quadruple undo limits (bug#1501).
7016
7017 2009-01-27 Kenichi Handa <handa@m17n.org>
7018
7019 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7020 directly use GT_Get_Char_index.
7021
7022 * xftfont.c (struct xftfont_info): New member `index'.
7023
7024 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
7025 (Ffontset_font): Adjust for the change of fontset entry.
7026
7027 2009-01-26 Kenichi Handa <handa@m17n.org>
7028
7029 * fontset.c (fontset_find_font): Fix handling of non-cons return
7030 value of fontset_get_font_group.
7031 (fontset_font): Revert last change.
7032
7033 2009-01-26 Jason Rumney <jasonr@gnu.org>
7034
7035 * w32font.c (w32font_list_internal): Return quickly if registry is
7036 unknown. Simplify final return.
7037 (add_font_entity_to_list): Break complex logic down into more
7038 manageable chunks. Move unknown registry check to
7039 w32font_list_internal.
7040
7041 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7042
7043 Changes to remove Feval calls from GUI under NS.
7044
7045 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7046 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
7047 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7048
7049 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7050 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7051 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7052 instead of NON_ASCII_KEYSTROKE_EVENT.
7053 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7054 (EmacsApp-applicationShouldTerminate:): Query user.
7055 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7056 instead of Feval.
7057
7058 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7059
7060 * keyboard.c (kbd_buffer_get_event): Check for it.
7061 (keys_of_keyboard): Define lispy keys for
7062 ns-put/unput-working-text.
7063
7064 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7065 versions.
7066 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7067
7068 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
7071 setting current_buffer directly. (Bug#2044)
7072
7073 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
7074
7075 * fontset.c (fontset_font): If we know there is no font, don't do
7076 any work. (Bug#1952, bug#1990).
7077
7078 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
7079
7080 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7081
7082 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
7083 (ns_no_defaults): New declaration.
7084 (main): Use it.
7085
7086 * nsterm.h (ns_no_defaults): New declaration.
7087
7088 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
7089
7090 * nsterm.m (ns_no_defaults): New variable.
7091 (ns_initialize): Don't read defaults when ns_no_defaults.
7092 (EmacsView-readSelectionFromPasteboard:)
7093 (writeSelectionToPasteboard:types:): New stubbed-out methods for
7094 NSServicesRequests protocol. (Bug#1435)
7095 (ns_dumpglyphs_stretch): New function.
7096 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
7097 of 2008-11-15 to other terms. (Bug#615)
7098
7099 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7100
7101 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7102
7103 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7104 call for Sparc64.
7105
7106 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * nsfns.m:
7109 * nsgui.h:
7110 * nsmenu.m:
7111 * nsselect.m:
7112 * nsterm.h:
7113 * nsterm.m: Remove '23' comments that indicated code added during
7114 update from emacs-20 -> emacs-23.
7115
7116 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7117
7118 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
7119 ns_alternate_modifier. (Bug#1217)
7120
7121 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7122 Display all shortcuts, including those w/o super modifier.
7123
7124 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7125
7126 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
7127
7128 * fileio.c (Vwrite_region_post_annotation_function)
7129 (Vwrite_region_annotation_buffers): New vars.
7130 (build_annotations_unwind): Just reset
7131 Vwrite_region_annotation_buffers.
7132 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7133 Call write-region-post-annotation-function.
7134 (build_annotations): Add to Vwrite_region_annotation_buffers if
7135 buffer changes.
7136
7137 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7138
7139 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7140 Tiger.
7141 * nsfns.m (ns_do_applescript):
7142 Conditionalize typeUTF16ExternalRepresentation on Tiger.
7143
7144 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7145
7146 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7147
7148 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7149
7150 * nsmenu.m (NSMENUPROFILE): Change #if style.
7151
7152 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7153
7154 * nsterm.m (x_set_frame_alpha): Add prototype.
7155 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7156 handle Ctrl-tab. (Bug#1841)
7157 (ns_get_color): Use unsigned long long for scanned hex string value.
7158 (ns_term_shutdown): Abort on non SIGTERM signals.
7159 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
7160 (EmacsPrefsController-setPanelFromDefaultValues): New function.
7161 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
7162 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
7163 (ns_defined_color): Fix settings of the XColor variable fields:
7164 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
7165
7166 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
7167 DPI. (Bug#1316)
7168 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7169 values in onTiger section.
7170
7171 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
7172
7173 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7174 Check return value of font_spec_from_name.
7175 (Fx_list_fonts): Doc fix. (Bug#1951)
7176
7177 * font.c (font_spec_from_name): Return Qnil if font name could not
7178 be parsed.
7179 (font_parse_name): Treat a `?' character as part of an XLFD.
7180
7181 * fns.c (Fsubstring): Doc fix.
7182
7183 2009-01-19 Kenichi Handa <handa@m17n.org>
7184
7185 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
7186 (ftfont_list): Likewise.
7187
7188 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
7189
7190 * dbusbind.c (Fdbus_register_signal):
7191 * process.c (conv_sockaddr_to_lisp):
7192 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7193
7194 * callproc.c (Fgetenv_internal): Doc fix.
7195
7196 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7199 it is not even used.
7200
7201 2009-01-16 Glenn Morris <rgm@gnu.org>
7202
7203 * font.c (Ffont_variation_glyphs): Silence compiler.
7204
7205 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
7206
7207 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7208 Reported by David Robinow <drobinow@gmail.com>.
7209
7210 2009-01-15 Kenichi Handa <handa@m17n.org>
7211
7212 * coding.c (detect_coding_system): Fix handling of null_byte_found.
7213
7214 2009-01-14 Jason Rumney <jasonr@gnu.org>
7215
7216 * frame.c (x_set_font): Always store a font to the font parameter,
7217 never a fontset. (Bug#1562)
7218
7219 2009-01-14 Kenichi Handa <handa@m17n.org>
7220
7221 * coding.c (TWO_MORE_BYTES): New macro.
7222 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
7223
7224 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
7225
7226 * font.c (font_clear_prop): If clearing the family, clear the font
7227 width index too.
7228
7229 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
7230
7231 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
7232
7233 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7234 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7235 functions, use sizeof.
7236
7237 2009-01-12 Martin Rudalics <rudalics@gmx.at>
7238
7239 * keyboard.c (read_char): Fix case where last_nonmenu_event
7240 returned a bad value with submenus. (Bug#447)
7241
7242 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
7243
7244 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7245 family, clear the font width index too.
7246
7247 2009-01-11 Jason Rumney <jasonr@gnu.org>
7248
7249 * keyboard.c (cmd_error_internal): Exit when errors occur before
7250 frame creation and not in daemon mode. (Bug#1836)
7251
7252 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
7253
7254 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7255 of a display vector, backtrack.
7256 (try_window_reusing_current_matrix): Check glyph type before
7257 referencing charpos member.
7258
7259 2009-01-10 Eli Zaretskii <eliz@gnu.org>
7260
7261 Fix Bug #876:
7262
7263 * coding.c (inhibit_null_byte_detection): New variable.
7264 (detect_coding, detect_coding_system): Don't pay attention to null
7265 bytes if inhibit_null_byte_detection is non-zero.
7266 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
7267 <inhibit-iso-escape-detection>: Doc fix.
7268
7269 2009-01-09 Jason Rumney <jasonr@gnu.org>
7270
7271 * w32font.c (add_font_entity_to_list): Don't report unknown
7272 Windows charset as any unrecognized registry. (Bug#1548)
7273 Only report Unicode Plane 2 fonts as unicode-sip.
7274
7275 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
7276
7277 * xfaces.c (Fx_font_family_list): Delete function.
7278 Move compatibility version to faces.el.
7279
7280 * font.c (Ffont_family_list): Return a list of strings, not symbols.
7281
7282 2009-01-09 Martin Rudalics <rudalics@gmx.at>
7283
7284 * frame.c (x_set_frame_parameters): Remember requested value for
7285 fullscreen before it's reset by the parameter handler.
7286
7287 2009-01-09 Glenn Morris <rgm@gnu.org>
7288
7289 * keyboard.c (last_command_char): For clarity, rename to...
7290 (last_command_event): ... and update all users.
7291 (last_input_char): For clarity, rename to...
7292 (last_input_event): ... and update all users.
7293 (last-command-char, last-input-char): Move to subr.el as aliases.
7294 * cmds.c, commands.h: Update for last_command_char rename.
7295
7296 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
7297
7298 * font.c (font_open_for_lface): Handle unspecified height attribute.
7299
7300 2009-01-08 Jason Rumney <jasonr@gnu.org>
7301
7302 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7303 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7304 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7305 Don't declare.
7306 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
7307 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7308
7309 2009-01-07 Kenichi Handa <handa@m17n.org>
7310
7311 * fileio.c (Finsert_file_contents): In the case of replace,
7312 remember the coding system used for decoding in
7313 coding_system (Bug#1039).
7314
7315 * coding.c (decode_coding_utf_8): Check byte_after_cr before
7316 breaking the loop. (Bug#870)
7317 (decode_coding_utf_16, decode_coding_emacs_mule)
7318 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7319 (decode_coding_charset): Likewise.
7320
7321 2009-01-05 Martin Rudalics <rudalics@gmx.at>
7322
7323 * frame.c (x_set_frame_parameters): Make sure height (width) get
7324 applied when fullwidth (fullheight) is set. (Bug#1522)
7325
7326 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
7327
7328 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7329 (utc_base): Declare as ULONGLONG, not long double.
7330 (convert_time_raw): Delete.
7331 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7332 (initialize_utc_base): New function.
7333 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7334 (convert_from_time_t): Use initialize_utc_base; compute result with
7335 64-bit arithmetic.
7336 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7337
7338 2009-01-03 Eli Zaretskii <eliz@gnu.org>
7339
7340 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
7341 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7342 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7343 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7344 [!subprocesses]: Define.
7345 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7346 (Flist_system_processes, Fsystem_process_attributes)
7347 [!subprocesses]: Call list_system_processes and
7348 system_process_attributes instead of returning Qnil.
7349
7350 * dosfns.c (system_process_attributes, list_system_processes):
7351 New functions.
7352
7353 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7354
7355 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7356 Don't use the default (no-op) implementation.
7357
7358 2009-01-03 Jason Rumney <jasonr@gnu.org>
7359
7360 * keyboard.c (parse_modifiers_uncached): Wheel events are
7361 clicks (bug#687).
7362
7363 * w32term.c (x_query_colors, x_query_color): New functions.
7364
7365 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7366 (svg_load_image): Cast returned pointers from dynamically loaded
7367 functions. Eliminate W32 specific code.
7368
7369 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7370
7371 * nsfns.m (x_set_foreground_color, x_set_background_color)
7372 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7373 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7374 x_ prefix instead of ns_. Update references.
7375 (syms_of_nsfns): Add a FIXME comment.
7376
7377 * nsterm.m (x_set_cursor_type): New prototype.
7378 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7379
7380 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7381 for Solaris instead of incorrectly providing Qutime and Qcutime.
7382
7383 2009-01-02 Eli Zaretskii <eliz@gnu.org>
7384
7385 * w32.c (process_times): Compute sum of utime and stime.
7386 (system_process_attributes): Add Qtime to the alist.
7387
7388 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7389 and add them to the alist.
7390
7391 * process.c (top level) <Qtime, Qctime>: New variables.
7392 (syms_of_process): staticpro them.
7393 (Fsystem_process_attributes): Add their documentation to the doc
7394 string.
7395
7396 * process.h: Declare Qtime and Qctime.
7397
7398 2009-01-02 Jason Rumney <jasonr@gnu.org>
7399
7400 * image.c (Qgobject): New symbol.
7401 (syms_of_image): Initialize it.
7402 (init_svg_functions): Load some functions from gobject library.
7403
7404 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7405
7406 * frame.c (make_terminal_frame): Remove redundant code and useless
7407 block.
7408
7409 2009-01-01 Andreas Schwab <schwab@suse.de>
7410
7411 * process.c (conv_sockaddr_to_lisp): Add workaround for
7412 getsockname bug on BSD.
7413
7414 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
7415
7416 * xfns.c (x_create_tip_frame): Set border width of the X window.
7417
7418 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
7419
7420 2009-01-01 Jason Rumney <jasonr@gnu.org>
7421
7422 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
7423 Don't block input, as per earlier xterm.c changes.
7424
7425 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7426
7427 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7428 (ns_appkit_version_int): New function.
7429 (x-server-version): Use ns_appkit_version_int and follow 21+
7430 convention of returning 3 integers.
7431
7432 2008-12-30 Kenichi Handa <handa@m17n.org>
7433
7434 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7435 (CHAR_SURROGATE_PAIR_P): New macro.
7436
7437 * font.h (struct font_driver): New member get_variation_glyphs.
7438
7439 * font.c (font_range): Don't require a font for a variation selector.
7440 (Ffont_variation_glyphs): New function.
7441 (syms_of_font): Defsubr it.
7442
7443 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7444 ftfont_variation_glyphs.
7445 (setup_otf_gstring): New function.
7446 (ftfont_drive_otf): Use it.
7447 (ftfont_shape_by_flt): Handle variation selector.
7448 (ftfont_variation_glyphs): New function.
7449
7450 2008-12-30 Martin Rudalics <rudalics@gmx.at>
7451
7452 * frame.c (Vemacs_iconified): Remove.
7453
7454 2008-12-30 Jason Rumney <jasonr@gnu.org>
7455
7456 * frame.c (store_frame_param, x_get_arg): Enable newer code on
7457 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7458
7459 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * indent.c (Fvertical_motion): Don't advance iterator if we have
7462 reseated to the desired position.
7463
7464 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7465 checking for pos match.
7466
7467 2008-12-30 Kenichi Handa <handa@m17n.org>
7468
7469 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7470 just get the low 8-bit of the code.
7471
7472 * font.c (font_intern_prop): Validate str as multibyte.
7473
7474 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7475
7476 * dispextern.h (struct face): Move lface and hash from the middle
7477 of bitfields.
7478
7479 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7480
7481 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7482
7483 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7484 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7485 instead of intervals.h.
7486
7487 2008-12-26 Andreas Schwab <schwab@suse.de>
7488
7489 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7490 cons.
7491
7492 2008-12-26 Martin Rudalics <rudalics@gmx.at>
7493
7494 * textprop.c (Qminibuffer_prompt): New variable.
7495 (syms_of_textprop): Initialize it.
7496 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7497 in minibuffer-prompt face. (Bug#1662)
7498
7499 2008-12-25 Jason Rumney <jasonr@gnu.org>
7500
7501 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7502
7503 2008-12-24 Jason Rumney <jasonr@gnu.org>
7504
7505 * ralloc.c (r_alloc_reset_variable): New function.
7506
7507 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
7508 record of what points where. (Bug#716)
7509
7510 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7511
7512 * minibuf.c (read_minibuf): Follow the non-interactive case when
7513 running as a daemon, before detaching.
7514
7515 2008-12-22 Andreas Schwab <schwab@suse.de>
7516
7517 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7518 * gtkutil.c (free_widget_value): Use xfree instead of free.
7519
7520 2008-12-22 Martin Rudalics <rudalics@gmx.at>
7521
7522 * frame.c (delete_frame): New function derived from
7523 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7524 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7525 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7526 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7527 * frame.h: Extern delete_frame.
7528 * window.c (window_loop):
7529 * terminal.c (delete_terminal):
7530 * xterm.c (x_connection_closed):
7531 * xfns.c (Fx_hide_tip):
7532 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
7533
7534 2008-12-21 Jason Rumney <jasonr@gnu.org>
7535
7536 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7537 when character maps to .notdef character.
7538
7539 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7540
7541 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7542
7543 2008-12-20 Jason Rumney <jasonr@gnu.org>
7544
7545 * frame.c (Fmake_terminal_frame): Raise an error when called from
7546 a graphical frame on Windows. (Bug#1325)
7547
7548 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7549
7550 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7551
7552 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
7553
7554 * minibuf.c (Fread_buffer): Doc fix.
7555
7556 2008-12-20 Jason Rumney <jasonr@gnu.org>
7557
7558 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
7559 server name in UNC paths. (Bug#719)
7560
7561 * coding.c (decode_coding): Clear chars_at_source flag when using
7562 charbuf. (Bug#1035)
7563
7564 2008-12-19 Daniel Engeler <engeler@gmail.com>
7565
7566 * sysdep.c (serial_configure): Fix typo.
7567
7568 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7569
7570 * sysdep.c: Include alloca.h.
7571 (system_process_attributes): Add implementation for Solaris.
7572
7573 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
7574
7575 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7576
7577 Reorganize implementation of Flist_system_processes and
7578 Fsystem_process_attributes. No functional changes.
7579 * process.c: Don't #include pwd.h, grp.h and limits.h.
7580 (Flist_system_processes): Just call list_system_processes.
7581 (Fsystem_process_attributes): Just call system_process_attributes.
7582 (procfs_list_system_processes, time_from_jiffies)
7583 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7584 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7585
7586 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7587 (list_system_processes): Rename from
7588 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7589 Provide a do nothing implementation.
7590 (system_process_attributes): Rename from
7591 procfs_list_system_processes.
7592 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7593 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
7594
7595 * w32.c (list_system_processes): Rename from
7596 w32_list_system_processes.
7597 (system_process_attributes): Rename from
7598 w32_system_process_attributes.
7599
7600 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7601
7602 * process.h (w32_list_system_processes)
7603 (w32_system_process_attributes): Remove.
7604 (list_system_processes, system_process_attributes):
7605 New prototypes.
7606
7607 2008-12-19 Kenichi Handa <handa@m17n.org>
7608
7609 * xfont.c (xfont_decode_coding_xlfd): New function.
7610 (xfont_encode_coding_xlfd): New function.
7611 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7612 (xfont_list): Decode and encode XLFD by iso-8859-1.
7613 (xfont_match): Likewise.
7614 (xfont_list_family): Likewise.
7615 (xfont_open): Likewise.
7616
7617 * ftfont.c (ftfont_open): Generate a multibyte string if given
7618 names are utf-8.
7619
7620 * xftfont.c (xftfont_open): Generate a multibyte string if given
7621 names are utf-8.
7622
7623 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7624
7625 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7626 changed.
7627 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7628 clicked on a detached tool bar button.
7629
7630 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7631
7632 * emacs.c (main): Print and error and exit when no data is read
7633 from the pipe.
7634
7635 2008-12-17 Jason Rumney <jasonr@gnu.org>
7636
7637 * w32font.c (w32font_has_char): Always return -1.
7638
7639 2008-12-16 Kenichi Handa <handa@m17n.org>
7640
7641 * font.c (font_open_entity): Fix previous change.
7642
7643 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7644
7645 * process.c: Include <limits.h>.
7646
7647 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
7648
7649 * font.c (font_update_drivers): Fix mistake in reconstructing the
7650 driver list.
7651
7652 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * font.c (font_clear_cache): Fix format of font cache data.
7655
7656 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
7657
7658 * xftfont.c (xftfont_open): Free Xft font pattern if
7659 XftFontOpenPattern fails.
7660
7661 * xterm.c (x_free_frame_resources): Remove extraneous call to
7662 free_frame_faces.
7663
7664 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7665
7666 * xterm.c (x_delete_display): Move xim_close_dpy call to
7667 x_delete_terminal.
7668 (x_delete_terminal): Call xim_close_dpy.
7669
7670 2008-12-13 Jason Rumney <jasonr@gnu.org>
7671
7672 * w32font.c (intern_font_name): New function.
7673 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7674 (w32font_open_internal, Fx_select_font): Decode font name.
7675 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7676
7677 * w32font.h (intern_font_name): Declare new function.
7678
7679 * w32uniscribe.c (add_opentype_font_name_to_list):
7680 Use intern_font_name.
7681
7682 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7683
7684 * frame.c (Fdelete_frame): Call free_font_driver_list.
7685
7686 * font.c (free_font_driver_list): Implement missing function.
7687
7688 * w32term.c (w32_term_init): Don't initialize the image cache
7689 here; it will be done in init_frame_faces.
7690
7691 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7692 (struct x_display_info): Remove unused member null_pixel. New
7693 member xim_callback_data.
7694
7695 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7696 (xim_initialize): Save pointer to callback function data.
7697 (xim_close_dpy): Free callback function data. Call XCloseIM,
7698 reverting 2008-11-04 change by David Smith.
7699 (x_term_init): Don't initialize the image cache here; it will be
7700 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7701 (x_delete_display): Free x_dnd_atoms member.
7702
7703 2008-12-13 Kenichi Handa <handa@m17n.org>
7704
7705 * font.c (font_rescale_ratio): Moved from xfaces.c.
7706 Argument type changed. Handle a font-spec too.
7707 (font_score): Check Vface_font_rescale_alist.
7708 (font_open_entity): Likewise. (Bug#1547)
7709
7710 * xfaces.c (font_rescale_ratio): Moved to font.c.
7711
7712 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
7713
7714 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7715
7716 2008-12-12 Jason Rumney <jasonr@gnu.org>
7717
7718 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7719 Vwindow_system_version to the real w32 major version.
7720
7721 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7722
7723 * term.c (init_tty): Move setting the terminal name before the
7724 potential user: maybe_fatal.
7725
7726 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
7727
7728 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7729 all callers changed. Call free_frame_faces to free the face cache.
7730
7731 2008-12-11 Jason Rumney <jasonr@gnu.org>
7732
7733 * w32font.c (fill_in_logfont): Don't assume symbol script means
7734 SYMBOL_CHARSET. (Bug#547)
7735
7736 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
7737 size for surrogates. (Bug#1096, bug#872)
7738
7739 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7740
7741 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7742
7743 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7744
7745 * process.c (Fsystem_process_attributes, syms_of_process):
7746 Fix typo in name of Ssystem_process_attributes.
7747 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7748
7749 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
7750
7751 * syntax.c (Fmodify_syntax_entry): Doc fix.
7752
7753 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7754
7755 * font.c (Ffont_spec): Move usage to end of docstring.
7756
7757 2008-12-10 Jason Rumney <jasonr@gnu.org>
7758
7759 * w32font.c (Qcham): New symbol.
7760 (font_supported_scripts): Add cham, and comments for other new
7761 scripts in bitfield from OpenType spec.
7762 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7763 contain characters beyond the bmp.
7764
7765 2008-12-10 Kenichi Handa <handa@m17n.org>
7766
7767 * ftfont.c (fc_charset_table): Add "unicode-sip".
7768 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7769 Qunicode_sip.
7770
7771 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
7772
7773 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7774 (Fcoding_system_put): Use QCdefault_char.
7775 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7776
7777 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
7778
7779 * xftfont.c (syms_of_xftfont): Fix typo.
7780
7781 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
7782
7783 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7784
7785 * emacs.c (main): Close daemon_pipe on exec.
7786
7787 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
7788
7789 * termchar.h (struct tty): New members termcap_term_buffer and
7790 termcap_strings_buffer.
7791
7792 * term.c (encode_terminal_code): Free any previous memory blocks
7793 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
7794 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7795 All callers changed.
7796 (init_tty): Store termcap data and string buffers in new struct
7797 tty members termcap_term_buffer and termcap_strings_buffer.
7798 (delete_tty): Free them.
7799 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
7800
7801 2008-12-07 Seiji Zenitani <zenitani@mac.com>
7802
7803 * nsfns.m (ns_set_background_color): Remove code duplication.
7804 It was a substitute for face-transparency on OS X 10.3.
7805
7806 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
7807
7808 * coding.c (make_conversion_work_buffer): Disable buffer
7809 modification hooks in the work buffer.
7810
7811 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7812
7813 * process.c (procfs_system_process_attributes): If `nread' has a
7814 negative value, assign zero to it.
7815
7816 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * eval.c (Vdebug_on_error): Doc fix.
7819
7820 2008-12-05 Kenichi Handa <handa@m17n.org>
7821
7822 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7823 second character is a combining character.
7824
7825 2008-12-05 Eli Zaretskii <eliz@gnu.org>
7826
7827 * process.c (procfs_system_process_attributes): Don't use cmd,
7828 cmdsize, and q without initializing them first.
7829
7830 2008-12-04 Jason Rumney <jasonr@gnu.org>
7831
7832 * w32font.c (w32font_draw): Initialize orig_clip before getting
7833 it, and delete it when finished.
7834
7835 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7836
7837 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7838 case when running as a daemon before detaching.
7839
7840 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
7841
7842 * w32.c (init_environment): Don't unload library shell32.dll.
7843
7844 2008-12-03 Kenichi Handa <handa@m17n.org>
7845
7846 * font.c (font_at): Set `multibyte' at first.
7847
7848 * coding.c (decode_coding_charset): Check type of an element of
7849 vector VALIDS.
7850 (encode_coding_emacs_mule): Be sure to set `code'.
7851
7852 * fontset.c (face_for_char): Handle invalid charset property correctly.
7853 (font_for_char): Likewise.
7854
7855 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
7856
7857 * font.c (Fopen_font): Compute pixel size correctly.
7858 (font_update_lface): Handle fonts with corrupted size specs,
7859 i.e. non-int and non-float.
7860
7861 * ftfont.c (ftfont_match): Initialize entity variable.
7862 (ftfont_resolve_generic_family): Avoid using uninitialized var.
7863 (ftfont_list_family): Initialize list var earlier.
7864
7865 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7866
7867 * xterm.c (x_draw_glyph_string): Fall back on
7868 underline_minimum_offset for underline position.
7869
7870 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7871
7872 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7873
7874 * character.c (c_string_width): Specify the type for LEN.
7875
7876 2008-12-03 Kenichi Handa <handa@m17n.org>
7877
7878 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
7879 (decode_coding_utf_8): Likewise.
7880 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
7881 (produce_chars): Initialize consumed_chars to 0.
7882
7883 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7884
7885 * keyboard.c (make_lispy_position): Only use PT if the selected
7886 window is current.
7887
7888 2008-12-02 Andreas Schwab <schwab@suse.de>
7889
7890 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7891
7892 * doprnt.c (doprnt1): Fix size of charbuf.
7893
7894 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
7895
7896 * keyboard.c (timer_check): Revert last change.
7897
7898 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
7899
7900 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7901
7902 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
7903
7904 * makefile.w32-in: Update dependencies.
7905 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7906
7907 2008-12-01 Andreas Schwab <schwab@suse.de>
7908
7909 * font.c (register_font_driver): Use xmalloc.
7910 (font_put_frame_data): Likewise.
7911
7912 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
7913
7914 * xfaces.c (realize_x_face): Make abort condition clearer.
7915
7916 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7917
7918 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
7919
7920 * keyboard.c (timer_check): After a timer runs, ensure that the
7921 selected window's buffer is current.
7922
7923 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
7924
7925 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7926 It was accidentally restored by the Unicode merge.
7927
7928 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7929
7930 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
7931
7932 * w32proc.c: Include "coding.h".
7933 (Fw32_short_file_name): Encode filename passed to Windows API.
7934 (Fw32_long_file_name): Encode filename passed to Windows API and
7935 decode back the result. (Bug#1433)
7936
7937 2008-11-29 Kenichi Handa <handa@m17n.org>
7938
7939 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7940 not before accessing it.
7941
7942 * charset.c (Fdefine_charset_internal): After calculating
7943 min_char, max_char, and fastmap, copy the charset structure again.
7944 (encode_char): Fix the previous change.
7945
7946 2008-11-28 Seiji Zenitani <zenitani@mac.com>
7947
7948 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7949
7950 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7951
7952 * nsterm.m (x_set_frame_alpha): New function.
7953
7954 2008-11-27 Eli Zaretskii <eliz@gnu.org>
7955
7956 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7957
7958 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
7959
7960 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7961 pointer to check_face_name.
7962
7963 2008-11-27 Kenichi Handa <handa@m17n.org>
7964
7965 * category.h (SET_CATEGORY_SET): Call set_category_set.
7966 (set_category_set): Extern it.
7967
7968 * category.c (hash_get_category_set): New function.
7969 (Fmodify_category_entry): Adjusted for the change of
7970 char_table_ref_and_range. Call hash_get_category_set to get a
7971 category set to store in the table.
7972
7973 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7974 Funify_charset.
7975
7976 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
7977 (DECODE_CHAR): Check if the decoder vector is ready.
7978 (ENCODE_CHAR): Check if the encoder char-table is ready.
7979 (maybe_unify_char): Extern it.
7980
7981 * charset.c (Vchar_unified_charset_table): Delete it.
7982 (inhibit_load_charset_map): New variable.
7983 (temp_charset_work): New variable.
7984 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7985 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7986 New macros.
7987 (load_charset_map): Meaning of control_flag changed. If
7988 inhibit_load_charset_map is nonzero, setup a table in
7989 temp_charset_work.
7990 (load_charset): New argument control_flag.
7991 (map_charset_for_dump): New function.
7992 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7993 map_charset_for_dump.
7994 (Fdefine_charset_internal): If the charset method is MAP, load
7995 mapping tables by calling load_charset.
7996 (Funify_charset): Don't load a mapping table but directly set
7997 Vchar_unify_table.
7998 (maybe_unify_char): New function.
7999 (decode_char): Don't handle the deleted method MAP_DEFERRED.
8000 Handle the case of inhibit_load_charset_map being nonzero.
8001 (encode_char): Don't handle the deleted method MAP_DEFERRED.
8002 Handle the case of inhibit_load_charset_map being nonzero.
8003 (Fclear_charset_maps): Just free temp_charset_work.
8004 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
8005 variable.
8006
8007 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
8008 change of char_table_ref_and_range.
8009 (char_table_ref_and_range): Change the meaning of argument FROM
8010 and TO. Now the caller must provide initial values for *FROM
8011 and *TO.
8012
8013 * fontset.c (fontset_add): Adjusted for the change of
8014 char_table_ref_and_range.
8015 (fontset_get_font_group): Likewise.
8016 (Ffontset_info): Likewise.
8017
8018 * keymap.c (describe_vector): Adjusted for the change of
8019 char_table_ref_and_range. For char-table, put boundary between
8020 non-ASCII and 8-bit characters.
8021
8022 * print.c (print_object): For bool-vector, delete unnecessary
8023 check of ASCII_BYTE_P.
8024
8025 2008-11-26 Jason Rumney <jasonr@gnu.org>
8026
8027 * w32font.c (w32font_open_internal): Don't include external
8028 leading in font height. (Bug#879)
8029
8030 2008-11-26 Glenn Morris <rgm@gnu.org>
8031
8032 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8033 redefinition with ifdef. (Bug#1383)
8034
8035 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8036
8037 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8038
8039 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8040
8041 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8042 New EmacsView methods.
8043 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8044 Fixes bug #1048,1357,1414.
8045
8046 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8047
8048 Fix bug #1362.
8049 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8050 is not an indexed color.
8051 * nsterm.m (free_indexed_color): Add argument checking.
8052 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8053
8054 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
8055
8056 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8057 Document confirm-after-completion value for
8058 minibuffer-completion-confirm.
8059
8060 2008-11-24 Jason Rumney <jasonr@gnu.org>
8061
8062 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8063 warning.
8064
8065 2008-11-23 Jason Rumney <jasonr@gnu.org>
8066
8067 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8068 restored before returning.
8069
8070 * w32font.c (check_face_name): New function.
8071 (add_font_entity_to_list): Use it to filter out common substituted
8072 fonts. (Bug#642)
8073
8074 2008-11-22 Martin Rudalics <rudalics@gmx.at>
8075
8076 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8077 confirm-nonexistent-file-or-buffer in doc-string.
8078
8079 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8080
8081 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8082 Fix copy/paste typo. Add checks.
8083
8084 2008-11-21 Kenichi Handa <handa@m17n.org>
8085
8086 * coding.c (detect_coding_iso_2022): Reject invalid composition
8087 sequence.
8088 (DECODE_COMPOSITION_START): If the current source is the last
8089 block, and the current composition doesn't end, regard this
8090 sequence as invalid.
8091 (decode_coding_iso_2022): Handle invalid composition sequence.
8092
8093 2008-11-20 Martin Rudalics <rudalics@gmx.at>
8094
8095 * window.c (coordinates_in_window): Don't return
8096 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8097 line when the window is not the rightmost one. (Bug#1372)
8098
8099 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8100
8101 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8102
8103 2008-11-15 Eli Zaretskii <eliz@gnu.org>
8104
8105 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8106 and bright_bg if noninteractive is non-zero.
8107
8108 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8109
8110 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8111 x_draw_glyph_string_background.
8112
8113 * w32term.c (x_draw_glyph_string): Likewise.
8114
8115 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
8116
8117 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8118 the next glyph string once past the overhang width.
8119
8120 * nsterm.m (ns_draw_glyph_string): Likewise.
8121
8122 * w32term.c (x_draw_glyph_string): Likewise.
8123
8124 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8125
8126 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8127 double file close.
8128
8129 2008-11-14 Martin Rudalics <rudalics@gmx.at>
8130
8131 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8132 dedicated status of window before attempting to display another
8133 buffer in it.
8134
8135 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
8136
8137 * msdos.c (Fmsdos_long_file_names):
8138 (syms_of_msdos) <dos-unsupported-char-glyph>:
8139 * dosfns.c (Fint86): Fix typos in docstrings.
8140
8141 2008-11-14 Eli Zaretskii <eliz@gnu.org>
8142
8143 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8144
8145 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8146
8147 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8148
8149 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8150
8151 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8152
8153 * frame.h: Negative alpha means "don't touch".
8154
8155 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8156
8157 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8158
8159 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8160
8161 * hftctl.c:
8162 * chpdef.h:
8163 * acldef.h: Remove files used only for systems no longer supported.
8164
8165 * Makefile.in: Fix .o alphabetical ordering.
8166 (hftctl.o): Remove dependency, file removed.
8167 (keymap.o, print.o): Depend on charset.h.
8168
8169 2008-11-10 Kenichi Handa <handa@m17n.org>
8170
8171 * character.c (Fget_byte): Fix and make it faster for unibyte target.
8172
8173 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
8174
8175 * dired.c (file_name_completion): If completion_ignore_case is
8176 enabled, ignore case when checking completion-regexp-list.
8177
8178 2008-11-08 Eli Zaretskii <eliz@gnu.org>
8179
8180 * vm-limit.c (get_lim_data): Fix last change.
8181
8182 2008-11-08 Kenichi Handa <handa@m17n.org>
8183
8184 * character.c (Fget_byte): New function.
8185 (syms_of_character): Defsubr Fget_byte.
8186
8187 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
8188
8189 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8190 cursor position is valid after scrolling.
8191
8192 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
8193
8194 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8195
8196 2008-11-06 Glenn Morris <rgm@gnu.org>
8197
8198 * xterm.c (handle_one_xevent): Don't let popup menus cause
8199 mouse-autoselect-window related window switching. (Bug#1261)
8200
8201 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8202
8203 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8204
8205 2008-11-04 Andreas Schwab <schwab@suse.de>
8206
8207 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8208
8209 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
8210
8211 * xfns.c (Fx_wm_set_size_hint): New function.
8212
8213 2008-11-03 Martin Rudalics <rudalics@gmx.at>
8214
8215 * textprop.c (Fprevious_single_char_property_change): Return 0
8216 when there's no change in a string. (Bug#1301)
8217
8218 2008-11-02 Martin Rudalics <rudalics@gmx.at>
8219
8220 * frame.c (do_switch_frame): New argument NORECORD passed to
8221 Fselect_window.
8222 (Fselect_frame): New argument NORECORD passed to
8223 do_switch_frame.
8224 (Fset_frame_selected_window): New argument NORECORD passed to
8225 Fselect_frame.
8226 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8227 in call of do_switch_frame.
8228 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8229 Handle NORECORD argument in call of Fselect_frame.
8230 * lisp.h (do_switch_frame, Fselect_frame)
8231 (Fset_frame_selected_window): Adjust declarations.
8232 * window.c (select_frame_norecord): New function.
8233 (run_window_configuration_change_hook): Use it and call
8234 Fselect_frame with NORECORD set.
8235 (Fselect_window): Pass NORECORD to Fselect_frame.
8236 (Fset_window_configuration): Handle NORECORD argument in call of
8237 do_switch_frame.
8238 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8239 Fset_frame_selected_window.
8240 * keyboard.c (command_loop_1): Handle NORECORD in call of
8241 Fselect_frame (currently ifdefd).
8242
8243 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8244
8245 * emacs.c (USAGE2): Untabify.
8246
8247 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * composite.c (fill_gstring_header): Fix copy/paste typo.
8250
8251 2008-10-31 Martin Rudalics <rudalics@gmx.at>
8252
8253 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8254 (Fother_window): Rename argument and rewrite doc-string.
8255 (select_window_norecord): Fix return value. (Bug#1276)
8256
8257 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
8258
8259 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8260 new frames overriding foreground for tooltips. Based on similar patch
8261 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8262
8263 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
8264
8265 * emacs.c (Fdaemon_initialized): Initialize nfd.
8266
8267 2008-10-29 Martin Rudalics <rudalics@gmx.at>
8268
8269 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8270 (Fwindow_text_height): Clarify doc-strings.
8271 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8272 doc-string of window-scroll-functions.
8273
8274 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8275
8276 * category.c (syms_of_category): Fix typo in docstring.
8277
8278 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
8279
8280 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8281 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8282 Fix typos in docstrings.
8283
8284 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8285
8286 * emacs.c (daemon_pipe): Make non-static.
8287 (IS_DAEMON): Move definition ...
8288 * lisp.h (IS_DAEMON): ... here.
8289 (daemon_pipe): Declare.
8290 (is_daemon): Remove.
8291 * dispnew.c (init_display): Use IS_DAEMON.
8292
8293 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8296 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8297
8298 * emacs.c (is_daemon): Remove.
8299 (main): Don't set is_daemon.
8300 (IS_DAEMON): New macro.
8301 (Fdaemonp, Fdaemon_initialized): Use it.
8302 (Fdaemon_initialized): Write a char into the pipe to make sure the
8303 parent exits.
8304 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8305
8306 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
8307
8308 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8309 over-sized glyph, draw it with the default glyph width.
8310
8311 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8312 glyph, draw it with the default glyph width.
8313
8314 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8315 glyph, draw it with the default glyph width.
8316
8317 * xdisp.c (try_scrolling): When computing the distance from the
8318 scroll margin to PT, try moving some distance past the window
8319 bottom before giving up.
8320
8321 2008-10-27 Martin Rudalics <rudalics@gmx.at>
8322
8323 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8324 (Fset_window_buffer): Explain in doc-string that a window can be
8325 "strongly" dedicated to its buffer.
8326
8327 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8328
8329 * emacs.c (daemon_name): New variable.
8330 (main): Deal with --daemon=SERVER_NAME.
8331 (Fdaemonp): Return a name if one was passed to --daemon.
8332
8333 2008-10-26 Romain Francoise <romain@orebokech.com>
8334
8335 * emacs.c (daemon_pipe): New variable.
8336 (main): Create a pipe before forking, make the parent exit only after
8337 the child has closed its end of the pipe. Move closing the
8338 descriptors ...
8339 (Fdaemon_initialized): ... here. New function.
8340
8341 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8342
8343 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8344 the previous unoptimized table.
8345
8346 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8347 the distinction between non-nil and non-t value of `dedicated'.
8348
8349 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
8350
8351 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
8352 read_char_minibuf_menu_text is large enough to hold the menu string.
8353
8354 2008-10-25 Martin Rudalics <rudalics@gmx.at>
8355
8356 * window.c (Fget_buffer_window, Fdelete_windows_on)
8357 (Freplace_buffer_in_windows): Make buffer argument optional and
8358 rename to buffer_or_name.
8359
8360 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
8361
8362 * xdisp.c (handle_single_display_spec, handle_display_prop):
8363 Undo 2005-05-16 change.
8364 (handle_stop): Pop iterator if it's loaded with an empty string.
8365 (get_overlay_strings_1): Don't save iterator if it's loaded with
8366 an empty string (bug#1201).
8367
8368 2008-10-24 Kenichi Handa <handa@m17n.org>
8369
8370 * ftfont.c (ftfont_otf_features): Fix previous change.
8371 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8372 calling ftfont_otf_features.
8373
8374 2008-10-24 Kenichi Handa <handa@m17n.org>
8375
8376 * font.c (font_match_p): Fix for the case that a vector of
8377 characters is in script-representative-chars.
8378
8379 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
8380
8381 * dbusbind.c (xd_in_read_queued_messages): New variable.
8382 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
8383 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8384 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
8385 macro. (Bug#1186)
8386
8387 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
8388
8389 * s/sol2-10.h: New file.
8390
8391 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8392
8393 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8394 poor beast has survived 9+ years and the jump from xterm.c!).
8395
8396 2008-10-23 Martin Rudalics <rudalics@gmx.at>
8397
8398 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8399 Reword doc-string.
8400 (Fbury_buffer): In doc-string say what happens to the buffer's window.
8401
8402 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
8403
8404 * character.c (syms_of_character) <script-representative-chars>:
8405 <unicode-category-table>: Doc fixes.
8406
8407 2008-10-23 Noah Friedman <friedman@splode.com>
8408
8409 * coding.c (make_conversion_work_buffer): Check that
8410 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8411 Fget_buffer_create.
8412
8413 2008-10-23 Kenichi Handa <handa@m17n.org>
8414
8415 * font.c (font_add_log): Check the values of extra properties.
8416
8417 2008-10-22 Martin Rudalics <rudalics@gmx.at>
8418
8419 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8420 Reword doc-string.
8421 (Fset_window_parameter): Use NILP.
8422 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
8423 (Frecenter): Use "selected" instead of "current" window in doc-strings.
8424
8425 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8426
8427 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8428
8429 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8430
8431 * nsfns.m (ns_appkit_version): New function.
8432 (x-server-version): Use it.
8433 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8434 (x-server-vendor): Don't check_ns().
8435
8436 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8437
8438 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
8439
8440 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8441 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8442
8443 2008-10-22 Kenichi Handa <handa@m17n.org>
8444
8445 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8446 scripts.
8447
8448 * category.c (word_boundary_p): Check scripts instead of charset.
8449 Handle nil value in word-separating-categories and
8450 word-combining-categories.
8451 (syms_of_category): Fix docstrings of word-separating-categories
8452 and word-combining-categories.
8453
8454 2008-10-21 Eli Zaretskii <eliz@gnu.org>
8455
8456 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8457 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8458
8459 2008-10-21 Martin Rudalics <rudalics@gmx.at>
8460
8461 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8462 Rename arg "buffer" to "buffer_or_name".
8463 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8464 it optional.
8465 (no_switch_window): Remove since the return value is not used.
8466 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
8467 Consider window as dedicated when Fwindow_dedicated_p returns a
8468 non-nil value.
8469 * lisp.h: Remove prototype for no_switch_window.
8470
8471 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8472
8473 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
8474 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
8475
8476 2008-10-21 Kenichi Handa <handa@m17n.org>
8477
8478 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8479 check Vlatin_extra_code_table.
8480
8481 2008-10-20 Eli Zaretskii <eliz@gnu.org>
8482
8483 * fileio.c (Fset_file_modes): Doc fix.
8484
8485 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
8486
8487 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8488 in arrays.
8489
8490 2008-10-19 Martin Rudalics <rudalics@gmx.at>
8491
8492 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8493 Mention kill-buffer in doc-string.
8494 (Fset_window_buffer): Reinsert tem check removed in last commit.
8495 (Fenlarge_window, Fshrink_window): Have argument names and
8496 doc-string follow Elisp manual more closely.
8497
8498 2008-10-18 Eli Zaretskii <eliz@gnu.org>
8499
8500 * fileio.c (Fset_file_modes): Doc fix.
8501
8502 2008-10-18 Martin Rudalics <rudalics@gmx.at>
8503
8504 * window.c (Fwindow_width, Fset_window_start)
8505 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
8506 (Fdelete_windows_on, Freplace_buffer_in_windows):
8507 Make doc-strings follow code and Elisp manual more closely.
8508 (Fwindow_dedicated_p): Make window argument optional.
8509 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8510 (Fset_window_buffer): Respect any non-nil dedicated value for
8511 window. Rename "buffer" argument to "buffer_or_name".
8512
8513 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
8514
8515 * m/sh3.h: New file, machine description for SuperH.
8516
8517 2008-10-17 Martin Rudalics <rudalics@gmx.at>
8518
8519 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8520
8521 2008-10-17 Kenichi Handa <handa@m17n.org>
8522
8523 * ftfont.c (ftfont_otf_features): Fix indexing
8524 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8525
8526 2008-10-16 Magnus Henoch <mange@freemail.hu>
8527
8528 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8529 (Fdbus_call_method_asynchronously): Ditto.
8530 This change makes C-h f display the argument list.
8531
8532 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
8533
8534 * fileio.c (Fexpand_file_name): Doc fix.
8535
8536 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8537 of :foreground and :background equivalent to unspecified (20.x
8538 compatibility).
8539
8540 2008-10-15 Eli Zaretskii <eliz@gnu.org>
8541
8542 * buffer.c (syms_of_buffer): Doc fix.
8543
8544 2008-10-14 Kenichi Handa <handa@m17n.org>
8545
8546 * font.c (font_clear_prop): When clearing font width, clear the
8547 average width field too.
8548
8549 2008-10-12 Andreas Schwab <schwab@suse.de>
8550
8551 * ftfont.c (ftfont_shape_by_flt): Make static.
8552 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8553
8554 * font.c: Don't include <m17n-flt.h>.
8555
8556 2008-10-10 Eli Zaretskii <eliz@gnu.org>
8557
8558 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8559
8560 2008-10-09 Eli Zaretskii <eliz@gnu.org>
8561
8562 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8563 away code.
8564
8565 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * dispnew.c (update_text_area): Avoid looping due to large glyph
8568 overhangs (bug#1070).
8569
8570 2008-10-09 Kenichi Handa <handa@m17n.org>
8571
8572 * fontset.c (face_for_char): If face->fontset is negative, just
8573 return ascii_face.
8574
8575 * font.c (font_delete_unmatched): Fix previous change.
8576 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
8577
8578 2008-10-09 Martin Rudalics <rudalics@gmx.at>
8579
8580 * frame.c (Fraise_frame): On text-only terminals select frame in
8581 order to make it visible. (Bug#1061)
8582
8583 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
8584
8585 * fontset.c (fontset_find_font): Check frame validity.
8586
8587 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
8588
8589 * gtkutil.c (xg_display_open): Reset default display if none exists.
8590 (xg_display_close): Allow Emacs to close all displays (bug#985).
8591
8592 2008-10-06 Andreas Schwab <schwab@suse.de>
8593
8594 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
8595
8596 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
8597
8598 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
8599
8600 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
8601
8602 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8603 during initialization.
8604
8605 2008-10-04 Eli Zaretskii <eliz@gnu.org>
8606
8607 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8608 whole thing on MSDOS frames as well as on a TTY.
8609
8610 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8611 well as for TTY.
8612 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8613 well as on a TTY.
8614
8615 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8616 as well as for TTY.
8617
8618 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8619
8620 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8621 MSDOS frames as well.
8622
8623 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8624
8625 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8626 correct arguments.
8627 * menu.c (find_and_return_menu_selection): Add cast.
8628
8629 2008-10-03 Glenn Morris <rgm@gnu.org>
8630
8631 * emacs.c (USAGE1): Add --daemon.
8632
8633 2008-10-02 Eli Zaretskii <eliz@gnu.org>
8634
8635 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8636 100, so it's in percents as advertised.
8637
8638 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8639
8640 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8641 (ns_output.current_cursor, ns_output.desired_cursor)
8642 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8643 (FRAME_NEW_CURSOR_COLOR): Remove.
8644
8645 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
8646 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
8647 enumeration (HOLLOW_BOX_CURSOR, etc.).
8648
8649 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8650 (draw_window_cursor): Simplify code.
8651 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8652 Don't change cursor type. In latter, call rehighlight instead of doing
8653 updates manually.
8654 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8655 Use core Emacs cursor types.
8656
8657 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
8658
8659 2008-10-02 Martin Rudalics <rudalics@gmx.at>
8660
8661 * process.c (Faccept_process_output): Fix doc-string.
8662
8663 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8664
8665 * gmalloc.c (__sbrk): Also define for uClibc.
8666
8667 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8668 for uClibc.
8669
8670 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8671
8672 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8673 styles.
8674 (nsfont_open): Reenable the cache.
8675
8676 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8677
8678 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8679 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8680
8681 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8682
8683 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8684 a suspended terminal.
8685
8686 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
8687
8688 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8689
8690 2008-09-30 Eli Zaretskii <eliz@gnu.org>
8691
8692 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8693
8694 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
8695
8696 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8697 in a continued line coincides with a line beginning.
8698
8699 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8700
8701 * nsfont.m (nsfont_trait_distance): Fix bug.
8702 (nsfont_list): Return a list rather than a vector (syncs with Handa
8703 changes of 2008-05-14).
8704 (nsfont_open): Improve logging.
8705
8706 2008-09-29 Andreas Schwab <schwab@suse.de>
8707
8708 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8709
8710 2008-09-28 Martin Rudalics <rudalics@gmx.at>
8711
8712 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8713 name as char-resolve-modifiers.
8714 Reported by: Markus Triska <markus.triska@gmx.at>
8715
8716 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8717
8718 * dispnew.c (init_display): Return earlier when running as a daemon.
8719
8720 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8721
8722 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8723
8724 2008-09-27 Eli Zaretskii <eliz@gnu.org>
8725
8726 * composite.c (Fcomposition_get_gstring)
8727 (Fcompose_region_internal, Fcompose_string_internal)
8728 (Ffind_composition_internal): Doc fix.
8729 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8730 (syms_of_composite) <auto-composition-function>: Doc fix.
8731 (syms_of_composite) <composition-function-table>: Doc fix.
8732
8733 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * search.c (wordify): New argument for lax word-ends.
8736 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8737
8738 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8739
8740 * lisp.h (is_daemon): Declare.
8741 * dispnew.c (init_display): Do not try to initialize the terminal
8742 when running as a daemon.
8743
8744 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
8745
8746 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8747 x_display_pixel_height.
8748
8749 2008-09-22 Martin Rudalics <rudalics@gmx.at>
8750
8751 * undo.c (record_point): Don't call Fundo_boundary for first
8752 change. (Bug#731)
8753
8754 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
8755
8756 * emacs.c (Fdaemonp): Doc fix.
8757
8758 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8759
8760 * emacs.c (main): Place #ifdef in the proper place.
8761
8762 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8763
8764 * emacs.c (standard_args): Add --daemon.
8765 (main): Disconnect from the terminal when --daemon is passed.
8766 (is_daemon): New variable.
8767 (Fdaemonp): New function.
8768 (syms_of_emacs): Defsubr it.
8769
8770 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
8771
8772 * xdisp.c (get_next_display_element): Handle string display
8773 correctly when checking for the end of a box run.
8774
8775 2008-09-20 Glenn Morris <rgm@gnu.org>
8776
8777 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8778 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8779 (Frename_file): Avoid copying to trash if a rename involves
8780 a delete. (Bug#964).
8781
8782 2008-09-20 Eli Zaretskii <eliz@gnu.org>
8783
8784 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8785 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8786 frames as well as termcap frames.
8787 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8788 get_named_tty.
8789
8790 2008-09-19 Eli Zaretskii <eliz@gnu.org>
8791
8792 * process.c (procfs_system_process_attributes): Fix cmdline in
8793 case /proc/PID/cmdline is empty.
8794
8795 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8796 x_display_pixel_height.
8797
8798 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
8799
8800 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8801
8802 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8803 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8804
8805 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8806
8807 * dispextern.h (struct it): Move line_wrap away from the middle of
8808 bitfields. Move voffset in struct iterator_stack_entry after the
8809 bitfields. Move tab_width near after another short.
8810
8811 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8812
8813 * frame.h (struct frame): Move alpha from the middle of bitfields.
8814
8815 * window.h (struct window): Move frozen_window_start_p after the
8816 rest of the bitfields to reduce padding.
8817
8818 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
8819
8820 * xterm.h (x_display_info): Remove `height' and `width' members.
8821
8822 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8823
8824 * w32term.h (w32_display_info): Remove `height', `width',
8825 `height_in', and `width_in' members.
8826
8827 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8828 New functions.
8829 (x_calc_absolute_position): Use them.
8830 (x_term_init): Omit removed `height' and `width' members.
8831
8832 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8833 New functions.
8834 (w32_read_socket, x_calc_absolute_position): Use them.
8835 (w32_initialize_display_info, w32_term_init): Omit removed members
8836 of w32_display_info.
8837
8838 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8839 New functions.
8840 (ns_initialize_display_info): Omit removed members of ns_display_info.
8841
8842 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8843 New functions.
8844 (x_calc_absolute_position): Use them.
8845 (x_term_init): Omit removed `height' and `width' members.
8846
8847 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8848 (compute_tip_xy):
8849 * frame.c (x_fullscreen_adjust):
8850 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8851 x_display_pixel_width.
8852
8853 2008-09-18 Kenichi Handa <handa@m17n.org>
8854
8855 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8856 (composition_compute_stop_pos): Fix handling of static composition.
8857 (Fcomposition_get_gstring): Check FROM and TO at first.
8858
8859 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8860
8861 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
8862 mixup (YAILOM).
8863
8864 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
8865
8866 * indent.c (Fvertical_motion): Use position reported by iterator
8867 instead of PT for determining screen motion (bug#943).
8868
8869 2008-09-17 Romain Francoise <romain@orebokech.com>
8870
8871 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8872
8873 2008-09-17 Kenichi Handa <handa@m17n.org>
8874
8875 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8876
8877 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8878 if necessary.
8879
8880 2008-09-16 Kenichi Handa <handa@m17n.org>
8881
8882 * coding.c (make_conversion_work_buffer): Avoid calling
8883 Fget_buffer_create if it is not necessary.
8884
8885 2008-09-15 Martin Rudalics <rudalics@gmx.at>
8886
8887 * window.c (Fselect_window): Don't update window_select_count and
8888 use_time when norecord is not nil.
8889
8890 2008-09-14 Kenichi Handa <handa@m17n.org>
8891
8892 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8893 specpdl_ptr.
8894
8895 2008-09-12 Kenichi Handa <handa@m17n.org>
8896
8897 * indent.c (scan_for_column): Don't handle automatic composition
8898 if the current buffer is not associated with a window.
8899
8900 * composite.c (composition_reseat_it): If the current buffer is
8901 not associated with a window, ignore the automatic composition.
8902 (find_automatic_composition): Likewise.
8903
8904 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8905
8906 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8907 (Fgpm_mouse_stop): Use it.
8908 * termhooks.h (close_gpm): Declare.
8909 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8910 connection if Gpm_GetEvent fails.
8911
8912 * window.c (set_window_buffer): Always preserve current-buffer.
8913
8914 2008-09-12 Glenn Morris <rgm@gnu.org>
8915
8916 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8917
8918 2008-09-11 Glenn Morris <rgm@gnu.org>
8919
8920 * charset.c (charset-map-path): Doc fix.
8921
8922 2008-09-10 Kenichi Handa <handa@m17n.org>
8923
8924 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8925
8926 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8927 compose a grapheme cluster with the preceding base glyph.
8928
8929 * composite.c (composition_compute_stop_pos): Fix previous change.
8930 Reset cmp_it->id to -1 at first.
8931
8932 2008-09-10 Glenn Morris <rgm@gnu.org>
8933
8934 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8935
8936 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
8937
8938 * keyboard.c (read_key_sequence): Reapply translation maps when
8939 switching keyboards.
8940
8941 2008-09-09 Kenichi Handa <handa@m17n.org>
8942
8943 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8944 characters.
8945
8946 * composite.c (FORWARD_CHAR): Fix calculation
8947 of (POSITION).pos_byte.
8948 (composition_compute_stop_pos): Limit the search of composition to
8949 at most 500 characters ahead. If we reach the limit or find a
8950 newline, set cmp_it->ch to -2 and return 0.
8951 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8952
8953 2008-09-08 Kenichi Handa <handa@m17n.org>
8954
8955 * indent.c (Fvertical_motion): Be sure to set
8956 it_overshoot_expected if it.cmp_it.id is non-negative.
8957
8958 2008-09-07 Andreas Schwab <schwab@suse.de>
8959
8960 * callproc.c (Fcall_process): Don't hold references to string data
8961 across garbage collection. Move initialisation of new_argv down
8962 to avoid compiler bug.
8963
8964 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8965
8966 * process.c (Fsystem_process_attributes): Doc fix.
8967
8968 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
8969
8970 * callproc.c (Fcall_process): Canonicalize current directory name.
8971
8972 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8973 iterator advances to the next line if the current line ends in a
8974 continued tab.
8975
8976 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8977
8978 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8979 member to point to cmp_from.
8980
8981 * xdisp.c: Doc fix for references to gidx data member.
8982
8983 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8984
8985 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8986
8987 2008-09-07 Kenichi Handa <handa@m17n.org>
8988
8989 * composite.c (FORWARD_CHAR): Check STOP after
8990 incrementing (POSITION).pos.
8991
8992 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8993
8994 * process.c (Fsystem_process_attributes): Doc fix.
8995
8996 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
8997
8998 * keyboard.c (Ftop_level): Doc fix.
8999
9000 2008-09-06 Eli Zaretskii <eliz@gnu.org>
9001
9002 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
9003 minibuffer, don't let lower part of menu invade the echo area.
9004
9005 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
9006 "char *q" to access menu text and advance through it. Revert the
9007 change that displayed ">" instead of ASCII character 0x10.
9008
9009 2008-09-05 Eli Zaretskii <eliz@gnu.org>
9010
9011 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9012 toggle boxes and radio buttons on MS-DOS as well.
9013
9014 2008-09-05 Kenichi Handa <handa@m17n.org>
9015
9016 * composite.c (autocmp_chars): Check lookback count.
9017 (composition_compute_stop_pos): Set cmp_it->lookback.
9018 (composition_reseat_it): Check lookback count.
9019 (struct position_record): New struct.
9020 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9021 (find_automatic_composition): New function.
9022 (composition_adjust_point): Use find_automatic_composition.
9023
9024 * dispextern.h (struct composition_it): New member lookback.
9025
9026 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
9027
9028 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9029 if moving by a single line.
9030
9031 2008-09-02 Andreas Schwab <schwab@suse.de>
9032
9033 * xterm.c (x_delete_display): Fix merge error.
9034
9035 * fileio.c (Fexpand_file_name): Remove unused variables.
9036
9037 2008-09-02 Eli Zaretskii <eliz@gnu.org>
9038
9039 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9040 storage on all platforms, not just on DOS_NT.
9041
9042 2008-09-02 Jason Rumney <jasonr@gnu.org>
9043
9044 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9045 Ensure mouse is not grabbed after menu is finished.
9046
9047 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
9048
9049 * xfaces.c (Finternal_set_alternative_font_family_alist)
9050 (Finternal_set_alternative_font_registry_alist): Properly copy
9051 entire alist structure.
9052
9053 2008-09-01 Kenichi Handa <handa@m17n.org>
9054
9055 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
9056 representative chars of the script is a vector.
9057 (ftfont_list): Handle the case where the representative chars of
9058 the script is a vector.
9059
9060 * character.c (syms_of_character): Docstring of
9061 script-representative-chars fixed.
9062
9063 2008-08-31 Eli Zaretskii <eliz@gnu.org>
9064
9065 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9066 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9067 the menu. Allocate larger buffer for `text', to account for
9068 possible ^C characters.
9069
9070 2008-08-31 Martin Rudalics <rudalics@gmx.at>
9071
9072 * xdisp.c (prepare_menu_bars): Don't call
9073 Vwindow_size_change_functions with arg Qt.
9074
9075 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9076
9077 * font.h (font_range):
9078 * fileio.c (report_file_error):
9079 * composite.c (composition_update_it): Yet another int/Lisp_Object
9080 mixup (YAILOM).
9081
9082 2008-08-30 Glenn Morris <rgm@gnu.org>
9083
9084 * data.c (Fmake_variable_frame_local): Doc fix.
9085
9086 * frame.c (Fmodify_frame_parameters): Doc fix.
9087
9088 2008-08-30 Eli Zaretskii <eliz@gnu.org>
9089
9090 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9091 needed by GetTokenInformation.
9092 (w32_system_process_attributes): Check return values of all system
9093 APIs.
9094
9095 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9096 only when the state changes.
9097 (IT_update_begin, IT_update_end): Add termscript trace.
9098
9099 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9100 clipboard is unavailable. Set dst to NULL if it doesn't point to
9101 malloc'ed data.
9102 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9103 passing random values to xfree.
9104
9105 * dispnew.c (init_display): Set `tty's association in frame's
9106 parameters alist to the name of the terminal device, if that is known.
9107
9108 2008-08-29 Jason Rumney <jasonr@gnu.org>
9109
9110 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9111
9112 2008-08-29 Eli Zaretskii <eliz@gnu.org>
9113
9114 * composite.c (fill_gstring_body): Avoid compiler warnings.
9115
9116 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9117 LGLYPH_SET_CODE to avoid compiler warnings.
9118
9119 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
9120
9121 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9122
9123 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9124 LGLYPH_SET_CODE.
9125
9126 2008-08-29 Kenichi Handa <handa@m17n.org>
9127
9128 * fileio.c (report_file_error): Don't downcase the first character
9129 of errstring if it is still unibyte.
9130
9131 2008-08-29 Kenichi Handa <handa@m17n.org>
9132
9133 These changes are to re-implement the automatic composition so
9134 that it doesn't use text properties.
9135
9136 * Makefile.in (ftfont.o): Depend on composite.h.
9137 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9138
9139 * character.h (Vunicode_category_table): Extern it.
9140
9141 * character.c (Vunicode_category_table): New variable.
9142 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9143
9144 * chartab.c (optimize_sub_char_table): Perform more greedy
9145 optimization.
9146
9147 * composite.h (enum composition_method):
9148 Delete COMPOSITION_WITH_GLYPH_STRING.
9149 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9150 (Vcomposition_function_table): Extern it.
9151 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9152 (composition_gstring_put_cache, composition_gstring_from_id)
9153 (composition_gstring_p, composition_gstring_width)
9154 (composition_compute_stop_pos, composition_reseat_it)
9155 (composition_update_it, composition_adjust_point): Extern them.
9156 (Fcomposition_get_gstring): EXFUN it.
9157
9158 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
9159 (Vcomposition_function_table)
9160 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
9161 (gstring_hash_table, gstring_work, gstring_work_headers):
9162 New variables.
9163 (gstring_lookup_cache, composition_gstring_put_cache)
9164 (composition_gstring_from_id, composition_gstring_p)
9165 (composition_gstring_width, fill_gstring_header)
9166 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9167 (composition_reseat_it, composition_update_it)
9168 (composition_adjust_point, Fcomposition_get_gstring): New functions.
9169 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9170 and gstring_work_headers. DEFVAR_LISP composition-function-table.
9171 Defsubr composition_get_gstring.
9172
9173 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9174 cmp_id.
9175 (struct glyph_string): Delete the member gidx. New members
9176 cmp_id, cmp_from, and cmp_to.
9177 (enum it_method): Delete GET_FROM_COMPOSITION.
9178 (struct composition_it): New struct.
9179 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9180 Delete c, len, cmp_id, cmp_len in u.comp.
9181
9182 * font.h (enum lgstring_indices): Delete it.
9183 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
9184 (enum lglyph_indices): Likewise.
9185 (font_range): Adjust extern.
9186 (font_fill_lglyph_metrics): Extern it.
9187
9188 * font.c (QCf): New variable.
9189 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9190 (font_prepare_composition): Delete this function.
9191 (font_range): Type and arguments changed.
9192 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9193 (font_fill_lglyph_metrics): New function.
9194 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
9195 (syms_of_font): DEFSYM QCf. Delete defsubr for
9196 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9197 Defsubr Sfont_shape_gstring.
9198
9199 * fontset.h (font_for_char): Extern it.
9200
9201 * fontset.c (font_for_char): New function.
9202
9203 * ftfont.c: Include composite.h.
9204 (ftfont_resolve_generic_family): Add langset "en" to pattern.
9205 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9206
9207 * indent.c: Include composite.h and dispextern.h.
9208 (check_composition): Delete this function.
9209 (scan_for_column): Handle composition by
9210 composition_compute_stop_pos, composition_reseat_it, and
9211 composition_update_it.
9212 (compute_motion): Likewise.
9213 (Fvertical_motion): Fix checking of composition.
9214
9215 * keyboard.c (adjust_point_for_property): Check composition by
9216 composition_adjust_point.
9217
9218 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
9219 struct glyph_string.
9220
9221 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9222 (append_composite_glyph): Adjust for the change of struct it and
9223 struct glyph.
9224 (produce_composite_glyph): Likewise.
9225
9226 * w32term.c (x_draw_composite_glyph_string_foreground):
9227 Adjust for the change of struct glyph_string.
9228 (x_draw_glyph_string): Likewise.
9229
9230 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9231 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9232
9233 * xdisp.c: Include font.h.
9234 (it_props): Delete the entry for Qauto_composed.
9235 (init_iterator): Initialize it->cmp_it.id to -1.
9236 (compute_stop_pos): Call composition_compute_stop_pos.
9237 (face_before_or_after_it_pos): Adjust for the change of struct it.
9238 (handle_auto_composed_prop): Delete it.
9239 (handle_composition_prop): Handle only static composition.
9240 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9241 from xassert. Initialize it->cmp_it.stop_pos.
9242 (push_it): Adjust for the change of struct it.
9243 (pop_it): Likewise.
9244 (get_next_element): Delete next_element_from_composition.
9245 (CHAR_COMPOSED_P): New macro.
9246 (get_next_display_element): For automatic composition, get a face
9247 from the font in the glyph-string.
9248 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
9249 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
9250 (next_element_from_string): Check if the character at the current
9251 position is composed by CHAR_COMPOSED_P.
9252 (next_element_from_buffer): Likewise.
9253 (next_element_from_composition): Adjust for the change of struct it.
9254 Update it->cmp_it.
9255 (dump_glyph): Adjust for the change of struct glyph.
9256 (fill_composite_glyph_string): Adjust for the change of struct
9257 it and struct glyph. Don't handle automatic composition here.
9258 (fill_gstring_glyph_string): New function.
9259 (x_get_glyph_overhangs): Handle automatic composition.
9260 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
9261 (BUILD_GSTRING_GLYPH_STRING): New macro.
9262 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9263 automatic composition.
9264 (append_composite_glyph): Adjust for the change of struct it and
9265 struct glyph.
9266 (x_produce_glyphs): Adjust for the change of struct it.
9267
9268 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9269 the change of struct glyph_string.
9270 (x_draw_glyph_string): Likewise.
9271
9272 2008-08-29 Glenn Morris <rgm@gnu.org>
9273
9274 * buffer.c (word-wrap): Doc fix.
9275 * xdisp.c (truncate-partial-width-windows): Doc fix.
9276 Increase default to 50.
9277
9278 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
9279
9280 * xdisp.c (update_tool_bar_unwind): New function.
9281 (update_tool_bar): Temporarily set selected frame before building
9282 tool-bar items.
9283
9284 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
9285
9286 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9287 snprintf, respectively.
9288 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9289
9290 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
9291
9292 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9293 LDFLAGS to GNUstep CC invocation.
9294
9295 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
9296
9297 * indent.c (Fvertical_motion): Revert last change. Handle the
9298 general case where we are moving forward, and PT spans multiple
9299 screen lines.
9300
9301 * eval.c (find_handler_clause): Temporarily increase
9302 max-lisp-eval-depth while printing the backtrace buffer, to
9303 guarantee that help-mode code can run.
9304
9305 2008-08-27 Eli Zaretskii <eliz@gnu.org>
9306
9307 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9308 colors under -rv.
9309 (IT_set_frame_parameters): Don't swap foreground and background
9310 colors if `(reverse . t)' is present in the frame properties.
9311 (internal_terminal_init): Call init_frame_faces only for the
9312 initial frame.
9313
9314 2008-08-27 Andreas Schwab <schwab@suse.de>
9315
9316 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9317
9318 2008-08-27 Andreas Schwab <schwab@suse.de>
9319
9320 * search.c (search_buffer): Set char_base to zero only at the end.
9321
9322 2008-08-27 Kenichi Handa <handa@m17n.org>
9323
9324 * fileio.c (report_file_error): Fix handling of multibyte error string.
9325
9326 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9327
9328 * xterm.c (x_term_init): Temporarily hide the partially
9329 initialized terminal while calling vendor-specific-keysyms.
9330
9331 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9332
9333 * msdos.c (internal_terminal_init): Most initializations done only
9334 once, especially initial_screen_colors[] and termscript open.
9335
9336 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9337
9338 * eval.c (Fcondition_case): Doc fix.
9339
9340 * widgetprv.h (EmacsFramePart): Change font member to the new font
9341 struct.
9342
9343 * widget.c: Include character.h and font.h for XSETFONT.
9344 (setup_frame_gcs): Compute X font id from font struct, just once.
9345
9346 2008-08-26 Eli Zaretskii <eliz@gnu.org>
9347
9348 * term.c (get_named_tty): Fix last change.
9349
9350 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
9351
9352 * indent.c (Fvertical_motion): If moving forward starting from a
9353 multi-line string, move the iterator to the last line of that string.
9354
9355 2008-08-25 Eli Zaretskii <eliz@gnu.org>
9356
9357 * frame.c (do_switch_frame): Mark previously displayed frame as
9358 obscured for FRAME_MSDOS_P frames as well.
9359
9360 2008-08-24 Eli Zaretskii <eliz@gnu.org>
9361
9362 * frame.c (make_terminal_frame): Initialize f->terminal,
9363 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9364 Set the top frame to newly created frame.
9365 (Fmake_terminal_frame): Reuse the_only_display_info.
9366
9367 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9368 estimating available memory.
9369
9370 2008-08-23 David Reitter <david.reitter@gmail.com>
9371
9372 * nsterm.m (ns_draw_window_cursor): Don't call
9373 NSDisableScreenUpdates and NSEnableScreenUpdates on
9374 non-NS_IMPL_COCOA systems.
9375
9376 2008-08-23 Andreas Schwab <schwab@suse.de>
9377
9378 * process.c (procfs_system_process_attributes): Fix use of
9379 uninitialized variables.
9380
9381 2008-08-23 Eli Zaretskii <eliz@gnu.org>
9382
9383 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9384
9385 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9386 calling tty-set-up-initial-frame-faces.
9387
9388 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9389 Allow MSDOS frames along with X frames.
9390
9391 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9392 addition to output_termcap.
9393
9394 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9395
9396 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9397 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9398 highlight.
9399
9400 * process.c [!subprocesses]: Define QCname.
9401 (syms_of_process): Intern and staticpro it.
9402
9403 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
9404 Adjust for changes in encoding/decoding routines.
9405 Use encode_coding_object and decode_coding_object instead of
9406 encode_coding and decode_coding.
9407
9408 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
9409
9410 * dosfns.c: Include frame.h before termhooks.h.
9411 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9412 variable termscript.
9413
9414 * s/msdos.h (USER_FULL_NAME): Define.
9415 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9416
9417 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9418 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9419 pw->pw_gecos.
9420
9421 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9422 SELECTED_FRAME as additional (1st) argument.
9423 (tty_read_avail_input): Handle output_msdos_raw in
9424 addition to output_termcap.
9425
9426 * msdos.c: Include frame.h before termhooks.h.
9427 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9428 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9429 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9430 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9431 (IT_set_terminal_modes, IT_reset_terminal_modes)
9432 (IT_set_frame_parameters): Use tty->termscript instead of a global
9433 variable termscript.
9434 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9435 global variable terminal_coding. Don't refer to
9436 Vnonascii_translation_table.
9437 (internal_terminal_init): Set Vwindow_system in current_kboard.
9438 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9439 Announce date and time of session start, if termscript is open.
9440 Don't zero out the_only_display_info (it is done in
9441 term.c:init_tty). Open termscript only of not already open.
9442 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
9443 here instead of dos_ttraw. Don't initialize display if this is an
9444 initial tty. Don't set FRAME_FONT.
9445 (Vwindow_system_version): Bump to 23.
9446 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9447 is available, set up mouse_position_hook.
9448 (dos_ttraw, IT_set_terminal_modes): If called with initial
9449 terminal, do nothing.
9450 (IT_set_frame_parameters): Handle the Qtty_type frame
9451 parameter by calling internal_terminal_init.
9452 (dos_set_window_size, show_mouse_face)
9453 (clear_mouse_face, IT_note_mode_line_highlight)
9454 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9455 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9456 (initialize_msdos_display): New function.
9457 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9458 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9459 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9460 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
9461 Accept additional argument: a pointer to a frame. Update all callers.
9462 (request_sigio, unrequest_sigio): Don't define, now defined on
9463 sysdep.c.
9464 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9465
9466 * term.c [MSDOS]: Include msdos.h.
9467 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9468 conditional to DOS_NT. Allow only one call to this function in a
9469 session. Don't allocate a new struct tty_display_info; instead,
9470 reuse the_only_display_info. Call get_tty_size to get screen
9471 dimensions. Call init_baud_rate to set bad_rate.
9472 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9473 (Fsuspend_tty) [MSDOS]: Don't close input and output.
9474 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
9475 (get_tty_terminal, get_named_tty, Ftty_type)
9476 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9477 output_termcap.
9478 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9479 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
9480 only when subprocesses are supported.
9481
9482 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9483 f->output_data.x.
9484 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9485 terminal devices.
9486
9487 * msdos.h: Remove definition of struct x_display_info and struct
9488 x_output.
9489 (FRAME_FONT): Use output_data.tty.
9490 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
9491 (struct x_display_info): Rename from display_info. Update all users in
9492 msdos.c.
9493 (struct x_output): Remove background_pixel and foreground_pixel.
9494 (the_only_display_info): Rename from the_only_x_display.
9495 (dos_ttraw): Update prototype.
9496
9497 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9498 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9499
9500 2008-08-23 Jason Rumney <jasonr@gnu.org>
9501
9502 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9503 (fn_TIFFSetDirectory): New library function used.
9504 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9505 (tiff_load): Use :index to select among multiple images. Set count
9506 property when multiple images exist.
9507 (gif_format): Use :index, not :image.
9508
9509 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
9510
9511 * xdisp.c (try_scrolling): Check INT_MAX instead of
9512 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9513 to obtain INT_MAX.
9514
9515 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9516
9517 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9518
9519 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9520
9521 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9522 GNUstep library location.
9523
9524 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
9525
9526 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9527 before using it.
9528
9529 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9530
9531 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9532
9533 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9534 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9535 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9536 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9537 (EmacsApp-cursor_blink_handler): Remove declaration.
9538 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9539 match 01 Feb 2008 changes in xterm.c.
9540 (ns_read_socket): Add cast to avoid warning.
9541 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9542 GNUstep.
9543
9544 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
9545
9546 * xselect.c (x_get_foreign_selection): Return nil if desired
9547 selection could not be obtained, instead of signalling an error.
9548
9549 2008-08-20 David Reitter <david.reitter@gmail.com>
9550
9551 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9552 * nsterm.m: Remove ns-specific code for cursor blinking.
9553 (ns_draw_window_cursor): Clear cursor properly rather than
9554 redrawing the area. Respect width of bar cursors.
9555 These changes enable the use of generic blink-cursor-mode and
9556 generic cursor types in NS and support smooth cursor movements (do
9557 not blink off after command).
9558 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9559 Nextstep, too.
9560
9561 2008-08-19 Kenichi Handa <handa@m17n.org>
9562
9563 * font.c (Vfont_log_deferred): New variable.
9564 (font_add_log): Check Vfont_log_deferred.
9565 (font_deferred_log): New function.
9566
9567 * font.h (font_deferred_log): Extern it.
9568
9569 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9570 for sorting.
9571 (face_for_char): Use deferred log.
9572
9573 2008-08-18 Kenichi Handa <handa@m17n.org>
9574
9575 * fontset.c (face_for_char): Add font log.
9576
9577 * font.c (font_add_log): Add the font properties :script, :lang,
9578 and :otf in the log.
9579
9580 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
9581
9582 * xdisp.c: Remove dead code.
9583 (handle_invisible_prop, next_overlay_string): Defer call to
9584 setup_for_ellipsis.
9585 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9586
9587 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * xfaces.c (lookup_derived_face): Properly handle possible zero
9590 return value of get_lface_attributes.
9591 (merge_faces): Don't tell lookup_derived_face to signal an error
9592 if face is not found.
9593
9594 * dired.c (Fdirectory_files): Doc fix.
9595
9596 * process.c (make_process): Initialize kill_without_query struct
9597 member.
9598
9599 2008-08-15 Eli Zaretskii <eliz@gnu.org>
9600
9601 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9602 Alternative calculation of totphys for Visual Studio 6.
9603
9604 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9605
9606 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9607 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9608 All users changed.
9609 (stat): Only root directory passed to GetDriveType. Allow RAM
9610 disk as well as local fixed disk when w32-get-true-file-attributes
9611 is set to `local'.
9612 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9613 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9614 (w32_cached_id, w32_add_to_cache): New functions.
9615 (get_name_and_id): Look account names in the cache before calling
9616 lookup_account_sid.
9617 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9618 New initialization flags.
9619 (globals_of_w32): Initialize them to zero.
9620 (w32_system_process_attributes): Use w32_cached_id and
9621 w32_add_to_cache.
9622
9623 2008-08-14 Lawrence Mitchell <wence@gmx.li>
9624
9625 * lread.c (Fread_char, Fread_char_exclusive): If no character
9626 event is read before timeout is reached, return nil, rather than
9627 converting to a number.
9628
9629 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
9630
9631 * fns.c (use_dialog_box): Doc fix.
9632
9633 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9634 on OS X.
9635
9636 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
9637
9638 * frame.c (Qns_parse_geometry): New var.
9639 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9640
9641 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
9642
9643 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9644 space character in calculating tabs.
9645
9646 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9647
9648 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9649
9650 2008-08-10 Glenn Morris <rgm@gnu.org>
9651
9652 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9653 silence gcc "limited range of data type" warnings in some
9654 make_fixnum_or_float calls.
9655
9656 2008-08-09 Eli Zaretskii <eliz@gnu.org>
9657
9658 * w32.c (w32_system_process_attributes): If the process does not
9659 exist, return nil.
9660
9661 * w32.c: Include thelp32.h, psapi.h and coding.h.
9662 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9663 declarations.
9664 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9665 (Process32Next_Proc): New typedefs.
9666 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9667 (g_b_init_process32_next, g_b_init_open_thread_token)
9668 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9669 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9670 (g_b_init_get_process_working_set_size)
9671 (g_b_init_global_memory_status_ex): New static variables.
9672 (globals_of_w32): Initialize them.
9673 (create_toolhelp32_snapshot, process32_first, process32_next)
9674 (open_thread_token, impersonate_self, revert_to_self)
9675 (get_process_memory_info, get_process_working_set_size)
9676 (global_memory_status, global_memory_status_ex): New wrapper
9677 functions.
9678 (w32_list_system_processes, w32_system_process_attributes)
9679 (enable_privilege, restore_privilege, ltime, process_times):
9680 New functions.
9681 (convert_time_raw): New function.
9682 (convert_time): Remove conversion of FILETIME into time in 100
9683 nsec units, call convert_time_raw instead.
9684
9685 * process.h (w32_list_system_processes, w32_system_process_attributes):
9686 Add prototypes.
9687 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9688 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9689 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9690 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9691
9692 * process.c (Fsystem_process_attributes): Doc fix.
9693
9694 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
9695
9696 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9697 a continued multi-char glyph; if so, advance to the actual glyph.
9698
9699 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9700
9701 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9702
9703 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9704 (.m.o): Use it.
9705 * config.in: Regenerate.
9706
9707 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
9708
9709 * xdisp.c (redisplay_window): Revert last change.
9710 (try_window): Check bottom scroll margin too.
9711
9712 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9713
9714 * config.in: Regenerate.
9715
9716 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9717 -list-load-path-shadows'.
9718 (nsgui.h): Reduce number of things depending on it.
9719
9720 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9723 instead of window-end which does the wrong thing at eob.
9724 (try_cursor_movement): Minor optimization.
9725 (redisplay_window): If scroll margin is defined, don't assume
9726 window doesn't need scrolling.
9727
9728 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9729
9730 * config.in: Regenerate.
9731
9732 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9733 (mostlyclean): Don't delete *.d under NS.
9734
9735 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9736
9737 2008-08-06 Kenichi Handa <handa@m17n.org>
9738
9739 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9740
9741 2008-08-06 Andreas Schwab <schwab@suse.de>
9742
9743 * config.in: Regenerate.
9744
9745 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
9746
9747 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9748 forcing a window start.
9749
9750 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9751 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9752
9753 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9754
9755 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9756 argument.
9757
9758 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
9759
9760 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9761 <scroll-down-aggressively, before-change-functions>:
9762 <after-change-functions>: Reflow docstrings.
9763
9764 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9765 Ken Raeburn <raeburn@gnu.org>
9766
9767 Dock menu customization, based on a patch by Ken Raeburn, plus some
9768 other fixes.
9769 * nsmenu.m (dockMenu): New variable.
9770 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9771
9772 * nsterm.h (dockMenu): Declare.
9773
9774 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9775 (ns_term_init): Initialize dockMenu.
9776 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9777 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9778 left.
9779
9780 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9781
9782 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9783
9784 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9785
9786 * config.in: Regenerate.
9787
9788 2008-08-04 Seiji Zenitani <zenitani@mac.com>
9789
9790 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9791
9792 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
9793
9794 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9795
9796 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9797
9798 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9799
9800 * keyboard.h: Comment an #endif.
9801
9802 * lisp.h (have_menus_p): Adjust comment.
9803
9804 * menu.c (find_and_return_menu_selection): Fix comparison with
9805 client_data.
9806
9807 * nsmenu.m (popup_activated_flag): New variable.
9808 (popup_activated): New function.
9809 (menu-or-popup-active-p): New exported lisp definition.
9810 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9811 when popup done.
9812 (ns_popup_dialog): Set popup_activated_flag.
9813
9814 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9815 version for GNUstep (handled by conditional typedef in nsterm.m).
9816 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9817 in rgb.txt).
9818
9819 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9820
9821 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9822
9823 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9824
9825 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9826 shortcircuit if popup_activated like GTK and X toolkit.
9827
9828 * m/inter386.h: Change DARWIN to DARWIN_OS.
9829
9830 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9831 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9832 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9833 comment on NO_SOCK_SIGIO.
9834
9835 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
9836
9837 * nsterm.m (windowDidResize): Remove stopModal call.
9838
9839 2008-08-03 Andreas Schwab <schwab@suse.de>
9840
9841 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9842 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9843
9844 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
9845
9846 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9847 Don't use uninitialized pointer variable when using getrlimit.
9848
9849 2008-08-02 Jason Rumney <jasonr@gnu.org>
9850
9851 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9852
9853 2008-08-02 Eli Zaretskii <eliz@gnu.org>
9854
9855 * alloc.c (NSTATICS): Bump to 0x640.
9856
9857 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9858
9859 * lisp.h: Add prototype for directory_files_internal.
9860
9861 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9862 New functions.
9863 (syms_of_process): Defsubr them. Add initializations for various
9864 Q* symbols used in procfs_system_process_attributes.
9865 (procfs_list_system_processes, procfs_system_process_attributes)
9866 [HAVE_PROCFS]: New functions.
9867 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9868 (procfs_get_total_memory): New functions.
9869
9870 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9871
9872 * xfaces.c (Fx_load_color_file): Fix previous change;
9873 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9874
9875 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
9876
9877 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9878
9879 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9880
9881 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9882
9883 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
9884
9885 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9886
9887 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9888 define NSApplicationDelegateReplySuccess.
9889 (EmacsView -converstationIdentifier): Use long instead of
9890 NSInteger for GNUstep, since it doesn't have NSInteger.
9891
9892 * xmenu.c: Revert last change.
9893
9894 * keyboard.h: Fix last change.
9895
9896 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
9897
9898 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9899 on Windows.
9900
9901 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9902
9903 Warning clearing and clean-up in NS port.
9904 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9905 Add prototypes.
9906 * nsgui.h (FACE_DEFAULT): Remove, unused.
9907 (XGCValues): Change colors to unsigned long.
9908 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9909 nsterm.m.
9910 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9911 (ns_list_fonts): Remove, unused.
9912 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9913 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9914 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9915 (nsfont_draw): Compare face colors to 0, not nil.
9916 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9917 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9918 (-addSubmenuWithTitle:): Use NSMenuItem class.
9919 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9920 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9921 (ns_clip_to_row): Make gc arg a BOOL.
9922 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9923 ns_clip_to_row() call.
9924 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9925 used). Cast FRAME_FONT assignments.
9926 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9927 (ns_string_to_lispmod): Change arg to const char.
9928 (ns_term_init): Use NSMenuItem class.
9929 (EmacsApp -openFile:): Move to different section of file.
9930 (EmacsApp -application:openFiles:): Don't return a value, call
9931 -replyToOpenOrPrint:.
9932 (EmacsView -keyDown:): Fix up cast.
9933 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9934 (EmacsView -menuDown:): Cast tag in call to
9935 find_and_call_menu_selection().
9936 (ns_list_fonts): Remove, unused.
9937 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9938 (ns_fontname_to_xlfd): Make static.
9939 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9940 Remove prototypes (now in keyboard.h).
9941 (next_menubar_widget_id): Remove, unused.
9942 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9943 Remove prototypes (now in keyboard.h).
9944 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9945
9946 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9947
9948 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9949 (floatfns.o): Depend on syssignal.h.
9950 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9951
9952 * systty.h: Fix previous change that removed BSD_TERMIOS.
9953 Add comments to #ifdefs.
9954
9955 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9956
9957 * w32fns.c (w32-load-color-file): Remove.
9958 (x-open-connection): Use renamed Fx_load_color_file.
9959 * xfaces.c (x-load-color-file): Add.
9960 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9961 Emacs.clr.
9962 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9963
9964 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
9965
9966 * dbusbind.c (Fdbus_call_method_asynchronously)
9967 (Fdbus_method_error_internal): New defuns.
9968 (xd_read_message): Handle also reply messages.
9969 (Vdbus_registered_functions_table): Extend docstring.
9970
9971 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
9972
9973 * keyboard.c (gobble_input): Fix previous change.
9974
9975 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9976
9977 * bitmaps/README:
9978 * xfns.c:
9979 * termcap.c:
9980 * term.c:
9981 * syswait.h:
9982 * systty.h:
9983 * systime.h:
9984 * syssignal.h:
9985 * sysdep.c:
9986 * process.h:
9987 * process.c:
9988 * print.c:
9989 * ndir.h:
9990 * lread.c:
9991 * keyboard.c:
9992 * getpagesize.h:
9993 * floatfns.c:
9994 * fileio.c:
9995 * emacs.c:
9996 * doc.c:
9997 * dispnew.c:
9998 * dired.c:
9999 * data.c:
10000 * callproc.c:
10001 * buffer.c:
10002 * README:
10003 * Makefile.in:
10004 * s/template.h:
10005 * s/msdos.h:
10006 * m/vax.h: Remove VMS support.
10007 * s/vms.h:
10008 * vlimit.h:
10009 * uaf.h:
10010 * temacs.opt:
10011 * param.h:
10012 * ioctl.h: Remove file.
10013
10014 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10015
10016 * s/ms-w32.h (MULTI_KBOARD): Remove.
10017 * xterm.c:
10018 * xselect.c:
10019 * xfns.c:
10020 * window.c:
10021 * w32term.c:
10022 * w32fns.c:
10023 * terminal.c:
10024 * termhooks.h:
10025 * term.c:
10026 * sysdep.c:
10027 * keyboard.h:
10028 * keyboard.c:
10029 * frame.h:
10030 * frame.c:
10031 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10032 * config.in: Regenerate.
10033
10034 2008-07-30 Jason Rumney <jasonr@gnu.org>
10035
10036 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10037
10038 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10039 (w32font_open_internal): Get unicode version of textmetrics.
10040 Don't enable or disable glyph indices here.
10041 (w32font_open): Disable use of glyph indices.
10042
10043 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10044
10045 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
10046
10047 * minibuf.c (Vread_buffer_function): Doc fix.
10048
10049 2008-07-30 John Paul Wallington <jpw@pobox.com>
10050
10051 * minibuf.c (read_buffer_completion_ignore_case): New var.
10052 (Fread_buffer): Use it.
10053
10054 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * systty.h (sensemode): Remove empty #if. Remove reference to
10057 BSD_TERMIOS, unused.
10058
10059 * sysdep.c: Remove reference to DGUX.
10060 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10061
10062 * config.in: Regenerate.
10063
10064 2008-07-30 Jason Rumney <jasonr@gnu.org>
10065
10066 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10067
10068 2008-07-29 Jason Rumney <jasonr@gnu.org>
10069
10070 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10071 is populated.
10072 (uniscribe_encode_char): Always use uniscribe.
10073 Avoid using context if cache is populated.
10074
10075 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10076
10077 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10078 open menu.
10079
10080 * gtkutil.c (menu_nav_ended): Remove.
10081 (create_menus): Remove signal connect for menu_nav_ended.
10082
10083 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
10084
10085 * xdisp.c (redisplay_window): Check return value of
10086 compute_window_start_on_continuation_line before forcing a window
10087 start.
10088
10089 2008-07-28 Jason Rumney <jasonr@gnu.org>
10090
10091 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10092
10093 * w32term.c (w32_enable_unicode_output, cleartype_active):
10094 Remove obsolete display options.
10095 (x_draw_glyph_string_background): Don't use old cleartype_active
10096 workaround.
10097 (w32_initialize): Remove cleartype_active initialization.
10098 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10099
10100 2008-07-28 Andreas Schwab <schwab@suse.de>
10101
10102 * lisp.h (init_weak_hash_tables, syms_of_font)
10103 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10104 (remove_hash_entry): Don't declare.
10105 * eval.c (maybe_call_debugger): Make static and move before use.
10106 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10107 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10108 * xterm.h (x_set_frame_alpha): Declare.
10109
10110 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10111
10112 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10113 (create_menus): Connect selection-done to menu_nav_ended.
10114
10115 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10116
10117 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10118 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10119 parameter with read of 'alpha' one.
10120 (Qns_frame_parameter): Remove.
10121 * nsselect.m (selection-coding-system)
10122 (next-selection-coding-system, Vselection_coding_system)
10123 (Vnext_selection_coding_system): Drop.
10124
10125 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10126
10127 * nsfns.m (do-applescript, do_applescript): Rename to
10128 ns-do-applescript, ns_do_applescript, and move within file.
10129
10130 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10131
10132 Remove support for Mac Carbon.
10133 * mactoolbox.c:
10134 * macterm.h:
10135 * macterm.c:
10136 * macselect.c:
10137 * macmenu.c:
10138 * macgui.h:
10139 * macfns.c:
10140 * mac.c: Remove file.
10141 * s/darwin.h:
10142 * m/intel386.h:
10143 * xfaces.c:
10144 * xdisp.c:
10145 * window.c:
10146 * tparam.c:
10147 * termhooks.h:
10148 * termcap.c:
10149 * term.c:
10150 * syssignal.h:
10151 * sysselect.h:
10152 * sysdep.c:
10153 * process.c:
10154 * lread.c:
10155 * lisp.h:
10156 * keyboard.c:
10157 * image.c:
10158 * fringe.c:
10159 * frame.h:
10160 * frame.c:
10161 * fontset.c:
10162 * font.h:
10163 * font.c:
10164 * fns.c:
10165 * fileio.c:
10166 * emacs.c:
10167 * dispnew.c:
10168 * dispextern.h:
10169 * config.in:
10170 * atimer.c:
10171 * Makefile.in: Remove code for Carbon.
10172
10173 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10174
10175 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10176
10177 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10178
10179 * macterm.h (kCGBitmapByteOrder32Host): New define for
10180 non-universal SDKs.
10181
10182 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10183 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10184
10185 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10186 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10187
10188 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10189
10190 * w32inevt.c: Include dispextern.h.
10191
10192 2008-07-26 Andreas Schwab <schwab@suse.de>
10193
10194 * print.c (print_object): Fix off-by-one in last change.
10195
10196 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
10197
10198 * term.c (syms_of_term): Don't initialize default_orig_pair,
10199 default_set_foreground and default_set_background on Windows.
10200
10201 2008-07-25 Jason Rumney <jasonr@gnu.org>
10202
10203 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10204 ScriptItemize. Clean up return value checking. Remove unused
10205 variables.
10206 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10207 shaping engine.
10208
10209 * w32font.c (w32font_has_char): Handle the case where we can't
10210 determine the script for a character.
10211
10212 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10213
10214 * term.c (syms_of_term): Initialize default_orig_pair,
10215 default_set_foreground, and default_set_background.
10216
10217 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10218 clash (bug#86).
10219 (getloadavg): Callers changed.
10220
10221 * image.c (svg_load_image): Fix last change.
10222 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10223 image size is valid. Use g_object_unref instead of deprecated
10224 rsvg_handle_free to free rsvg handle.
10225 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10226
10227 2008-07-25 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10230 surrogates before looking up glyph index.
10231 (w32font_text_extents): Encode as surrogates if falling back to
10232 functions that need UTF-16 wide chars.
10233
10234 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10235 BMP as surrogates before looking up glyph index.
10236
10237 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
10238
10239 * image.c (svg_load_image): Check for failure in return value of
10240 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10241
10242 2008-07-25 Jason Rumney <jasonr@gnu.org>
10243
10244 * w32font.c (Fx_select_font): Reverse sense of second arg.
10245
10246 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10247
10248 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10249 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10250
10251 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10252 (PURESIZE): Use it.
10253
10254 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10255
10256 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10257 * m/alpha.h (TEXT_END):
10258 * m/ibmrs6000.h (TEXT_END):
10259 * m/macppc.h (TEXT_END):
10260 * s/darwin.h (TEXT_END):
10261 * s/msdos.h (TEXT_END): Remove, unused.
10262 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10263 * s/cygwin.h: Remove comment.
10264
10265 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10266 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10267 * m/intel386.h (DOT_GLOBAL_START):
10268 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10269 (USG): Remove, file not used on USG platforms.
10270
10271 * Makefile.in (HAVE_X11): Remove empty #else.
10272
10273 2008-07-24 Andreas Schwab <schwab@suse.de>
10274
10275 * fileio.c (Finsert_file_contents): Properly adjust undo list
10276 after format conversion.
10277
10278 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10279
10280 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10281 (menu_nav_ended): Remove.
10282 (create_menus): Remove signal connect for menu_nav_ended.
10283 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10284 create_menus.
10285 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10286
10287 2008-07-23 Jason Rumney <jasonr@gnu.org>
10288
10289 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10290 with opened font.
10291 (w32font_open): Set font type to gdi.
10292
10293 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10294
10295 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10296
10297 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10298 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10299 defines it.
10300 * unexec.c (ADDR_CORRECT): Define unconditionally.
10301
10302 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10303
10304 * unexec.c: Remove code depending on !COFF and USG, the file is
10305 not used for such systems.
10306
10307 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10308 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10309 (LD_SWITCH_SYSTEM_1): Remove, update users.
10310
10311 * s/darwin.h (DATA_END):
10312 * m/intel386.h (DATA_END):
10313 * m/ibmrs6000.h (DATA_END):
10314 * m/alpha.h (DATA_END): Remove, unused.
10315
10316 * config.in: Regenerate.
10317 * s/ms-w32.h (subprocesses): Define unconditionally.
10318 * s/template.h (subprocesses): Update comment.
10319 * s/vms.h (subprocesses):
10320 * s/usg5-4.h (subprocesses):
10321 * s/hpux10-20.h (subprocesses):
10322 * s/gnu-linux.h (subprocesses):
10323 * s/cygwin.h (subprocesses):
10324 * s/bsd-common.h (subprocesses):
10325 * s/aix4-2.h (subprocesses):
10326 * s/darwin.h (subprocesses): Do not define, defined by default now.
10327
10328 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10329 Remove all references.
10330 (temacs): Add GNUstep specific ld flags.
10331
10332 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10333 similarly to what X does.
10334
10335 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10336
10337 * nsfns.m (x-list-fonts): Remove.
10338 (syms_of_nsfns): Drop the x-list-fonts declaration.
10339 * nsterm.m: Get rid of remaining "//" comments.
10340
10341 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
10342
10343 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10344
10345 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10346 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10347 (Fns_own_selection_internal, Fx_disown_selection_internal)
10348 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10349
10350 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10351 ... */' style of docstrings. Doc fixes.
10352
10353 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10354
10355 * terminfo.c (UP, BC, PC): Undo previous change.
10356
10357 * nsfns.m: Rename ns prefixed functions/variables to the
10358 corresponding x versions. Update references.
10359
10360 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10361
10362 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10363
10364 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10365
10366 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10367 Remove forwarding functions.
10368 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10369 non-static.
10370 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10371 non-static.
10372 (ns_frame_parm_handlers): Use the new names.
10373 (syms_of_nsfns): Move to the end of file.
10374
10375 * nsterm.m (syms_of_nsterm): Move to the end of file.
10376
10377 * dispnew.c (init_display): Remove code for X10.
10378
10379 2008-07-22 Jason Rumney <jasonr@gnu.org>
10380
10381 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10382 bare drive.
10383
10384 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10385
10386 * nsterm.m (syms_of_nsterm): Remove debugging println.
10387
10388 2008-07-22 David Reitter <david.reitter@gmail.com>
10389
10390 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10391 Carbon implementation of the same functionality: execute arbitrary
10392 AppleScript code.
10393
10394 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10395
10396 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10397 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10398 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10399 (Fx_display_mm_height, Fx_display_mm_width)
10400 (Fx_display_backing_store, Fx_display_visual_class)
10401 (Fx_display_save_under, Fx_open_connection)
10402 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10403 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10404 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10405 (Fx_display_pixel_width, Fx_display_pixel_height)
10406 (Fx_display_usable_bounds, Fx_display_planes)
10407 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10408 ... */' style of docstrings.
10409
10410 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10411
10412 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10413 on this platform.
10414 (mips):
10415 * m/iris4d.h (mips): Do not define.
10416 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10417
10418 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10419
10420 * image.c:
10421 * nsfns.m:
10422 * nsselect.m:
10423 * nsterm.h:
10424 * nsterm.m: Rename ns prefixed functions/variables to the
10425 corresponding x versions. Update references.
10426
10427 * m/ibms390x.h (NO_REMAP): Do not undefine.
10428
10429 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10430
10431 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
10432
10433 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10434 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10435 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10436 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10437 (Fns_display_mm_height, Fns_display_mm_width)
10438 (Fns_display_backing_store, Fns_display_visual_class)
10439 (Fns_display_save_under, Fns_open_connection)
10440 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10441 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10442 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10443 (Fns_display_pixel_width, Fns_display_pixel_height)
10444 (Fns_display_usable_bounds, Fx_display_planes)
10445 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10446
10447 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10448
10449 * print.c (print_object): Check print_depth before searching for
10450 circularities.
10451
10452 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
10453
10454 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10455 only sprintf.
10456
10457 2008-07-21 Kenichi Handa <handa@m17n.org>
10458
10459 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10460
10461 2008-07-20 Andreas Schwab <schwab@suse.de>
10462
10463 * syntax.c (find_start_pos, find_start_value)
10464 (find_start_value_byte, find_start_begv, find_defun_start)
10465 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10466
10467 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10468
10469 * s/sol2-3.h: Insert contents of s/sol2.h.
10470 (LD_SWITCH_SYSTEM): Remove redundant definition.
10471 * s/sol2.h: Remove, unused.
10472
10473 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10474
10475 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10476
10477 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10478
10479 * Makefile.in (ns_appdir): Fix typo in find command.
10480
10481 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10482
10483 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10484
10485 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10486 added not supported anymore.
10487
10488 * s/usg5-4-2.h (LIBS_SYSTEM):
10489 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10490
10491 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10492 * s/lynxos.h (GETPGRP_NO_ARG):
10493 * s/hpux10-20.h (NO_SIOCTL_H):
10494 * s/gnu.h (GETPGRP_NO_ARG):
10495 * s/gnu-linux.h (NO_SIOCTL_H):
10496 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10497 * s/cygwin.h (GETPGRP_NO_ARG):
10498 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10499 (C_DEBUG_SWITCH): Remove duplicate definition.
10500
10501 * m/ibms390.h: Remove boilerplate comments.
10502
10503 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10504
10505 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10506 (wait_reading_process_output): Remove code for SunOS, platform not
10507 supported anymore. Use SOLARIS2 instead of sun.
10508
10509 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10510
10511 * font.c (font_open_by_name): Under NS, default lface height to zero.
10512 (font_open_for_lface): Under NS, set size based on frame fontsize.
10513 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10514 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10515
10516 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10517
10518 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10519 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10520 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10521 YES/NO.
10522 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10523 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10524 * Makefile.in (clean): Clear out build destination dir.
10525
10526 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10527
10528 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10529 xterm, xselect.
10530 * lisp.h: Remove declaration of hash_remove.
10531 * nsgui.h: Remove redefinitions of hash_remove.
10532 * fns.c (hash_remove): Rename to hash_remove_from_table.
10533
10534 2008-07-19 Seiji Zenitani <zenitani@mac.com>
10535
10536 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10537 strdup() the family UTF8String before modifying it.
10538
10539 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10540
10541 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10542 NS_FACE_BACKGROUND with 0 instead of nil.
10543 * nsfont.m (nsfont_draw): Same.
10544
10545 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * nsfns.m (ns_set_background_color): Fix crash.
10548
10549 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10552
10553 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10554
10555 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10556
10557 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10558
10559 * gtkutil.c: Include <config.h> instead of "config.h".
10560
10561 * lisp.h (Foverlay_buffer): Add EXFUN.
10562
10563 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10564 child process to complete child_setup. Undo 2005-09-21 change.
10565
10566 * s/darwin.h: Mention setsid after vfork.
10567
10568 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10569
10570 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10571 Depend on macgui.h.
10572
10573 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10574 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10575
10576 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10577 and f19.
10578 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10579
10580 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10581 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10582 Remove enumerators.
10583
10584 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10585 Check if FACE_FROM_ID returns NULL.
10586
10587 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10588
10589 * w32inevt.c (change_frame_size): Remove extern declaration.
10590 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10591 change_frame_size.
10592
10593 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10594
10595 * getloadavg.c: Revert last change (2008-07-15).
10596
10597 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10598
10599 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
10600 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
10601 from configure.
10602
10603 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10604
10605 * s/sol2.h:
10606 * s/sol2-4.h: Reorganize conditionals.
10607
10608 * ecrt0.c: Remove code depending on m68000, not used anymore.
10609
10610 * fns.c (hash_remove): Make static.
10611 * lisp.h (hash_remove): Don't prototype.
10612
10613 * m/ibmrs6000.h:
10614 * m/ibms390x.h:
10615 * m/macppc.h: Remove boilerplate comments.
10616
10617 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10618 Solaris, which does not need them.
10619
10620 * m/vax.h: Remove comments about unsupported systems.
10621
10622 * s/darwin.h: Reorganize ifdefs.
10623
10624 2008-07-17 Andreas Schwab <schwab@suse.de>
10625
10626 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10627
10628 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10629
10630 Use SDATA. Follow coding convention of placing operators at
10631 beginning of next line rather than end of previous line, and placing
10632 spaces around infix operators.
10633
10634 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10635 in case it was defined already.
10636 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10637 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10638 ns_default.
10639 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10640 Lisp_Objects.
10641 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10642 (ns_defined_color, ns_color_to_lisp): Declare.
10643 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10644 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10645 it's accepted even with USE_LISP_UNION_TYPE.
10646 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10647 (update_frame_tool_bar): Remove apparently obsolete tests for
10648 non-integerness of f->tool_bar_lines.
10649 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10650 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10651 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10652 (nsfont_open): Don't confuse NULL for Qnil.
10653 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10654 * menu.h (find_and_call_menu_selection):
10655 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10656 (find_and_return_menu_selection): Always return something.
10657 * frame.h: Include dispextern.h for Display_Info.
10658 (display_x_get_resource): Declare.
10659
10660 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10661
10662 * syntax.c: Remove stdio.h include accidentally introduced in
10663 Emacs.app commit.
10664 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10665 NS_IMPL_COCOA.
10666 * keyboard.c (handle_async_input, input_available_signal): Remove
10667 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10668
10669 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10670
10671 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10672 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10673 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10674 Use SDATA.
10675
10676 * keymap.c: Remove all NS-specific code.
10677 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10678 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10679 where_is_preferred_modifier, return a different value depending on how
10680 preferred is the binding.
10681 (where_is_internal): Adjust accordingly.
10682 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10683 Adjust to new preferred_sequence_p.
10684 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10685 * keyboard.c (parse_solitary_modifier): Not static any more.
10686 * keyboard.h (parse_solitary_modifier): Declare.
10687
10688 2008-07-16 Andreas Schwab <schwab@suse.de>
10689
10690 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10691 of easymenu.
10692
10693 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
10694
10695 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10696 that we don't move off the line.
10697
10698 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10699
10700 * keyboard.c (Qsuper): Remove.
10701 (parse_menu_item): Don't call where_is_internal specially for NS.
10702
10703 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10704
10705 * s/gnu-linux.h: Remove boilerplate comments.
10706
10707 * m/alpha.h (__ELF__): Consolidate conditions.
10708
10709 * m/m68k.h (linux): Use GNU_LINUX instead.
10710 Remove boilerplate comments.
10711
10712 * m/intel386.h: Undo refactoring from previous change.
10713 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10714 too, remove dead code.
10715 (linux): Use GNU_LINUX instead.
10716
10717 2008-07-16 Jason Rumney <jasonr@gnu.org>
10718
10719 * w32gui.h: Repeat 26 June changes lost by last change.
10720
10721 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10722
10723 * systty.h: Remove code for Aix on 386, unsupported platform.
10724
10725 * s/ms-w32.h: Remove boilerplate comments.
10726 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10727
10728 * s/gnu-linux.h (TERM): Remove support.
10729 (HAVE_SYSVIPC): Remove, unused.
10730 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10731 for this system.
10732
10733 * process.c: Remove support for IRIS, unused.
10734 Remove support for TERM, not relevant anymore.
10735
10736 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10737 used with the definition.
10738
10739 * s/aix4-2.h (static): Do not undef.
10740
10741 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10742 only used on Aix.
10743 (HAVE_SYSVIPC): Remove, unused.
10744
10745 * m/hp800.h (CANNOT_DUMP): Do not undef.
10746
10747 * m/alpha.h: Fix comment.
10748
10749 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10750 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10751 used by this configuration.
10752 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10753 * unexec.c: Remove code depending on HPUX and
10754 USG_SHARED_LIBRARIES, not used with this file. Remove code
10755 depending on IRIS, unused. Remove if 0-ed code.
10756
10757 * s/template.h: Remove comments about static.
10758
10759 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10760 Remove if 0-ed code.
10761 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10762 were the same as the default.
10763 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10764 Remove boilerplate comments.
10765 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10766 (HAVE_SYSVIPC): Remove, unused.
10767 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10768
10769 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10770 Remove boilerplate comments.
10771 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10772 Remove boilerplate comments.
10773 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10774 Remove boilerplate comments.
10775 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10776
10777 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10778 USG systems which do not use DATA_SEG_BITS.
10779 Refactor code. Remove boilerplate comments.
10780
10781 * m/ibms390.h:
10782 * m/m68k.h:
10783 * s/bsd-common.h:
10784 * s/cygwin.h:
10785 * s/darwin.h:
10786 * s/freebsd.h:
10787 * s/gnu.h:
10788 * s/msdos.h: Remove boilerplate comments.
10789
10790 * m/iris4d.h: Remove boilerplate comments and code for systems that
10791 do not use this file.
10792 (IRIS_4D): Remove, unused.
10793
10794 * m/mips.h: Remove boilerplate comments and code for systems that
10795 do not use this file.
10796 (SIGN_EXTEND_CHAR):
10797 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10798 * unexmips.c: Remove file, unused.
10799
10800 * editfns.c (Fuser_full_name): Replace the only use of
10801 USER_FULL_NAME with its value.
10802 * config.in: Regenerate.
10803
10804 2008-07-16 David Reitter <david.reitter@gmail.com>
10805
10806 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10807 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10808
10809 2008-07-16 Glenn Morris <rgm@gnu.org>
10810
10811 * emacs.c (system-type): Doc fix.
10812
10813 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10814
10815 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10816 If the cache doesn't work, let's fix it, rather than work around it.
10817
10818 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10819
10820 * Makefile.in: Correct additions for nsfont.o in last commit.
10821 * nsfont.m: New file (forgot last commit).
10822
10823 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10824
10825 * callproc.c (set_initial_environment): Initialize
10826 Vprocess_environment under CANNOT_DUMP (fixes crash when
10827 batch-compiling for bootstrap).
10828
10829 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10830 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10831
10832 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10833 fix crash due to different init order.
10834
10835 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10836
10837 Changes and additions for NeXTstep windowing system (Cocoa and
10838 GNUstep) support.
10839
10840 * Makefile.in:
10841 * config.in: Support defines and build commands for NS port.
10842 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10843 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10844 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10845 windowing.
10846 (struct face): Add synth_ital field.
10847 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10848 (init_display): Initialize Vinitial_window_system to "ns" when so
10849 compiled.
10850 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10851 (display_arg): Use under NS.
10852 (main): Under NS, allocate autorelease pool and handle command line
10853 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10854 (standard_args): Add NS-specific args.
10855 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10856 * font.c (DEFAULT_ENCODING): New variable.
10857 (font_find_for_lface): Use it.
10858 (syms_of_font): Load syms_of_nsfont under NS.
10859 * font.h: Declare nsfont_driver when compiled under NS.
10860 * fontset.c: When compiling under NS, include nsterm.h.
10861 (fontset_from_font): Autoconstruct fontset under NS.
10862 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10863 symbol, document and use it.
10864 (do_switch_frame): When for_deletion under Cocoa, add
10865 Fraise_frame(Qnil).
10866 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10867 (x_get_arg): Allow "yes" and "no" as boolean values.
10868 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10869 Qright under Cocoa.
10870 (focus-follows-mouse): Default to 0 under NS.
10871 * frame.h (enum output_method): Add output_ns.
10872 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10873 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10874 (FRAME_WINDOW_P): NS-specific definition.
10875 * fringe.c (max_used_fringe_bitmap): Make public.
10876 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10877 (getloadavg): Use NeXT code under descendant OS's.
10878 * image.c (includes and header section, x_create_bitmap_from_data)
10879 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10880 (image_background_transparent, x_clear_image_1)
10881 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10882 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10883 (x_to_xcolors, x_from_xcolors, x_disable_image)
10884 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10885 other GUIs, including XPM support using code originally written for
10886 Carbon GUI.
10887 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10888 using NS API.
10889 (image_ascent): Use font metrics macros instead of direct struct field
10890 access.
10891 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10892 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10893 Also, handle NS as GTK for menu bar purposes.
10894 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10895 toolkit where they differ.
10896 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10897 use cachelist, still needed under NS.
10898 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10899 (struct widget_value): Define it here for menu.c.
10900 * keymap.c (includes): Include modifier internals.
10901 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10902 NS.
10903 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10904 support for preferring sequences using certain modifiers, specified by
10905 the FIRSTONLY argument.
10906 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10907 under NS GNUstep implementation.
10908 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10909 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10910 * menu.c: Include nsterm.h under NS.
10911 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10912 (free_menubar_widget_tree_value, update_submenu_strings)
10913 (find_and_call_menu_selection): Treat NS as X and NT.
10914 (find_and_return_menu_selection): New function, used for popup menus.
10915 * nsgui.h:
10916 * nsterm.h:
10917 * nsfns.m:
10918 * nsimage.m:
10919 * nsmenu.m:
10920 * nsselect.m:
10921 * nsterm.m: New files.
10922 * process.c (wait_reading_process_output): Under NS, call ns_select()
10923 instead of plain select().
10924 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10925 beginning of buffer.
10926 * sysselect.h (init_process): Rename when compiling under Cocoa to
10927 avoid name conflict.
10928 * termhooks.h (display_info): Add ns_display_info to union.
10929 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10930 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10931 COCOA environment.
10932 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10933 unexec() signature. (Note, this will dump, but the resulting file
10934 crashes; unexosx is used instead; keeping around for reference and
10935 possible aid in getting dump working under GNUstep.)
10936 * w32gui.h (button_type, widget_value): Remove definitions (now in
10937 keyboard.h).
10938 * window.c: Include nsterm.h when compiling under NS.
10939 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10940 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10941 other GUI windowing systems.
10942 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10943 GTK.
10944 (x_consider_frame_title): Under NS, set icon type and frame
10945 modified-state indicator; use ns_set_name_as_filename() when using
10946 formatted title.
10947 (update_window_cursor): Make public when compiling under NS.
10948 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10949 (hourglass_atimer, Vhourglass_delay
10950 * xfaces.c (header section, init_frame_faces, clear_font_table)
10951 (defined_color, unload_color, x_face_list_fonts)
10952 (prepare_face_for_display): Add NS support parallel to other GUIs.
10953 Emulate GCs like other non-X GUIs.
10954 (split_font_name): Don't lowercase font name under NS.
10955 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10956 under NS.
10957 * s/darwin.h: Add support for compilation under NS.
10958
10959 2008-07-15 Jason Rumney <jasonr@gnu.org>
10960
10961 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10962 (w32_show_hourglass): Rename from show_hourglass.
10963 (w32_hide_hourglass): Rename from hide_hourglass.
10964 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10965 (Vhourglass_delay): Declare extern.
10966 (hourglass_started): Remove.
10967
10968 * xdisp.c (Vhourglass_delay): Remove static.
10969 (hourglass_started, start_hourglass, cancel_hourglass):
10970 Don't include these versions on WINDOWSNT.
10971
10972 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10973
10974 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10975 variables (formerly in xfns.c).
10976 (show_hourglass, hide_hourglass): New prototypes (same).
10977 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10978 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10979 in xfns.c).
10980 (syms_of_xdisp): Declare/initialize display-hourglass,
10981 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10982 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10983 formerly in xfns.c.
10984 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10985 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10986 (start_hourglass, cancel_hourglass): Remove.
10987 (show_hourglass, hide_hourglass): Remove prototypes and static
10988 modifiers.
10989 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10990 hourglass_atimer, hourglass_shown_p declaration/initialization.
10991 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10992 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10993 (start_hourglass, cancel_hourglass): Remove.
10994 (show_hourglass, hide_hourglass): Remove prototypes and static
10995 modifiers.
10996 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10997 hourglass_atimer, hourglass_shown_p declaration/initialization.
10998 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10999 (DEFAULT_HOURGLASS_DELAY): Remove.
11000 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
11001 hourglass_shown_p declaration/initialization.
11002
11003 2008-07-14 Jason Rumney <jasonr@gnu.org>
11004
11005 * w32fns.c (w32_get_arg): Remove wrapper function.
11006 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
11007 directly.
11008 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
11009
11010 2008-07-14 Kenichi Handa <handa@m17n.org>
11011
11012 * xfont.c (xfont_open): Add workaround for X's bug.
11013
11014 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11015
11016 * fontset.c: Include <stdio.h> unconditionally.
11017
11018 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
11019
11020 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11021 for filtering.
11022
11023 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11024
11025 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11026
11027 * m/macppc.h:
11028 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11029
11030 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11031 (SPECIAL_EMACS_INT):
11032 * m/ia64.h (SPECIAL_EMACS_INT):
11033 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11034 * s/gnu.h (NLIST_STRUCT):
11035 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11036 * s/gnu-linux.h (LINUX):
11037 * s/msdos.h (HAVE_FACES):
11038 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11039
11040 * systty.h:
11041 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11042 anymore.
11043
11044 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11045
11046 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11047 always defined as int.
11048
11049 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11050 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11051 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11052 * s/freebsd.h (HAVE_WAIT_HEADER):
11053 * s/bsd-common.h (HAVE_UNION_WAIT):
11054 * s/aix4-2.h (HAVE_WAIT_HEADER):
11055 * m/mips.h (HAVE_UNION_WAIT):
11056 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11057 (COFF, static): Do not define, they are undefined later in the file.
11058
11059 * process.c (update_status): Don't use a union.
11060 (status_convert):
11061 (sigchld_handler): Use int instead of WAITTYPE.
11062
11063 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * indent.c (Fvertical_motion): Restore hscroll before moving to
11066 goal column.
11067
11068 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11069
11070 * lisp.h: Remove left over code.
11071
11072 2008-07-11 Andreas Schwab <schwab@suse.de>
11073
11074 * lisp.h: Fix logic in last change.
11075
11076 * menu.h: New file.
11077 * menu.c: Include it.
11078 * xmenu.c: Likewise.
11079 * Makefile.in: Update dependencies.
11080
11081 2008-07-11 Kenichi Handa <handa@m17n.org>
11082
11083 * fontset.c (fontset_from_font): Cancel the previous change.
11084
11085 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11086
11087 * lisp.h:
11088 * w32heap.c:
11089 * emacs.c:
11090 * alloc.c: Replace all references of NO_UNION_TYPE with
11091 USE_LISP_UNION_TYPE.
11092
11093 * m/xtensa.h (NO_UNION_TYPE):
11094 * m/vax.h (NO_UNION_TYPE):
11095 * m/template.h (NO_UNION_TYPE):
11096 * m/sparc.h (NO_UNION_TYPE):
11097 * m/mips.h (NO_UNION_TYPE):
11098 * m/macppc.h (NO_UNION_TYPE):
11099 * m/m68k.h (NO_UNION_TYPE):
11100 * m/iris4d.h (NO_UNION_TYPE):
11101 * m/intel386.h (NO_UNION_TYPE):
11102 * m/ibms390x.h (NO_UNION_TYPE):
11103 * m/ibms390.h (NO_UNION_TYPE):
11104 * m/ibmrs6000.h (NO_UNION_TYPE):
11105 * m/ia64.h (NO_UNION_TYPE):
11106 * m/hp800.h (NO_UNION_TYPE):
11107 * m/arm.h (NO_UNION_TYPE):
11108 * m/amdx86-64.h (NO_UNION_TYPE):
11109 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11110 defining it the same.
11111
11112 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
11113
11114 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11115
11116 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11117
11118 * fileio.c:
11119 * sysdep.c:
11120 * systty.h:
11121 * m/ibmrs6000.h:
11122 * m/iris4d.h:
11123 * s/aix4-2.h:
11124 * s/freebsd.h:
11125 * s/gnu-linux.h:
11126 * s/hpux10-20.h:
11127 * s/hpux11.h:
11128 * s/netbsd.h:
11129 * s/sol2-3.h:
11130 * s/sol2-4.h:
11131 * s/sol2.h:
11132 * s/usg5-4.h:
11133 * s/vms.h: Remove references to unused variables.
11134
11135 2008-07-10 Andreas Schwab <schwab@suse.de>
11136
11137 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11138 pattern before matching the generic family.
11139
11140 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11141
11142 * unexec.c:
11143 * s/vms.h:
11144 * s/usg5-4-2.h:
11145 * s/sol2-5.h:
11146 * s/freebsd.h:
11147 * s/darwin.h: Remove dead code.
11148
11149 * m/template.h:
11150 * m/sparc.h:
11151 * m/mips.h:
11152 * m/m68k.h:
11153 * m/iris4d.h:
11154 * m/intel386.h:
11155 * m/ibms390x.h:
11156 * m/ibms390.h:
11157 * m/ia64.h:
11158 * m/hp800.h:
11159 * m/arm.h:
11160 * m/amdx86-64.h: Remove dead code and references to unused
11161 and compiler defined symbols.
11162
11163 * unexmips.c:
11164 * unexelf.c: Remove references to desupported systems.
11165
11166 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11167
11168 * m/powermac.h: Remove boilerplate comments.
11169 (NO_REMAP): Remove unused definition.
11170
11171 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11172 define them.
11173
11174 2008-07-10 Kenichi Handa <handa@m17n.org>
11175
11176 * xfont.c (xfont_open): Log the reason of failure.
11177
11178 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11179
11180 * fontset.c (fontset_get_font_group):
11181 * font.c (font_check_otf): Specify argument types.
11182
11183 2008-07-09 Kenichi Handa <handa@m17n.org>
11184
11185 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11186 non-ASCII char is found.
11187
11188 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11189 (reorder_font_vector): Change the arg preferred_family to font.
11190 Prefer the spec matching with font.
11191 (fontset_get_font_group): New function.
11192 (fontset_find_font): Change the format of an element of a realized
11193 fontset. Use fontset_get_font_group.
11194 (fontset_font): Try the current fontset, the default fontset, the
11195 fallbacks of the current fontset, and the fallbacks of the default
11196 fontset in this order.
11197 (face_for_char): Delete the shortcut to use the current font.
11198 (fontset_from_font): Don't set fonts for Latin in the fontset.
11199
11200 * font.h (font_make_object, font_match_p): Adjust prototypes.
11201
11202 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11203
11204 * font.c (font_make_object): New arg entity and pixelsize.
11205 (font_check_otf_features, font_check_otf): New functions.
11206 (font_match_p): Check :lang, :script, and :otf properties.
11207
11208 * xfont.c (xfont_open): Adjust it for the change of
11209 font_make_object.
11210 (xfont_text_extents): Fix initial setting of metrics.
11211
11212 * ftfont.c (struct ftfont_info): New member index, delete member
11213 fc_charset_idx. Make the member order compatible with struct
11214 xftfont_info.
11215 (fc_charset_table): Change charset names to registry names.
11216 (ftfont_pattern_entity): Delete the args registry and
11217 fc_charset_idx. Change the value of :font-entity property
11218 to (FONTNAME . INDEX). Always set :registry property to
11219 `iso10646-1'.
11220 (struct ftfont_cache_data): New struct.
11221 (ftfont_lookup_cache): New arg for_face.
11222 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11223 (ftfont_driver): Set the member otf_capability.
11224 (ftfont_get_charset): Adjust it for the change of
11225 fc_charset_table.
11226 (OTF_TAG_SYM): New macro.
11227 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11228 for the change of fc_charset_table.
11229 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11230 ftfont_pattern_entity. Add FC_INDEX to objset.
11231 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11232 and ftfont_pattern_entity.
11233 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11234 font_make_object, struct ftfont_info.
11235 (ftfont_has_char): Use ftfont_get_fc_charset.
11236 (ftfont_otf_features, ftfont_otf_capability): New functions.
11237 (ftfont_shape): Use ftfont_get_otf.
11238 (ftfont_text_extents): Fix initial setting of metrics.
11239
11240 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11241 member order compatible with struct ftfont_info.
11242 (xftfont_open): Add FC_CHARSET to the pattern. Set
11243 xftfont_info->ft_size. Don't unlock the face. Check BDF
11244 properties if appropriate.
11245 (xftfont_close): Unlock the face.
11246 (xftfont_anchor_point, xftfont_shape): Deleted.
11247 (syms_of_xftfont): Don't set members anchor_point and shape of
11248 xftfont_driver.
11249
11250 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11251 font_make_object.
11252
11253 * w32font.c (w32font_open): Adjust it for the change of
11254 font_make_object.
11255 (w32font_open_internal): Don't set properties of font_object here.
11256
11257 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
11258
11259 * macfns.c (x_create_tip_frame):
11260 * w32fns.c (x_create_tip_frame):
11261 * xfns.c (x_create_tip_frame): Pass parameter argument to
11262 face-set-after-frame-default.
11263
11264 * xfaces.c (Finternal_merge_in_global_face): Save merged
11265 attributes for the default face back into the face vector.
11266
11267 2008-07-08 Andreas Schwab <schwab@suse.de>
11268
11269 * fontset.h: Declare fontset_from_font. Don't declare
11270 new_fontset_from_font and fontset_from_font_name.
11271 * xterm.c: Include "fontset.h".
11272 * Makefile.in (xterm.o): Update dependencies.
11273
11274 2008-07-08 Glenn Morris <rgm@gnu.org>
11275
11276 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11277 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11278
11279 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
11280
11281 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11282 (x_set_frame_parameters): Don't bind it.
11283
11284 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
11285
11286 * w32fns.c (map_w32_filename): Declare extern.
11287
11288 2008-07-07 Jason Rumney <jasonr@gnu.org>
11289
11290 * w32term.c (WS_EX_LAYERED): Define if not already.
11291
11292 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
11293
11294 * xfaces.c (set_font_frame_param): Don't try to set the font
11295 parameter if it is still unspecified in the lface.
11296
11297 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11298
11299 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11300 face if it didn't already exist.
11301
11302 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11303
11304 2008-07-05 Andreas Schwab <schwab@suse.de>
11305
11306 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11307
11308 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
11309
11310 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11311 word-wrapping.
11312 (IT_DISPLAYING_WHITESPACE): New macro.
11313 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11314 when word-wrapping. Simplify word-wrapping logic. Use correct
11315 pixel positions when saving copies of the iterator.
11316 (display_line): Use proper wrap point if the last character on a
11317 line was preceded by whitespace.
11318
11319 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11320
11321 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11322
11323 2008-07-04 Kenichi Handa <handa@m17n.org>
11324
11325 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11326
11327 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11328
11329 2008-07-02 Jason Rumney <jasonr@gnu.org>
11330
11331 * xfns.c (syms_of_xfns): Only define x-select-font when both
11332 HAVE_FREETYPE and USE_GTK.
11333
11334 * xdisp.c (next_element_from_display_vector): Move assignment out
11335 of if statement.
11336
11337 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11338
11339 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11340
11341 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11342 (syms_of_fileio): Initialize and export them.
11343 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11344
11345 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11346 (Fsystem_move_file_to_trash): New function.
11347 (syms_of_w32fns): Export it to lisp.
11348
11349 2008-07-01 Jason Rumney <jasonr@gnu.org>
11350
11351 * w32font.c (w32font_text_extents): Don't count overhang as part
11352 of width.
11353
11354 2008-06-30 Miles Bader <miles@gnu.org>
11355
11356 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11357 Add `avoid_cursor_p' field.
11358
11359 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11360 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11361 (append_glyph, append_composite_glyph, produce_image_glyph)
11362 (append_stretch_glyph): Initialize avoid_cursor_p.
11363 (get_it_property): Rename from `get_line_height_property'.
11364 (x_produce_glyphs): Use get_it_property.
11365 (handle_line_prefix, push_display_prop): New functions.
11366 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11367 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11368 New variables.
11369 (syms_of_xdisp): Initialize them.
11370
11371 2008-06-30 Kenichi Handa <handa@m17n.org>
11372
11373 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11374 XftDefaultSubstitute (they are called in XftFontMatch).
11375 (xftfont_open): Fix args to ftfont_font_format.
11376
11377 * ftfont.c (fc_charset_table): New member lang.
11378 (ftfont_resolve_generic_family): New arg pattern.
11379 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
11380 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11381 (ftfont_open): Fix args to ftfont_font_format.
11382 (ftfont_font_format): New arg filename.
11383
11384 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
11385
11386 * xfaces.c (Finternal_merge_in_global_face): If default face was
11387 modified, realize it again. Update the font face attribute.
11388
11389 2008-06-29 Jason Rumney <jasonr@gnu.org>
11390
11391 * w32term.c (x_set_frame_alpha): Fix logic.
11392
11393 2008-06-29 Kenichi Handa <handa@m17n.org>
11394
11395 * fontset.c (Finternal_char_font): Return font-object instead of
11396 font-name.
11397
11398 * composite.c (get_composition_id): Fix the width calculation for TAB.
11399
11400 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11401
11402 * indent.c (Fvertical_motion): Properly handle float column arg.
11403
11404 2008-06-28 Jason Rumney <jasonr@gnu.org>
11405
11406 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11407 (pfnSetLayeredWindowAttributes): New function pointer.
11408 (w32_initialize): Initialize it when supported.
11409 (x_set_frame_alpha): New function.
11410
11411 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11412 (w32_frame_parm_handlers): Set alpha handler.
11413
11414 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11415
11416 2008-06-27 Jason Rumney <jasonr@gnu.org>
11417
11418 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11419 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11420 (w32_to_x_charset, x_to_w32_charset)
11421 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11422 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11423 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11424 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11425 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11426 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11427 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11428 (Qw32_charset_unicode): Remove.
11429 (syms_of_w32fns): Update for above changes.
11430
11431 * w32font.c (w32_to_x_charset, x_to_w32_charset)
11432 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11433 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11434 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11435 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11436 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11437 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11438 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
11439 (syms_of_w32font): Update for above changes.
11440
11441 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11442
11443 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11444 removed #if.
11445 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11446
11447 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11448 Eli Zaretskii <eliz@gnu.org>
11449
11450 * makefile.w32-in (LOCAL_FLAGS):
11451 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11452
11453 * sysdep.c (_spawnlp, _getpid):
11454 Declare with explicit _cdecl instead of _CRTAPI1.
11455
11456 * editfns.c (Fget_internal_run_time):
11457 Check for WINDOWSNT with #ifdef, not #if.
11458
11459 2008-06-26 Jason Rumney <jasonr@gnu.org>
11460
11461 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11462
11463 * w32term.c (x_draw_glyph_string_foreground)
11464 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11465 Use FONT_HANDLE macro.
11466 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11467
11468 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11469 (uniscribe_encode_char): Use FONT_HANDLE macro.
11470
11471 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11472 (w32font_text_extents): Use precast w32_font.
11473 (w32font_close): Free cached metrics.
11474 (w32font_open_internal): Allocate space for name on stack.
11475
11476 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
11477
11478 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11479
11480 2008-06-26 Jason Rumney <jasonr@gnu.org>
11481
11482 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11483 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11484
11485 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
11486
11487 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11488
11489 2008-06-26 Jason Rumney <jasonr@gnu.org>
11490
11491 * w32bdf.c, w32bdf.h: Remove obsolete files.
11492
11493 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11494
11495 * w32gui.h: Don't include w32bdf.h.
11496 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11497 Remove obsolete font support.
11498
11499 * w32font.h (struct w32font_info): Remove compat_w32_font.
11500 Add hfont member.
11501 (FONT_COMPAT): Remove obsolete macro.
11502
11503 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11504 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11505 (w32font_open_internal): Remove compat code. Set new hfont member.
11506 (Fx_select_font): Use new hfont member.
11507
11508 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11509 (uniscribe_encode_char): Use new hfont member.
11510
11511 * w32term.c (x_draw_glyph_string_foreground)
11512 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11513 (x_draw_glyph_string): Use metrics in w32font_info.
11514
11515 2008-06-26 Kenichi Handa <handa@m17n.org>
11516
11517 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11518
11519 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11520
11521 * unexnext.c:
11522 * m/ews4800.h:
11523 * m/hp9000s300.h:
11524 * m/ibm370aix.h:
11525 * m/mips-siemens.h:
11526 * m/ncr386.h:
11527 * m/next.h:
11528 * m/pmax.h:
11529 * m/powerpcle.h:
11530 * m/tandem-s2.h:
11531 * s/386bsd.h:
11532 * s/bsd386.h:
11533 * s/bsd4-1.h:
11534 * s/bsd4-2.h:
11535 * s/bsdos2-1.h:
11536 * s/bsdos2.h:
11537 * s/bsdos3.h:
11538 * s/bsdos4.h:
11539 * s/nextstep.h:
11540 * s/ultrix4-3.h:
11541 * s/usg5-0.h:
11542 * s/usg5-2-2.h:
11543 * s/usg5-2.h:
11544 * s/usg5-4-3.h:
11545 * s/ux4800.h:
11546 * s/uxpds.h:
11547 * s/uxpv.h: Remove support for obsolete systems.
11548 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
11549 Remove, insert contents in s/hpux10-20.h.
11550 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11551 Remove, insert contents in s/aix4-2.h.
11552 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11553 * s/bsd4-3.h: Rename to ...
11554 * s/bsd-common.h: ... this.
11555 * data.c:
11556 * doc.c:
11557 * ecrt0.c:
11558 * emacs.c:
11559 * fileio.c:
11560 * floatfns.c:
11561 * keyboard.c:
11562 * mem-limits.h:
11563 * print.c:
11564 * process.c:
11565 * sysdep.c:
11566 * syssignal.h:
11567 * systty.h:
11568 * syswait.h:
11569 * term.c:
11570 * unexec.c:
11571 * unexelf.c:
11572 * unexhp9k800.c:
11573 * m/hp800.h:
11574 * m/ibmrs6000.h:
11575 * m/mips.h:
11576 * m/vax.h:
11577 * s/darwin.h:
11578 * s/freebsd.h:
11579 * s/gnu.h:
11580 * s/ms-w32.h:
11581 * s/msdos.h:
11582 * s/netbsd.h:
11583 * s/template.h: Remove references to obsolete variables.
11584
11585 * Makefile.in: Add dependencies for all unexec files.
11586 (admindir): Remove unused variable.
11587 (UNEXEC_SRC): Remove references.
11588
11589 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
11590
11591 * xfns.c (x_default_font_parameter): If Xft is available, first
11592 try Monospace-12 for the default font.
11593
11594 2008-06-25 Jason Rumney <jasonr@gnu.org>
11595
11596 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11597
11598 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11599
11600 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11601
11602 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11603
11604 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
11605
11606 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11607 <scroll-conservatively>: Fix typo in docstring.
11608
11609 * xselect.c (Fx_send_client_event): Doc fix.
11610
11611 2008-06-25 Kenichi Handa <handa@m17n.org>
11612
11613 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11614
11615 * font.c (font_parse_fcname): Remove unused variables.
11616 (font_sort_entites): Delete the arg SPEC. Caller changed.
11617 Fix for the case of ! best_only.
11618 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11619
11620 * lisp.h (Fstring_to_unibyte): EXFUN it.
11621
11622 * character.h (str_to_unibyte): Extern it.
11623
11624 * character.c (str_to_unibyte): New function.
11625
11626 * fns.c (Fstring_to_unibyte): New function.
11627 (syms_of_fns): Defsubr it.
11628
11629 2008-06-24 Kenichi Handa <handa@m17n.org>
11630
11631 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11632 DPI too.
11633 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11634
11635 2008-06-24 Andreas Schwab <schwab@suse.de>
11636
11637 * Makefile.in (${lispsource}loaddefs.el): Rename from
11638 ../lisp/loaddefs.el.
11639 (bootstrap-clean): Do what distclean does but don't remove
11640 Makefile.
11641 (distclean): Depend on bootstrap-clean and remove Makefile.
11642
11643 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
11644
11645 * buffer.h (struct buffer): New member word_wrap.
11646
11647 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11648 word-wrap.
11649 (init_buffer_once): Initialize them.
11650
11651 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11652 line_wrap enum possessing three possible values.
11653
11654 * termopts.h: Replace truncate_partial_width_windows with
11655 Vtruncate_partial_width_windows.
11656
11657 * dispnew.c (direct_output_for_insert): Avoid direct output when
11658 inserting a space with word wrap on.
11659
11660 * indent.c (compute_motion): Obey integer values of
11661 truncate-partial-width-windows.
11662
11663 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11664 replacing truncate_partial_width_windows.
11665 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11666 truncate only if the window width is below that integer.
11667 (start_display, resize_mini_window, produce_stretch_glyph)
11668 (display_string, move_it_in_display_line_to): Use line_wrap.
11669 (back_to_previous_visible_line_start, reseat_1): Reset
11670 string_from_display_prop_p.
11671 (display_line): Extend default face to end of line when wrapping.
11672
11673 2008-06-24 Kim F. Storm <storm@cua.dk>
11674
11675 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11676 to wrap continued lines at word boundaries.
11677
11678 2008-06-24 Jason Rumney <jasonr@gnu.org>
11679
11680 * font.c (Ffont_face_attributes): Multiply pixel size before point
11681 conversion to avoid multiplying rounding error.
11682
11683 2008-06-23 Jason Rumney <jasonr@gnu.org>
11684
11685 * w32term.c (x_draw_glyph_string_background)
11686 (x_draw_glyph_string): Remove old bdf font code.
11687
11688 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11689
11690 2008-06-22 Kenichi Handa <handa@m17n.org>
11691
11692 * font.c (font_find_for_lface): Try the adstyle specified in
11693 the property of LFACE_FONT of LFACE (if any).
11694
11695 2008-06-21 Seiji Zenitani <zenitani@mac.com>
11696 Ryo Yoshitake <ryo@shiftmode.net>
11697
11698 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11699
11700 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11701
11702 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11703 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11704 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11705 (witness-emacs): Remove.
11706 (lisp, shortlisp): Move loaddefs.el earlier.
11707 (mostlyclean): Forget about witness-emacs.
11708
11709 2008-06-22 Glenn Morris <rgm@gnu.org>
11710
11711 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11712 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11713
11714 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11715
11716 * Makefile.in (PRECOMP): Remove.
11717 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11718 (witness-emacs): Run `compile-first'.
11719 (.el.elc): Use the new compile-onefile target.
11720
11721 2008-06-21 Kenichi Handa <handa@m17n.org>
11722
11723 * xftfont.c (xftfont_open): Handle QCembolden only when
11724 FC_EMBOLDEN is defined.
11725
11726 2008-06-21 Andreas Schwab <schwab@suse.de>
11727
11728 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11729 (.el.elc): Likewise.
11730
11731 2008-06-21 Miles Bader <miles@gnu.org>
11732
11733 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11734 build dir, not the lisp source dir.
11735
11736 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11737
11738 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11739 (bootstrapclean): Remove.
11740 (.el.elc): New rule.
11741 (PRECOMP): New var.
11742 (../lisp/subdirs.el): Remove.
11743 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11744 (witness-emacs): New target.
11745 (mostlyclean): Remove witness-emacs as well.
11746 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11747 Add witness-emacs dependency.
11748
11749 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
11750
11751 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11752 defined by the font.
11753
11754 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11755
11756 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11757 (bootstrap-clean): New target that keeps TAGS around.
11758 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11759 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11760
11761 2008-06-20 Jason Rumney <jasonr@gnu.org>
11762
11763 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11764 Remove obsolete font code.
11765
11766 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11767 to determine language support.
11768
11769 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11770
11771 * sysdep.c (cfsetspeed): New fun extracted from the code.
11772 (cfmakeraw): Move before first use.
11773
11774 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11775
11776 * sysdep.c (cfmakeraw): Provide fallback implementation.
11777 (serial_configure): Provide fallback implementation of cfsetspeed.
11778
11779 2008-06-20 Kenichi Handa <handa@m17n.org>
11780
11781 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11782 the pattern.
11783
11784 * fontset.c (fontset_from_font): Copy font_spec before changing
11785 the elements.
11786
11787 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11788
11789 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11790
11791 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11792 for explicit `font' parameters.
11793
11794 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11795
11796 2008-06-19 Kenichi Handa <handa@m17n.org>
11797
11798 * frame.c: Include <ctype.h>.
11799 (x_set_font_backend): Allow spacing characters in the X resource
11800 for FontBackend.
11801
11802 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11803
11804 * w32fns.c, xfns.c (Qfont_param): New var.
11805 (syms_of_w32fns): Initialize it.
11806 (x_default_font_parameter): Record explicit `font' into
11807 `font-parameter'.
11808
11809 2008-06-18 Kenichi Handa <handa@m17n.org>
11810
11811 * font.c (font_parse_xlfd): Fix previous change.
11812 (font_parse_fcname): Don't use :fc-unknown-spec.
11813 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11814 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11815 (font_add_log): Prepend the driver name to the resulting fonts.
11816
11817 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11818 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11819 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11820
11821 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11822 (QCembolden): New variables.
11823 (syms_of_xftfont): DEFSYM them.
11824 (xftfont_open): Call XftFontMatch. Don't trust the result of
11825 XftTextExtents8 if the pixel_size is less than 5.
11826
11827 2008-06-18 Andreas Schwab <schwab@suse.de>
11828
11829 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11830 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11831
11832 2008-06-18 Jason Rumney <jasonr@gnu.org>
11833
11834 * w32font.c (w32font_list, w32font_match): Add logging.
11835
11836 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11837
11838 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
11839
11840 * font.c (font_parse_fcname): Store divider characters for
11841 unknown-spec list. For known key symbols, intern using correct
11842 symbol name.
11843
11844 2008-06-17 Kenichi Handa <handa@m17n.org>
11845
11846 * xfaces.c (realize_default_face): If the frame is not on window
11847 system, set the fontset of face to nil.
11848
11849 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11850
11851 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11852
11853 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11854
11855 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11856 (build_font_name_from_vector): Delete externs.
11857
11858 * xfaces.c (struct font_name): Don't declare.
11859
11860 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11863
11864 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11865
11866 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11867
11868 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
11869
11870 * font.c (Ffont_spec): Fix usage in docstring.
11871 (Ffont_face_attributes): Doc fix.
11872
11873 2008-06-16 Andreas Schwab <schwab@suse.de>
11874
11875 * font.c (Ffont_face_attributes): Fix definition.
11876
11877 2008-06-16 Jason Rumney <jasonr@gnu.org>
11878
11879 * font.h (font_style_symbolic_from_value): Remove.
11880
11881 * font.c (font_style_symbolic_from_value): Remove.
11882 (font_style_symbolic): Revert to pre 2008-06-13 version.
11883
11884 * w32font.c (w32_to_fc_weight): New function.
11885 (w32font_full_name, logfont_to_fcname): Use it.
11886
11887 2008-06-16 Kenichi Handa <handa@m17n.org>
11888
11889 * font.c (font_check_object): Delete it.
11890 (font_clear_cache): Check if a font-object is alive.
11891 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11892 font-object to nil.
11893 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11894 (font_at): Don't call font_check_object.
11895 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11896
11897 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11898
11899 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11900
11901 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
11902
11903 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11904
11905 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
11906
11907 * font.c (font_parse_fcname): Only one decimal point.
11908 (font_unparse_fcname): Handle data in family and foundry indices
11909 as symbols, not strings.
11910 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11911
11912 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11913
11914 * font.h (font_unparse_gtkname): Add prototype.
11915
11916 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11917
11918 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11919
11920 2008-06-15 Andreas Schwab <schwab@suse.de>
11921
11922 * font.c (font_update_drivers): Fix crash when no drivers match.
11923
11924 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11925
11926 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11927 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11928
11929 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11932
11933 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11934
11935 * process.c (Fserial_process_configure, Fprocess_send_eof):
11936 Use EQ to compare Lisp_Objects.
11937
11938 2008-06-13 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32fns.c (Fw32_select_font): Remove old font API function.
11941
11942 * w32font.c (logfont_to_fcname): New function.
11943 (Fx_select_font): New font dialog function compatible with
11944 GTK/fontconfig version.
11945
11946 * font.c (font_style_symbolic_from_value): New function.
11947 (font_style_symbolic): Use it.
11948
11949 * font.h (font_style_symbolic_from_value): Declare new function.
11950
11951 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
11952
11953 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11954 <font-width-table>: Fix typos in docstrings.
11955
11956 2008-06-13 Daniel Engeler <engeler@gmail.com>
11957
11958 These changes add serial port access.
11959 * process.c: Add HAVE_SERIAL.
11960 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11961 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11962 (list_processes_1, select_wrapper, Fstop_process)
11963 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11964 (status_notify): Modify to handle serial processes.
11965 [HAVE_SERIAL] (Fserial_process_configure)
11966 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11967 New functions.
11968 * process.h (struct Lisp_Process): Add `type'.
11969 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11970 New functions.
11971 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11972 serial ports.
11973 (serial_open, serial_configure): New functions.
11974 * w32.h: Add FILE_SERIAL.
11975 (struct _child_process): Add ovl_read, ovl_write.
11976
11977 2008-06-13 Kenichi Handa <handa@m17n.org>
11978
11979 * dispextern.h (enum lface_attribute_index): New member
11980 LFACE_FOUNDRY_INDEX.
11981
11982 * font.c (font_score): Delete arg alternate_families. Check only
11983 weight, slant, width, and size. Ignore the difference of alias
11984 style symbols.
11985 (font_sort_entites): Adjust for the above change. Reflect the
11986 order of font-driver to scores.
11987 (font_list_entities): Don't check alternate_familes here.
11988 (font_clear_prop): Handle foundry.
11989 (font_update_lface): Don't parse "foundry-family" form here.
11990 Handle FONT_FOUNDRY_INDEX.
11991 (font_find_for_lface): Likewise. Handle alternate families here.
11992 If registry is nil, try iso8859-1 and ascii-0.
11993 (font_open_for_lface): Pay attention to size in ENTITY.
11994 (font_open_by_name): Simplify by calling font_load_for_lface.
11995 (free_font_driver_list): Delete it.
11996 (font_update_drivers): Preserve the order of backends.
11997 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11998 of font_score and font_sort_entites.
11999 (font_update_sort_order): Likewise.
12000
12001 * xfaces.c (LFACE_FOUNDRY): New macro.
12002 (check_lface_attrs): Check foundry.
12003 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
12004 (merge_face_vectors): Check foundry.
12005 (merge_face_ref): Likewise.
12006 (Finternal_set_lisp_face_attribute): Likewise.
12007 (x_update_menu_appearance): Likewise.
12008 (Finternal_get_lisp_face_attribute): Likewise.
12009 (lface_hash): Likewise.
12010 (lface_same_font_attributes_p): Likewise.
12011 (x_supports_face_attributes_p): Likewise.
12012 (tty_supports_face_attributes_p): Likewise.
12013 (Finternal_set_alternative_font_family_alist): Intern strings.
12014 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12015 (realize_default_face): Set LFACE_FOUNDRY (lface).
12016
12017 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12018 font-driver at first.
12019
12020 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12021
12022 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12023
12024 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12025
12026 2008-06-12 Jim Meyering <meyering@redhat.com>
12027
12028 Make unexec_free handle NULL the same way free does.
12029 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12030
12031 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12032
12033 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12034 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12035 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12036 (WEAK_ALIAS): Simplify.
12037 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12038 when searching a unibyte buffer.
12039
12040 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
12041
12042 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12043
12044 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
12045
12046 * w32font.c: Include ctype.h.
12047
12048 2008-06-11 Jason Rumney <jasonr@gnu.org>
12049
12050 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12051 misreported as space.
12052 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12053 as aliases for registry iso10646-1.
12054
12055 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12056
12057 * buffer.c (clone_per_buffer_values): Skip `name'.
12058
12059 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * font.c (font_parse_fcname): Fix last change; accept decimal
12062 points in font size.
12063
12064 2008-06-10 Jason Rumney <jasonr@gnu.org>
12065
12066 * w32uniscribe.c (add_opentype_font_name_to_list):
12067 Skip non unicode fonts.
12068
12069 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12070
12071 * xfns.c (Fx_font_dialog): New function.
12072
12073 * gtkutil.c (xg_dialog_response_cb): Rename from
12074 xg_file_response_callback.
12075 (pop_down_dialog): Rename from pop_down_file_dialog.
12076 (xg_get_file_name): Callers changed.
12077 (xg_get_font_name): New function.
12078
12079 * gtkutil.h (xg_get_font_name): Insert prototype.
12080
12081 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12082
12083 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12084 x_underline_minimum_display_offset.
12085 (syms_of_xdisp): Declare it here rather than in xterm.c.
12086 * dispextern.h (underline_minimum_offset): Declare it.
12087 * w32term.c (x_draw_glyph_string): Use it.
12088 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12089 (syms_of_xterm): Don't declare it any more.
12090 (x_draw_glyph_string): Adjust to the new name.
12091
12092 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
12093
12094 * xterm.c (x_underline_minimum_display_offset): New var.
12095 (x_draw_glyph_string): Use it.
12096 (syms_of_xterm): Declare it.
12097
12098 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
12099
12100 * font.c (font_parse_fcname): Accept GTK-style font names too.
12101
12102 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12103
12104 * dired.c (file_name_completion): Don't return t if the match is exact
12105 but with different capitalization.
12106 * minibuf.c (Ftry_completion): Simplify.
12107
12108 * window.c (Vwindow_point_insertion_type): New var.
12109 (set_window_buffer): Use it.
12110 (syms_of_window): Init and export it to Lisp.
12111
12112 2008-06-10 Kenichi Handa <handa@m17n.org>
12113
12114 * font.h (font_intern_prop): Prototype adjusted.
12115
12116 * font.c (font_intern_prop): New arg force_symbol.
12117 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12118 Adjust for the change of font_intern_prop.
12119
12120 * ftfont.c (ftfont_pattern_entity):
12121 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12122 (w32_registry):
12123 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12124 the change of font_intern_prop.
12125
12126 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
12127
12128 * w32menu.c (digest_single_submenu): Declare extern.
12129
12130 2008-06-09 Jason Rumney <jasonr@gnu.org>
12131
12132 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12133
12134 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12135 (parse_single_submenu): Remove.
12136 (digest_single_submenu): Remove.
12137 (syms_of_w32menu): Don't initialise variables that have moved
12138 to menu.c.
12139 (set_frame_menubar): Sync with version in xmenu.c.
12140 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12141
12142 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12143 Make static again.
12144
12145 2008-06-09 Jason Rumney <jasonr@gnu.org>
12146
12147 Changes to w32 files related to the move of common menu code
12148 to menu.c on 2008-06-08 by Chong Yidong.
12149
12150 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12151 defs to w32gui.h.
12152 (single_keymap_panes, push_menu_item, push_menu_pane):
12153 Make globally visible.
12154
12155 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12156 (local_free, malloc_widget_value, free_widget_value)
12157 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12158 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12159 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12160 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12161 (menu_items, menu_items_allocated, menu_items_used)
12162 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12163 (init_menu_items, finish_menu_items, discard_menu_items)
12164 (grow_menu_items, push_submenu_start, push_submenu_end)
12165 (push_left_right_boundary, push_menu_pane, push_menu_item)
12166 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12167 (free_menubar_widget_tree_value, parse_single_submenu)
12168 (update_submenu_strings): Remove functions.
12169 (xmalloc_widget_value): Remove and declare extern.
12170
12171 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12172 (OBJ1): Build it.
12173
12174 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12175 (local_heap, local_alloc, local_free, malloc_widget_value)
12176 (free_widget_value): Define here.
12177
12178 2008-06-09 Kenichi Handa <handa@m17n.org>
12179
12180 * font.h (Qascii_0): Extern it.
12181
12182 * font.c (Qascii_0): New variable.
12183 (syms_of_font): DEFSYM it.
12184 (font_open_by_name): If the registry "iso8859-1" fails, try also
12185 "ascii-0".
12186
12187 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12188
12189 2008-06-08 Kenichi Handa <handa@m17n.org>
12190
12191 * .gdbinit (xfont): New command.
12192
12193 2008-06-08 Andreas Schwab <schwab@suse.de>
12194
12195 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12196 * Makefile.in (menu.o): Update dependencies.
12197
12198 * Makefile.in (obj): Always add menu.o.
12199 * emacs.c (main): Always call syms_of_menu.
12200 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12201
12202 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
12203
12204 * Makefile.in: Compile menu.c.
12205
12206 * lisp.h: Declare syms_of_menu.
12207
12208 * emacs.c (main): Call syms_of_menu.
12209
12210 * keyboard.h: Relocate platform-independent menu definitions from
12211 xmenu.c.
12212
12213 * menu.c: New file. Relocate platform-independent menu
12214 definitions from xmenu.c. Suggested by Adrian Robert.
12215
12216 * xmenu.c: Remove platform-independent menu definitions.
12217 (menu_items, menu_items_inuse, menu_items_allocated)
12218 (menu_items_used, menu_items_n_panes)
12219 (menu_items_submenu_depth): Move to keyboard.h.
12220 (init_menu_items, finish_menu_items, unuse_menu_items)
12221 (discard_menu_items, restore_menu_items, save_menu_items)
12222 (grow_menu_items, push_submenu_start, push_submenu_end)
12223 (push_left_right_boundary, push_menu_pane, push_menu_item)
12224 (keymap_panes, single_keymap_panes, single_menu_item)
12225 (list_of_panes, list_of_items, find_and_call_menu_selection)
12226 (xmalloc_widget_value, free_menubar_widget_value_tree)
12227 (parse_single_submenu, digest_single_submenu)
12228 (update_submenu_strings): Move to menu.c.
12229
12230 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12233
12234 2008-06-06 Miles Bader <miles@gnu.org>
12235
12236 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12237 face, not frame default.
12238
12239 2008-06-05 Martin Rudalics <rudalics@gmx.at>
12240
12241 * window.c (pop_up_windows, pop_up_frames)
12242 (display_buffer_reuse_frames, Vpop_up_frame_function)
12243 (Vdisplay_buffer_function, Veven_window_heights)
12244 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12245 (Vspecial_display_function, Vsame_window_buffer_names)
12246 (Vsame_window_regexps, split_height_threshold)
12247 (Vsplit_window_preferred_function): Move those vars to window.el.
12248 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12249 (Fdisplay_buffer): Move those functions to window.el.
12250 (syms_of_window): Remove corresponding declarations.
12251 (display_buffer): New function.
12252 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12253 * dispnew.c (Flast_nonminibuf_frame): New function.
12254 * buffer.c (Fpop_to_buffer): Move to window.el.
12255
12256 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12257
12258 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12259
12260 2008-06-05 Kenichi Handa <handa@m17n.org>
12261
12262 * coding.c (detect_coding): Fix previous change.
12263 (detect_coding_system): Likewise.
12264
12265 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12266
12267 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12268
12269 * keymap.c (Vminibuffer_local_filename_must_match_map):
12270 Rename from Vminibuffer_local_must_match_filename_map.
12271 (syms_of_keymap):
12272 * minibuf.c (Fcompleting_read): Adjust accordingly.
12273 * commands.h: Rename declaration as well.
12274
12275 2008-06-05 Kenichi Handa <handa@m17n.org>
12276
12277 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12278 family name.
12279 (Ffont_put): Likewise.
12280
12281 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12282 current font-spec.
12283
12284 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12285 is unspecified.
12286
12287 * xfaces.c (realize_x_face): If the font-related face attributes
12288 are the same as those of default face, realize a new fontset from
12289 default->fontset.
12290 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12291
12292 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12293
12294 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12295 (move_it_in_display_line): New wrapper.
12296
12297 * window.c (window_scroll_pixel_based_preserve_x)
12298 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12299 (window_scroll_pixel_based, window_scroll_line_based):
12300 Use them to preserve column positions.
12301 (syms_of_window): Initialize them.
12302
12303 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12304 (HPOS . VPOS) pair.
12305
12306 * dispextern.h (move_it_in_display_line): Declare.
12307
12308 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
12309
12310 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12311 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12312 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12313
12314 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
12315
12316 * window.c (Fset_window_parameter): Doc fix.
12317 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12318
12319 2008-06-04 Joakim Verona <joakim@verona.se>
12320
12321 * window.h (struct window): Add new member window_parameters.
12322
12323 * window.c (Fwindow_parameters, Fwindow_parameter)
12324 (Fset_window_parameter): New defuns.
12325 (syms_of_window): Defsubr the new defuns.
12326 (make_window): Initialize window_parameters to nil.
12327
12328 2008-06-04 John Paul Wallington <jpw@pobox.com>
12329
12330 * eval.c (Fdefmacro): Doc fix.
12331
12332 2008-06-04 Kenichi Handa <handa@m17n.org>
12333
12334 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12335 Be sure to call setup_coding_system when we find a proper coding system.
12336 (detect_coding_system): Fix handling of coding->head_ascii.
12337
12338 2008-06-03 Andreas Schwab <schwab@suse.de>
12339
12340 * font.c (font_prop_validate_spacing): Fix last change.
12341
12342 2008-06-03 Kenichi Handa <handa@m17n.org>
12343
12344 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12345 (font_parse_fcname): Fix handling of unknown key.
12346
12347 * xfont.c (xfont_list): Try an alias.
12348
12349 * charset.c (char_charset): Return NULL if the arg charset_list is
12350 specified and C doesn't belong to any of them.
12351
12352 2008-06-02 Chip Coldwell <coldwell@redhat.com>
12353
12354 * font.c (font_pixel_size): Don't take cdr of an integer.
12355
12356 2008-06-02 Jim Meyering <meyering@redhat.com>
12357
12358 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12359 * alloc.c (xfree): Return right away for a NULL arg.
12360 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12361 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12362 * mac.c (create_apple_event_from_event_ref): Likewise.
12363 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12364 Likewise.
12365 * doprnt.c (doprnt1): Likewise.
12366 * frame.c (frame): Likewise.
12367 * keyboard.c (wipe_kboard): Likewise.
12368 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12369 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12370 * term.c (tty_default_color_capabilities, maybe_fatal)
12371 (delete_tty): Likewise.
12372 * w16select.c (string): Likewise.
12373 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12374 * w32bdf.c (w32_free_bdf_font): Likewise.
12375 * w32fns.c (w32_unload_font): Likewise.
12376 * w32font.c (w32font_close): Likewise.
12377 * window.c (size_window): Likewise.
12378 * xselect.c (receive_incremental_selection): Likewise.
12379 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12380 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12381 * w32.c (stat): Likewise.
12382
12383 Remove useless if-before-free tests.
12384 * editfns.c (Fset_time_zone_rule): Likewise.
12385 * lread.c (nosuffix): Likewise.
12386 * ralloc.c (get_bloc): Likewise.
12387 * regex.c (reg_free): Likewise.
12388 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12389 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12390 * xsmfns.c (smc_save_yourself_CB): Likewise.
12391
12392 2008-06-02 Kenichi Handa <handa@m17n.org>
12393
12394 * font.c (font_find_for_lface): Handle float font size.
12395 (font_open_for_lface): Likewise.
12396
12397 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12398 comparing the properties.
12399
12400 2008-06-01 Jason Rumney <jasonr@gnu.org>
12401
12402 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12403 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12404 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12405 Don't add empty script list.
12406 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12407
12408 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12409
12410 * Makefile.in (dot, dotdot): Remove, update users.
12411 ".." has been used elsewhere in the file for a long time.
12412 (LIBXT_STATIC): Remove conditional based on unused variable.
12413
12414 2008-06-01 Miles Bader <miles@gnu.org>
12415
12416 * xfaces.c (Vface_remapping_alist): New variable.
12417 (syms_of_xfaces): Initialize it.
12418 (enum named_merge_point_kind): New type.
12419 (struct named_merge_point): Add `named_merge_point_kind' field.
12420 (push_named_merge_point): Make cycle detection respect different
12421 named-merge-point kinds.
12422 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12423 Remove face-name alias resolution.
12424 (lface_from_face_name): New definition using
12425 `lface_from_face_name_no_resolve'.
12426 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12427 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12428 (get_lface_attributes): New definition that layers face-remapping on
12429 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12430 (lookup_basic_face): New function.
12431 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12432 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12433 `get_lface_attributes'.
12434 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12435 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12436 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12437
12438 * xdisp.c (init_iterator): Pass base_face_id through
12439 `lookup_basic_face' when we actually use it as a face-id.
12440 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12441 DEFAULT_FACE_ID.
12442
12443 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12444 lookup the initial face-id.
12445
12446 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12447
12448 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
12449
12450 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12451 (Fremove_text_properties): Fix typos in docstrings.
12452
12453 2008-05-31 Kenichi Handa <handa@m17n.org>
12454
12455 * font.c (font_list_entities): Fix the car part of data to be
12456 stored in the cache.
12457
12458 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12459
12460 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12461
12462 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12463 Add a `test' argument so another predicate than `equal' can be used.
12464 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12465 (map_char_table): Remove unused vars `c' and `i'.
12466 * lisp.h (Foptimize_char_table): Adjust declaration.
12467 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12468
12469 2008-05-30 Kenichi Handa <handa@m17n.org>
12470
12471 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12472 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12473 defined.
12474
12475 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12476
12477 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12478 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12479 frame-local settings for the same variable.
12480
12481 2008-05-30 Kenichi Handa <handa@m17n.org>
12482
12483 * fontset.c (Ffont_info): Move to font.c.
12484 (syms_of_fontset): Delete defsubr of Sfont_info.
12485
12486 * font.c (font_style_to_value, font_score): Delete casting of the
12487 args to xstcasecmp.
12488 (register_font_driver): Increment num_font_drivers only when
12489 registering the driver globally.
12490 (Ffont_info): Move from fontset.c. Handle a font object too.
12491 (syms_of_font): Defsubr Sfont_info.
12492
12493 2008-05-29 Kenichi Handa <handa@m17n.org>
12494
12495 * coding.h (enum define_coding_utf8_arg_index): New enum.
12496 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12497 coding_attr_utf_bom.
12498 (enum utf_bom_type): Rename from utf_16_bom_type.
12499 (struct utf_16_spec): Adjust for the above change.
12500 (struct coding_system): Add utf_8_bom in `spec' union.
12501
12502 * coding.c (CODING_UTF_8_BOM): New macro.
12503 (enum coding_category): Delete coding_category_utf_8, add
12504 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12505 coding_category_utf_8_sig.
12506 (CATEGORY_MASK_UTF_8): Delete it.
12507 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12508 (CATEGORY_MASK_UTF_8_SIG): New macros.
12509 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12510 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12511 CATEGORY_MASK_UTF_8_SIG.
12512 (CATEGORY_MASK_UTF_8): New macro.
12513 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12514 (detect_coding_utf_8): Check BOM.
12515 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12516 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12517 (encode_coding_utf_16): Likewise.
12518 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12519 (detect_coding, detect_coding_system): Handle utf-8-auto.
12520 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12521 (syms_of_coding): Fix setting up of Vcoding_category_table.
12522
12523 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12524
12525 * process.c (Faccept_process_output): If `millisec' is non-nil,
12526 `seconds' default to 0.
12527 (wait_reading_process_output): Also return non-nil if we read output
12528 from a non-running process.
12529
12530 2008-05-29 Jason Rumney <jasonr@gnu.org>
12531
12532 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12533 `raster' specified.
12534 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12535 in the uniscribe backend, but disallow any font that has no
12536 unicode subrange support.
12537
12538 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
12539
12540 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12541 Fix typos in docstrings.
12542
12543 2008-05-29 Kenichi Handa <handa@m17n.org>
12544
12545 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12546 (Fx_family_fonts): Set frame correctly.
12547
12548 2008-05-28 Jason Rumney <jasonr@gnu.org>
12549
12550 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12551
12552 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12553
12554 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12555 calling build_annotations.
12556
12557 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
12558
12559 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12560 (Fencode_coding_string):
12561 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12562 <latin-extra-code-table>: Fix typos in docstrings.
12563 (syms_of_coding) <coding-system-alist>: Doc fix.
12564 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12565
12566 2008-05-28 Kenichi Handa <handa@m17n.org>
12567
12568 * fontset.c (Ffont_info): Don't call font_close_object.
12569
12570 * font.c (font_parse_family_registry): Use Ffont_put to validate
12571 foundry and family.
12572 (font_delete_unmatched): Don't check spacing.
12573 (font_list_entities): Add spacing to the spec to list fonts.
12574
12575 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12576 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12577
12578 * coding.c (encode_coding_raw_text): Fix previous change.
12579 (encode_coding_object): When the dst_object is a buffer and is
12580 different from src_object, move gap to PT.
12581
12582 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12583
12584 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12585
12586 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12587
12588 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12589 all branches. Compute it differently.
12590
12591 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12592
12593 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
12594
12595 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12596 into "else if () ... else ...".
12597
12598 2008-05-27 Jason Rumney <jasonr@gnu.org>
12599
12600 * w32font.c (w32font_open_internal): Determine if glyph indices
12601 are likely to work here.
12602
12603 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
12604
12605 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12606 draw overlap glyphs with appropriate highlighting.
12607
12608 2008-05-27 Kenichi Handa <handa@m17n.org>
12609
12610 * xfont.c (xfont_open): Fix calculation of font->average_width.
12611
12612 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12613
12614 * casefiddle.c (casify_object): Try to guess better whether the
12615 argument is a byte or a char.
12616
12617 2008-05-26 Andreas Schwab <schwab@suse.de>
12618
12619 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12620 Always send multiples of format size.
12621
12622 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12623
12624 2008-05-26 Jason Rumney <jasonr@gnu.org>
12625
12626 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12627 (compute_metrics): Don't set failure if we just cleared the cache.
12628 (w32_weight_table): Remove unused variable.
12629 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12630 backwards compatibility.
12631
12632 2008-05-25 Kenichi Handa <handa@m17n.org>
12633
12634 * w32term.c (x_draw_glyph_string):
12635 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12636
12637 * xfaces.c: Delete unused function prototypes.
12638 (xstrlwr, font_frame): Delete them.
12639 (clear_face_cache): Delete unused variable.
12640
12641 * xftfont.c (xftfont_open): Delete unused variable.
12642 If underline_thickness is not 1, adjust underline_position.
12643
12644 * ftxfont.c (ftxfont_open): Delete unused variable.
12645
12646 * fontset.c (face_for_char): Optimize for the case of no charset
12647 property.
12648
12649 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12650 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12651 (otf_open, font_otf_capability, generate_otf_features)
12652 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12653 Comment out by surrounding "#if 0" and "#endif" for the moment.
12654 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12655 (syms_of_font): Codes for accessing above commented out.
12656
12657 2008-05-24 Eli Zaretskii <eliz@gnu.org>
12658
12659 * w32proc.c: Include dispextern.h.
12660
12661 * w32.c: Include dispextern.h.
12662
12663 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
12664
12665 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12666 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12667 Fix typos in docstrings.
12668
12669 2008-05-23 Jason Rumney <jasonr@gnu.org>
12670
12671 * xsmfns.c: Remove includes that are already included by config.h.
12672
12673 2008-05-23 Kenichi Handa <handa@m17n.org>
12674
12675 * charset.c (Qemacs, charset_emacs): New variables.
12676 (char_charset): Fix for non-Unicode characters.
12677 (syms_of_charset): Define charset_emacs.
12678
12679 * w32term.c (x_draw_glyph_string): Be sure to update
12680 s->underline_thickness and s->underline_position. Be sure to draw
12681 underline within the current line area.
12682
12683 * xterm.c (x_draw_glyph_string): Be sure to update
12684 s->underline_thickness and s->underline_position. Be sure to draw
12685 underline within the current line area.
12686
12687 * fontset.c: Delete unused variables and add casting for char *
12688 throughout the file.
12689 (fontset_font): Try the fallback fonts of the current fontset
12690 before consulting the default fontset.
12691
12692 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12693
12694 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12695
12696 2008-05-22 Jason Rumney <jasonr@gnu.org>
12697
12698 * font.c: Don't include strings.h.
12699
12700 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12701
12702 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12703 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12704 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12705 to call xstrcasecmp.
12706
12707 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12708
12709 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12710
12711 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12712
12713 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12714
12715 2008-05-22 Kenichi Handa <handa@m17n.org>
12716
12717 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12718
12719 * font.c (font_prop_validate_style): Adjust for the format
12720 change of font_style_table.
12721
12722 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12723 two args.
12724
12725 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12726 two args.
12727
12728 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * minibuf.c (keys_of_minibuf): Delete.
12731 * lisp.h (keys_of_minibuf): Delete.
12732 * emacs.c (main): Don't call keys_of_minibuf.
12733
12734 2008-05-22 Kenichi Handa <handa@m17n.org>
12735
12736 * ftfont.c (ftfont_resolve_generic_family): Rename from
12737 ftfont_list_generic_family. Return a single family for each
12738 generic family.
12739 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12740 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12741 Call font_add_log.
12742 (ftfont_match): Call font_add_log.
12743
12744 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12745 (FONT_DEBUG): Define it.
12746 (font_add_log): Extern it.
12747 (font_assert): Rename from xassert.
12748
12749 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12750 (xfont_list_family): Call font_add_log.
12751 (xfont_match): Likewise.
12752 (memq_no_quit): Delete.
12753
12754 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12755 call of Ffont_xlfd_name.
12756
12757 * xfaces.c (struct table_entry, slant_table, weight_table)
12758 (swidth_table): Move to font.c.
12759
12760 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12761 xassert are changed to font_assert. Delete many unused variables.
12762 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12763 New variables.
12764 (struct table_entry): Move from xfaces.c and modified.
12765 (weight_table, slant_table, width_table): Move from xfaces.c and
12766 contents adjusted for the change of struct table_entry.
12767 (font_style_to_value, font_style_symbolic): Adjust for the
12768 format change of font_style_table.
12769 (font_parse_family_registry): Don't overwrite existing foundry and
12770 family of font_spec.
12771 (font_score): Fix calculation of diff for sizes.
12772 (font_sort_entites): Call font_add_log.
12773 (font_delete_unmatched): Return a newly created list.
12774 (font_list_entities): Fix previous change. Call font_add_log.
12775 (font_matching_entity, font_open_entity, font_close_entity):
12776 Call font_add_log.
12777 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12778 (Finternal_set_font_style_table): Delete.
12779 (BUILD_STYLE_TABLE): New macro.
12780 (build_style_table): New function.
12781 (Vfont_log, font_log_env_checked): New variables.
12782 (font_add_log): New function.
12783 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12784 Declare Lisp variables "font-weight-table", "font-slant-table",
12785 "font-width-table", and "font-log". Initialize font_style_table.
12786
12787 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12788
12789 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12790
12791 2008-05-21 Seiji Zenitani <zenitani@mac.com>
12792 Ryo Yoshitake <ryo@shiftmode.net>
12793
12794 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12795 (Vframe_alpha_lower_limit): New variable.
12796 (x_set_alpha): New function.
12797
12798 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12799
12800 * xfns.c (x-create-frame, Qalpha):
12801 Initialize the frame parameter `alpha'.
12802 * xterm.c (OPAQUE, OPACITY): New.
12803 (x_set_frame_alpha): New function.
12804 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12805
12806 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12807 * w32fns.c (w32_frame_parm_handlers): Likewise.
12808
12809 2008-05-20 Jason Rumney <jasonr@gnu.org>
12810
12811 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12812 truetype fonts to opentype list.
12813
12814 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
12815
12816 * fontset.c (Ffontset_info): Doc fix.
12817 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12818 <ignore-relative-composition>: Fix typos in docstrings.
12819
12820 * font.c (syms-of-font) <font-encoding-alist>:
12821 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12822 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12823 (Ffont_otf_alternates): Doc fixes.
12824
12825 2008-05-20 Kenichi Handa <handa@m17n.org>
12826
12827 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12828 font.h through out the file.
12829 (FONT_DRIVERS): Rename from FONTOBJ.
12830 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12831 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12832
12833 * emacs.c (main): Call syms_of_font unconditionally.
12834
12835 * font.h (find_font_encoding): Extern it.
12836
12837 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12838 fontset.c.
12839 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
12840 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12841 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12842 only when HAVE_WINDOW_SYSTEM is defined.
12843 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12844 when HAVE_WINDOW_SYSTEM is defined.
12845
12846 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12847 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12848
12849 * xfaces.c: Include font.h unconditionally.
12850 (merge_face_ref, merge_face_vectors)
12851 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12852
12853 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12854
12855 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12856 indirect_variable.
12857 * eval.c (lisp_indirect_variable): New fun.
12858 (Fuser_variable_p): Use it.
12859
12860 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12861
12862 * lisp.h (indirect_variable):
12863 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12864 Use Lisp_Symbol pointers rather than Lisp_Object.
12865 Adjust callers.
12866 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12867 To this end, change calling-convention.
12868
12869 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12870 if some non-hidden buffers are selected by string&pred.
12871
12872 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
12873
12874 * process.c (wait_reading_process_output): Always check status
12875 when in batch mode.
12876
12877 2008-05-19 Kenichi Handa <handa@m17n.org>
12878
12879 * font.c (font_list_entities): Fix handling of cache.
12880 (font_matching_entity): Likewise.
12881
12882 * ftfont.c (cs_iso8859_1): Delete.
12883 (ft_face_cache): New variable.
12884 (struct ftfont_info): New member fc_charset_idx.
12885 (ftfont_build_basic_charsets): Delete.
12886 (fc_charset_table): New variable.
12887 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12888 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12889 Callers changed.
12890 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12891 (ftfont_spec_pattern): New argument fc_charset_idx.
12892 Check registry more rigidly. Change callers.
12893 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12894 change of :font-entity property of the font.
12895
12896 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12897 property of the font.
12898
12899 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
12900
12901 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12902 (Funencodable_char_position, Fcheck_coding_systems_region)
12903 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12904 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12905 (Ffind_operation_coding_system, Fset_coding_system_priority)
12906 (Fcoding_system_eol_type): Doc fixes.
12907
12908 2008-05-17 Glenn Morris <rgm@gnu.org>
12909
12910 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12911
12912 2008-05-16 Eli Zaretskii <eliz@gnu.org>
12913
12914 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12915 and st_gid.
12916
12917 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12918 HAVE_WINDOW_SYSTEM is not defined.
12919
12920 * xfaces.c (merge_face_ref, merge_face_vectors)
12921 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12922 HAVE_WINDOW_SYSTEM is defined.
12923 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12924
12925 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12926
12927 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12928
12929 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12930
12931 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12932
12933 2008-05-15 Kenichi Handa <handa@m17n.org>
12934
12935 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12936 preference.
12937
12938 2008-05-15 Glenn Morris <rgm@gnu.org>
12939
12940 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12941
12942 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
12943
12944 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12945 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12946
12947 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12948
12949 2008-05-15 Kenichi Handa <handa@m17n.org>
12950
12951 * ftfont.c (ftfont_list): Downcase family name to check generic
12952 families.
12953
12954 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12955 font-spec for QCfont value.
12956
12957 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12958 buffer. Check the return value of it.
12959
12960 2008-05-14 Jason Rumney <jasonr@gnu.org>
12961
12962 * w32term.c (w32_get_glyph_overhangs): Remove.
12963 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12964
12965 2008-05-14 Kenichi Handa <handa@m17n.org>
12966
12967 * font.c (font_prop_validate): Make nil a valid value.
12968 (font_clear_cache): Check if the cached vector of entities is nil
12969 or not.
12970
12971 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12972
12973 * emacs.c (main_thread): Conditionalize on
12974 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12975 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12976
12977 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12978 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12979 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12980
12981 2008-05-14 Kenichi Handa <handa@m17n.org>
12982
12983 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12984 has no corresponding coding system.
12985
12986 2008-05-14 Jason Rumney <jasonr@gnu.org>
12987
12988 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12989
12990 * w32font.h (w32font_open_internal): Update declaration.
12991
12992 * w32font.c (w32font_open_internal): Change last argument from
12993 w32font_info struct to font object. Fill in font object from
12994 font_entity. Get Outline metrics if possible. Use them to
12995 calculate underline position and thickness. Use xlfd name as name
12996 property. Don't set codepage.
12997 (w32font_open): Pass font_object to w32font_open_internal. Don't
12998 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12999 (w32font_draw): Use s->font.
13000 (clear_cached_metrics): Don't clear non-existent blocks.
13001
13002 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
13003 font was not found.
13004 (x_draw_glyph_string): Use underline position and thickness from font.
13005
13006 * w32uniscribe.c (uniscribe_open): Pass font_object to
13007 w32font_open_internal.
13008
13009 2008-05-14 Kenichi Handa <handa@m17n.org>
13010
13011 These changes are to delete all legacy font-handling codes, and
13012 make Emacs use only font-backends.
13013
13014 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13015 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13016
13017 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13018
13019 * charset.h (Vcharset_non_preferred_head)
13020 (Vcurrent_iso639_language): Extern them.
13021
13022 * charset.c (Vcharset_non_preferred_head): New variable.
13023 (Vcurrent_iso639_language): New variable.
13024 (syms_of_charset): Declare it as a Lisp variable.
13025 (char_charset): Don't check non preferred charsets. As a last
13026 resort, return charset_unicode.
13027 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13028
13029 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13030 conditionals. Don't check enable_font_backend. Delete all codes
13031 used only when USE_FONT_BACKEND is not defined.
13032
13033 * dispextern.h (struct glyph_string): Change type of `font' to
13034 `struct font *'.
13035 (struct glyph_string): New member underline_position and
13036 underline_thickness.
13037 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13038 (struct face): Change type of `font' to `struct font *'. Remove
13039 members `font_name', `font_info_id'.
13040 (per_char_metric, encode_char): Delete externs.
13041 (calc_pixel_width_or_height): Adjust the prototype.
13042
13043 * emacs.c (enable_font_backend): Delete extern.
13044 (main): Don't set enable_font_backend. Don't check the command
13045 line argument "-disable-font-backend".
13046
13047 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13048 (enum font_property_index): New members FONT_DPI_INDEX,
13049 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13050 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13051 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13052 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13053 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13054 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13055 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13056 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13057 (struct font_spec, struct font_entity): New structs.
13058 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13059 (struct font): Many members from old "struct font_info" moved to
13060 here. Members font and entity deleted.
13061 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13062 the new font-related objects.
13063 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13064 (CHECK_FONT_GET_OBJECT): Likewise.
13065 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13066 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13067 (struct font_driver): New members case_sensitive anc check. Type
13068 of the member list and open changed.
13069 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13070 (font_symbolic_width, font_find_object, font_get_spec)
13071 (font_set_lface_from_name): Delete extern.
13072 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13073
13074 * font.c: Include <strings.h>.
13075 (enable_font_backend): Delete it.
13076 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13077 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13078 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13079 (null_string): Delete it.
13080 (null_vector): Make it static.
13081 (font_family_alist): Delete it.
13082 (Qnormal): Extern it.
13083 (QCextra, QClanguage): Delete it.
13084 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13085 (font_make_spec, font_make_entity, font_make_object)
13086 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13087 the string. Callers changed.
13088 (font_pixel_size): Adjusted for the format change of font-related
13089 objects.
13090 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13091 (font_style_to_value, font_style_symbolic): New function.
13092 (build_font_family_alist): Delete it.
13093 (font_registry_charsets): Use Fassoc_string instead of
13094 assq_no_quit.
13095 (font_prop_validate_symbol): Don't return null_string.
13096 (font_prop_validate_style): Adjusted for the change of
13097 style-related values in a font vector.
13098 (font_property_table): Delete entries for QClanguage and
13099 QCantialias, add entries for QCavgwidth.
13100 (get_font_prop_index): Delete the 2nd argument FROM.
13101 (font_prop_validate): Arguments changed.
13102 (font_put_extra): Adjusted for the change of font-related objects.
13103 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13104 (font_parse_fcname, font_unparse_fcname)
13105 (font_prepare_composition): Likewise.
13106 (font_parse_family_registry): Renamed from font_merge_old_spec.
13107 (otf_open): Delete the 1st arg entity.
13108 (font_otf_capability): Adjusted for the above change.
13109 (font_score): New arg alternate_families. Adjusted for the change
13110 of font-related objects.
13111 (font_sort_entites): New arg best_only.
13112 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13113 Delete them.
13114 (font_match_p): Check alternate families.
13115 (font_find_object): Delete it.
13116 (font_check_object): New function.
13117 (font_clear_cache): Adjusted for the change of font-related objects.
13118 (font_delete_unmatched): New arg.
13119 (font_list_entities): Call font_driver->list with a spec that
13120 doesn't specify style-related properties.
13121 (font_matching_entity): Arguments changed. Caller changed.
13122 (font_open_entity): Adjusted for the change of font-related objects.
13123 (font_close_object, font_has_char, font_encode_char)
13124 (font_get_name, font_get_spec): Likewise.
13125 (font_spec_from_name, font_clear_prop, font_update_lface):
13126 New functions.
13127 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13128 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13129 (font_at): Adjusted for the change of font-related objects.
13130 (font_range): New function.
13131 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13132 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13133 (Fcopy_font_spec, Fmerge_font_spec): New function.
13134 (Ffont_family_list): Renamed from list-families.
13135 (Finternal_set_font_style_table): Arguments changed.
13136 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13137 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13138 change of font-related objects.
13139 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13140
13141 * fontset.h (struct font_info): Delete it. Most members go to
13142 struct font.
13143 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13144 (enum FONT_SPEC_INDEX): Delete it.
13145 (font_info, list_fonts_func, load_font_func, query_font_func)
13146 (set_frame_fontset_func, find_ccl_program_func)
13147 (get_font_repertory_func, new_fontset_from_font_name): Delete
13148 externs.
13149 (fontset_from_font_name): Extern it.
13150 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13151 (FONT_INFO_FROM_FACE): Deleted.
13152 (face_for_font): Adjust prototype.
13153
13154 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13155 conditionals. Don't check enable_font_backend. Delete all codes
13156 used only when USE_FONT_BACKEND is not defined.
13157 (get_font_info_func, list_font_func, load_font_func)
13158 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13159 (get_font_repertory_func): Delete them.
13160 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13161 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13162 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13163 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13164 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13165 (fontset_compare_rfontdef): New function.
13166 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13167 rfont-defs by qsort. Adjusted for the change of font-group vector.
13168 (load_font_get_repertory): Deleted.
13169 (fontset_find_font): Use new macros to ref/set elements of
13170 font-def and rfont-def.
13171 (fontset_font): Fix the timing of remembering that no font for C.
13172 (free_face_fontset): Do nothing if the face has no fontset.
13173 (face_suitable_for_char_p): Use new macros to ref/set elements of
13174 rfont-def.
13175 (face_for_char): Likewise. Call face_for_char with font_object.
13176 (fs_load_font): Delete. Delete #pragma surrounding it.
13177 (fs_query_fontset): Use strcasecmp instead of strcmp.
13178 (generate_ascii_font_name): Adjusted for the format change of
13179 font-spec.
13180 (Fset_fontset_font): Likewise. Use new macros to set elements of
13181 font-def.
13182 (Fnew_fontset): Use font_unparse_xlfd to generate
13183 FONTSET_ASCII (fontset).
13184 (new_fontset_from_font_name): Deleted.
13185 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13186 a fontset is already created for the font. FIx updating of
13187 Vfontset_alias_alist.
13188 (fontset_ascii_font): Deleted.
13189 (Ffont_info): Adjusted for the format change of font-spec.
13190 (Finternal_char_font): Likewise.
13191 (Ffontset_info): Likewise.
13192 (syms_of_fontset): Don't check load_font_func.
13193
13194 * fns.c (internal_equal): Handle PREV_FONT.
13195
13196 * frame.h: Delete USE_FONT_BACKEND conditional.
13197
13198 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13199 conditionals. Don't check enable_font_backend. Delete all codes
13200 used only when USE_FONT_BACKEND is not defined.
13201 (x_set_font): Call x_new_font, not x_new_fontset2.
13202 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13203 already set for the frame.
13204
13205 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13206 a font-entity by font_make_entity. Use font_intern_prop instead
13207 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13208 font property. If a font is scalable, set avgwidth property to 0.
13209 Set font-entity property by font_put_extra.
13210 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13211 (ffont_driver): Adjusted for the change of struct font_driver.
13212 (ftfont_spec_pattern): New function.
13213 (ftfont_list): Return a list, not vector.
13214 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13215 (ftfont_list_family): Don't downcase names.
13216 (ftfont_free_entity): Deleted.
13217 (ftfont_open): Return a font-object. Adjusted for the change of
13218 struct font. Get underline_thickness and underline_position from
13219 font property. Don't update dpyinfo->smallest_font_height and
13220 dpyinfo->smallest_char_width.
13221 (ftfont_close): Don't free `struct font'.
13222 (ftfont_has_char): Adjusted for the format change of font-entity.
13223 (ftfont_encode_char, ftfont_text_extents): Likewise.
13224
13225 * ftxfont.c (ftxfont_list): Return a list, not vector.
13226 (ftxfont_open): Return a font-object. Adjusted for the change of
13227 struct font. Get underline_thickness and underline_position from
13228 font property. Don't update dpyinfo->smallest_font_height and
13229 dpyinfo->smallest_char_width.
13230 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13231 (ftxfont_draw): Adjusted for the change of struct font.
13232
13233 * image.c (image_ascent): Don't include "charset.h". Include
13234 "character.h" and "font.h".
13235
13236 * lisp.h (enum pvec_type): New member PREV_FONT.
13237 (Fassoc_string): EXFUN it.
13238
13239 * print.c: Include font.h.
13240 (print_object): Handle font-related objects.
13241
13242 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13243 conditionals. Don't check enable_font_backend. Delete all codes
13244 used only when USE_FONT_BACKEND is not defined.
13245 (handle_auto_composed_prop): Do nothing if it->f is not on a
13246 window system. Check how many following characters can be
13247 displayed by the same font.
13248 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13249 'struct font *'.
13250 (get_char_face_and_encoding): Assign the whole encoding task to
13251 the `encode-char' method of a font driver.
13252 (fill_composite_glyph_string): Adjusted for the change of `struct
13253 face' and `struct glyph_string'.
13254 (fill_glyph_string): Likewise.
13255 (get_per_char_metric): Arguments changed.
13256 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13257 and `struct glyph_string'.
13258 (produce_stretch_glyph, calc_line_height_property)
13259 (x_produce_glyphs): Likewise.
13260
13261 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13262 conditionals. Don't check enable_font_backend. Delete all codes
13263 used only when USE_FONT_BACKEND is not defined. Use
13264 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13265 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13266 (Qp): Extern them.
13267 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13268 Deleted.
13269 (struct font_name): Deleted.
13270 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13271 (compare_fonts_by_sort_order): New function.
13272 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13273 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13274 Deleted.
13275 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13276 compare_fonts_by_sort_order.
13277 (Fx_font_family_list): Call Ffont_family_list.
13278 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13279 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13280 (face_symbolic_slant, face_symbolic_swidth)
13281 (split_font_name_into_vector, build_font_name_from_vector)
13282 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13283 (font_rescale_ratio, split_font_name, build_font_name)
13284 (free_font_names, sort_fonts, x_face_list_fonts)
13285 (face_font_available_p, sorted_font_list, cmp_font_names)
13286 (font_list_1, concat_font_list, font_list, remove_duplicates):
13287 Deleted.
13288 (Fx_list_fonts): Use Ffont_list.
13289 (LFACE_AVGWIDTH): Deleted.
13290 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13291 by FONTP.
13292 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13293 (set_lface_from_font_name): Delete it.
13294 (set_lface_from_font): Renamed from
13295 set_lface_from_font_and_fontset. Caller changed. Don't set
13296 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13297 for face.
13298 (merge_face_vectors): Copy font-spec if necessary.
13299 Clear properties of the font-spec if necessary.
13300 (merge_face_ref): Clear properties of the font-spec if necessary.
13301 (Finternal_set_lisp_face_attribute): Likewise.
13302 (set_font_frame_param): Use font_load_for_lface to load a
13303 font-object, and call Fmodify_frame_parameters with it.
13304 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13305 font name by Ffont_xlfd_name.
13306 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13307 QCslant, and QCwidth.
13308 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13309 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13310 Compare fonts by EQ.
13311 (lookup_non_ascii_face): Deleted.
13312 (face_for_font): The 2nd argument changed.
13313 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13314 Check atomic font properties by case insensitive.
13315 (realize_non_ascii_face): Set face->overstrike correctly.
13316 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13317 (dump_realized_face): Get font name from
13318 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13319
13320 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13321 conditionals. Don't check enable_font_backend. Delete all codes
13322 used only when USE_FONT_BACKEND is not defined.
13323 (xic_create_xfontset): Original code deleted and renamed from
13324 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13325 (x_make_gc): Don't set GCFont in GCs.
13326 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13327 opened by "fixed".
13328 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13329 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13330 get_font_repertory_func.
13331
13332 * xfont.c: Include <stdlib.h> and "ccl.h".
13333 (struct xfont_info): New structure.
13334 (xfont_query_font): Deleted.
13335 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13336 moved from xterm.c.
13337 (xfont_driver): Adjusted for the change of struct font_driver.
13338 (compare_font_names): New function.
13339 (xfont_list_pattern): Sort font names case insensitively. Make
13340 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13341 (xfont_list): Return a list, not vector.
13342 (xfont_match): If the font doesn't have QCname property, generate
13343 a name from the other font properties.
13344 (xfont_open): Return a font-object. Adjusted for the change of
13345 struct font. Get underline_thickness and underline_position from
13346 font property. Don't update dpyinfo->smallest_font_height and
13347 dpyinfo->smallest_char_width.
13348 (xfont_close): Don't free struct font.
13349 (xfont_prepare_face): Adjusted for the change of struct font.
13350 (xfont_done_face): Deleted.
13351 (xfont_has_char): Adjusted for the change of struct font.
13352 (xfont_encode_char, xfont_draw): Likewise.
13353 (xfont_check): New function.
13354
13355 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13356 callback function.
13357 (xftfont_match): Adjusted for the format change of font-entity.
13358 (xftfont_open): Adjusted for the format change of font-entity and
13359 font-object. Adjusted for the change of struct font. Return a
13360 font-object. Don't update dpyinfo->smallest_font_height and
13361 dpyinfo->smallest_char_width.
13362 (xftfont_close): Block input while calling XftFontClose.
13363 (xftfont_prepare_face): Don't block input while calling
13364 xftfont_get_colors. Adjusted for the change of struct font.
13365 (xftfont_shape): Return value of error case fixed.
13366
13367 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13368
13369 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13370 conditionals.
13371 (FONT_WIDTH): Return (f)->max_width.
13372 (struct x_display_info): Delete member `font'.
13373 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13374 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13375 (struct x_output): Change type of `font' to `struct font *'.
13376
13377 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13378 conditionals. Don't check enable_font_backend. Delete all codes
13379 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13380 (x_per_char_metric, x_encode_char): Deleted.
13381 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13382 (x_compute_glyph_string_overhangs): Adjusted for the change of
13383 `struct face'.
13384 (x_draw_glyph_string_foreground)
13385 (x_draw_composite_glyph_string_foreground): Likewise.
13386 (x_draw_glyph_string): Likewise. Use font->underline_position and
13387 font->underline_thickness.
13388 (x_new_font): Renamed from x_new_fontset2.
13389 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13390 (x_check_font): Call `check' method of a font driver.
13391 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13392 (x_query_font, x_get_font_repertory): Deleted.
13393 (x_find_ccl_program): Renamed and moved to xfont.c.
13394 (x_redisplay_interface): Adjusted for the change of `struct
13395 redisplay_interface'.
13396
13397 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13398 conditionals. Don't check enable_font_backend. Delete all codes
13399 used only when USE_FONT_BACKEND is not defined. Surround non-used
13400 code by "#ifdef OLD_FONT" and "endif".
13401 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13402
13403 * w32font.h (struct w32font_info): New member.
13404 (FONT_COMPAT): New macro.
13405 (w32font_open_internal): Prototype adjusted.
13406
13407 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13408 OLD_FONT" and "endif".
13409
13410 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13411 conditionals. Don't check enable_font_backend. Delete all codes
13412 used only when USE_FONT_BACKEND is not defined.
13413 (w32font_open): Return a font-object. Make a font-object by
13414 font_make_object. Adjusted for the change of struct w32font_info.
13415 (w32font_close): Don't free struct font. Adjusted for the change
13416 of struct w32font_info.
13417 (w32font_encode_char, w32font_text_extents, w32font_draw):
13418 Adjusted for the change of struct w32font_info.
13419 (w32font_draw): Likewise.
13420 (w32font_list_internal): Return a list, not vector.
13421 (w32font_open_internal): Change the 4th arg to font-object.
13422 Adjusted for the change of struct w32font_info and font-object format.
13423 (add_font_name_to_list): Don't downcase names.
13424 (w32_enumfont_pattern_entity): Make a font-entity by
13425 font_make_entity. Adjusted for the format change of font-entity.
13426 Use FONT_SET_STYLE to set a style-related font property. If a
13427 font is scalable, set avgwidth property to 0. Set font-entity
13428 property by font_put_extra.
13429 (font_matches_spec): Adjusted for the format change of font-entity.
13430 (w32_weight_table, w32_decode_weight): New variables.
13431 (w32_encode_weight): New function.
13432 (fill_in_logfont): Adjusted for the format change of font-spec.
13433 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13434 weight value.
13435 (w32font_driver): Adjusted for the change of struct font_driver.
13436
13437 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13438 conditionals. Don't check enable_font_backend. Surround non-used
13439 code by "#ifdef OLD_FONT" and "endif".
13440 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13441 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13442
13443 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13444 conditionals. Don't check enable_font_backend. Delete all codes
13445 used only when USE_FONT_BACKEND is not defined. Surround non-used
13446 code by "#ifdef OLD_FONT" and "endif".
13447
13448 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13449 (uniscribe_open): Return value changed to font-object.
13450 Adjusted for the format change of font-object.
13451 (uniscribe_otf_capability): Adjusted for the change of struct font.
13452 (add_opentype_font_name_to_list): Don't downcase names.
13453 (uniscribe_font_driver): Adjusted for the change of struct
13454 font_driver.
13455
13456 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
13457
13458 * dispnew.c (update_frame_1): Check if tty output is still valid
13459 before flushing it.
13460
13461 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13462
13463 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13464 to Gtk+ menus.
13465
13466 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13467
13468 * dired.c (file_name_completion): Tweak the code so as to always do it
13469 in a single pass. Tighten the scope of some variables.
13470
13471 * dired.c (Qdefault_directory): New var.
13472 (file_name_completion): Use it instead of Fexpand_file_name.
13473 (syms_of_dired): Initialize it.
13474
13475 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13476
13477 * fileio.c (double_dollars): Remove dead code.
13478
13479 2008-05-10 Eli Zaretskii <eliz@gnu.org>
13480
13481 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13482 Mention w32-get-true-file-attributes in doc string.
13483
13484 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13485
13486 2008-05-09 Glenn Morris <rgm@gnu.org>
13487
13488 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13489 2008-04-23.
13490
13491 2008-05-09 Eli Zaretskii <eliz@gnu.org>
13492
13493 Support for reporting owner and group of each file on MS-Windows:
13494 * dired.c (stat_uname, stat_gname): New functions, with special
13495 implementation for w32.
13496 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13497
13498 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13499 (dflt_group_name): New static variable.
13500 (dflt_group): Rename from the_group.
13501 (init_user_info): Init dflt_group fields. Get user's group name
13502 from LookupAccountSid.
13503 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13504 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13505 New initialization states.
13506 (globals_of_w32): Initialize them to zero. Initialize the default
13507 group name to "None".
13508 (GetFileSecurity_Name): New global var, the name of the function
13509 to call for GetFileSecurity.
13510 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13511 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13512 (get_file_security, get_security_descriptor_owner)
13513 (get_security_descriptor_group, is_valid_sid)
13514 (get_file_security_desc, get_rid, get_name_and_id)
13515 (get_file_owner_and_group): New functions.
13516 (stat): Use get_file_security_desc and get_file_owner_and_group to
13517 report the owner and primary group of each file. Don't ignore the
13518 high 32 bits of file's size, now that st_size is 64-bit wide.
13519 Fix test when to get true file attributes.
13520 (init_user_info): Use get_rid instead of equivalent inline code.
13521 (fstat): Don't ignore the high 32 bits of file's size.
13522
13523 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
13524
13525 * image.c (png_load): Use correct bit-depth for setting background
13526 color.
13527
13528 2008-05-08 Eli Zaretskii <eliz@gnu.org>
13529
13530 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13531 epa-hook.elc.
13532
13533 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
13534
13535 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13536
13537 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13538
13539 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13540 because the original parameters are in pure storage now.
13541 (mac_window): Remove unused params. Update callers.
13542
13543 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13544
13545 * lread.c (substitute_object_recurse): Use lower-level primitives.
13546 Don't signal errors when traversing sub-char-tables.
13547 Don't loop over all the possible characters when traversing char-tables.
13548
13549 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13550 just like we do in print.c.
13551
13552 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * minibuf.c (Ftry_completion): Remove code left over from when we used
13555 scmp instead of Fcompare_strings.
13556
13557 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
13558
13559 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13560
13561 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13562
13563 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13564 Create bitmap context in native byte order.
13565
13566 * macterm.c (XDrawLine)
13567 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13568 context in native byte order.
13569
13570 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13571
13572 * config.in: Regenerate.
13573
13574 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13575 New definitions for Image I/O support.
13576 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13577 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13578 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13579 (mac_data_provider_release_data, image_load_image_io)
13580 [USE_MAC_IMAGE_IO]: New functions.
13581 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13582 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13583 (init_image_func_pointer) [MAC_OSX]: Remove function.
13584 (image_load_quartz2d) [MAC_OSX]: Check availability of
13585 CGImageCreateWithPNGDataProvider at compile time.
13586 Use lowercase `false' for boolean constant.
13587 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13588 Use image_load_image_io.
13589 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13590 Don't check MyCGImageCreateWithPNGDataProvider.
13591 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13592 Don't call init_image_func_pointer.
13593
13594 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13595
13596 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13597 Make variable non-static.
13598 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13599 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13600
13601 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13602 (RED_FROM_ULONG): Mask off higher bits.
13603 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13604
13605 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13606 Include AvailabilityMacros.h.
13607 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13608 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13609
13610 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * chartab.c (Fset_char_table_range): If range is t, really set all
13613 chars to that value.
13614
13615 2008-05-03 Eli Zaretskii <eliz@gnu.org>
13616
13617 * dired.c (Ffile_attributes): Don't allow the device number become
13618 negative.
13619
13620 2008-05-02 Daiki Ueno <ueno@unixuser.org>
13621
13622 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13623
13624 2008-05-02 Juri Linkov <juri@jurta.org>
13625
13626 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13627 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13628 DEFAULT argument as a list of default values in docstrings.
13629
13630 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13633
13634 2008-05-01 Martin Rudalics <rudalics@gmx.at>
13635
13636 * dispnew.c (change_frame_size_1): Preserve small windows when
13637 shrinking frames by calling set_window_height|width with third
13638 arg 2.
13639
13640 * window.h (struct window): Replace field too_small_ok by field
13641 resize_proportionally.
13642
13643 * window.c (make_window): Initialize resize_proportionally.
13644 (enlarge_window): Temporarily set resize_proportionally to make
13645 sure that shrink_windows does scale the window proportionally.
13646 (shrink_windows): When window has resize_proportionally set try
13647 to shrink it proportionally by stealing from other windows.
13648 (struct saved_window, Fset_window_configuration)
13649 (compare_window_configurations): Handle resize_proportionally.
13650 (WINDOW_TOTAL_SIZE): New macro.
13651 (window_min_size, shrink_windows, size_window): Use it.
13652 (check_min_window_sizes): Remove. Invalid values of
13653 window-min-height|width are handled by window_min_size_2 now.
13654 (size_window, Fsplit_window, enlarge_window)
13655 (adjust_window_trailing_edge, grow_mini_window): Don't call
13656 check_min_window_sizes.
13657 (window_min_size_2, window_min_size_1, window_min_size):
13658 New argument safe_p for retrieving "safe" minimum sizes.
13659 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13660 (adjust_window_trailing_edge, grow_mini_window):
13661 Adjust arguments of window_min_size... functions.
13662 (shrink_windows): Argument min_size removed. New argument
13663 safe_p allows shrinking windows to their safe minimum sizes.
13664 Calculate minimum size and decide whether a window shall be
13665 deleted for each window individually.
13666 (size_window): When nodelete_p equals 2, tell shrink_windows to
13667 delete windows only if their new minimum size is no more safe.
13668 (shrink_window_lowest_first): Call window_min_size_1 to make
13669 sure to preserve modeline of bottom-most window when resizing
13670 the minibuffer.
13671 (Fset_window_configuration, Fcurrent_window_configuration)
13672 (compare_window_configurations): Do not handle
13673 window-min-height|width any more.
13674 (syms_of_window): Clarify window-min-height|width doc-strings.
13675
13676 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13677
13678 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13679 some more. Copy some of the code from Ftry_completions.
13680 Remove special case code that dates back to initial revision when the
13681 slash was only added when necessary and that can't trigger nowadays.
13682
13683 2008-04-27 Kenichi Handa <handa@m17n.org>
13684
13685 * font.c (font_prop_validate): Signal `error' instead of `font'.
13686
13687 2008-04-29 Jason Rumney <jasonr@gnu.org>
13688
13689 * w32fns.c (Fw32_battery_status): New defun.
13690 (syms_of_w32fns): Defsubr it.
13691
13692 2008-04-28 Andreas Schwab <schwab@suse.de>
13693
13694 * dired.c (file_name_completion): Fix another mixing of encoded
13695 and decoded names.
13696
13697 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
13698
13699 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13700
13701 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
13702
13703 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13704
13705 2008-04-27 Andreas Schwab <schwab@suse.de>
13706
13707 * dired.c (file_name_completion): Fix inappropriate mixing of
13708 encoded and decoded names.
13709
13710 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13711
13712 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13713
13714 2008-04-26 Eli Zaretskii <eliz@gnu.org>
13715
13716 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13717 2008-03-31, it's not needed anymore with `struct stat' definition
13718 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13719 for the same reasons.
13720
13721 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13722
13723 * m/sparc.h: Additional redefinitions for GNU/Linux.
13724
13725 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13726
13727 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13728 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13729 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13730 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13731 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13732 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13733 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13734 Likewise.
13735
13736 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13737 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13738 (mac_ax_number_of_characters): Add externs.
13739 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13740 [USE_MAC_TSM]: Likewise.
13741 (mac_handle_text_input_event) [MAC_OSX]:
13742 Handle kEventTextInputOffsetToPos for no active input area case.
13743 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13744 (mac_handle_document_access_event)
13745 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13746 (install_application_handler) [MAC_OSX]: Register handlers for
13747 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13748 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13749 Register mac_handle_document_access_event.
13750
13751 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13752 Make functions non-static.
13753
13754 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13755
13756 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13757 (read_file_name_completion_ignore_case, insert_default_directory)
13758 (Qdefault_directory): Move to minibuffer.el.
13759 (Fread_file_name): Call the new `read-file-name' instead.
13760
13761 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13762
13763 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13764 Make function non-static.
13765 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13766 Remove function.
13767 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13768 Move to mactoolbox.c.
13769 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13770
13771 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13772 (mac_rect_make): New macro.
13773
13774 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13775 instead of float.
13776 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13777 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13778 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13779 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13780 CGRectMake.
13781 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13782 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13783 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13784 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13785 instead of WindowRef in argument type.
13786 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13787 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13788 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13789 instead of DISPLAY. All uses changed.
13790 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13791 (x_calc_absolute_position): Simplify so as not to use
13792 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13793
13794 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13795 instead of WindowRef in argument type.
13796 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13797 [TARGET_API_MAC_CARBON]: Remove externs.
13798 (create_apple_event, mac_event_parameters_to_lisp)
13799 [TARGET_API_MAC_CARBON]: Add externs.
13800
13801 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13802 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13803 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13804 is clicked.
13805 (x_activate_menubar): Remove extern for saved_menu_event_location.
13806 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13807 Move from mac.c.
13808
13809 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13810
13811 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13812 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13813
13814 2008-04-23 Jason Rumney <jasonr@gnu.org>
13815
13816 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13817 attributes only for local files.
13818
13819 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13820 default to Qlocal.
13821
13822 2008-04-22 Juri Linkov <juri@jurta.org>
13823
13824 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13825 read-buffer-to-switch instead of using the letter "B".
13826
13827 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13828
13829 * fileio.c (Qdefault_directory): New variable.
13830 (Fread_file_name): Use it to pass `dir' to the completion functions.
13831
13832 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
13833
13834 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13835
13836 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13837
13838 * keyboard.c (Vpre_help_message): Remove.
13839 (show_help_echo): Remove default C code.
13840
13841 * dired.c (directory_files_internal, file_name_completion):
13842 Only call ENCODE_FILE if the string is indeed decoded.
13843
13844 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13845
13846 * Makefile.in (TOOLKIT_DEFINES): Remove.
13847 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13848
13849 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13850
13851 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13852 (mactoolbox.o): New target.
13853
13854 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13855 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13856
13857 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13858 Use mac_set_frame_window_background instead of XSetWindowBackground.
13859 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13860 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13861 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13862 instead of SetWindowTitleWithCFString.
13863 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13864 Move function to mactoolbox.c.
13865 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13866 Use mac_set_window_modified instead of SetWindowModified.
13867 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13868 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13869 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13870 FrontNonFloatingWindow. Use mac_activate_window instead of
13871 ActivateWindow. Use mac_active_non_floating_window instead of
13872 ActiveNonFloatingWindow.
13873 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13874 Use mac_show_hourglass and mac_hide_hourglass.
13875 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13876 instead of GetGlobalMouse.
13877 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13878 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13879 Use mac_bring_window_to_front instead of BringToFront.
13880 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13881 mactoolbox.c.
13882 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13883 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13884 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13885 mactoolbox.c.
13886
13887 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13888 (XtPointer): Move typedef from macmenu.c.
13889 (enum button_type): Move enum from macmenu.c.
13890 (widget_value): Move typedef from macmenu.c.
13891 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13892 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13893 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13894 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13895 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13896 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13897 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13898 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13899 (Selection): Move typedef from macselect.c.
13900 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13901 macterm.c.
13902 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13903 (mac_is_window_collapsed, mac_bring_window_to_front)
13904 (mac_send_window_behind, mac_hide_window, mac_show_window)
13905 (mac_collapse_window, mac_front_non_floating_window)
13906 (mac_active_non_floating_window, mac_activate_window)
13907 (mac_move_window_structure, mac_move_window, mac_size_window)
13908 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13909
13910 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13911 (enum mac_menu_kind): Move enum to mactoolbox.c.
13912 (min_menu_id): Move variable to mactoolbox.c.
13913 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13914 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13915 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13916 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13917 [TARGET_API_MAC_CARBON]: Likewise.
13918 (XtPointer): Move typedef to macgui.h.
13919 (enum button_type): Move enum to macgui.h.
13920 (widget_value): Move typedef to macgui.h.
13921 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13922 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13923 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13924 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13925 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13926 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13927 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13928 (popup_activated_flag): Make variable non-static.
13929 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13930 (add_menu_item, fill_menu, dispose_menus):
13931 Move functions to mactoolbox.c.
13932 (restore_show_help_function, menu_target_item_handler)
13933 (install_menu_target_item_handler, mac_handle_dialog_event)
13934 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13935 [TARGET_API_MAC_CARBON]: Likewise.
13936 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13937 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13938 (find_and_call_menu_selection, name_is_separator): Make function
13939 non-static.
13940 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13941 to mactoolbox.c.
13942 (set_frame_menubar): Don't call install_menu_quit_handler.
13943 (menu_item_selection): New variable.
13944 (mac_menu_show): Use create_and_show_popup_menu.
13945 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13946 selection but set variable menu_item_selection. All uses changed.
13947 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13948 Call install_menu_quit_handler. Move to mactoolbox.c.
13949
13950 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13951 (Selection): Move typedef to macgui.h.
13952 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13953 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13954 Make variables non-static.
13955 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13956 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13957 Make functions non-static.
13958 (Vmac_service_selection) [MAC_OSX]: Likewise.
13959 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13960 (mac_valid_selection_target_p, mac_clear_selection)
13961 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13962 (mac_put_selection_value, mac_selection_has_target_p)
13963 (mac_get_selection_value, mac_get_selection_target_list)
13964 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13965 Move functions to mactoolbox.c.
13966 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13967 Likewise.
13968 (copy_scrap_flavor_data, mac_handle_service_event)
13969 (install_service_handler) [MAC_OSX]: Likewise.
13970 (syms_of_macselect) <Vmac_dnd_known_types>:
13971 Use mac_dnd_default_known_types.
13972
13973 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13974 Move to mactoolbox.c.
13975 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13976 (Fx_selection_owner_p): Add EXFUN.
13977 (install_window_handler, remove_window_handler, XSetWindowBackground):
13978 Remove externs.
13979 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13980 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13981 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13982 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13983 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13984 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13985 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13986 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13987 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13988 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13989 (mac_valid_selection_target_p, mac_clear_selection)
13990 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13991 (mac_put_selection_value, mac_selection_has_target_p)
13992 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13993 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13994 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13995 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13996 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13997 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13998 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13999 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14000 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
14001
14002 * mactoolbox.c: New file.
14003
14004 2008-04-18 Jason Rumney <jasonr@gnu.org>
14005
14006 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
14007
14008 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
14009
14010 * character.c (Fmultibyte_char_to_unibyte):
14011 Return latin1 chars unchanged.
14012
14013 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14014 relocated if it points to `name'.
14015
14016 2008-04-17 Kenichi Handa <handa@m17n.org>
14017
14018 * data.c (Faset): Allow setting a multibyte character in an
14019 ASCII-only unibyte string.
14020
14021 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14022
14023 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14024
14025 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14026 done in config.h.
14027
14028 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
14029
14030 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14031 (Fchar_direction): Add usage in the docstring.
14032
14033 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
14034
14035 * keyboard.c (read_key_sequence): Remove always-true checks.
14036
14037 2008-04-14 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14040 compatibility struct, for better underline positioning.
14041
14042 2008-04-13 David Hansen <david.hansen@gmx.net>
14043
14044 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14045 string.
14046
14047 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14048
14049 * m/hp800.h (XUINT, XSET): Remove.
14050
14051 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
14052
14053 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14054 previous change.
14055
14056 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14057
14058 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14059 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14060
14061 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14062
14063 * keymap.h (map_keymap_canonical): Declare.
14064 * xmenu.c (single_keymap_panes): Use it.
14065
14066 2008-04-11 Glenn Morris <rgm@gnu.org>
14067
14068 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14069 set the target's value to that of the alias.
14070
14071 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14072
14073 * term.c (set_tty_color_mode): Left over typo.
14074
14075 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
14076
14077 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14078 only after check for file name handler functions. Signal, when
14079 native functionality is not supported.
14080 (syms_of_fileio): Declare it unconditionally.
14081
14082 2008-04-10 Jason Rumney <jasonr@gnu.org>
14083
14084 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14085 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14086
14087 * w32.c (logon_network_drive): Also logon to remote drives that
14088 are mapped to drive letters.
14089
14090 2008-04-10 Glenn Morris <rgm@gnu.org>
14091
14092 * xdisp.c (truncate-partial-width-windows): Doc fix.
14093
14094 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14095
14096 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14097 Move functions to minibuffer.el.
14098 (syms_of_fileio): Don't declare them.
14099
14100 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14101
14102 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14103 (syms_of_minibuf): Remove its initialization.
14104
14105 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14106
14107 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
14108
14109 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14110
14111 2008-04-09 Jason Rumney <jasonr@gnu.org>
14112
14113 * makefile.w32-in (distclean): Delete makefile too.
14114 (maintainer-clean): New target.
14115
14116 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14117
14118 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14119 for new font backend and composite cases.
14120
14121 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14122
14123 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14124 Most of the code moved to run_timers.
14125 (do_pending_atimers): Call run_timers.
14126 (run_timers): New function.
14127
14128 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14129 run atimers.
14130
14131 * process.c (wait_reading_process_output): The same as above.
14132
14133 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14134
14135 * minibuf.c (last_exact_completion): Remove variable.
14136 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14137 (complete_and_exit_1, complete_and_exit_2)
14138 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14139 (Fdisplay_completion_list, display_completion_list_1)
14140 (Fminibuffer_completion_help, Fself_insert_and_exit)
14141 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14142 minibuffer.el.
14143 (syms_of_minibuf): Remove corresponding initializations.
14144
14145 * keyboard.c (Qdeactivate_mark): New var.
14146 (command_loop_1): Use it to call `deactivate-mark'.
14147 (syms_of_keyboard): Initialize it.
14148
14149 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14150 to another frame.
14151 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14152 Don't call set_tty_color_mode.
14153 (store_frame_param): Reset previous_frame rather than call
14154 set_tty_color_mode.
14155 * term.c (set_tty_color_mode): Rewrite.
14156 * dispextern.h (set_tty_color_mode): New type.
14157 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14158
14159 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14160
14161 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14162 for generic chars, which do not exist any more in emacs-unicode.
14163
14164 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
14165
14166 * coding.c (detect_coding_emacs_mule)
14167 (Ffind_operation_coding_system): Fix typo.
14168
14169 2008-04-08 Jason Rumney <jasonr@gnu.org>
14170
14171 * w32uniscribe.c (SNAME): Extract only symbol name.
14172
14173 * w32font.h (struct w32_metric_cache): New struct.
14174 (w32font_info): Use it.
14175 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14176 (CACHE_BLOCKSIZE): New constants.
14177
14178 * w32font.c (Qja, Qko, Qzh): New symbols.
14179 (syms_of_w32font): Initialise them.
14180 (font_matches_spec): Use them to filter by language.
14181 (recompute_cached_metrics): Remove function.
14182 (compute_metrics, clear_cached_metrics): New functions.
14183 (w32font_encode_char): Use them to manage metric cache.
14184 (w32font_text_extents): Cache metrics for all glyphs on demand.
14185 Delay converting glyph indices to WORD until needed.
14186 (w32font_open_internal): Initialize metric cache to empty.
14187 (registry_to_w32_charset): Charset should always be a symbol.
14188 (fill_in_logfont, list_all_matching_fonts): Family should
14189 always be a symbol.
14190
14191 2008-04-06 Jason Rumney <jasonr@gnu.org>
14192
14193 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14194 Give up if glyph indices not supported. Use uniscribe obtained
14195 ABC widths for individual metrics. Map glyph clusters back to
14196 characters using fClusterStart flag. Return number of glyphs
14197 produced, not chars processed.
14198 (uniscribe_shape): Map char at FROM to current glyph.
14199
14200 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14201
14202 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14203 Use SetMenuItemHierarchicalMenu.
14204
14205 2008-04-05 Jason Rumney <jasonr@gnu.org>
14206
14207 * image.c (pbm_load): Allow color values up to 65535.
14208 Throw an error if max_color_idx is outside the supported range.
14209 Report an error when image size is invalid.
14210 Read two bytes at a time when raw images have max_color_idx above 255.
14211
14212 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14213
14214 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14215 append "CCL: Quitted" when the CCL program is quitted.
14216 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14217
14218 * ccl.h (struct ccl_program): New member quit_silently.
14219
14220 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
14221
14222 * search.c (compile_pattern_1): Treat non-nil and non-string of
14223 search-spaces-regexp as nil.
14224
14225 * minibuf.c (Fassoc_string): Tweak docstring.
14226
14227 2008-04-05 Eli Zaretskii <eliz@gnu.org>
14228
14229 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14230 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14231 2008-03-14 to force inode be positive.
14232
14233 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14234 _S_* ones, since we now use our own sys/stat.h.
14235 (stat, fstat): Don't mangle the inode number.
14236 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14237
14238 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14239
14240 * frame.h (struct frame): Give one more bit to `visible' since we use
14241 values larger than 1 to indicate obscured frames on ttys.
14242
14243 * keymap.c (Qkeymap_canonicalize): New var.
14244 (Fmap_keymap_internal): New fun.
14245 (describe_map): Use keymap-canonicalize.
14246
14247 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14248 (Fundo_boundary): Set them.
14249 (syms_of_undo): Initialize them.
14250 (record_point): Use them instead of last_point_position*.
14251 (last_undo_buffer): Change type.
14252
14253 2008-04-04 Jason Rumney <jasonr@gnu.org>
14254
14255 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14256 (recompute_cached_metrics): Don't set ascent and descent per char.
14257
14258 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14259 (uniscribe_check_otf): Add GC protection before consing.
14260 Rearrange loop for counting features.
14261
14262 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14263
14264 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14265 buffer with byte-size of source buffer.
14266
14267 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
14268
14269 * callint.c (Fcall_interactively): Handle temporary region even
14270 when shift-select-mode is off.
14271
14272 2008-04-03 Jason Rumney <jasonr@gnu.org>
14273
14274 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14275
14276 2008-04-03 Kenichi Handa <handa@m17n.org>
14277
14278 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14279 (CATEGORY_MASK_UTF_16): Likewise.
14280 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14281 binary file.
14282 (detect_coding): Add null-byte detection for a binary file.
14283 (detect_coding_system): Likewise.
14284
14285 2008-04-03 Jason Rumney <jasonr@gnu.org>
14286
14287 * w32uniscribe.c: New file.
14288
14289 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14290
14291 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14292
14293 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14294 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14295 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14296 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14297 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14298 (Qphonetic): New symbols.
14299 (syms_of_w32font): Initialize them.
14300 (font_supported_scripts): Use them.
14301 (w32font_list_family): List all charsets.
14302 (w32font_text_extents, recompute_cached_metrics): Fix metric
14303 calculations.
14304 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14305 Give opentype fonts their own format.
14306 (font_matches_spec): New arguments backend and logfont.
14307 Handle :otf spec for uniscribe backend.
14308 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14309 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14310
14311 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14312 font backend.
14313 (globals_of_w32fns): Initialize uniscribe font backend.
14314
14315 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14316 dependencies.
14317 (w32uniscribe.$(O)): New file to build.
14318 (FONT_OBJ): Include w32uniscribe.$(O).
14319 (LIBS): Add uniscribe libraries.
14320
14321 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14322
14323 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
14324
14325 * callint.c (Vshift_select_mode): New var.
14326 (Finteractive): Document new ^ spec.
14327 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14328 is present.
14329
14330 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14331 (command_loop_1): Avoid running the direct display versions of
14332 forward-char and backward-char if shift-selection may occur.
14333 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14334 shift-translation takes place.
14335
14336 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14337 avoid clobbering by define-minor-mode.
14338
14339 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14340 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14341
14342 * syntax.c (Fforward_word): Add ^ interactive spec.
14343
14344 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14345 (Fscroll_right): Add ^ interactive spec.
14346
14347 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14348
14349 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14350
14351 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14352
14353 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14354
14355 2008-03-31 Juri Linkov <juri@jurta.org>
14356
14357 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14358
14359 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14360
14361 * gtkutil.c (xg_set_geometry): Fix indentation.
14362 (xg_resize_outer_widget): Remove.
14363 (x_wm_size_hint_off): Fix indentation.
14364 (xg_frame_set_char_size): Call flush_and_sync after
14365 gtk_window_resize.
14366 (x_wm_set_size_hint): Pass NULL as geometry window to
14367 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14368 Add menu bar and tool bar height to base height.
14369 (xg_update_frame_menubar, free_frame_menubar)
14370 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14371 (update_frame_tool_bar, free_frame_tool_bar):
14372 Change xg_resize_outer_widget to xg_frame_set_char_size.
14373
14374 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
14375
14376 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14377 (Fdbus_call_method): New parameter TIMEOUT.
14378 (dbus-send-signal): Optimize UNGCPRO call.
14379
14380 2008-03-29 Juri Linkov <juri@jurta.org>
14381
14382 * window.c (Fdisplay_buffer): Move call to
14383 Vsplit_window_preferred_function out of conditions that check
14384 if window is eligible for vertical splitting.
14385 When Vsplit_window_preferred_function is non-nil, call it and use
14386 its non-nil return value as window. Otherwise, continue doing
14387 vertical splitting using Fsplit_window with arg horflag=nil.
14388 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14389 default value from `split-window' to nil.
14390
14391 2008-03-29 Juri Linkov <juri@jurta.org>
14392
14393 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14394 for interactive code letters 'b' and 'B'.
14395
14396 2008-03-29 Eli Zaretskii <eliz@gnu.org>
14397
14398 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14399 multibyte string.
14400
14401 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14402
14403 * keyboard.c (pending_funcalls): New var.
14404 (timer_check): Run it.
14405 (syms_of_keyboard): Initialize it.
14406 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14407 (Vdelete_terminal_functions): New vars.
14408 (syms_of_terminal): Initialize them.
14409 (Fdelete_terminal): Run delete-terminal-functions.
14410 * xdisp.c (safe_eval): Rewrite.
14411 (safe_call2): New fun.
14412 * frame.c (Qdelete_frame_functions): New var.
14413 (syms_of_frame): Initialize it.
14414 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14415 * lisp.h (safe_call2, pending_funcalls): Declare.
14416
14417 2008-03-28 Andreas Schwab <schwab@suse.de>
14418
14419 * indent.c (Fmove_to_column): Move declaration before statements.
14420
14421 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14422
14423 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14424 (struct frame): Use bit fields for boolean vars.
14425
14426 * process.c (server_accept_connection): Simplify naming.
14427 (emacs_get_tty_pgrp): Use SDATA.
14428
14429 * coding.c (decode_coding_object): Fix last change.
14430
14431 2008-03-27 Jason Rumney <jasonr@gnu.org>
14432
14433 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14434
14435 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14436
14437 * charset.c (Fdefine_charset_internal): Change the way of
14438 registering charsets in Vcharset_order_list.
14439 (syms_of_charset): Make the charset `eight-bit' supplementary.
14440
14441 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14442
14443 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14444 operations, to avoid having the difference between pointers
14445 overflow.
14446
14447 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14448
14449 * indent.c (check_display_width): New fun.
14450 (scan_for_column): Use it.
14451
14452 * data.c (syms_of_data): Mark most-positive-fixnum and
14453 most-negative-fixnum as constants.
14454
14455 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14456
14457 * indent.c (scan_for_column): Extract from current_column_1.
14458 Merge with the same code from Fmove_to_column.
14459 (current_column_1, Fmove_to_column): Use it.
14460
14461 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14462
14463 * keymap.c (map_keymap_internal): New fun.
14464 (map_keymap): Use it.
14465 (Fmap_keymap_internal): New fun.
14466 (Fmap_keymap): Remove left-out test from before make_save_value.
14467
14468 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14469
14470 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14471 Use XCAR/XCDR.
14472
14473 * process.h (struct Lisp_Process): Remove filter_multibyte.
14474 * process.c (QCfilter_multibyte): Remove.
14475 (setup_process_coding_systems): Don't use filter_multibyte.
14476 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14477 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14478 (Fset_process_filter_multibyte): Change the coding-system to
14479 approximate the previous behavior.
14480 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14481 coding-system.
14482
14483 * coding.c (decode_coding_object): When not decoding into a buffer,
14484 obey the coding system's preference of (uni|multi)byte.
14485
14486 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14487
14488 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14489 every char is changed and has a different byte-length.
14490 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14491 Fix int -> EMACS_INT.
14492
14493 2008-03-23 David Hansen <david.hansen@gmx.net>
14494
14495 * dbusbind.c (xd_read_message): Remove extra copying of message
14496 strings. Check for NULL `interface' or `member'.
14497
14498 2008-03-22 Eli Zaretskii <eliz@gnu.org>
14499
14500 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14501 cFileName a file name that includes `?' characters, use the 8+3
14502 alias in cAlternateFileName instead.
14503
14504 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14505
14506 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14507
14508 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14509
14510 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14511 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14512 work on current_buffer only instead (that was already the case
14513 for some of the code anyway).
14514 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14515 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14516 (SET_PT, SET_PT_BOTH): Adjust.
14517 * intervals.h (set_point, temp_set_point, set_point_both)
14518 (temp_set_point_both): Remove redundant declarations.
14519
14520 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14521
14522 * fileio.c (Finsert_file_contents):
14523 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14524 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14525 when buffer != current_buffer anyway.
14526
14527 2008-03-20 Andreas Schwab <schwab@suse.de>
14528
14529 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14530 as default.
14531
14532 2008-03-19 Jason Rumney <jasonr@gnu.org>
14533
14534 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14535 (syms_of_w32fns): Initialize them.
14536 (HOURGLASS_ID): New constant.
14537 (x_window_to_frame): Don't check hourglass_window.
14538 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14539 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14540 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14541 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14542 Only change the cursor if hourglass is not active.
14543 (Fx_create_frame): Initialize frame's current_cursor.
14544 (hourglass_atimer): Remove.
14545 (hourglass_started): New function.
14546 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14547 (show_hourglass): Adapt to w32, changing argument to frame.
14548
14549 * w32term.h (struct w32_output): Remove hourglass_window.
14550 Add current_cursor.
14551
14552 * eval.c (call_debugger, Fsignal):
14553 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14554 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14555 (Fexecute_extended_command, cancel_hourglass_unwind):
14556 * minibuf.c (read_minibuf):
14557 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14558
14559 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * window.c (run_funs): New fun.
14562 (run_window_configuration_change_hook): Use it to run the buffer-local
14563 and the global part of the hook.
14564
14565 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14566 (unwind_format_mode_line): Restore selected window.
14567 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14568
14569 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14570
14571 * editfns.c (Fchar_equal): Check they are valid characters.
14572
14573 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14574
14575 2008-03-17 Andreas Schwab <schwab@suse.de>
14576
14577 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14578 against a charset.
14579
14580 * lisp.h (Fbuffer_list): Declare.
14581
14582 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
14583
14584 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14585 handlebox_widget is != 0.
14586
14587 2008-03-16 Juri Linkov <juri@jurta.org>
14588
14589 * callint.c (Fcall_interactively): For interactive code letters
14590 'b' and 'B' put the buffer list into the list of default "future"
14591 values of the minibuffer.
14592
14593 2008-03-16 Andreas Schwab <schwab@suse.de>
14594
14595 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14596 modifiers.
14597
14598 * regex.c (re_match_2_internal): Correct matching of a charset
14599 against latin-1 characters.
14600
14601 2008-03-16 Kenichi Handa <handa@m17n.org>
14602
14603 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14604 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14605 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14606 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14607 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14608 CHAR_STRING_ADVANCE.
14609 (produce_chars): Fix for the case that the source and the
14610 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14611 instead of CHAR_STRING_ADVANCE.
14612 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14613 STRING_CHAR_ADVANCE.
14614
14615 2008-03-15 Andreas Schwab <schwab@suse.de>
14616
14617 * regex.c (re_match_2_internal): Correct matching of eight bit
14618 characters in unibyte strings.
14619
14620 2008-03-15 Martin Rudalics <rudalics@gmx.at>
14621
14622 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14623 at end of range when it coincides with the end of the buffer.
14624
14625 2008-03-14 Eli Zaretskii <eliz@gnu.org>
14626
14627 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14628
14629 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14630
14631 2008-03-14 Jason Rumney <jasonr@gnu.org>
14632
14633 * editfns.c (initial_tz): New variable.
14634 (syms_of_editfns): Initialize it.
14635 (Fset_time_zone_rule): Set it when first called.
14636 Use it when TZSTRING is nil.
14637
14638 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14639 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14640 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14641 (globals_of_w32fns): Initialize them.
14642 (compute_tip_xy): Use them to position tooltips.
14643
14644 2008-03-14 Glenn Morris <rgm@gnu.org>
14645
14646 * emacs.c (main): Revert previous change.
14647 (standard_args): Revert -internal-script back to -scriptload,
14648 and remove the long-option form.
14649
14650 2008-03-13 Glenn Morris <rgm@gnu.org>
14651
14652 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14653 Remove option -enable-font-backend.
14654
14655 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14656
14657 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14658
14659 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14660
14661 * xterm.c (x_connection_closed): For GTK: If this is the last
14662 terminal just exit without closing the display.
14663
14664 2008-03-11 Jason Rumney <jasonr@gnu.org>
14665
14666 * w32font.c (w32font_full_name): Use floor to round.
14667
14668 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
14669
14670 * sound.c (alsa_configure): Declare vol at beginning of block.
14671
14672 * fontset.c (Ffontset_info): Remove extra semicolon.
14673
14674 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14675
14676 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14677 size of resulting string.
14678
14679 2008-03-10 Jason Rumney <jasonr@gnu.org>
14680
14681 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14682
14683 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14684
14685 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14686 Don't pretend as if characters with display property haven't been
14687 consumed for string-replacing-string case.
14688
14689 2008-03-08 Kim F. Storm <storm@cua.dk>
14690
14691 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14692 (get_next_display_element, next_element_from_string)
14693 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14694
14695 2008-03-08 Andreas Schwab <schwab@suse.de>
14696
14697 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14698
14699 2008-03-06 Jason Rumney <jasonr@gnu.org>
14700
14701 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14702 when charset not specified. Only translate ANSI to unicode when
14703 font_type is truetype.
14704 (w32font_coverage_ok): New function.
14705 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14706
14707 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14708
14709 * lread.c (Fread_char): Resolve modifiers.
14710 (Fread_char_exclusive): Likewise.
14711
14712 * character.c (char_resolve_modifier_mask): New function.
14713 (char_string): Use char_resolve_modifier_mask.
14714 (Fchar_resolve_modifiers): New function.
14715 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14716 function.
14717
14718 2008-03-04 Jason Rumney <jasonr@gnu.org>
14719
14720 * makefile.w32-in: Always include w32font.c in the build.
14721 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14722
14723 2008-03-04 Andreas Schwab <schwab@suse.de>
14724
14725 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14726 (versionclean): Likewise.
14727
14728 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
14729
14730 * .cvsignore: Add oo.
14731
14732 2008-03-03 Andreas Schwab <schwab@suse.de>
14733
14734 * coding.c (decode_coding_object): Inhibit gap shrinking while
14735 decoding in place.
14736
14737 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14738
14739 * w32term.c: Remove unused include "gnu.h".
14740 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14741
14742 * gnu.h: Rename to ...
14743 * emacs-icon.h: ... this.
14744 * xterm.c: Use emacs-icon.h instead of gnu.h.
14745 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14746
14747 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
14748
14749 * w32font.c: Include math.h.
14750
14751 2008-03-03 Jason Rumney <jasonr@gnu.org>
14752
14753 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14754 Compute options separately.
14755 (w32font_open_internal): Set glyph_idx before caching metrics.
14756
14757 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14758 Define if system headers don't.
14759 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14760 (w32font_encode_char): Don't declare here.
14761
14762 * w32font.c (Quniscribe, QCformat): New symbols.
14763 (syms_of_w32font): Define them.
14764 (w32font_has_char): Indicate uncertainty.
14765 (w32font_encode_char): Encode as glyph point. Make static.
14766 (recompute_cached_metrics): New function.
14767 (w32font_open_internal): Use it. Set font to use glyph points
14768 initially. Set format based on type of font.
14769 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14770 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14771 on it. Set format based on information available here.
14772 (add_font_entity_to_list): Identify backend based on opentype_only.
14773
14774 2008-03-02 Andreas Schwab <schwab@suse.de>
14775
14776 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14777
14778 * coding.c (decode_coding_big5, produce_chars):
14779 Fix typos in last change.
14780
14781 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14782
14783 * gnu.h: New icon.
14784
14785 2008-03-02 Kenichi Handa <handa@m17n.org>
14786
14787 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14788 `dos', don't decode '\r' if that is the last in the source.
14789 (decode_coding_utf_16, decode_coding_emacs_mule)
14790 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14791 (decode_coding_raw_text, decode_coding_charset): Likewise.
14792 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14793
14794 2008-03-01 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14797
14798 2008-03-01 Kim F. Storm <storm@cua.dk>
14799
14800 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14801
14802 2008-03-01 Jason Rumney <jasonr@gnu.org>
14803
14804 * w32font.c (w32font_full_name): New function.
14805 (w32font_open_internal): Use it.
14806
14807 2008-03-01 Kim F. Storm <storm@cua.dk>
14808
14809 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14810
14811 2008-03-01 Jason Rumney <jasonr@gnu.org>
14812
14813 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14814
14815 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14816
14817 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14818 xg_frame_resized when the event is for the edit widget.
14819
14820 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14821
14822 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14823 set_char_size.
14824 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14825 operations on widgets here. Just set frame size if needed.
14826 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14827 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14828 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14829 the whole frame.
14830 (xg_create_tool_bar): Move attachment of the tool bar to
14831 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14832 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14833
14834 2008-03-01 Jason Rumney <jasonr@gnu.org>
14835
14836 * w32fns.c (w32_msg_pump): Disable debug code.
14837
14838 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14839
14840 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14841
14842 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14843
14844 * xdisp.c (next_overlay_string): Don't set
14845 overlay_strings_at_end_processed_p if we're currently reading from
14846 a display string.
14847
14848 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14849
14850 * xdisp.c (get_overlay_strings_1): Fix typo.
14851
14852 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
14853
14854 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14855
14856 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14857
14858 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14859
14860 * xdisp.c (display_mode_element): Cancel the previous change.
14861 (decode_mode_spec): Likewise.
14862 (handle_auto_composed_prop): Don't make composition if it->string
14863 is a string.
14864
14865 2008-02-27 Kim F. Storm <storm@cua.dk>
14866
14867 * lisp.h (GLYPH): Change type from int to struct with separate char
14868 and face_id members.
14869 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14870 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14871 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14872 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14873 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14874 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14875 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14876 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14877 handle new Lisp glyph code encoding, either an integer or a cons.
14878
14879 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14880 (GLYPH_ALIAS): Delete.
14881 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14882 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14883 (GLYPH_FROM_CHAR): Replace macro by ...
14884 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14885
14886 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14887 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14888 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14889 (GLYPH_INVALID_P): New macro.
14890 (spec_glyph_lookup_face): Update prototype.
14891
14892 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14893 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14894 new glyph code encoding.
14895 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14896 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14897
14898 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14899 Adapt to new glyph type and new glyph code encoding.
14900
14901 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14902
14903 * indent.c (current_column, current_column_1, Fmove_to_column)
14904 (compute_motion): Adapt to new glyph code encoding.
14905
14906 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14907
14908 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
14909
14910 * process.c (wait_reading_process_output): Check for window
14911 changes caused by timers.
14912 Suggested by Johan Bockgård.
14913
14914 2008-02-27 Glenn Morris <rgm@gnu.org>
14915
14916 * emacs.c (USAGE1): Add `--disable-font-backend'.
14917
14918 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14919
14920 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14921 is made to the buffer.
14922
14923 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14924
14925 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14926 (face_at_string_position):
14927 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14928 (face_at_string_position):
14929 * xdisp.c (display_string, next_overlay_change):
14930 * buffer.h (overlays_at):
14931 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14932 Update callers.
14933
14934 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
14935
14936 * editfns.c (Fformat): Doc fix.
14937
14938 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
14939
14940 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14941 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14942 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14943
14944 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14945
14946 * buffer.c (Fbuffer_swap_text): New function.
14947 (syms_of_buffer): Defsubr it.
14948
14949 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
14950
14951 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14952
14953 2008-02-25 Jason Rumney <jasonr@gnu.org>
14954
14955 * w32font.c (w32font_draw): Draw one character at a time when padding.
14956
14957 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14958
14959 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14960 Handle a nil arg. Use run_window_configuration_change_hook.
14961 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14962 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14963 Use run_window_configuration_change_hook.
14964
14965 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14966
14967 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14968 1-pixel width.
14969
14970 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14971
14972 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14973 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14974 if the glyph in the font is zero pixel with.
14975
14976 * dispextern.h (struct glyph_string): New member padding_p.
14977
14978 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14979
14980 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14981
14982 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14983
14984 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14985
14986 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14987
14988 2008-02-25 Jason Rumney <jasonr@gnu.org>
14989
14990 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14991
14992 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14993
14994 Allow fine-grained image-cache flushing.
14995 * dispextern.h (struct image): Add `dependencies' field.
14996 (clear_image_caches): Change arg to Lisp_Object.
14997 * image.c (make_image): Initialize `dependencies' field.
14998 (clear_image_cache): Change arg to allow fine-grained flushing.
14999 Perform the flush even if image-cache-eviction-delay is nil.
15000 (clear_image_caches): Change arg to Lisp_Object.
15001 (Fclear_image_cache): Expand meaning of the argument.
15002 (mark_image): Mark `dependencies' field.
15003 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
15004 (lface_hash): Use XHASH rather than XFASTINT.
15005 (face_at_buffer_position): Fix int -> EMACS_INT position.
15006 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
15007 (select_frame_for_redisplay): Remove code duplication.
15008 (redisplay_internal): Adapt arg to call to clear_image_caches.
15009
15010 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15011
15012 * s/vms4-0.h:
15013 * s/vms4-2.h:
15014 * s/vms4-4.h:
15015 * s/vms5-5.h: Remove, unused.
15016
15017 * s/irix5-2.h:
15018 * s/irix6-0.h:
15019 * s/riscos5.h:
15020 * s/mach-bsd4-3.h:
15021 * m/mips4.h: Remove files for obsolete systems.
15022
15023 * Makefile.in:
15024 * filelock.c:
15025 * unexmips.c:
15026 * m/hp9000s300.h:
15027 * m/iris4d.h:
15028 * s/aix3-1.h:
15029 * s/hpux.h:
15030 * s/msdos.h:
15031 * s/usg5-0.h:
15032 * s/usg5-2-2.h:
15033 * s/usg5-2.h:
15034 * s/usg5-3.h: Remove references to obsolete variables.
15035
15036 * s/irix5-0.h: Remove, move all the contents ...
15037 * s/irix6-5.h: ... here. Simplify.
15038 * config.in: Regenerate.
15039
15040 2008-02-24 Jason Rumney <jasonr@gnu.org>
15041
15042 * w32term.c (x_draw_glyph_string_background): Clear the background
15043 manually when cleartype is in use.
15044 (x_draw_glyph_string_foreground): Draw text transparently when
15045 cleartype is in use.
15046
15047 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15048 a font into it unless we have to.
15049
15050 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15051
15052 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15053 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
15054
15055 2008-02-18 Jason Rumney <jasonr@gnu.org>
15056
15057 * w32fns.c (Fw32_shell_execute): Encode parameters.
15058
15059 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15060
15061 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15062
15063 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
15064
15065 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15066
15067 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15068
15069 * xterm.c (x_set_offset): Don't change the gravity if
15070 CHANGE_GRAVITY is -1.
15071
15072 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
15073
15074 * fileio.c (auto_save_error_occurred): New var.
15075 (auto_save_error): Set it.
15076 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15077 error occurred.
15078
15079 2008-02-23 Eli Zaretskii <eliz@gnu.org>
15080
15081 * w32.c (globals_of_w32): Add initializations for
15082 g_b_init_get_sid_sub_authority and
15083 g_b_init_get_sid_sub_authority_count.
15084
15085 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15086
15087 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15088 (font_parse_xlfd): Use them for sanity check.
15089 (Finternal_set_font_style_table): Make sure the table is bijective.
15090
15091 Consolidate the image_cache to the terminal struct.
15092 * termhooks.h (P_): Remove redundant def.
15093 (struct terminal): New field `image_cache'.
15094 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15095 of FRAME_X_IMAGE_CACHE.
15096 * xterm.h (struct x_display_info): Remove image_cache field.
15097 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15098 * w32term.h (struct w32_display_info): Remove image_cache field.
15099 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15100 * macterm.h (struct mac_display_info): Remove image_cache field.
15101 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15102 * xterm.c (x_term_init):
15103 * w32term.c (w32_term_init):
15104 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15105 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15106 Remove declarations.
15107 (clear_image_caches, mark_image_cache): New declarations.
15108 * xfaces.c (clear_face_cache):
15109 * xdisp.c (redisplay_internal): Use clear_image_caches.
15110 * image.c (clear_image_cache): Don't check that a frame is on
15111 a window-system before checking if it shares the same cache.
15112 (clear_image_caches): New function.
15113 (Fclear_image_cache): Use it.
15114 (mark_image): Move from allo.c.
15115 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15116 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15117 (mark_object): Don't call mark_image_cache for frames.
15118 (mark_terminals): Call mark_image_cache.
15119
15120 * lisp.h (Fdelete_terminal): Declare.
15121
15122 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15123 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15124 wrong_type_argument.
15125
15126 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15127
15128 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15129 malayalam.el, and tamil.el. Add sinhala.el.
15130
15131 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15132
15133 * xterm.c (x_connection_closed): Consolidate identical tests.
15134 (x_delete_terminal): Don't crash if called via x_connection_closed.
15135
15136 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15137
15138 * xdisp.c (decode_mode_spec): New arg string.
15139 (display_mode_element): Adjust for the above change.
15140
15141 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15142
15143 * callint.c (Fcall_interactively): Use AREF.
15144
15145 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15146
15147 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15148
15149 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15150
15151 * xfns.c (Fx_show_tip): Set string to " " if empty.
15152
15153 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15154
15155 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15156 with Qt.
15157
15158 2008-02-17 Kenichi Handa <handa@m17n.org>
15159
15160 * ftfont.c (ftfont_shape): Return Lispy number.
15161
15162 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15163 for GCs.
15164 (Finternal_set_font_selection_order): Call font_update_sort_order
15165 only when enable_font_backend is set.
15166 (realize_x_face): Set face->font_info to that of default face only
15167 when enable_font_backend is set.
15168
15169 * xdisp.c (handle_composition_prop): Set it->c to the fist
15170 character of the composed region.
15171 (fill_composite_glyph_string): Set base_face->font_info to
15172 s->font_info. Get a face for ascii from base_face->ascii_face.
15173 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15174 with a face already decided.
15175 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15176 non-negative.
15177 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15178 call font_prepare_composition unconditionally.
15179
15180 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15181
15182 * xterm.h (struct x_display_info): New member font.
15183
15184 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15185 (x_set_mouse_face_gc, x_new_font): Likewise.
15186 (x_term_init): Setup display_info->font.
15187 (x_delete_terminal): Free display_info->font.
15188
15189 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15190
15191 * ftxfont.c (ftxfont_default_fid): Delete it.
15192 (ftxfont_open): Set xfont->fid to 0.
15193 (ftxfont_end_for_frame): Clear data specific to the frame and the
15194 font-driver.
15195
15196 * xftfont.c (xftfont_default_fid): Delete it.
15197 (xftfont_open): Set xfont->fid to 0.
15198
15199 * fontset.c (FONTSET_OBJLIST): New macro.
15200 (fontset_find_font): Update font-object list of the fontset.
15201 (free_realized_fontset): New function.
15202 (free_face_fontset): Call free_realized_fontset.
15203 (Ffont_info): Call font_close_object only when enable_font_backend
15204 is set.
15205
15206 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15207 [HAVE_NTGUI]: Include w32term.h.
15208 [MAC_OS]: Include macterm.ch.
15209 (font_otf_ValueRecord): Use make_number.
15210 (font_finish_cache): Fix handling of reference count.
15211 (font_clear_cache): Update num_fonts.
15212 (font_open_entity): Update smallest_char_width and
15213 smallest_font_height of the frame.
15214 (font_close_object): Update num_fonts.
15215 (Fclear_font_cache): Fix finding the target cache data.
15216
15217 2008-02-16 Glenn Morris <rgm@gnu.org>
15218
15219 * fontset.c (Finternal_char_font): Fix compilation warning.
15220
15221 2008-02-16 Eli Zaretskii <eliz@gnu.org>
15222
15223 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15224 instead of char arrays. Enlarge the size of array passed to
15225 get_token_information.
15226
15227 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15228 warnings.
15229
15230 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15231
15232 * .gdbinit: Don't set `args', it breaks gdb --args.
15233
15234 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15235
15236 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15237 within a narrowed buffer.
15238
15239 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15240
15241 * coding.c (decode_coding_object, encode_coding_object):
15242 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15243
15244 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15245
15246 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15247 hardcoding 1.
15248 (detect_coding_system):
15249 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15250 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15251 * insdel.c (insert_from_gap):
15252 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15253 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15254 (string_to_multibyte):
15255 * character.c (chars_in_text, multibyte_chars_in_text):
15256 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15257
15258 * character.h (FETCH_STRING_CHAR_ADVANCE)
15259 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15260 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15261 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15262
15263 * casefiddle.c (casify_region): Only call after-change and composition
15264 functions on the part of the region that was changed.
15265
15266 * keyboard.c (read_avail_input):
15267 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15268
15269 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15270
15271 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15272 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15273
15274 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
15275
15276 * w32menu.c (push_submenu_start, push_submenu_end)
15277 (push_left_right_boundary, push_menu_pane, push_menu_item):
15278 * keyboard.c (read_key_sequence): Don't pass args with side effects
15279 to AREF, it fails when compiling with -DENABLE_CHECKING.
15280
15281 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15282
15283 * Makefile.in (${lispsource}international/charprop.el):
15284 Delete this target.
15285
15286 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15287 emacs-unicode-2.
15288
15289 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15290
15291 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15292
15293 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15294
15295 * frame.c (Qnoelisp): New symbol.
15296 (syms_of_frame): Initialize it.
15297 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15298 harmless Elisp code, from a strong `force' from x_connection_closed.
15299 * frame.h (Qnoelisp): Declare.
15300 * xterm.c (x_connection_closed): Pass `noelisp'.
15301
15302 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15303 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15304 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15305 rather than `int' for the type of `type'.
15306
15307 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15308
15309 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15310
15311 * Makefile.in (GNUC): Remove support for gcc-1.x.
15312
15313 2008-02-10 Richard Stallman <rms@gnu.org>
15314
15315 * lisp.h (ASET): Use AREF, not ASLOT.
15316
15317 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15318
15319 * lisp.h (ASET): Check bounds.
15320
15321 2008-02-10 Glenn Morris <rgm@gnu.org>
15322
15323 * buffer.c (mode-name): Doc fix.
15324
15325 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15326
15327 * Makefile.in:
15328 * emacs.c:
15329 * gmalloc.c:
15330 * keyboard.c:
15331 * lisp.h:
15332 * m/ibm370aix.h:
15333 * process.c:
15334 * regex.c:
15335 * s/hpux.h:
15336 * sysdep.c:
15337 * sysselect.h:
15338 * systty.h:
15339 * unexec.c:
15340 * w32term.c:
15341 * xsmfns.c:
15342 * xterm.c: Remove code that deals with obsolete variables.
15343
15344 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15345
15346 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15347 nothing else needs it anymore.
15348
15349 2008-02-09 Eli Zaretskii <eliz@gnu.org>
15350
15351 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15352 instead of unibyte_char_to_multibyte.
15353
15354 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15355
15356 * s/gnu-linux.h: Remove commented out code.
15357
15358 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15359
15360 * Makefile.in: Update what RMS says about using autoconf.
15361 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15362 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15363 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15364 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15365
15366 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15367
15368 * keymap.c (Fkey_description): Move side effect outside of macro call.
15369
15370 * xfaces.c (Finternal_make_lisp_face):
15371 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15372
15373 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15374 (syms_of_fontset): Use ASET.
15375
15376 * fns.c (concat): Move side effect outside of macro call.
15377 (hash_clear): Use ASET.
15378
15379 2008-02-08 Richard Stallman <rms@gnu.org>
15380
15381 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15382 If FORCE, and frame has a surrogate minibuffer for another frame,
15383 delete the other frame first.
15384
15385 2008-02-07 Timo Savola <timo.savola@iki.fi>
15386
15387 * xterm.c (x_detect_focus_change): Handle embed client message.
15388 (handle_one_xevent): Ditto.
15389 (handle_one_xevent): If embedded and we get a button press/release,
15390 request focus.
15391 (xembed_set_info, xembed_send_message): New functions.
15392 (x_make_frame_visible): Call xembed_set_info if embedded.
15393 (x_make_frame_invisible): Call xembed_set_info if embedded.
15394 (x_term_init): Initialize Xatom_XEMBED.
15395 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15396 (x_iconify_frame): Ditto.
15397
15398 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15399 (enum xembed_info, enum xembed_message, enum xembed_focus)
15400 (enum xembed_modifier, enum xembed_accelerator): New.
15401 (xembed_set_info, xembed_send_message): Declare.
15402 (FRAME_X_EMBEDDED_P): New.
15403
15404 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15405 gtk_plug_new.
15406
15407 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15408 window ID of a frame.
15409 (x_window): Reparent frame if embedded.
15410 (Fx_create_frame): Don't set border width if embedded.
15411
15412 * emacs.c (USAGE3): Add --parent-id.
15413 (standard_args): Ditto.
15414
15415 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15416
15417 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15418
15419 2008-02-07 Jim Meyering <meyering@redhat.com>
15420
15421 Use "do...while (0)", not "if (1)...else" in macro definitions.
15422 The latter provokes a warning from gcc about the empty else, when
15423 followed by ";". Also, without that trailing semicolon, it would
15424 silently swallow up any following statement.
15425 * syntax.h (SETUP_SYNTAX_TABLE)
15426 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15427 * buffer.h (DECODE_POSITION): Likewise.
15428 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15429 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15430 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15431 (FETCH_CHAR_ADVANCE): Likewise.
15432 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15433
15434 2008-02-07 Jim Meyering <meyering@redhat.com>
15435
15436 * lread.c [lint]: Don't include <sys/inode.h>.
15437
15438 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15439
15440 * xselect.c (x_handle_dnd_message):
15441 * xmenu.c (digest_single_submenu, xmenu_show):
15442 * xdisp.c (with_echo_area_buffer_unwind_data)
15443 (format_mode_line_unwind_data, unwind_format_mode_line)
15444 (display_menu_bar):
15445 * eval.c (Ffetch_bytecode):
15446 * doc.c (store_function_docstring):
15447 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15448 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15449 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15450
15451 2008-02-07 Kenichi Handa <handa@m17n.org>
15452
15453 * ftxfont.c (ftxfont_open): Don't set
15454 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15455
15456 * ftfont.c (ftfont_open): Fix previous change.
15457
15458 2008-02-06 Jason Rumney <jasonr@gnu.org>
15459
15460 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15461 Use cached metrics for ASCII characters.
15462 (w32font_open_internal): Don't set font's owning_frame.
15463 Cache metrics for ASCII characters.
15464
15465 * w32font.h (struct w32font_info): Add ascii_metrics.
15466 Remove owning_frame.
15467
15468 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15469
15470 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15471 to negative value.
15472
15473 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15474
15475 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15476
15477 * charset.c (syms_of_charset): Set QCtest and Qeq.
15478
15479 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15480
15481 * process.c (Fstart_process):
15482 * callproc.c (Fcall_process): Handle the case where
15483 Funhandled_file_name_directory returns nil.
15484
15485 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15486 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15487 * font.c (check_gstring): Use them and AREF to access the vector before
15488 we know it's really a gstring.
15489 (Ffont_shape_text): Fix typo.
15490 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
15491
15492 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15493 Declare.
15494
15495 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15496
15497 2008-02-05 Jason Rumney <jasonr@gnu.org>
15498
15499 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15500 Set smallest_font_height and smallest_char_width in display info.
15501
15502 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15503
15504 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15505
15506 2008-02-05 Miles Bader <miles@gnu.org>
15507
15508 * xfaces.c (get_lface_attributes, merge_named_face)
15509 (lookup_named_face, lookup_derived_face, realize_named_face):
15510 Revert 2008-02-01 change by cyd@stupidchicken.com.
15511
15512 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15513
15514 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15515 fallback fonts.
15516 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15517
15518 2008-02-04 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15521 set full_name.
15522 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15523
15524 2008-02-03 Jason Rumney <jasonr@gnu.org>
15525
15526 * makefile.w32-in (OBJ1): Include font.o here.
15527 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15528
15529 2008-02-02 Jason Rumney <jasonr@gnu.org>
15530
15531 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15532
15533 2008-02-01 Jason Rumney <jasonr@gnu.org>
15534
15535 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15536
15537 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15538
15539 2008-02-01 Andreas Schwab <schwab@suse.de>
15540
15541 * Makefile.in (shortlisp, lisp): Update for rename of
15542 ../lisp/language/myanmar.el.
15543
15544 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
15545
15546 * xfaces.c (get_lface_attributes): Delete function.
15547 (merge_named_face, lookup_named_face, lookup_derived_face)
15548 (realize_named_face): Call lface_from_face_name directly, and use
15549 the fact that merge_face_vectors does not alter its FROM argument.
15550
15551 2008-02-01 Jason Rumney <jasonr@gnu.org>
15552
15553 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15554 input in the default locale. Handle non-Unicode multibyte input.
15555
15556 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15557
15558 * fontset.c (reorder_font_vector): Exclude nil elements from the
15559 font group. Don't try multiple fonts.
15560 (fontset_font): Adjust for the above change.
15561 (Finternal_char_font): Return nil if the found font doesn't
15562 contain the character ch.
15563
15564 * Makefile.in (lisp, shortlisp): Add cham.el.
15565
15566 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15567
15568 * font.h (FONTP): Make it return 1 also for a font-object.
15569
15570 * .gdbinit (xfontset): New function.
15571
15572 * font.c (font_find_for_lface): Check if the character C is
15573 supported or not only for the first font.
15574
15575 * fontset.c (reorder_font_vector): Fix typo.
15576 (fontset_find_font): Don't add a font-spec specifying a script.
15577 Use 0 (not Qt) for the indication of empty font-group. Change the
15578 format of RFONT-DEF. Return Qt if no font in the font-group
15579 support the character.
15580 (fontset_font): Adjust for the above change. If no font was
15581 found the character, remember that.
15582 (face_for_char): Adjust for the change of RFONT-DEF.
15583 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15584 no font for the target.
15585 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15586
15587 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15588
15589 * font.c (font_load_for_face): Handle the case that the font in
15590 face->lface is a string.
15591
15592 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15593
15594 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15595
15596 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15597
15598 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15599 Fix previous change. If the frame is not on a window system,
15600 signal an error.
15601
15602 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15603
15604 * coding.c (decode_coding_object, encode_coding_object): Adjust
15605 marker positions after conversion.
15606
15607 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15608
15609 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15610
15611 * font.c (font_find_for_lface): Fix the handling of the return
15612 value of font_has_char.
15613 (Ffont_shape_text): Fix previous change.
15614
15615 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15616 (fontset_ref_and_range): Delete it.
15617 (fontset_find_font): Call char_table_ref_and_range instead of
15618 FONTSET_REF_AND_RANGE.
15619 (make_fontset): Don't setup font groups of Latin here.
15620 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15621 (new_fontset_from_font): Make the specified font the default for
15622 all Latin characters.
15623
15624 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15625
15626 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15627 is on a window system before accessing the fontset of the frame.
15628
15629 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630
15631 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15632
15633 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15634 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15635
15636 * font.c (Ffont_shape_text): If the font driver doesn't have a
15637 shaper function, make zero-width glyphs to have at least one-pixel
15638 width. Fix setting of `to' field of glyphs.
15639
15640 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15641
15642 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15643 glyphs.
15644
15645 * font.h (struct font_driver): Improve docstring of member `shape'.
15646
15647 2008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * composite.c (syms_of_composite): Fix docstring of
15650 auto-composition-function.
15651
15652 * font.h (LGLYPH_SIZE): New macro.
15653
15654 * font.c (Ffont_fill_gstring): Stop filling when a character not
15655 supported by the font is found.
15656 (Ffont_shape_text): When a shape callback function returns nil,
15657 try at most two more times with larger gstring.
15658 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15659
15660 * xdisp.c (handle_auto_composed_prop): Change the argument to
15661 auto-composition-function.
15662
15663 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15664 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15665 Lispy glyph and store it in the lgstring.
15666
15667 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15668
15669 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15670
15671 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15672
15673 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15674
15675 * fontset.c (Vfont_encoding_charset_alist): New variable.
15676 (syms_of_fontset): DEFVAR it.
15677 (reorder_font_vector, fontset_find_font): Optimize for the case of
15678 no need of reordering.
15679 (face_for_char): Map the charset property by
15680 Vfont_encoding_charset_alist.
15681
15682 2008-02-01 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32font.c (logfonts_match): Don't check adstyle here.
15685 (font_matches_spec): Check here against physical font instead.
15686 (add_font_entity_to_list): Avoid some substitutions.
15687
15688 * font.c (font_parse_fcname): Default weight and slant to normal.
15689 (font_score): Prefer normal fonts if weight or slant unspecified.
15690 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15691 match freetype scores.
15692
15693 2008-02-01 Jason Rumney <jasonr@gnu.org>
15694
15695 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15696 font, as it may have been deleted.
15697 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15698 most common hyphenless variation.
15699 (logfonts_match): Check generic family.
15700 (font_matches_spec): Don't check generic family here.
15701 (fill_in_logfont): Set generic family based on adstyle.
15702
15703 * w32font.h (w32font_get_cache): Update declaration.
15704
15705 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15706
15707 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15708
15709 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15710 If none of the new drivers are available, call font_update_drivers
15711 with the old drivers.
15712
15713 * w32font.c (w32font_get_cache): Adjust the argument type.
15714
15715 * xfont.c (xfont_get_cache): Adjust the argument type.
15716
15717 * font.h (struct font_driver): Change argument type of get_cache.
15718
15719 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15720
15721 * font.c (Ffont_get): Fix arguments to Fassoc.
15722 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15723 (font_clear_cache): New function.
15724 (font_list_entities, font_matching_entity): Use font_get_cache.
15725 (font_update_drivers): Call font_clear_cache when finishing a driver.
15726
15727 * fontset.c (fontset_find_font): Fix previous change.
15728
15729 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15730
15731 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15732 dpyinfo->font_table.
15733 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15734 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15735
15736 * font.c (font_at): Handle the case that the arg C is negative.
15737 Handle the unibyte case.
15738 (Ffont_at): Call font_at with the arg C -1.
15739
15740 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15741 the position here, and call font_at with the arg C -1.
15742 Don't check the range of the existing composition at the point.
15743
15744 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15745
15746 * fontset.c (fontset_add): New args charset_id and family.
15747 Change caller.
15748 (load_font_get_repertory, fontset_find_font): Assume that
15749 font_spec is always a font-spec object.
15750 (Fset_fontset_font): Always store a font-spec object in a fontset.
15751
15752 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15753 instead of get_property_and_range.
15754
15755 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15756
15757 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15758 (xftfont_open): Don't keep locking face.
15759 (xftfont_close): Don't unlock face.
15760 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15761
15762 * fontset.c (fontset_find_font): Don't prefer a font of
15763 supplementary charset.
15764
15765 2008-02-01 Kenichi Handa <handa@m17n.org>
15766
15767 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15768 script, langsys_tag to langsys, new member script.
15769 (OTF_TAG_STR): Terminate by '\0'.
15770 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
15771 listing to the script specified in that property. Fix arg to
15772 OTF_check_features.
15773
15774 2008-02-01 Jason Rumney <jasonr@gnu.org>
15775
15776 * w32font.h: New file.
15777
15778 * w32font.c: Include it.
15779 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15780 (w32font_open): Set owning_frame.
15781 (w32font_text_extents): Use owning_frame.
15782 (struct font_callback_data): Add opentype_only field.
15783 (add_font_entity_to_list): Use it to filter fonts.
15784 Don't check against full name.
15785 (w32font_list_internal): New function.
15786 (w32font_list): Use it.
15787 (w32font_match_internal): New function.
15788 (w32font_match): Use it.
15789 (w32font_open_internal): New function.
15790 (w32font_open): Use it.
15791 (w32font_get_cache, w32font_close, w32font_has_char)
15792 (w32font_encode_char, w32font_text_extents, w32font_draw):
15793 Make non-static.
15794
15795 * makefile.w32-in (w32font.o): Depend on w32font.h.
15796
15797 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15798
15799 * charset.c (Fdefine_charset_internal): Record a supplementary
15800 charset at the tail of Vcharset_order_list.
15801
15802 * font.c (Ffont_shape_text): Fix the return value.
15803
15804 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15805
15806 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15807
15808 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15809
15810 * ftfont.c (struct OpenTypeSpec): New struct.
15811 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15812 (ftfont_get_open_type_spec): New function.
15813 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15814
15815 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15816
15817 2008-02-01 Jason Rumney <jasonr@gnu.org>
15818
15819 * w32font.c (add_font_entity_to_list): Compare only the beginning
15820 of full name.
15821
15822 2008-02-01 Kenichi Handa <handa@m17n.org>
15823
15824 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15825 Never return HANDLED_RECOMPUTE_PROPS.
15826
15827 2008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * font.c (font_gstring_produce): Delete it.
15830
15831 * composite.h (COMPOSITION_METHOD):
15832 Handle COMPOSITION_WITH_GLYPH_STRING.
15833
15834 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15835
15836 * xfont.c (Qx): Delete.
15837 (syms_of_xfont): Don't initialize Qx.
15838
15839 * composite.h (enum composition_method):
15840 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15841
15842 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15843
15844 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15845 (choose_face_font): Accept new form of font-spec.
15846
15847 * frame.h (font_driver_list): Declare it unconditionally.
15848 (struct frame): Define members font_driver_list and font_data_list
15849 unconditionally.
15850
15851 * fontset.c: Include "font.h" unconditionally.
15852 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15853 (Fset_fontset_font): Accept a font-spec object.
15854
15855 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15856 PIXEL_SIZE part a wild card.
15857
15858 * dispextern.h (struct glyph_string): Define members clip and
15859 num_clips unconditionally.
15860 (struct face): Define members font_info and extra unconditionally.
15861
15862 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15863 ftfont_info only when HAVE_LIBOTF is defined.
15864
15865 2008-02-01 Andreas Schwab <schwab@suse.de>
15866
15867 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15868 and end.
15869
15870 2008-02-01 Jason Rumney <jasonr@gnu.org>
15871
15872 * w32font.c (w32font_driver): Add new fields.
15873
15874 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15875
15876 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15877 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15878 (LIBES): Add @M17N_FLT_CFLAGS@.
15879
15880 * composite.c (compose_text): Don't treat the new style
15881 composition specially.
15882
15883 * emacs.c (main): Call syms_of_font unconditionally.
15884
15885 * font.h (FONT_ENTITY_NOT_LOADABLE)
15886 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15887 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15888 (struct font_driver): New member shape.
15889 (font_registry_charsets): Extern it.
15890 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15891 (font_otf_capability, font_drive_otf): Delete their externs.
15892
15893 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15894 (font_charset_alist, font_registry_charsets): Move from xfont.c
15895 and rename.
15896 (font_prop_validate_otf): New function.
15897 (font_property_table): Register it for QCotf.
15898 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15899 (font_drive_otf): Delete.
15900 (font_prepare_composition): New arg F. Adjust for the change of
15901 lispy gstring.
15902 (font_find_for_lface): New arg C.
15903 (font_load_for_face): Adjust for the change of font_find_for_lface.
15904 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15905 lispy gstring.
15906 (Ffont_shape_text): New function.
15907 (Fopen_font): If the font size is not given, use 12-pixel.
15908 (Ffont_at): New arg STRING.
15909 (syms_of_font): Initalize font_charset_alist.
15910 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15911 conditionally.
15912
15913 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15914 fonts of the same font-spec. Change the format of RFONT-DEF.
15915 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15916 Adjust for the change of RFONT-DEF.
15917 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15918
15919 * ftfont.h: New file.
15920
15921 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15922 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15923 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15924 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15925 font_otf_capability and font_drive_otf, set ftfont_shape.
15926 (ftfont_list): Adjust for the change of :otf property value.
15927 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15928 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15929 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15930 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15931 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15932 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15933
15934 * w32term.c (x_draw_composite_glyph_string_foreground):
15935 Adjust for the change of lispy gstring.
15936
15937 * xdisp.c (handle_composition_prop): Adjust for the change of
15938 lispy gstring. Call a function for auto-composition with the
15939 third arg it->window.
15940 (fill_composite_glyph_string): Adjust for the change of lispy string.
15941 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15942
15943 * xfaces.c (set_font_frame_param): Adjust for the change of
15944 font_find_for_lface.
15945
15946 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15947 (xfont_registry_charsets): Likewise. Change caller.
15948 (syms_of_xfont): Don't handle x_font_charset_alist.
15949
15950 * xftfont.c: Include "ftfont.h".
15951 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15952 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15953 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15954 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15955 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15956 Set xftfont_driver.shape to xftfont_shape.
15957
15958 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15959 the change of lispy gstring.
15960
15961 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15962
15963 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15964
15965 2008-02-01 Jason Rumney <jasonr@gnu.org>
15966
15967 * w32font.c (w32font_draw): Fill background manually.
15968
15969 2008-02-01 Jason Rumney <jasonr@gnu.org>
15970
15971 * font.c (Qfontp): Remove unused symbol.
15972 (QCantialias): New symbol.
15973 (syms_of_font): Define it.
15974 (font_property_table): Set a validator for QCantialias.
15975
15976 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15977 Define if not already.
15978 (QCfamily): Share with xfaces.c.
15979 (Qstandard, Qsubpixel, Qnatural): New symbols.
15980 (syms_of_w32font): Define them. Don't define QCfamily here.
15981 (w32_antialias_type, lispy_antialias_type): New functions.
15982 (w32_enumfont_pattern_entity): New arg requested_font.
15983 Set antialias parameter if non-default was requested.
15984 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15985
15986 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15987
15988 * lread.c (read1): Undo the previous change.
15989
15990 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15991
15992 * frame.c (Fdelete_frame): Call font_update_drivers only when
15993 USE_FONT_BACKEND is defined.
15994
15995 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15996
15997 * font.h (struct font_bitmap): New member bits_per_pixel.
15998 (struct font_driver): New members start_for_frame and end_for_frame.
15999 (struct font_data_list): New struct.
16000 (font_put_frame_data, font_get_frame_data): Extern them.
16001
16002 * frame.h (struct frame): New member font_data_list.
16003
16004 * font.c (font_update_drivers): Call driver->start_for_frame and
16005 driver->end_for_frame at proper timings.
16006 (font_put_frame_data, font_get_frame_data): New functions.
16007 (Ffont_spec): Add usage in the docstring.
16008
16009 * frame.c (make_frame): Initialize f->font_data_list to NULL.
16010 (Fdelete_frame): Call font_update_drivers.
16011
16012 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16013 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16014 (xftfont_get_xft_draw): New function.
16015 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16016 (xftfont_end_for_frame): New function.
16017 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16018
16019 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16020 Change argument. Cache GCs in the per-frame data.
16021 (struct ftxfont_frame_data): New struct.
16022 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16023 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16024 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16025 (ftxfont_end_for_frame): New function.
16026 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16027
16028 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16029
16030 2008-02-01 Kenichi Handa <handa@m17n.org>
16031
16032 * xselect.c (Vselection_coding_system)
16033 (Vnext_selection_coding_system): Delete them.
16034 (syms_of_xselect): Don't declare selection-coding-system and
16035 next-selection-coding-system. They are declared in select.el.
16036
16037 2008-02-01 Jason Rumney <jasonr@gnu.org>
16038
16039 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16040
16041 * w32fns.c: Include imm.h.
16042 (get_composition_string_fn, get_ime_context_fn): New optional
16043 system functions.
16044 (globals_of_w32fns): Load them from imm32.dll.
16045 (ignore_ime_char): New flag.
16046 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16047 WM_IME_ENDCOMPOSITION messages.
16048
16049 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16050 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16051
16052 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16053
16054 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16055 (READCHAR_REPORT_MULTIBYTE): New macro.
16056 (readchar): New 2nd arg MULTIBYTE.
16057 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16058 Make symbol's name multibyte according to the multibyteness of the
16059 source.
16060
16061 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16062
16063 * xfaces.c (face_for_overlay_string): Call lookup_face with
16064 correct arguments (fix of synching with the trunk).
16065
16066 2008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16069 (font_prop_validate_non_neg, font_prop_validate_spacing):
16070 Delete argument prop_index.
16071 (font_property_table): Change arguments to validater. Change Callers.
16072 (font_lispy_object): Delete.
16073 (font_at): Use font_find_object instead fo font_lispy_object.
16074
16075 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16076
16077 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16078 and file names.
16079
16080 2008-02-01 Jason Rumney <jasonr@gnu.org>
16081
16082 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16083 (font_matches_spec): Remove debug output.
16084 (add_font_entity_to_list): Avoid using substituted fonts.
16085
16086 2008-02-01 Jason Rumney <jasonr@gnu.org>
16087
16088 * doc.c (Fsnarf_documentation):
16089 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16090
16091 2008-02-01 Miles Bader <miles@gnu.org>
16092
16093 * dispextern.h (struct glyph_row): Only define "clip" field if
16094 HAVE_WINDOW_SYSTEM is defined.
16095
16096 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16097
16098 Fix up multi-tty merge.
16099
16100 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16101 and indentation.
16102
16103 * xfaces.c (free_realized_face, clear_face_gcs):
16104 Include font_done_for_face in the input_blocked section, just in case.
16105
16106 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16107 (get_char_face_and_encoding): Undo last change and remove the *other*
16108 duplicate definition (i.e. keep the one that's better scoped and that
16109 includes code for the font-backend).
16110
16111 * terminal.c (create_terminal): Default keyboard_coding to
16112 `no-conversion' and terminal_coding to `undecided'.
16113
16114 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16115
16116 * fontset.c (free_realized_fontsets): Check that the table entry does
16117 contain a fontset before trying to compare it to `base'.
16118
16119 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16120 syms_of_charset, and syms_of_coding earlier because init_window_once
16121 now needs Vcoding_system_hash_table to be setup.
16122
16123 * coding.h (default_buffer_file_coding): Remove.
16124
16125 * coding.c (default_buffer_file_coding): Remove.
16126 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16127 than ->symbol, and use the terminal-local coding system.
16128 (syms_of_coding): Don't setup the coding-systems that are not
16129 terminal-local.
16130 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16131
16132 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16133 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16134
16135 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16136 in chartab.c and were re-added here by mistake.
16137 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16138
16139 * doc.c (Fsnarf_documentation):
16140 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16141 src to etc.
16142
16143 * ChangeLog.10: Add mistakenly removed entry.
16144
16145 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16146
16147 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16148
16149 2008-02-01 Miles Bader <miles@gnu.org>
16150
16151 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16152 Add extra args to FACE_FOR_CHAR.
16153
16154 2008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16157 in sequence.
16158
16159 * chartab.c (map_sub_char_table, map_char_table): If the range
16160 contains just one character, call the function with that character
16161 even if the depth is not 3.
16162
16163 2008-02-01 Jason Rumney <jasonr@gnu.org>
16164
16165 * w32font.c (w32font_text_extents): Calculate metrics for the
16166 whole string.
16167
16168 2008-02-01 Jason Rumney <jasonr@gnu.org>
16169
16170 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16171
16172 2008-02-01 Jason Rumney <jasonr@gnu.org>
16173
16174 * w32term.c (x_set_glyph_string_clipping): Use
16175 get_glyph_string_clip_rects.
16176 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16177 Adjust for the change of struct glyph_string.
16178
16179 * w32font.c (w32font_draw): Do clipping here.
16180
16181 2008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * xftfont.c (xftfont_draw): Adjust for the change of struct
16184 glyph_string.
16185
16186 * xterm.c (x_set_glyph_string_clipping): Use
16187 get_glyph_string_clip_rects.
16188 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16189 Adjust for the change of struct glyph_string.
16190
16191 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16192 the resulting clip(s}.
16193 (expose_overlaps): Add arg r. Change callers. Set it to
16194 row->clip temporarily.
16195 (expose_window): Redraw rows overlapping the exposed area.
16196
16197 * dispextern.h (struct glyph_row): New member clip.
16198 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16199 clip_height, new member clip, and num_clips.
16200
16201 2008-02-01 Kenichi Handa <handa@m17n.org>
16202
16203 * data.c (Fchar_or_string_p): Fix docstring.
16204
16205 2008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16208 create a temporary XftDraw object.
16209
16210 2008-02-01 Kenichi Handa <handa@m17n.org>
16211
16212 * font.c (Ffontp): Fix docstring.
16213
16214 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16215 strong evidence of ISO-2022.
16216
16217 2008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16220 SYNTAX_ENTRY_FOLLOW_PARENT.
16221
16222 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16223
16224 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16225 its type.
16226 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16227 Update to the new type of weak_hash_tables and next_weak.
16228
16229 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16230 a plain C pointer to Lisp_Hash_Table.
16231
16232 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16233 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16234 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16235 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16236 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16237 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16238 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16239 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16240 (GC_EQ): Remove since they've been identical to their non-GC_
16241 alter-egos ever since the markbit was eradicated.
16242
16243 * alloc.c:
16244 * buffer.c:
16245 * buffer.h:
16246 * data.c:
16247 * fileio.c:
16248 * filelock.c:
16249 * fns.c:
16250 * frame.h:
16251 * lisp.h:
16252 * macterm.c:
16253 * print.c:
16254 * process.c:
16255 * w32fns.c:
16256 * w32menu.c:
16257 * w32term.c:
16258 * xfns.c:
16259 * xmenu.c:
16260 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16261
16262 2008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * chartab.c (map_sub_char_table): Make it work for the top-level
16265 char-table. Fix handling of parent char-table.
16266 (map_char_table): Adjust for the above change.
16267
16268 2008-02-01 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32font.c (Qgdi): Rename from Qw32.
16271
16272 2008-02-01 Jason Rumney <jasonr@gnu.org>
16273
16274 * w32bdf.c (get_quoted_string): Make function static.
16275
16276 2008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16279 bigger ascent and descent than those of the font, use them as
16280 font's ascent and descent.
16281
16282 2008-02-01 Kenichi Handa <handa@m17n.org>
16283
16284 * Makefile.in (${lispsource}international/charprop.el): Move this
16285 target within "#ifdef HAVE_UNIDATA" and "#endif".
16286
16287 2008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16290 (shortlisp): Add ../lisp/language/tai-viet.el.
16291
16292 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
16293
16294 * Makefile.in (${lispsource}international/charprop.el): Depend on
16295 temacs${EXEEXT}.
16296
16297 2008-02-01 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32font.c (w32font_close): Delete the GDI font object.
16300
16301 * w32menu.c: Include character.h.
16302
16303 * w32proc.c: Likewise.
16304
16305 * w32select.c: Likewise.
16306
16307 * makefile.w32-in (w32proc.o): Depend on character.h.
16308
16309 2008-02-01 Jason Rumney <jasonr@gnu.org>
16310
16311 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16312
16313 * w32menu.c (syms_of_w32menu): Likewise.
16314
16315 * w32proc.c (syms_of_ntproc): Likewise.
16316
16317 * w32select.c (syms_of_w32select): Likewise.
16318
16319 * w32term.c (syms_of_w32term): Likewise.
16320
16321 2008-02-01 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32font.c (w32font_draw): Delete brush after using it.
16324
16325 2008-02-01 Jason Rumney <jasonr@gnu.org>
16326
16327 * w32font.c (w32font_open): Don't set font_idx.
16328 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16329 to font settings.
16330 (w32font_draw): Fill background explicitly.
16331
16332 2008-02-01 Jason Rumney <jasonr@gnu.org>
16333
16334 * w32term.c (w32_initialize): Don't call w32font_initialize.
16335
16336 * w32font.c (w32font_info): Remove subranges.
16337 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16338 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16339 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16340 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16341 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16342 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16343 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16344 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16345 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16346 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16347 New symbols.
16348 (font_callback_data): New struct.
16349 (w32font_list, w32font_match): Use it.
16350 (w32font_open): Don't populate subranges.
16351 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16352 (w32font_encode_char): Always return unicode code-point as-is.
16353 (w32font_text_extents): Supply a transformation matrix to
16354 GetGlyphOutline. Never look up by glyph index. Avoid looping
16355 twice. Use unicode version of GetTexExtentPoint32 instead of
16356 glyph index version.
16357 (set_fonts_frame): Remove.
16358 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16359 set frame parameter. Use backward compatible fake foundries.
16360 Save generic family in extra slot under QCfamily. Make width slot
16361 constant. Save QCspacing value. Save list of scripts instead of
16362 binary subranges.
16363 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16364 (add_font_entity_to_list): Use font_callback_data struct. Filter
16365 unwanted fonts.
16366 (add_one_font_entity_to_list): Use font_callback_data struct.
16367 (w32_registry): Default to iso10646_1.
16368 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16369 string font registries. Don't fill in font name if it is a generic
16370 family name, fill family instead. Use spacing, family and script
16371 extra info to fill pitch, family and charset fields.
16372 (list_all_matching_fonts): Use font_callback_data struct.
16373 (unicode_range_for_char): Remove.
16374 (font_supported_scripts): New function.
16375 (w32font_initialize): Remove.
16376 (syms_of_w32font): Update which symbols are defined.
16377
16378 2008-02-01 Jason Rumney <jasonr@gnu.org>
16379
16380 * font.c (font_pixel_size): Reverse assq_no_quit args.
16381
16382 * w32term.h (FONT_WIDTH): Report max width, not average.
16383 (FONT_MAX_WIDTH): Remove.
16384 (FONT_AVG_WIDTH): New macro.
16385
16386 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16387 redefinition of FONT_WIDTH.
16388
16389 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16390 (w32_cache_char_metrics): Use FONT_WIDTH.
16391
16392 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16393
16394 2008-02-01 Jason Rumney <jasonr@gnu.org>
16395
16396 * w32font.c (w32font_open): Make lfHeight negative.
16397
16398 * w32fns.c (x_default_font_parameter): Use new style font name.
16399 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16400
16401 2008-02-01 Jason Rumney <jasonr@gnu.org>
16402
16403 * w32font.c (QCsubranges): New symbol.
16404 (w32font_open, w32font_has_char): Get subranges from subproperty
16405 of extra.
16406 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16407 (syms_of_w32font): Define :subranges symbol.
16408
16409 * font.c (font_put_extra): Expose externally.
16410
16411 * font.h (font_put_extra): Move declaration from font.c.
16412
16413 * font.c (Ffont_get): Use font driver to determine otf capability.
16414 (adjust_anchor): Check if driver defines anchor_point before using.
16415
16416 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16417 (w32font_draw): Use options.
16418 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16419 Fix detection of truetype fonts.
16420 (registry_to_w32_charset): Handle charsets other than iso8859-1
16421 expressed as lisp symbols.
16422 (w32_registry): Express charset as lisp symbol.
16423 (fill_in_logfont): Reverse pixel and point height logic.
16424 Don't set width here. Set quality to default.
16425
16426 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16427 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16428
16429 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16430 Remove redundant loop and allocation.
16431
16432 * makefile.w32-in (font.o, w32font.o): New objects.
16433 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16434 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16435
16436 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16437 STORE_XCHARB a valid l-value.
16438
16439 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16440 calculations for non-Truetype fonts.
16441 (x_draw_glyph_string): Sync with xterm.c.
16442 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16443 Remove redundant code.
16444 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16445
16446 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16447 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16448
16449 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16450 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16451
16452 * w32font.c: New file for w32 font backend.
16453
16454 2008-02-01 Kenichi Handa <handa@m17n.org>
16455
16456 * term.c: Don't include "buffer.h" twice.
16457
16458 2008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * character.c (Funibyte_string): New function.
16461 (syms_of_character): Defsubr it.
16462
16463 2008-02-01 Jason Rumney <jasonr@gnu.org>
16464
16465 * w32term.c [USE_FONT_BACKEND]:
16466 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16467 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16468 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16469 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16470 (x_free_frame_resources): Sync with xterm.c.
16471
16472 2008-02-01 Andreas Schwab <schwab@suse.de>
16473
16474 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16475 char-table size.
16476
16477 2008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16480
16481 2008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16484 font_otf_gpos, add font_drive_otf.
16485
16486 * fontset.c (fontset_find_font): Pay attention to font size
16487 specified for a font.
16488 (reorder_font_vector): Check contents of font_def.
16489
16490 * font.c (struct otf_list): Delete it.
16491 (otf_list): Make it a lisp variable.
16492 (otf_open): Use lispy otf_list.
16493 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16494 (check_otf_features): New function.
16495 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16496 New functions.
16497 (font_drive_otf): New function merging font_otf_gsub and
16498 font_otf_gpos.
16499 (font_open_for_lface): New arg spec. Change argument order.
16500 (font_load_for_face): Adjust for the change of font_open_for_lface.
16501 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16502 Ffont_otf_gpos.
16503 (syms_of_font): Staticpro otf_list. Delete defsubr of
16504 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16505
16506 * xfaces.c (set_font_frame_param): Adjust for the change of
16507 font_open_for_lface.
16508
16509 * font.h (font_open_for_lface): Adjust prototype.
16510 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16511 member otf_drive.
16512 (font_otf_gsub, font_otf_gpos): Delete externs.
16513 (font_drive_otf): Extern it.
16514
16515 2008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * font.c (font_at): If the window W is not on a window system,
16518 return Qnil.
16519
16520 * coding.c (produce_chars, encode_coding): Don't call
16521 insert_from_gap if no characters to produce.
16522
16523 2008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16526 Fclear_face_cache.
16527
16528 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16529
16530 2008-02-01 Miles Bader <miles@gnu.org>
16531
16532 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16533 Parse "--disable-font-backend" option.
16534 (standard_args): Add "--disable-font-backend" option.
16535
16536 2008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * fontset.c (fontset_find_font): New function.
16539 (fontset_font): Use fontset_find_font.
16540 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16541 Register the specified font for all Latin characters.
16542 (new_fontset_from_font): Register the specified font for all Latin
16543 characters.
16544 (dump_fontset): For a realized fontset, include the base fontset
16545 name in the returned vector.
16546
16547 2008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * character.h (CHAR_STRING): Cast C to unsigned on calling
16550 char_string.
16551
16552 * character.c (char_string): Type of arg C changed to unsigned.
16553 Signal an error if C is an invalid character code.
16554
16555 * editfns.c (general_insert_function, Fchar_to_string):
16556 Use CHARACTERP, not INTEGERP.
16557
16558 2008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16561 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16562
16563 * regex.c (analyse_first): Fix for multibyte characters in "case
16564 charset:" and "case categoryspec:".
16565
16566 2008-02-01 Andreas Schwab <schwab@suse.de>
16567
16568 * Makefile.in (LIBES): Move standard libraries to the end.
16569
16570 2008-02-01 Kenichi Handa <handa@m17n.org>
16571
16572 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16573 nonzero, don't shrink the buffer nextb.
16574
16575 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16576
16577 * coding.c (coding_alloc_by_making_gap): New arg offset.
16578 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16579 offset.
16580 (decode_coding_iso_2022): Update coding->safe_charsets.
16581 (decode_coding_gap): Temporarily set
16582 current_buffer->text->inhibit_shrinking to 1.
16583
16584 2008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16587 indexing into elements of s->cmp and s->char2b.
16588
16589 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
16590
16591 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16592
16593 2008-02-01 Kenichi Handa <handa@m17n.org>
16594
16595 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16596 target_multibyte instead of multibyte.
16597 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16598 (bcmp_translate): Change the argument name from multibyte to
16599 target_multibyte.
16600
16601 2008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 These changes are to compile a regexp into a pattern that can be
16604 used both for multibyte and unibyte targets.
16605
16606 * Makefile.in (search.o): Depend on charset.h.
16607
16608 * character.c (multibyte_char_to_unibyte_safe): New function.
16609
16610 * search.c: Include "charset.h".
16611 (compile_pattern_1): Delete argument multibyte. Don't set
16612 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16613 (compile_pattern): Don't compare cp->buf.target_multibyte.
16614 Compare cp->buf.charset_unibyte.
16615 (compile_pattern): Set cp->buf.target_multibyte.
16616
16617 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16618
16619 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16620
16621 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16622 multibyte. Change callers.
16623 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16624 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16625 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16626 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16627 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16628 (regex_compile): Make the compiled pattern usable both for
16629 multibyte and unibyte targets.
16630 (analyse_first): Make the fastmap usable both for multibyte and
16631 unibyte targets.
16632 (TRANSLATE_VIA_MULTIBYTE): Delete.
16633 (re_match_2_internal): Pay attention to the case that the
16634 multibyteness of bufp and target may be different.
16635
16636 2008-02-01 Kenichi Handa <handa@m17n.org>
16637
16638 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16639 empty box occupy at least one column width.
16640
16641 2008-02-01 Miles Bader <miles@gnu.org>
16642
16643 * Makefile.in: Remove redundant HAVE_XFT clause.
16644
16645 2008-02-01 Kenichi Handa <handa@m17n.org>
16646
16647 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16648
16649 2008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16652 being nil.
16653
16654 2008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16657
16658 2008-02-01 Kenichi Handa <handa@m17n.org>
16659
16660 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16661
16662 2008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * search.c (simple_search): Fix previous change.
16665
16666 2008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * xftfont.c (ftfont_font_format): Extern declaration.
16669
16670 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16671
16672 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16673 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16674
16675 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16676 (ftfont_font_format): Fix previous change.
16677
16678 * font.h (Ffont_xlfd_name): EXFUN it.
16679
16680 * font.c (font_parse_xlfd): Fix the array size of `f'.
16681 (register_font_driver): Use EQ to compare driver->type.
16682
16683 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16684 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16685 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16686
16687 2008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16690 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16691
16692 2008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * xfont.c (xfont_open): Set font->format.
16695
16696 * xftfont.c (xftfont_open): Set font->format.
16697
16698 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16699 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16700 (ftfont_open): Set font->format.
16701 (ftfont_font_format): New function.
16702
16703 * font.h (struct font): New member format.
16704
16705 * font.c (Qopentype): New variable.
16706 (syms_of_font): Defsym it.
16707 (Fquery_font): Change the format of the last element of the return
16708 value.
16709
16710 2008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16713 last resort.
16714
16715 2008-02-01 Kenichi Handa <handa@m17n.org>
16716
16717 * coding.c (detect_coding_charset): Fix detection of multi-byte
16718 charset.
16719
16720 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16721
16722 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16723
16724 2008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * xdisp.c (get_next_display_element): Set it->face_id for the
16727 first component of a composition.
16728 (x_produce_glyphs): Check if the font is changed or not for composition.
16729
16730 2008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * fontset.c (Qlatin): New variable.
16733 (syms_of_fontset): Define it as a lisp symbol.
16734 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16735
16736 2008-02-01 Kenichi Handa <handa@m17n.org>
16737
16738 * font.c (font_unparse_fcname): Pay attention to the case that
16739 some of font property is a null string.
16740
16741 2008-02-01 Kenichi Handa <handa@m17n.org>
16742
16743 * term.c: Include "composite.h".
16744 (encode_terminal_code): Output all components of composition.
16745 Check the size of encode_terminal_src.
16746 (produce_glyphs): For composition, call produce_composite_glyph.
16747 (append_composite_glyph, produce_composite_glyph): New functions.
16748
16749 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16750 is not found, get font_info from the current ascii face.
16751
16752 2008-02-01 Kenichi Handa <handa@m17n.org>
16753
16754 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16755 buffer-file-name to Qnil before calling insert_from_buffer.
16756
16757 * font.c (font_unparse_fcname): Pay attention to the case that
16758 foundry is a null string.
16759
16760 2008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16763
16764 * font.c (Qunicode_sip): New variable.
16765 (syms_of_font): Declare it as a Lisp symbol.
16766
16767 * font.h (Qunicode_sip): Extern it.
16768
16769 2008-02-01 Kenichi Handa <handa@m17n.org>
16770
16771 * composite.c (get_composition_id): Pay attention to TAB component.
16772
16773 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16774 TAB. Adjust for the change of s->char2b which always points to
16775 the first element of allocated memory.
16776
16777 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16778
16779 * xdisp.c (handle_composition_prop): Set it->c to the first
16780 non-TAB component.
16781 (fill_composite_glyph_string): Change argument.
16782 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16783 (x_produce_glyphs): Fix handling of left/right padding.
16784
16785 2008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * coding.c (detect_coding_system): Fix for handling off
16788 inhibit_iso_escape_detection. Fix for the case that no coding
16789 system is defined for a specific coding category.
16790
16791 2008-02-01 Kenichi Handa <handa@m17n.org>
16792
16793 * font.c (font_matching_entity): Delete unused local var.
16794
16795 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16796 opening a font.
16797
16798 * fileio.c (Finsert_file_contents): On recovering a file, assume
16799 Unix-like eol.
16800 (choose_write_coding_system): On auto-saving a file, force
16801 Unix-like eol.
16802
16803 * coding.c (setup_coding_system): Fix setting of
16804 coding->common_flags based on eol_type.
16805 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16806 inherit from it.
16807
16808 2008-02-01 Kenichi Handa <handa@m17n.org>
16809
16810 * alloc.c (NSTATICS): Increas to 0x600.
16811
16812 2008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16815 (ftfont_list): Don't check :name property.
16816 (ftfont_match): New function.
16817 (ftfont_pattern_entity): If the pattern doesn't contain
16818 FC_SPACING, don't assume FC_MONO.
16819
16820 * font.h (struct font_driver): New member `match'.
16821 (font_update_drivers): Adjust prototype.
16822
16823 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16824 property of FONT.
16825 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16826 them unconditionally.
16827 (font_matching_entity): New function.
16828 (font_open_by_name): Try font_matching_entity if exact match is
16829 not found.
16830 (font_update_drivers): Delete the arg FONT. Return a list of
16831 actually used backends. Don't free faces, font caches here.
16832 Don't store data in frame parameters. Don't call x_set_font.
16833 (Ffont_spec): Store :name property as is.
16834 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16835 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16836 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16837 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16838 Call font->driver->otf_gsub instead of font_otf_gsub.
16839
16840 * frame.c (x_set_font_backend): Do more works that were done in
16841 font_update_drivers before.
16842
16843 * xfont.c (xfont_match): New function.
16844 (xfont_driver): Set xfont_driver.match to xfont_match.
16845 (xfont_draw): Set font in GC if necessary.
16846
16847 * ftxfont.c (ftxfont_match): New function.
16848 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16849
16850 * xftfont.c (xftfont_match): New function.
16851 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16852
16853 2008-02-01 Kenichi Handa <handa@m17n.org>
16854
16855 * font.h (struct font): New member scalable.
16856 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16857 (font_otf_gsub): Adjust prototype.
16858
16859 * font.c (font_otf_capability): Fix handling of the default langsys.
16860 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16861 Check the contents of SPEC.
16862 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16863 (check_gstring): New function.
16864 (REPLACEMENT_CHARACTER): New macro.
16865 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16866 glyph codes of GSTRING.
16867 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16868 (font_prepare_composition): Set cmp->glyph_len.
16869 (font_open_entity): Set font->scalable.
16870 (Ffont_get): Handle :otf property.
16871 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16872 functions.
16873 (Fquery_font): Use font->font.full_name.
16874 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16875 Sfont_otf_alternates.
16876
16877 * ftfont.c (ftfont_open): Set font->font.full_name and
16878 font->font.name properly. Fix calculation of font->font.height
16879 and font->min_width.
16880
16881 * ftxfont.c (ftxfont_create_gcs): New function.
16882 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16883 (ftxfont_draw_backgrond): Fix filling region.
16884 (ftxfont_default_fid): New function.
16885 (ftxfont_open): Set xfont->fid to the return value of
16886 ftxfont_default_fid.
16887 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16888 (ftxfont_done_face): Free only GCs that are created by
16889 ftxfont_create_gcs.
16890 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16891
16892 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16893 Clip to src->width, etc (not src->clip_XXX).
16894
16895 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16896 FontBackend frame parameter.
16897
16898 2008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * font.h (struct font_driver_list): New member `on'.
16901 (Fclear_font_cache): EXFUN it.
16902 (font_update_drivers): Extern it.
16903
16904 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16905 (font_list_entities): Check driver_list->on.
16906 (register_font_driver): Initalize `on' member to 0.
16907 (font_update_drivers): New function.
16908 (Fclear_font_cache): Check driver_list->on.
16909
16910 * frame.h (Qfont_backend): Extern it.
16911 (x_set_font_backend): Extern it.
16912
16913 * frame.c (Qfont_backend): New variable.
16914 (frame_parms): New element for font-backend.
16915 (x_set_font_backend): New function.
16916
16917 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16918 FontBackend frame parameter.
16919 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16920 x_set_font_backend.
16921
16922 * xfont.c (xfont_list): Don't try listing by :name property if the
16923 name is not for XLFD.
16924
16925 2008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16928 (LGLYPH_SET_TO): New macros.
16929 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16930 element of G is vector or not.
16931 (font_at): Extern it.
16932
16933 * font.c: Include window.h.
16934 (font_lispy_object): New function.
16935 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16936 end of valid glyph.
16937 (font_close_object): Fix getting (struct font *).
16938 (font_at): New function.
16939 (Ffont_get): If FONT is a font-object, get entity from it.
16940 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16941 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16942 range check.
16943 (Ffont_at): New function.
16944 (syms_of_font): Defsubr Sfont_at.
16945
16946 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16947 before the entry for Qcomposition.
16948 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16949 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16950 the font in gstring.
16951 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16952 LGLYPH_FORM (g) to detect the end of valid glyph.
16953 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16954 we are composing with gstring.
16955
16956 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16957 Check if adjustment is vector or not.
16958
16959 * Makefile.in (font.o): Make it depends on window.h.
16960
16961 2008-02-01 Kenichi Handa <handa@m17n.org>
16962
16963 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16964 adjustment is vector or not.
16965
16966 2008-02-01 Miles Bader <miles@gnu.org>
16967
16968 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16969
16970 2008-02-01 Kenichi Handa <handa@m17n.org>
16971
16972 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16973 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16974 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16975
16976 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16977 (DEVICE_DELTA): Fix typo.
16978 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16979 LGLYPH format.
16980
16981 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16982 the change of LGLYPH format.
16983
16984 2008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * ftfont.c (ftfont_list): Fix typo.
16987 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16988
16989 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16990
16991 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16992
16993 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16994 xftface_info is non-NULL.
16995
16996 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16997
16998 * ftfont.c (ftfont_list): Move misplaced #endif.
16999
17000 2008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * ftfont.c (ftfont_list): Pay attention to the case that
17003 FC_CAPABILITY is not defined.
17004
17005 2008-02-01 Kenichi Handa <handa@m17n.org>
17006
17007 * xftfont.c (xftfont_open): Set charset related members to -1.
17008
17009 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
17010 QCname.
17011 (ftfont_open): Set charset related members to -1.
17012
17013 * fontset.c (Votf_script_alist): New variable.
17014 (syms_of_fontset): Initialize it.
17015 (fontset_font): Delete unused variable.
17016
17017 * fontset.h (Votf_script_alist): Extern it.
17018
17019 * font.c (font_find_for_lface): Optimize code.
17020
17021 * font.h (font_close_object, font_merge_old_spec): Extern them.
17022
17023 2008-02-01 Kenichi Handa <handa@m17n.org>
17024
17025 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17026 (syms_of_font): Initialize them.
17027 (font_pixel_size): Allow float value in dpi.
17028 (font_prop_validate_type): Delete.
17029 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17030 Change caller.
17031 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17032 (font_prop_validate_extra): Delete.
17033 (font_prop_validate_spacing): New function.
17034 (font_property_table): Add elements for all known properties.
17035 (get_font_prop_index): Rename from check_font_prop_name. New
17036 argument FROM. Change caller.
17037 (font_prop_validate): Validate all known properties.
17038 (font_put_extra): Delete argument force. Change caller.
17039 (font_expand_wildcards): Make it static. Fix the way of shrinking
17040 the possible range.
17041 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17042 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17043 Change caller.
17044 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17045 (font_parse_fcname): Delete argument merge. Fix parsing of point
17046 size. Don't validate properties values here. Change caller.
17047 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17048 (font_open_by_name): Delete unused variable.
17049 (Ffont_spec): Likewise. Validate property values.
17050 (Ffont_match_p): New function.
17051
17052 * font.h (QCscalable): Extern it.
17053 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17054
17055 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17056
17057 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17058 (xfont_list_pattern): New function.
17059 (xfont_list): Use xfont_list_pattern.
17060
17061 2008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * font.h (Flist_fonts): EXFUN it.
17064
17065 2008-02-01 Jason Rumney <jasonr@gnu.org>
17066
17067 * w32term.c (w32_initialize): Add back smoothing_type and
17068 smoothing_enabled definitions.
17069
17070 2008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17073 s->face->font on determining underline position.
17074
17075 2008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17078 (font_has_char): Accept font-object too.
17079 (font_find_for_lface): Try at first with a size specified in face.
17080
17081 2008-02-01 Kenichi Handa <handa@m17n.org>
17082
17083 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17084 font_open_by_name.
17085
17086 2008-02-01 Kenichi Handa <handa@m17n.org>
17087
17088 * font.h (QCspacing, QCdpi): Extern them.
17089 (enum font_spacing): New enum.
17090 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17091
17092 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17093 (QCspacing, QCdpi): New variables.
17094 (syms_of_font): Initialize them.
17095 (font_pixel_size): New function.
17096 (font_put_extra): New function.
17097 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17098 in FONT_EXTRA.
17099 (font_parse_fcname): Handle enumerated values (e.g. bold).
17100 Fix handling font size. Add QCname property that contains only
17101 unknown properties.
17102 (font_score): Change argument. Change caller. Pay attention to
17103 FONT_PIXEL_SIZE_QUANTUM.
17104 (font_sort_entites, font_list_entities, font_find_for_lface)
17105 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17106 (Ffont_spec): Add QCname property that contains only unknown properties.
17107
17108 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17109 include weight in listing pattern, instead check weight of each
17110 listed font. Don't include scalable in pattern. Pay attention to
17111 FONT_PIXEL_SIZE_QUANTUM.
17112
17113 2008-02-01 Kenichi Handa <handa@m17n.org>
17114
17115 * font.c (font_parse_fcname): Fix parsing of point-size.
17116 (font_unparse_fcname): Produce symbolic names for style properties.
17117 (font_list_entities): Handle float size correctly.
17118 (font_open_by_name): Prefer `normal' property values if the name
17119 doesn't specify them.
17120
17121 * fontset.c (Finternal_char_font): Use font_get_name, not
17122 Ffont_xlfd_name.
17123
17124 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17125 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17126 pattern. Don't force scalable.
17127
17128 * xftfont.c (xftfont_open): For generating a name, start from
17129 96-byte buffer.
17130
17131 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17132
17133 * frame.h (x_new_fontset2): Fix prototype.
17134
17135 2008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * font.h (struct font_driver): Delete member parse_name.
17138 (font_match_p, font_get_spec, font_parse_fcname)
17139 (font_unparse_fcname): Extern them.
17140 (font_get_name): Adjust prototype.
17141
17142 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17143 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17144 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17145 unnecessary checks for weight, slant, and swidth.
17146 (font_parse_fcname): New function.
17147 (font_unparse_fcname): New function.
17148 (font_parse_name): New function.
17149 (font_match_p): New function.
17150 (font_get_name): Change return value to Lisp string.
17151 (font_get_spec): New function.
17152 (Qunspecified, Qignore_defface): Don't extern them.
17153 (font_find_for_lface): Assume that LFACE is fully specified.
17154 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17155 object, use it for FACE.
17156 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17157 driver->parse_name.
17158 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17159
17160 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17161 prototype.
17162
17163 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17164 argument F. Don't call Fnew_fontset. Instead, directly call
17165 make_fontset.
17166
17167 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17168
17169 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17170 of x_new_fontset2.
17171
17172 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17173 (Qsans__serif): New variables.
17174 (ftfont_generic_family_list): New variable.
17175 (syms_of_ftfont): Initialize the above variables.
17176 (ftfont_pattern_entity): Delete argument NAME.
17177 (ftfont_list_generic_family): New function.
17178 (ftfont_parse_name): Delete this function.
17179 (ftfont_list): Try generic family only when FcFontList found no font.
17180 (ftfont_list_family): Fix args to FcObjectSetBuild.
17181
17182 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17183 object in attrs[LFACE_FONT_INDEX].
17184 (set_lface_from_font_name): Cancel all changes for font-backend.
17185 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17186 function.
17187 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17188 font object in QCfont attribute.
17189 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17190 (realize_default_face) [USE_FONT_BACKEND]: Call
17191 set_lface_from_font_and_fontset.
17192
17193 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17194 "fixed", and signal error here if no suitable font was found.
17195
17196 * xfont.c (xfont_parse_name): Delete this function.
17197
17198 * xftfont.c (xftfont_open): Change coding style of error
17199 handling. Generate fontconfig's fontname pattern.
17200
17201 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17202 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17203
17204 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17205 Both args FONTSET and FONT_OBJECT must be existing ones.
17206
17207 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17208
17209 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17210
17211 2008-02-01 Kenichi Handa <handa@m17n.org>
17212
17213 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17214
17215 * font.h (struct font): Fix typo.
17216
17217 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17218 XLFD_XXX_INDEX.
17219 (enum xlfd_field_mask): New enum.
17220 (intern_font_field): Changed argument. Change caller. If digits
17221 are followed by non-digits, return a symbol.
17222 (font_expand_wildcards): New function.
17223 (font_parse_xlfd): Fix wildcard handling.
17224 (Ffont_spec): If :name is specified, reflect the info in the other
17225 properties.
17226
17227 * ftfont.c (ftfont_pattern_entity): Fix typo.
17228 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17229 locale.
17230
17231 2008-02-01 Kenichi Handa <handa@m17n.org>
17232
17233 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17234
17235 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17236 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17237 registry doesn't specify encoding part.
17238 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17239 (font_open_by_name): At first try parsing the name.
17240 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17241 as Lisp symbols.
17242
17243 * fontset.c (reorder_font_vector): Pay attention to the case that
17244 the 3rd element of font_def is nil.
17245 (fontset_font): For the default fontset, append one more fontset
17246 elements for a script-based font specification. Don't add script
17247 attribute on finding a font.
17248 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17249 font name.
17250 (fontset_ascii_font): If a font can't be opened, return nil.
17251
17252 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17253 (ftfont_pattern_entity): New function.
17254 (ftfont_get_cache): Assume that freetype_font_cache is already
17255 initialized.
17256 (ftfont_list): Handle the case that a file is specified in font
17257 name. Use ftfont_pattern_entity to generate entities.
17258 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17259 (syms_of_ftfont): Initialize freetype_font_cache.
17260
17261 * xftfont.c (xftfont_open): Make the font name fontconfig's
17262 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17263 (xftfont_close): Free font->font.name if not NULL.
17264
17265 * xfont.c (xfont_list): If script is specified for a font, return
17266 null_vector.
17267 (xfont_list_family): Declare argument type.
17268
17269 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17270 name, set LFACE_FONT (lface) to nil.
17271
17272 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17273 return Qnil.
17274
17275 2008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17278 (standard_args): Add "-enable-font-backend".
17279
17280 2008-02-01 Kenichi Handa <handa@m17n.org>
17281
17282 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17283 (struct xftdraw_list, xftdraw_list): Delete them.
17284 (register_xftdraw, check_xftdraw): Delete them.
17285 (xftfont_prepare_face): Don't call register_xftdraw.
17286 (xftfont_done_face): Don't call check_xftdraw.
17287 (xftfont_draw): Get background color only when with_background is
17288 nonzero.
17289
17290 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17291
17292 2008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 These changes are for the new font handling codes.
17295
17296 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17297 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17298 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17299 (FONTSRC, FONTOBJ): New variables.
17300 (obj): Add $(FONTOBJ).
17301 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17302 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17303 @LIBOTF_LIBS@.
17304 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17305 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17306
17307 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17308
17309 * character.h (Vscript_representative_chars): Extern it.
17310
17311 * character.c (Vscript_representative_chars): New variable.
17312 (syms_of_character): Declare it as a Lisp variable.
17313
17314 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17315 enable_font_backend is nonzero, accept the composition method
17316 COMPOSITION_WITH_GLYPH_STRING.
17317
17318 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17319 enumeration COMPOSITION_WITH_GLYPH_STRING.
17320
17321 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17322 members clip_x, clip_y, clip_width, and clip_height.
17323 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17324
17325 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17326 --enable-font-backend. Call syms_of_font.
17327
17328 * fns.c (assoc_no_quit): New function.
17329
17330 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17331 (face_for_font, new_fontset_from_font)
17332 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17333
17334 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17335 (fontset_font, fontset_ascii, face_for_char)
17336 (make_fontset_for_ascii_face, Ffont_info)
17337 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17338 is nonzero, use font-backend mechanism.
17339 (find_font_encoding): Make it non-static.
17340 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17341 New functions.
17342
17343 * frame.h (struct frame): New members resx and resy.
17344 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17345 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17346
17347 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17348 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17349
17350 * lisp.h (assoc_no_quit): Extern it.
17351
17352 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17353 Through out the file, use FONT_INFO_FROM_FACE instead of
17354 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17355 rif->per_char_metric.
17356 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17357 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17358 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17359 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17360 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17361 nonzero, use font-backend mechanism.
17362 (get_per_char_metric): New function.
17363
17364 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17365 (set_lface_from_font_name)
17366 (set_font_frame_param, free_realized_face)
17367 (prepare_face_for_display, clear_face_gcs)
17368 (Finternal_set_font_selection_order, realize_x_face)
17369 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17370 font-backend mechanism.
17371 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17372 (load_face_font) [USE_FONT_BACKEND]: Abort.
17373 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17374 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17375
17376 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17377 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17378 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17379 nonzero, register all available font drivers. Call
17380 x_default_font_parameter for deciding a font.
17381 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17382
17383 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17384 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17385 (x_set_glyph_string_clipping_exactly)
17386 (x_compute_glyph_string_overhangs)
17387 (x_draw_glyph_string_foreground)
17388 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17389 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17390 enable_font_backend is nonzero, use font-backend mechanism.
17391 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17392
17393 2008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17396 system_eol_type.
17397 (syms_of_coding): Initialize system_eol_type.
17398
17399 * process.c (Fset_process_coding_system): Inherit system's eol
17400 format if necessary.
17401
17402 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17403
17404 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17405
17406 2008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * coding.c (decode_eol): Pay attention to buffer relocation in
17409 del_range_2.
17410 (decode_coding): Call decode_eol before restoring undo_list.
17411
17412 2008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * charset.c (Fdefine_charset_internal): Fix setting of
17415 emacs_mule_bytes.
17416
17417 2008-02-01 Kenichi Handa <handa@m17n.org>
17418
17419 * keyboard.c (read_char): Check if C is a character or not before
17420 looking up Vkeyboard_translate_table.
17421
17422 2008-02-01 Kenichi Handa <handa@m17n.org>
17423
17424 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17425 condition to terminate the loop.
17426
17427 2008-02-01 Kenichi Handa <handa@m17n.org>
17428
17429 * coding.c (produce_composition): Compare charbuf[i] instead of
17430 args[i] against 0.
17431 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17432
17433 2008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17436 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17437 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17438 detect_coding.
17439 (emacs_mule_char): Handle old style (Emacs 20) component character
17440 of a composition.
17441 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17442 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17443 composition rule.
17444 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17445
17446 2008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * coding.c (encode_coding_ccl): Allocate destination dynamically
17449 when necessary.
17450
17451 2008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17454 the loop. When quitted, show a proper error message.
17455
17456 2008-02-01 Kenichi Handa <handa@m17n.org>
17457
17458 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17459 src->clip_head and src->clip_tail temporarily instead of src->hl.
17460
17461 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17462 character sequence.
17463 (Fccl_execute_on_string): Use ASET, not XSET.
17464
17465 2008-02-01 Kenichi Handa <handa@m17n.org>
17466
17467 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17468
17469 2008-02-01 Kenichi Handa <handa@m17n.org>
17470
17471 * coding.c (decode_coding): Fix the condition of terminating the
17472 decoding loop.
17473
17474 2008-02-01 Kenichi Handa <handa@m17n.org>
17475
17476 * data.c (Faset): On setting a character bigger than 255 in a
17477 unibyte string, signal an error instead of make the string multibyte.
17478
17479 2008-02-01 Kenichi Handa <handa@m17n.org>
17480
17481 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17482 made by a mapping table.
17483
17484 2008-02-01 Kenichi Handa <handa@m17n.org>
17485
17486 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17487 not.
17488 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17489 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17490
17491 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17492 s->face is NULL or not.
17493
17494 2008-02-01 Kenichi Handa <handa@m17n.org>
17495
17496 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17497 (x_draw_glyph_string): Fix drawing of right_overhang and
17498 left_overhang around/on cursor.
17499
17500 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17501
17502 2008-02-01 Kenichi Handa <handa@m17n.org>
17503
17504 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17505
17506 2008-02-01 Kenichi Handa <handa@m17n.org>
17507
17508 * coding.c (Fdefine_coding_system_internal)
17509 (Fdefine_coding_system_alias): Avoid a duplicated element in
17510 Vcoding_system_alist.
17511
17512 2008-02-01 Kenichi Handa <handa@m17n.org>
17513
17514 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17515
17516 * coding.c (Qcoding_system_define_form): New variable.
17517 (syms_of_coding): Intern and staticpro it.
17518 (Fcoding_system_p): Check Qcoding_system_define_form.
17519 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17520
17521 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17522 Fcoding_system_p.
17523 (CHECK_CODING_SYSTEM): If ID is not available, call
17524 Fcheck_coding_system.
17525 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17526 Try also Fcheck_coding_system.
17527
17528 2008-02-01 Kenichi Handa <handa@m17n.org>
17529
17530 * coding.c (code_conversion_restore): GCPRO arg.
17531
17532 2008-02-01 Kenichi Handa <handa@m17n.org>
17533
17534 * character.c (lisp_string_width): Check multibyteness of STRING.
17535
17536 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17537
17538 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17539 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17540 (decode_mac_font_name): Use decode_coding_c_string instead of
17541 decode_coding.
17542 (x_load_font): Initialize fontp->fontset to -1. Set
17543 fontp->encoding_type.
17544
17545 2008-02-01 Kenichi Handa <handa@m17n.org>
17546
17547 * search.c (search_buffer): Give up BM search on case-fold-search
17548 if one of a target character has a case-equivalence of different
17549 byte length even if that target charcter is an ASCII.
17550 (simple_search): Fix calculation of byte length of matched text.
17551 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17552
17553 2008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * coding.c (decode_coding): Fix handling of invalid bytes.
17556
17557 2008-02-01 Kenichi Handa <handa@m17n.org>
17558
17559 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17560 Unicode characters.
17561
17562 2008-02-01 Kenichi Handa <handa@m17n.org>
17563
17564 * coding.c (encode_coding_object): If a pre-write-conversion
17565 function makes a new buffer, kill it.
17566
17567 2008-02-01 Kenichi Handa <handa@m17n.org>
17568
17569 * coding.c (QCascii_compatible_p): New variable.
17570 (syms_of_coding): Initialize it.
17571 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17572 calling string_char.
17573 (record_conversion_result): Add `default:' case.
17574 (coding_charset_list): Delete unused variable `coding_type'.
17575 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17576 property in the plist of the coding system.
17577 (Fcoding_system_put): Check QCascii_compatible_p.
17578
17579 2008-02-01 Miles Bader <miles@gnu.org>
17580
17581 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17582 removed calculation of frame `f', as it's now used.
17583
17584 2008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17587 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17588 (UNIDATA): New variable.
17589 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17590 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17591 $(RUN_TEMACS) unconditionally.
17592
17593 2008-02-01 Kenichi Handa <handa@m17n.org>
17594
17595 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17596 (admindir): New variable.
17597 ($(lispsource)international/charprop.el): New target.
17598
17599 2008-02-01 Miles Bader <miles@gnu.org>
17600
17601 * character.c (chars-in-region): Remove obsolete function.
17602 (syms_of_character): Remove its initialization.
17603
17604 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17605
17606 * w32select.c (validate_coding_system)
17607 (setup_windows_coding_system): New functions.
17608 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17609 setup_windows_coding_system.
17610 (setup_config, Fw32_get_clipboard_data): Use
17611 validate_coding_system.
17612 (Fx_selection_exists): Move call to setup_config to a place
17613 where signals are allowed.
17614
17615 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17616 (Fcheck_coding_system): Add declarations.
17617
17618 2008-02-01 Kenichi Handa <handa@m17n.org>
17619
17620 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17621
17622 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17623
17624 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17625 string as the second argument for x_new_fontset.
17626
17627 2008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17630 (encode_coding_object): Use safe_call instead of call2.
17631
17632 2008-02-01 Kenichi Handa <handa@m17n.org>
17633
17634 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17635
17636 * Makefile.in (lisp): Include charprop.el.
17637
17638 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17639
17640 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17641 Not sure if it's unnecessary.
17642
17643 2008-02-01 Steven Tamm <steventamm@mac.com>
17644
17645 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17646 some possibly unnecessary fontset checking code that crashed
17647 when creating a new frame.
17648
17649 2008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17652 lookup_face.
17653
17654 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17655
17656 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17657
17658 2008-02-01 Kenichi Handa <handa@m17n.org>
17659
17660 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17661 (coding_charset_list): New function.
17662
17663 * coding.h (coding_charset_list): Extern it.
17664
17665 2008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17668 concatenation of family and registry.
17669
17670 2008-02-01 Kenichi Handa <handa@m17n.org>
17671
17672 * character.h (BYTE8_STRING): Fix typo.
17673
17674 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17675 string to multibyte (sync to HEAD).
17676
17677 * casefiddle.c (casify_region): Handle changes in byte-length
17678 using replace_range_2 (sync to HEAD).
17679
17680 2008-02-01 Andreas Schwab <schwab@suse.de>
17681
17682 * chartab.c (map_char_table): GCPRO table and arg.
17683
17684 2008-02-01 Kenichi Handa <handa@m17n.org>
17685
17686 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17687 already at limit.
17688
17689 2008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17692 instead of fast_c_string_match_ignore_case.
17693 (find_font_encoding): Change argument to Lisp_Object. Use
17694 fast_string_match_ignore_case instead of
17695 fast_c_string_match_ignore_case. Change caller.
17696
17697 2008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * xdisp.c (get_next_display_element): In unibyte case, decide to
17700 display in octal form by checking a character by
17701 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17702
17703 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17704
17705 * character.c (unibyte_has_multibyte_table): New variable.
17706
17707 * character.h (unibyte_has_multibyte_table): Extern it.
17708 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17709
17710 2008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * coding.c (encode_coding_iso_2022): Fix handling of charset
17713 annotation.
17714
17715 2008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * coding.c (setup_coding_system): If coding_system is nil, use
17718 Qundecided.
17719 (Fterminal_coding_system): Return nil if terminal coding system is
17720 `undecided'.
17721 (syms_of_coding): Define coding-system `undecided' here. Setup
17722 terminal_coding as `undecided'.
17723
17724 2008-02-01 Kenichi Handa <handa@m17n.org>
17725
17726 * xdisp.c (message_dolog, set_message_1): Call
17727 unibyte_char_to_multibyte with arg type int.
17728
17729 * lread.c (read1): Fix reading of a char-table.
17730
17731 * print.c (print_object): Include sub char-table in circularities
17732 detection.
17733
17734 2008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17737 Append the found sequences in car of ARGS instead of prepending.
17738
17739 2008-02-01 Kenichi Handa <handa@m17n.org>
17740
17741 * fileio.c (report_file_error): Make a unibyte string from
17742 strerror (errorno).
17743 (Fsubstitute_in_file_name): Fix the arg to
17744 unibyte_char_to_multibyte. It is evaluated twice.
17745
17746 2008-02-01 Kenichi Handa <handa@m17n.org>
17747
17748 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17749
17750 2008-02-01 Kenichi Handa <handa@m17n.org>
17751
17752 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17753 BOM is not found.
17754 (detect_coding, detect_coding_system): Optimization for ISO-2022
17755 when no 8-bit data is found.
17756
17757 2008-02-01 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17760
17761 2008-02-01 Kenichi Handa <handa@m17n.org>
17762
17763 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17764 CHARS.
17765
17766 2008-02-01 Steven Tamm <steventamm@mac.com>
17767
17768 * macterm.c (mac_encode_char): Add charset argument and update
17769 to use encoding_type.
17770 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17771 switch to pure fontset.
17772 (decode_mac_font_name): Temporarily remove decoding.
17773 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17774 (x_load_font): Temporarily remove encoding.
17775
17776 2008-02-01 Kenichi Handa <handa@m17n.org>
17777
17778 * xfaces.c (Fface_font): If frame is not on a window system,
17779 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17780 refer to face->font.
17781 (split_font_name_into_vector, build_font_name_from_vector)
17782 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17783 when HAVE_WINDOW_SYSTEM is defined.
17784
17785 2008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17788 (x_produce_glyphs): Fix setting of members of cmp in case
17789 cmp->glyph_len is zero.
17790
17791 * fontset.c (Fset_fontset_font): Fix docstring.
17792 (Ffontset_info): Make it backward compatible. New arg ALL.
17793
17794 2008-02-01 Kim F. Storm <storm@cua.dk>
17795
17796 * process.c (read_process_output): Grow decoding_buf when needed;
17797 this could cause a crash in allocate_string and compact_small_strings.
17798
17799 2008-02-01 Kenichi Handa <handa@m17n.org>
17800
17801 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17802
17803 2008-02-01 Kenichi Handa <handa@m17n.org>
17804
17805 * coding.c (setup_coding_system): Set coding->common_flags
17806 correctly for raw-text.
17807 (consume_chars): On encoding unibyte text by raw-text, don't check
17808 multibyte form.
17809 (encode_coding): On encoding by raw-text, never use translation tables.
17810
17811 * fileio.c (e_write): Short cut for the case of no encoding.
17812
17813 2008-02-01 Kenichi Handa <handa@m17n.org>
17814
17815 * coding.c (detect_coding, detect_coding_system): Delete unused
17816 variables.
17817
17818 2008-02-01 Kenichi Handa <handa@m17n.org>
17819
17820 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17821 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17822
17823 2008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * coding.c (Ffind_coding_systems_region_internal): Include
17826 raw-text and no-conversion in the result.
17827
17828 2008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17831 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17832 FONT_DEF.
17833 (font_def_arg, add_arg, from_arg, to_arg): New args.
17834 (set_fontset_font): Change argument.
17835 (Fset_fontset_font): Fix for the case that TARGET is a script
17836 name and charset name.
17837 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17838
17839 2008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * fontset.c (fontset_font): Rename from fontset_face. Change return
17842 value.
17843 (face_suitable_for_char_p, face_for_char): Adjust for the change
17844 of fontset_font.
17845 (make_fontset_for_ascii_face): Fix setting of the fontset element
17846 for ASCII.
17847 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17848 to get a font name.
17849 (Ffontset_info): Adjust for the change of fontset_font.
17850
17851 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17852
17853 * character.h (LEADING_CODE_LATIN_1_MIN)
17854 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17855
17856 2008-02-01 Kenichi Handa <handa@m17n.org>
17857
17858 * editfns.c (check_translation): New function.
17859 (Ftranslate_region_internal): Handle M:N mapping.
17860
17861 2008-02-01 Kenichi Handa <handa@m17n.org>
17862
17863 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17864
17865 2008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17868 goto invalid_code.
17869 (decode_coding_iso_2022): Fix handling of invalid designation.
17870
17871 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17872 after calling code_conversion_save.
17873
17874 2008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17877
17878 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17879
17880 * fontset.c: Include "intervals.h".
17881 (fontset_face): Fix comparing of Lisp_Objects.
17882 (free_face_fontset, new_fontset_from_font_name): Fix
17883 Lisp_Object/int mixup.
17884
17885 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17886
17887 * coding.c: Add many prototypes for static functions.
17888 (get_translation_table): Allow max_lookup to be NULL.
17889 (decode_coding, Ffind_coding_systems_region_internal)
17890 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17891 get_translation_table with max_lookup NULL.
17892
17893 2008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * coding.c (get_translation_table): Declare it as Lisp_Object.
17896 (LOOKUP_TRANSLATION_TABLE): New macro.
17897 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17898 instead of CHAR_TABLE_REF.
17899
17900 2008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17903 annotation data format.
17904 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17905 Change arguments FROM and TO to single argument NCHARS. Change caller.
17906 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17907 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17908 (decode_coding_ccl, decode_coding_charset): Pay attention to
17909 coding->charbuf_used.
17910 (get_translation): New function.
17911 (produce_chars): New arguments translation_table and last_block.
17912 Translate characters here. Return number of carryover chars.
17913 Change caller.
17914 (produce_composition): New argument pos. Change caller.
17915 Adjust for the change of annotation data format.
17916 (produce_charset, produce_annotation): Likewise.
17917 (decode_coding, encode_coding): Don't call translate_chars.
17918 (consume_chars): New arg translation_table. Change caller.
17919 (translate_chars): Delete.
17920 (syms_of_coding): Make translation-table's number of extra slots 2.
17921
17922 2008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * search.c (simple_search): Fix setting this_pos_byte in backward
17925 search.
17926
17927 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17928 byte sequence.
17929 (detect_coding_ccl): Fix setting of the variable valids.
17930
17931 2008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17934
17935 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17936
17937 * editfns.c (Ftranslate_region_internal): Rename from
17938 Ftranslate_region. Accept a char-table in TABLE.
17939 (syms_of_editfns): Defsubr Stranslate_region_internal.
17940
17941 * xfaces.c (set_lface_from_font_name): If a font is specified for
17942 a frame, generate a fontset from the font.
17943 (build_scalable_font_name): If the scalable font is requested for
17944 a specific size, don't change that size.
17945 (try_font_list): Try a scalable font also in the case that a
17946 pattern string is specified.
17947
17948 2008-02-01 Kenichi Handa <handa@m17n.org>
17949
17950 * xfaces.c (Fface_font): New optional arg CHARACTER.
17951
17952 2008-02-01 Kenichi Handa <handa@m17n.org>
17953
17954 * charset.h (CHARSET_OFFSET): New macro.
17955
17956 2008-02-01 Kenichi Handa <handa@m17n.org>
17957
17958 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17959
17960 * fontset.c (fontset_face): Handle the case that repertory is a
17961 char-table.
17962 (find_font_encoding): Return nil for unknown encoding.
17963 (Fset_fontset_font): Ignore a font of unknown encoding.
17964
17965 2008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * keymap.c (describe_vector): Handle default value of a char table.
17968
17969 * fontset.c (fontset_face): Handle fallback fonts correctly.
17970 (Ffontset_info): Return infomation about fallback fonts.
17971
17972 2008-02-01 Kenichi Handa <handa@m17n.org>
17973
17974 * fontset.c (FONTSET_DEFAULT): New macro.
17975 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17976 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17977 the case that it is nil.
17978 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17979 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17980
17981 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17982 subset or superset.
17983
17984 2008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * emacs.c (main): Call init_charset after syms_of_XXX.
17987
17988 * charset.c (Vcharset_map_directory): Delete.
17989 (Vcharset_map_path): New variable.
17990 (load_charset_map_from_file): Use Vcharset_map_path instead.
17991 (init_charset): Initialize Vcharset_map_path.
17992 (syms_of_charset): Delete declaration of "charset-map-directory",
17993 add declaration of "charset-map-path".
17994
17995 2008-02-01 Kenichi Handa <handa@m17n.org>
17996
17997 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17998 ASCII only string.
17999
18000 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
18001
18002 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
18003 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
18004
18005 2008-02-01 Kenichi Handa <handa@m17n.org>
18006
18007 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
18008
18009 * coding.c (QCmnemonic, QCdefalut_char)
18010 (QCdecode_translation_table, QCencode_translation_table)
18011 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18012 (get_translation_table): Return a list of translation tables if
18013 necessary.
18014 (decode_coding): Call get_translation_table with ENCODEP 0.
18015 (char_encodable_p): If translation_table is non-nil, always call
18016 translate_char.
18017 (Fdefine_coding_system_internal): Accept list of translation
18018 tables as :encode-translation-table and :decode-translation-table.
18019 (Fcoding_system_put): New function.
18020 (syms_of_coding): Declare new symbols. Defsubr
18021 Scoding_system_put.
18022 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18023 typically JISX0212.
18024
18025 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18026 when the charset is superset type.
18027
18028 * character.c (translate_char): Accept list of translation tables.
18029
18030 2008-02-01 Kenichi Handa <handa@m17n.org>
18031
18032 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18033 (CODING_ATTR_TRANS_TBL): New macro.
18034
18035 * coding.c (get_translation_table): New function.
18036 (translate_chars): Fix the bug of skipping annotation data.
18037 (decode_coding, encode_coding): Utilize get_translation_table.
18038 (char_encodable_p, Funencodable_char_position): Translate char if
18039 necessary.
18040 (Ffind_coding_systems_region_internal)
18041 (Fcheck_coding_systems_region): Setup translation table for encode
18042 in a coding system attribute vector in advance.
18043 (Fdefine_coding_system_internal): Allow a symbol as translation
18044 table. For shift-jis type coding system, allow 4th charset.
18045
18046 2008-02-01 Kenichi Handa <handa@m17n.org>
18047
18048 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18049
18050 * xdisp.c (get_next_display_element): Pass -1 as POS to
18051 FACE_FOR_CHAR if displaying a C-string.
18052
18053 2008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * composite.c (get_composition_id): Handle xoff and yoff in a
18056 composition rule.
18057
18058 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18059 (struct composition): New member lbearing and rbearing.
18060
18061 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18062 (x_get_glyph_overhangs): Handle a composition glyph.
18063 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18064
18065 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18066 composition glyph.
18067
18068 2008-02-01 Kenichi Handa <handa@m17n.org>
18069
18070 * print.c: Include charset.h.
18071 (Vprint_charset_text_property): New variable.
18072 (Qdefault): Extern it.
18073 (PRINT_STRING_NON_CHARSET_FOUND)
18074 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18075 (print_check_string_result): New variable.
18076 (print_check_string_charset_prop): New function.
18077 (print_prune_charset_plist): New variable.
18078 (print_prune_string_charset): New function.
18079 (print_object): Call print_prune_string_charset if
18080 Vprint_charset_text_property is not t.
18081 (print_interval): Print nothing if interval->plist is nil.
18082 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18083 variable. Init and staticpro print_prune_charset_plist.
18084
18085 2008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * fontset.c (new_fontset_from_font_name): Use the specified font
18088 for all characters in the new fontset.
18089
18090 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18091 OBJECT args.
18092
18093 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18094 OBJECT args for composition too.
18095
18096 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18097 OBJECT args.
18098
18099 2008-02-01 Kenichi Handa <handa@m17n.org>
18100
18101 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18102
18103 * fontset.c (reorder_font_vector): Adjust for the change of
18104 FONT_DEF format.
18105 (fontset_face): New arg id. Change caller.
18106 (face_for_char): New args pos and object.
18107 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18108 (fs_query_fontset): Check NAME by Fassoc too.
18109 (Fset_fontset_font): Allow non-XLFD font name.
18110 (Ffontset_info): Adjust for the change of FONT_DEF format.
18111
18112 * fontset.h (face_for_char): Adjust prototype.
18113
18114 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18115 (append_space, extend_face_to_end_of_line)
18116 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18117 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18118
18119 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18120 POS and OBJECT args.
18121
18122 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18123 POS and OBJECT args.
18124
18125 2008-02-01 Jason Rumney <jasonr@gnu.org>
18126
18127 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18128 of GlobalAlloc'ed memory.
18129
18130 2008-02-01 Kenichi Handa <handa@m17n.org>
18131
18132 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18133
18134 * charset.h (charset_table_used): Delete extern.
18135
18136 * charset.c (charset_table_used): Make it static.
18137 (map_charset_chars): Fix args to c_function with.
18138
18139 * chartab.c (map_sub_char_table_for_charset): Fix args to
18140 c_function with.
18141
18142 * coding.h (enum coding_result_code): Delete
18143 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18144
18145 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18146 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18147 (Vlast_code_conversion_error): New variables.
18148 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18149 (ONE_MORE_BYTE): Record error if any instead of signaling an
18150 error. If non-ASCII multibyte char is found, return the negative
18151 value of the code. All callers changed to check it.
18152 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18153 (record_conversion_result): New function. Change all codes setting
18154 coding->result to call this function.
18155 (detect_coding_utf_8, decode_coding_utf_8)
18156 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18157 Don't use the local variable incomplete.
18158 (emacs_mule_char): Change the second arg to `const'.
18159 (decode_coding): Fix of flushing out unprocessed data.
18160 (make_conversion_work_buffer): Fix making of a work buffer.
18161 (decode_coding_object): Return coding->dst_object.
18162
18163 * fontset.c (set_fontset_font): Fix args.
18164
18165 * lisp.h (CHARACTERBITS): Define as 22.
18166
18167 * process.c (send_process): Be sure to set coding->src_multibyte.
18168
18169 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18170
18171 2008-02-01 Kenichi Handa <handa@m17n.org>
18172
18173 * xdisp.c (handle_auto_composed_prop): Give limit to
18174 Fnext_single_char_property_change.
18175
18176 2008-02-01 Kenichi Handa <handa@m17n.org>
18177
18178 * composite.c (syms_of_composite): Don't make the composition hash
18179 table weak.
18180
18181 * fontset.c (Fset_fontset_font): Fix docstring.
18182
18183 * lisp.h (detect_coding_system): Adjust prototype.
18184
18185 * fileio.c (kill_workbuf_unwind): Delete this function.
18186 (Finsert_file_contents): Adjust the call of detect_coding_system.
18187 Get conversion_buffer by code_conversion_save. Use the macro
18188 CODING_MAY_REQUIRE_DECODING. After decoding, update
18189 coding_system.
18190
18191 * coding.h (make_conversion_work_buffer): Delete extern.
18192 (code_conversion_save): Extern it.
18193
18194 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18195 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18196 (decode_coding_utf_8): Don't do eol converion.
18197 (detect_coding_utf_16): Check coding->src_chars, not
18198 coding->src_bytes. Add heuristics for those that have no signature.
18199 (decode_coding_emacs_mule, decode_coding_iso_2022)
18200 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18201 Don't do eol converion.
18202 (adjust_coding_eol_type): Return a new coding system.
18203 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18204 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18205 each change.
18206 (decode_coding): Pay attention to undo_list. Do eol conversion for
18207 all types of coding-systems (if necessary).
18208 (Vcode_conversion_work_buf_list): Delete it.
18209 (Vcode_conversion_reused_workbuf): Rename from
18210 Vcode_conversion_reused_work_buf.
18211 (Vcode_conversion_workbuf_name): New variable.
18212 (reused_workbuf_in_use): New variable.
18213 (make_conversion_work_buffer): Delete the arg DEPTH.
18214 (code_conversion_restore): Change argument to cons.
18215 (code_conversion_save): Delete the argument BUFFER. Change callers.
18216 (detect_coding_system): New argument src_chars. Change callers.
18217 Fix for utf-16 detection.
18218 (init_coding_once): Don't use ISO_carriage_return.
18219 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18220 reused_workbuf_in_use.
18221
18222 2008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * keymap.c (store_in_keymap): Pay attention to the case that idx
18225 is a cons specifying a character range.
18226
18227 2008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18230 HANDLED_RECOMPUTE_PROPS.
18231
18232 * coding.c (Fdefine_coding_system_internal): Fix checking of
18233 ascii compatibility.
18234
18235 2008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 * charset.c (find_charsets_in_text): Delete unused locale variable.
18238 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18239
18240 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18241 Resync charset_list to Vemacs_mule_charset_list.
18242
18243 * keymap.c (store_in_keymap): Pay attention to the case that idx
18244 is a cons specifying a character range.
18245
18246 2008-02-01 Kenichi Handa <handa@m17n.org>
18247
18248 * composite.c (update_compositions): Bind inhibit-read-only, etc
18249 to t before calling remove-list-of-text-properties.
18250
18251 * print.c (print_object): Always print ASCII chars as is.
18252
18253 2008-02-01 Kenichi Handa <handa@m17n.org>
18254
18255 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18256
18257 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18258 is a char table.
18259
18260 2008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18263
18264 2008-02-01 Kenichi Handa <handa@m17n.org>
18265
18266 * xfaces.c (set_lface_from_font_name): Fix for the case that
18267 FONTNAME is not fontset name.
18268
18269 2008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * fns.c (base64_encode_1): Fix previous change.
18272
18273 2008-02-01 Kenichi Handa <handa@m17n.org>
18274
18275 * fontset.c (set_fontset_font): New function.
18276 (Fset_fontset_font): If a font is specified for a charset, use
18277 map_charset_chars to store the font spec in a fontset.
18278
18279 2008-02-01 Kenichi Handa <handa@m17n.org>
18280
18281 * fontset.c (fontset_face): Create a fallback fontset on demand.
18282 (make_fontset): Don't create a fallback fontset here.
18283 (free_face_fontset): Free a fallback fontset (if any) too.
18284 (n_auto_fontsets): Delete this variable.
18285 (auto_fontset_alist): New variable.
18286 (new_fontset_from_font_name): Check auto_fontset_alist.
18287 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18288 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18289 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18290 Defsubr Sfontset_list_all.
18291
18292 2008-02-01 Kenichi Handa <handa@m17n.org>
18293
18294 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18295
18296 2008-02-01 Kenichi Handa <handa@m17n.org>
18297
18298 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18299
18300 2008-02-01 Kenichi Handa <handa@m17n.org>
18301
18302 * editfns.c (Fgoto_char): Fix docstring.
18303
18304 2008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * insdel.c (insert_from_gap): Adjust intervals correctly.
18307
18308 2008-02-01 Jason Rumney <jasonr@gnu.org>
18309
18310 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18311 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18312 (w32_initialize): Try to load it.
18313 (x_get_font_repertory): Use it if available.
18314 (w32_encode_char): Add shortcut for unicode output.
18315
18316 * w32fns.c (w32_load_system_font): Default charset to -1.
18317 (x_to_w32_charset): Match all fonts for unicode.
18318 (w32_to_x_charset): New parameter matching. Don't return partial
18319 or wildcard charsets.
18320 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18321 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18322 (w32_to_x_font): Match charset to real charset.
18323 (enum_font_cb2): Always list unicode versions.
18324
18325 * makefile.w32-in (temacs): Increase EMHEAP.
18326
18327 2008-02-01 Jason Rumney <jasonr@gnu.org>
18328
18329 * w32term.c (w32_encode_char): New charset parameter.
18330 font_info.encoding becomes encoding_type.
18331 (x_get_font_repertory): New function. Warning: stub only!
18332 (x_new_font): Return quickly if font already set.
18333 (x_new_fontset): fontsetname parameter is Lisp_Object.
18334 Use new fs_query_fontset. Try new_fontset_from_font_name.
18335 Use fontset_name for return value.
18336
18337 * w32term.h: Declare x_get_font_repertory.
18338
18339 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18340 place of find_charset_in_text. Use encode_coding_object in place
18341 of encode_coding.
18342 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18343 decode_coding.
18344
18345 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18346 of x_new_fontset.
18347 (w32_load_system_font): Initialize charset as unicode.
18348 font_info.encoding becomes encoding_type.
18349 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18350 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18351 (syms_of_w32fns): Set get_font_repertory_func.
18352
18353 * w32console.c: Include character.h. Use terminal_encode_buffer
18354 from term.c.
18355 (write_glyphs): Use new version of encode_terminal_code. Use
18356 encode_coding_object in place of encode_coding.
18357
18358 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18359 encoding becomes encoding_type.
18360
18361 * term.c (terminal_encode_buffer): Make externally visible.
18362
18363 * makefile.w32-in: Add character.h dependancies.
18364 (character.o, chartab.o): New targets.
18365
18366 2008-02-01 Kenichi Handa <handa@m17n.org>
18367
18368 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18369 CODING_ID_EOL_TYPE.
18370
18371 2008-02-01 Andreas Schwab <schwab@suse.de>
18372
18373 * coding.c (produce_chars): Revert last change.
18374
18375 2008-02-01 Kenichi Handa <handa@m17n.org>
18376
18377 * charset.h (charset_unicode): Extern it.
18378
18379 * charset.c (string_xstring_p): Check by (C >= 0x100).
18380 (find_charsets_in_text): Change format of the arc CHARSETS. New
18381 arg MULTIBYTE.
18382 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18383 change of find_charsets_in_text.
18384 (Fsplit_char): Fix doc. Never return unknown.
18385
18386 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18387
18388 * coding.c (Fdefine_coding_system_alias): Update
18389 Vcoding_system_list.
18390
18391 * fontset.c (load_font_get_repertory): Pay attention to the case
18392 that ENCODING of a font is specified by a char-table.
18393
18394 * xterm.c (x_get_font_repertory): Handle the case that the
18395 encoding of font is other than Unicode.
18396
18397 2008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18400 if a character is encodable by the terminal coding system. If
18401 not, produces proper number of `?'s. Update
18402 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18403 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18404
18405 2008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18408 variables.
18409 (encode_terminal_code): Change argument. Encode multiple
18410 characters at once. Store the result of encoding in
18411 terminal_encode_buffer.
18412 (write_glyphs, insert_glyphs): Adjust for the change of
18413 encode_terminal_code.
18414 (term_init): Initialize terminal_encode_buffer and
18415 terminal_encode_buf_size.
18416
18417 * coding.c (consume_chars): If coding->src_object is nil, don't
18418 check annotation.
18419
18420 2008-02-01 Kenichi Handa <handa@m17n.org>
18421
18422 * character.c (char_string): Use ASCII_CHAR_P instead of
18423 SINGLE_BYTE_CHAR_P.
18424
18425 2008-02-01 Kenichi Handa <handa@m17n.org>
18426
18427 * xdisp.c (handle_auto_composed_prop): Check if the last
18428 characters of auto-composed region is newly composed with the
18429 following characters.
18430 (handle_composition_prop): Fix checking of point being inside
18431 composition.
18432
18433 2008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * fns.c (concat): Don't change multibyteness of the result by
18436 concatenating an 8-bit character.
18437
18438 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18439 multibyteness of the result when newelt is an 8-bit character.
18440
18441 2008-02-01 Dave Love <fx@gnu.org>
18442
18443 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18444 EMACS_INT.
18445
18446 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18447
18448 * xfaces.c (face_numeric_value): Declare dim size_t.
18449 (Finternal_lisp_face_equal_p): Remove unused f.
18450
18451 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18452 (MATRIX_ROW): Remove unused vars.
18453 (draw_glyphs, x_insert_glyphs, fast_find_position)
18454 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18455 byte/char counts.
18456
18457 * regex.c (regex_compile): Remove unused var.
18458
18459 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18460
18461 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18462 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18463
18464 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18465
18466 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18467
18468 * fileio.c (Fwrite_region): Remove unused var.
18469
18470 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18471 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18472
18473 * composite.c (Fremove_list_of_text_properties): Declare.
18474
18475 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18476 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18477 (coding_inherit_eol_type): Remove unused attrs.
18478 (detect_coding): Cast arg of detect_eol.
18479
18480 * charset.c (syms_of_charset): Remove unused var p.
18481 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18482 byte/char counts.
18483
18484 * casetab.c (set_case_table): Remove unused var.
18485
18486 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18487 unused vars.
18488
18489 2008-02-01 Dave Love <fx@gnu.org>
18490
18491 * xterm.c (x_bitmap_mask): Declare.
18492
18493 2008-02-01 Dave Love <fx@gnu.org>
18494
18495 * xterm.c (x_term_init): Fix type error.
18496
18497 * lisp.h: Add Funibyte_char_to_multibyte.
18498
18499 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18500 (Fset_coding_system_priority): Doc fix.
18501
18502 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18503
18504 * indent.c (check_composition): Make start and end EMACS_INT.
18505
18506 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18507
18508 * xdisp.c (handle_composition_prop, check_point_in_composition):
18509 Make buffer positions EMACS_INT.
18510
18511 * composite.c (find_composition, run_composition_function)
18512 (update_compositions, Ffind_composition_internal): Make buffer
18513 positions EMACS_INT.
18514
18515 * composite.h (find_composition, update_compositions): Make
18516 position args EMACS_INT.
18517
18518 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18519
18520 * intervals.c (get_property_and_range):
18521 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18522
18523 * unexalpha.c: Don't include varargs.h.
18524
18525 2008-02-01 Dave Love <fx@gnu.org>
18526
18527 * coding.h (ENCODE_UTF_8): New.
18528
18529 * Makefile.in (gtkutil.o): Depend on coding.h.
18530
18531 * coding.c (Fset_coding_system_priority): Doc fix.
18532
18533 2008-02-01 Kenichi Handa <handa@m17n.org>
18534
18535 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18536 the case of auto saving.
18537
18538 2008-02-01 Andreas Schwab <schwab@suse.de>
18539
18540 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18541 `range' from GC.
18542
18543 2008-02-01 Kenichi Handa <handa@m17n.org>
18544
18545 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18546
18547 2008-02-01 Kenichi Handa <handa@m17n.org>
18548
18549 * fileio.c (choose_write_coding_system): Return a decided coding system.
18550 (Fwrite_region): Set Vlast_coding_system_used to the return value
18551 of choose_write_coding_system.
18552
18553 2008-02-01 Kenichi Handa <handa@m17n.org>
18554
18555 * charset.c (Fset_charset_priority): Pay attention to duplicated
18556 arguments.
18557
18558 * coding.c (QCcategory): New variable.
18559 (syms_of_coding): Defsym it. Set all elements of
18560 Vcoding_category_table and their symbol values.
18561 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18562 coding-category-XXX, and coding-category-list.
18563 (Fdefine_coding_system_internal): Add category in the plist.
18564
18565 2008-02-01 Kenichi Handa <handa@m17n.org>
18566
18567 * callproc.c (Fcall_process): Handle carryover correctly.
18568
18569 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18570 (raw_text_coding_system): Check NILP (coding_system).
18571 (coding_inherit_eol_type): Check NILP (coding_system) and
18572 NILP (parent).
18573 (consume_chars): Fix for the case of raw-text.
18574
18575 * process.c (read_process_output): Handle carryover correctly.
18576
18577 2008-02-01 Dave Love <fx@gnu.org>
18578
18579 * regex.c (re_search_2): Fix last change.
18580
18581 2008-02-01 Kenichi Handa <handa@m17n.org>
18582
18583 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18584 target_multibyte. Even in a unibyte case, return a converted
18585 multibyte char.
18586 (GET_CHAR_AFTER): New macro.
18587 (PATFETCH): Translate via multibyte char.
18588 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18589 (SETUP_MULTIBYTE_RANGE): New macro.
18590 (regex_compile): Setup compiled code so that its multibyteness
18591 matches that of a target. Fix the handling of "[X-YZ]" using
18592 SETUP_MULTIBYTE_RANGE.
18593 (analyse_first) <charset>: For filling fastmap for all multibyte
18594 characters, don't check by BASE_LEADING_CODE_P.
18595 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18596 the same as RE_MULTIBYTE_P (bufp) now.
18597 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18598 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18599 (TRANSLATE_VIA_MULTIBYTE): New macro.
18600 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18601 It is the same as RE_MULTIBYTE_P (bufp) now.
18602 <exactn>: Translate via multibyte.
18603 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18604 translate it.
18605 <charset, charset_not>: Fetch a character by
18606 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18607 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18608 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18609 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18610 by GET_CHAR_AFTER.
18611 (bcmp_translate): Likewise.
18612
18613 * search.c (compile_pattern): Check the member target_multibyte,
18614 not the member multibyte of buf.
18615
18616 * lread.c (read1): While reading a string, set force_singlebyte
18617 and force_multibyte correctly.
18618
18619 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18620 up of unibyte_to_multibyte_table.
18621
18622 2008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * coding.c (setup_coding_system): If coding has
18625 post-read-conversion or pre-write-conversion, set
18626 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18627 respectively.
18628 (decode_coding_gap): Run post-read-conversion if any.
18629
18630 * fileio.c (Finsert_file_contents): Even if we read into a
18631 unibyte buffer, check if we must decode the result or not.
18632
18633 2008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * coding.c (make_conversion_work_buffer): Change the work buffer
18636 name to the same one as that of Emacs 21.
18637
18638 2008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * coding.h (make_conversion_work_buffer): Adjust prototype.
18641 (code_conversion_restore): Don't extern it.
18642
18643 * coding.c (detected_mask): Delete unused variable.
18644 (decode_coding_iso_2022): Pay attention to the byte sequence of
18645 CTEXT extended segment, and retain those bytes as is.
18646 (decode_coding_ccl): Delete unused variable `valids'.
18647 (setup_coding_system): Delete unused variable `category'.
18648 (consume_chars): Delete unused variable `category'. Make it work
18649 for non-multibyte case.
18650 (make_conversion_work_buffer): Change argument.
18651 (saved_coding): Delete unused variable.
18652 (code_conversion_restore): Don't check saved_coding->destination.
18653 (code_conversion_save): New function.
18654 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18655 instead of record_unwind_protect.
18656 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18657 (detect_coding_system): Delete unused variable `mask'.
18658 (Fdefine_coding_system_internal): Delete unused variable id.
18659
18660 * fileio.c (kill_workbuf_unwind): New function.
18661 (Finsert_file_contents): On replacing, call
18662 make_conversion_work_buffer with correct args, and call
18663 record_unwind_protect with the first arg kill_workbuf_unwind.
18664
18665 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18666
18667 2008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18670 (fontset_add): Fix for the case that TO is less than TO1.
18671 (Ffontset_info): Don't use fallback fontset on checking the
18672 default fontset.
18673 (dump_fontset): New function for debugging.
18674
18675 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18676 coding_type is Qcharset.
18677
18678 2008-02-01 Kenichi Handa <handa@m17n.org>
18679
18680 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18681 (map_char_table): Don't inherit the value from the parent on
18682 initializing VAL. Adjust for the above change.
18683
18684 2008-02-01 Kenichi Handa <handa@m17n.org>
18685
18686 * coding.c (Qsignature, Qendian): Delete these variables.
18687 (syms_of_coding): Don't initialize them.
18688 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18689 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18690 detect_info->found.
18691 (decode_coding_utf_16): Don't detect BOM here.
18692 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18693 is NOT utf_16_without_bom.
18694 (setup_coding_system): For a coding system of type utf-16, check
18695 if the attribute :endian is Qbig or not (not nil or not), and set
18696 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18697 (detect_coding): If coding type is utf-16 and BOM detection is
18698 required, detect it.
18699 (Fdefine_coding_system_internal): For a coding system of type
18700 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18701
18702 2008-02-01 Kenichi Handa <handa@m17n.org>
18703
18704 * coding.c (coding_set_source): Fix for the case that the current
18705 buffer is different from coding->src_object.
18706 (decode_coding_object): Don't use the conversion work buffer if
18707 DST_OBJECT is a buffer.
18708
18709 2008-02-01 Dave Love <fx@gnu.org>
18710
18711 * lread.c (read_emacs_mule_char) [len==2]: Index
18712 emacs_mule_charset correctly.
18713
18714 2008-02-01 Dave Love <fx@gnu.org>
18715
18716 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18717 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18718 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18719 treated specially.)
18720 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18721 (detected_mask): Remove Big5 bits.
18722
18723 2008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 The following changes are to make the font rescaling facility
18726 compatible with Emacs 21.
18727
18728 * xfaces.c (Vface_font_rescale_alist): Rename from
18729 Vface_resizing_fonts.
18730 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18731 (font_rescale_ratio): Rename from font_resizing_ratio.
18732 (split_font_name): Set font->rescale_ratio.
18733 (better_font_p): Pay attention to font->rescale_ratio.
18734 (build_scalable_font_name): Likewise. Change RESX, and RESY
18735 fields.
18736 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18737
18738 2008-02-01 Kenichi Handa <handa@m17n.org>
18739
18740 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18741 (Qutf_16_le): Remove these variables.
18742 (syms_of_coding): Don't DEFSYM them.
18743 (decode_coding_utf_16): Fix handling of BOM.
18744 (encode_coding_utf_16): Fix handling of BOM.
18745
18746 2008-02-01 Kenichi Handa <handa@m17n.org>
18747
18748 * fileio.c (Finsert_file_contents): On replacing, before decoding
18749 the file into the work buffer, set point of the work buffer to the end.
18750
18751 2008-02-01 Dave Love <fx@gnu.org>
18752
18753 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18754
18755 2008-02-01 Dave Love <fx@gnu.org>
18756
18757 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18758 and fix C types.
18759
18760 2008-02-01 Kenichi Handa <handa@m17n.org>
18761
18762 * xdisp.c (SKIP_GLYPHS): New macro.
18763 (set_cursor_from_row): Pay attention to string display properties.
18764
18765 * category.c (copy_category_entry): Fix for the case that RANGE
18766 is an integer.
18767
18768 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18769
18770 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18771
18772 2008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * charset.c (Fcharset_id_internal): New function.
18775 (syms_of_charset): Defsubr it.
18776
18777 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18778 with the last arg charset_list acquired from coding.
18779 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18780 the attribute coding_attr_ccl_valids.
18781
18782 * coding.h (enum define_coding_ccl_arg_index): Set the first
18783 member coding_arg_ccl_decoder to coding_arg_max.
18784
18785 * ccl.h (ccl_driver): Adjust prototype.
18786
18787 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18788 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
18789 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
18790 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18791 last arg Qnil.
18792
18793 2008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18796 call encode_char.
18797
18798 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18799
18800 2008-02-01 Dave Love <fx@gnu.org>
18801
18802 * composite.c (syms_of_composite): Make composition_hash_table weak.
18803
18804 2008-02-01 Kenichi Handa <handa@m17n.org>
18805
18806 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18807 (font_name_registry): Don't extern them.
18808 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18809
18810 * fontset.h (Qfontset): Don't extern it.
18811 (new_fontset_from_font_name): Extern it.
18812
18813 * fontset.c: Give 8 extra slots to fontset objects.
18814 (Qfontset_info): New variable.
18815 (syms_of_fontset): Defsym it.
18816 (FONTSET_FALLBACK): New macro.
18817 (fontset_face): Try also the default fontset.
18818 (make_fontset): Realize a fallback fontset from the default fontset.
18819 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18820 using split_font_name_into_vector and build_font_name_from_vector.
18821 (Fset_fontset_font): Access the elements of font_spec by enum
18822 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18823 name by using split_font_name_into_vector.
18824 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18825 generate a proper font name from the fontset name. Update
18826 Vfontset_alias_alist.
18827 (n_auto_fontsets): New variable.
18828 (new_fontset_from_font_name): New function.
18829 (Ffont_info): Store the information about fonts generated from the
18830 default fontset in the first extra slot of the returned char-table.
18831
18832 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18833 (font_name_registry): Delete function.
18834 (split_font_name_into_vector): New function.
18835 (build_font_name_from_vector): New function.
18836 (font_list): The argument REGISTRY is now a list of registry names.
18837 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18838 specifies an explicit font name, return the name as is. Make a
18839 list of registy names.
18840
18841 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18842 of x_new_fontset.
18843 (Fx_create_frame): Don't call x_new_fontset here. Just use
18844 x_list_fonts to check the existence of fonts.
18845
18846 * xterm.h (x_new_fontset): Adjust prototype.
18847
18848 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18849 string. Use new_fontset_from_font_name to create a fontset from a
18850 font name.
18851
18852 2008-02-01 Kenichi Handa <handa@m17n.org>
18853
18854 * syntax.c (Vfind_word_boundary_function_table): New name for
18855 Vnext_word_boundary_function_table.
18856 (find-word-boundary-function-table): New name for
18857 next-word-boundary-function-table.
18858
18859 2008-02-01 Dave Love <fx@gnu.org>
18860
18861 * Makefile.in: Fix some dependencies.
18862
18863 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18864 set it to nil before returning.
18865
18866 * composite.c (update_compositions): Fix type error.
18867
18868 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18869
18870 2008-02-01 Kenichi Handa <handa@m17n.org>
18871
18872 * xterm.c (x_new_font): Optimize for the case that the font is
18873 already set for the frame.
18874
18875 2008-02-01 Kenichi Handa <handa@m17n.org>
18876
18877 * chartab.c (char_table_ascii): Check if the char table contents
18878 is sub-char-table or not.
18879 (char_table_set, char_table_set_range): Fix argument to
18880 char_table_ascii.
18881
18882 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18883 (detect_coding_utf_8, detect_coding_utf_16)
18884 (detect_coding_emacs_mule, detect_coding_iso_2022)
18885 (detect_coding_sjis, detect_coding_big5)
18886 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18887 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18888 sequence is valid in this coding system. Change callers.
18889 (MAX_ANNOTATION_LENGTH): New macro.
18890 (ADD_ANNOTATION_DATA): New macro.
18891 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18892 ADD_ANNOTATION_DATA. Change the format of annotation data.
18893 (ADD_CHARSET_DATA): New macro.
18894 (emacs_mule_char): New argument ID. Change callers.
18895 (decode_coding_emacs_mule, decode_coding_iso_2022)
18896 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18897 Produce charset annotation data in coding->charbuf.
18898 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18899 to charset annotation data in coding->charbuf.
18900 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18901 coding->common_flags if the coding system is iso-2022 based and
18902 uses designation.
18903 (produce_composition): Adjust for the new annotation data format.
18904 (produce_charset): New function.
18905 (produce_annotation): Handle charset annotation.
18906 (handle_composition_annotation, handle_charset_annotation): New
18907 functions.
18908 (consume_chars): Handle charset annotation. Utilize the above two
18909 functions.
18910 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18911 buffer, get the deleted text as a string and set
18912 coding->src_object to that string.
18913 (detect_coding, detect_coding_system): Use the new struct
18914 coding_detection_info.
18915
18916 * coding.h (struct coding_detection_info): New structure.
18917 (struct coding_system): Adjust prototype of the member `detector'.
18918 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18919
18920 2008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18923
18924 2008-02-01 Dave Love <fx@gnu.org>
18925
18926 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18927 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18928 to new local and nullify apropos_accumulate before returning.
18929 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18930
18931 2008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18934 correctly.
18935
18936 2008-02-01 Dave Love <fx@gnu.org>
18937
18938 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18939
18940 2008-02-01 Kenichi Handa <handa@m17n.org>
18941
18942 The following changes are to make character composition happen
18943 automatically on displaying.
18944
18945 * Makefile.in (lisp, shortlisp): Add composite.elc.
18946
18947 * composite.h (Qauto_composed, Vauto_composition_function)
18948 (Qauto_composition_function): Extern them.
18949
18950 * composite.c (Vcomposition_function_table)
18951 (Qcomposition_function_table): Delete variables.
18952 (Qauto_composed, Vauto_composition_function)
18953 (Qauto_composition_function): New variables.
18954 (run_composition_function): Don't call
18955 compose-chars-after-function.
18956 (update_compositions): Clear `auto-composed' text property.
18957 (compose_chars_in_text): Delete this function.
18958 (syms_of_composite): Staticpro Qauto_composed and
18959 Qauto_composition_function. Declare Vauto_composition_function as
18960 a Lisp variable.
18961
18962 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18963
18964 * xdisp.c (it_props): Add an entry for Qauto_composed.
18965 (handle_auto_composed_prop): New function.
18966
18967 * xselect.c (selection_data_to_lisp_data): Don't call
18968 compose_chars_in_text.
18969
18970 2008-02-01 Dave Love <fx@gnu.org>
18971
18972 * keyboard.c (read_char): Modify checking around use of
18973 Vkeyboard_translate_table.
18974
18975 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18976 and fix C types.
18977
18978 2008-02-01 Kenichi Handa <handa@m17n.org>
18979
18980 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18981 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18982 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18983 the case that the last byte is '\r' correctly.
18984 (decode_coding): Flush out the unprocessed data correctly.
18985 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18986
18987 2008-02-01 Dave Love <fx@gnu.org>
18988
18989 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18990 Add XK_ISO... case.
18991 (xaw_scroll_callback): Revert last change.
18992
18993 2008-02-01 Kenichi Handa <handa@m17n.org>
18994
18995 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18996
18997 2008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * xfaces.c (Vface_resizing_fonts): New variable.
19000 (struct font_name): New member `resizing_ratio'.
19001 (font_resizing_ratio): New function.
19002 (split_font_name): Set font->resizing_ratio.
19003 (better_font_p): Pay attention to font->resizing_ratio.
19004 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
19005 RESX, and RESY fields.
19006 (try_alternative_families): Try scalable fonts if
19007 Vscalable_fonts_allowed is not Qt.
19008 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
19009
19010 2008-02-01 Dave Love <fx@gnu.org>
19011
19012 * xterm.c (xaw_scroll_callback): Cast correctly.
19013
19014 2008-02-01 Dave Love <fx@gnu.org>
19015
19016 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19017 (lispy_kana_keys): Comment out.
19018 (make_lispy_event) [XK_kana_A]: Comment out.
19019
19020 * xterm.c (xaw_scroll_callback): Cast call_data.
19021 (XTread_socket): Deal with ASCII keysyms.
19022 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19023
19024 2008-02-01 Dave Love <fx@gnu.org>
19025
19026 * xterm.c (Vx_keysym_table): New.
19027 (syms_of_xterm): Initialize it.
19028 (XTread_socket): Use it.
19029 From head: Eliminate incorrect optimization that tried to avoid
19030 decoding the output of X*LookupString.
19031 (x_get_font_repertory): Delete charset declaration.
19032
19033 2008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19036 return 0.
19037 (Fdefine_coding_system_internal): Setup
19038 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19039
19040 2008-02-01 Dave Love <fx@gnu.org>
19041
19042 * coding.c (Fcheck_coding_system): Doc fix.
19043
19044 * editfns.c (Finsert_byte): Return a proper value.
19045
19046 2008-02-01 Kenichi Handa <handa@m17n.org>
19047
19048 * coding.c (decode_coding): Fix args to translate_chars. Pay
19049 attention to Vstandard_translation_table_for_decode.
19050 (encode_coding): Fix args to translate_chars. Pay attention to
19051 Vstandard_translation_table_for_encode.
19052
19053 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19054 SINGLE_BYTE_CHAR_P.
19055
19056 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19057 not by SINGLE_BYTE_CHAR_P.
19058
19059 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19060 SINGLE_BYTE_CHAR_P.
19061
19062 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19063 SINGLE_BYTE_CHAR_P.
19064
19065 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19066 by SINGLE_BYTE_CHAR_P.
19067
19068 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19069 SINGLE_BYTE_CHAR_P.
19070
19071 2008-02-01 Dave Love <fx@gnu.org>
19072
19073 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19074
19075 2008-02-01 Dave Love <fx@gnu.org>
19076
19077 * fns.c (Flanginfo): Fix typo.
19078
19079 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19080
19081 2008-02-01 Kenichi Handa <handa@m17n.org>
19082
19083 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19084 (detect_coding_emacs_mule, detect_coding_iso_2022)
19085 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19086 incomplete byte sequence. Don't update *mask when correctly detected.
19087 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19088 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19089 (detect_coding, detect_coding_system): Adjust for the changes above.
19090
19091 2008-02-01 Kenichi Handa <handa@m17n.org>
19092
19093 * character.c (char_string): Rename from
19094 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19095 (string_char): Rename from string_char.
19096
19097 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19098 if C is greater than MAX_3_BYTE_CHAR.
19099 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19100 string_char instead of string_char_with_unification.
19101
19102 2008-02-01 Dave Love <fx@gnu.org>
19103
19104 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19105
19106 2008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * keymap.c (push_key_description): Pay attention to force_multibyte.
19109
19110 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19111
19112 2008-02-01 Dave Love <fx@gnu.org>
19113
19114 * charset.c (define_charset_internal): Rename `supprementary'.
19115
19116 * Makefile.in (lisp, shortlisp): Remove latin-N.
19117
19118 2008-02-01 Dave Love <fx@gnu.org>
19119
19120 * xfns.c (x_window, x_window): Use use_xim.
19121
19122 * xterm.c (use_xim): Initialize.
19123 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19124 (x_term_init): Maybe set use_xim.
19125
19126 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19127
19128 2008-02-01 Kenichi Handa <handa@m17n.org>
19129
19130 * search.c (search_buffer): Fix case-fold-search of multibyte
19131 characters.
19132 (boyer_moore): Rename the last argument to char_high_bits.
19133
19134 2008-02-01 Kenichi Handa <handa@m17n.org>
19135
19136 * xdisp.c (display_string): Fix for the case of zero width glyph.
19137
19138 * xfns.c (x_set_font): Change the error message of the case that
19139 x_new_fontset returns Qt.
19140
19141 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19142 (Finternal_set_lisp_face_attribute): Use signal_error for the
19143 error of invalid fontset.
19144
19145 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19146 fontset, return Qt.
19147
19148 2008-02-01 Dave Love <fx@gnu.org>
19149
19150 * unexelf.c (unexec): Make .got handling not SGI-specific.
19151
19152 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19153
19154 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19155
19156 * keyboard.c (read_key_sequence): Fix type error.
19157
19158 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19159 type error.
19160
19161 * fontset.c (fontset_add): Return Lisp_Object.
19162
19163 2008-02-01 Dave Love <fx@gnu.org>
19164
19165 * charset.h (charset_ordered_list_tick): Declare extern.
19166
19167 2008-02-01 Kenichi Handa <handa@m17n.org>
19168
19169 The following changes (and some of 2008-02-01 changes of mine) are
19170 for handling syntax, category, and case conversion for unibyte
19171 characters by converting them to multibyte on the fly. With these
19172 changes, we don't have to setup syntax and case tables for unibyte
19173 characters in each language environment.
19174
19175 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19176 multibyte if necessary.
19177
19178 * bytecode.c (Fbyte_code): Likewise.
19179
19180 * character.h (LEADING_CODE_LATIN_1_MIN)
19181 (LEADING_CODE_LATIN_1_MAX): New macros.
19182 (unibyte_to_multibyte_table): Extern it.
19183 (unibyte_char_to_multibyte): New macro.
19184 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19185 (CHAR_LEADING_CODE): New macro.
19186 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19187
19188 * character.c (unibyte_to_multibyte_table): New variable.
19189 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19190 (multibyte_char_to_unibyte): If C is an eight-bit character,
19191 convert it to the corresponding byte value.
19192
19193 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19194 not 1, signals an error. Update the elements of
19195 unibyte_to_multibyte_table.
19196 (init_charset_once): Initialize unibyte_to_multibyte_table.
19197 (syms_of_charset): Define the charset `iso-8859-1'.
19198
19199 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19200 as is without converting it to unibyte. In a unibyte buffer,
19201 convert C to multibyte before checking the syntax.
19202
19203 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19204
19205 * minibuf.c (Fminibuffer_complete_word): Use the macro
19206 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19207
19208 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19209
19210 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19211 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19212 that is zero, convert an eight-bit char to multibyte.
19213 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19214 non-emacs case.
19215 (PATFETCH): Convert an eight-bit char to multibyte.
19216 (HANDLE_UNIBYTE_RANGE): New macro.
19217 (regex_compile): Setup the compiled pattern for multibyte chars
19218 even if the given regex string is unibyte. Use PATFETCH_RAW
19219 instead of PATFETCH in many places. To handle `charset'
19220 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19221 only for ASCII chars.
19222 (analyse_first) <exactn>: Simplify because the compiled pattern
19223 is multibyte.
19224 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19225 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19226 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19227 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19228 multibyte always 1.
19229 (re_search_2): In emacs, set the locale variable multibyte to 1,
19230 otherwise to 0. New local variable target_multibyte. Check it
19231 to decide the multibyteness of STR1 and STR2. If
19232 target_multibyte is zero, convert unibyte chars to multibyte
19233 before translating and checking fastmap.
19234 (TARGET_CHAR_AND_LENGTH): New macro.
19235 (re_match_2_internal): In emacs, set the locale variable multibyte
19236 to 1, otherwise to 0. New local variable target_multibyte. Check
19237 it to decide the multibyteness of STR1 and STR2. Use
19238 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19239 <charset, charset_not>: If multibyte is nonzero, check fastmap
19240 only for ASCII chars. Call bcmp_translate with
19241 target_multibyte, not with multibyte.
19242 <begline>: Declare the local variable C as `unsigned'.
19243 (bcmp_translate): Change the last arg name to target_multibyte.
19244
19245 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19246 the regexp pattern and the matching target. Set cp->buf.multibyte
19247 to the multibyteness of the regexp pattern. Set
19248 cp->but.target_multibyte to the multibyteness of the matching target.
19249 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19250 FETCH_STRING_CHAR_ADVANCE.
19251 (Freplace_match): Convert unibyte chars to multibyte.
19252
19253 * syntax.c (char_quoted, back_comment, scan_words)
19254 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19255 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19256 unibyte chars to multibyte.
19257 (skip_chars): Delete the arg syntaxp, and move the code for
19258 handling syntaxes to skip_syntaxes. Change callers.
19259 Fix the case that the multibyteness of STRING and the current
19260 buffer doesn't match.
19261 (skip_syntaxes): New function.
19262 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19263 SINGLE_BYTE_CHAR_P.
19264
19265 2008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * xfaces.c (QCfontset): New variable.
19268 (LFACE_FONTSET): New macro.
19269 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19270 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19271 (Finternal_set_lisp_face_attribute)
19272 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19273 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19274 check also LFACE_FONTSET_INDEX.
19275 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19276 attrs[LFACE_FONT_INDEX].
19277 (syms_of_xfaces): Intern and staticpro QCfontset.
19278
19279 * dispextern.h (enum lface_attribute_index): New member
19280 LFACE_FONTSET_INDEX.
19281
19282 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19283
19284 2008-02-01 Kenichi Handa <handa@m17n.org>
19285
19286 * coding.c (coding_set_destination): Fix coding->destination for
19287 the case converting a region.
19288 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19289 (encode_coding_object): Fix coding->dst_pos and
19290 coding->dst_pos_byte for the case converting a region.
19291
19292 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19293
19294 * character.h (BYTE8_STRING): New macro.
19295
19296 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19297
19298 2008-02-01 Kenichi Handa <handa@m17n.org>
19299
19300 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19301 characters by octal form.
19302
19303 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19304
19305 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19306 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19307 _fetch_multibyte_char_len.
19308 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19309
19310 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19311
19312 * casefiddle.c (casify_object): Simplify. Handle the case that
19313 the case conversion change the byte length.
19314 (casify_region): Likewise.
19315
19316 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19317
19318 * character.c (_fetch_multibyte_char_len): Delete this variable.
19319 (syms_of_character): Setup Vprintable_chars.
19320
19321 * editfns.c (Fchar_equal): Fix for the unibyte case.
19322 (Finsert_byte): New function.
19323 (syms_of_editfns): Defsubr it.
19324
19325 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19326 of direct code 0x3ffff.
19327
19328 * search.c (Freplace_match): Fix for the unibyte case.
19329
19330 2008-02-01 Kenichi Handa <handa@m17n.org>
19331
19332 * lread.c (safe_to_load_p): Fix the logic.
19333
19334 * syntax.c (scan_words): Don't treat characters belonging to
19335 different scripts as constituting a word.
19336
19337 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19338
19339 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19340
19341 * emacs.c (main): In the case of --unibyte, instead of aborting on
19342 finding non-empty buffer, make it unibyte.
19343
19344 2008-02-01 Kenichi Handa <handa@m17n.org>
19345
19346 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19347 to create a fontset.
19348
19349 2008-02-01 Dave Love <fx@gnu.org>
19350
19351 * character.c (Funibyte_char_to_multibyte): Doc fix.
19352
19353 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19354
19355 2008-02-01 Kenichi Handa <handa@m17n.org>
19356
19357 * fontset.c (fontset_add): Make the type `int'.
19358 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19359
19360 * character.c (unibyte_char_to_multibyte)
19361 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19362 charset_unibyte, not charset_primary.
19363
19364 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19365
19366 * charset.c (charset_unibyte): Rename from charset_primary.
19367 (Funibyte_charset): Rename from Fprimary_charset.
19368 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19369 (syms_of_charset): Adjust for the above changes.
19370
19371 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19372 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19373 it->multibyte_p is zero.
19374
19375 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19376 Delete extern.
19377
19378 2008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * coding.c (Fdefine_coding_system_internal): Fix category setting
19381 for a coding system of type iso-2022.
19382
19383 2008-02-01 Kenichi Handa <handa@m17n.org>
19384
19385 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19386
19387 2008-02-01 Kenichi Handa <handa@m17n.org>
19388
19389 * syntax.c (Vnext_word_boundary_function_table): New variable.
19390 (next-word-boundary-function-table): Declare it as a Lisp variable
19391 in syms_of_syntax.
19392 (scan_words): Call functions in Vnext_word_boundary_function_table
19393 if any.
19394
19395 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19396
19397 * fontset.c (fs_load_font): If fontp->charset is not negative,
19398 return fontp without setting its members.
19399
19400 2008-02-01 Dave Love <fx@gnu.org>
19401
19402 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19403
19404 * m/sparc.h (HAVE_ALLOCA): Delete.
19405
19406 * s/irix6-5.h: Don't include strings.h.
19407 (bcopy, bzero, bcmp): Don't undef.
19408
19409 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19410
19411 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19412 (TIOCSIGSEND): Don't test IRIX6.
19413 (bcopy, bzero, bcmp): Define conditionally.
19414
19415 2008-02-01 Kenichi Handa <handa@m17n.org>
19416
19417 * buffer.c (Qas, Qmake, Qto): New variables.
19418 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19419 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19420
19421 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19422 we are inserting a process output into a multibyte buffer.
19423
19424 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19425 multibyte_char_to_unibyte.
19426
19427 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19428 by the primary charset, make it eight-bit char.
19429 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19430
19431 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19432 (charset_8_bit__control, charset_8_bit_graphic)
19433 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19434 (define_charset_internal): New function.
19435 (syms_of_charset): Call define_charset_internal for pre-defined
19436 charsets.
19437
19438 * charset.h (charset_8_bit): Extern it.
19439
19440 * coding.c (make_conversion_work_buffer): Adjust for the change
19441 of Fset_buffer_multibyte.
19442 (encode_coding_raw_text): Increment p0 in the loop.
19443
19444 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19445
19446 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19447 for the change of Fset_buffer_multibyte.
19448
19449 * fns.c (Fstring_to_multibyte): New function.
19450 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19451
19452 2008-02-01 Dave Love <fx@gnu.org>
19453
19454 * xfns.c (x_put_x_image): Declare args.
19455
19456 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19457 (try_font_list): Declare an arg.
19458
19459 * xdisp.c (message2_nolog, set_message): Declare an arg.
19460
19461 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19462
19463 * syntax.c (scan_sexps_forward): Declare an arg.
19464
19465 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19466 Declare an arg.
19467
19468 * lisp.h (Fnew_fontset): Declare.
19469
19470 * keymap.c (push_key_description): Call CHARACTERP correctly.
19471
19472 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19473 (face_for_char): Delete unused vars.
19474 (Fset_fontset_font): Doc fix. Delete unused vars.
19475
19476 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19477
19478 * composite.c (update_compositions): Declare arg.
19479
19480 * cm.c (calccost, cmgoto): Declare args.
19481
19482 * charset.c: Remove `emacs' conditional. Doc fixes.
19483 (map_char_table_for_charset): Declare.
19484
19485 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19486
19487 * ccl.c: Remove `emacs' conditional.
19488
19489 2008-02-01 Kenichi Handa <handa@m17n.org>
19490
19491 The following changes are to allow specifying multiple font
19492 patterns for a character range (specified by script or charset).
19493
19494 * Makefile.in (abbrev.o): Depend on syntax.h.
19495 (xfaces.o): Depend on charset.h.
19496
19497 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19498 SINGLE_BYTE_CHAR_P.
19499
19500 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19501
19502 * character.h (Vchar_script_table): Extern it.
19503
19504 * character.c (Vscript_alist): Delete.
19505 (Vchar_script_table, Qchar_script_table): New variable.
19506 (syms_of_character): Declare Vchar_script_table as a lisp variable
19507 and initialize it.
19508
19509 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19510 have property char-table-extra-slots, make no extra slot.
19511
19512 * dispextern.h (struct face): Delete member `charset'.
19513 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19514 SINGLE_BYTE_CHAR_P.
19515 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19516 Add prototypes.
19517 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19518 (generate_ascii_font_name): Rename from generate_ascii_font.
19519
19520 * fontset.h (get_font_repertory_func): New prototype.
19521 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19522 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19523
19524 * fontset.c (Qprepend, Qappend): New variables.
19525 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19526 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19527 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19528 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19529 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19530 (load_font_get_repertory): New functions.
19531 (fontset_set): Delete.
19532 (fontset_face): New arg FACE. Return face ID, not face.
19533 Complete re-write to handle new fontset structure. Change caller.
19534 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19535 (face_for_char): Don't call lookup_face.
19536 (make_fontset_for_ascii_face): New arg FACE.
19537 (fs_load_font): New arg CHARSET_ID. Don't check
19538 Vfont_encoding_alist here.
19539 (find_font_encoding): New function.
19540 (list_fontsets): Use STRINGP, not ! NILP.
19541 (accumulate_script_ranges): New function.
19542 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19543 re-written to handle new fontset structure.
19544 (Ffontset_font): Return a copy of element.
19545 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19546 docstring of font-encoding-alist.
19547
19548 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19549 (Fset_fotset_font): Fix arguments to 5.
19550
19551 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19552
19553 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19554 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19555 (highlight_trailing_whitespace): Adjust for the change of
19556 lookup_named_face.
19557
19558 * xfaces.c: Include charset.h.
19559 (load_face_font): Delete argument C. Change caller.
19560 (generate_ascii_font_name): Rename from generate_ascii_font.
19561 (font_name_registry): New function.
19562 (cache_face): Store ascii faces before non-ascii faces in buckets.
19563 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19564 Lookup only ascii faces.
19565 (lookup_non_ascii_face): New function.
19566 (lookup_named_face): Delete argument C. Change caller.
19567 (lookup_derived_face): Delete argument C. Change caller.
19568 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19569 a string, just call font_list with it.
19570 (choose_face_font): Delete arguments FACE and C. New arg
19571 FONT_SPEC. Change caller.
19572 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19573 Change caller.
19574 (realize_non_ascii_face): New function.
19575 (realize_x_face): Call load_face_font here.
19576 (realize_tty_face): Delete argument C. Change caller.
19577 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19578 get a face ID.
19579 (dump_realized_face): Don't print charset of FACE.
19580
19581 * xfns.c (x_set_font): Always call x_new_fontset and
19582 store_frame_parameter.
19583 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19584 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19585
19586 * xterm.h (x_get_font_repertory): Extern it.
19587
19588 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19589 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19590 it->multibyte_p is zero.
19591 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19592 (x_new_fontset): If FONTSETNAME doesn't match any existing
19593 fontsets, create a new one.
19594 (x_get_font_repertory): New function.
19595
19596 2008-02-01 Kenichi Handa <handa@m17n.org>
19597
19598 * coding.c (Ffind_coding_systems_region_internal): Detect an
19599 ASCII only string correctly.
19600
19601 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19602 version is 0.
19603
19604 2008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * lread.c: Include "coding.h".
19607 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19608 (load_each_byte, unread_char): New variables.
19609 (readchar_backlog): Delete.
19610 (readchar): Return a character unless load_each_byte is nonzero.
19611 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19612 cons. If unread_char is not -1, simply return it.
19613 (unreadchar): Handle the case that readcharfun is
19614 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19615 (read_multibyte): Delete.
19616 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19617 (read_emacs_mule_char): New functions.
19618 (Fload): Even if the file doesn't have the extension ".elc", if
19619 safe_to_load_p returns a positive version number, assume that the
19620 file contains bytecompiled code. If the version is less than 22,
19621 load the file while decoding multibyte sequences by emacs-mule.
19622 (readevalloop): Don't use readchar_backlog.
19623 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19624 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19625 (read_escape): Delete the arg BYTEREP.
19626 (read1): Set load_each_byte to 1 temporarily while handling
19627 #@NUMBER. Don't call read_multibyte.
19628 (read_vector): Call Fread with a cons. If readcharfun is
19629 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19630 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19631 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19632 and Qload_force_doc_strings.
19633
19634 2008-02-01 Kenichi Handa <handa@m17n.org>
19635
19636 * xdisp.c (face_before_or_after_it_pos): Call
19637 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19638
19639 2008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * character.h (TRAILING_CODE_P): New macro.
19642 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19643 (string_char_with_unification): Fix prototype.
19644 (Vscript_alist): Extern it.
19645
19646 * character.c (Vscript_alist): New variable.
19647 (string_char_with_unification, str_as_unibyte)
19648 (string_escape_byte8): Add `const' to local variables.
19649 (syms_of_character): Declare script-alist as a Lisp variable.
19650
19651 * charset.h (Vcharset_ordered_list): Extern it.
19652 (charset_ordered_list_tick): Extern it.
19653 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19654 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19655 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19656 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19657 (Funify_charset): Adjust for the change of Funify_charset.
19658
19659 * charset.c (charset_ordered_list_tick): New variable.
19660 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19661 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19662 deunify intead of unify a charset.
19663 (string_xstring_p): Add `const' to local variables.
19664 (find_charsets_in_text): Add `const' to arguments and local variables.
19665 (encode_char): Adjust for the change of Funify_charset. Fix
19666 detecting of invalid code.
19667 (Fset_charset_priority): Increment charset_ordered_list_tick.
19668 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19669 and TO_CODE.
19670
19671 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19672 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19673 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19674 (decode_coding_ccl, consume_chars)
19675 (Ffind_coding_systems_region_internal)
19676 (Fcheck_coding_systems_region): Add `const' to local variables.
19677
19678 * print.c (print_object): Use octal form for printing the
19679 contents of a bool vector.
19680
19681 2008-02-01 Dave Love <fx@gnu.org>
19682
19683 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19684 <version == 20>: Refuse to load.
19685
19686 2008-02-01 Dave Love <fx@gnu.org>
19687
19688 * fns.c: Move coding.h.
19689 (Qcodeset, Qdays, Qmonths): New.
19690 (concat): Use CHARACTERP instead of INTEGERP.
19691 (Flocale_codeset): Delete.
19692 (Flanginfo): New function.
19693 (syms_of_fns): Change accordingly.
19694
19695 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19696
19697 2008-02-01 Dave Love <fx@gnu.org>
19698
19699 * casetab.c (init_casetab_once, init_casetab_once): Fix
19700 CHAR_TABLE_SET call.
19701
19702 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19703
19704 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19705
19706 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19707 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19708 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19709
19710 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19711
19712 * coding.c (ENCODE_DESIGNATION, decode_eol)
19713 (make_conversion_work_buffer, code_conversion_restore)
19714 (Fdefine_coding_system_internal): Convert Lisp types.
19715 (code_conversion_restore): Use EQ, not ==.
19716 (Fencode_coding_string): Fix code_convert_string call.
19717
19718 * coding.h (code_convert_region): Fix prototype.
19719
19720 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19721
19722 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19723 (Ffontset_info): Convert Lisp types.
19724
19725 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19726
19727 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19728
19729 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19730
19731 * chartab.c: Include "...h", not <...h> in some cases.
19732
19733 * callproc.c (Fcall_process): Remove unused variables.
19734
19735 2008-02-01 Dave Love <fx@gnu.org>
19736
19737 * coding.c (Fset_coding_system_priority): Allow null arg list.
19738
19739 2008-02-01 Dave Love <fx@gnu.org>
19740
19741 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19742 (Fself_insert_and_exit): Use CHARACTERP.
19743
19744 * callproc.c (Fcall_process): Remove unused vars.
19745
19746 * xterm.c (XTread_socket): Add extra dead keysyms.
19747
19748 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19749
19750 * dispextern.h: Remove prototypes for redraw_frame,
19751 redraw_garbaged_frames.
19752
19753 * cmds.c (Fself_insert_command): Use CHARACTERP.
19754
19755 * chartab.c (make_sub_char_table): Remove unused var.
19756 (Fset_char_table_default, Fmap_char_table): Doc fix.
19757
19758 * keymap.c (access_keymap): Remove generic char code.
19759 (push_key_description): Use CHARACTERP.
19760
19761 2008-02-01 Dave Love <fx@gnu.org>
19762
19763 * charset.c: Doc fixes.
19764 (Funify_charset): Extra checking.
19765
19766 2008-02-01 Dave Love <fx@gnu.org>
19767
19768 * lread.c: Remove some unused variables.
19769 (safe_to_load_p): If safe, return the magic number version byte.
19770 (Fload): Maybe use load-with-code-conversion.
19771
19772 2008-02-01 Kenichi Handa <handa@m17n.org>
19773
19774 * category.c (Fmodify_category_entry): Don't modify the contents
19775 of category_set for characters out of the range. Avoid
19776 unnecessary modification.
19777
19778 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19779 Vchar_unify_table. The default value of the table is now nil.
19780
19781 * character.c (syms_of_character): Setup Vchar_width_table for
19782 eight-bit-control and raw-byte chars.
19783
19784 * charset.h (enum define_charset_arg_index): Delete
19785 charset_arg_parents and add charset_arg_subset and
19786 charset_arg_superset.
19787 (enum charset_attr_index): Delete charset_parents and add
19788 charset_subset and charset_superset.
19789 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19790 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19791 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19792 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19793 (CHARSET_SUPERSET): New macros.
19794 (charset_work): Extern it.
19795 (ENCODE_CHAR): Use charset_work.
19796 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19797 (map_charset_chars): Extern it.
19798
19799 * charset.c (load_charset_map): Set the default value of encoder
19800 and deunifier char-tables to nil.
19801 (map_charset_chars): Change argument. Change callers. Use
19802 map_char_table_for_charset instead of map_char_table.
19803 (Fmap_charset_chars): New optional args from_code and to_code.
19804 (Fdefine_charset_internal): Adjust for the change of
19805 `define-charset' (:parents -> :subset or :superset).
19806 (charset_work): New variable.
19807 (encode_char, syms_of_charset): Adjust for the change of
19808 Fdefine_charset_internal.
19809 (Ffind_charset_string): Setup the vector `charsets' correctly.
19810
19811 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19812 the previous change.
19813 (char_table_ref_and_range): Adjust for the above change.
19814 (map_sub_char_table_for_charset): New function.
19815 (map_char_table_for_charset): New function.
19816
19817 * keymap.c (describe_vector): Handle a char-table directly here.
19818 (describe_char_table): Delete.
19819
19820 * lisp.h (map_charset_chars): Delete.
19821
19822 2008-02-01 Dave Love <fx@gnu.org>
19823
19824 * fns.c (count_combining): Comment out (unused).
19825 (Flocale_codeset): New.
19826 (syms_of_fns): Defsubr it.
19827
19828 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19829 (size_t): Remove.
19830
19831 2008-02-01 Dave Love <fx@gnu.org>
19832
19833 * Makefile.in (chartab.o): Depend on charset.h.
19834
19835 2008-02-01 Kenichi Handa <handa@m17n.org>
19836
19837 * character.c (syms_of_character): Set the default value of
19838 Vprintable_chars to Qnil.
19839
19840 2008-02-01 Dave Love <fx@gnu.org>
19841
19842 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19843
19844 2008-02-01 Kenichi Handa <handa@m17n.org>
19845
19846 * charset.c (load_charset_map): Handle the case that from < to
19847 correctly.
19848
19849 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19850 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19851 Pay attention to raw-8-bit chars.
19852
19853 2008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19856 It is not bytecompiled now.
19857
19858 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19859 (charset_jisx0208): New variables.
19860 (Fdefine_charset_internal): Setup them if appropriate.
19861 (init_charset_once): Initialize them to -1.
19862
19863 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19864 (charset_jisx0208): Extern them.
19865
19866 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19867 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19868 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19869 (setup_iso_safe_charsets): Fix arguments to Fassq.
19870 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19871 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19872 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19873 (encode_coding_iso_2022): Change the 1st arg to
19874 ENCODE_ISO_CHARACTER to a variable.
19875
19876 2008-02-01 Kenichi Handa <handa@m17n.org>
19877
19878 * charset.h (enum define_charset_arg_index): New enums
19879 charset_arg_min_code and charset_arg_max_code.
19880 (struct charset): New member char_index_offset.
19881
19882 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19883 Take charset->char_index_offset into account.
19884 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19885 args[charset_arg_max_code]. Setup charset.char_index_offset.
19886 (syms_of_charset): Fix args to Fdefine_charset_internal.
19887
19888 2008-02-01 Dave Love <fx@gnu.org>
19889
19890 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19891
19892 2008-02-01 Dave Love <fx@gnu.org>
19893
19894 * coding.c: Doc fixes.
19895 (Fcoding_system_aliases): Fix return value.
19896 (Qmac): Remove (duplicated) definition.
19897
19898 2008-02-01 Dave Love <fx@gnu.org>
19899
19900 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19901 New functions.
19902
19903 * character.c (Fstring): Doc fix.
19904
19905 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19906
19907 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
19908 (font-encoding-alist): Doc fix.
19909
19910 2008-02-01 Dave Love <fx@gnu.org>
19911
19912 * term.c (costs_set): Declare static, non-initialized for pcc.
19913 (encode_terminal_code): Remove unused var.
19914
19915 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19916 for K&R.
19917
19918 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19919
19920 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19921 (suffixes): Move out of make_subsidiaries for K&R.
19922
19923 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19924
19925 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19926
19927 2008-02-01 Dave Love <fx@gnu.org>
19928
19929 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19930
19931 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19932
19933 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
19934
19935 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19936
19937 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19938
19939 2008-02-01 Kenichi Handa <handa@m17n.org>
19940
19941 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19942 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19943
19944 2008-02-01 Kenichi Handa <handa@m17n.org>
19945
19946 * coding.c (decode_coding_charset): Adjust for the change of
19947 Fdefine_coding_system_internal.
19948 (Fdefine_coding_system_internal): For a coding system of
19949 `charset' type, store a list of charset IDs in
19950 `charset_attr_charset_valids' element of coding attributes.
19951
19952 2008-02-01 Kenichi Handa <handa@m17n.org>
19953
19954 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19955 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19956 caller. Handle 2-byte and 3-byte charsets correctly.
19957 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19958 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19959 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19960 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19961 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19962 sequence.
19963 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19964 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19965 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19966 and alt&rule composition.
19967 (decode_coding_iso_2022): Handle composition correctly.
19968 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19969
19970 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19971 re-defining a charset. If the charset has :emacs-mule-id, setup
19972 emacs_mule_bytes.
19973 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19974
19975 2008-02-01 Kenichi Handa <handa@m17n.org>
19976
19977 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19978 (encode_coding_big5, encode_coding_charset): If coding requires safe
19979 encoding, produce a character specified by
19980 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19981
19982 2008-02-01 Dave Love <fx@gnu.org>
19983
19984 * xterm.c (XSetIMValues): Declare.
19985
19986 * process.c: Conditionally include sys/wait.h, pty.h.
19987
19988 * print.c (print_object): Fix print format for 64-bit systems.
19989
19990 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19991
19992 * buffer.c (emacs_strerror): Declare.
19993
19994 * fontset.c (Fclear_face_cache): Declare.
19995 (accumulate_font_info): Comment-out (unused).
19996 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19997 variables.
19998
19999 * character.h (string_escape_byte8): Declare.
20000
20001 * charset.c (load_charset_map, load_charset_map_from_file): Remove
20002 unused vars.
20003 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
20004 (Fmap_charset_chars): Doc fix.
20005
20006 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
20007 (Fset_coding_system_priority, Fset_coding_system_priority)
20008 (Fdefine_coding_system_internal): Doc fix.
20009
20010 2008-02-01 Dave Love <fx@gnu.org>
20011
20012 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20013
20014 2008-02-01 Kenichi Handa <handa@m17n.org>
20015
20016 * character.c (string_escape_byte8): Make multibyte string with
20017 correct size.
20018
20019 * charset.c (Fmake_char): Delete unnecessary code.
20020
20021 2008-02-01 Kenichi Handa <handa@m17n.org>
20022
20023 * xfns.c (x_encode_text): Allocate coding.destination here, and
20024 call encode_coding_object with dst_object Qnil.
20025
20026 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20027 multibyte form correctly.
20028
20029 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20030 against Vfont_encoding_alist.
20031
20032 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20033 handling of charset list.
20034 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20035 (decode_coding_object): Move point to coding->dst_pos before
20036 calling post-read-conversion function.
20037 (encode_coding_object): Give correct arguments to
20038 pre-write-conversion. Ignore the return value of
20039 pre-write-conversion function. Pay attention to the case that
20040 pre-write-conversion changes the current buffer. If dst_object is
20041 Qt, even if coding->src_bytes is zero, allocate at least one byte
20042 to coding->destination.
20043
20044 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20045
20046 * charset.c (Fmake_char): Make it more backward compatible.
20047 (Fmap_charset_chars): Fix docstring.
20048
20049 2008-02-01 Dave Love <fx@gnu.org>
20050
20051 * coding.c: Doc fixes.
20052 (Fdefine_coding_system_alias): Use names, not symbols, in
20053 coding-system-alist.
20054
20055 2008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20058 of calling free_realized_face.
20059
20060 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
20061
20062 * charset.c (read_hex): Don't treat SPC as a comment starter.
20063 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20064 (Fdecode_char): Fix typo.
20065
20066 2008-02-01 Kenichi Handa <handa@m17n.org>
20067
20068 * charset.h (struct charset): New member `code_space_mask'.
20069
20070 * coding.c (coding_set_source): Delete the local variable beg_byte.
20071 (encode_coding_charset, Fdefine_coding_system_internal):
20072 Delete the local variable charset.
20073 (Fdefine_coding_system_internal): Setup
20074 attrs[coding_attr_charset_valids] correctly.
20075
20076 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20077 member to check if CODE is valid or not.
20078 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20079 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20080 is within the range of charset->min_code and carset->max_code.
20081
20082 2008-02-01 Dave Love <fx@gnu.org>
20083
20084 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20085
20086 * dispextern.h (generate_ascii_font): Fix return type.
20087
20088 * xfaces.c (generate_ascii_font): Fix arg declaration.
20089
20090 * coding.c (coding_inherit_eol_type)
20091 (Fset_terminal_coding_system_internal)
20092 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20093
20094 2008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20097 multiple charsets correctly.
20098
20099 2008-02-01 Kenichi Handa <handa@m17n.org>
20100
20101 * search.c (boyer_moore): Fix handling of multibyte character
20102 translation.
20103
20104 * xdisp.c (display_mode_element): When the variable `elt' is
20105 changed, update `this' and `lisp_string'.
20106
20107 2008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20110
20111 * callproc.c (Fcall_process): Be sure to give the current buffer
20112 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20113
20114 * charset.c (struct charset_map_entries): New struct.
20115 (load_charset_map): Rename from parse_charset_map. New args
20116 entries and n_entries. Change caller.
20117 (load_charset_map_from_file): Rename from load_charset_map.
20118 Change caller. New arg control_flag. Call load_charset_map at
20119 the tail.
20120 (load_charset_map_from_vector): New function.
20121 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20122 (encode_char): If the charset is compact, change a character index
20123 to a code point.
20124
20125 * coding.c (coding_alloc_by_making_gap): Check the case that the
20126 source and destination are the same correctly.
20127 (decode_coding_raw_text): Set coding->consumed_char and
20128 coding->consumed to 0.
20129 (produce_chars): If coding->chars_at_source is nonzero, update
20130 coding->consumed_char and coding->consumed before calling
20131 alloc_destination.
20132 (Fdefine_coding_system_alias): Register ALIAS in
20133 Vcoding_system_alist.
20134 (syms_of_coding): Define `no-conversion' coding system at the tail.
20135
20136 * fileio.c (Finsert_file_contents): Set coding_system instead of
20137 val. If the current buffer is multibyte, always call
20138 decode_coding_gap.
20139
20140 * xfaces.c (try_font_list): Give higher priority to fontset's
20141 family than face's family.
20142
20143 2008-02-01 Kenichi Handa <handa@m17n.org>
20144
20145 * callproc.c (Fcall_process): Be sure to give the current buffer
20146 to decode_coding_c_string.
20147
20148 * xfaces.c (try_font_list): Give a family specified in a fontset
20149 higher priority than a family specified in a face.
20150
20151 2008-02-01 Kenichi Handa <handa@m17n.org>
20152
20153 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20154 Fix arguments to insert_from_buffer.
20155
20156 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20157
20158 2008-02-01 Kenichi Handa <handa@m17n.org>
20159
20160 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20161 (decode_coding_gap): Set coding->dst_multibyte correctly.
20162
20163 2008-02-01 Kenichi Handa <handa@m17n.org>
20164
20165 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20166 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20167 (encode_coding_utf_16): Substitute coding->default_char for
20168 non-Unicode characters.
20169 (decode_coding): Don't call record_insert here.
20170 (setup_coding_system): Initialize `surrogate' of
20171 coding->spec.utf_16 to 0.
20172 (EMIT_ONE_BYTE): Fix for multibyte case.
20173
20174 * insdel.c (insert_from_gap): Call record_insert.
20175
20176 2008-02-01 Kenichi Handa <handa@m17n.org>
20177
20178 * casefiddle.c (casify_region): Fix multibyte case.
20179
20180 * character.c (c_string_width): Add return type `int'.
20181 (char_string_with_unification): Delete arg ADVANCED.
20182
20183 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20184 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20185 (CHAR_STRING_ADVANCE): Make it do-while statement.
20186
20187 * chartab.c (sub_char_table_set_range): Optimize for the case
20188 DEPTH == 3. Add workaround code for a GCC optimization bug.
20189
20190 * charset.c (parse_charset_map): Remove an unused variable.
20191
20192 * coding.c: Delete unused variables.
20193
20194 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20195 earlier. If inserted is zero and the coding system doesn't
20196 require flushing, don't call decode_coding_gap.
20197
20198 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20199
20200 2008-02-01 Kenichi Handa <handa@m17n.org>
20201
20202 The following changes are for using Unicode as an internal
20203 character model, and use UTF-8 format for buffer/string
20204 representation.
20205
20206 * .gdbinit (xchartable): Adjust for the change of char table structure.
20207 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20208
20209 * Makefile.in (obj): Add character.o and chartab.o.
20210 (lisp, shortlisp): Remove utf-8.elc.
20211 (*.o): For many files, change dependency on charset.h to
20212 character.h, and add dependency on character.h.
20213 (character.o, chartab.o): New targets.
20214
20215 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20216 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20217 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20218 of "charset.h".
20219
20220 * dired.c, filelock.c: Include "character.h".
20221
20222 * alloc.c: Include "character.h" instead of "charset.h".
20223 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20224 (syms_of_alloc): Remove defsubr for Smake_char_table.
20225
20226 * buffer.c: Include "character.h" instead of "charset.h", don't
20227 include "coding.h".
20228 (Fset_buffer_multibyte): Adjust for UTF-8.
20229
20230 * buffer.h: EXFUN Fbuffer_live_p.
20231
20232 * callproc.c: Include "character.h" instead of "charset.h".
20233 (Fcall_process): Big change for the new code-conversion APIs.
20234
20235 * casetab.c: Include "character.h" instead of "charset.h".
20236 (set_canon, set_identity, shuffle): Adjust for the new
20237 map_char_table spec.
20238 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20239 accessing the char table structure.
20240
20241 * chartab.c: New file that implements char table.
20242
20243 * category.c: Include "character.h".
20244 (copy_category_entry): New function.
20245 (copy_category_table): Call map_char_table and copy_category_entry.
20246 (Fmake_category_table): Initialize all top-level slots.
20247 (char_category_set): New function.
20248 (modify_lower_category_set): Delete.
20249 (Fmodify_category_entry): Call char_table_ref_and_range.
20250
20251 * category.h (CATEGORY_SET): Just call char_category_set.
20252
20253 * ccl.c: Include "character.h".
20254 (Qccl, Qcclp): New variables.
20255 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20256 it's less than 256.
20257 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20258 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20259 and DST type.
20260 (ccl_driver): Change types of argument, adjust code accordingly.
20261 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20262 ccl_driver.
20263 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20264
20265 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20266 New members src_multibyte, dst_multibyte, consumed, and produced.
20267 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20268 (CODING_SPEC_CCL_PROGRAM): New macro.
20269 (ccl_driver): Update prototype.
20270 (Qccl, Qcclp, Fccl_program_p): Extern them.
20271 (CHECK_CCL_PROGRAM): New macro.
20272
20273 * character.c, character.h, chartab.c: New files.
20274
20275 * charset.c: Mostly re-written. Move character and multibyte sequence
20276 handling codes to character.c.
20277
20278 * charset.h: Mostly re-written. Move character and multibyte sequence
20279 handling codes to character.h.
20280
20281 * coding.c, coding.h: Mostly re-written.
20282
20283 * composite.c: Include "character.h" instead of "charset.h".
20284 (CHAR_WIDTH): Move to character.h.
20285 (HASH_KEY, HASH_VALUE): Delete.
20286
20287 * composite.h (enum composition_method): Change order of enumeration
20288 symbols.
20289
20290 * data.c: Include "character.h" instead of "charset.h".
20291 (Faref): Call CHAR_TABLE_REF for a char table.
20292 (Faset): Call CHAR_TABLE_SET for a char table.
20293
20294 * dispextern.h (free_realized_face, check_face_attribytes)
20295 (generate_ascii_font): Extern them.
20296 (free_realized_multibyte_face): Delete extern.
20297
20298 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20299 table structure.
20300
20301 * editfns.c: Include "character.h" instead of "charset.h".
20302 (Fchar_to_string): Always call CHAR_STRING.
20303
20304 * emacs.c (main): Call init_charset_once, init_charset,
20305 syms_of_chartab, and syms_of_character.
20306
20307 * fileio.c: Include "character.h" instead of "charset.h".
20308 (Finsert_file_contents): Big change for the new code-conversion API.
20309 (choose_write_coding_system, Fwrite_region): Likewise.
20310 (build_annotations_2): Delete.
20311 (e_write): Big change for the new code-conversion API.
20312
20313 * fns.c: Include "character.h" instead of "charset.h".
20314 (copy_sub_char_table): Move to chartab.c.
20315 (Fcopy_sequence): Call copy_char_table for a char table.
20316 (concat): Delete codes calling count_multibyte.
20317 (string_char_to_byte, string_byte_to_char): Adjust for the new
20318 multibyte form.
20319 (internal_equal): Adjust for the change of char table structure.
20320 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20321 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20322 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20323 (char_table_translate, optimize_sub_char_table)
20324 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20325 chartab.c.
20326 (char_table_ref_and_index): Delete.
20327 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20328 (Fmd5): Call preferred_coding_system instead of accessing
20329 Vcoding_category_list. Adjust for the new code-conversion API.
20330 (syms_of_fns): Move defsubr for char table related functions to
20331 chartab.c.
20332
20333 * fontset.c: Mostly re-written.
20334
20335 * fontset.h (struct font_info): Change type of the member encoding_type.
20336 (enum FONT_SPEC_INDEX): New enum.
20337 (fontset_font_pattern, fs_load_font): Update prototype.
20338 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20339
20340 * indent.c: Include "character.h" instead of "charset.h".
20341 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20342
20343 * insdel.c: Include "character.h" instead of "charset.h".
20344 (copy_text): Don't refer to Vnonascii_translation_table.
20345 (insert_from_gap): New function.
20346
20347 * keyboard.c: Include "character.h" instead of "charset.h".
20348 (command_loop_1): Never call direct_output_forward_char before
20349 a non-ASCII character.
20350 (read_char): If Vkeyboard_translate_table is a char table, always
20351 translate a character.
20352
20353 * keymap.c: Include "character.h".
20354 (store_in_keymap): Handle the case that IDX is a cons.
20355 (Fdefine_key): Handle the case that KEY is a cons and the car part
20356 is also a cons (range).
20357 (push_key_description): Adjust for the new character code.
20358 (describe_vector): Call describe_char_table for a char table.
20359 (describe_char_table): New function.
20360
20361 * keymap.h (describe_char_table): Extern it.
20362
20363 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20364 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20365 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20366 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20367 Delete.
20368 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20369 structure.
20370 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20371 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20372 (CHARTAB_SIZE_BITS_3): New macros.
20373 (chartab_size): Extern it.
20374 (struct Lisp_Char_Table): Re-design.
20375 (struct Lisp_Sub_Char_Table): New structure.
20376 (HASH_KEY, HASH_VALUE): Move from fns.c.
20377 (CHARACTERBITS): Define as 22.
20378 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20379 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20380 (GC_SUB_CHAR_TABLE_P): New macro.
20381 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20382 (code_convert_string_norecord): Deleted extern.
20383 (init_character_once, syms_of_character, init_charset)
20384 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20385
20386 * lread.c: Include "character.h".
20387 (read_multibyte): New arg NBYTES.
20388 (read_escape): Change the meaning of returned *BYTEREP.
20389 (to_multibyte): Delete.
20390 (read1): Adjust the handling of char table and string.
20391
20392 * print.c: Include "character.h" instead of "charset.h".
20393 (print_string): Convert 8-bit raw bytes to octal form by
20394 string_escape_byte8.
20395 (print_object): Adjust for the new multibyte form. Print 8-bit
20396 raw bytes always in octal form. Handle sub char table correctly.
20397
20398 * process.c: Include "character.h" instead of "charset.h".
20399 (read_process_output, send_process): Adjust for the new
20400 code-conversion API.
20401
20402 * puresize.h (BASE_PURESIZE): Increase.
20403
20404 * regex.c: Include "character.h" instead of "charset.h".
20405 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20406 (regex_compile): Accept a range whose starting and ending
20407 character have different leading bytes.
20408 (analyse_first): Adjust for the above change.
20409
20410 * search.c: Include "character.h" instead of "charset.h".
20411 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20412 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20413
20414 * syntax.c: Include "character.h" instead of "charset.h".
20415 (syntax_parent_lookup): Delete.
20416 (Fmodify_syntax_entry): Accept a cons as CHAR.
20417 (skip_chars): Adjust for the new multibyte form.
20418 (init_syntax_once): Call char_table_set_range instead of directly
20419 accessing the structure of a char table.
20420
20421 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20422 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20423 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20424 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20425
20426 * term.c: Include "buffer.h" and "character.h".
20427 (encode_terminal_code, write_glyphs): Adjust for the new
20428 code-conversion API.
20429 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20430
20431 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20432
20433 * xdisp.c: Include "character.h".
20434 (get_next_display_element): Adjust for the new multibyte form.
20435 (disp_char_vector): Adjust for the new char table structure.
20436 (decode_mode_spec_coding): Adjust for the new structure of
20437 coding system.
20438 (decode_mode_spec): Adjust for the new code-conversion API.
20439
20440 * xfaces.c: Include "character.h" instead of "charset.h".
20441 (load_face_font): Adjust for the change of choose_face_font and
20442 FS_LOAD_FONT.
20443 (generate_ascii_font): New function.
20444 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20445 (set_font_frame_param): Adjust for the change of choose_face_font.
20446 (free_realized_face): Make it public.
20447 (free_realized_faces_for_fontset): Rename from
20448 free_realized_multibyte_face. Free also faces realized for ASCII.
20449 (choose_face_font): Change arguments. Adjust for the change of
20450 fontset_font_pattern and FS_LOAD_FONT.
20451
20452 * xfns.c: Include "character.h".
20453 (x_encode_text): Adjust for the new code-conversion API.
20454
20455 * xselect.c: Don't include "charset.h".
20456 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20457
20458 * xterm.c: Include "character.h".
20459 (x_encode_char): New argument CHARSET. Change caller.
20460 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20461 Call ENCODE_CHAR instead of SPLIT_CHAR.
20462 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20463 CHAR_WIDTH instead of CHARSET_WIDTH.
20464 (XTread_socket): Adjust for the new code-conversion API.
20465 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20466 (x_load_font): Adjust for the change of struct font.
20467
20468 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20469
20470 * xfaces.c (face_at_buffer_position): Remove unused vars.
20471
20472 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20473
20474 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20475 Fix overflow checking.
20476
20477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20478
20479 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20480 Cancel previous change.
20481
20482 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20483
20484 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20485 ccl->eight_bit_control. Fix check for buffer overflow.
20486 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20487 (ccl_driver): Initialize extra_bytes to 0.
20488
20489 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20490
20491 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20492 return it ORed with ctrl_modifier.
20493
20494 2008-01-29 Miles Bader <miles@gnu.org>
20495
20496 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20497
20498 2008-01-28 Jason Rumney <jasonr@gnu.org>
20499
20500 * w32.c (stat): Don't double check for networked drive.
20501
20502 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20503
20504 * window.c (run_window_configuration_change_hook): New function.
20505 Code extracted from set_window_buffer. Set the selected frame.
20506 (set_window_buffer): Use it.
20507 * window.h (run_window_configuration_change_hook): Declare.
20508 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20509
20510 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20511
20512 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20513
20514 * Makefile.in: Remove references to unused macros.
20515
20516 2008-01-26 Eli Zaretskii <eliz@gnu.org>
20517
20518 * w32.c (g_b_init_get_sid_sub_authority)
20519 (g_b_init_get_sid_sub_authority_count): New static variables.
20520 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20521 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20522 (init_user_info): Use them to retrieve uid and gid.
20523 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20524 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20525 st_uid and st_gid of the file.
20526
20527 2008-01-26 Jason Rumney <jasonr@gnu.org>
20528
20529 * w32.c (logon_network_drive): New function.
20530 (stat): Use it.
20531
20532 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
20533
20534 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20535 invisible text covered with an ellipsis.
20536
20537 2008-01-25 Richard Stallman <rms@gnu.org>
20538
20539 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20540 jump back to beginning. Move some other initializations after that.
20541 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20542 New variables.
20543 (syms_of_xdisp): Init them.
20544
20545 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20546
20547 * buffer.c (reset_buffer_local_variables):
20548 Implement `permanent-local-hook'.
20549 (Qpermanent_local_hook): New variable.
20550 (syms_of_buffer): Init and staticpro it.
20551
20552 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
20553
20554 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20555
20556 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20557
20558 * fns.c (Fclrhash): Return TABLE.
20559
20560 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20561
20562 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20563 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20564 is set even without positional changes.
20565 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20566
20567 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20568
20569 2008-01-23 Jason Rumney <jasonr@gnu.org>
20570
20571 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20572
20573 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20574 the unicode range available in MULE by locale-coding-system.
20575 Improve dbcs lead byte detection. Set event timestamp and modifiers
20576 earlier.
20577
20578 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20579
20580 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20581 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20582 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20583 when used on child processes.
20584
20585 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
20586
20587 * dbusbind.c (Fdbus_method_return_internal): Rename from
20588 Fdbus_method_return.
20589 (Fdbus_unregister_object): Move to dbus.el.
20590 (Fdbus_call_method, Fdbus_method_return_internal)
20591 (Fdbus_send_signal): Improve debug messages.
20592
20593 2008-01-20 Martin Rudalics <rudalics@gmx.at>
20594
20595 * undo.c (undo_inhibit_record_point): New variable.
20596 (syms_of_undo): Initialize it.
20597 (record_point): Don't record point when undo_inhibit_record_point
20598 is set.
20599
20600 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20601
20602 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20603
20604 * xdisp.c (Qauto_hscroll_mode): New var.
20605 (syms_of_xdisp): Initialize it.
20606 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20607 window's buffer.
20608 (hscroll_windows): Don't check automatic_hscrolling_p here.
20609
20610 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20611 vscroll if we're setting window-buffer to the value it already has.
20612
20613 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20614
20615 * m/intel386.h: Remove references to XENIX.
20616
20617 2008-01-17 Andreas Schwab <schwab@suse.de>
20618
20619 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20620 instead of HAVE_X86_64_LIB64_DIR.
20621 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20622
20623 2008-01-17 Glenn Morris <rgm@gnu.org>
20624
20625 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20626 to HAVE_X86_64_LIB64_DIR.
20627
20628 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20629
20630 * s/irix3-3.h:
20631 * s/irix4-0.h:
20632 * s/386-ix.h:
20633 * s/domain.h:
20634 * s/hpux9-x11r4.h:
20635 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20636
20637 * sysdep.c: Remove code containing references to symbols defined
20638 by unsupported systems.
20639
20640 2008-01-16 Glenn Morris <rgm@gnu.org>
20641
20642 * coding.c (select-safe-coding-system-function): Doc fix.
20643
20644 2008-01-15 Glenn Morris <rgm@gnu.org>
20645
20646 * config.in: Revert 2008-01-13 change: this is a generated file.
20647
20648 2008-01-13 Tom Tromey <tromey@redhat.com>
20649
20650 * lisp.h: Fix typo.
20651
20652 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20653
20654 * m/sequent-ptx.h:
20655 * m/sequent.h:
20656 * s/ptx.h:
20657 * s/ptx4-2.h:
20658 * s/ptx4.h: Remove files for systems no longer supported.
20659
20660 * callproc.c (Fcall_process): Fix previous change.
20661
20662 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20663
20664 * unexsunos4.c: Remove file, system not supported anymore.
20665
20666 * m/mips.h:
20667 * m/intel386.h:
20668 * callproc.c:
20669 * config.in:
20670 * ecrt0.c:
20671 * emacs.c:
20672 * fileio.c:
20673 * frame.c:
20674 * getpagesize.h:
20675 * keyboard.c:
20676 * lread.c:
20677 * process.c:
20678 * puresize.h:
20679 * sysdep.c:
20680 * systty.h:
20681 * syswait.h:
20682 * unexec.c:
20683 * xdisp.c:
20684 * alloc.c: Remove code containing references to symbols defined by
20685 unsupported systems.
20686
20687 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20688
20689 * coding.c (detect_coding_mask): Fix previous change.
20690
20691 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20692
20693 * coding.c (detect_coding_iso2022): New arg
20694 latin_extra_code_state. Allow Latin extra codes only
20695 when *latin_extra_code_state is nonzero.
20696 (detect_coding_mask): If there is a NULL byte, detect the encoding
20697 as UTF-16 or binary. If Latin extra codes exist, detect the
20698 encoding as ISO-2022 only when there's no other proper encoding is
20699 found.
20700
20701 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20702
20703 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20704 #ifdef MAC_OS.
20705
20706 2008-01-08 Richard Stallman <rms@gnu.org>
20707
20708 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20709
20710 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
20711
20712 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20713 menu bar in parentheses.
20714
20715 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20716
20717 * m/7300.h:
20718 * m/acorn.h:
20719 * m/alliant-2800.h:
20720 * m/alliant.h:
20721 * m/alliant1.h:
20722 * m/alliant4.h:
20723 * m/altos.h:
20724 * m/amdahl.h:
20725 * m/apollo.h:
20726 * m/att3b.h:
20727 * m/aviion-intel.h:
20728 * m/aviion.h:
20729 * m/celerity.h:
20730 * m/clipper.h:
20731 * m/cnvrgnt.h:
20732 * m/convex.h:
20733 * m/cydra5.h:
20734 * m/delta88k.h:
20735 * m/dpx2.h:
20736 * m/dual.h:
20737 * m/elxsi.h:
20738 * m/f301.h:
20739 * m/gould-np1.h:
20740 * m/gould.h:
20741 * m/i860.h:
20742 * m/ibmps2-aix.h:
20743 * m/ibmrt-aix.h:
20744 * m/ibmrt.h:
20745 * m/irist.h:
20746 * m/is386.h:
20747 * m/isi-ov.h:
20748 * m/mega68.h:
20749 * m/mg1.h:
20750 * m/news-r6.h:
20751 * m/news-risc.h:
20752 * m/news.h:
20753 * m/nh3000.h:
20754 * m/nh4000.h:
20755 * m/ns16000.h:
20756 * m/ns32000.h:
20757 * m/nu.h:
20758 * m/orion.h:
20759 * m/orion105.h:
20760 * m/paragon.h:
20761 * m/pfa50.h:
20762 * m/plexus.h:
20763 * m/pyramid.h:
20764 * m/pyrmips.h:
20765 * m/sh3el.h:
20766 * m/sps7.h:
20767 * m/sr2k.h:
20768 * m/stride.h:
20769 * m/sun1.h:
20770 * m/sun2.h:
20771 * m/sun3-68881.h:
20772 * m/sun3-fpa.h:
20773 * m/sun3-soft.h:
20774 * m/sun3.h:
20775 * m/sun386.h:
20776 * m/symmetry.h:
20777 * m/tad68k.h:
20778 * m/tahoe.h:
20779 * m/targon31.h:
20780 * m/tek4300.h:
20781 * m/tekxd88.h:
20782 * m/tower32.h:
20783 * m/tower32v3.h:
20784 * m/ustation.h:
20785 * m/wicat.h:
20786 * m/xps100.h:
20787 * s/cxux.h:
20788 * s/cxux7.h:
20789 * s/dgux.h:
20790 * s/dgux4.h:
20791 * s/dgux5-4-3.h:
20792 * s/dgux5-4r2.h:
20793 * s/esix.h:
20794 * s/esix5r4.h:
20795 * s/hiuxmpp.h:
20796 * s/hiuxwe2.h:
20797 * s/iris3-5.h:
20798 * s/iris3-6.h:
20799 * s/isc2-2.h:
20800 * s/isc3-0.h:
20801 * s/isc4-0.h:
20802 * s/isc4-1.h:
20803 * s/newsos5.h:
20804 * s/newsos6.h:
20805 * s/osf1.h:
20806 * s/osf5-0.h:
20807 * s/riscix1-1.h:
20808 * s/riscix12.h:
20809 * s/sco4.h:
20810 * s/sco5.h:
20811 * s/sunos4-0.h:
20812 * s/sunos4-1.h:
20813 * s/sunos413.h:
20814 * s/sunos4shr.h:
20815 * s/umax.h:
20816 * s/unipl5-2.h:
20817 * s/xenix.h:
20818 * cxux-crt0.s:
20819 * unexapollo.c:
20820 * unexconvex.c:
20821 * unexenix.c:
20822 * unexsni.c: Remove files for systems no longer supported.
20823
20824 * m/intel386.h: Remove references to unsupported systems.
20825
20826 * w32.c (get_emacs_configuration): Remove reference to i860.
20827
20828 * sysdep.c: Remove dead code.
20829
20830 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20831
20832 * s/rtu.h:
20833 * m/masscomp.h: Remove files. Platform is obsolete.
20834
20835 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
20836
20837 * dbusbind.c (Fdbus_method_return): New function.
20838 (xd_read_message): Add the serial number to the event.
20839 (Fdbus_register_method): Activate the function.
20840
20841 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20842
20843 * keyboard.c (read_key_sequence): Fix typo.
20844
20845 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
20846
20847 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20848 (xd_signature, xd_append_arg): Handle element type detection for
20849 empty arrays.
20850 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20851 SDATA () calls; this must be solved more general.
20852 (Fdbus_register_signal): Use SBYTES instead of strlen.
20853
20854 2008-01-03 Magnus Henoch <magnus@zemdatav>
20855
20856 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20857 unsigned int for byte values (necessary for big-endian platform).
20858 (Fdbus_call_method): Handle the case of no returned arguments.
20859
20860 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20861
20862 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20863
20864 2007-12-31 Magnus Henoch <mange@freemail.hu>
20865
20866 * dbusbind.c (xd_signature): Signature of variant is just "v".
20867
20868 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
20869
20870 * dbusbind.c: Fix several errors and compiler warnings.
20871 Reported by Tom Tromey <tromey@redhat.com>.
20872 (XD_ERROR, XD_DEBUG_MESSAGE)
20873 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20874 (xd_append_arg): Part for basic D-Bus types rewritten.
20875 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20876 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20877 appropriate.
20878 (xd_read_message): Return Qnil. Don't signal an error; it is not
20879 useful during event reading.
20880 (Fdbus_register_signal): Signal an error if the check for
20881 FUNCTIONP fails.
20882 (Fdbus_register_method): New function. The implementation is not
20883 complete, the call of the function signals an error therefore.
20884 (Fdbus_unregister_object): New function, renamed from
20885 Fdbus_unregister_signal. The initial check signals an error, if
20886 the object is not well formed.
20887
20888 2007-12-30 Richard Stallman <rms@gnu.org>
20889
20890 * textprop.c (get_char_property_and_overlay):
20891 Signal error if POSITION is out of range in a buffer.
20892
20893 2007-12-29 Martin Rudalics <rudalics@gmx.at>
20894
20895 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20896 because the original parameters are in pure storage now.
20897
20898 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20899
20900 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20901
20902 2007-12-22 Eli Zaretskii <eliz@gnu.org>
20903
20904 * callint.c (syms_of_callint) <command-history>: Add reference to
20905 history-length in the doc string.
20906
20907 2007-12-17 Jason Rumney <jasonr@gnu.org>
20908
20909 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20910 before passing as wParam.
20911
20912 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
20913
20914 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20915 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20916 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20917 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20918 as number.
20919 (Fdbus_call_method): Fix docstring.
20920
20921 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
20922
20923 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20924 New macros.
20925 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20926 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20927 Simplify.
20928 (xd_signature): New function.
20929 (xd_append_arg): Compute also signatures. Major rewrite.
20930 (xd_retrieve_arg): Make debug messages friendly.
20931 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20932 Check for signatures of arguments.
20933
20934 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
20935
20936 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20937 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20938 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20939 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20940 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20941 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20942 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20943 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20944 (xd_retrieve_value): Remove. Functionality included in ...
20945 (xd_append_arg): New function.
20946 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20947
20948 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
20949
20950 * dbusbind.c (top): Include <stdio.h>.
20951 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20952 dbus_message_new_method_call and dbus_message_new_signal.
20953 (Fdbus_register_signal): Rename unique_name to uname.
20954 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20955 non-existing unique name. Fix typos in matching rule. Return an
20956 object which is useful in Fdbus_unregister_signal.
20957 (Fdbus_unregister_signal): Reimplementation, in order to remove
20958 only the corresponding entry.
20959 (Vdbus_registered_functions_table): Change the order of entries.
20960 Apply these changes in xd_read_message and Fdbus_register_signal.
20961
20962 2007-12-16 Andreas Schwab <schwab@suse.de>
20963
20964 * fileio.c (Finsert_file_contents): Fix overflow check to not
20965 depend on undefined integer overflow.
20966
20967 2007-12-14 Jason Rumney <jasonr@gnu.org>
20968
20969 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20970 for characters above 127.
20971
20972 2007-12-13 Jason Rumney <jasonr@gnu.org>
20973
20974 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20975 before dereferencing array.
20976 (lookup_vk_code): Remove zero comparison.
20977
20978 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
20979
20980 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20981 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20982 Use `unsigned int' instead of `uint'.
20983 (xd_read_message, Fdbus_register_signal): Split expressions into
20984 multiple lines before operators "&&" and "||", according to the
20985 GNU Coding Standards.
20986
20987 2007-12-14 Eli Zaretskii <eliz@gnu.org>
20988
20989 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20990
20991 2007-12-12 Juri Linkov <juri@jurta.org>
20992
20993 * buffer.c (Frename_buffer): In interactive spec replace
20994 `read-buffer' with `read-string' that uses `buffer-name-history'
20995 as history, and the current buffer's name as default.
20996
20997 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20998
20999 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
21000 manipulating the backtrace manually.
21001 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
21002 (struct backtrace, backtrace_list): Remove.
21003 (command_loop_1): Remove dead var `no_direct'.
21004
21005 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
21006 preserve non-built-in buffer-local variables.
21007 (Fkill_all_local_variables): Don't re-create&re-set permanent
21008 buffer-local variables.
21009
21010 2007-12-09 Juri Linkov <juri@jurta.org>
21011
21012 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21013 Lisp code that uses `read-buffer' with current buffer as default.
21014
21015 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
21016
21017 * dbusbind.c (xd_read_message): Generate an event for every
21018 registered handler. There might be several handlers registered
21019 for the same signal.
21020 (Fdbus_register_signal): Don't overwrite a registration for the
21021 same signal. Add a new registration if handlers are different.
21022 (Vdbus_registered_functions_table): Rework doc string.
21023
21024 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
21025
21026 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21027 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21028 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21029 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21030 Unify argument lists.
21031 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21032 arguments and hash table keys. Use unique name for service.
21033 (Fdbus_unregister_signal): Remove checks.
21034 (Vdbus_registered_functions_table): Fix doc string.
21035
21036 2007-12-05 Magnus Henoch <mange@freemail.hu>
21037
21038 * process.c (make_process): Initialize pty_flag to 0.
21039
21040 2007-12-05 Jason Rumney <jasonr@gnu.org>
21041
21042 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21043 specified XBMs.
21044
21045 2007-12-05 Richard Stallman <rms@gnu.org>
21046
21047 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21048
21049 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21050
21051 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21052 New variable.
21053 (mac_try_close_socket) [MAC_OSX]: New function.
21054 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21055 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21056
21057 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21058 Use mac_try_close_socket.
21059
21060 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21061
21062 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21063 reloc_base.
21064 (copy_dysymtab): Compute relocation base here.
21065 (rebase_reloc_address) [__ppc64__]: New function.
21066 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21067 changed.
21068
21069 2007-12-05 Jason Rumney <jasonr@gnu.org>
21070
21071 * w32proc.c (sys_spawnve): Quote args with wildcards.
21072
21073 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21074
21075 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21076 __objc_* sections.
21077 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21078
21079 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
21080
21081 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21082 Move check for Vdbus_registered_functions_table to
21083 xd_read_queued_messages.
21084 (xd_read_queued_messages): Protect xd_read_message calls by
21085 internal_condition_case_1.
21086
21087 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
21088
21089 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21090 Qdbus_system_bus and Qdbus_session_bus, respectively.
21091 (Vdbus_intern_symbols): Remove.
21092 (Vdbus_registered_functions_table): New hash table.
21093 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21094 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21095 Rewrite in order to manage registered functions by hash table
21096 Vdbus_registered_functions_table.
21097
21098 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21099
21100 * xterm.c: Update URL to Window Manager Specification in comment.
21101
21102 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
21103
21104 * config.in (HAVE_DBUS): Add.
21105
21106 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21107 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21108 (obj): Add $(DBUS_OBJ).
21109 (LIBES): Add $(DBUS_LIBS).
21110 (dbusbind.o): New target.
21111
21112 * dbusbind.c: New file.
21113
21114 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21115
21116 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21117 (Qdbus_event): New Lisp symbol.
21118 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21119 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
21120 (keys_of_keyboard): Define dbus-event.
21121
21122 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21123
21124 2007-12-01 Richard Stallman <rms@gnu.org>
21125
21126 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21127
21128 2007-11-30 Jason Rumney <jasonr@gnu.org>
21129
21130 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21131 (w32con_reset_terminal_modes): Clear screen buffer.
21132 (w32_face_attributes): Don't use color indexes that are out of range.
21133 Only reverse the default colors.
21134
21135 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21136 WINDOWSNT.
21137
21138 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21139
21140 2007-11-29 Jason Rumney <jasonr@gnu.org>
21141
21142 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21143 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21144 if the terminal colors are initialized.
21145 (unspecified_fg, unspecified_bg): Remove unused declarations.
21146
21147 2007-11-29 Andreas Schwab <schwab@suse.de>
21148
21149 * keyboard.c (apply_modifiers): Fix typo.
21150
21151 2007-11-29 Richard Stallman <rms@gnu.org>
21152
21153 * keymap.c (Fcurrent_local_map): Doc fix.
21154
21155 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21156
21157 * s/gnu-kfreebsd.h: New file.
21158
21159 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21160
21161 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21162 Don't cast redundantly.
21163
21164 * keyboard.c (KEY_TO_CHAR): New macro.
21165 (parse_modifiers, apply_modifiers): Accept integer arguments.
21166 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21167 for chars and symbol keys.
21168 After doing such remapping, apply function-key-map again.
21169
21170 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21171
21172 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21173 compiled anymore.
21174
21175 2007-11-26 Andreas Schwab <schwab@suse.de>
21176
21177 * process.c (list_processes_1): Fix indentation level of the
21178 command column.
21179
21180 2007-11-23 Andreas Schwab <schwab@suse.de>
21181
21182 * editfns.c (Fformat): Handle %c specially since it requires the
21183 argument to be of type int.
21184
21185 2007-11-23 Markus Triska <markus.triska@gmx.at>
21186
21187 * emacs.c (main): Call init_editfns before init_process, since
21188 init_process sets Vprocess_connection_type depending on OS release.
21189
21190 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21191
21192 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21193 (find_symbol_value): Use do_symval_forwarding.
21194
21195 * data.c (set_internal): Set the value in the `cons-cell' (for
21196 Buffer_Local_values) not only for frame-local variables.
21197
21198 2007-11-22 Andreas Schwab <schwab@suse.de>
21199
21200 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21201 values to sprintf.
21202 * keymap.c (Fsingle_key_description): Likewise.
21203 * print.c (print_object): Likewise.
21204
21205 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21206
21207 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21208 file for image is nil.
21209
21210 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21211
21212 * term.c: Include stdarg.h.
21213 (fatal): Implement using varargs.
21214 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21215
21216 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21217
21218 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21219 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21220 Update call to buffer_slot_type_mismatch.
21221 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21222 (buffer_slot_type_mismatch): Update.
21223 * buffer.c (buffer_local_types): Remove.
21224 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21225 (defvar_per_buffer): Set the type in the buffer_objfwd.
21226
21227 2007-11-21 Jason Rumney <jasonr@gnu.org>
21228
21229 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21230 CreateFileMapping returns NULL on failure.
21231
21232 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21233
21234 * search.c (Fset_match_data): Remove the `evaporate' feature.
21235 (unwind_set_match_data): Don't use the `evaporate' feature.
21236
21237 2007-11-21 Jason Rumney <jasonr@gnu.org>
21238
21239 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21240
21241 * w32console.c (w32con_write_glyphs): Remove unused variables.
21242
21243 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21244
21245 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21246
21247 * s/darwin.h (MULTI_KBOARD): Remove.
21248
21249 * macfns.c (x_create_tip_frame, Fx_create_frame)
21250 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21251
21252 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21253
21254 * buffer.c (Fbuffer_local_value): Remove redundant test.
21255 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21256 than in `current-buffer' to match the comment.
21257 Do the swap using swap_in_global_binding.
21258
21259 * data.c (store_symval_forwarding, set_internal):
21260 * eval.c (specbind): Remove dead code.
21261
21262 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21263 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21264 Since we do not want to see internal Lisp_*fwd objects here.
21265
21266 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21267
21268 * sysdep.c (init_system_name): Use getaddrinfo if available.
21269
21270 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21271 (x_scroll_bar_note_movement): start, end, with, height in struct
21272 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21273
21274 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21275
21276 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21277
21278 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21279
21280 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21281 This undoes Richard's change of 14-Oct-2002.
21282
21283 * alloc.c (allocate_other_vector):
21284 * lisp.h (allocate_other_vector): Remove.
21285
21286 * window.c (struct save_window_data): Move non-lisp data to the end
21287 and make it `int' rather than Lisp_Object.
21288 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21289 Done wrap/unwrap integer values.
21290 (Fset_window_configuration, compare_window_configurations):
21291 Update use of fields to their new types.
21292
21293 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21294 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21295 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21296 (SET_SCROLL_BAR_X_WINDOW): Remove.
21297 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21298 Access the new x_window field directly.
21299 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21300 Don't wrap/unwrap integers into Lisp_Objects.
21301 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21302 (x_scroll_bar_report_motion):
21303 Don't wrap/unwrap integers into Lisp_Objects.
21304 (x_term_init): Use SDATA.
21305 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21306 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21307 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21308 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21309 * xfns.c (x_set_background_color):
21310 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21311 Access the new x_window field directly.
21312
21313 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21314 (allocate_pseudovector): Make non-static.
21315
21316 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21317 (allocate_pseudovector): Declare.
21318 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21319
21320 2007-11-15 Andreas Schwab <schwab@suse.de>
21321
21322 * editfns.c (Fformat): Correctly format EMACS_INT values.
21323 Also take precision into account when formatting an integer.
21324
21325 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21326
21327 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21328
21329 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21330 (syms_of_keyboard): Defsubr it.
21331
21332 * data.c (swap_in_global_binding): Fix longstanding bug where
21333 store_symval_forwarding was not called with the right second argument,
21334 thus causing objfwd-ing from being dropped.
21335
21336 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21337
21338 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21339 (Fx_display_pixel_height, Fx_display_planes)
21340 (Fx_display_color_cells, Fx_server_max_request_size)
21341 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21342 (Fx_display_visual_class, Fx_display_save_under):
21343 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21344 (Fx_display_pixel_height, Fx_display_planes)
21345 (Fx_display_color_cells, Fx_server_max_request_size)
21346 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21347 (Fx_display_mm_height, Fx_display_mm_width)
21348 (Fx_display_backing_store, Fx_display_visual_class)
21349 (Fw32_select_font, Fx_display_save_under):
21350 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21351 (Fx_display_pixel_height, Fx_display_planes)
21352 (Fx_display_color_cells, Fx_server_max_request_size)
21353 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21354 (Fx_display_save_under): Fix typos in docstrings.
21355
21356 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
21357
21358 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21359 corresponding to deleted entries; they are an implementation detail.
21360 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21361 Remove variables.
21362 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21363 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21364 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21365 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21366 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21367 (Fw32_define_rgb_color, Fw32_load_color_file)
21368 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21369 Fix typos in docstrings.
21370 (Fx_server_version): Reflow docstring.
21371 (Fw32_shell_execute): Doc fixes.
21372
21373 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
21374
21375 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21376 if w32_parse_hot_key returned nil.
21377
21378 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21379
21380 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21381
21382 2007-11-09 Jason Rumney <jasonr@gnu.org>
21383
21384 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21385
21386 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21387
21388 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21389 Remove W32_SCROLL_BAR_CLICK_EVENT.
21390
21391 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21392 Add MULTIMEDIA_KEY_EVENT.
21393
21394 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21395 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21396 (make_lispy_event) [WINDOWSNT]: Use it to translate
21397 MULTIMEDIA_KEY_EVENT.
21398
21399 * w32term.h (WM_APPCOMMAND): Define if not already.
21400 (GET_APPCOMMAND_LPARAM): Likewise.
21401
21402 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21403 WM_APPCOMMAND.
21404
21405 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21406 (syms_of_w32fns): Export and initialize it.
21407 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21408
21409 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
21410
21411 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21412 twice.
21413
21414 * xdisp.c (handle_face_prop): Fix last change.
21415
21416 2007-11-09 Richard Stallman <rms@gnu.org>
21417
21418 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21419 not just for after-strings and before-strings.
21420 Call face_for_overlay_string and pass the overlay to it.
21421 (handle_display_prop): Determine whether property came from an overlay.
21422 Pass OVERLAY arg to handle_single_display_spec.
21423 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21424 (load_overlay_strings): Fill in it->string_overlays.
21425 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21426
21427 * xfaces.c (face_for_overlay_string): Function renamed from
21428 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21429
21430 * dispextern.h (struct it): New elt string_overlays.
21431 New elt from_overlay, also in stack.
21432 Rearrange a few elements.
21433 (face_for_overlay_string): Decl renamed from
21434 face_at_buffer_position_no_overlays, and add argument.
21435
21436 2007-11-09 Richard Stallman <rms@gnu.org>
21437
21438 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21439 to get the base face for an overlay string.
21440
21441 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21442
21443 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21444
21445 * xdisp.c (handle_stop): Move some code out of loop.
21446
21447 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21448
21449 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21450 Fix conversion from Lisp object to ATSUFontID.
21451
21452 2007-11-09 Jason Rumney <jasonr@gnu.org>
21453
21454 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21455
21456 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21457
21458 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21459 Don't assume regions are aligned to page boundary.
21460 (print_load_command_name): Add LC_UUID if defined.
21461
21462 2007-11-09 Richard Stallman <rms@gnu.org>
21463
21464 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21465
21466 2007-11-07 Jason Rumney <jasonr@gnu.org>
21467
21468 * s/windows95.h: Remove.
21469
21470 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21471
21472 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21473 abort with a message on unhandled store_type values.
21474
21475 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21476
21477 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21478 Remove HAVE_X11R5 and HAVE_X11R4.
21479
21480 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21481
21482 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21483
21484 2007-11-01 Johan Bockgård <bojohan@gnu.org>
21485
21486 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21487 Don't set s->stippled_p here, since it has already been set by
21488 x_set_glyph_string_gc from x_draw_glyph_string.
21489
21490 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21491
21492 * sunfns.c: Remove file.
21493
21494 * m/sun386.h:
21495 * m/sun2.h:
21496 * m/sparc.h: Remove Sun windows code.
21497
21498 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21499
21500 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21501 (init_keyboard): Set current_kboard's window-system to nil.
21502 (tty_read_avail_input): Typo.
21503 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21504
21505 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21506
21507 * s/usg5-4.h:
21508 * s/usg5-3.h:
21509 * s/ptx.h:
21510 * m/is386.h:
21511 * m/ibmps2-aix.h:
21512 * Makefile.in: Remove all mentions of X10.
21513
21514 * dispnew.c (syms_of_display): Don't mention version 10.
21515
21516 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
21517
21518 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21519 ($(BLD)/abbrev.$(O)): Remove.
21520
21521 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21522
21523 Rewrite abbrev.c in Elisp.
21524 * image.c (Qcount): Don't declare as extern.
21525 (syms_of_image): Initialize and staticpro `Qcount'.
21526 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21527 * emacs.c (main): Don't call syms_of_abbrev.
21528 * Makefile.in (obj): Remove abbrev.o.
21529 (abbrev.o): Remove.
21530 * abbrev.c: Remove.
21531
21532 2007-10-26 Martin Rudalics <rudalics@gmx.at>
21533
21534 * window.c (window_min_size_2): Don't count header-line.
21535
21536 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21537
21538 * frame.h (struct frame): Move all bit fields after the first bit
21539 field to take advantage of the available space. Group all the
21540 chars together to reduce wasted space due to padding.
21541
21542 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
21543
21544 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21545
21546 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21547 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21548 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21549 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21550 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21551 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21552 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21553 (last_marked, mark_object_loop_halt): Make static.
21554
21555 * frame.c (syms_of_frame) <delete-frame-functions>:
21556 Fix typo in docstring.
21557
21558 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
21559
21560 * w32.c (init_environment): Fix tiny memory leak.
21561 (w32_get_resource): Remove unused variable `ok'.
21562
21563 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21564
21565 Make `window-system' into a keyboard-local variable (rather than
21566 frame-local as done originally by multi-tty).
21567
21568 * keyboard.h (struct kboard): Add Vwindow_system.
21569 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21570 (mark_kboards): Mark Vwindow_system.
21571
21572 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21573 (init_display): Don't set the obsolete `window-system' frame-param.
21574
21575 * xterm.c (x_term_init):
21576 * w32term.c (w32_create_terminal):
21577 * term.c (init_tty): Set Vwindow_system.
21578 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21579 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21580
21581 * xfns.c (Fx_create_frame, x_create_tip_frame):
21582 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21583 * macfns.c (Fx_create_frame):
21584 Don't set the obsolete `window-system' frame-param.
21585
21586 * frame.h (Qwindow_system): Remove.
21587 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21588 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21589
21590 2007-10-24 Richard Stallman <rms@gnu.org>
21591
21592 * frame.c (x_figure_window_size): For fullscreen case,
21593 set USPosition | PPosition without clobbering rest of window_prompting.
21594
21595 * keyboard.c (Fcurrent_idle_time): Doc fix.
21596
21597 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21598
21599 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21600
21601 * process.c (unwind_request_sigio): Only define if __ultrix__.
21602
21603 * callproc.c (child_setup): Remove spurious *.
21604
21605 * lisp.h (Fget_text_property): Declare.
21606 (have_menus_p): Declare it here rather than in sys-dep header files.
21607 * macterm.h (have_menus_p):
21608 * msdos.h (have_menus_p):
21609 * xterm.h (have_menus_p): Remove.
21610
21611 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21612 (Fmake_variable_frame_local): Just check the variable's const-ness
21613 rather than checking nil or t.
21614
21615 2007-10-22 Jason Rumney <jasonr@gnu.org>
21616
21617 * w32fns.c: Include math.h.
21618 (w32_abort): Declaration moved to nt/config.nt.
21619
21620 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21621 (abort): Redefinition moved to nt/config.nt.
21622
21623 * m/windowsnt.h: Remove.
21624
21625 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
21626
21627 * emacs.c (Fdump_emacs): Fix typo in message.
21628 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21629 <installation-directory>: Reflow docstring.
21630
21631 2007-10-22 Juri Linkov <juri@jurta.org>
21632
21633 * minibuf.c: Allow minibuffer default to be a list of default values.
21634 With empty input use the first element of this list as returned default.
21635 (string_to_object)
21636 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21637 (read_minibuf): If defalt is cons, set histstring to its car.
21638 (Fread_string): If default_value is cons, set val to its car.
21639 (Fread_buffer): If def is cons, use its car.
21640 (Fcompleting_read): If defalt is cons, set val to its car.
21641
21642 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
21643
21644 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21645
21646 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
21647
21648 * doc.c (Fdocumentation): Check for advice in all cases.
21649
21650 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
21651
21652 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21653
21654 2007-10-19 Richard Stallman <rms@gnu.org>
21655
21656 * doc.c (Fdocumentation): Check for and handle an advised function.
21657
21658 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
21659
21660 * process.c (Fset_process_filter): Doc fix.
21661
21662 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21663
21664 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21665 which caused key-translation-map to applied repeatedly (thus breaking
21666 double-mode).
21667
21668 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21669
21670 * xselect.c (x_own_selection, x_handle_selection_clear)
21671 (x_clear_frame_selections):
21672 * w32menu.c (list_of_panes, list_of_items):
21673 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21674 * textprop.c (validate_plist, interval_has_all_properties)
21675 (interval_has_some_properties, interval_has_some_properties_list)
21676 (add_properties, text_property_list):
21677 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21678 * minibuf.c (Fassoc_string):
21679 * macselect.c (x_own_selection, x_clear_frame_selections)
21680 (Fx_disown_selection_internal):
21681 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21682 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21683
21684 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
21685
21686 * process.c: Link to libs for calling res_init() if available.
21687 (Fmake_network_process): Call res_init() before getaddrinfo or
21688 gethostbyname, if possible.
21689
21690 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21691
21692 * lread.c (read1): Set pvectype for char_tables.
21693
21694 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21695 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21696 Add type checks.
21697 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21698
21699 * alloc.c (free_misc): Use XMISCTYPE.
21700 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21701
21702 2007-10-17 Glenn Morris <rgm@gnu.org>
21703
21704 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21705 (syms_of_minibuf): Add Qcompletion_ignore_case.
21706 * dired.c (Qcompletion_ignore_case): Change to external.
21707 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21708 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21709 (Fread_file_name): Use it rather than intern'ing.
21710
21711 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21712 (Fread_coding_system): Ignore case of user input.
21713
21714 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21715
21716 * xdisp.c (handle_display_prop): Ignore display specs after
21717 replacing one when string text is being replaced.
21718 (handle_single_display_spec): Pretend as if characters with display
21719 property haven't been consumed only when buffer text is being replaced.
21720
21721 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21722
21723 * xfns.c (Fx_create_frame, Fx_display_list):
21724 * window.c (window_fixed_size_p, enlarge_window)
21725 (shrink_window_lowest_first):
21726 * macterm.c (init_font_name_table):
21727 * macfns.c (Fx_create_frame, Fx_display_list):
21728 * lread.c (close_load_descs):
21729 * keyboard.c (read_char_x_menu_prompt):
21730 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21731 * coding.c (code_convert_region_unwind): Test the type of an object
21732 rather than just !NILP before extracting data from it.
21733
21734 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21735
21736 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21737 (XMISCANY): New macro.
21738 (XMISCTYPE): Use it.
21739 (struct Lisp_Misc_Any): New type.
21740 (union Lisp_Misc): Use it.
21741 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21742 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21743 (find_symbol_value, set_internal, default_value, Fset_default)
21744 (Fmake_variable_buffer_local, Fmake_local_variable)
21745 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21746 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21747 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21748 * alloc.c (allocate_buffer): Set the size and tag.
21749 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21750 Use XMISCANY.
21751 (die): Follow the GNU convention for error messages.
21752 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21753 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21754 tag any more.
21755 (set_buffer_internal_1):
21756 * frame.c (store_frame_param):
21757 * eval.c (specbind):
21758 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21759
21760 * doc.c (Fsnarf_documentation): Simplify.
21761
21762 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21763
21764 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21765 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21766
21767 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21768
21769 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21770
21771 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
21772
21773 * eval.c (do_autoload): Don't save autoloads.
21774
21775 * data.c (Ffset): Save autoload of the function being set.
21776
21777 2007-10-07 John Paul Wallington <jpw@pobox.com>
21778
21779 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21780 parameter before setting up faces.
21781
21782 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21783
21784 * ccl.c (Fregister_code_conversion_map):
21785 * keyboard.c (append_tool_bar_item): Reformat last change.
21786
21787 * lisp.h (eabs): Rename from `abs'. All callers changed.
21788
21789 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21790
21791 * buffer.c (add_overlay_mod_hooklist):
21792 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21793 * fontset.c (make_fontset):
21794 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21795 (append_tool_bar_item):
21796 * macmenu.c (grow_menu_items):
21797 * w32menu.c (grow_menu_items):
21798 * xmenu.c (grow_menu_items): Use larger_vector.
21799
21800 2007-10-13 Eli Zaretskii <eliz@gnu.org>
21801
21802 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21803 selected frame'' on MSDOS).
21804
21805 2007-10-12 Martin Rudalics <rudalics@gmx.at>
21806
21807 * frame.c (Qexplicit_name): New variable.
21808 (x_report_frame_params): Report it in parameter alist.
21809 (syms_of_frame): Intern and staticpro it.
21810
21811 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21812
21813 * macfns.c (x_create_tip_frame): Set terminal for frame.
21814
21815 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21816
21817 * frame.c (Qenvironment): Remove.
21818 (syms_of_frame) <Qenvironment>: Don't initialize.
21819 (Fdelete_frame): Don't treat the `environment' param specially.
21820 * frame.h (Qenvironment): Don't declare.
21821 * callproc.c (set_initial_environment): Don't set unused frame param.
21822
21823 * frame.c (Fframe_with_environment): Remove.
21824 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21825
21826 * lisp.h (Fframe_with_environment): Don't declare.
21827
21828 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
21829
21830 * indent.c (indent_tabs_mode, last_known_column)
21831 (last_known_column_modified): Make static.
21832 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21833
21834 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21835
21836 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21837
21838 2007-10-09 Jason Rumney <jasonr@gnu.org>
21839
21840 * w32term.c (x_set_window_size): Disable code that attempts to tell
21841 Lisp code about a size change before it actually happens.
21842
21843 2007-10-09 Richard Stallman <rms@gnu.org>
21844
21845 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21846 return HANDLED_RETURN.
21847
21848 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21849
21850 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21851 when there's an unread command event.
21852
21853 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21854 window autoselection act appropriately when leaving selected frame.
21855 (syms_of_frame): Initialize focus_follows_mouse.
21856 * frame.h (focus_follows_mouse): Extern it.
21857 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21858 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21859 * msdos.c (dos_rawgetc): Likewise.
21860 * w32term.c (w32_read_socket): Likewise.
21861 * xterm.c (handle_one_xevent): Likewise.
21862 * xdisp.c (syms_of_xdisp): In doc-string of
21863 mouse-autoselect-window mention focus-follows-mouse.
21864
21865 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21866
21867 * macterm.c (mac_load_query_font): Fix missing return value.
21868 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21869 Add BLOCK_INPUT.
21870
21871 2007-10-08 Richard Stallman <rms@gnu.org>
21872
21873 * xdisp.c (get_window_cursor_type): Implement documented behavior
21874 for cursor-in-non-selected-windows = t.
21875
21876 2007-10-08 Jason Rumney <jasonr@gnu.org>
21877
21878 * w32.c (w32_get_resource): Always close registry keys.
21879
21880 2007-10-08 Jason Rumney <jasonr@gnu.org>
21881
21882 * makefile.w32-in (LIBS): Add COMCTL32.
21883
21884 * w32fns.c (globals_of_w32fns): Init common controls.
21885
21886 2007-10-08 Richard Stallman <rms@gnu.org>
21887
21888 * image.c (our_memory_buffer): Rename from omfib_buffer.
21889
21890 2007-10-08 Richard Stallman <rms@gnu.org>
21891
21892 * buffer.c (Foverlays_at): Doc fix.
21893
21894 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21895
21896 * fns.c (Fplist_put): Preserve uneven tail data.
21897
21898 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21899
21900 * termhooks.h (enum event_kind): Remove trailing comma.
21901
21902 * frame.h (enum): Remove trailing comma.
21903
21904 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21905
21906 * w32proc.c (delete_child): Don't terminate threads of zombies.
21907
21908 2007-10-08 Martin Rudalics <rudalics@gmx.at>
21909
21910 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21911
21912 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21913 last-repeatable-command.
21914 (init_kboard): Initialize Vlast_repeatable_command.
21915 (command_loop_1): Set it to real_this_command unless that was
21916 bound to an input event.
21917 (mark_kboards): Mark it.
21918
21919 2007-10-08 Richard Stallman <rms@gnu.org>
21920
21921 * eval.c (condition-case): Doc fix.
21922
21923 2007-10-08 Masatake YAMATO <jet@gyve.org>
21924
21925 * xfaces.c (tty_supports_face_attributes_p): Fix code
21926 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21927 was copied and not edited.
21928
21929 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21930
21931 Add new `input-decode-map' keymap and use it for terminal
21932 escape sequences.
21933 * keyboard.h (struct kboard): Add Vinput_decode_map.
21934 Remove Vlocal_key_translation_map.
21935 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21936 (init_kboard): Init input-decode-map.
21937 Replace local-key-translation-map back with key-translation-map.
21938 (syms_of_keyboard): Declare input-decode-map.
21939 Remove local-key-translation-map. Update docstrings.
21940 (mark_kboards): Mark Vinput_decode_map.
21941 Don't mark Vlocal_key_translation_map.
21942 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21943 Replace local-key-translation-map back with key-translation-map.
21944 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21945 Bind in input-decode-map rather than function-key-map.
21946
21947 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21948 This was made redundant by the previous introduction of XSETPVECTYPE.
21949
21950 2007-10-09 Richard Stallman <rms@gnu.org>
21951
21952 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21953
21954 2007-09-29 Richard Stallman <rms@gnu.org>
21955
21956 * eval.c (internal_condition_case_2, internal_condition_case_1)
21957 (internal_condition_case): Reenable abort if x_catching_errors ()
21958 to see if that really happens and why.
21959
21960 2007-10-06 Andreas Schwab <schwab@suse.de>
21961
21962 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21963
21964 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
21965
21966 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21967
21968 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21969
21970 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21971
21972 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21973
21974 * window.h (struct window):
21975 * window.c (struct save_window_data, struct saved_window):
21976 * termhooks.h (struct terminal):
21977 * process.h (struct Lisp_Process):
21978 * frame.h (struct frame):
21979 * buffer.h (struct buffer):
21980 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21981 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21982 The size field of (pseudo)vectors is now unsigned.
21983 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21984
21985 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21986 Turn `count' into an integer.
21987
21988 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21989 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21990 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21991 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21992 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21993
21994 * alloc.c (allocate_pseudovector): New fun.
21995 (ALLOCATE_PSEUDOVECTOR): New macro.
21996 (allocate_window, allocate_terminal, allocate_frame)
21997 (allocate_process): Use it.
21998 (mark_vectorlike): New function.
21999 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
22000 (mark_terminals): Use it.
22001 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
22002 (Fmake_byte_code): Use XSETPVECTYPE.
22003
22004 * frame.c (Fframe_parameters): Minor simplification.
22005
22006 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
22007
22008 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
22009
22010 * buffer.c (Fget_buffer_create, init_buffer_once):
22011 * lread.c (defsubr):
22012 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22013
22014 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22015 defined differently in the m/*.h files.
22016 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22017 (XSETPVECTYPE): New macro.
22018 (XSETPSEUDOVECTOR): Use it.
22019
22020 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22021 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22022
22023 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22024 * lread.c (defvar_per_buffer):
22025 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22026
22027 * window.c (candidate_window_p): Only consider as visible frames that
22028 are on the same terminal.
22029
22030 * m/ibms390x.h (MARKBIT): Remove unused macro.
22031
22032 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
22033
22034 * lread.c (Fload): Fix typo in docstring.
22035
22036 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22037
22038 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22039 of a non-zero value can't yield zero.
22040
22041 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22042
22043 * term.c (term_clear_mouse_face, term_mouse_highlight)
22044 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22045
22046 * print.c (safe_debug_print): Use XHASH.
22047
22048 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22049 Lisp elements such as tags.
22050 (XHASH): New macro.
22051 (EQ): Use it.
22052 (SREF, SSET, STRING_COPYIN): Use SDATA.
22053 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22054
22055 * alloc.c (mark_terminal): Remove left-over declaration.
22056 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22057 (allocate_vectorlike): Remove type argument. Adjust callers.
22058 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22059 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22060
22061 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22062 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22063 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22064 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22065 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22066 Use them.
22067
22068 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22069 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22070 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22071
22072 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22073
22074 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22075 loaded by default.
22076
22077 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22078
22079 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22080 on this tty.
22081 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22082
22083 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22084 Update all users.
22085 (handle_one_term_event): Use Gpm_DrawPointer.
22086 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22087 Signal errors instead of returning nil. Always return nil.
22088 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22089 Make it a noop if gpm-mouse was not activated.
22090 (syms_of_term): Update names.
22091
22092 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22093
22094 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22095 (init_sys_modes): Check that gpm_tty is the current tty.
22096
22097 * alloc.c (allocate_terminal): Set the vector size to only count the
22098 lisp fields. Initialize those to nil.
22099 (mark_object): Don't treat terminals specially.
22100 (mark_terminal): Remove.
22101 (mark_terminals): Use mark_object instead.
22102
22103 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22104 the GC to the beginning.
22105
22106 * indent.h:
22107 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22108
22109 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22110
22111 2007-09-25 Jason Rumney <jasonr@gnu.org>
22112
22113 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22114
22115 * w32console.c (create_w32cons_output): Remove.
22116
22117 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22118
22119 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22120 (reset_sys_modes): Use reset_terminal_modes_hook.
22121
22122 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22123
22124 * eval.c (do_autoload): Don't output any message.
22125
22126 2007-09-24 Juri Linkov <juri@jurta.org>
22127
22128 * emacs.c (standard_args): Change priority of "--no-splash"
22129 from 40 to 3. Add "--no-desktop" with the same priority.
22130
22131 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22132
22133 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22134 and optimize the case where they are all 1.
22135
22136 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
22137
22138 * lisp.h (abs): Define if not defined.
22139 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22140 Don't define `abs', since it's defined in lisp.h.
22141
22142 2007-09-22 Eli Zaretskii <eliz@gnu.org>
22143
22144 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22145 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22146 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22147 (init_tty): Use DEV_TTY instead of "/dev/tty".
22148 [WINDOWSNT]: No need to protect from NAME arg being null.
22149
22150 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22151
22152 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22153 up the tty state.
22154
22155 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22156
22157 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22158 (gpm_tty): Change its type.
22159 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22160 (gpm_tty): Change its type and initialize it.
22161 (Fterm_open_connection): Check the frame is indeed a tty.
22162 Use the new gpm_tty.
22163 (Fterm_close_connection): Use the new gpm_tty.
22164 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22165 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22166
22167 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
22168
22169 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22170 underline_color, to draw strike-through.
22171
22172 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22173
22174 * lisp.h (allocate_terminal): Declare.
22175
22176 * window.c (candidate_window_p): Consider frames that are being placed
22177 by the user as somewhere between visible and iconified.
22178 (window_loop): Prefer windows on the current frame.
22179 (Fselect_window): Move the use of select-frame to the beginning so we
22180 can just delegate all the work (it'll call us back anyway).
22181
22182 * frame.c (Qdisplay_environment_variable):
22183 * frame.h (Qdisplay_environment_variable): Delete.
22184
22185 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22186 of the first arg, since that value may be a union.
22187
22188 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22189 parameter rather than Qdisplay_environment_variable. If all else
22190 fails, look for DISPLAY in initial-environment.
22191
22192 2007-09-21 Glenn Morris <rgm@gnu.org>
22193
22194 * Makefile.in (emacstool): Remove target.
22195 (lisp, shortlisp): Remove termdev.elc.
22196
22197 2007-09-21 Markus Triska <markus.triska@gmx.at>
22198
22199 * xterm.c (x_delete_display): Compile session management conditionally.
22200
22201 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22202
22203 * callproc.c (getenv_internal_1): New function.
22204 (getenv_internal): Use it.
22205 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22206
22207 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22208 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22209 (Fset_terminal_parameter): Work with dead terminals as well.
22210 (Fmodify_terminal_parameters): Remove.
22211
22212 * terminal.c (get_terminal): Handle terminals.
22213 Make sure the terminal returned is live.
22214 (create_terminal): Use allocate_terminal.
22215 (mark_terminals): Move to alloc.c.
22216 (delete_terminal): Use terminal->name as liveness status.
22217 NULL out fields after freeing their contents.
22218 Don't deallocate the object.
22219 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22220 rather than an int.
22221 (Fterminal_live_p): Accept non-integer arguments.
22222 (Fterminal_list): Return terminal objects rather than an ints.
22223
22224 * alloc.c (enum mem_type): New member for `terminal' objects.
22225 (allocate_terminal): New function.
22226 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22227 Handle terminals.
22228 (mark_terminal): New fun.
22229 (mark_terminals): Move from terminal.c.
22230
22231 * term.c (get_tty_terminal): Don't treat output_initial specially.
22232 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22233 (delete_tty): Use terminal->name as liveness status.
22234
22235 * termhooks.h (struct terminal): Make it into a pseudovector.
22236 Remove `deleted' replaced by checking `name's nullness.
22237
22238 * print.c (print_object): Handle terminals.
22239
22240 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22241 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22242
22243 * frame.c (make_terminal_frame):
22244 * keyboard.c (tty_read_avail_input):
22245 * w32term.c (x_delete_terminal):
22246 * xfns.c (Fx_create_frame, x_create_tip_frame):
22247 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22248
22249 2007-09-20 Glenn Morris <rgm@gnu.org>
22250
22251 * process.c (Fmake_network_process): Doc fix.
22252
22253 2007-09-19 Jason Rumney <jasonr@gnu.org>
22254
22255 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22256
22257 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22258
22259 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22260 Fix a C warning regarding variable constness.
22261
22262 * xterm.c (handle_one_xevent): Fix a C warning.
22263
22264 2007-09-18 Jason Rumney <jasonr@gnu.org>
22265
22266 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22267
22268 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22269
22270 * gtkutil.c (gdpy_def): New variable.
22271 (xg_initialize): Initialize gdpy_def.
22272 (xg_display_close): If no other display exists, set gdpy_def to a
22273 new connection.
22274
22275 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22276
22277 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22278 when we have no file name for the icon.
22279 (xg_tool_bar_expose_callback): Remove.
22280 (xg_create_tool_bar): Don't connect expose signal to
22281 xg_tool_bar_expose_callback.
22282 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22283
22284 2007-09-16 Andreas Schwab <schwab@suse.de>
22285
22286 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22287 values instead of zapping them.
22288
22289 2007-09-14 Glenn Morris <rgm@gnu.org>
22290
22291 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22292 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22293 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22294 scope and rename to omfib_buffer for clarity.
22295 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22296
22297 2007-09-14 Kenichi Handa <handa@m17n.org>
22298
22299 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22300
22301 2007-09-13 Jason Rumney <jasonr@gnu.org>
22302
22303 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22304
22305 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22306
22307 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22308 (mac_term_init): Call here instead, passing rif.
22309
22310 2007-09-13 Glenn Morris <rgm@gnu.org>
22311
22312 * s/hpux.h: No longer define `static' as nothing.
22313
22314 2007-09-13 Johan Bockgård <bojohan@gnu.org>
22315
22316 * callint.c (Fcall_interactively): Remove unused var `fun'.
22317
22318 2007-09-12 Romain Francoise <romain@orebokech.com>
22319
22320 * window.c (prefer_window_split_horizontally, display_buffer):
22321 Revert 2007-09-08 change.
22322
22323 2007-09-12 Glenn Morris <rgm@gnu.org>
22324
22325 * alloca.c: Remove file.
22326 * Makefile.in (alloca): Do not undef.
22327 (allocaobj, alloca.o): Remove.
22328 (otherobj): Remove allocaobj.
22329 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22330 * regex.c (C_ALLOCA): Remove all references and code that was only
22331 used when this was defined.
22332 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22333 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22334 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22335
22336 * Makefile.in (SOURCES, unlock, relock): Delete.
22337
22338 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22339 (menu_grab_callback): All uses changed.
22340
22341 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22342 (x_reply_selection_request): All uses changed.
22343
22344 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22345
22346 * lread.c (load_warn_old_style_backquotes): Change message to look
22347 better when it appears in the middle of byte-compiler messages.
22348
22349 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22350
22351 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22352
22353 * xterm.c (x_create_terminal): Add comment.
22354
22355 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22356
22357 2007-09-10 Richard Stallman <rms@gnu.org>
22358
22359 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22360
22361 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22362
22363 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22364 (DEFUN): Document `intspec', use it instead of `prompt'.
22365
22366 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22367
22368 * data.c (Finteractive_form): If the interactive specification starts
22369 with a `(', use it as a Lisp form.
22370
22371 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22372 name and file modes.
22373
22374 * callint.c (Fcall_interactively): Comment fixes.
22375
22376 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22377
22378 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22379 and compiled functions.
22380
22381 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22382
22383 * window.c (prefer_window_split_horizontally): New variable.
22384 (display_buffer): Consider splitting window horizontally depending
22385 on prefer_window_split_horizontally.
22386
22387 2007-09-08 Eli Zaretskii <eliz@gnu.org>
22388
22389 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22390
22391 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22392
22393 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22394
22395 * frame.c (x_set_frame_parameters): Check number is positive before
22396 using XFASTINT.
22397
22398 * window.c (freeze_window_start): Don't presume selected_window holds
22399 a window object.
22400 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22401
22402 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22403
22404 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22405
22406 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22407
22408 * window.c (Vsplit_window_preferred_function): New var.
22409 (Fdisplay_buffer): Use it.
22410 (syms_of_window): Export, and initialize it.
22411
22412 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22413
22414 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22415
22416 2007-09-06 Glenn Morris <rgm@gnu.org>
22417
22418 * gtkutil.c (menu_grab_callback) <cnt>:
22419 * xselect.c (x_reply_selection_request) <cnt>: Move static
22420 variable to file scope.
22421
22422 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22423
22424 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22425 consistent values of selected_frame and selected_window.
22426
22427 2007-09-04 Jason Rumney <jasonr@gnu.org>
22428
22429 * w32console.c (initialize_w32_display): Zero unused hooks.
22430
22431 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22432
22433 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22434 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22435
22436 2007-09-04 Jason Rumney <jasonr@gnu.org>
22437
22438 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22439 in w32console.c. Set up input. Remove XXX comments that have been
22440 confirmed as correct.
22441
22442 * s/ms-w32.h (MULTI_KBOARD): Define.
22443
22444 * w32console.c (one_and_only_w32cons): Remove.
22445 (initialize_w32_display): Take terminal argument.
22446
22447 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22448 initialize_w32_display.
22449 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22450
22451 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22452
22453 * keyboard.c (discard_mouse_events): Discard it.
22454 (make_lispy_event): Translate it to a lisp event.
22455 (lispy_wheel_names): Add wheel-left and right events.
22456 (syms_of_keyboard): Enlarge wheel_syms.
22457
22458 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22459 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22460
22461 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22462
22463 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22464 from WM_MOUSEHWHEEL.
22465 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22466
22467 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22468 terminal.
22469
22470 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22471 keyboard for the terminal.
22472
22473 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22474
22475 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22476 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22477 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22478 and resume-tty-function to resume-tty-hook.
22479 (Fsuspend_tty, Fresume_tty): Use new names.
22480
22481 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22482
22483 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22484 if it starts with "n:".
22485
22486 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22487
22488 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22489
22490 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22491
22492 * frame.h:
22493 * frame.c (Qterm_environment_variable): Remove.
22494 (syms_of_frame): Don't init and staticpro it.
22495
22496 * callproc.c (getenv_internal): Remove special case for $TERM.
22497
22498 * callproc.c (Vinitial_environment): New variable.
22499 (set_initial_environment): Initialize it.
22500 (syms_of_callproc): Declare it.
22501 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22502 TERM under which a process runs is never related to the TERM in which
22503 Emacs is running.
22504
22505 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22506
22507 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22508 * s/darwin.h: ... do it here.
22509
22510 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22511
22512 * lisp.h (set_initial_environment): Rename from set_global_environment.
22513
22514 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22515 removed by mistake on the multi-tty branch.
22516
22517 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22518 (Fmodify_frame_parameters): Return a value.
22519
22520 * image.c (png_load): Comment-out var only used in commented-out code.
22521
22522 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22523 before passing it to mark_object.
22524
22525 * xfaces.c (internal_resolve_face_name): Return a value.
22526 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22527
22528 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22529 (x_icon): Comment-out var only used in commented-out code.
22530
22531 2007-08-29 Romain Francoise <romain@orebokech.com>
22532
22533 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22534 QUIT hasn't been provided.
22535
22536 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22537
22538 * callproc.c (child_setup, getenv_internal): Use the
22539 display-environment-variable and term-environment-variable frame params.
22540 (set_initial_environment): Initialise Vprocess_environment.
22541
22542 * config.in: Disable multi-keyboard support on a mac.
22543
22544 * frame.c (Qterm_environment_variable)
22545 (Qdisplay_environment_variable): New variables.
22546 (syms_of_frame): Intern and staticpro them.
22547 (Fmake_terminal_frame): Disable output method test.
22548
22549 * frame.h: Declare them here.
22550
22551 * macfns.c (x_set_mouse_color): Get rif from the frame.
22552 (x_set_tool_bar_lines): Don't use updating_frame.
22553 (mac_window): Add 2 new parameters for consistency with other systems.
22554 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22555 frame parameters following what is done in X11 and w32. Don't use
22556 FRAME_MAC_DISPLAY_INFO.
22557 (Fx_open_connection, start_hourglass): Remove window-system check.
22558 (x_create_tip_frame): Get the keyboard from the terminal.
22559
22560 * macmenu.c: Reorder includes.
22561 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22562
22563 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22564 terminal parameter.
22565 (x_clear_frame): Add a frame parameter.
22566 (note_mouse_movement): Get rif from the frame.
22567 (mac_term_init): Initialize the terminal.
22568 (mac_initialize): Make static and move terminal initialization ...
22569 (mac_create_terminal): ... to this new function.
22570
22571 * macterm.h (struct mac_display_info): Add terminal.
22572 (mac_initialize): Delete declaration.
22573
22574 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22575
22576 * sysdep.c: Comment out text after #endif.
22577
22578 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22579 is defined. Better initialize ttys in windows. Use terminal
22580 specific mouse_position_hook.
22581
22582 * termhooks.h (union display_info): Add mac_display_info.
22583
22584 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22585 Set the default minibuffer frame, window_system and the rest of the
22586 frame parameters following what is done in X11.
22587
22588 * w32term.c (w32_initialize): Make static.
22589
22590 * xselect.c (x_handle_selection_clear): Only access
22591 terminal->kboard when MULTI_KBOARD is defined.
22592
22593 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22594 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22595
22596 2007-08-29 Jason Rumney <jasonr@gnu.org>
22597
22598 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22599 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22600
22601 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22602 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22603
22604 * keyboard.c (restore_kboard_configuration): Only define when
22605 MULTI_KBOARD defined.
22606
22607 * makefile.w32-in: Update dependancies from Makefile.in.
22608 (OBJ1): Add terminal.$(O)
22609
22610 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22611 Don't define function body.
22612 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22613
22614 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22615
22616 * w32.c (request_sigio, unrequest_sigio): Remove.
22617
22618 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22619 (w32con_clear_frame, w32con_clear_end_of_line)
22620 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22621 (w32con_delete_glyphs, w32con_set_terminal_window)
22622 (scroll_line, w32_sys_ring_bell): Add frame arg.
22623 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22624 Add terminal arg.
22625 (PICK_FRAME): Remove.
22626 (w32con_write_glyphs): Use frame specific terminal coding.
22627 (one_and_only_w32cons): New global variable.
22628 (initialize_w32_display): Use it for storing hooks.
22629 (create_w32cons_output): New function.
22630
22631 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22632 arg a frame.
22633
22634 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22635 Set window_system.
22636 (x_set_tool_bar_lines): Don't use updating_frame.
22637 (Fx_create_frame): Set terminal and ref count.
22638 (Fx_open_connection): Remove window-system check.
22639
22640 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22641
22642 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22643 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22644 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22645 Add frame arg.
22646 (x_delete_terminal, w32_create_terminal): New functions.
22647 (w32_term_init): Create a terminal.
22648 (w32_initialize): Move terminal specific initialization to
22649 w32_create_terminal.
22650
22651 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22652 (w32_clear_rect, w32_clear_area): Use background from frame.
22653 (w32_display_info): Add terminal.
22654 (w32_sys_ring_bell, x_delete_display): Declare here.
22655
22656 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22657
22658 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22659
22660 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22661
22662 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22663 Fix get_named_tty calls for the controlling tty.
22664
22665 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22666
22667 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
22668
22669 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22670
22671 * term.c (tty_insert_glyphs): Add missing first parameter.
22672
22673 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22674
22675 * buffer.c (Fbuffer_list, Fbury_buffer):
22676 Take frame->buried_buffer_list into account.
22677
22678 * cm.c (current_tty): New variable, for cmputc().
22679 (cmputc): Use it.
22680 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22681 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22682 (cmgoto): Add tty parameter. Pass it on to calccost().
22683 Use emacs_tputs() instead of tputs().
22684
22685 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22686 tputs().
22687 (current_tty): New variable, for cmputc().
22688 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22689
22690 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22691 (internal_condition_case, internal_condition_case_1)
22692 (internal_condition_case_2): Don't abort when x_catching_errors.
22693
22694 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22695 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22696 prevent crashes caused by bogus longjmps in read_char.
22697
22698 * keymap.h (Fset_keymap_parent): Add EXFUN.
22699
22700 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22701 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22702 Remove redundant definition.
22703
22704 * macfns.c (x_set_mouse_color, x_make_gc):
22705 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22706
22707 * w32term.c (x_free_frame_resources):
22708 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22709 (w32_initialize): Use the accessor macros for terminal characteristics.
22710
22711 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22712 Use the accessor macros for terminal characteristics.
22713 * msdos.c (internal_terminal_init): Use the accessor macros for
22714 terminal characteristics.
22715 (ScreenVisualBell, internal_terminal_init):
22716 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22717
22718 * termopts.h (no_redraw_on_reenter): Declare.
22719
22720 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22721 (mark_terminals, mark_ttys): Declare.
22722 (Fgarbage_collect): Call them.
22723 (mark_object): Mark buried_buffer_list.
22724
22725 * prefix-args.c: Include stdlib.h for exit.
22726
22727 * syssignal.h: Add comment.
22728
22729 * indent.c: Include stdio.h.
22730
22731 * window.h (Vinitial_window_system): Declare.
22732 (Vwindow_system): Delete declaration.
22733
22734 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22735
22736 * image.c (lookup_image): Don't initialize `c' until the xasserts
22737 have been run.
22738
22739 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22740 FRAME_FOREGROUND_PIXEL.
22741
22742 * print.c (print_preprocess): Don't lose print_depth levels while
22743 iterating.
22744
22745 * widget.c (update_from_various_frame_slots):
22746 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22747
22748 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22749 frames.
22750 (window_internal_height): Remove bogus make_number call.
22751 (init_window_once): Call make_terminal_frame with two zero parameters.
22752
22753 * fileio.c (Fread_file_name): Update comment.
22754
22755 * callint.c (Fcall_interactively):
22756 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22757 Make sure it is correctly unwound.
22758
22759 * xsmfns.c (x_session_close): New function.
22760
22761 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22762 Delete declarations.
22763
22764 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22765 (x_output): Remove background_pixel and foreground_pixel fields.
22766 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22767 (x_delete_device, x_session_close): Declare.
22768
22769 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22770 (read_filtered_event): Call `read_char' with a local
22771 `wrong_kboard_jmpbuf'.
22772
22773 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22774 Don't call single_kboard_state. Use FRAME_RIF.
22775
22776 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22777 systems.
22778
22779 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22780 (Fframe_with_environment, Fset_input_meta_mode)
22781 (Fset_quit_char): EXFUN.
22782 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22783 (init_sys_modes, reset_sys_modes): Update prototypes.
22784 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22785
22786 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22787 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22788 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22789 Delete declarations.
22790 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22791 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22792 New declarations.
22793
22794 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22795 already does that during init_display(). Call syms_of_keymap
22796 before syms_of_keyboard. Call `syms_of_terminal'.
22797 Call set_initial_environment, not set_process_environment.
22798 (shut_down_emacs): Call reset_all_sys_modes() instead of
22799 reset_sys_modes().
22800
22801 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22802 (internal_resolve_face_name, resolve_face_name_error): New functions.
22803 (resolve_face_name): Protect against loops and errors thrown by Fget.
22804 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22805 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22806
22807 * scroll.c: Replace CURTTY() with local variables throughout the
22808 file (where applicable).
22809 (calculate_scrolling, calculate_direct_scrolling)
22810 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22811 characteristics.
22812
22813 * keymap.c (Vfunction_key_map): Remove.
22814 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22815 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22816 (Vkey_translation_map): Remove.
22817 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22818 (Fdescribe_buffer_bindings)
22819 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22820 Update for terminal-local key-translation-map.
22821
22822 * Makefile.in (callproc.o): Update dependencies.
22823 (lisp, shortlisp): Add termdev.elc.
22824 (obj): Add terminal.o.
22825 (terminal.o): Add dependencies.
22826 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22827 (data.o, fns.o): Add termhooks.h dependency.
22828 (SOME_MACHINE_LISP): Add dnd.elc.
22829 (minibuf.o): Fix typo.
22830 Update dependencies.
22831
22832 * data.c (do_symval_forwarding, store_symval_forwarding)
22833 (find_symbol_value): Use the selected frame's keyboard, not
22834 current_kboard.
22835
22836 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22837 Vwindow_system.
22838
22839 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22840 Fmenu_bar_open.
22841 (syms_of_xmenu): Update defsubr.
22842 (mouse_position_for_popup, Fx_popup_menu)
22843 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22844 (set_frame_menubar, free_frame_menubar)
22845 (create_and_show_popup_menu, xmenu_show)
22846 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22847 an X frame.
22848
22849 * xselect.c (x_own_selection): Abort if not an X frame.
22850 (some_frame_on_display): Check if it is an X frame.
22851 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22852
22853 * coding.c: Include frame.h and termhooks.h.
22854 (terminal_coding, keyboard_coding): Delete.
22855 (Fset_terminal_coding_system_internal)
22856 (Fset_keyboard_coding_system_internal)
22857 (Fkeyboard_coding_system)
22858 (Fterminal_coding_system): Add a terminal parameter.
22859 Get terminal_coding from the terminal.
22860 (init_coding_once): Don't call setup_coding_system here.
22861
22862 * dispextern.h (set_scroll_region, turn_off_insert)
22863 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22864 (tty_clear_end_of_line, tty_setup_colors)
22865 (delete_tty, updating_frame)
22866 (produce_special_glyphs, produce_glyphs, write_glyphs)
22867 (insert_glyphs): Remove.
22868 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22869 (tty_turn_off_highlight, get_tty_size): Add declaration.
22870 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22871
22872 * frame.h (enum output_method): Add output_initial.
22873 (struct x_output): Delete.
22874 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22875 Access foreground_pixel and background_pixel directly from the frame.
22876 (tty_display): Delete.
22877 (struct frame): Add buried_buffer_list, foreground_pixel,
22878 background_pixel and terminal. Delete kboard.
22879 (union output_data): Add tty.
22880 (FRAME_KBOARD): Get the kboard from the terminal.
22881 (FRAME_INITIAL_P): New macro.
22882 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22883 (Qterm_environment_variable, Qdisplay_environment_variable)
22884 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22885 New declarations.
22886
22887 * termchar.h (tty_output, tty_display_info): New structures.
22888 (tty_list): Declare.
22889 (FRAME_TTY, CURTTY): New macros.
22890 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22891 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22892 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22893 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22894
22895 * callproc.c: Include frame.h and termhooks.h, for terminal
22896 parameters.
22897 (add_env): New function.
22898 (child_setup): Use it.
22899 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22900 (getenv_internal): Fix get_terminal_param call.
22901 (Fgetenv_internal, egetenv): Update doc.
22902 (syms_of_callproc): Initialize Vprocess_environment to nil.
22903 Register and initialize them. Remove obsolete defvars. Update doc
22904 strings.
22905 (child_setup): Handle Vlocal_environment_variables.
22906 (getenv_internal): Add terminal parameter.
22907 Handle Vlocal_environment_variables.
22908 (Fgetenv_internal): Add terminal parameter.
22909 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22910 environment in a frame (not terminal) parameter. Update doc strings.
22911 (set_initial_environment): Rename from set_global_environment.
22912 Store Emacs environment in initial frame parameter.
22913
22914 * xdisp.c (redisplay_internal): Update references to
22915 `previous_terminal_frame'.
22916 (display_mode_line, Fformat_mode_line): Replace calls to
22917 `push_frame_kboard' with `push_kboard'.
22918 (get_glyph_string_clip_rects): Add extra parentheses and
22919 braces to prevent compiler warnings.
22920 (calc_pixel_width_or_height): Add xassert to check that the
22921 frame is alive. Don't call `lookup_image' on a termcap frame.
22922 (message2_nolog, message3_nolog, redisplay_internal)
22923 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22924 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22925 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22926 (Fx_display_pixel_width, Fx_display_pixel_height)
22927 (Fx_display_planes, Fx_display_color_cells)
22928 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22929 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22930 (Fx_display_backing_store, Fx_display_visual_class)
22931 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22932 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22933
22934 * xfns.c (x_set_foreground_color x_set_background_color)
22935 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22936 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22937 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22938 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22939 terminal that is being deleted.
22940 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22941 frame parameter, and make sure it overrides any user-supplied setting.
22942 (Fx_close_connection, Fx_synchronize): Unify argument names with
22943 the rest of the DEFUNs.
22944
22945 * dispnew.c (Fsend_string_to_terminal): Update call to
22946 `get_tty_terminal'.
22947 (Fredraw_frame, Fsend_string_to_terminal)
22948 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22949 FRAME_TERMCAP_P and FRAME_TTY.
22950 (window_change_signal): Don't believe width/height values that are
22951 impossibly small.
22952 (Vinitial_window_system): Rename from Vwindow_system.
22953 (termscript, Wcm, rif): Delete.
22954
22955 * termhooks.h (struct terminal): New struct containing the
22956 previously global text display hooks and new members NAME,
22957 DELETED and PARAM_ALIST.
22958 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22959 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22960 (FRAME_RIF): New macros.
22961 (get_terminal_param, get_device): New declarations.
22962 (termscript): Delete declaration.
22963
22964 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22965 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22966 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22967 FRAME_FOREGROUND_PIXEL.
22968 (x_fully_uncatch_errors): Disable definition.
22969 (x_scroll_bar_expose): Fix reference to foreground pixel.
22970 (XTread_socket): Disable loop on all X displays.
22971 (x_delete_terminal): Don't set terminal->deleted and let
22972 delete_terminal delete the frames on the terminal.
22973 (x_delete_display): Doc update to reflect changes in
22974 delete_terminal.
22975 (x_display_info) <terminal>: Move member earlier in the struct.
22976 (deleting_tty): Remove old variable.
22977 (Fsuspend_tty): Call clear_tty_hooks.
22978 (Fresume_tty, init_tty): Call set_tty_hooks.
22979 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22980 errors on X frames.
22981 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22982 (handle_one_xevent): Initialize `f' to NULL.
22983 (x_delete_terminal, x_create_terminal): New functions.
22984 (XTset_terminal_modes, XTreset_terminal_modes)
22985 (XTread_socket, x_connection_closed, x_term_init)
22986 (x_term_init, x_delete_display): Add terminal parameter.
22987 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22988 X connections.
22989
22990 * frame.c: Include termchar.h.
22991 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22992 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22993 (Qdisplay_environment_variable): New vars.
22994 (Fframep): Deal with output_initial.
22995 (Fframe-live-p): Doc fix.
22996 (Fwindow-system): New function.
22997 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22998 (make_terminal_frame): Don't create frames on a terminal that is
22999 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
23000 (store_frame_param): Check for found_for_frame before calling XFRAME.
23001 (Fmake_terminal_frame): Handle NULL tty names correctly.
23002 (syms_of_frame): Enhance doc string of `default-frame-alist'.
23003 (Fdelete_frame): Remove unused variable `count'. Don't allow other
23004 frames to refer to a deleted frame in their 'environment parameter.
23005 (Fframe_with_environment): New function.
23006 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
23007 (get_future_frame_param): New function.
23008 (Fmake_terminal_frame): Use it.
23009 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
23010
23011 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23012 * sysdep.c (reset_sys_modes): Update for renames.
23013
23014 * keyboard.c (tty_read_avail_input): New function.
23015 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23016 (syms_of_keyboard): Defsubr them.
23017 (Fset_input_meta_mode, Fset_quit_char): New functions.
23018 (Fset_input_mode): Split to above functions.
23019 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23020 parameter. Use it in call to `read_char'.
23021 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23022 Set wrong_kboard_jmpbuf correctly in recursive calls.
23023 Use current_kboard to access Vkeyboard_translate_table.
23024 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23025 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23026 Update longjmp invocations. Remember the original current_kboard,
23027 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23028 changes it. Comment out unnecessary calls to
23029 `record_single_kboard_state' and `any_kboard_state'.
23030 Update recursive calls.
23031 (wrong_kboard_jmpbuf): Remove global variable.
23032 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23033 Handle deleted interrupted_kboards correctly; that is a legal
23034 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23035 and read_char calls. Abort if interrupted_kboard died in read_char.
23036 (any_kboard_state, single_kboard_state)
23037 (push_frame_kboard): Remove function.
23038 (pop_kboard): Switch out of single_kboard mode if the kboard has
23039 been deleted. Remove unused variable. Help debugging by not
23040 changing current_kboard unnecessarily. Set current_kboard to the
23041 kboard of the selected frame when the stored kboard object has
23042 been deleted before pop_kboard.
23043 (temporarily_switch_to_single_kboard): Change first parameter to a
23044 frame pointer. Throw an error when caller wants to change kboards
23045 while in single_kboard mode. Don't push_kboard if we weren't in
23046 single kboard state. Don't pop_kboard if we popped into any
23047 kboard state.
23048 (restore_kboard_configuration): Abort if pop_kboard changed the
23049 kboard in single_kboard mode. Call pop_kboard only after setting
23050 up single_kboard mode.
23051 (Frecursive_edit): Switch to single_kboard mode only in nested
23052 command loops.
23053 (cmd_error, command_loop, command_loop_1, timer_check):
23054 Comment out unnecessary call to `any_kboard_state' and
23055 `record_single_kboard_state'.
23056 (delete_kboard): Exit single_kboard mode if we have just deleted
23057 that kboard. Use FRAME_KBOARD.
23058 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23059 `fatal_error_signal'.
23060 (record_single_kboard_state): Don't push_kboard if we weren't in
23061 single kboard state. Don't pop_kboard if we popped into any
23062 kboard state.
23063 (push_frame_kboard): Rename to push_kboard.
23064 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23065 (read_avail_input): Read input from all terminals.
23066 (mark_kboards): Also mark Vkeyboard_translate_table.
23067 (kbd_buffer_store_event_hold): Simplify condition.
23068 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23069 (Vkeyboard_translate_table): Move to struct kboard.
23070 (init_kboard): Initialize Vkeyboard_translate_table.
23071 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23072 Vkeyboard_translate_table. Update doc strings. Update docs of
23073 local-function-key-map and function-key-map.
23074
23075 * terminal.c: New file.
23076
23077 * term.c: Include errno.h.
23078 (Vring_bell_function, device_list, initial_device)
23079 (next_device_id, ring_bell, update_begin, update_end)
23080 (set_terminal_window, cursor_to, raw_cursor_to)
23081 (clear_to_end, clear_frame, clear_end_of_line)
23082 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23083 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23084 (syms_of_term): Move their initialization to terminal.c.
23085 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23086 (Ftty_display_color_cells)
23087 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23088 (clear_tty_hooks, set_tty_hooks)
23089 (init_tty, maybe_fatal): New functions.
23090 (Ftty_type): Return nil if terminal is not on a tty instead of
23091 throwing an error. Doc update.
23092 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23093 Doc update. Initialize new subrs and variables.
23094 (delete_tty): Use terminal->deleted.
23095 (tty_set_terminal_modes): Rename from set_terminal_modes.
23096 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23097 (set_scroll_region): Rename to `tty_set_scroll_region'.
23098 (turn_on_insert): Rename to `tty_turn_on_insert'.
23099 (turn_off_insert): Rename to `tty_turn_off_insert'.
23100 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23101 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23102 (toggle_highligh): Rename to `tty_toggle_highlight'.
23103 (background_highlight): Rename to `tty_background_highlight'.
23104 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23105 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23106 (tty_set_scroll_region, tty_background_highlight)
23107 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23108 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23109 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23110 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23111 Add static modifier.
23112 (tty_reset_terminal_modes, tty_set_terminal_window)
23113 (tty_set_scroll_region, tty_background_highlight)
23114 (tty_highlight_if_desired, tty_cursor_to)
23115 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23116 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23117 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23118 renames.
23119
23120 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23121
23122 * keyboard.c: Qrtl is new.
23123 (parse_tool_bar_item): Handle :rtl keyword.
23124 (syms_of_keyboard): Intern :rtl keyword.
23125
23126 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23127
23128 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23129 so no Lisp code is executed.
23130 (file_for_image, find_rtl_image): New functions.
23131 (xg_get_image_for_pixmap): Use file_for_image.
23132 (update_frame_tool_bar): If direction is RTL, use RTL image if
23133 defined. Use Gtk stock images if defined.
23134
23135 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23136
23137 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23138 for nonexistent or zero-width glyph in composition glyph.
23139
23140 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23141
23142 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23143
23144 * xdisp.c (Finvisible_p): New function.
23145 (syms_of_xdisp): defsubr it.
23146
23147 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
23148
23149 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23150 Doc fixes.
23151
23152 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23153
23154 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23155
23156 2007-08-24 Martin Rudalics <rudalics@gmx.at>
23157
23158 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23159 whether decoding has modified buffer contents.
23160
23161 2007-08-24 Jason Rumney <jasonr@gnu.org>
23162
23163 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23164 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23165 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23166 (init_svg_functions) [HAVE_NTGUI]: New function.
23167 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23168 (svg_load_image): Use them.
23169 (svg_load_image) [HAVE_NTGUI]: Implement background.
23170
23171 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23172
23173 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23174 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23175 (LIBX): Remove @RSVG_LIBS@.
23176 (LIBES): Add $(RSVG_LIBS).
23177
23178 * image.c (svg_load_image): Blend with specified background if exists.
23179 Use IMAGE_BACKGROUND. Add Mac OS Support.
23180
23181 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23182 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23183 Remove macros.
23184 [MAC_OSX] (socket_callback): Do nothing.
23185 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23186 ReceiveNextEvent.
23187 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23188 socket_callback.
23189 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23190
23191 2007-08-22 Glenn Morris <rgm@gnu.org>
23192
23193 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23194
23195 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23196
23197 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23198
23199 * image.c: Add support for SVG images. Some additional comments
23200 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23201 (svg_image_p): New function to test for SVG image.
23202 (svg_load): New function to load SVG image.
23203 (svg_load_image): New function, helper for svg_load.
23204 (Qsvg): New Lisp_object.
23205 (svg_keyword_index): New enum.
23206 (svg_format): New static `image_keyword' struct.
23207 (svg_type): New static `image_type' struct.
23208 (librsvg/rsvg.h): Include it.
23209
23210 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23211
23212 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23213
23214 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23215
23216 * lread.c (Qold_style_backquotes): New var.
23217 (syms_of_lread): Init and staticpro it.
23218 (load_warn_old_style_backquotes): New fun.
23219 (Fload): Use them to warn about old style backquotes.
23220 (end_of_file_error, Fload): Remove unused vars.
23221
23222 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23223
23224 * lread.c (Vold_style_backquotes): New var.
23225 (syms_of_lread): Init and export it to Elisp.
23226 (read1): Set it when we find an old-style (back)quote.
23227
23228 2007-08-22 Jason Rumney <jasonr@gnu.org>
23229
23230 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23231
23232 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23233
23234 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23235
23236 2007-08-19 Richard Stallman <rms@gnu.org>
23237
23238 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23239
23240 2007-08-19 Andreas Schwab <schwab@suse.de>
23241
23242 * alloc.c (pure): Round PURESIZE up.
23243
23244 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23245
23246 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23247 active frame.
23248
23249 2007-08-16 Richard Stallman <rms@gnu.org>
23250
23251 * eval.c (Fcommandp): Add parens to clarify.
23252
23253 * minibuf.c (Fall_completions): Use enum for type of table.
23254
23255 * emacs.c (USAGE2): Improve text.
23256
23257 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23258
23259 * term.c (tty_default_color_capabilities): Declare static
23260 variables in file scope, to avoid HPUX compiler problem.
23261
23262 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23263
23264 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23265 to gtk_toolbar_insert.
23266
23267 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23268
23269 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23270
23271 * insdel.c (reset_var_on_error): New fun.
23272 (signal_before_change, signal_after_change):
23273 Use it to reset (after|before)-change-functions to nil in case of error.
23274 Bind inhibit-modification-hooks to t.
23275 Don't bind (after|before)-change-functions to nil while they run.
23276
23277 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23278
23279 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23280 filling pixmap with stippled background.
23281
23282 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23283
23284 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23285 Don't use invisible frame as parent window for repositioning.
23286
23287 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23288
23289 * print.c (new_backquote_output): Rename from old_backquote_output.
23290 (print): Inverse its logic (according to its name) so as to match the
23291 behavior of new_backquote_flag in lread.c.
23292
23293 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23294
23295 * gmalloc.c (posix_memalign): New function.
23296
23297 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23298 ActivateControl/DeactivateControl here.
23299 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23300 frame-notice-user-settings is non-nil.
23301 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23302 for kEventParamFMFontStyle.
23303 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23304 mac_pass_command_to_system and mac_pass_control_to_system here.
23305 (XTread_socket): Call ActivateControl/DeactivateControl here.
23306 (XTread_socket) [TARGET_API_MAC_CARBON]:
23307 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23308 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23309 for window repositioning.
23310
23311 2007-08-08 Glenn Morris <rgm@gnu.org>
23312
23313 * Replace `iff' in doc-strings and comments.
23314
23315 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
23316
23317 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23318
23319 2007-08-07 Martin Rudalics <rudalics@gmx.at>
23320
23321 * fileio.c (Finsert_file_contents): Run format-decode and
23322 after_insert_file_functions on entire buffer when REPLACE is
23323 non-nil and inhibit modification_hooks and point_motion_hooks.
23324 For consistency, run after_insert_file_functions iff something
23325 got inserted. Move signal_after_change and update_compositions
23326 after code running after_insert_file_functions. Make sure that
23327 undo_list doesn't record intermediate steps of the decoding process.
23328
23329 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23330
23331 * emacs.c (main)
23332 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23333 Call malloc_enable_thread on interactive startup.
23334
23335 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23336 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23337 [USE_PTHREAD]: Conditionalize with it.
23338 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23339 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23340 New functions.
23341
23342 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
23343
23344 * xdisp.c (redisplay_window): When restoring original buffer
23345 position, make sure it is still valid.
23346
23347 * image.c (png_load): Ignore png-supplied background color.
23348
23349 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23350
23351 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23352 Use kCFAbsoluteTimeIntervalSince1970.
23353
23354 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23355 New variable.
23356 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23357 event loop should be quit.
23358 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23359 Quit dialog event loop if quit_dialog_event_loop is set.
23360
23361 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23362 (Selection): New typedef. Use instead of ScrapRef.
23363 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23364 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23365 (mac_clear_selection): Rename from clear_scrap.
23366 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23367 scrap_has_target_type. All uses changed.
23368 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23369 (mac_selection_has_target_p): New functions.
23370 (mac_put_selection_value): Rename from put_scrap_string.
23371 (mac_get_selection_value): Rename from get_scrap_string.
23372 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23373 (put_scrap_private_timestamp, scrap_has_target_type)
23374 (get_scrap_private_timestamp): Remove functions.
23375 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23376 (x_own_selection, x_get_local_selection):
23377 Use mac_valid_selection_value_p.
23378 (x_own_selection): Don't use put_scrap_private_timestamp.
23379 Record OWNERSHIP-INFO into Vselection_alist instead.
23380 (x_get_local_selection): Don't check type if request is local.
23381 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23382 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23383
23384 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23385
23386 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23387 add comment explaining why.
23388
23389 2007-08-03 Richard Stallman <rms@gnu.org>
23390
23391 * fileio.c (Fvisited_file_modtime): Use make_time.
23392
23393 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23394
23395 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23396 build.
23397
23398 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23399
23400 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23401
23402 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23403
23404 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23405
23406 2007-07-30 Richard Stallman <rms@gnu.org>
23407
23408 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23409
23410 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23411
23412 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23413
23414 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
23415
23416 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23417 remote default-directory.
23418
23419 * buffer.c (mode-line-format): Update doc string.
23420
23421 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23422
23423 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23424 scroll bar gap.
23425 (x_scroll_bar_create): Set bar->fringe_extended_p.
23426 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23427 on frame edge. Check fringe background extension. Don't clear
23428 extended fringe background area.
23429
23430 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23431 (w32_fill_area): Enclose multiple statements with do ... while (0).
23432
23433 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23434 Extend fringe background to scroll bar gap.
23435 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23436 Set bar->fringe_extended_p.
23437 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23438 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23439 background extension. Don't clear extended fringe background area.
23440
23441 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23442 New member fringe_extended_p.
23443
23444 2007-07-25 Glenn Morris <rgm@gnu.org>
23445
23446 * Relicense all FSF files to GPLv3 or later.
23447
23448 * COPYING: Switch to GPLv3.
23449
23450 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23451
23452 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23453
23454 * data.c (Finteractive_form): Check for the presence of an
23455 `interactive-form' symbol property more thoroughly.
23456
23457 * data.c (Finteractive_form): Use an `interactive-form' property if
23458 present, analogous to the function-documentation property.
23459
23460 2007-07-24 Jason Rumney <jasonr@gnu.org>
23461
23462 * w32fns.c (x_real_positions): Get real position from OS instead of
23463 calculating it.
23464
23465 2007-07-23 Jason Rumney <jasonr@gnu.org>
23466
23467 * filelock.c (current_lock_owner): Allow for @ sign in username.
23468
23469 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
23470
23471 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23472 remote default-directory.
23473
23474 * buffer.c (mode-line-format): Describe above case in doc string.
23475
23476 2007-07-20 Eli Zaretskii <eliz@gnu.org>
23477
23478 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23479 Define if not defined.
23480
23481 2007-07-18 Jason Rumney <jasonr@gnu.org>
23482
23483 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23484
23485 2007-07-18 Richard Stallman <rms@gnu.org>
23486
23487 * data.c (Fsetq_default): Doc fix.
23488
23489 * eval.c (Fsetq): Doc fix.
23490
23491 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
23492
23493 * coding.c (Ffind_operation_coding_system):
23494 * eval.c (For, Fand): Doc fixes.
23495 Reported by Johan Bockgård.
23496
23497 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23498
23499 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23500
23501 * xterm.h: Declare x_ewmh_activate_frame.
23502
23503 * xterm.c (x_ewmh_activate_frame): New function.
23504 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23505
23506 2007-07-17 Martin Rudalics <rudalics@gmx.at>
23507
23508 * window.c (Fdisplay_buffer): If largest or LRU window is the
23509 only window, split it even if it is not eligible for splitting.
23510 This restores the original behavior broken by the 2007-07-15
23511 change.
23512
23513 2007-07-17 Glenn Morris <rgm@gnu.org>
23514
23515 * abbrev.c (abbrev_check_chars): New function.
23516 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23517 Call abbrev_check_chars to check abbrev characters are word
23518 constituents. Doc fix.
23519
23520 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23521
23522 * process.c (Fstart_process, Fmake_network_process)
23523 (read_process_output): Fix up last changes.
23524
23525 2007-07-16 Eli Zaretskii <eliz@gnu.org>
23526
23527 * makefile.w32-in (clean): Don't delete *~.
23528
23529 2007-07-16 Andreas Schwab <schwab@suse.de>
23530
23531 * window.c (Fdisplay_buffer): Use NILP.
23532 (Fset_window_scroll_bars): Likewise.
23533
23534 2007-07-15 Martin Rudalics <rudalics@gmx.at>
23535
23536 * window.c (window_min_size_2): New function.
23537 (window_min_size_1, size_window, Fdisplay_buffer)
23538 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23539 windows without mode- or header-lines when window-min-height is
23540 too small.
23541 (size_window): Reset nodelete_p after testing it, following an
23542 earlier note by Kim F. Storm.
23543 (display_buffer): Do not set split_height_threshold to twice the
23544 value of window_min_height to avoid changing the value of a
23545 customizable variable. Rather explicitly check whether the
23546 height of the window that shall be splitted is at least as large
23547 as split_height_threshold.
23548 (Fwindow_full_width_p): New defun.
23549 (syms_of_window): Defsubr it.
23550
23551 * window.h: Add EXFUN for Fwindow_full_width_p.
23552
23553 2007-07-14 Jason Rumney <jasonr@gnu.org>
23554
23555 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23556
23557 2007-07-14 Richard Stallman <rms@gnu.org>
23558
23559 * eval.c (maybe_call_debugger): New function.
23560 (find_handler_clause): Use maybe_call_debugger.
23561 Call it when the handler says `debug'.
23562 Eliminate DEBUGGER_VALUE_PTR.
23563 (Fsignal): Eliminate debugger_value.
23564 (Qdebug): New variable.
23565 (syms_of_eval): Initialize it.
23566
23567 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
23568
23569 * eval.c (Fprogn):
23570 * keyboard.c (Ftrack_mouse):
23571 * print.c (Fwith_output_to_temp_buffer):
23572 * window.c (Fsave_window_excursion): Doc fix.
23573
23574 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23575
23576 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23577
23578 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23579
23580 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23581 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23582 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23583 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23584 Remove unused encoding_carryover.
23585 * process.c: Adjust all functions accordingly.
23586
23587 2007-07-12 Richard Stallman <rms@gnu.org>
23588
23589 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23590
23591 2007-07-11 Jason Rumney <jasonr@gnu.org>
23592
23593 * makefile.w32-in (LIBS): Include OLE32.
23594
23595 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23596 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23597
23598 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23599
23600 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23601 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23602 from a Lisp_Object into a bare pointer.
23603 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23604 Adjust the code correspondingly.
23605
23606 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23607
23608 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23609 (term_show_mouse_face): Remove unused var `j'.
23610 (handle_one_term_event): Remove unused vars `i' and `j'.
23611 Don't cast return value of ttyname since it's not necessary.
23612
23613 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23614
23615 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23616 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23617
23618 * fns.c (map_char_table): Use an array of int for `indices' rather than
23619 an array of Lisp_Objects (which are only ever integers anyway).
23620 (Fmap_char_table): Update caller.
23621 * lisp.h: Update prototype.
23622 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23623 * fontset.c (Ffontset_info):
23624 * casetab.c (set_case_table): Update callers.
23625
23626 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23627
23628 * keymap.c (struct accessible_keymaps_data)
23629 (struct where_is_internal_data): New structures.
23630 (accessible_keymaps_1, where_is_internal_1): Use them to change
23631 interface to adhere to the one used by map_keymap.
23632 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23633 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23634
23635 * keymap.h (map_keymap_function_t): More informative prototype.
23636
23637 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23638
23639 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23640 (looking_at_1): Don't change search_regs and last_thing_searched
23641 if `inhibit-changing-match-data' is non-nil.
23642 (string_match_1, search_buffer, set_search_regs): Likewise.
23643 (syms_of_search): Add Lisp level definition for
23644 `inhibit-changing-match-data' and set it to nil.
23645 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23646 start and end of the match, instead of using values in search_regs.
23647
23648 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23649
23650 * minibuf.c (Fcompleting_read): New value `confirm-only'
23651 for `require-match'.
23652
23653 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23654
23655 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23656 part of the 2007-06-27 change to syms_of_fileio.
23657
23658 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23659
23660 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23661 Check WINDOWP before using XWINDOW. Consolidate return statements.
23662
23663 2007-06-27 Richard Stallman <rms@gnu.org>
23664
23665 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23666
23667 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
23668
23669 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23670
23671 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23672
23673 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23674 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23675 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23676 (_free_internal, memalign): Use them.
23677 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23678 Initialize to PTHREAD_MUTEX_INITIALIZER.
23679 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23680 (morecore_nolock): Rename from morecore. All uses changed.
23681 Use only nolock versions of internal allocation functions.
23682 (_malloc_internal_nolock, _realloc_internal_nolock)
23683 (_free_internal_nolock): New functions created from
23684 _malloc_internal, _realloc_internal, and _free_internal.
23685 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23686 Copy hook value to automatic variable before its use.
23687 (memalign): Copy hook value to automatic variable before its use.
23688
23689 2007-06-26 Kenichi Handa <handa@m17n.org>
23690
23691 * coding.c (Ffind_operation_coding_system): Docstring improved.
23692 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23693
23694 2007-06-25 David Kastrup <dak@gnu.org>
23695
23696 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23697 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23698 cater for additional parameter.
23699
23700 * keymap.h: Adjust number of parameters to `current-active-maps'.
23701
23702 * doc.c (Fsubstitute_command_keys): Adjust call of
23703 `current-active-maps'.
23704
23705 2007-06-25 David Kastrup <dak@gnu.org>
23706
23707 * callint.c (Fcall_interactively): Make the parsing of interactive
23708 specs somewhat more readable.
23709
23710 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23711
23712 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23713 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23714 if extended background has already been filled.
23715
23716 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23717
23718 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23719 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23720
23721 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23722 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23723 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23724 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23725 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23726 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23727 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23728 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23729 Run timers during dialog popup.
23730 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23731
23732 2007-06-21 Jason Rumney <jasonr@gnu.org>
23733
23734 * image.c (convert_mono_to_color_image): Swap fore and background.
23735
23736 2007-06-20 Jason Rumney <jasonr@gnu.org>
23737
23738 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23739 (w32_free_bdf_font): Unmap memory not handle.
23740
23741 2007-06-20 Sam Steingold <sds@gnu.org>
23742
23743 * gmalloc.c (__morecore): Fix the declaration to comply with the
23744 definition.
23745
23746 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
23747
23748 * w32term.c (w32_delete_display): Remove leftover declaration.
23749 (w32_define_cursor, w32_initialize): Make static.
23750
23751 * w32.c (_wsa_errlist): Fix typo in error message.
23752 (init_environment): Ignore any environment variable from the
23753 registry having a null value.
23754
23755 2007-06-20 Glenn Morris <rgm@gnu.org>
23756
23757 * Makefile.in (LIBGIF): Default to -lgif.
23758
23759 2007-06-17 Jason Rumney <jasonr@gnu.org>
23760
23761 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23762 unicode strings.
23763
23764 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
23765
23766 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23767 Fix typo in docstring.
23768
23769 2007-06-16 Eli Zaretskii <eliz@gnu.org>
23770
23771 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23772 and their keybindings.
23773
23774 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
23775
23776 * composite.c (update_compositions): Fix last fix.
23777
23778 2007-06-14 Jason Rumney <jasonr@gnu.org>
23779
23780 * w32.c (get_process_times_fn): New function pointer.
23781 (globals_of_w32): Intialize it if present in kernel32.dll.
23782 (w32_get_internal_run_time): New function.
23783
23784 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23785
23786 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23787
23788 * composite.c (update_compositions): Check the validness of
23789 compositions.
23790
23791 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23792
23793 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23794 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23795
23796 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23797 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23798
23799 * macgui.h (USE_MAC_TOOLBAR): New define.
23800
23801 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23802 Return immediately unless popup is activated.
23803
23804 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23805 background to scroll bar gap.
23806 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23807 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23808 scroll bars on frame edge. Check fringe background extension.
23809 Don't clear extended fringe background area.
23810 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23811 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23812 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23813 [USE_MAC_TOOLBAR]: New macros.
23814 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23815 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23816 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23817 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23818 [USE_MAC_TOOLBAR]: New functions.
23819 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23820 manually if previous repositioning has failed.
23821 (mac_handle_keyboard_event): Use precomputed event kind.
23822 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23823 as tool bar item click. Handle mouse movement over tool bar items.
23824
23825 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23826 toolbar_win_gravity.
23827 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23828 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23829 Add externs.
23830
23831 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23832 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23833
23834 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
23835
23836 * image.c (search_image_cache): Remove unused variable.
23837
23838 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
23839
23840 * xfns.c, xmenu.c: Link to xaw3d if available.
23841
23842 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23843
23844 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23845 frame_foreground and frame_background.
23846
23847 * image.c (lookup_image): Save frame foreground and background colors.
23848 (search_image_cache): Check if saved and current frame colors match.
23849
23850 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23851
23852 * regex.c (regex_compile): Remove the `regnum' counter.
23853 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23854
23855 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23856
23857 * term.c: Include intervals.h to declare Fget_text_property.
23858
23859 2007-06-10 Jason Rumney <jasonr@gnu.org>
23860
23861 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23862
23863 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
23864
23865 * callint.c (Fcall_interactively):
23866 * editfns.c (Fdelete_and_extract_region):
23867 * fileio.c (Fread_file_name):
23868 * fns.c (Fmapconcat):
23869 * keyboard.c (cmd_error_internal):
23870 * keymap.c (Fkey_description):
23871 * lread.c (openp):
23872 * minibuf.c (read_minibuf):
23873 * search.c (wordify):
23874 * sunfns.c (sel_read):
23875 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23876 * xfns.c (x_default_scroll_bar_color_parameter):
23877 * xmenu.c (menu_help_callback):
23878 * xselect.c (Fx_get_atom_name):
23879 * xterm.c (x_term_init): Use empty_unibyte_string.
23880
23881 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23882
23883 * alloc.c (init_strings): Initialize canonical empty strings.
23884 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23885 canonical empty string when the requested size is 0.
23886
23887 * emacs.c (empty_unibyte_string): Rename from empty_string.
23888 (empty_multibyte_string): New canonical empty string.
23889 (syms_of_emacs): Don't initialize empty_string.
23890
23891 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23892 string, if appropriate.
23893 (empty_unibyte_string, empty_multibyte_string): New externs.
23894 (empty_string): Remove extern.
23895
23896 * lread.c (syms_of_lread): Use empty_unibyte_string.
23897
23898 2007-06-07 Jason Rumney <jasonr@gnu.org>
23899
23900 * s/ms-w32.h: Don't define HAVE_TZNAME.
23901
23902 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23903
23904 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23905
23906 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23907
23908 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23909 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23910
23911 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23912 Don't call next handler.
23913 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23914 Remove argument. Install handler to application.
23915 (set_frame_menubar): Don't change deep_p.
23916 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23917 FRAME_OUTER_TO_INNER_DIFF_Y.
23918 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23919 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23920 [HAVE_DIALOGS]: New macros.
23921 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23922 Use them.
23923 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23924
23925 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23926 init_service_handler. All callers changed. Return OSStatus value.
23927
23928 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23929 All callers changed so as not to call SetPortWindowPort.
23930 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23931 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23932 mac_draw_string_common.
23933 (mac_draw_image_string_qd): Likewise.
23934 (mac_draw_string_common): Use them. Add INLINE.
23935 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23936 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23937 GetGlobalMouse.
23938 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23939 and FRAME_OUTER_TO_INNER_DIFF_Y.
23940 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23941 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23942 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23943 repositioning window to mac_handle_window_event.
23944 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23945 saving window location to mac_handle_window_event
23946 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23947 (install_menu_target_item_handler): Remove argument in extern.
23948 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23949 Also accept command events.
23950 (do_keystroke): New function created from XTread_socket.
23951 (init_command_handler): Remove functions.
23952 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23953 and save window location by kEventWindowShowing and kEventWindowHiding
23954 handlers here. Don't call next handler for window state change and
23955 focus events.
23956 (mac_handle_application_event, mac_handle_keyboard_event)
23957 [TARGET_API_MAC_CARBON]: New functions.
23958 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23959 kEventWindowShowing and kEventWindowHiding events. Move installation
23960 of mouse, font, text input and menu target item handlers to
23961 install_application_handler.
23962 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23963 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23964 New function.
23965 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23966 Register it.
23967 (XTread_socket) [TARGET_API_MAC_CARBON]:
23968 Consolidate SendEventToEventTarget calls.
23969 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23970 Move application activation handler to mac_handle_application_event.
23971 Move keyboard handler to mac_handle_keyboard_event.
23972 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23973 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23974 init_command_handler. Call install_application_handler.
23975
23976 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23977 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23978
23979 2007-06-07 Glenn Morris <rgm@gnu.org>
23980
23981 * emacs.c (main): Use `emacs-copyright' in --version output.
23982
23983 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
23984
23985 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23986
23987 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23988
23989 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23990
23991 * macgui.h: Replace WindowPtr with WindowRef.
23992
23993 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23994 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23995 Replace ControlHandle with ControlRef.
23996 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23997
23998 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23999 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
24000 Replace ControlHandle with ControlRef.
24001 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
24002 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
24003
24004 * macterm.h (struct scroll_bar): Rename member control_handle_low
24005 and control_handle_high to control_ref_low and control_ref_high.
24006 All uses changed.
24007 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
24008 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
24009 respectively. All uses changed.
24010 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24011 (install_window_handler, remove_window_handler): Replace WindowPtr
24012 with WindowRef in externs.
24013
24014 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
24015
24016 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24017
24018 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
24019
24020 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24021
24022 * frame.c (Fmouse_position, Fmouse_pixel_position):
24023 Condition on HAVE_GPM too.
24024
24025 * term.c (term_mouse_highlight): Remove unused variables.
24026 (Fterm_open_connection): Set gpm_zerobased to 1.
24027 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24028 Use zero based co-ordinates.
24029 (handle_one_term_event): Report a drag as mouse movement too.
24030
24031 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24032
24033 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
24034
24035 * image.c (search_image_cache): New function. Require background
24036 color match if background color is unspecified in the image spec.
24037 (uncache_image, lookup_image): Use it.
24038
24039 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
24040
24041 * window.c (Fshrink_window): Reflow docstring.
24042
24043 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
24044
24045 * Version 22.1 released.
24046
24047 2007-06-01 Richard Stallman <rms@gnu.org>
24048
24049 * xfns.c (x_encode_text): Add GCPRO.
24050
24051 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24052
24053 * xfns.c (x_set_name_internal): Save encoded name before
24054 x_encode_text in case string data is relocated.
24055
24056 2007-05-31 Richard Stallman <rms@gnu.org>
24057
24058 * buffer.c (syms_of_buffer): Doc fix.
24059
24060 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
24061
24062 * sysdep.c (init_sys_modes): Add rather than replace with
24063 O_NONBLOCK.
24064
24065 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24066 term_mouse_moveto.
24067
24068 * termhooks.h (term_mouse_moveto): New extern.
24069
24070 * term.c (mouse_face_window): Rename...
24071 (Qmouse_face_window): ...to this.
24072 (term_show_mouse_face, term_clear_mouse_face)
24073 (term_mouse_highlight): Use Qmouse_face_window.
24074 (term_mouse_moveto): New function.
24075 (term_mouse_position): Make it work.
24076 (syms_of_term): Uncomment assignment to mouse_position_hook.
24077 Staticpro Qmouse_face_window.
24078
24079 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24080
24081 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24082 around current_column call.
24083
24084 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24085
24086 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24087 * xdisp.c (next_element_from_buffer):
24088 * window.c (delete_window):
24089 * term.c (term_mouse_highlight):
24090 * msdos.c (getdefdir):
24091 * macterm.c (mac_create_bitmap_from_bitmap_data)
24092 (init_font_name_table):
24093 * fns.c (Fsxhash):
24094 * data.c (Fmake_local_variable):
24095 * ccl.c (ccl_driver): Likewise.
24096
24097 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24098
24099 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24100 Call mac_wakeup_from_rne on window size change.
24101
24102 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
24103
24104 * image.c (uncache_image): Fix typo.
24105
24106 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24107
24108 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24109
24110 2007-05-22 Richard Stallman <rms@gnu.org>
24111
24112 * xterm.c (x_connection_closed): Remove NO_RETURN.
24113
24114 2007-05-22 Martin Rudalics <rudalics@gmx.at>
24115
24116 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24117
24118 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
24119
24120 * image.c (uncache_image): New function.
24121 (Fimage_refresh): New function.
24122
24123 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24124
24125 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24126
24127 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24128
24129 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24130 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24131
24132 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24133
24134 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24135 conditional on [HAVE_GPM_H].
24136
24137 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24138
24139 * syntax.c (skip_chars): Update syntax-table only after we checked that
24140 the new location is valid.
24141
24142 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24143
24144 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24145 mac_get_window_bounds.
24146
24147 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
24148
24149 * Makefile.in (LIBGPM): Allow it to be set from configure.
24150 If set then link Emacs with it.
24151
24152 * config.in: Regenerate.
24153
24154 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24155 New externs.
24156
24157 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24158 Include gpm.h.
24159 (handle_one_term_event, term_gpm): New externs.
24160
24161 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24162 and allow it to be interrupted by SIGIO.
24163
24164 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24165 (wait_reading_process_output): Wait on gpm_fd too.
24166 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24167 (add_gpm_wait_descriptor_called_flag): New variable.
24168 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24169
24170 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24171 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24172 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24173 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24174 (make_lispy_event): Add case GPM_CLICK_EVENT.
24175 (read_avail_input): Handle mouse input.
24176
24177 * term.c (write_glyphs_with_face): New function.
24178 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24179 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24180 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24181 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24182 (last_mouse_x, last_mouse_y): New variables.
24183 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24184 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24185 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24186 (Fterm_close_connection): New functions.
24187 (term_init): Initialise mouse_face_window.
24188
24189 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
24190
24191 * xdisp.c (redisplay_window): If first window line is a
24192 continuation line, recompute the new window start instead of
24193 recentering.
24194
24195 2007-05-18 Glenn Morris <rgm@gnu.org>
24196
24197 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24198 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24199
24200 2007-05-17 Glenn Morris <rgm@gnu.org>
24201
24202 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24203
24204 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24205
24206 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24207 dead key repeat and up events.
24208
24209 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
24210
24211 * image.c (pbm_load): Check image size for monochrome pbm.
24212
24213 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
24214
24215 * xterm.c (XTread_socket): Revert last change.
24216
24217 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
24218
24219 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24220
24221 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24222
24223 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24224
24225 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24226 mixup (YAILOM).
24227
24228 2007-05-07 Andreas Schwab <schwab@suse.de>
24229
24230 * keymap.c (Flookup_key): Fix typo in last change.
24231
24232 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24233
24234 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24235 mapping for unibyte strings.
24236
24237 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24238
24239 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24240 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24241
24242 2007-04-29 Richard Stallman <rms@gnu.org>
24243
24244 * insdel.c (replace_range): For undo, record insertion first.
24245
24246 2007-04-29 Andreas Schwab <schwab@suse.de>
24247
24248 * lisp.h (VECSIZE): Use OFFSETOF.
24249
24250 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24251
24252 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24253 disabled lines.
24254
24255 2007-04-28 Richard Stallman <rms@gnu.org>
24256
24257 * lread.c (read_escape): In a string, \s is always space.
24258
24259 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24260
24261 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24262
24263 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24264 submenu for menu bar items.
24265
24266 See ChangeLog.10 for earlier changes.
24267
24268 ;; Local Variables:
24269 ;; coding: utf-8
24270 ;; add-log-time-zone-rule: t
24271 ;; End:
24272
24273 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
24274
24275 This file is part of GNU Emacs.
24276
24277 GNU Emacs is free software: you can redistribute it and/or modify
24278 it under the terms of the GNU General Public License as published by
24279 the Free Software Foundation, either version 3 of the License, or
24280 (at your option) any later version.
24281
24282 GNU Emacs is distributed in the hope that it will be useful,
24283 but WITHOUT ANY WARRANTY; without even the implied warranty of
24284 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24285 GNU General Public License for more details.
24286
24287 You should have received a copy of the GNU General Public License
24288 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24289
24290 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40