* startup.el (command-line): Don't call tool-bar-setup in a tty-only build.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
bf935339
J
12010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4 Improve documentation. Return font regardless of use_system_font.
5 (syms_of_xsettings): Improve documentation for font-use-system-font.
6
769e9d47
KH
72009-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
8
9 * xftfont.c (xftfont_open): Check font width one by one also when
10 spacing is dual.
11
12 * ftfont.c (ftfont_open): Ditto.
13
6259c2ec
GM
142010-06-30 Glenn Morris <rgm@gnu.org>
15
a46007e9
GM
16 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
17
6259c2ec
GM
18 * Makefile.in (CANNOT_DUMP): Update for configure name change.
19
20 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
21 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
22 * s/darwin.h (SYSTEM_MALLOC):
23 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
24
5d1d3d04
J
252010-06-29 Jan Djärv <jan.h.d@swipnet.se>
26
27 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
28 (ns_get_screen): Don't assign integer to f.
29 (Fx_display_color_cells): Declarations before statements.
30
e547b051
J
312010-06-28 Jan Djärv <jan.h.d@swipnet.se>
32
5fc8e5bc
J
33 * xfns.c (x_default_font_parameter): Remove got_from_system
34 (Bug#6526).
35
e547b051
J
36 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
37 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
38 defines based on what configure finds.
39
40 * xterm.c (XTflash): Use gtk_widget_get_window.
41 (xg_scroll_callback): Use gtk_adjustment_get_upper and
42 gtk_adjustment_get_page_size.
43 (handle_one_xevent): Use gtk_widget_get_mapped.
44 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
45 messages.
46
47 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
48
49 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
50 HAVE_GTK_FILE_SELECTION_NEW.
51
52 * gtkutil.c (xg_display_open, xg_display_close): Remove
53 HAVE_GTK_MULTIDISPLAY, it is always defined.
54 (xg_display_open): Return type is void.
55 (gtk_widget_set_has_window)
56 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
57 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
58 (gtk_adjustment_set_page_increment)
59 (gtk_adjustment_get_step_increment): #define these if not found
60 by configure.
61 (remove_submenu): New define based on Gtk+ version.
62 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
63 gtk_widget_get_window.
64 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
65 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
66 (create_dialog): Use gtk_dialog_get_action_area and
67 gtk_dialog_get_content_area.
68 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
69 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
70 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
71 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
72 g_object_ref and g_object_unref.
73 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
74 gtk_widget_get_sensitive.
75 (xg_update_submenu): Use remove_submenu.
76 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
77 properties instead to get old x and y position.
78 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
79 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
80 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
81 (xg_get_tool_bar_widgets): New function.
82 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
83 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
84 (toolbar_set_orientation): New #define based on if configure
85 finds gtk_orientable_set_orientation.
86 (xg_create_tool_bar): Call toolbar_set_orientation.
87 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
88 instead of gtk_box_pack_start_defaults.
89
b9229673
CY
902010-06-28 Chong Yidong <cyd@stupidchicken.com>
91
92 * cmds.c (Fdelete_backward_char): Move into Lisp.
93
bbc803b0
DN
942010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
95
96 * s/freebsd.h (BSD4_2): Remove redundant definition.
97 bsd-common.h defines it already.
98
6431f2e6
CY
992010-06-27 Chong Yidong <cyd@stupidchicken.com>
100
101 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
102 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
103 tool-bar-mode, which are now set using these X resources at
104 startup, to determine the defaults (Bug#2249).
105
106 * w32fns.c (Fx_create_frame):
107 * nsfns.m (Fx_create_frame): Likewise.
108
109 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
110
8c079ebb
JB
1112010-06-24 Juanma Barranquero <lekktu@gmail.com>
112
113 * gtkutil.c (xg_update_scrollbar_pos):
114 Avoid C99 mid-block variable declaration.
115
e9b7ab96
JD
1162010-06-22 Jan Djärv <jan.h.d@swipnet.se>
117
bc869eca
JD
118 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
119
120 * gtkutil.h (xg_show_scroll_bar): : Remove.
121
122 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
123 if height is less than scroll bar min size.
124 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
125
e9b7ab96
JD
126 * xfns.c (x_default_font_parameter): Try to open font from system
127 before using it (bug#6478). Rename got_from_gconf to got_from_system.
128
32a679fd
JD
1292010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
130
131 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
132
70c4cfbb
EZ
1332010-06-20 Eli Zaretskii <eliz@gnu.org>
134
135 * xdisp.c (try_scrolling): When scroll-conservatively is set to
136 most-positive-fixnum, be extra accurate when scrolling window
137 start, to avoid missing the cursor line.
138
ad5a12b5
EZ
1392010-06-19 Eli Zaretskii <eliz@gnu.org>
140
141 * xdisp.c (try_scrolling): Compute the limit for searching point
142 in forward scroll from scroll_max, instead of an arbitrary limit
143 of 10 screen lines. See
144 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
145 and
146 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
147 for details.
148
2a64315a 1492010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
150
151 * editfns.c (Fbyte_to_string): Pacify compiler.
152
288cf4e9
SM
1532010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
154
155 * lread.c (read1): Phase out old-style backquotes a bit more.
156
6e6e5760
EZ
1572010-06-12 Eli Zaretskii <eliz@gnu.org>
158
cbc4fd20
EZ
159 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
160 bidimirror.h.
161
162 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
163
317fbf33
EZ
164 * bidi.c (bidi_initialize): Remove explicit initialization of
165 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 166 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 167 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
168
169 * biditype.h: New file.
170
cbc4fd20
EZ
171 * bidimirror.h: New file.
172
6e6e5760
EZ
173 * window.c (syms_of_window): Doc fix (bug#6409).
174
4176cba2
RF
1752010-06-12 Romain Francoise <romain@orebokech.com>
176
177 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
178 ediff-hook.
179
cb4bfcb5
GM
1802010-06-10 Glenn Morris <rgm@gnu.org>
181
64c60c2f
GM
182 * editfns.c (Fbyte_to_string): Pacify compiler.
183
cb4bfcb5
GM
184 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
185
e454a4a3
SM
1862010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
187
188 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
189 Check `object's type before accessing its guts.
190
c1b1acc2
DN
1912010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
192
193 * s/usg5-4.h: Fix previous change.
194 Suggested by Lawrence Mitchell <wence@gmx.li>
195
657d4c0b
AS
1962010-06-08 Andreas Schwab <schwab@linux-m68k.org>
197
198 * minibuf.c (Fall_completions): Add more checks.
199
9b27fd9f
JB
2002010-06-08 Juanma Barranquero <lekktu@gmail.com>
201
202 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
203
a99ebb40
DN
2042010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
205
d7c5d87d
DN
206 * lread.c (X_OK): Remove, unused.
207
0263a941
DN
208 * dispnew.c: Remove obsolete comment.
209
a99ebb40
DN
210 Remove INCLUDED_FCNTL.
211 * xterm.c (INCLUDED_FCNTL):
212 * callproc.c (INCLUDED_FCNTL):
213 * alloc.c (INCLUDED_FCNTL):
214 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
215 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
216
13b5221f
MR
2172010-06-07 Martin Rudalics <rudalics@gmx.at>
218
219 * window.c (Fselect_window): Move `record_buffer' up to the
220 beginning of this function, so the buffer gets recorded
221 even if the selected window does not change.
222 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
223
5220357f
JB
2242010-06-07 Juanma Barranquero <lekktu@gmail.com>
225
226 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
227 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
228
3085237c
DN
2292010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
230
231 Remove BSTRING related code, all platforms define it.
232 * s/usg5-4.h (BSTRING): Remove definition.
233 * s/template.h (BSTRING):
234 * s/msdos.h (BSTRING):
235 * s/ms-w32.h (BSTRING):
236 * s/hpux10-20.h (BSTRING):
237 * s/gnu-linux.h (BSTRING):
238 * s/darwin.h (BSTRING):
239 * s/cygwin.h (BSTRING):
240 * s/bsd-common.h (BSTRING):
241 * s/aix4-2.h (BSTRING): Likewise.
242 * sysdep.c: Remove code depending on BSTRING not being defined.
243
409f2919
JB
2442010-06-05 Juanma Barranquero <lekktu@gmail.com>
245
246 Remove obsolete macro BASE_LEADING_CODE_P.
247 * character.h (BASE_LEADING_CODE_P): Remove.
248 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
249 * buffer.c (Fset_buffer_multibyte):
250 * indent.c (scan_for_column, compute_motion):
251 * insdel.c (count_combining_before, count_combining_after):
252 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
253
087fc47a
JB
2542010-06-04 Juanma Barranquero <lekktu@gmail.com>
255
256 Turn `directory-sep-char' into a noop.
257
258 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
259 (DIRECTORY_SEP): Define unconditionally.
260
261 * s/ms-w32.h (DIRECTORY_SEP): Remove.
262
263 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
264 call dostounix_filename directly.
265
266 * fileio.c (CORRECT_DIR_SEPS): Remove.
267 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
268 (Fsubstitute_in_file_name): Use dostounix_filename instead.
269 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
270 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
271
272 * w32proc.c (CORRECT_DIR_SEPS): Remove.
273 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
274
0eb7675e
AS
2752010-06-03 Andreas Schwab <schwab@linux-m68k.org>
276
277 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 278 address. (Bug#6346)
0eb7675e 279
78edd3b7
JB
2802010-06-03 Juanma Barranquero <lekktu@gmail.com>
281
282 * ccl.c (Fccl_program_p): Fix typo in docstring.
283
eb697db5
DN
2842010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
285
286 Move UNEXEC definition to autoconf.
287 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
288 * s/sol2-10.h (UNEXEC):
289 * s/irix6-5.h (UNEXEC):
290 * s/hpux10-20.h (UNEXEC):
291 * s/gnu-linux.h (UNEXEC):
292 * s/darwin.h (UNEXEC):
293 * s/cygwin.h (UNEXEC):
294 * s/bsd-common.h (UNEXEC):
295 * s/aix4-2.h (UNEXEC):
296 * m/alpha.h (UNEXEC): Likewise.
297 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
298
aa3830c4
JB
2992010-06-03 Juanma Barranquero <lekktu@gmail.com>
300
301 Remove obsolete pre-unicode2 macros.
302 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
303 * composite.c (composition_reseat_it):
304 * data.c (Faset):
305 * fns.c (Ffillarray):
306 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
307 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
308
d234d13e
JL
3092010-06-03 Juri Linkov <juri@jurta.org>
310
311 * buffer.c (Fother_buffer): Add CHECK_FRAME.
312 (Fswitch_to_buffer): Remove unused variable `err'.
313
0d4bcf4d
GM
3142010-06-03 Glenn Morris <rgm@gnu.org>
315
e23dc1e2
GM
316 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
317
05b09564
GM
318 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
319 now that AH_BOTTOM does it.
320
824e2978
GM
321 * m/hp800.h (HAVE_ALLOCA):
322 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
323
0d4bcf4d
GM
324 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
325 Remove NOT_C_CODE tests, it is always true now.
326
c55d2abf
DN
3272010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
328
08a494a3
DN
329 Fix config.h includes.
330 * xsettings.c:
331 * xgselect.c:
332 * nsterm.m:
333 * nsselect.m:
334 * nsimage.m:
335 * nsfont.m:
336 * nsfns.m:
337 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
338 other files do.
339
75934b1d
DN
340 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
341
9f32a766
DN
342 * s/sol2-6.h: Remove obsolete comments.
343
c55d2abf
DN
344 Remove unnecessary alloca.h includes.
345 * keymap.c: Do not include alloca.h, config.h does that.
346 * sysdep.c: Likewise. Do not define fwrite, not used.
347
06ac62b4
SM
3482010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
351 the HAVE_TERMIO where it belongs (bug#6149).
352
1ab8293c
SM
3532010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
354
355 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
356 of bug#6305).
357
6dcfd253
EZ
3582010-05-30 Eli Zaretskii <eliz@gnu.org>
359
360 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
361 state is always cached (bug#6306).
362
6d26bbb2
EZ
3632010-05-29 Eli Zaretskii <eliz@gnu.org>
364
06fa4a23
EZ
365 Fix cursor motion in bidi-reordered continued lines.
366 * xdisp.c (try_cursor_movement): Backup to non-continuation line
367 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
368 over continuation lines in bidi-reordered buffers. Return
369 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
370 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
371
f5783df3
MA
3722010-05-28 Michael Albinus <michael.albinus@gmx.de>
373
374 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
375
7d56b2dd
KH
3762010-05-28 Kenichi Handa <handa@m17n.org>
377
378 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
379 Don't sheck SPEC if it is nil.
380 (font_list_entities): Call font_delete_unmatched if
b925d231 381 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 382
e58d4ff7
GM
3832010-05-28 Glenn Morris <rgm@gnu.org>
384
385 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
386
f1a5d776
CY
3872010-05-27 Chong Yidong <cyd@stupidchicken.com>
388
389 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
390 whether to trash.
391 (internal_delete_file, Frename_file): Callers changed.
392 (delete_by_moving_to_trash): Doc fix.
393 (Fdelete_directory_internal): Don't move to trash.
394
395 * callproc.c (delete_temp_file):
396 * buffer.c (Fkill_buffer): Callers changed.
397
398 * lisp.h: Update prototype.
399
f44a59e6
CY
4002010-05-27 Chong Yidong <cyd@stupidchicken.com>
401
402 * xdisp.c (redisplay_window): After redisplay, check if point is
403 still valid before setting it (Bug#6177).
404
81ac4f35
GM
4052010-05-27 Glenn Morris <rgm@gnu.org>
406
407 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
408 Convert comments to Makefile format.
409
410 * Makefile.in (bootstrap-clean): No more Makefile.c.
411
ccd89fb3
GM
4122010-05-26 Glenn Morris <rgm@gnu.org>
413
90278cb6
GM
414 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
415 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
416
ccd89fb3
GM
417 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
418 Remove.
419 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
420
b7050583
KH
4212010-05-26 Kenichi Handa <handa@m17n.org>
422
423 * composite.c (composition_compute_stop_pos): Fix condition for
424 backward scanning.
425
e5458003
GM
4262010-05-25 Glenn Morris <rgm@gnu.org>
427
c345fe90
GM
428 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
429 Move before TEMACS_LDFLAGS.
430 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
431 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
432
2e0689ab
GM
433 * Makefile.in (NOT_C_CODE): No longer define.
434 (config.h): No longer include.
435
8009a5e8
GM
436 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
437 variables it may reference.
438
e5458003
GM
439 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
440 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
441
10f72a37
KH
4422010-05-25 Kenichi Handa <handa@m17n.org>
443
444 * dispextern.h (struct composition_it): New members rule_idx and
445 charpos.
446
447 * xdisp.c (set_iterator_to_next): While scanning backward, assume
448 that the character positions of IT point the last character of the
449 current grapheme cluster.
450 (next_element_from_composition): Don't change character positions
451 of IT.
452 (append_composite_glyph): Set glyph->charpos to
453 it->cmp_it.charpos.
454
455 * composite.c (autocmp_chars): Change the first argument to RULE,
456 and try composition with RULE only.
457 (composition_compute_stop_pos): Record the index number of the
458 composition rule in CMP_IT->rule_idx.
459 (composition_reseat_it): Call autocmp_chars repeatedly until the
460 correct rule of the composition is found.
461 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
462 is at the last character of the current grapheme cluster when
463 CMP_IT->reversed_p is nonzero.
464
171eda53 4652010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 466
171eda53
SM
467 * editfns.c (Fbyte_to_string): New function.
468
66a9f7f4
SM
4692010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * process.c (Fmake_network_process): Set :host to nil if it's not used.
472 Suggested by Masatake YAMATO <yamato@redhat.com>.
473
d8c315d1
EZ
4742010-05-23 Eli Zaretskii <eliz@gnu.org>
475
171eda53 476 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 477
f5b416d2 4782010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
479
480 * s/netbsd.h: If terminfo is found, use it in preference to
481 termcap. (Bug#6190) [Backport from trunk]
482
0416466c
EZ
4832010-05-19 Eli Zaretskii <eliz@gnu.org>
484
11117830 485 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
486
487 * dispextern.h (struct glyph_row): New members minpos and maxpos.
488 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
489 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
490 and maxpos members instead of start.pos and end.pos, respectively.
491
492 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
493 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
494 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
495 (try_window_reusing_current_matrix, try_window_id):
496 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
497 (init_from_display_pos, init_iterator): Use EMACS_INT for
498 character and byte positions.
66a9f7f4 499 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
500 arguments for minimum and maximum buffer positions seen by
501 display_line for this row. Don't use iterator to find the
502 position following the maximum one; instead, increment the
11117830
EZ
503 position found by display_line directly. Fix logic; eol_pos
504 should be tested before the rest. Handle the case of characters
505 delivered from display vector (bug#6036). Fix tests related to
506 it->method. Handle the truncated_on_right_p rows.
507 (RECORD_MAX_MIN_POS): New macro.
508 (display_line): Use it to record the minimum and maximum buffer
509 positions for glyphs in the row being assembled. Record the
510 position of the newline that terminates the line. If word wrap is
511 in effect, restore minimum and maximum positions seen up to the
512 wrap point, when iterator returns to it.
513 (try_window_reusing_current_matrix): Give up if in bidi-reordered
514 row and cursor not already at point. Restore original pre-bidi
515 code for unidirectional buffers.
d36fe237
EZ
516
517 * dispnew.c (increment_row_positions, check_matrix_invariants):
518 Increment and check row->start.pos and row->end.pos, in addition
519 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
520
11117830
EZ
521 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
522 Display truncated_on_left_p and truncated_on_right_p flags.
523 Formatting fixes.
524 (pmtxrows): Display the ordinal number of each row. Don't display
525 rows beyond the last one.
526
527 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
528 it is not copied by bidi_copy_it.
529
6e83d800
EZ
5302010-05-22 Eli Zaretskii <eliz@gnu.org>
531
532 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
533 (Bug#6237)
534
110683ad
CY
5352010-05-22 Chong Yidong <cyd@stupidchicken.com>
536
537 * image.c (Fimage_flush): Rename from image-refresh.
538
98fe5161
CY
5392010-05-21 Chong Yidong <cyd@stupidchicken.com>
540
541 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
542 just one window.
543
544 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
545 (clear_image_cache): If the number of cached images is unusually
546 large, decrease the cache eviction delay (Bug#6230).
547
e8752c66
GM
5482010-05-21 Glenn Morris <rgm@gnu.org>
549
66dbf213
GM
550 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
551 Move these rules to ns.mk.
552 * ns.mk: New file.
553
04384b2d
GM
554 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
555
e8752c66
GM
556 * Makefile.in (CANNOT_DUMP): New, set by configure.
557 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
558
2e2bbddb
JL
5592010-05-20 Juri Linkov <juri@jurta.org>
560
561 * fileio.c (Fdelete_file): Change interative spec to use
562 `read-file-name' like in `find-file-read-args' where the default
563 value is `default-directory' instead of `buffer-file-name'.
564 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
565
31c4aaf6
KR
5662010-05-20 Kevin Ryde <user42@zip.com.au>
567
568 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
569 (Voverriding_terminal_local_map, Vsystem_key_alist)
570 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
571
9d5cf9b6
GM
5722010-05-20 Glenn Morris <rgm@gnu.org>
573
574 * Makefile.in (DEPDIR): New constant.
575 (DEPFLAGS): Set with configure, not cpp.
576 (MKDEPDIR): New, set by configure.
577 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
578 (clean): Use $DEPDIR.
579 (deps_frag): Include from configure.
580 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
581 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
582
ead6f8f5
EZ
583 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
584 reallocation of the cache. (Bug#6210)
585
7f34aec3
GM
5862010-05-19 Glenn Morris <rgm@gnu.org>
587
d494e8f2
GM
588 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
589
c1d0dcfd
GM
590 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
591 (GNULIB_VAR): Remove.
592 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
593
594 * m/ibms390x.h (LINKER):
595 * m/macppc.h (LINKER) [GNU_LINUX]:
596 * s/aix4-2.h (ORDINARY_LINK):
597 * s/cygwin.h (LINKER):
598 * s/darwin.h (ORDINARY_LINK):
599 * s/gnu.h (ORDINARY_LINK):
600 * s/netbsd.h (LINKER):
601 * s/usg5-4.h (ORDINARY_LINK):
602 Move to configure.
603
7f34aec3
GM
604 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
605
754790b6
CY
6062010-05-18 Chong Yidong <cyd@stupidchicken.com>
607
608 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
609 prevent stack overflow if number of arguments is too large
610 (Bug#6214).
611
161e44d1
JB
6122010-05-18 Juanma Barranquero <lekktu@gmail.com>
613
614 * charset.c (load_charset_map_from_file): Don't call close after fclose.
615
be4ff9da
GM
6162010-05-18 Glenn Morris <rgm@gnu.org>
617
9539dc5d
GM
618 * s/gnu-linux.h: Combine two conditionals.
619
620 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
621 $(POST_ALLOC_OBJ).
622
40dc6bf4
GM
623 * Makefile.in (RALLOC_OBJ): New, set by configure.
624 (rallocobj): Replace with the previous variable.
625 (otherobj): Use $RALLOC_OBJ.
626
627 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
628 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
629
be4ff9da
GM
630 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
631 (gmallocobj, vmlimitobj): Replace with previous two variables.
632 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
633
16455a85
GM
6342010-05-17 Glenn Morris <rgm@gnu.org>
635
636 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
637 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
638
5fdb7468
GM
6392010-05-16 Glenn Morris <rgm@gnu.org>
640
7ca1f3f9
GM
641 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
642
7541dad5
GM
643 * Makefile.in (clean): Get rid of HAVE_NS conditional.
644
da53fab9
GM
645 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
646 trailing "/".
647
b02a6645
GM
648 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
649 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
650
8877ca0f
GM
651 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
652 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
653 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
654 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
655 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
656
5fdb7468
GM
657 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
658 Remove ${STARTFLAGS}, nothing ever sets it.
659
95adb4b1
DN
6602010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
661
662 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
663
676b6304
GM
6642010-05-16 Glenn Morris <rgm@gnu.org>
665
9beab9ce
GM
666 * Makefile.in (LIBX_BASE): Always define.
667
8a95f0e7
GM
668 * Makefile.in (LIBX_OTHER): Move out of cpp section.
669
676b6304
GM
670 * Makefile.in (LIBXT): Always define.
671
6e546d18
GM
6722010-05-15 Glenn Morris <rgm@gnu.org>
673
4235ca47 674 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 675
6e546d18
GM
676 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
677 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
678
8c5ff6dd
KR
6792010-05-15 Ken Raeburn <raeburn@raeburn.org>
680
560bb7ae 681 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
682 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
683
8b4eb796
KR
684 * emacs.c (main): Initialize initial-environment and
685 process-environment before generating from env, not after.
686
8c5ff6dd
KR
687 Handle --version reasonably in CANNOT_DUMP configuration.
688 * emacs.c (emacs_version, emacs_copyright): New string variables.
689 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
690 (syms_of_emacs): Defvar them, and initialize them from the C
691 string variables.
692 (main): If initialization hasn't been done, print initial version
693 info from the C strings, instead of starting an interactive session.
694
dbd3f723
EZ
6952010-05-15 Eli Zaretskii <eliz@gnu.org>
696
d20e1419
EZ
697 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
698 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
699 (bidi_paragraph_init): Remove redundant assertion that we are at
700 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
701
702 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
703 (syms_of_xdisp): Defsubr it.
704
d36fe237
EZ
705 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
706
dbd3f723
EZ
707 * Makefile.in: Fix MSDOS-related comments.
708
02be533b
GM
7092010-05-15 Glenn Morris <rgm@gnu.org>
710
1a82cca9
GM
711 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
712 (really-lwlib, really-oldXMenu): Always define.
713 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
714
3df7b338
GM
715 * Makefile.in: Simplify cpp conditional.
716
2b5f541b
GM
717 * Makefile.in (${ns_appdir}): Simplify using umask.
718
02be533b
GM
719 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
720
4e2db1fe
SM
7212010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
722
723 * eval.c (specbind): Remove left-over duplicate test.
724 Disallow let-binding frame-local vars. Add comment.
725
4b292a22
EZ
7262010-05-14 Eli Zaretskii <eliz@gnu.org>
727
2fe72643 728 Make the cache of bidi iterator states dynamically allocated.
1edbd309 729 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
730 (bidi_init_it): Call it.
731 (bidi_cache_iterator_state): Enlarge the cache if needed.
732
4e2db1fe 733 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
734 bidi_get_next_char_visually. All callers changed.
735
82ebc97b
KH
7362010-05-14 Kenichi Handa <handa@m17n.org>
737
738 * dispextern.h (struct composition_it): New member reversed_p.
739
740 * composite.c (composition_compute_stop_pos): Search backward if
741 ENDPOS < CHARPOS.
742 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
743 Set CMP_IT->reversed_p.
b4b6e17e 744 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 745
4e2db1fe
SM
746 * xdisp.c (set_iterator_to_next):
747 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
748 scanning backward. Call composition_compute_stop_pos if scan
749 direction is changed.
750 (next_element_from_buffer): Call composition_compute_stop_pos with
751 negative ENDPOS if we are scanning backward.
752 (next_element_from_composition): Pay attention to
753 IT->cmp_it.reversed_p.
754
0e5d7800
KH
7552010-05-14 Kenichi Handa <handa@m17n.org>
756
560bb7ae 757 * font.c (font_range): Return the range for the font found at first.
0e5d7800 758
cb027b32
GM
7592010-05-14 Glenn Morris <rgm@gnu.org>
760
177b0288
GM
761 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
762
fbc00890
GM
763 * Makefile.in (mktime, X11, register): Move undefs to configure.
764
f14d1dfd
GM
765 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
766 (MSDOS_X_OBJ): New variable.
767 (MSDOS_SUPPORT_REAL): New constant.
768 (MSDOS_SUPPORT): Set as a variable, not with cpp.
769 (obj): Use MSDOS_X_OBJ.
770 (lisp): Use MSDOS_SUPPORT as a variable.
771
11842bd8
GM
772 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
773 (GPM_MOUSE_SUPPORT): Now it's a constant.
774 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
775 not cpp.
776
489d31a4 777 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 778 (ns_appresdir): Remove, unused.
e20f1f07 779
489d31a4
GM
780 * Makefile.in (SHELL): Move outside cpp section.
781
cb027b32
GM
782 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
783
5a903aa9
GM
7842010-05-13 Glenn Morris <rgm@gnu.org>
785
3369c79f
GM
786 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
787 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
788
d5e982a6
GM
789 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
790 HAVE_WINDOW_SYSTEM must be too.
791
6192e163
GM
792 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
793 (lisp): Remove WINNT_SUPPORT.
794
472c5d6b
GM
795 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
796 Let configure set these variables (to empty) in this case as well.
797
0116466b
GM
798 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
799 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
800
5a903aa9
GM
801 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
802 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
803 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
804 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
805 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 806 the values output by configure.
5a903aa9
GM
807 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
808
1a0d7c06
GM
8092010-05-12 Glenn Morris <rgm@gnu.org>
810
b5457f14
GM
811 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
812 (LINKER_WAS_SPECIFIED): Remove.
813
1a0d7c06
GM
814 * Makefile.in (LIB_GCC): Set using configure, not cpp.
815 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
816 * m/arm.h (LIB_GCC) [GNU_LINUX]:
817 * s/cygwin.h (LIB_GCC):
818 * s/freebsd.h (LIB_GCC):
819 * s/gnu-linux.h (LIB_GCC):
820 * s/msdos.h (LIB_GCC):
821 * s/netbsd.h (LIB_GCC):
822 Move to configure.
823
3ffd4615 8242010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
825
826 * ftfont.c: Fix incorrect parentheses of #if condition for
827 definining M17N_FLT_USE_NEW_FEATURE.
828
acddf8ae
GM
8292010-05-11 Glenn Morris <rgm@gnu.org>
830
831 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
832 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
833
ae5e04fa
EZ
8342010-05-10 Eli Zaretskii <eliz@gnu.org>
835
836 * xdisp.c (init_iterator): Don't turn on bidi reordering in
837 unibyte buffers. See
838 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
839
7490175b
GM
8402010-05-10 Glenn Morris <rgm@gnu.org>
841
97efb629
GM
842 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
843 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
844 (LIBES): Use LIBS_SYSTEM as a variable.
845 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
846 * s/aix4-2.h (LIBS_SYSTEM):
847 * s/freebsd.h (LIBS_SYSTEM):
848 * s/hpux10-20.h (LIBS_SYSTEM):
849 * s/sol2-6.h (LIBS_SYSTEM):
850 * s/unixware.h (LIBS_SYSTEM):
851 Move to configure.
852
7490175b
GM
853 * s/aix4-2.h (MAIL_USE_LOCKF):
854 * s/bsd-common.h (MAIL_USE_FLOCK):
855 * s/darwin.h (MAIL_USE_FLOCK):
856 * s/gnu-linux.h (MAIL_USE_FLOCK):
857 * s/irix6-5.h (MAIL_USE_FLOCK):
858 * s/template.h (MAIL_USE_FLOCK):
859 Move to configure.
860
0235128c 8612010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
862
863 * Version 23.2 released.
864
0235128c 8652010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
866
867 * composite.c (autocmp_chars): Save point as marker before calling
868 auto-composition-function (Bug#5984).
869
870 * lisp.h (restore_point_unwind): Add prototype.
871
872 * fileio.c (restore_point_unwind): Remove static attribute.
873
0235128c 8742010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
875
876 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
877 new feature of libotf and m17n-flt.
0235128c
SM
878 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
879 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
880 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
881 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
882 that OUT is NULL. Use OTF_drive_gsub_with_log and
883 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
884 OTF_drive_gpos.
885 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
886 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
887 Setup mflt_enable_new_feature and mflt_try_otf.
888
4721152c
J
8892010-05-08 Jan Djärv <jan.h.d@swipnet.se>
890
891 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
892
893 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
894 box and toolbar (Bug #6139).
895 (xg_create_tool_bar): Remove comment (Bug #6139).
896 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
897 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
898
ee0a16cf
JB
8992010-05-08 Juanma Barranquero <lekktu@gmail.com>
900
901 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
902 Update dependencies.
903
96d79611
EZ
9042010-05-08 Eli Zaretskii <eliz@gnu.org>
905
906 * fringe.c (update_window_fringes): Set up truncation bitmaps for
907 R2L lines.
908
40c17879
GM
9092010-05-08 Glenn Morris <rgm@gnu.org>
910
7b42b29f
GM
911 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
912
40c17879
GM
913 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
914 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
915 (termcapobj): Replace with TERMCAP_OBJ.
916 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
917 (LIBES): Use LIBS_TERMCAP as a variable.
918
919 * s/freebsd.h (osreldate.h): No longer include, since this file
920 does not use __FreeBSD_version any more.
921
922 * s/aix4-2.h (TERMINFO):
923 * s/cygwin.h (TERMINFO):
924 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
925 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
926 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
927 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
928 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
929 * s/irix6-5.h (TERMINFO):
930 * s/netbsd.h (LIBS_TERMCAP):
931 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
932 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
933 * s/usg5-4.h (TERMINFO):
934 Move to configure.
935
94b612ad
SM
9362010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
937
938 * eval.c (unbind_to): Don't unbind a local binding into the global
939 binding when the local binding disappeared. Inversely, don't unbind
940 a global binding into a newly created local binding.
941 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
942 can specify the frame to use, when applicable. Adjust callers.
943
15e12598
VB
9442010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
945 Stefan Monnier <monnier@iro.umontreal.ca>
946
947 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
948
f724825e
EZ
9492010-05-07 Eli Zaretskii <eliz@gnu.org>
950
5cba3209
EZ
951 * w32fns.c: Include w32.h.
952 (Fw32_shell_execute): Decode the error message before passing it
953 to `error'. (Bug#6126)
954
d16bdfc3
EZ
955 * msdos.c (dos_set_window_size):
956 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
957 instead of `XSYMBOL (foo)->value'.
958
59d93e87
EZ
9592010-05-07 Eli Zaretskii <eliz@gnu.org>
960
9fdec8bc
EZ
961 Fix the MS-DOS build, broken by autoconfiscation.
962
963 * Makefile.in: Don't use Make-style comments past the "start of
964 cpp stuff" line.
965 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
966
967 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
968 edited directly by msdos/sed1v2.inp).
f724825e 969
2f86b22b
GM
9702010-05-07 Glenn Morris <rgm@gnu.org>
971
972 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
973 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
974 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
975 move out of cpp section.
976 * s/freebsd.h (LD_SWITCH_SYSTEM):
977 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
978 * s/netbsd.h (LD_SWITCH_SYSTEM):
979 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
980
49ebbd65
DN
9812010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
982
983 Define LIB_STANDARD and START_FILES using autoconf.
984 * s/usg5-4.h (LIB_STANDARD):
985 * s/netbsd.h (START_FILES):
986 * s/irix6-5.h (LIB_STANDARD):
987 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
988 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
989 * s/freebsd.h (START_FILES):
990 * s/darwin.h (START_FILES):
991 * s/cygwin.h (START_FILES):
992 * s/aix4-2.h (LIB_STANDARD):
993 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
994 * Makefile.in (STARTFILES): Rename to START_FILES, define using
995 autoconf, not cpp.
996
d43c06d6
DN
9972010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
998
28823648
DN
999 Remove NEED_BSDTTY and NEED_UNISTD_H.
1000 * s/hpux10-20.h (NEED_BSDTTY): Remove.
1001 * s/aix4-2.h (NEED_UNISTD_H): Remove.
1002 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
1003 <sys/ptyio.h> and <unistd.h>.
1004
aca00430
DN
1005 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
1006
d43c06d6
DN
1007 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
1008 * s/gnu.h (START_FILES): Remove empty definition.
1009
3e56b11d
JD
10102010-05-06 Jan Djärv <jan.h.d@swipnet.se>
1011
1012 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
1013
e3cf0cde
GM
10142010-05-06 Glenn Morris <rgm@gnu.org>
1015
1016 * Makefile.in (CPP, LN_S): Remove unused variables.
1017
774b9a60
SM
10182010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
1019
1020 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
1021
4ab92842
LM
10222010-05-05 Lawrence Mitchell <wence@gmx.li>
1023
1024 * m/sparc.h: Fix typo in earlier change.
1025
178f2507
SM
10262010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1027
1028 Misc tweaks.
1029 * eval.c (Fdefvaralias): Remove unintended nested if.
1030 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
1031
80f00217 10322010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
1033
1034 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
1035
ef03a4e6
DN
10362010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1037
58eb6cf0
DN
1038 Remove BSD_PGRPS.
1039 * s/bsd-common.h (BSD_PGRPS): Remove undef.
1040 * s/gnu-linux.h (BSD_PGRPS): Remove.
1041 * term.c (dissociate_if_controlling_tty):
1042 * sysdep.c (narrow_foreground_group, widen_foreground_group)
1043 (init_sys_modes, reset_sys_modes):
1044 * emacs.c (main):
1045 * callproc.c (Fcall_process, child_setup): Remove code depending
1046 on BSD_PGRPS.
1047
ef03a4e6
DN
1048 Remove POSIX_SIGNALS.
1049 * s/usg5-4.h (POSIX_SIGNALS):
1050 * s/netbsd.h (POSIX_SIGNALS):
1051 * s/msdos.h (POSIX_SIGNALS):
1052 * s/ms-w32.h (POSIX_SIGNALS):
1053 * s/hpux11.h (POSIX_SIGNALS):
1054 * s/gnu.h (POSIX_SIGNALS):
1055 * s/gnu-linux.h (POSIX_SIGNALS):
1056 * s/freebsd.h (POSIX_SIGNALS):
1057 * s/darwin.h (POSIX_SIGNALS):
1058 * s/cygwin.h (POSIX_SIGNALS):
1059 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
1060 * s/unixware.h:
1061 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
1062 * process.c (create_process):
1063 * syssignal.h:
1064 * sysdep.c (wait_for_termination, init_signals):
1065 * process.c (create_process):
1066 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
1067 remove all code that assumes the contrary.
1068
49628785
GM
10692010-05-04 Glenn Morris <rgm@gnu.org>
1070
27a2cdfc
GM
1071 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
1072 variable.
1073 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1074 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
1075 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
1076 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
1077 LD_SWITCH_SYSTEM_tmp.
1078 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
1079 New variables, set by configure.
1080
eb21eab5
GM
1081 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1082 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
1083 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
1084 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
1085 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
1086
49628785
GM
1087 * s/aix4-2.h (C_SWITCH_SYSTEM):
1088 * m/alpha.h (C_SWITCH_MACHINE):
1089 Move to configure.in.
1090 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
1091 New variables, set by configure.
1092 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
1093 $c_switch_machine and $c_switch_system.
1094
7dff330b
DN
10952010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
1096
1097 * s/hpux10-20.h (LIB_STANDARD): New definition.
1098 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
1099 on it, not used anymore.
1100
53967e09
CY
11012010-05-03 Chong Yidong <cyd@stupidchicken.com>
1102
1103 * eval.c (internal_condition_case_n): Rename from
1104 internal_condition_case_2.
1105 (internal_condition_case_2): New function.
1106
1107 * xdisp.c (safe_call): Use internal_condition_case_n.
1108
1109 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
1110 (internal_delete_file, Frename_file): Callers changed.
1111
1112 * buffer.c (Fkill_buffer):
1113 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
1114
1115 * lisp.h: Update prototypes.
1116
3dee6fdb
GM
11172010-05-03 Glenn Morris <rgm@gnu.org>
1118
1119 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
1120 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
1121 (LIBXT): Set with configure, not cpp.
1122 (LIBX): Remove.
1123 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
1124
a101e0fb
DN
11252010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1126
1127 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
1128 The FreeBSD is not needed, the default works, Solaris version is
1129 not needed, and the remaining case is not supported by configure.
1130
f63d0028
JD
11312010-05-02 Jan Djärv <jan.h.d@swipnet.se>
1132
1133 * xsmfns.c (CHDIR_OPT): New define.
1134 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
1135 restarting emacs.
1136
1137 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
1138 shut_down_emacs.
1139
1140 * emacs.c (USAGE1): Mention --chdir.
1141 (main): Handle --chdir.
1142 (standard_args): Add --chdir.
1143 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
1144 #5552).
1145
e4814a9f
DN
11462010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
1147
cd03c74a
DN
1148 Remove LD_SWITCH_MACHINE.
1149 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
1150 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
1151
c3a398a1
DN
1152 Clean up IRIX code.
1153 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
1154 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
1155
87e7285c
DN
1156 Clean up AIX code.
1157 * m/ibmrs6000.inp: Remove file, unused.
1158 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
1159 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
1160 definition ...
1161 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
1162
80f00217
JB
1163 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
1164 unused.
e4814a9f 1165
59ca28de
EZ
11662010-05-01 Eli Zaretskii <eliz@gnu.org>
1167
197daef4
EZ
1168 Emulate POSIX_SIGNALS on MS-Windows.
1169
1170 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
1171 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
1172
1173 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
1174 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
1175 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
1176
80f00217
JB
1177 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
1178 New stubs.
197daef4 1179
af7c7572
EZ
1180 Miscellaneous fixes of bidi display.
1181
59ca28de
EZ
1182 * xdisp.c (find_row_end): New function, refactored from display_line.
1183 (display_line): Use it.
017ea819
EZ
1184 (extend_face_to_end_of_line): In almost-filled rows, extend only
1185 if the row is R2L and not continued.
166e930d 1186 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 1187 Preserve overlay and string info in row->end.
166e930d
EZ
1188 (insert_left_trunc_glyphs): Support addition of left truncation
1189 glyphs to R2L rows.
b47e0dcf 1190 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
1191 glyph between adjacent windows. Fix a crash when a display string
1192 is continued to the next line. Don't return zero if cursor was
1193 found by `cursor' property of a display string.
b47e0dcf
EZ
1194 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
1195 test for that explicitly.
59ca28de 1196
7acac9f4
GM
11972010-05-01 Glenn Morris <rgm@gnu.org>
1198
1199 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
1200 for clarity.
1201 (OTHER_OBJ): Remove.
1202 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
1203 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
1204
45841e65
KK
12052010-05-01 Karel Klíč <kklic@redhat.com>
1206
1207 * fileio.c (Ffile_selinux_context): Context functions may return null.
1208
afc61943
DN
12092010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
1210
80f00217 1211 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 1212
5a1bb006
GM
12132010-04-30 Glenn Morris <rgm@gnu.org>
1214
1215 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
1216 (OTHER_OBJ): Define as a separate variable, for clarity.
1217
210af043
J
12182010-04-30 Jan Djärv <jan.h.d@swipnet.se>
1219
1220 * xsettings.c: include limits.h and update file comment.
1221
0a7df391
GM
12222010-04-30 Glenn Morris <rgm@gnu.org>
1223
d5096f16
GM
1224 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
1225 Set with configure, not cpp.
1226 (LIBW): Remove, replace with $TOOLKIT_LIBW.
1227
7eb1ac33
GM
1228 * Makefile.in (mallocobj): Remove.
1229 (otherobj): Simplify using @OTHER_OBJ@.
1230
517d086b
GM
1231 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
1232 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
1233 Don't bother making nsgui.h dependency platform-specific.
1234
0a7df391
GM
1235 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
1236
d6d23852
SM
12372010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
1238
d2630aef
SM
1239 * process.c (read_process_output, exec_sentinel): Don't burp if the
1240 sentinel/filter kills the current buffer (bug#6060).
1241
f9dddf52 1242 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
1243 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
1244 Remove unused var `args'.
1245 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
1246 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
1247 * doc.c (store_function_docstring): Use XSETCAR.
1248
f1e3642a
GM
12492010-04-28 Glenn Morris <rgm@gnu.org>
1250
faf535f8
GM
1251 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
1252 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
1253
c40f9449
GM
1254 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
1255
658f86ca
GM
1256 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
1257 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
1258
bc0b5f61
GM
1259 * Makefile.in (FONT_OBJ): New, set by configure.
1260 (FONT_DRIVERS): Use $FONT_OBJ.
1261
294c50a0
GM
1262 * Makefile.in (LIBXMU): Set with configure, not cpp.
1263 * s/aix4-2.h (LIBXMU):
1264 * s/hpux10-20.h (LIBXMU):
1265 Remove definition, now set in configure.
1266
e6ec4e99
GM
1267 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
1268
f1e3642a
GM
1269 * m/amdx86-64.h [i386]: Move this test to configure.in.
1270
c6ea2936
GM
12712010-04-27 Glenn Morris <rgm@gnu.org>
1272
8fdac2c3
GM
1273 * Makefile.in (LIBXTR6): Set with configure, not cpp.
1274 * s/unixware.h (NEED_LIBW): Remove definition.
1275
986fb647
GM
1276 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
1277 (TOOLKIT_LIBW): New, set by configure.
1278 (@X_TOOLKIT_TYPE@): No longer define it.
1279
c6ea2936
GM
1280 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
1281 (MOTIF_LIBW): Set with configure, not cpp.
1282 * s/aix4-2.h (LIB_MOTIF):
1283 * s/gnu-linux.h (LIB_MOTIF):
1284 * s/unixware.h (LIB_MOTIF): Move to configure.in.
1285
aaa36002
DN
12862010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
1287
1288 Reduce CPP usage.
1289 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
1290 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
1291 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
1292 definitions and undefs. Inline definitions in the only user.
1293 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 1294
b678dd8b
GM
12952010-04-27 Glenn Morris <rgm@gnu.org>
1296
76cda504
GM
1297 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
1298 since the defaults (set by the system file) are fine in most cases.
1299 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
1300 * m/ibms390x.h (START_FILES, LIB_STANDARD):
1301 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
1302 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
1303 Remove definitions, since they are set correctly in s/gnu-linux.h.
1304 * s/freebsd.h (START_FILES, LIB_STANDARD):
1305 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
1306 * s/hpux10-20.h (START_FILES):
1307 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
1308 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
1309
b678dd8b
GM
1310 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
1311 (MOTIF_LIBW): Use $LIBXP.
1312 (otherobj): Use $WIDGET_OBJ.
1313
9452ded1
DN
13142010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
1315
7e10844c
DN
1316 * Makefile.in (LIBS_MACHINE): Remove, unused.
1317
9452ded1
DN
1318 Use autoconf instead of cpp for LIB_MATH.
1319 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
1320 * s/cygwin.h (LIB_MATH): Likewise.
1321 * Makefile.in (LIB_MATH): Do not define with cpp.
1322 (LIBES): Use autoconf for LIB_MATH.
1323
fcebfc6a
KH
13242010-04-26 Kenichi Handa <handa@m17n.org>
1325
1326 * composite.c (Ffind_composition_internal): Fix the return value
1327 for an automatic composition.
1328
39e2ad1b
DN
13292010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
1330
1331 Remove all NO_ARG_ARRAY uses.
1332 * fns.c (concat2, concat3, nconc2):
1333 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
1334 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
1335 * m/xtensa.h (NO_ARG_ARRAY):
1336 * m/template.h (NO_ARG_ARRAY):
1337 * m/sparc.h (NO_ARG_ARRAY):
1338 * m/sh3.h (NO_ARG_ARRAY):
1339 * m/mips.h (NO_ARG_ARRAY):
1340 * m/macppc.h (NO_ARG_ARRAY):
1341 * m/iris4d.h (NO_ARG_ARRAY):
1342 * m/intel386.h (NO_ARG_ARRAY):
1343 * m/ibms390x.h (NO_ARG_ARRAY):
1344 * m/ibms390.h (NO_ARG_ARRAY):
1345 * m/ibmrs6000.h (NO_ARG_ARRAY):
1346 * m/ia64.h (NO_ARG_ARRAY):
1347 * m/hp800.h (NO_ARG_ARRAY):
1348 * m/arm.h (NO_ARG_ARRAY):
1349 * m/amdx86-64.h (NO_ARG_ARRAY):
1350 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
1351
adf4f59c
EZ
13522010-04-25 Eli Zaretskii <eliz@gnu.org>
1353
6bdf5d65
EZ
1354 * xdisp.c (display_line): Don't assume 2nd call to
1355 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
1356 (iterate_out_of_display_property): New function, body from pop_it.
1357 (pop_it): Use it.
adf4f59c 1358
dfbbda83
GM
13592010-04-24 Glenn Morris <rgm@gnu.org>
1360
1361 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
1362 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
1363 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
1364 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
1365
2d4018aa
EZ
13662010-04-24 Eli Zaretskii <eliz@gnu.org>
1367
a49884a6
EZ
1368 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
1369 use `get_next_display_element' and `set_iterator_to_next' to
1370 advance to the next character, when looking for the character that
1371 begins the next row.
1372
76db6fcc 1373 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
1374 definition of "struct Lisp_Symbol".
1375
70eab5c1
GM
13762010-04-24 Glenn Morris <rgm@gnu.org>
1377
1378 * Makefile.in (CRT_DIR): New variable, set by configure.
1379 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
1380 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
1381
1ad4cc3d
DN
13822010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1383
e769f484
DN
1384 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
1385
4196ff33
DN
1386 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
1387
879b0ee4
DN
1388 Remove redundant flags.
1389 * s/freebsd.h (C_SWITCH_SYSTEM):
1390 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
1391 * s/netbsd.h (C_SWITCH_SYSTEM):
1392 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
1393 of these.
1394
03cbbcb8
DN
1395 Simplify m/intel386.h.
1396 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
1397 user: ecrt0.c.
1398 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
1399 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
1400 the only user: s/unixware.h.
1401 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
1402 from m/intel386.h.
1403 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
1404 moved here from m/intel386.h.
1405
1ad4cc3d
DN
1406 * m/mips.h: Remove #if 0 code.
1407
8785b888
EZ
14082010-04-23 Eli Zaretskii <eliz@gnu.org>
1409
728588cc
EZ
1410 Fix display of composed characters from L2R scripts in bidi buffers.
1411 * xdisp.c (set_iterator_to_next, next_element_from_composition):
1412 After advancing IT past the composition, resync the bidi iterator
1413 with IT's position. (Bug#5977)
1414
a63f80b4
DN
14152010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1416
1417 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
1418 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
1419
ff5dec5c
SM
14202010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
1421
1422 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
1423
8785b888
EZ
14242010-04-23 Eli Zaretskii <eliz@gnu.org>
1425
58ccf243 1426 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
1427 * xdisp.c (pop_it): When the stack is popped after displaying
1428 from a string, bidi-iterate to exit from the text portion covered
1429 by the `display' property or overlay. (Bug#5988, bug#5920)
1430
feeb1604
DN
14312010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
1432
8e324eb6
DN
1433 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
1434 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
1435
809fcaba
DN
1436 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
1437 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
1438
ed710380
DN
1439 Simplify STARTFILES definition.
1440 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
1441 relying on Makefile.in to define it.
1442 * s/cygwin.h (START_FILES): Likewise.
1443 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
1444
feeb1604
DN
1445 Clean up Solaris code.
1446 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
1447 (LIB_MOTIF): Remove, configure takes care of this.
1448 (NOT_USING_MOTIF): Remove, unused.
1449 * xrdb.c: Remove #if 0-ed #include.
1450 (SYSV): Remove conditional for old SysV.
1451 * sysdep.c (closedir): Remove conditional code for Solaris,
1452 Solaris has closedir.
1453
a0d0b563
JD
14542010-04-22 Jan Djärv <jan.h.d@swipnet.se>
1455
1456 * xsettings.c (read_and_apply_settings): Check if current_font is
1457 NULL before strcmp (Bug#6001).
1458
56bae7c7
DN
14592010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
1460
1461 Clean up HP-UX files.
1462 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
1463 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
1464 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
1465 * s/hpux10-20.h: ... to the only user, here.
1466
372b7a95
EZ
14672010-04-21 Eli Zaretskii <eliz@gnu.org>
1468
1469 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
1470 use buffer-local values of paragraph-start and paragraph-separate.
1471 <paragraph_start_re, paragraph_separate_re>: Rename from
1472 fallback_paragraph_start_re and fallback_paragraph_separate_re.
1473 (Bug#5992)
1474
f904c0f9
JD
14752010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1476
1477 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
1478 current_tool_bar_style are new.
1479 (store_config_changed_event): Rename from store_font_changed_event.
1480 (XSETTINGS_TOOL_BAR_STYLE): New define.
1481 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
1482 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
1483 HAVE_XFT.
1484 (something_changedCB): store_font_changed_event is now
1485 store_config_changed_event
1486 (parse_settings): Rename from parse_xft_settings. Read
1487 non-xft xsettings outside #ifdef HAVE_XFT.
1488 (read_settings): Renamed from read_xft_settings.
1489 (apply_xft_settings): Take current settings as parameter. Do not
1490 call read_(xft)_settings.
1491 (read_and_apply_settings): New function.
1492 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
1493 read_and_apply_settings if there are settings to be read.
1494 (init_xsettings): Renamed from init_xfd_settings.
1495 Call read_and_apply_settings unconditionally.
1496 (xsettings_initialize): Call init_xsettings.
1497 (Ftool_bar_get_system_style): New function.
1498 (syms_of_xsettings): Define Qmonospace_font_name and
1499 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 1500 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 1501 dynamic-setting.
31a01b90 1502 Move misplaced HAVE_GCONF
f904c0f9
JD
1503
1504 * xsettings.h (Ftool_bar_get_system_style): Declare.
1505
1506 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
1507 Qtext, Qboth, Qboth_horiz are new.
1508 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
1509 Vtool_bar_style, tool_bar_max_label_size.
1510
1511 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
1512
1513 * keyboard.c: QClabel is new.
1514 (parse_tool_bar_item): Take out QClabel from tool bar items.
1515 Try to construct a label if ther is no QClabel.
1516 (syms_of_keyboard): Intern :label as QClabel.
1517
1518 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
1519 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
1520 New.
1521
1522 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
1523 dynamic-setting.el.
1524
1525 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
1526 (xg_make_tool_item, xg_show_toolbar_item): New function.
1527 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
1528 Call xg_make_tool_item to make a tool bar item.
1529 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
1530
1531 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
1532 into account for toolbars.
1533
c632dfda
JD
15342010-04-21 Jan Djärv <jan.h.d@swipnet.se>
1535
1536 * data.c (make_blv): Declarations before code (Bug#5993).
1537
10efe302
GM
15382010-04-21 Glenn Morris <rgm@gnu.org>
1539
1540 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
1541 Define using autoconf, not cpp.
1542 (LIBXSM): New variable, set by autoconf.
1543 (LIBXT): Use $LIBXSM.
1544
4285ac5a
DN
15452010-04-21 Dan Nicolaescu <local_user@dannlt>
1546
3ec759e7
DN
1547 Remove NOMULTIPLEJOBS, unused.
1548 * s/template.h (NOMULTIPLEJOBS):
1549 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
1550
4285ac5a
DN
1551 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
1552 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
1553 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
1554 detects -znocombreloc and passes it to the linker
1555 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
1556
2807228d
GM
15572010-04-21 Glenn Morris <rgm@gnu.org>
1558
1559 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
1560
574c05e2
KK
15612010-04-21 Karel Klíč <kklic@redhat.com>
1562
1563 * Makefile.in (LIBSELINUX_LIBS): New.
1564 (LIBES): Add $LIBSELINUX_LIBS.
1565 * eval.c, lisp.h (call7): New function.
1566 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
1567 (Ffile_selinux_context, Fset_file_selinux_context):
1568 New functions.
1569 (Fcopy_file): New parameter preserve-selinux-context.
1570 (Frename_file): Preserve selinux context when renaming by copy-file.
1571
91eac4bb 15722010-04-21 Juanma Barranquero <lekktu@gmail.com>
4e2af782 1573 Eli Zaretskii <eliz@gnu.org>
91eac4bb 1574
50426a04
JB
1575 Don't depend on cm.c or termcap.c on Windows, use stubs.
1576 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
1577 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
1578 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
1579 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
1580 (sys_tputs, sys_tgetstr): New stubs.
1581 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
1582 (tputs, tgetstr): New; define to sys_*.
91eac4bb 1583
938efb77
JB
15842010-04-20 Juanma Barranquero <lekktu@gmail.com>
1585
1586 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
1587
b4bf28b7
SM
15882010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1589
8b1e1112
SM
1590 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
1591 Just signal a warning rather than an error when inside a let.
1592 (Fmake_variable_frame_local): Add the same test.
1593
933ac235
SM
1594 * font.c (syms_of_font): Make the style table vars read-only.
1595
b4bf28b7
SM
1596 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
1597 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
1598
1599 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
1600
93d68d0c
EZ
16012010-04-20 Eli Zaretskii <eliz@gnu.org>
1602
1603 Fix R2L paragraph display on TTY.
1604
1605 * xdisp.c (unproduce_glyphs): New function.
1606 (display_line): Use it when produced glyphs are discarded from R2L
1607 glyph rows.
1608 (append_composite_glyph): In R2L rows, prepend the glyph rather
1609 than appending it.
1610
1611 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
1612 rather than append it. Set up the resolved_level and bidi_type
1613 attributes of the appended glyph.
283ccc18
EZ
1614 (produce_special_glyphs): Mirror the backslash continuation
1615 character in R2L lines.
93d68d0c 1616
283ccc18 1617 Implement display of R2L paragraphs in GUI sessions.
26cdf528 1618
283ccc18
EZ
1619 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
1620 append_stretch_glyph.
1621 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
1622 off-by-one error in computing x at end of text in the row.
1623 (append_stretch_glyph): In reversed row, prepend the glyph rather
1624 than append it. Set resolved_level and bidi_type of the glyph.
1625 (extend_face_to_end_of_line): If the row is reversed, prepend a
1626 stretch glyph whose width is such that the rightmost glyph will be
1627 drawn at the right margin of the window. Fix off-by-one error on
1628 TTY frames in testing whether a line needs face extension. Fix
1629 face extension at ZV. If this is the last glyph row, use
1630 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
1631 region face.
1632 (set_cursor_from_row, display_line): Use
26cdf528
EZ
1633 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
1634 row->continuation_lines_width.
283ccc18
EZ
1635 (next_element_from_buffer): Don't call bidi_paragraph_init if we
1636 are at ZV. Fixes a crash when reseated to ZV by
1637 try_window_reusing_current_matrix.
45903529
EZ
1638 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
1639 which happens with R2L glyph rows. Fixes a crash when inserting a
1640 character at end of an R2L line.
283ccc18
EZ
1641 (set_cursor_from_row): Don't be fooled by truncated rows: don't
1642 treat them as having zero-width characters. Improve comments.
1643 Don't reverse pos_before and pos_after for reversed glyph rows.
1644 Set cursor.x to negative value when the cursor might be on the
1645 left fringe.
1646 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
1647 left fringe, not the right one.
f951a506
EZ
1648 (notice_overwritten_cursor, draw_phys_cursor_glyph)
1649 (erase_phys_cursor): For reversed cursor_row, support cursor on
1650 the left fringe.
1651
283ccc18
EZ
1652 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
1653 of continuation indicators on the fringes.
1654 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
1655 left fringe.
1656
f951a506
EZ
1657 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
1658 draw cursor on the left fringe.
1659
1660 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
1661 cursor on the left fringe.
1662
f951a506
EZ
1663 * dispnew.c (update_text_area): Handle reversed desired rows when
1664 the cursor is on the left fringe.
1665 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
1666 below, not by 0, for when the cursor is on the left fringe.
1667
3bb49aaf
JD
16682010-04-20 Jan Djärv <jan.h.d@swipnet.se>
1669
1670 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
1671 widget is a scrollbar.
1672
c0be27fd
KH
16732010-04-20 Kenichi Handa <handa@m17n.org>
1674
1675 * charset.c (char_charset): Consider Vcharset_non_preferred_head
1676 only when the arg CHARSET_LIST is nil.
1677
ce5b453a
SM
16782010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
1679
1680 Make variable forwarding explicit rather the using special values.
1681 Basically, this makes the structure of buffer-local values and object
1682 forwarding explicit in the type of Lisp_Symbols rather than use
1683 special Lisp_Objects for that. This tends to lead to slightly more
1684 verbose code, but is more C-like, simpler, and makes it easier to make
1685 sure we handled all cases, among other things by letting the compiler
1686 help us check it.
1687 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
1688 Removing forwarding objects.
1689 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
1690 (struct Lisp_Symbol): Make the various forms of variable-forwarding
1691 explicit rather than hiding them inside Lisp_Object "values".
1692 (XFWDTYPE): New macro.
1693 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
1694 (XBUFFER_LOCAL_VALUE): Remove.
1695 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
1696 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
1697 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
1698 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
1699 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
1700 Remove the Lisp_Misc_* header.
1701 (struct Lisp_Buffer_Local_Value): Redefine.
1702 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
1703 (struct Lisp_Misc_Any): Add filler to get the right size.
1704 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
1705 Lisp_Intfwd.
1706 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
1707 (DEFVAR_KBOARD): Allocate a forwarding object.
1708 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
1709 (let_shadows_global_binding_p): New function.
1710 (union Lisp_Val_Fwd): New type.
1711 (make_blv): New function.
1712 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
1713 (store_symval_forwarding, swap_in_global_binding, Fboundp)
1714 (swap_in_symval_forwarding, find_symbol_value, Fset)
1715 (let_shadows_buffer_binding_p, set_internal, default_value)
1716 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
1717 (Fkill_local_variable, Fmake_variable_frame_local)
1718 (Flocal_variable_p, Flocal_variable_if_set_p)
1719 (Fvariable_binding_locus):
1720 * xdisp.c (select_frame_for_redisplay):
1721 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
1722 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
1723 * frame.c (store_frame_param):
1724 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
1725 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
1726 value structure.
1727 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
1728 (clone_per_buffer_values): Only adjust markers into the current buffer.
1729 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
1730 (Fbuffer_local_value, set_buffer_internal_1)
1731 (swap_out_buffer_local_variables):
1732 Adapt to the new symbol value structure.
1733 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
1734 (defvar_per_buffer): Take a new arg for the fwd object.
1735 (buffer_lisp_local_variables): Return a proper alist (different fix
1736 for bug#4138).
1737 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
1738 (Fgarbage_collect): Don't handle buffer_defaults specially.
1739 (mark_object): Handle new symbol value structure rather than the old
1740 special Lisp_Misc_* objects.
1741 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
1742 * term.c (set_tty_color_mode):
1743 * bidi.c (bidi_initialize): Don't access the ->value field directly.
1744 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
1745 a buffer_local_flags.
1746 * print.c (print_object): Get rid of impossible forwarding objects.
1747
fd3998ff
EZ
17482010-04-19 Eli Zaretskii <eliz@gnu.org>
1749
1750 * bidi.c (bidi_get_type, bidi_get_category)
1751 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
1752 (bidi_type_of_next_char, bidi_level_of_next_char):
1753 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 1754
e42cd1a7
JB
17552010-04-19 Juanma Barranquero <lekktu@gmail.com>
1756
1757 * dired.c (Ffile_attributes): Fix typo in docstring.
1758
6e104790 17592010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
1760
1761 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
1762 NSInteger (Bug#5811).
1763
6e104790 17642010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
1765
1766 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
1767 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
1768
6e104790 17692010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
1770
1771 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
1772
6e104790
SM
17732010-04-19 Chong Yidong <cyd@stupidchicken.com>
1774
1775 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
1776 terminal frames (Bug#5837).
1777
37dcfea0
EZ
17782010-04-19 Eli Zaretskii <eliz@gnu.org>
1779
d1da276f
EZ
1780 * .gdbinit (xsubchartable): New command.
1781
37dcfea0
EZ
17822010-04-19 Eli Zaretskii <eliz@gnu.org>
1783
1784 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 1785 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
1786 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
1787 and
1788 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
1789
e9515805
SM
17902010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
1791
1792 * alloc.c (Fpurecopy): Hash-cons if requested.
1793 (syms_of_alloc): Update purify-flag docstring.
1794
22aa44a8
JD
17952010-04-18 Jan Djärv <jan.h.d@swipnet.se>
1796
1797 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
1798 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
1799
ebb5722e
EZ
18002010-04-17 Eli Zaretskii <eliz@gnu.org>
1801
1802 Fix a crash when an NSM character is inserted at BEGV.
1803
1804 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
1805 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
1806 NEUTRAL_B or UNKNOWN_BT.
1807
0f4442ef
EZ
18082010-04-16 Eli Zaretskii <eliz@gnu.org>
1809
1810 * xdisp.c (set_cursor_from_row): Don't consider possibility of
1811 other rows with cursor unless they are different from this row and
1812 this row is part of a continued line. (Bug#5943)
1813
7d4e45f8
DN
18142010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
1815
1816 * s/freebsd.h: Restore osreldate.h include.
1817 Suggested by Naohiro Aota.
1818
5ba5ec85
J
18192010-04-16 Jan Djärv <jan.h.d@swipnet.se>
1820
1821 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
1822
20af301d
CY
18232010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
1824
1825 * s/cygwin.h: Avoid linking against static libgcc.
1826
a4b000fb
JL
18272010-04-15 Juri Linkov <juri@jurta.org>
1828
1829 * window.c: Add Qscroll_command.
1830 Remove Vscroll_preserve_screen_position_commands.
1831 (window_scroll_pixel_based, window_scroll_line_based): Check the
1832 `scroll-command' property on the last command instead of searching
1833 the last command in Vscroll_preserve_screen_position_commands.
1834 (syms_of_window): Initialize and staticpro `Qscroll_command'.
1835 Put Qscroll_command property on Qscroll_up and Qscroll_down.
1836 (scroll-preserve-screen-position): Doc fix.
1837 (Vscroll_preserve_screen_position_commands): Remove variable.
1838
bc319ba4
DN
18392010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1840
6bb24457
DN
1841 * xdisp.c (message): Do not use NO_ARG_ARRAY.
1842
19d4c244
DN
18432010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
1844
1845 Reduce cpp use in Makefile.in.
1846 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
1847 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
1848 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
1849 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
1850 (CRT0_COMPILE): Remove, inline it in the only user.
1851
32129746
JL
18522010-04-14 Juri Linkov <juri@jurta.org>
1853
1854 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
1855 `scroll-up-command' and `M-v' from `scroll-down' to
1856 `scroll-down-command'.
1857
9013a7f8
JL
18582010-04-14 Juri Linkov <juri@jurta.org>
1859
1860 * window.c (Vscroll_preserve_screen_position_commands): New variable
1861 with the default value as the list of Qscroll_down and Qscroll_up.
1862 (window_scroll_pixel_based, window_scroll_line_based): Search the
1863 last command in the list Vscroll_preserve_screen_position_commands
1864 instead of comparing with Qscroll_up and Qscroll_down.
1865
4bef8d26
JD
18662010-04-13 Jan Djärv <jan.h.d@swipnet.se>
1867
92848133
JD
1868 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
1869 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
1870 does that.
1871
4bef8d26
JD
1872 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
1873 to zero.
1874
58b963f7
SM
18752010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1876
84164a0d
SM
1877 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
1878
2b0a91e7
SM
1879 Try to solve the problem of spurious EOF chars in long lines of text
1880 sent to interactive subprocesses.
1881 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
1882 (system_process_attributes): Remove unused var `ttotal'.
1883 * process.c (send_process): Don't bother breaking long line with EOF
1884 chars when talking to ttys any more.
1885 (wait_reading_process_output): Output a warning when called in such
1886 a way that it could block without being interruptible.
1887
58b963f7
SM
1888 Try to detect file modification within the same second.
1889 * buffer.h (struct buffer): New field modtime_size.
1890 * buffer.c (reset_buffer): Initialize it.
1891 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
1892 (Fverify_visited_file_modtime): Check it.
1893 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
1894 (Fset_visited_file_modtime): Set (or clear) it.
1895
01f5787b
SM
18962010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
1897
1898 * process.c (status_notify): Remove unused var `ro'.
1899
83725342
JD
19002010-04-12 Jan Djärv <jan.h.d@swipnet.se>
1901
1902 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
1903 more than one visual (Bug#5938).
1904
b9465836
DN
19052010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
1906
50426a04
JB
1907 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
1908 Undefine.
b9465836 1909
8d9c8ece
DN
19102010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
1911
b1f52161
DN
1912 Remove C_SWITCH_SYSTEM_TEMACS.
1913 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
1914 (malloc, realloc, free): Use emacs, not temacs for conditional
1915 definition.
1916
1917 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
1918 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
1919
8d9c8ece
DN
1920 Use autoconf, not cpp for some variables.
1921 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
1922 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
1923 (ALL_CFLAGS): Use them as make variables.
1924 (really-lwlib, really-oldXMenu): Do not pass them.
1925
1ecb2d3f
JD
19262010-04-11 Jan Djärv <jan.h.d@swipnet.se>
1927
1928 * xmenu.c (apply_systemfont_to_dialog): New.
1929 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
1930
3a4fa2f2
SM
19312010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
1932
97e53006
SM
1933 * process.c (exec_sentinel): Preserve current-buffer.
1934
3a4fa2f2
SM
1935 * process.c (read_process_output): Move the save-current-buffer to
1936 apply to both the filter and the non-filter branches.
1937
88df7221
DN
19382010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
1939
1940 * s/msdos.h (UNEXEC): New definition.
1941
5634ff85
YM
19422010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1943
6eff5c3d
YM
1944 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
1945 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
1946
1947 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
1948 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
1949 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
1950 TRY_WINDOW_CHECK_MARGINS.
1951
1952 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
1953 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
1954 width only when it is for padding.
5634ff85 1955
b13aef54
J
19562010-04-09 Jan Djärv <jan.h.d@swipnet.se>
1957
1958 * xfns.c (Fx_show_tip): Call try_window in a loop until
1959 fonts_changed_p is zero (Bug#2423).
1960
21d28484
EZ
19612010-04-08 Eli Zaretskii <eliz@gnu.org>
1962
1963 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
1964 the end of TEXT_AREA. (Bug#5856)
1965
0269ef77
JD
19662010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1967
1968 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
1969 HAVE_GCONF.
1970
5930fe97
EZ
19712010-04-08 Eli Zaretskii <eliz@gnu.org>
1972
1973 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
1974 prev.orig_type, for resolving type of NSM. (Bug#5858)
1975
99852628
JD
19762010-04-08 Jan Djärv <jan.h.d@swipnet.se>
1977
1978 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
1979 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
1980 in current_font.
1981 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
1982 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
1983 New functions.
1984 (syms_of_xsettings): Initialize current_font.
1985 defsubr Sfont_get_system_normal_font.
99852628
JD
1986
1987 * xsettings.h (Ffont_get_system_normal_font,
1988 xsettings_get_system_normal_font): Declare.
1989
1990 * xfns.c (extern xlwmenu_default_font): Remove.
1991 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
1992 to xlwmenu.c.
1993
1994 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
1995 menu items in UTF-8.
1996
1997 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
1998 (apply_systemfont_to_menu): New function.
1999 (set_frame_menubar, create_and_show_popup_menu): Call
2000 apply_systemfont_to_menu.
2001
7fc874c4
J
20022010-04-07 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
2005 FRAME_LINE_TO_PIXEL_Y.
2006
2007 * xterm.c (x_set_window_size_1): Don't add border_width/height to
2008 pixelwidth/height.
2009
863bf481
DN
20102010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
2011
5e5a3b92
DN
2012 Simplify code for HP machines.
2013 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
2014 for GNU_LINUX, not needed.
2015 (UNEXEC, NEED_BSDTTY): Move definitions...
2016 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
2017
863bf481
DN
2018 * m/iris4d.h (UNEXEC): Move definition ...
2019 * s/irix6-5.h (UNEXEC): ... here.
2020
3e6bec3b
JD
20212010-04-04 Jan Djärv <jan.h.d@swipnet.se>
2022
2023 * xfns.c (set_machine_and_pid_properties): New function.
2024 (Fx_create_frame): Call set_machine_and_pid_properties.
2025
2912322b
SM
20262010-04-03 Eli Zaretskii <eliz@gnu.org>
2027
1502b819
EZ
2028 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
2029 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
2030 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
2031
2912322b
SM
2032 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
2033 in this function. (Bug#5703)
2034
20352010-04-03 Chong Yidong <cyd@stupidchicken.com>
2036
2037 * nsterm.h: Fix last change.
2038
c435b432
DN
20392010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
2040
a568f507
DN
2041 * m/intel386.h (NO_REMAP): Move definition ...
2042 * s/msdos.h (NO_REMAP): ... here.
2043
4cd9f6c2
DN
2044 * m/vax.h (CRT0_DUMMIES): Remove, unused.
2045
c435b432
DN
2046 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
2047 used on those platforms.
2048
42a2c622
DN
20492010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
2050
2051 Remove extern errno declarations.
2052 * xterm.c:
2053 * xrdb.c:
2054 * w32term.c:
2055 * unexec.c:
2056 * unexaix.c:
2057 * sysdep.c:
2058 * process.c:
2059 * lread.c:
2060 * keyboard.c:
2061 * floatfns.c:
2062 * filelock.c:
2063 * fileio.c:
2064 * emacs.c (main):
2065 * ecrt0.c:
2066 * dispnew.c:
2067 * callproc.c:
2068 * buffer.c: Remove errno extern declarations.
2069 * s/netbsd.h (NEED_ERRNO): Remove.
2070
8224f93d
DN
20712010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 Remove all uses of LIBX11_SYSTEM.
2074 * Makefile.in (LIBX11_SYSTEM): Remove.
2075 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
2076 instead.
2077
814062c7
EZ
20782010-04-01 Eli Zaretskii <eliz@gnu.org>
2079
ed68db4d
EZ
2080 Remove support for DJGPP v1.x (bug#5813).
2081
2082 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
2083 * s/msdos.h:
2084 * unexec.c (make_hdr, copy_text_and_data):
2085 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 2086 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
2087 (IT_set_terminal_modes, __write, _rename, gethostname)
2088 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
2089 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
2090 the value of __DJGPP__.
ed68db4d
EZ
2091 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
2092 compatibility code.
8224f93d
DN
2093 * lread.c:
2094 * gmalloc.c (memalign):
2095 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
2096 * emacs.c (main):
2097 * dosfns.c (init_dosfns):
ed68db4d
EZ
2098 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
2099
52f4d8d5
EZ
21002010-04-01 Eli Zaretskii <eliz@gnu.org>
2101
814062c7
EZ
2102 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
2103 string with `cursor' property comes from an `after-string'
2104 overlay. (Bug#5816)
2105
0dc2e11d
GM
21062010-04-01 Glenn Morris <rgm@gnu.org>
2107
2108 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
2109 Define as Makefile variables.
2110 (LIBX): Use above variables rather than directly using autoconf.
2111
1d29df59
DN
21122010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
2113
2114 Clean up BSD_SYSTEM use.
2115 * xterm.c:
2116 * process.c:
2117 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
2118 for including <sys/ioctl.h>.
2119 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
2120 code is only used for MSDOS.
2121
1546c559
JL
21222010-03-31 Juri Linkov <juri@jurta.org>
2123
2124 * image.c: Add `Qextension_data'.
2125 (syms_of_image): Initialize and staticpro `Qextension_data'.
2126 (Fimage_metadata): Rename from `Fimage_extension_data'.
2127 (gif_load): Put GIF extension data to the property
2128 `Qextension_data'.
2129
6521c534
CY
21302010-03-31 Chong Yidong <cyd@stupidchicken.com>
2131
2132 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
2133 * nsterm.h: Fix prototype.
2134
52c30783
EZ
21352010-03-31 Eli Zaretskii <eliz@gnu.org>
2136
2137 * xdisp.c (highlight_trailing_whitespace): Support highlight of
2138 trailing whitespace in right-to-left rows.
2139
855a0da7
SM
21402010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2141
2142 Get rid of the direct_output optimizations.
2143 * keyboard.c (nonundocount): Remove extern declaration.
2144 (command_loop_1): Remove brittle optimisation for cheap and
2145 common operations.
2146 * xdisp.c (redisplay_internal): Don't bother checking
2147 redisplay_performed_directly_p any more.
2148 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
2149 any more.
2150 * dispnew.c (redisplay_performed_directly_p)
2151 (direct_output_for_insert, direct_output_forward_char):
2152 * dispextern.h (redisplay_performed_directly_p)
2153 (direct_output_for_insert, direct_output_forward_char): Remove.
2154 * cmds.c (nonundocount): Make it static.
2155
85738751 21562010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
2157
2158 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
2159
85738751 21602010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
2161
2162 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
2163 invisible (Bug#5766).
2164
85738751 21652010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 2166
855a0da7
SM
2167 * xdisp.c (x_consider_frame_title, update_window_cursor):
2168 Remove HAVE_NS conditionals.
194d44e7 2169 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
2170
2171 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
2172 filename for the title.
2173 (ns_set_doc_edited): Do nothing if the selected window is a
2174 minibuffer window.
2175
2176 * nsterm.h: Add prototypes for ns_set_name_as_filename and
2177 ns_set_doc_edited.
2178
2179 * nsterm.m: Remove unneeded prototype.
2180
85738751 21812010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
2182
2183 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
2184 in the DOC file. (Bug#5336)
2185
85738751 21862010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
2187
2188 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
2189
75d1428c
SM
21902010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * window.c (keys_of_window): Remove redundant/overridden bindings.
2193
82043cfb
EZ
21942010-03-30 Eli Zaretskii <eliz@gnu.org>
2195
2196 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
2197 Restore original behavior when the iterator is not bidi_p.
2198
b5dd0ae7
DN
21992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2200
2201 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
2202
bd924a5d
EZ
22032010-03-30 Eli Zaretskii <eliz@gnu.org>
2204
2205 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
2206 are outside the range of cached character positions.
2207
3580374b
JB
22082010-03-30 Juanma Barranquero <lekktu@gmail.com>
2209
2210 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
2211
a7b02820
EZ
22122010-03-30 Eli Zaretskii <eliz@gnu.org>
2213
2214 Initial support for bidirectional editing.
2215
2216 * Makefile.in (obj): Include bidi.o.
2217 (bidi.o): New target.
2218
2219 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
2220 ($(BLD)/bidi.$(O)): New target.
2221
2222 * bidi.c: New file.
2223
2224 * buffer.h (struct buffer): New members bidi_display_reordering
2225 and bidi_paragraph_direction.
2226
2227 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
2228 and bidi_paragraph_direction.
2229 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
2230 and bidi-paragraph-direction.
2231 (Fbuffer_swap_text): Swap the values of
2232 bidi_display_reordering and bidi_paragraph_direction.
2233
2234 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
2235 (bidi_type_t, bidi_dir_t): New types.
2236 (bidi_saved_info, bidi_stack, bidi_it): New structures.
2237 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
2238 prev_stop, base_level_stop, and eol_pos.
2239 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
2240 (IT_STACK_SIZE): Enlarge to 5.
2241 (struct glyph_row): New member reversed_p.
2242 <string_buffer_position>: Update prototype.
2243 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
2244 glyph_row if bidi_it.paragraph_dir == R2L.
2245 (struct glyph): New members resolved_level and bidi_type.
2246
2247 * dispnew.c (direct_output_forward_char): Give up if we need bidi
2248 processing or buffer's direction is right-to-left.
2249 (prepare_desired_row): Preserve the reversed_p flag.
2250 (row_equal_p): Compare the reversed_p attributes as well.
2251
2252 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
2253 bidi_init_it and set it->paragraph_embedding from the current
2254 buffer's value of bidi_paragraph_direction.
2255 (reseat_1): Initialize bidi_it.first_elt.
2256 (set_iterator_to_next, next_element_from_buffer): Use the value of
2257 paragraph_embedding to determine the paragraph direction.
2258 (set_iterator_to_next): Under bidi reordering, call
2259 bidi_get_next_char_visually. Call bidi_paragraph_init if the
2260 new_paragraph flag is set in the bidi iterator.
2261 (next_element_from_buffer): If bidi_it.first_elt is set,
2262 initialize paragraph direction and find the first character to
2263 display in the visual order. If reseated to a middle of a line,
2264 prime the bidi iterator starting at the line's beginning. Handle
2265 the situation where we overstepped stop_charpos due to
2266 non-linearity of the bidi iteration. Likewise for when we back up
2267 beyond the previous stop_charpos. When moving across stop_charpos,
2268 record it in prev_stop.
2269 (display_line): Set row->end and it->start for the next row to the
2270 next character in logical order. Always extend reversed_p rows to
2271 the end of line, even if they end at ZV. Copy the reversed_p flag
2272 to the next glyph row. Keep calling set_cursor_from_row for
2273 bidi-reordered rows even if we already have a possible candidate
2274 for cursor position. Set row_end after all the row's glyphs have
2275 been produced, by looping over the glyphs. Record the position
2276 after EOL in it->eol_pos, and use it to set end_pos of the last
2277 row produced for a continued line.
2278 <Qright_to_left, Qleft_to_right>: New variables.
2279 (syms_of_xdisp): Initialize and staticpro them.
2280 (string_buffer_position_lim): New function.
2281 (string_buffer_position): Most of code moved to
2282 string_buffer_position_lim. Last argument and return value are
2283 now EMACS_INT; all callers changed.
2284 (set_cursor_from_row): Rewritten to support bidirectional text and
2285 reversed glyph rows.
2286 (text_outside_line_unchanged_p, try_window_id): Disable
2287 optimizations if we are reordering bidirectional text and the
2288 paragraph direction can be affected by the change.
2289 (append_glyph, append_composite_glyph)
2290 (produce_image_glyph, append_stretch_glyph): Set the
2291 resolved_level and bidi_type members of each glyph.
2292 (append_glyph): If the glyph row is reversed, prepend the glyph
2293 rather than appending it.
2294 (handle_stop_backwards): New function.
2295 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2296 (reseat): call handle_stop_backwards to recompute prev_stop and
2297 base_level_stop for the new position.
2298 (handle_invisible_prop): Under bidi iteration, skip invisible text
2299 using bidi_get_next_char_visually. If we are `reseat'ed, init the
2300 paragraph direction. Update IT->prev_stop after skipping
2301 invisible text.
2302 (move_it_in_display_line_to): New variables prev_method
2303 and prev_pos. Compare for strict equality in
2304 BUFFER_POS_REACHED_P.
2305 (try_cursor_movement): Examine all the candidate rows that occlude
2306 point, to return the best match. If rows are bidi-reordered
2307 and point moved backwards, back up to the row that is not a
2308 continuation line, and start looking for a suitable row from
2309 there.
2310
2311 * term.c (append_glyph): Reverse glyphs by pre-pending them,
2312 rather than appending, if the glyph_row's reversed_p flag is set.
2313 Set the resolved_level and bidi_type members of each glyph.
2314
2315 * .gdbinit (pbiditype): New command.
2316 (pgx): Use it to display bidi level and type of the glyph.
2317 (pitx): Display some bidi information about the iterator.
2318 (prowlims, pmtxrows): New commands.
2319
32a8894e
DN
23202010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
2321
2322 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
2323 * s/usg5-4.h (LIBS_DEBUG):
2324 * s/irix6-5.h (C_DEBUG_SWITCH):
2325 * s/gnu-linux.h (LIBS_DEBUG):
2326 * s/darwin.h (LIBS_DEBUG):
2327 * s/bsd-common.h (LIBS_DEBUG):
2328 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
2329 * m/iris4d.h (LIBS_DEBUG):
2330 * m/hp800.h (LIBS_DEBUG): Remove definitions.
2331
2332 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
2333 (LIBS_DEBUG): Remove definition.
2334
649dbf36
CY
23352010-03-27 Chong Yidong <cyd@stupidchicken.com>
2336
2337 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
2338 Windows.
2339
cad4261f
YM
23402010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2341
2342 * process.c (Fmake_network_process): Don't call turn_on_atimers around
2343 `connect' (Bug#5723).
2344
cd591dbc
HE
23452010-03-25 Helmut Eller <eller.helmut@gmail.com>
2346
2347 * process.c (Fmake_network_process): Call `select' for interrupted
2348 `connect' rather than creating new socket (Bug#5173).
2349
e867cb5d 23502010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
2351
2352 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
2353
2354 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
2355
2356 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
2357
e867cb5d 23582010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
2359
2360 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
2361 XLoadQueryFont.
2362
e867cb5d 23632010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
2364
2365 * coding.c (decode_coding_ccl): Fix previous change for the
2366 multibyte case.
fb608df3
KH
2367 (encode_coding_ccl): Don't setup ccl program here. Fix for the
2368 case that the output buffer is fullfilled.
2369 (encode_coding): Setup ccl program here.
fbdc1721 2370
5845f0ed
DN
23712010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
2372
814fb708
DN
2373 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
2374
5845f0ed
DN
2375 Simplify LIBS_MACHINE definitions.
2376 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
2377 * m/iris4d.h (LIBS_MACHINE): Likewise.
2378 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
2379 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 2380 * s/netbsd.h: Remove commented out code.
5845f0ed 2381
b7064064
DN
23822010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
2383
df7734b2
DN
2384 Remove dead code dealing with POSIX_SIGNALS.
2385 * atimer.c (set_alarm): Remove dead code, all USG systems define
2386 POSIX_SIGNALS.
2387 * data.c (arith_error): Likewise.
2388 * keyboard.c (input_available_signal, handle_user_signal)
2389 (interrupt_signal): Likewise.
2390 * process.c (sigchld_handler): Likewise.
2391 (create_process): Remove if 0 code. Remove HPUX conditional when
2392 !defined (POSIX_SIGNALS), it cannot be true.
2393 * syssignal.h: Remove USG5_4 and USG conditionals when
2394 !POSIX_SIGNALS, they cannot be true.
2395
b7064064
DN
2396 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
2397 NO_SOCK_SIGIO, not used anymore.
2398
55da5ee3
DN
23992010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
2400
0be96e3a
DN
2401 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
2402 support vax on BSDs.
2403
55da5ee3
DN
2404 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
2405 * s/aix4-2.h (ORDINARY_LINK): ... here.
2406
c0282183
AS
24072010-03-21 Andreas Schwab <schwab@linux-m68k.org>
2408
82c3d67a
AS
2409 * Makefile.in (abs_builddir): Define.
2410 (bootstrap_exe): Use it.
2411 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 2412
3613edce
SM
24132010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 * Makefile.in (bootstrap_exe): Use an absolute name.
2416
7f110ddc
DN
24172010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2418
22e87574
DN
2419 Remove support for old GNU/Linux using libc version 5.
2420 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
2421 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
2422
05a670e6
DN
2423 Consolidate redundant definitions in s/bsd-common.h.
2424 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2425 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2426 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
2427 doing it in all files that include this one.
2428 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2429 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2430 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2431 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2432 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2433 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2434 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
2435 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
2436 (LDAV_SYMBOL, KERNEL_FILE): Remove.
2437
2968f561
DN
2438 Consolidate redundant definitions.
2439 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
2440 it's undefined in all files that include this one.
2441 (POSIX_SIGNALS): Define here instead of doing it in all files that
2442 include this one.
2443 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2444 (POSIX_SIGNALS): Do not define.
2445 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2446 (POSIX_SIGNALS): Do not define.
2447 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
2448 (POSIX_SIGNALS): Do not define.
2449
15d25dc0
DN
2450 Remove support for old UNIX System V systems.
2451 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
2452 * s/usg-5-4-2.h: Remove.
2453
07e339e4
DN
2454 Remove support for Solaris on PPC and for old versions.
2455 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
2456 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
2457 that cancel each other.
2458 * s/sol2-3.h:
2459 * s/sol2-4.h:
2460 * s/sol2-5.h: Remove.
2461 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
2462 (NO_REMAP): Remove, unused.
2463 (UNEXEC): Move definition ...
2464 * s/aix4-2.h (UNEXEC): ... here.
2465
7f110ddc
DN
2466 * s/openbsd.h: Remove support for non-ELF and for systems that do
2467 not support shared libraries.
2468 * s/netbsd.h:
2469 * s/freebsd.h: Likewise.
2470
605f35cd
DN
24712010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2472
2473 Remove non-working support for lynxos 3.0.
2474 * s/lynxos.h: Remove file.
2475
2476 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
2477 COFF_BSD_SYMBOLS, nothing defines it anymore.
2478
aed71cf4
DN
24792010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
2480
2481 Remove obsolete uses of HAVE_SHM.
2482 * emacs.c (standard_args):
2483 (Fdump_emacs):
2484 (syms_of_emacs): Remove code depending on HAVE_SHM.
2485
2486 * alloc.c: Remove HAVE_SHM dependent definition.
2487
2488 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
2489
aded53ff
GM
24902010-03-18 Glenn Morris <rgm@gnu.org>
2491
17284745
GM
2492 * emacs.c (USAGE4): Hard-code bug address.
2493 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
2494 (bug_reporting_address): Remove.
2495 (main): Don't call bug_reporting_address.
2496
aded53ff
GM
2497 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
2498 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
2499
303500aa
CY
25002010-03-15 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * xfns.c (Fx_create_frame):
2503 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
2504 on left.
2505
cef3058f
CY
25062010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
2507
2508 * editfns.c (Fformat): Account for string precision when computing
2509 field width (Bug#5710).
2510
a647d59d
CY
25112010-03-12 Chong Yidong <cyd@stupidchicken.com>
2512
4fa42018
CY
2513 * xfns.c (Fx_create_frame): Set default to Qright.
2514
a647d59d
CY
2515 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
2516 all window systems.
2517
6da23aaa
EZ
25182010-03-12 Eli Zaretskii <eliz@gnu.org>
2519
a96f6398 2520 These changes remove termcap.c from the build on Posix platforms.
83d02def 2521 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
2522 (MSDOS_OBJ): ...to here.
2523 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
2524 now identical to when LIBS_TERMCAP is defined.
2525
2526 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
2527
2528 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
2529
a96f6398 2530 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 2531
288f9fc0
CY
25322010-03-10 Chong Yidong <cyd@stupidchicken.com>
2533
2534 * Branch for 23.2.
2535
d48cd3f4
SM
25362010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2537
2538 Cleanup setup of gl_state in various parts of the code.
2539 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
2540 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
2541 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
2542 (skip_chars):
2543 * regex.c (regex_compile): Use it.
2544 (re_compile_pattern): Don't set gl_state.current_syntax_table since
2545 it's now set in regex_compile when/if we need it.
2546
618db430
SM
25472010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
2548
c0335e02
SM
2549 Make it possible to C-g in a tight bytecode loop again (bug#5680).
2550 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
2551 (QUIT): Use it to consolidate code and remove redundancy.
2552 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
2553
254c06a8
SM
2554 * regex.c (regex_compile): Setup gl_state as well.
2555
618db430
SM
2556 * syntax.c (skip_chars): Setup gl_state (bug#3823).
2557 (in_classes): Use CONSP before XCAR/XCDR.
2558
233f0c9f
CY
25592010-03-03 Chong Yidong <cyd@stupidchicken.com>
2560
2561 * keymap.c (Fwhere_is_internal): Use Fequal to compare
2562 definitions, so that keyboard macros are correctly handled
2563 (Bug#5481).
2564
75f80e63
EZ
25652010-03-02 Eli Zaretskii <eliz@gnu.org>
2566
2567 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
2568 text that could be relocated inside the call to emacs_mule_char.
2569 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
2570 (CODING_DECODE_CHAR): Add a comment describing its purpose.
2571
dcfb9bc4
KH
25722010-03-02 Kenichi Handa <handa@m17n.org>
2573
fc9a17bc
KH
2574 * character.c (parse_str_as_multibyte): Fix handling of the
2575 multibyte form of raw-bytes.
2576 (str_as_multibyte): Likewise.
2577
dcfb9bc4
KH
2578 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
2579 form of raw-bytes.
2580
412c01b6
CY
25812010-02-28 Chong Yidong <cyd@stupidchicken.com>
2582
2583 * charset.c (load_charset_map_from_file)
2584 (load_charset_map_from_vector): Zero out allocated
2585 charset_map_entries before using them.
2586
df7e1ea0
AS
25872010-02-27 Andreas Schwab <schwab@linux-m68k.org>
2588
2589 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
2590
fe69a722
CY
25912010-02-27 Chong Yidong <cyd@stupidchicken.com>
2592
4ed28cf4
CY
2593 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
2594 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 2595
7379cfce
KH
25962010-02-26 Kenichi Handa <handa@m17n.org>
2597
f88cc4d6
KH
2598 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
2599
7379cfce
KH
2600 * xdisp.c (reseat_to_string): Fix previous change.
2601
cf2fdcfb
CY
26022010-02-26 David Reitter <david.reitter@gmail.com>
2603
2604 * nsfont.m (nsfont_draw): ns_antialias_text should be a
2605 Lisp_Object (Bug#4736).
2606
cc6c7c75
KH
26072010-02-25 Kenichi Handa <handa@m17n.org>
2608
2609 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
2610
32e737d7
JD
26112010-02-24 Jan Djärv <jan.h.d@swipnet.se>
2612
2613 * xterm.c (XTflash): Move declarations before statements.
2614
2615 * gtkutil.c (xg_get_gdk_display): Remove (unused).
2616 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
2617 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
2618 (xg_create_tool_bar): Remove unused variables.
2619 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 2620 (xg_create_frame_widgets): Remove variable grav.
32e737d7 2621
676cae9f
CY
26222010-02-21 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
2625
886cc2b8
SM
26262010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
2627
2628 * term.c (fatal): Add a final \n if needed (bug#5596).
2629
ddb2d8e2
CY
26302010-02-18 Chong Yidong <cyd@stupidchicken.com>
2631
2632 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
2633
2a4f8d3d
GM
26342010-02-18 Glenn Morris <rgm@gnu.org>
2635
2636 * callint.c (Finteractive): Doc fix.
2637
ebaf11b6
KH
26382010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
2639
886cc2b8
SM
2640 * coding.c (record_conversion_result):
2641 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
2642 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
2643 memory allocation error.
2644
d0396581
KH
26452010-02-17 Kenichi Handa <handa@m17n.org>
2646
886cc2b8
SM
2647 * coding.c (decode_coding_ccl): Don't setup ccl program here.
2648 Fix for the case that the output buffer is fullfilled.
d0396581
KH
2649 (decode_coding): Setup ccl program here. Keep looping when the
2650 decoder stopped because the output buffer is
2651 fullfilled (bug#5534).
2652
2653 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
2654
98599f74
JD
26552010-02-13 Jan Djärv <jan.h.d@swipnet.se>
2656
471e4f04 2657 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 2658 bug #5571.
886cc2b8 2659 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 2660 overdrawn.
98599f74 2661
182659ae
JD
26622010-02-10 Jan Djärv <jan.h.d@swipnet.se>
2663
2664 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
2665 doing_interact here.
2666 (ice_connection_closed): New function.
2667 (x_session_check_input, smc_die_CB, ice_io_error_handler)
2668 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
2669 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
2670 returns I/O error.
2671 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
2672 bug #5512.
2673
9be32c4e 26742010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
2675
2676 * nsfont.m (nsfont_open): The system's value for the font descent
2677 is negative, so round it down to avoid clipping.
2678
a2f3eb19
CY
26792010-02-06 Chong Yidong <cyd@stupidchicken.com>
2680
2681 * charset.c (load_charset_map_from_file)
2682 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 2683 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 2684
3088147c
CY
26852010-02-05 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * charset.c (load_charset_map_from_file): Allocate large
2688 charset_map_entries structure on the heap rather than the stack.
2689 (Bug#5526).
2690
b57d9029
KH
26912010-01-31 Kenichi Handa <handa@m17n.org>
2692
2693 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 2694 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 2695
c67d885b
CY
26962010-01-31 Chong Yidong <cyd@stupidchicken.com>
2697
2698 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
2699 <deactivated@gmail.com> (Bug#3605).
2700
8fab2362
CY
27012010-01-31 David De La Harpe Golden <david@harpegolden.net>
2702
2703 * fileio.c (Frename_file): Correctly rename symlinks to
2704 directories (Bug#5496).
2705
cb2a62f2
CY
27062010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
2707
2708 * nsterm.m (ns_ring_bell): Handle visible bell like X.
2709
944c7a26
AS
27102010-01-30 Andreas Schwab <schwab@linux-m68k.org>
2711
2712 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
2713
c024ac08
CY
27142010-01-29 Chong Yidong <cyd@stupidchicken.com>
2715
2716 * frame.c (DEFAULT_ROWS): Change default to 35.
2717
2718 * xfns.c (x_default_font_parameter): Change default XFT font to
2719 monospace-10 (Bug#3643).
2720
af93af83
EZ
27212010-01-29 Eli Zaretskii <eliz@gnu.org>
2722
2723 * w32inevt.c (key_event): Remove unnecessary comparison of
2724 event->uChar.AsciiChar with 128.
2725
ca0eb708
CY
27262010-01-28 Chong Yidong <cyd@stupidchicken.com>
2727
b242dbfc
CY
2728 * fileio.c (Frename_file): Fix last change (Bug#5487).
2729
ca0eb708
CY
2730 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
2731
2732 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
2733
45d45af5
JD
27342010-01-28 Jan Djärv <jan.h.d@swipnet.se>
2735
2736 * xfns.c (Fx_create_frame): Remove window size matching code from
2737 2010-01-15.
a73f9c9d 2738 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 2739
7e233730
JR
27402010-01-27 Jason Rumney <jasonr@gnu.org>
2741
2742 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 2743 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 2744
86e893e3
KH
27452010-01-27 Kenichi Handa <handa@m17n.org>
2746
2747 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 2748 pattern string (Bug#4209).
86e893e3 2749
8719abec
CY
27502010-01-27 David De La Harpe Golden <david@harpegolden.net>
2751
2752 * fileio.c (Frename_file): Call copy-directory and
2753 delete-directory for directories, in order to handle cross-device
2754 renaming (Bug#3353).
2755
844794c8
JD
27562010-01-25 Jan Djärv <jan.h.d@swipnet.se>
2757
aa3e13b5 2758 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 2759 sizes 24 and 10. Bug #3643.
844794c8 2760
bd4b5750
SM
27612010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2762
8dc1adf6 2763 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
2764 * keymap.c (shadow_lookup): Add `remap' arg.
2765 (describe_map, describe_vector): Update calls to shadow_lookup.
2766 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
2767 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
2768 perform remapping during shadow_lookup check of remapped_sequences.
2769
285d07e2
CY
27702010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
2771
2772 * image.c (png_load): Use png_sig_cmp instead of the obsolete
2773 png_check_sig, which has been removed in libpng 1.4.
2774
c6d09b8d
CY
27752010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
2776
2777 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
2778 lacks this header file).
2779
3d782998
YM
27802010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2781
2782 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
2783 as in Emacs 22.
2784
2aff7c53
YM
27852010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2786
2787 * lisp.h (make_pure_string): String pointer arg now points to const.
2788
2789 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
2790 args now point to const.
2791
74327f7a
EZ
27922010-01-22 Eli Zaretskii <eliz@gnu.org>
2793
2794 * lread.c (Fload): Don't treat files without .elc extension as
2795 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
2796 them. (bug#5303)
2797
4d1e6632
KH
27982010-01-20 Kenichi Handa <handa@m17n.org>
2799
2800 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
2801 treat the source as actual byte sequence.
2802
1fdede8f
AM
28032010-01-19 Alan Mackenzie <acm@muc.de>
2804
2805 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 2806 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
2807 `signal_after_change_p' to `coherent_change_p', and make the
2808 invocation of `modify_region' conditional on it.
2809
67477f30
JD
28102010-01-19 Jan Djärv <jan.h.d@swipnet.se>
2811
2812 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
2813 for debug purpose.
2814 (syms_of_xsettings): Declare xft-settings.
2815
244b023e
CY
28162010-01-18 Chong Yidong <cyd@stupidchicken.com>
2817
2818 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
2819
617364fe
CY
28202010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2821
2822 * xterm.c (event_handler_gdk): Block input (Bug#5037).
2823
4fe22cdf
CY
28242010-01-16 Chong Yidong <cyd@stupidchicken.com>
2825
2826 * emacs.c (standard_args): Adjust arg priorities to reflect how
2827 they are processed in startup.el.
2828
e118d2be
AS
28292010-01-16 Andreas Schwab <schwab@linux-m68k.org>
2830
2831 * Makefile.in (lisp, shortlisp): Update.
2832
523ae620
SM
28332010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2834
2835 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
2836 code, link the new kboard into all_kboard before running Lisp code,
2837 and protect the new terminal with GCPRO (Bug#5365).
2838 (x_term_init): Remove unused var `atom'.
2839 (x_delete_display, x_delete_terminal): Remove unused var `i'.
2840
f0d13888
JD
28412010-01-15 Jan Djärv <jan.h.d@swipnet.se>
2842
2843 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
2844 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
2845 to find out usable size of the desktop. Don't make frames larger than
ac146f82 2846 this. Bug #3643.
f0d13888 2847
cc320f07
KH
28482010-01-15 Kenichi Handa <handa@m17n.org>
2849
2850 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
2851
7ffdf101
CY
28522010-01-15 Chong Yidong <cyd@stupidchicken.com>
2853
2854 * nsterm.m (Qnone): Define.
2855
2856 * nsfns.m (Qnone): Move definition to nsterm.m.
2857
d12bd917
KH
28582010-01-14 Kenichi Handa <handa@m17n.org>
2859
2860 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
2861 systems.
2862
d9a7c140
KH
28632010-01-14 Kenichi Handa <handa@m17n.org>
2864
2865 Make auto-composition work on all buffers even if they are
2866 fundamental mode.
2867
2868 * composite.c (Vauto_composition_mode): New variable.
2869 (composition_compute_stop_pos): Check Vauto_composition_mode
2870 instead of Vauto_composition_function.
2871 (composition_adjust_point, Ffind_composition_internal): Likewise.
2872 (syms_of_composite): Declare Lisp variable
2873 "auto-composition-mode" here.
2874
63286bb2
CY
28752010-01-13 Chong Yidong <cyd@stupidchicken.com>
2876
2877 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
2878 during call to vendor-specific-keysyms (Bug#5365).
2879
c2623ee7
YM
28802010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2881
2882 * keyboard.c (input_available_signal) [SYNC_INPUT]:
2883 Call SIGNAL_THREAD_CHECK (Bug#5333).
2884
2885 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
2886 Call SIGNAL_THREAD_CHECK.
2887
0b5397c2
SM
28882010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
2889
2890 Try to fix bug#5314. This is probably not the final word, tho.
2891 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
2892 recent-auto-save-p as a side-effect.
2893 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
2894 * buffer.c (Fkill_buffer, reset_buffer):
2895 * editfns.c (Fsubst_char_in_region):
2896 * fileio.c (Finsert_file_contents, Fdo_auto_save)
2897 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2898
dc954cb2
KH
28992010-01-13 Kenichi Handa <handa@m17n.org>
2900
2901 Display buffer name, etc. in mode line by composing correctly.
2902
2903 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
2904 STRING is not nil.
0b5397c2 2905 (display_mode_element): Adjust for the change of
dc954cb2
KH
2906 decode_mode_spec and display_line.
2907 (decode_mode_spec): Change arg MULTIBYTE to STRING.
2908 (display_string): Handle the case that STRING is non-null and
2909 LISP_STRING is not nil.
2910
0b5397c2
SM
2911 * xterm.c (x_draw_composite_glyph_string_foreground):
2912 Pay attention to s->face->overstrike.
dc954cb2
KH
2913
2914 * composite.c (composition_reseat_it): Don't check PT if STRING is
2915 non nil.
2916
4a00eaca
YM
29172010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2918
2919 * keyboard.c (read_char): Don't apply previous change when current
2920 buffer is unchanged by command execution.
2921
60abb287
JD
29222010-01-12 Jan Djärv <jan.h.d@swipnet.se>
2923
2924 * keyboard.c (read_char): Return after executing from special map.
2925
893db5bc
GM
29262010-01-12 Glenn Morris <rgm@gnu.org>
2927
2928 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
2929 bug-gnu-emacs rather than emacs-pretest-bug.
2930
4d03ece0
CY
29312010-01-11 Chong Yidong <cyd@stupidchicken.com>
2932
2933 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
2934 initializing the Lisp variables that depend on them.
2935
1df47e38
YM
29362010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2937
2938 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
2939 Clear areas that will not be updated after change of menu bar lines.
2940 Clear the menu bar window's current matrix when the window gets empty.
2941
2f1c6384
CY
29422010-01-09 Chong Yidong <cyd@stupidchicken.com>
2943
e398c61c
CY
2944 * intervals.h, textprop.c (extend_property_ranges): Return value
2945 and args changed. Discard properties that begin at or after the
2946 new end (Bug#5306).
2947
2948 * editfns.c (Fformat): Caller changed.
2949
e5a29a10
CY
2950 * nsterm.m (ns_set_default_prefs): Delete function.
2951 (syms_of_nsterm): Initialize ns_command_modifier,
2952 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
2953 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
2954
2f1c6384
CY
2955 * xdisp.c (pos_visible_p): Check for invisible text at the correct
2956 position (Bug#4040).
2957
d427a9fa
EZ
29582010-01-09 Eli Zaretskii <eliz@gnu.org>
2959
2960 * editfns.c (Ffloat_time): Doc fix.
2961
21b9df2f
JD
29622010-01-09 Jan Djärv <jan.h.d@swipnet.se>
2963
2964 * xfns.c (Fx_create_frame): Don't create frame larger than display
2965 by default bug#3643.
2966
4b00d3b1
YM
29672010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2968
2969 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
2970 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
2971 windows above internal border.
2972
2973 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
2974 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
2975 windows above internal border.
2976
2977 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
2978 tool bar windows specially.
2979
2980 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
2981
2982 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
2983 specially.
2984 (XTflash): Take account of menu bar height.
2985
2986 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
2987 specially.
2988
5075d853
JD
29892010-01-08 Jan Djärv <jan.h.d@swipnet.se>
2990
ac146f82 2991 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
2992 also be true before we can return early (bug #5339).
2993
474217c8
CY
29942010-01-06 David Reitter <david.reitter@gmail.com>
2995
2996 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
2997 (Fns_display_usable_bounds): Rewrite, computing bounds properly
2998 (Bug#3233).
2999
c0e6d47d
JD
30002010-01-06 Jan Djärv <jan.h.d@swipnet.se>
3001
d0cf45b7
JD
3002 * font.c (font_open_entity): Enable chache and call cached_font_ok
3003 for the driver if defined.
3004 (QCuser_spec): New symbol.
3005 (font_spec_from_name): Save name as user-spec.
3006 (font_load_for_lface): Keep user-spec instead of name.
3007 (font_open_by_name): Save name as user-spec.
3008 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 3009 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
3010
3011 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
3012 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
3013 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
3014
3015 * font.h (struct font_driver): Add cached_font_ok.
3016
c0e6d47d
JD
3017 * xterm.c (x_clear_frame): Queue draw for scroll bars.
3018
7c583cd8
JD
30192010-01-05 Jan Djärv <jan.h.d@swipnet.se>
3020
3021 * xterm.c (x_new_font): Move code for setting rows/cols before
3022 resizing ...
ac146f82 3023 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
3024
3025 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
3026 (xg_frame_resized, xg_frame_set_char_size):
3027 Call xg_clear_under_internal_border.
7c583cd8 3028 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 3029
03f77f0a
CY
30302010-01-05 Chong Yidong <cyd@stupidchicken.com>
3031
3032 * keyboard.c (read_key_sequence): Catch keyboard switch after
3033 making a new tty frame (Bug#5095).
3034
2a1ef5be
KH
30352010-01-05 Kenichi Handa <handa@m17n.org>
3036
3037 * fontset.c (fontset_find_font): Fix getting the frame pointer.
3038
e3eb1dae
SM
30392010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
3040
3041 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
3042 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
3043 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
3044
777013f2
MA
30452010-01-03 Michael Albinus <michael.albinus@gmx.de>
3046
3047 * dbusbind.c (xd_add_watch): Improve debug message.
3048 (xd_remove_watch): Improve debug message. If DATA is the session
3049 bus, unset D-Bus session environment.
3050 (Fdbus_init_bus): Pass the bus as argument to
3051 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 3052
8932b1c2
CY
30532010-01-01 Chong Yidong <cyd@stupidchicken.com>
3054
87231e2c
CY
3055 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
3056
4801c5fa
CY
3057 * lread.c (syms_of_lread): Make it clearer that these are the
3058 names of loaded files (Bug#5068).
3059
8932b1c2
CY
3060 * eval.c (run_hook_with_args): Handle the case where the global
3061 value has the obsolete single-function form (Bug#5026).
3062
11e3c684
CY
30632009-12-27 Chong Yidong <cyd@stupidchicken.com>
3064
3065 * minibuf.c (Fall_completions): Minor optimization.
3066
5b28ce35
EZ
30672009-12-26 Eli Zaretskii <eliz@gnu.org>
3068
5ce6e4f4
JB
3069 * .gdbinit (pgx): Fix display of composite glyphs.
3070 Display cmp.from and cmp.to as well.
3071 (pitx): Fix last change.
5b28ce35 3072
bcffff46
KH
30732009-12-25 Kenichi Handa <handa@m17n.org>
3074
3075 * composite.h (composition_adjust_point): Update prototype.
3076
3077 * composite.c (composition_reseat_it): Don't make a composition
3078 spanning over point.
3079 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
3080 composable characters.
3081 (composition_adjust_point): New arg NEW_PT. Callers changed.
3082
3083 * keyboard.c (command_loop_1): Force redisplay if the last point
3084 was within a composition.
3085 (adjust_point_for_property): Don't adjust point for automatic
3086 composition when called after buffer modification.
3087
3f670e9a
EZ
30882009-12-19 Eli Zaretskii <eliz@gnu.org>
3089
5ce6e4f4
JB
3090 * .gdbinit (pitx): Don't use enum names, use their values.
3091 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
3092 (pgx): Don't use enum names, use their values.
3093 (pitmethod): New helper command.
3094 (pitx): Use it to display iteration method.
3095 (pgrowit): New command.
3096
ad903955
EZ
3097 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
3098
3f670e9a
EZ
3099 Update dependencies in Makefile.in.
3100
3101 * Makefile.in (alloc.o): Depend on termhooks.h.
3102 (atimer.o): Depend on blockinput.h.
3103 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
3104 and frame.h.
3105 (callint.o): Depend on systime.h, coding.h, and composite.h.
3106 (callproc.o): Depend on buffer.h.
3107 (casefiddle.o): Don't depend on charset.h.
3108 (casetab.o): Depend on character.h.
3109 (ccl.o): Depend on composite.h.
3110 (chartab.o): Depend on ccl.h.
3111 (cm.o): Depend on dispextern.h.
3112 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
3113 (coding.o): Don't depend on $(INTERVALS_H).
3114 (composite.o): Don't depend on dispextern.h explicitly (it's in
3115 $(INTERVALS_H)). Depend on ccl.h.
3116 (data.o): Depend on systime.h, coding.h, composite.h,
3117 dispextern.h, font.h, and ccl.h.
3118 (dired.o): Depend on composite.h.
3119 (dispnew.o): Depend on coding.h. Don't depend explicitly on
3120 composite.h (it's in $(INTERVALS_H)).
3121 (doc.o): Depend on systime.h, coding.h, and composite.h.
3122 (editfns.o): Don't depend explicitly on dispextern.h.
3123 (emacs.o): Depend on frame.h and coding.h.
3124 (eval.o): Depend on coding.h, composite.h, and xterm.h.
3125 (fileio.o): Depend on frame.h and commands.h. Don't depend
3126 explicitly on dispextern.h.
3127 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
3128 composite.h.
3129 (fns.o): Don't depend on termhooks.h.
3130 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
3131 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
3132 coding.h, $(INTERVALS_H), window.h, xterm.h.
3133 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
3134 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
3135 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
3136 fontset.h, ccl.h, and ftfont.h.
3137 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3138 (gtkutil.o): Depend on dispextern.h and composite.h.
3139 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
3140 termhooks.h, and ccl.h.
3141 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
3142 (intervals.o): Depend on systime.h and coding.h.
3143 (keyboard.o): Depend on composite.h and coding.h.
3144 (keymap.o): Depend on coding.h and frame.h.
3145 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
3146 (macros.o): Depend on systime.h, coding.h, and composite.h.
3147 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
3148 and atimer.h.
3149 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
3150 dispextern.h explicitly.
0b5397c2
SM
3151 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
3152 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
3153 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
3154 (regex.o): Don't depend on charset.h.
3155 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
3156 (search.o): Don't depend explicitly on composite.h.
3157 (sound.o): Depend on atimer.h and systime.h.
3158 (syntax.o): Don't depend explicitly on composite.h.
3159 (sysdep.o): Depend on coding.h and composite.h.
3160 (term.o): Depend on xterm.h and buffer.h.
3161 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
3162 (textprop.o): Don't depend on dispextern.h explicitly.
3163 (undo.o): Depend on dispextern.h.
3164 (window.o): Depend on coding.h and termhooks.h. Don't depend on
3165 dispextern.h and composite.h explicitly.
3166 (xdisp.o): Depend on ccl.h.
3167 (xfaces.o): Depend on coding.h and ccl.h.
3168 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
3169 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
3170 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
3171 ftfont.h.
3172 (xgselect.o): New dependency.
3173 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
3174 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
3175 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
3176 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
3177 (xsmfns.o): Depend on frame.h and dispextern.h.
3178 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
3179 sysselect.h.
3180
7a6f7fea
AS
31812009-12-19 Andreas Schwab <schwab@linux-m68k.org>
3182
3183 * font.c (Fclear_font_cache): Pass correct cache argument to
3184 font_clear_cache.
3185
f4c21026
AS
31862009-12-16 Andreas Schwab <schwab@linux-m68k.org>
3187
3188 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
3189 twice.
3190
f7ab0997
CY
31912009-12-15 Chong Yidong <cyd@stupidchicken.com>
3192
3193 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
3194 calling file-remote-p. Reported by Jim Meyering.
3195
fa8e045a
MA
31962009-12-15 Michael Albinus <michael.albinus@gmx.de>
3197
3198 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 3199 avoid compiler warnings. (Bug #5217)
fa8e045a 3200
a63dba42
KH
32012009-12-14 Kenichi Handa <handa@m17n.org>
3202
3203 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
3204 in 8-bit encoding.
3205
5ce6e4f4 32062009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
3207
3208 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
3209 tooltip windows.
3210
223e5fc6
JD
32112009-12-13 Jan Djärv <jan.h.d@swipnet.se>
3212
36acb2a7
JD
3213 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
3214 Xatom_net_window_type.
3215
3216 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
3217 Xatom_net_window_type.
3218
b8f00677
JD
3219 * xterm.c (my_log_handler): New function.
3220 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 3221 so we can filter out buggy messages. (Bug #5120).
b8f00677 3222
e5f0bc9a
JD
3223 * xterm.c (xg_scroll_callback): Parameter list changed,
3224 use parameter GtkScrollType to determine scroll/line/page.
3225 Only allow dragging if a button < 4 is grabbed (bug #5177).
3226 (xg_end_scroll_callback): New function.
3227 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
3228 xg_create_scroll_bar.
3229
3230 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
3231 (scroll_end_callback): Remove.
3232 (xg_create_scroll_bar): Add parameter end_callback, bind it to
3233 button-release-event. Replace value-changed event with change-value,
3234 bug #5177,
3235 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
3236 bug #5177.
3237
3238 * gtkutil.h (XG_LAST_SB_DATA): Remove.
3239 (xg_create_scroll_bar): Add GCallback end_callback.
3240
223e5fc6
JD
3241 * xftfont.c (QClcdfilter): New variable.
3242 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
3243 (syms_of_xftfont): Initialize QClcdfilter.
3244
3c055b77
JD
32452009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3246
3247 * xsettings.c (struct xsettings): Add member seen.
3248 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 3249 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
3250 (apply_xft_settings): Only update Xft settings with what member seen
3251 indicates as new.
3252
05fe33ff
EZ
32532009-12-12 Eli Zaretskii <eliz@gnu.org>
3254
3255 * dispextern.h (struct text_pos): Use EMACS_INT;
3256 (struct glyph): Use EMACS_INT for charpos.
3257 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
3258 region_beg_charpos, region_end_charpos,
3259 redisplay_end_trigger_charpos, and also for
3260 iterator_stack_entry.end_charpos and
3261 iterator_stack_entry.stop_charpos.
3262
e8d7886a
JD
32632009-12-12 Jan Djärv <jan.h.d@swipnet.se>
3264
5ce6e4f4 3265 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
3266 (xg_create_scroll_bar): Call scroll_end_callback on button release
3267 event (bug #5177).
3268 (xg_event_is_for_scrollbar): != replaced with ==.
3269
d0db2ec8
KH
32702009-12-12 Kenichi Handa <handa@m17n.org>
3271
3272 * ftfont.c (struct ftfont_info): New member matrix.
3273 (ftfont_open): Setup xftfont_info->matrix.
3274 (MFLTFontFT): New member matrix.
3275 (FLOOR, CEIL, ROUND): New macros.
3276 (ftfont_get_metrics): Handle matrix transformation.
3277 (ftfont_shape_by_flt): New arg matrix. Callers changed.
3278
3279 * xftfont.c (struct xftfont_info): New member matrix.
3280 (xftfont_open): Setup xftfont_info->matrix.
3281
32822009-12-10 Kenichi Handa <handa@m17n.org>
3283
3284 * xdisp.c (append_space_for_newline): Consider face-remapping.
3285
2cc7b62f
AS
32862009-12-09 Andreas Schwab <schwab@linux-m68k.org>
3287
b87dd913
AS
3288 * xsettings.c: Include "keyboard.h".
3289
eba5eb94
AS
3290 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
3291
2cc7b62f
AS
3292 Fix implicit function declarations.
3293 * cmds.c: Include "frame.h".
3294 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
3295 * frame.h: Move declaration of delete_frame outside of
3296 HAVE_WINDOW_SYSTEM.
3297
a4ef73c8
CY
32982009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
3299
3300 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
3301
3302 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
3303 GTK builds.
3304
944a300c
AS
33052009-12-07 Andreas Schwab <schwab@linux-m68k.org>
3306
3307 * unexelf.c (unexec): Don't search for .data twice.
3308
022eef62
CY
33092009-12-05 Chong Yidong <cyd@stupidchicken.com>
3310
426ac949
CY
3311 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
3312 if push failed.
3313 (handle_line_prefix): Set avoid_cursor_p here. Check return value
3314 of push_display_prop (Bug#5000).
3315
022eef62
CY
3316 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
3317 value of font_list_entities (Bug#5085).
3318
be95bee9
JB
33192009-12-04 Juanma Barranquero <lekktu@gmail.com>
3320
3321 Fix `string-to-number' to deal consistently with integers and floats.
3322 * lread.c (isfloat_string): New argument ignore_trailing to accept all
3323 trailing characters, not just whitespace.
3324 (read1): Pass new arg 0 to keep old behavior.
3325 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
3326 trailing chars, as it is already done for integers. Doc fixes.
3327 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
3328
24c2d7ce
EZ
33292009-12-04 Eli Zaretskii <eliz@gnu.org>
3330
0b5397c2
SM
3331 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
3332 Delete unused enumeration value.
24c2d7ce 3333
7e694795
EZ
33342009-12-03 Eli Zaretskii <eliz@gnu.org>
3335
3336 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
3337
84b31826
SM
33382009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
3339
3340 * process.c (Fmake_network_process): Fix up the tests for
3341 "connectionless socket", so they DTRT for seqpacket sockets as well.
3342
f00c449b
SM
33432009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
3344
3345 * process.c (Qseqpacket): New symbol.
3346 (HAVE_SEQPACKET): New macro.
3347 (Fmake_network_process): Accept new :type `seqpacket'.
3348 (init_process): Add `seqpacket' feature when applicable.
3349 (syms_of_process): Initialize Qseqpacket.
3350
8096a0ff
YM
33512009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3352
3353 * font.c (font_load_for_lface, font_open_by_name): Don't store name
3354 if entity is Qnil.
3355
3e0de07f
SM
33562009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
3357
3358 * print.c (print_preprocess): Preprocess the key_and_value table of
3359 hashtables, even tho they're "hidden" (bug#5082).
3360
abeafb2a
JD
33612009-11-29 Jan Djärv <jan.h.d@swipnet.se>
3362
3363 * frame.c (frame_make_pointer_invisible)
3364 (frame_make_pointer_visible): Declare f before statements.
3365
4bf47195
EZ
33662009-11-28 Eli Zaretskii <eliz@gnu.org>
3367
3368 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
3369 omitted dependencies on lisp.h.
3370
c525b3f2
JD
33712009-11-27 Jan Djärv <jan.h.d@swipnet.se>
3372
ece2d4ed
JD
3373 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
3374 is NULL.
3375
3376 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
3377
3378 * frame.c (frame_make_pointer_invisible)
3e0de07f 3379 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
3380 frame.
3381
c525b3f2
JD
3382 * search.c (simple_search): Remove warning by making *p const.
3383
2f00e299
DN
33842009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
3385
3386 * xdisp.c (power_letter): Remove duplicate const.
3387
084b049b
JD
33882009-11-25 Jan Djärv <jan.h.d@swipnet.se>
3389
a1fadc6f
JD
3390 * term.c (delete_tty): Remove check for last terminal (bug#4970).
3391
5ce6e4f4 3392 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
3393 defaults (bug #5025).
3394
28259cac
SM
33952009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
3396
3397 * insdel.c (adjust_markers_for_delete): Move it in the
3398 right direction! (bug#4803)
3399
e8e14166
YM
34002009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3401
3402 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
3403
3404 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
3405
86677b58
GM
34062009-11-24 Glenn Morris <rgm@gnu.org>
3407
3408 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
3409
581e51e8
JD
34102009-11-23 Jan Djärv <jan.h.d@swipnet.se>
3411
cfc86c7a
JD
3412 * Makefile.in: Must create deps for ecrt0.o in its rule.
3413
581e51e8
JD
3414 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
3415 because that is what Gtk+ font dialog understands.
3416
3417 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
3418 of Fcopy_sequence.
3419 (font_open_by_name): Put name given into QCname for font-object returned.
3420
3421 * frame.c (x_set_font): Save original font name as frame parameter
3422 font-parameter.
3423
3424 * xsettings.c (set_default_xft_settings): New function.
3425 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
3426 is found.
3427
8b264ecb
AS
34282009-11-22 Andreas Schwab <schwab@linux-m68k.org>
3429
3430 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
3431 searching backwards through multibyte buffer.
3432
872870b2
JD
34332009-11-21 Jan Djärv <jan.h.d@swipnet.se>
3434
3435 * xterm.c: #include xgselect.h.
3436 (x_initialize): Call xgselect_initialize.
3437
3438 * xsettings.c (something_changedCB): C++ comments => C comments.
3439 (init_gconf): Do not deal with any GLib file descriptors, xg_select
3440 does that now.
3441
3442 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
3443 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
3444 (scroll_bar_button_cb): Remove.
5ce6e4f4 3445 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
3446 event.
3447 (xg_create_scroll_bar): Don't bind button-press-event and
3448 button-release-event.
3449
3450 * process.c: Include xgselect.h if defined (USE_GTK) ||
3451 defined (HAVE_GCONF).
3452 (wait_reading_process_output): Call xg_select for the same condition.
3453
3454 * xgselect.c (xg_select): New function to better integrate with
3455 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
3456
3457 * xgselect.h: New file, declare xg_select, xgselect_initialize.
3458
3459 * Makefile.in (XOBJ): Add xgselect.o.
3460
62a6e103
AS
34612009-11-21 Andreas Schwab <schwab@linux-m68k.org>
3462
0b5397c2
SM
3463 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
3464 Remove ignored second argument. All callers changed.
62a6e103
AS
3465 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
3466 (RE_STRING_CHAR_AND_LENGTH): Likewise.
3467 * xdisp.c (string_char_and_length): Likewise.
3468
b0ca0f33
DN
34692009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3470
3471 * xterm.c (x_new_font):
3472 * print.c (print_object):
3473 * cmds.c (Fself_insert_command): Move declarations before statements.
3474
dd5a6279
CY
34752009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
3476
3477 * s/cygwin.h: Remove unneeded linker flags.
3478
4a8e097d
JD
34792009-11-20 Jan Djärv <jan.h.d@swipnet.se>
3480
0d1d0d26
JD
3481 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
3482
3483 * xsettings.h: Declare xsettings_get_system_font.
3484
3485 * xsettings.c (xsettings_get_system_font): New function.
3486 (init_gconf): No use initiating gconf unless we have Xft also.
3487 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
3488 HAVE_GCONF.
3489
4a8e097d
JD
3490 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
3491 add a blank entry so it doesn't collapse into nothing.
3492
8ab1650e
SM
34932009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * lread.c (Funintern): Comment out last change.
3496
82c602f0
RS
34972009-11-19 Richard Stallman <rms@gnu.org>
3498
3499 * lread.c (Funintern): Error if symbol is t or nil.
3500
87e32266
SM
35012009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
3502
3503 * insdel.c (make_gap_larger): Don't make as many assumptions about the
3504 representation of Lisp integers.
3505 Reported by MJ Chan <mjchan.inbox@gmail.com>.
3506
1b9ac145
AS
35072009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3508
3509 * lisp.h: Remove declaration of Ffont_get_system_font.
3510 * xfns.c: Move include of "xsettings.h".
3511 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
3512
dfb3c4c6
JD
35132009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3514
87e32266
SM
3515 * xsettings.c (something_changedCB, Ffont_get_system_font):
3516 Check use_system_font.
dfb3c4c6
JD
3517 (syms_of_xsettings): DEFVAR font-use-system-font.
3518
9370c1d8
AS
35192009-11-17 Andreas Schwab <schwab@linux-m68k.org>
3520
25fe851a
AS
3521 * xfns.c (x_default_font_parameter): Remove dead assignment.
3522
9370c1d8
AS
3523 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
3524
637fa988
JD
35252009-11-17 Jan Djärv <jan.h.d@swipnet.se>
3526
87e32266 3527 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 3528 not have FC_LCD_*. #define them if not there.
a6eb20d8 3529
87e32266 3530 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 3531
637fa988
JD
3532 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
3533
3534 * xterm.c (handle_one_xevent): Call xft_settings_event for
3535 ClientMessage, PropertyNotify and DestroyNotify.
3536 (x_term_init): If we have XFT, get DPI from Xft.dpi.
3537 Call xsettings_initialize.
3538
3539 * xftfont.c (xftfont_fix_match): New function.
3540 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
3541 Call xftfont_fix_match after XftFontMatch.
3542
3543 * xfont.c (xfont_driver): Initialize all members.
3544
87e32266
SM
3545 * xfns.c (x_default_font_parameter):
3546 Try font from Ffont_get_system_font.
637fa988
JD
3547 Do not get font from x_default_parameter if we got one from
3548 Ffont_get_system_font.
87e32266 3549 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
3550
3551 * w32font.c (w32font_driver): Initialize all members.
3552
3553 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
3554
3555 * lisp.h: Declare syms_of_xsettings.
3556
87e32266
SM
3557 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
3558 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
3559
3560 * ftfont.c (ftfont_filter_properties): New function.
3561
3562 * frame.c (x_set_font): Remove unused variable lval.
3563
87e32266 3564 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
3565
3566 * font.c (font_put_extra): Don't return if val is nil, it means
3567 boolean option is off.
3568 (font_parse_fcname): Collect all extra properties in extra_props
3569 and call filter_properties for all drivers with extra_props and
3570 font as parameter.
87e32266
SM
3571 (font_open_entity): Do not use cache, it does not pick up new
3572 fontconfig settings like hinting.
637fa988
JD
3573 (font_load_for_lface): If spec had a name in it, store it in entity.
3574
a73f9c9d 3575 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
3576
3577 * config.in: HAVE_GCONF is new.
3578
3579 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
3580 xsettings.o is new.
3581
5a942932
KH
35822009-11-17 Kenichi Handa <handa@m17n.org>
3583
3584 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
3585 back to the default font in case that no suitable font is found.
3586
b7c7a4d1
SM
35872009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3588
3589 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
3590 Suggested by Chad Brown <yandros@mit.edu>.
3591 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
3592
072f1e39
JD
35932009-11-16 Jan Djärv <jan.h.d@swipnet.se>
3594
3595 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
3596
5d1e70a2
AS
35972009-11-14 Andreas Schwab <schwab@linux-m68k.org>
3598
87e32266 3599 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 3600
a53cfbe5
JD
36012009-11-14 Jan Djärv <jan.h.d@swipnet.se>
3602
473a99b7
JD
3603 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
3604 has a parent.
3605
a53cfbe5 3606 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 3607 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
3608
3609 * config.in: Generated (AUTO_DEPEND).
3610
f04bb9b2
MA
36112009-11-13 Michael Albinus <michael.albinus@gmx.de>
3612
b7c7a4d1 3613 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
3614 Vdbus_registered_functions_table, because it contains also
3615 properties. Fix docstring.
b7c7a4d1 3616 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 3617
8f11f7ec
SM
36182009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * alloc.c (mark_object): Don't reprocess marked strings.
3621 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
3622 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
3623
8a605fe8
KH
36242009-11-13 Kenichi Handa <handa@m17n.org>
3625
8f11f7ec 3626 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
3627 semantics of Vword_combining_categories.
3628 (Vword_combining_categories): Describe the slight change of the
3629 semantics.
3630
241c4680
EZ
36312009-11-13 Eli Zaretskii <eliz@gnu.org>
3632
3633 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
3634
3635 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
3636
5d58e44c
SM
36372009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
3638
3639 * xdisp.c (syms_of_xdisp): Fix typo in last change.
3640
5e13f9d3
JB
36412009-11-12 Juanma Barranquero <lekktu@gmail.com>
3642
3643 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
3644
cf54c754
DR
36452009-11-11 David Reitter <david.reitter@gmail.com>
3646
3647 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
3648 variables to fix 2009-11-09 change.
3649
a4ada374
DN
36502009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
3651
91433552
DN
3652 * process.c (ifflag_def): Make flag_sym constant.
3653 (Fnetwork_interface_info): Use a constant pointer.
3654 (ifflag_table):
3655 * xfns.c (cursor_bits):
3656 * xdisp.c (power_letter):
3657 * termcap.c (speeds, esctab):
3658 * sysdep.c (baud_convert):
3659 * keyboard.c (lispy_accent_codes, modifier_names):
3660 * image.c (xbm_format, xpm_format, pbm_format, png_format)
3661 (jpeg_format, tiff_format, gif_format, svg_format)
3662 (interlace_start, interlace_increment, gs_format):
3663 * gtkutil.c (separator_names):
3664 * fringe.c (swap_nibble):
3665 * fns.c (base64_value_to_char, base64_char_to_value):
3666 * fileio.c (make_temp_name_tbl):
3667 * coding.c (suffixes): Make constant.
3668
f4265f6c
DN
3669 * frame.c (make_initial_frame):
3670 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
3671 build_string.
3672 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
3673
04420943
DN
3674 * s/freebsd.h:
3675 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
3676
0a5d24ae
DN
3677 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
3678 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
3679
a4ada374
DN
3680 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
3681 * xterm.c (syms_of_xterm):
3682 * xfaces.c (syms_of_xfaces):
3683 * xdisp.c (syms_of_xdisp):
3684 * lread.c (syms_of_lread):
3685 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
3686 build_string.
91433552 3687
a4ada374
DN
3688 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
3689
af98fc7f
SM
36902009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3691
8ab1650e 3692 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 3693
e90292a9
JD
36942009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3695
3696 * keyboard.h: Declare timer_check.
3697
3698 * keyboard.c (timer_check_2): New function that does what the old
3699 timer_check did.
3700 (timer_check): Call timer_check_2 until -1 or a non-zero time is
3701 returned, i.e. don't return -1 with timers pending.
3702
3703 * process.c: Remove extern declaration of timer_check.
3704
3705 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
3706 even if timer_check returned -1.
3707
af98fc7f
SM
3708 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
3709 xg_dialog_data.
e90292a9
JD
3710 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
3711 the event loop.
3712 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
3713 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
3714 Destroy the dialog after xg_dialog_run.
3715
045b83c0
SM
37162009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
3717
3718 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
3719
1fb99a3a
JD
37202009-11-10 Jan Djärv <jan.h.d@swipnet.se>
3721
3722 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
3723
04e452cb
JB
37242009-11-09 Juanma Barranquero <lekktu@gmail.com>
3725
3726 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
3727
ef7417fd
SM
37282009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
3729
3730 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
3731 w32menu.c, and nsmenu.m.
3732 Simplify the obsolete case where position is nil.
3733 (cleanup_popup_menu): New function, moved from nsmenu.m.
3734 (struct skp): Remove slot `notreal'.
3735 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
3736 adjust callers.
3737 (single_menu_item): Adjust call to parse_menu_item.
3738 (syms_of_menu): Defsubr x-popup-menu.
3739 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
3740 (keymap_panes): Don't export any more.
3741 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
3742 (xmenu_show): Declare.
3743 * keyboard.c (parse_menu_item): Remove arg `notreal'.
3744 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
3745 * keyboard.h (parse_menu_item): Update declaration.
3746 * xmenu.c (Fx_popup_menu): Remove.
3747 (syms_of_xmenu): Don't defsubr x-popup-menu.
3748 * w32menu.c (Fx_popup_menu): Remove.
3749 (syms_of_w32menu): Don't defsubr x-popup-menu.
3750 * nsmenu.m (cleanup_popup_menu): Remove.
3751 (ns_menu_show): Rename from ns_popup_menu and remove all the code
3752 moved to menu.c's Fx_popup_menu.
3753 (Fx_popup_menu): Remove.
3754 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
3755 menu_items (it's done in menu.c already).
3756
424d6179
SM
37572009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
3758
3759 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
3760 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
3761
c0df13a6 37622009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
3763
3764 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 3765 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
3766 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
3767 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
3768
2de9f71c
SM
37692009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 Let integers use up 2 tags to give them one extra bit and thus double
3772 their range.
3773 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
3774 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
3775 New macros.
3776 (enum Lisp_Type): Use them. Give explicit values.
3777 (Lisp_Type_Limit): Remove.
3778 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
3779 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
3780 Pay attention to USE_2_TAGS_FOR_INTS.
3781 (INTEGERP): Use LISP_INT_TAG_P.
3782 * fns.c (internal_equal): Simplify the default case.
3783 (sxhash): Use case_Lisp_Int.
3784 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
3785 any more.
3786 (Ftype_of): Use case_Lisp_Int.
3787 (store_symval_forwarding): Take into account the fact that Ints can
3788 now have more than one tag.
3789 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
3790 buffer_slot_type_mismatch):
3791 * xfaces.c (face_attr_equal_p):
3792 * print.c (print_object):
3793 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
3794 Use case_Lisp_Int.
3795
323637a2
EZ
37962009-11-06 Eli Zaretskii <eliz@gnu.org>
3797
7ac65b38
EZ
3798 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
3799
323637a2
EZ
3800 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
3801 warning.
3802
e511451f
JD
38032009-11-06 Jan Djärv <jan.h.d@swipnet.se>
3804
3805 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
3806
3807 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
3808
3809 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
3810 ButtonPressRelease and MotionNotify (bug#4870).
3811
5e2327cf
DN
38122009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
3813
5adc433e
DN
3814 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
3815
d67b4f80
DN
3816 * xterm.c (syms_of_xterm):
3817 * xselect.c (syms_of_xselect):
3818 * xmenu.c (syms_of_xmenu):
3819 * xfns.c (syms_of_xfns):
3820 * xfaces.c (syms_of_xfaces):
3821 * xdisp.c (syms_of_xdisp):
3822 * window.c (syms_of_window):
3823 * w32fns.c (syms_of_w32fns):
3824 * undo.c (syms_of_undo):
3825 * textprop.c (syms_of_textprop):
3826 * terminal.c (syms_of_terminal):
3827 * syntax.c (syms_of_syntax):
3828 * sound.c (syms_of_sound):
3829 * search.c (syms_of_search):
3830 * print.c (syms_of_print):
3831 * minibuf.c (syms_of_minibuf):
3832 * macros.c (syms_of_macros):
3833 * keymap.c (syms_of_keymap, initial_define_key)
3834 (initial_define_lispy_key):
3835 * keyboard.c (syms_of_keyboard):
3836 * insdel.c (syms_of_insdel):
3837 * image.c (syms_of_image):
3838 * fringe.c (syms_of_fringe):
3839 * frame.c (syms_of_frame):
3840 * fontset.c (syms_of_fontset):
3841 * fns.c (syms_of_fns):
3842 * fns.c (syms_of_fns):
3843 * fileio.c (syms_of_fileio):
3844 * fileio.c (syms_of_fileio):
3845 * eval.c (syms_of_eval):
3846 * doc.c (syms_of_doc):
3847 * dispnew.c (syms_of_display):
3848 * dired.c (syms_of_dired):
3849 * dbusbind.c (syms_of_dbusbind):
3850 * data.c (syms_of_data):
3851 * composite.c (syms_of_composite):
3852 * coding.c (syms_of_coding):
3853 * cmds.c (syms_of_cmds):
3854 * charset.c (define_charset_internal, syms_of_character):
3855 * ccl.c (syms_of_ccl):
3856 * category.c (syms_of_category, init_category_once):
3857 * casetab.c (syms_of_casetab):
3858 * casefiddle.c (syms_of_casefiddle):
3859 * callint.c (syms_of_callint):
3860 * bytecode.c (syms_of_bytecode):
3861 * buffer.c (keys_of_buffer, syms_of_buffer):
3862 * alloc.c (syms_of_alloc):
3863 * process.c (syms_of_process, init_process):
3864 * lread.c (syms_of_lread, init_obarray):
3865 * font.c (build_style_table):
3866 * emacs.c (syms_of_emacs, main): Replace calls to intern with
3867 intern_c_string, calls to make_pure_string with
3868 make_pure_c_string. Use pure_cons instead of Fcons.
3869
5e2327cf
DN
3870 * process.c (socket_options): Make it const.
3871 (set_socket_option, init_process): Use a const pointer.
3872
3873 * lread.c (intern_c_string): New function.
3874 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3875 (defvar_int): Uset it. Make the name const char*.
3876
3877 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
3878 (defvar_int): Update prototypes.
3879 (DEFUN, EXFUN): Support for prototypes is now required.
3880 (intern_c_string): New prototype.
3881 (struct Lisp_Subr): Make symbol_name constant.
3882
3883 * font.c (struct table_entry): Remove unused member. Make NAMES
3884 constant.
3885 (weight_table, slant_table, width_table): Make constant.
3886
3887 * emacs.c (struct standard_args): Make name and longname constant.
3888
3889 * character.h (DEFSYM): Use intern_c_string.
3890
a56eaaef
DN
38912009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 * alloc.c (make_pure_c_string): New function.
3894
3895 * eval.c (Fautoload): Purecopy all arguments.
3896
f6a07420
KH
38972009-11-05 Kenichi Handa <handa@m17n.org>
3898
3899 * fileio.c (Finsert_file_contents): Be sure set coding-system of
3900 the buffer in case of replace.
3901
5d28d4b1
DN
39022009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
3903
3904 * puresize.h (BASE_PURESIZE): Increase to 1620000.
3905
b349d111
SM
39062009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
3907
d528b1ce
SM
3908 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
3909 when applicable (bug#4851).
3910
b349d111
SM
3911 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
3912 (P_): Support for prototypes is now required.
3913
c38eb027
CY
39142009-10-31 Chong Yidong <cyd@stupidchicken.com>
3915
3916 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
3917 (Bug#4827).
3918
0405f8d9
EZ
39192009-10-30 Eli Zaretskii <eliz@gnu.org>
3920
d528b1ce 3921 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 3922
ca0a881a
DN
39232009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
3924
3925 * puresize.h (BASE_PURESIZE): Increase to 1470000.
3926
d528b1ce
SM
3927 * lread.c (Fload): Purecopy the file name when building
3928 Vpreloaded_file_list.
ca0a881a 3929
47e0e0e4
JR
39302009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
3931
3932 * w32fns.c (syms_of_w32fns): Change default value of
3933 w32-scroll-lock-modifier to nil. (Bug#2827)
3934
057bce6f
JB
39352009-10-26 Juanma Barranquero <lekktu@gmail.com>
3936
782a943e 3937 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 3938
242bc74c
AS
39392009-10-26 Andreas Schwab <schwab@redhat.com>
3940
3941 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
3942
522d013a
JB
39432009-10-26 Juanma Barranquero <lekktu@gmail.com>
3944
3945 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
3946 For delta < 0, skip check that only makes sense when the mini-window
3947 is going to be enlarged. (Bug#4534)
3948
18060980
CY
39492009-10-25 Chong Yidong <cyd@stupidchicken.com>
3950
3951 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
3952 string in menu maps (Bug#4471).
3953
fec8f0fe
CY
39542009-10-24 Chong Yidong <cyd@stupidchicken.com>
3955
3956 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
3957 FRAME_NS_VIEW on terminal frames (Bug#4765).
3958
10d66ec0
AS
39592009-10-24 Andreas Schwab <schwab@linux-m68k.org>
3960
1cae01f7
AS
3961 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
3962 DBUS_TYPE_UINTnn separately to get proper sign extension.
3963
58a12889
AS
3964 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
3965 can properly handle unsigned types.
d528b1ce 3966 (make_uid, make_gid): Remove.
58a12889 3967
987c9327
AS
3968 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
3969 types again.
3970
522d013a 3971 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
3972 (system_process_attributes): Likewise.
3973
905a9ed3
DN
39742009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
3975
3976 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
3977
3978 * eval.c (Fautoload): Purecopy the filename. Simplify.
3979
3980 * category.c (Fdefine_category): Purecopy docstring.
3981
a599b3e8
AS
39822009-10-23 Andreas Schwab <schwab@linux-m68k.org>
3983
7b792fc9
AS
3984 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
3985
a599b3e8
AS
3986 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
3987
b35ac83e
CY
39882009-10-23 Chong Yidong <cyd@stupidchicken.com>
3989
3990 * window.c (Fwindow_edges, Fwindow_pixel_edges)
3991 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
3992 (Bug#4775).
3993
e8903e00
SM
39942009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
3995
3996 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
3997 (init_fileio_once):
3998 * lisp.h (init_fileio_once): Remove.
3999 * emacs.c (main): Don't call init_fileio_once.
4000
8f43cbf3
DN
40012009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
4002
4003 * puresize.h (BASE_PURESIZE): Increase to 1430000.
4004
26898943
AS
40052009-10-21 Andreas Schwab <schwab@linux-m68k.org>
4006
4007 * doprnt.c (doprnt): Fix overflow check.
4008
5c646d5a
JD
40092009-10-21 Jan Djärv <jan.h.d@swipnet.se>
4010
3132a7ea
JD
4011 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
4012
5c646d5a
JD
4013 * xterm.h (x_wait_for_event): Declare it.
4014
4015 * xterm.c (pending_event_wait): New variable.
4016 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
4017 see pending_event_wait.eventtype.
4018 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
4019 (x_new_font): Call change_frame_size with new rows/columns before we
4020 try to resize the frame.
5c646d5a 4021 (x_wait_for_event): New function.
d528b1ce
SM
4022 (x_set_window_size_1): Don't change gravity unless change_gravity
4023 is set.
5c646d5a
JD
4024 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
4025 don't change frame size, instead wait for the ConfigureNotify.
4026 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
4027 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
4028 (x_initialize): Initialize pending_event_wait.
4029
4030 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
4031 size.
4032
4033 * widget.c (EmacsFrameSetValues): Add comment.
4034 (EmacsFrameSetCharSize): Just call x_set_window_size.
4035
4036 * gtkutil.c (xg_frame_set_char_size): Flush events and call
4037 x_wait_for_event.
d528b1ce 4038 (flush_and_sync): Remove again.
5c646d5a
JD
4039 (xg_get_font_name): Suggest monospace if no previous font is known.
4040
e9c1637d
SM
40412009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
4042
4043 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 4044 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 4045
5a72cccb
YM
40462009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4047
4048 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
4049 processing pending events when event is filtered for input method.
ab04798f 4050 (Bug#3681)
5a72cccb 4051
2629aa37
JB
40522009-10-20 Juanma Barranquero <lekktu@gmail.com>
4053
4054 * fns.c: Add #endif accidentally removed in previous change.
4055
c3417a74
DN
40562009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4057
4058 * fns.c: Remove code for unsupported system: MAC_OS.
4059 * image.c: Likewise. Include setjmp.h.
4060
9685cef2
JD
40612009-10-19 Jan Djärv <jan.h.d@swipnet.se>
4062
4063 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
4064 pixel -1 (bug #4742).
4065
d7306fe6
DN
40662009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
4067
019d2c4c
DN
4068 * process.c (create_pty): Remove conditionals for no longer
4069 supported systems: UNIPLUS and RTU.
4070
ee6bacd4
DN
4071 * xterm.c:
4072 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
4073
d7306fe6
DN
4074 * alloc.c: Do not define struct catchtag.
4075 * eval.c: Move struct catchtag definition ...
4076 * lisp.h: ... here.
4077
4078 * image.c: Move png.h #include earlier to avoid warnings.
4079
4080 * xterm.c:
4081 * xsmfns.c:
4082 * xselect.c:
4083 * xrdb.c:
4084 * xmenu.c:
4085 * xftfont.c:
4086 * xfont.c:
4087 * xfns.c:
4088 * xfaces.c:
4089 * xdisp.c:
4090 * window.c:
4091 * widget.c:
4092 * w32xfns.c:
4093 * w32uniscribe.c:
4094 * w32term.c:
4095 * w32select.c:
4096 * w32reg.c:
4097 * w32proc.c:
4098 * w32menu.c:
4099 * w32inevt.c:
4100 * w32heap.c:
4101 * w32font.c:
4102 * w32fns.c:
4103 * w32console.c:
4104 * w32.c:
4105 * w16select.c:
4106 * vm-limit.c:
4107 * unexsol.c:
4108 * unexec.c:
4109 * unexcw.c:
4110 * unexaix.c:
4111 * undo.c:
4112 * tparam.c:
4113 * textprop.c:
4114 * terminfo.c:
4115 * terminal.c:
4116 * termcap.c:
4117 * term.c:
4118 * syntax.c:
4119 * sound.c:
4120 * sheap.c:
4121 * search.c:
4122 * scroll.c:
4123 * region-cache.c:
4124 * regex.c:
4125 * ralloc.c:
4126 * process.c:
4127 * print.c:
b024548b
DN
4128 * nsterm.m:
4129 * nsselect.m:
4130 * nsmenu.m:
4131 * nsimage.m:
4132 * nsfont.m:
4133 * nsfns.m:
d7306fe6
DN
4134 * msdos.c:
4135 * minibuf.c:
4136 * menu.c:
4137 * marker.c:
4138 * macros.c:
4139 * keymap.c:
4140 * keyboard.c:
4141 * intervals.c:
4142 * insdel.c:
4143 * indent.c:
4144 * gtkutil.c:
4145 * ftxfont.c:
4146 * ftfont.c:
4147 * fringe.c:
4148 * frame.c:
4149 * fontset.c:
4150 * font.c:
4151 * fns.c:
4152 * floatfns.c:
4153 * filelock.c:
4154 * fileio.c:
4155 * emacs.c:
4156 * editfns.c:
4157 * dosfns.c:
4158 * doprnt.c:
4159 * doc.c:
4160 * dispnew.c:
4161 * dired.c:
4162 * dbusbind.c:
4163 * data.c:
4164 * composite.c:
4165 * coding.c:
4166 * cmds.c:
4167 * cm.c:
4168 * chartab.c:
4169 * charset.c:
4170 * character.c:
4171 * ccl.c:
4172 * category.c:
4173 * casetab.c:
4174 * casefiddle.c:
4175 * callproc.c:
4176 * callint.c:
4177 * bytecode.c:
4178 * buffer.c:
4179 * atimer.c: Include setjmp.h. (Bug#4643)
4180
fd5f21e6
SM
41812009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
4182
4c0354d7
SM
4183 Remove leftover table unibyte_to_multibyte_table.
4184 * character.c (unibyte_to_multibyte_table): Remove.
4185 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
4186 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
4187 * character.h (UNIBYTE_TO_CHAR): New macro.
4188 (MAKE_CHAR_MULTIBYTE): Use it.
4189 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
4190 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
4191 (message_dolog, set_message_1):
4192 * search.c (Freplace_match):
4193 * editfns.c (Fcompare_buffer_substrings):
4194 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
4195 (concat):
4196 * insdel.c (copy_text, count_size_as_multibyte):
4197 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
4198 * term.c (produce_glyphs):
4199 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
4200 * regex.c (RE_CHAR_TO_MULTIBYTE):
4201 * cmds.c (internal_self_insert):
4202 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
4203
fd5f21e6
SM
4204 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
4205
4418646e
DN
42062009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
4207
4208 * puresize.h (BASE_PURESIZE): Increase to 1310000.
4209
35f5c1d2
JB
42102009-10-16 Juanma Barranquero <lekktu@gmail.com>
4211
4212 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
4213
a0cd8f6b
AR
42142009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4215
4216 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
4217 still needed under Tiger.
4218
4219 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
4220
4221 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
4222 __Apple__.
4223
4224 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
4225
01a8d3fa
KH
42262009-10-15 Kenichi Handa <handa@m17n.org>
4227
4228 * print.c (print_object): Escape a symbol like "2E10" too.
4229
bf6c75c9 42302009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
4231
4232 Cleanups and changes for 64-bit compile under Snow Leopard.
4233 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
4234
4235 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
4236
c5959062 4237 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
4238 (ns_findfonts, nsfont_list_family): Use long format in printf, and
4239 cast argument.
4240 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 4241 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
4242
4243 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
4244
4245 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
4246 where appropriate.
4247
4248 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
4249 where appropriate.
6e4780c5
JB
4250 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
4251 Use stringWithUTF8String.
bf6c75c9
AR
4252 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
4253
6e4780c5
JB
4254 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
4255 Add formal protocol mention to inheritance.
bf6c75c9
AR
4256 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
4257
6e4780c5
JB
4258 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
4259 Fix printf format.
bf6c75c9
AR
4260 (ns_query_color): Use CGFloat where appropriate.
4261 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 4262 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
4263 argument.
4264
3d87f118
AR
4265 * config.in (NS_HAVE_NSINTEGER): Drop.
4266
a95c8102
AR
4267 * dbusbind.c (dbus-method-return-internal)
4268 (dbus-method-error-internal): Use long format in printf, and cast
4269 argument.
4270
4271 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
4272 in printf, and cast argument.
4273
6873acca 4274 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
4275 cast argument.
4276
9ec6f100
GM
42772009-10-11 Glenn Morris <rgm@gnu.org>
4278
4279 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
4280
5be883cd
JD
42812009-10-08 Jan Djärv <jan.h.d@swipnet.se>
4282
4283 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
4284 menu bar with a small width so it doesn't enlarge the frame.
4285
d7a39b51
JB
42862009-10-08 Juanma Barranquero <lekktu@gmail.com>
4287
4288 * fontset.c (Fset_fontset_font): Fix typos in error messages.
4289
0c2b6f8e
GM
42902009-10-06 Glenn Morris <rgm@gnu.org>
4291
4292 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
4293 SOME_MACHINE_LISP (this enters indirectly via DOC).
4294
e02131a2
EZ
42952009-10-05 Eli Zaretskii <eliz@gnu.org>
4296
4297 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
4298
b4744254
EZ
42992009-10-04 Eli Zaretskii <eliz@gnu.org>
4300
4301 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
4302 Doc fix.
4303
dbf64827
JB
43042009-10-03 Martin Rudalics <rudalics@gmx.at>
4305
4306 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
4307
e9a0aef8
MA
43082009-10-02 Michael Albinus <michael.albinus@gmx.de>
4309
d528b1ce 4310 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
4311 used anymore outside fileio.c.
4312
4313 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
4314
64eb2b56
JB
43152009-10-01 Juanma Barranquero <lekktu@gmail.com>
4316
4317 * lisp.h (Qdelete_directory_internal):
4318 Declare, instead of Qdelete_directory.
4319
4320 * w32fns.c (Fsystem_move_file_to_trash): Use it.
4321
9d28c33e
SM
43222009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
4323
4324 * eval.c (Fcalled_interactively_p): Add `kind' argument.
4325
9d8f3bd9
MA
43262009-10-01 Michael Albinus <michael.albinus@gmx.de>
4327
9d28c33e 4328 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
4329 Fdelete_directory. It is not a command anymore. It has no file
4330 name handler.
4331
9694740b
SM
43322009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4333
4334 * xdisp.c (get_next_display_element): Use an enum in last change.
4335
748e162f
KH
43362009-09-28 Kenichi Handa <handa@m17n.org>
4337
9694740b 4338 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
4339 unibyte_display_via_language_environment in handling
4340 Vnobreak_char_display.
4341
17efd58d
AR
43422009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4343
4344 * nsterm.h (ns_app_name): New extern variable.
4345
4346 * nsterm.m (ns_app_name): New variable.
4347 (ns_term_init): Set and use it.
4348 (ns_term_shutdown): Use it.
4349
4350 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
4351 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
4352
4353 * nsfns.m (ns_set_name_iconic, ns_set_name)
4354 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
4355 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
4356
9694740b
SM
4357 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
4358 Remove double-casting in client_data comparison.
31c2d412 4359
3208cb35
YM
43602009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4361
4362 * keyboard.c (make_lispy_event): Remember last wheel direction.
4363 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
4364
b7d552d6
GM
43652009-09-26 Glenn Morris <rgm@gnu.org>
4366
4367 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
4368 internal.elc. Add term/pc-win.elc.
4369 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
4370 term/x-win.elc.
4371 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
4372 term/w32-win.elc.
4373 (NS_SUPPORT): New.
4374 (lisp): Add NS_SUPPORT.
4375 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
4376
4ff670a8
DR
43772009-09-25 David Reitter <david.reitter@gmail.com>
4378
4379 * nsmenu.m (EmacsMenu-clear): Recognize application menu
4380 on Mac OS X 10.6+ (bug#4513).
4381
feabfb6c
JB
43822009-09-24 Juanma Barranquero <lekktu@gmail.com>
4383
4384 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
4385 some parts of Emacs code (like font selection) don't grok them.
4386 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 4387
de59072a
AS
43882009-09-24 Andreas Schwab <schwab@redhat.com>
4389
4390 * coding.c (decode_coding_iso_2022): Fix operator precedence.
4391
a489517b
JB
43922009-09-24 Juanma Barranquero <lekktu@gmail.com>
4393
4394 * dired.c (Fdirectory_files): Fix typo in docstring.
4395
0592970c
AR
43962009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4397
4398 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
4399 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
4400 (EmacsScroller-setPosition:portion:whole:): Remove -display call
4401 under GNUstep.
4402 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
4403
4404 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
4405 glyph advancement.
4406
48e8a88b
AR
44072009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
4408
4409 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 4410 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
4411
4412 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
4413 deleted (bug #4492).
4414
e14f0a78
AR
4415 * nsfont.m (Vns_reg_to_script): New lisp variable.
4416 (syms_of_nsfont): Declare it.
4417 (ns_registry_to_script): New function.
4418 (ns_get_req_script): Call it.
4419 (ns_findfonts): Don't give up on non-unicode registry.
4420
4421 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
4422
5b650faa
SM
44232009-09-20 Tom Tromey <tromey@redhat.com>
4424
4425 * eval.c (find_handler_clause): Make stack-trace-on-error work in
4426 batch mode (bug#4228).
4427
a489517b 44282009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
4429
4430 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 4431 carefully. (Bug #4339)
0bae4e09 4432
fcfe06f3
CY
44332009-09-18 Chong Yidong <cyd@stupidchicken.com>
4434
d798ba87 4435 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4436
31642728
AR
44372009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4438
4439 * emacs.c (inhibit_x_resources): Update doc string for NS.
4440 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 4441 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
4442
4443 * nsterm.h (ns_no_defaults): Remove.
4444
4445 * nsterm.m (ns_no_defaults): Remove.
4446 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
4447 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
4448 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
4449 don't update the NSWindow itself.
4450 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 4451 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
4452
4453 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
4454 ns_use_qd_smoothing.
4455
4456 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
4457 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 4458 (x-close-connection): Drop PSFlush() under OS X.
a489517b 4459 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 4460
8686ac71
JB
44612009-09-17 Juanma Barranquero <lekktu@gmail.com>
4462
4463 * emacs.c (inhibit_x_resources): New variable.
4464 (main) [HAVE_NS]: Don't process --quick command line option.
4465 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
4466
4467 * lisp.h (inhibit_x_resources): Declare it extern.
4468
4469 * w32reg.c (x_get_string_resource):
4470 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
4471
e227ba05
EZ
44722009-09-17 Eli Zaretskii <eliz@gnu.org>
4473
362654a6
JB
4474 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
4475 Add lisp/term/internal.elc.
e227ba05 4476
742d40e8
SM
44772009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4478
4479 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
4480 (bug#4461).
4481
005bd5a2
DN
44822009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
4483
4484 * puresize.h (BASE_PURESIZE): Increase to 1290000.
4485
4486 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
4487 (OBJECTS_MACHINE): Remove, unused.
4488
f9af9719
SM
44892009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
4490
4491 * frame.c (x_get_resource_string): Remove unused.
4492
0307c7d2
JD
44932009-09-15 Jan Djärv <jan.h.d@swipnet.se>
4494
4495 * xterm.c (x_new_font): Call change_frame_size before calling
4496 x_set_window_size, in case frame size won't change.
4497
4498 * frame.c (x_set_font): Remove dead code.
4499
428b13d6
SM
45002009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
4501
4502 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
4503
5766c380
SM
45042009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4505
4506 * lread.c (Fload): Don't output a message after loading an obsolete
4507 package any more (done in Lisp now).
4508
2fd0161b
CY
45092009-09-12 Chong Yidong <cyd@stupidchicken.com>
4510
4511 * fns.c (syms_of_fns): Doc fix (Bug#4227).
4512
bc5e75b6
SM
45132009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4514
4515 * keymap.c (Fwhere_is_internal): Use nconc2.
4516
c31c985e
AM
45172009-09-11 Alan Mackenzie <acm@muc.de>
4518
4519 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4520 batch mode.
4521
78012bd2
AS
45222009-09-11 Andreas Schwab <schwab@linux-m68k.org>
4523
4524 * xdisp.c (display_mode_element): Detect cycles.
4525
9d889332
SM
45262009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4527
4528 * keymap.c (where_is_internal): Don't erroneously return nil right after
4529 filling the cache.
4530 (where_is_internal_1): Fix up typo.
4531
7ab5d780
GM
45322009-09-11 Glenn Morris <rgm@gnu.org>
4533
4534 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
4535 share a common doc-string.
4536
5238a749
SM
45372009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
4538
66d77eda
SM
4539 * keymap.c (get_keymap): Return the actual keymap symbol rather than
4540 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
4541
5238a749
SM
4542 * keymap.c (QCadvertised_binding): New constant.
4543 (syms_of_keymap): Initialize it.
4544 (Fwhere_is_internal): Try and use bindings from :advertised-binding
4545 if applicable.
4546
19f48442
SM
45472009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
4548
50d4ba39
SM
4549 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
4550 (parse_menu_item): Streamline since bindings are recomputed all the
4551 time anyway. Don't bother checking Vdefine_key_rebound_commands any
4552 more and don't support lmenu's menu-alias any more either.
4553
a88a5372
SM
4554 * keymap.c (where_is_internal_data): Make noindirect a boolean.
4555 (where_is_internal): Strip it down to only traverse the keymaps.
4556 Move the cache handling from Fwhere_is_internal to here.
4557 (Fwhere_is_internal): Move the handling of remapping and the choice of
4558 the best binding from where_is_internal to here.
4559 Unify the cached/noncached paths, so remapping is also handled
4560 correctly when the cache is used, and so the cache can be used to
4561 speed up remap-handling when applicable.
4562 Give preference to non-remapped bindings.
4563 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
4564 non-remapped bindings.
4565 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
4566 command remapping.
4567
19f48442
SM
4568 * xdisp.c (display_mode_element): Move list length limit from 50 to
4569 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
4570
599498c3 45712009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
4572
4573 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
4574
f9b7b5ac
SM
45752009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
4576
a53af587
JB
4577 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
4578 (Bug#4334)
4579
f9b7b5ac
SM
4580 * keymap.c (where_is_internal): Filter out shadowed remappings.
4581 Assume that where_is_internal returns unshadowed bindings to simplify
4582 the code and get rid of the gotos. Use ASIZE.
4583
04f4b72d
JD
45842009-09-04 Jan Djärv <jan.h.d@swipnet.se>
4585
4da146f2
JD
4586 * xterm.c (x_focus_changed): If we get a focusout and pointer
4587 is invisible, make it visible.
4588
04f4b72d
JD
4589 * xterm.h: Remove condition for declaration of
4590 x_*_window_to_frame.
4591
7cef7ce3
SM
45922009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
4593
4594 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
4595 initial terminal as well.
4596
a54fa5b7
JD
45972009-09-02 Jan Djärv <jan.h.d@swipnet.se>
4598
4599 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 4600 x_menubar_window_to_frame.
a54fa5b7 4601
50426a04 4602 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
4603 (XTmouse_position): Do not return valid positions
4604 for clicks in the menubar and the toolbar for Gtk+.
4605
4606 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
4607 if the widget for the event has the same top level as a frame,
4608 return the frame.
4609 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
4610 internal windows, bug #4122.
4611 (x_non_menubar_window_to_frame): Remove.
4612
5a021dd0
GM
46132009-09-02 Glenn Morris <rgm@gnu.org>
4614
4615 * buffer.c (default-major-mode): Move most of the doc from here...
4616 (major-mode): ... to here.
4617
548fe2f3
NR
46182009-08-30 Nick Roberts <nickrob@snap.net.nz>
4619
4620 * process.c (wait_reading_process_output): Keep the descriptor
4621 when pty is used by a non-child process, e.g., in I/O buffer of
4622 GDB this allows inferior to be restarted.
4623
e0840eef
EZ
46242009-08-29 Eli Zaretskii <eliz@gnu.org>
4625
4626 * xdisp.c (redisplay_internal): Remove redundant test and collapse
4627 both branches into one.
4628
82e98df4
SM
46292009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
4630
4631 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
4632 (main): Use enable-multibyte-characters rather than
4633 default-enable-multibyte-characters. Output a warning message when
4634 running a unibyte session.
4635
890617cb
YM
46362009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4637
4638 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
4639 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
4640 (copy_data_segment): Also copy __program_vars section.
4641 (copy_dyld_info) [LC_DYLD_INFO]: New function.
4642 (dump_it) [LC_DYLD_INFO]: Use it.
4643
4644 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
4645
e7adeadc
EZ
46462009-08-28 Eli Zaretskii <eliz@gnu.org>
4647
4648 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
4649 $(SRC)/buildobj.h.
4650 (buildobj.h): Renamed from $(SRC)/buildobj.h.
4651 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
4652 $(SRC)/buildobj.h.
4653 (clean): Add buildobj.h.
4654
3ed8bbdc
TZ
46552009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
4656
4657 * print.c (print_object): Set escapeflag to 1 when printing
4658 hashtable keys and values.
4659
155a6764
SM
46602009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
4661
4662 * lread.c (read_integer): Use doubles (and potentially return a float
4663 number) as we do in string-to-number.
4664 (read1): Use strtol to read integers, signal errors on strtol's
4665 overflow and use floats if strtol's output is too large for
4666 Elisp integers.
4667
877610de
EZ
46682009-08-27 Eli Zaretskii <eliz@gnu.org>
4669
4670 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
4671 (make-buildobj-SH): Fix last change.
4672 (SRC): Move to before where it's first used.
4673
ef73e7be
KH
46742009-08-27 Kenichi Handa <handa@m17n.org>
4675
550c8289
KH
4676 * process.c (send_process): Use encode_coding_object instead of
4677 encode_coding_string to perform eol-conversion even if the string
4678 is unibyte.
4679
60afa08d
KH
4680 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
4681 character.
4682
ef73e7be 4683 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 4684 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 4685
7b3a82d7
DN
46862009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
4687
5654bf63
DN
4688 * callproc.c (Fcall_process): Remove always true #if.
4689
7b3a82d7
DN
4690 * lisp.h: Replace #if 0 code for checking with text pointing to
4691 the --enable-checking configure flag.
4692
4693 * emacs.c (main): Mention the --enable-profiling configure flag
4694 instead of using CFLAGS.
4695
878bde49
KR
46962009-08-26 Ken Raeburn <raeburn@raeburn.org>
4697
4698 * Makefile.in (buildobj.h): New target.
4699 (doc.o): Depend on it.
4700 (temacs${EXEEXT}): Don't generate buildobj.lst.
4701 (mostlyclean): Delete buildobj.h, not buildobj.lst.
4702 * makefile.w32-in ($(SRC)/buildobj.h): New target.
4703 ($(BLD)/doc.$(O)): Depend on it.
4704 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
4705 provided by Eli Zaretskii.)
4706 ($(TEMACS)): Don't generate buildobj.lst.
4707 * doc.c: Include buildobj.h.
4708 (buildobj): New static variable.
4709 (Fsnarf_documentation): Use it, instead of opening and reading
4710 buildobj.lst.
4711
1574224c
MA
47122009-08-25 Michael Albinus <michael.albinus@gmx.de>
4713
4714 * dbusbind.c (Fdbus_call_method)
4715 (Fdbus_call_method_asynchronously): Use English numeric format for
4716 timeout values in doc string.
4717
d9da2f45
KH
47182009-08-25 Kenichi Handa <handa@m17n.org>
4719
ef73e7be
KH
4720 * alloc.c (mark_char_table): New function.
4721 (mark_object): Use mark_char_table for a char-table.
4722
d9da2f45
KH
4723 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
4724 (CHAR_TABLE_REF): Use it.
4725
c8edcc01
KR
47262009-08-23 Ken Raeburn <raeburn@raeburn.org>
4727
4728 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
4729 before invoking the newly build emacs to check for load-path
4730 shadowing.
4731
7763401b
GM
47322009-08-22 Glenn Morris <rgm@gnu.org>
4733
4734 * Makefile.in (bootstrap_exe): New variable.
4735 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
4736 Use ${bootstrap_exe}.
4737
729eadda
EZ
47382009-08-22 Eli Zaretskii <eliz@gnu.org>
4739
4740 * coding.h (encode_coding_string): Don't encode unibyte strings.
4741 (Bug#4047)
4742
eb4c6ace
MA
47432009-08-22 Michael Albinus <michael.albinus@gmx.de>
4744
4745 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
4746
4747 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
4748 intended as hotfix only.
4749 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
4750
36e34d1b
AR
47512009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
4752
4753 * nsterm.m (ns_get_color): Update documentation properly for last
4754 change, and clean up loose ends in the code left by it. Fix
4755 longstanding bug with 16-bit hex parsing, and add support for
4756 yet another X11 format (rgb:r/g/b) for compatibility.
4757 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
4758 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
4759
f983eb8a
SM
47602009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
4761
4762 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
4763
3f56d3c6
MA
47642009-08-20 Michael Albinus <michael.albinus@gmx.de>
4765
4766 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
4767 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
4768 (xd_initialize, xd_pending_messages): Check, whether
4769 $DBUS_SESSION_BUS_ADDRESS is set.
4770
fb641d68
YM
47712009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4772
4773 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
4774
4775 * nsterm.m (ns_get_color): Remove incompatible color formats again.
4776
cf59a374
GM
47772009-08-20 Glenn Morris <rgm@gnu.org>
4778
4779 * emacs.c (system-type): Doc fix.
4780
1373f3be
SM
47812009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
4782
4783 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
4784 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
4785
058ed861
MA
47862009-08-18 Michael Albinus <michael.albinus@gmx.de>
4787
1373f3be
SM
4788 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
4789 New functions.
058ed861
MA
4790 (xd_initialize): Revert change from 2009-08-16.
4791
563a866e 47922009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
4793
4794 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 4795 font-group vector, return nil.
5fc05db0 4796
e42bdf01
CY
47972009-08-17 Chong Yidong <cyd@stupidchicken.com>
4798
4799 * process.c (status_notify): Don't perform redisplay.
4800 (Fdelete_process, list_processes_1, process_send_signal):
4801 Expliticly perform redisplay.
4802 (wait_reading_process_output): Always check process status, but
4803 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
4804
4230ab74
KR
48052009-08-17 Ken Raeburn <raeburn@raeburn.org>
4806
1373f3be 4807 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
4808 (XFLOAT_INIT): New macro for storing a float value.
4809 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
4810 * fns.c (sxhash): Copy out the value of a float in order to
4811 examine its bytes.
4812 * dbusbind.c (xd_append_arg): Likewise.
4813
4230ab74
KR
4814 * emacs.c (main): Don't call syms_of_data twice.
4815
a0645cdd
MA
48162009-08-16 Michael Albinus <michael.albinus@gmx.de>
4817
4818 * dbusbind.c (xd_initialize): Add connection file descriptor to
4819 input_wait_mask, in order to let select() detect, whether a new
4820 message has been arrived.
ca4f31ea 4821 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 4822
485db0ba
MA
48232009-08-15 Michael Albinus <michael.albinus@gmx.de>
4824
1373f3be
SM
4825 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
4826 New functions.
485db0ba
MA
4827
4828 * lisp.h (xd_pending_messages): Declare.
4829
4830 * keyboard.c (readable_events): Call xd_pending_messages.
4831
b5b98ff4
CY
48322009-08-15 Chong Yidong <cyd@stupidchicken.com>
4833
1373f3be 4834 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 4835
f8354c6e
CY
4836 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
4837
b5b98ff4
CY
4838 * buffer.c (set_buffer_internal_1)
4839 (swap_out_buffer_local_variables): Check for unbound local
4840 variables (Bug#4138).
4841
8b9fc636
EZ
48422009-08-14 Eli Zaretskii <eliz@gnu.org>
4843
4844 * process.c (create_pty): Fix last change.
4845
ce959360
CY
48462009-08-13 Chong Yidong <cyd@stupidchicken.com>
4847
4848 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
4849 (xbm_load_image): Caller changed.
64b807c9 4850 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 4851
c7baf7e9
NR
48522009-08-13 Nick Roberts <nickrob@snap.net.nz>
4853
4854 * process.c (create_pty): New function.
4855 (Fstart_process): Use it to allow Emacs to just associate a pty
4856 with the buffer. See associated change in gdb-mi.el.
4857 (list_processes_1): Deal with no program name.
4858 (start_process_unwind): Use pid == -2 to mean no process.
4859
1ac9108a
SM
48602009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
4861
4862 * cmds.c (nonundocount): New global variable.
4863 (keys_of_cmds): Initialize it.
4864 (Fself_insert_command): Use it to combine upto 20 sequential chars
4865 into a single undo entry, just like the Qself_insert_command code in
4866 keyboard.c does.
4867 Call frame_make_pointer_invisible, also like the Qself_insert_command
4868 code in keyboard.c does.
4869 * keyboard.c (command_loop_1): Use the new global nonundocount rather
4870 than its own local replacement for it.
4871
e267324c
KR
48722009-08-10 Ken Raeburn <raeburn@raeburn.org>
4873
1ac9108a 4874 * fns.c (concat): Don't re-set string length to its current value.
77437343 4875
1ac9108a
SM
4876 * coding.h (decode_coding_string, encode_coding_string):
4877 Use SBYTES macro.
f0bed503 4878
1ac9108a 4879 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
4880 (doprnt): Merge with doprnt1, discarding lispstrings code.
4881 * lisp.h (doprnt_lisp): Don't declare.
4882
416e006d
JL
48832009-08-07 Juri Linkov <juri@jurta.org>
4884
4885 * puresize.h (BASE_PURESIZE): Increase to 1270000.
4886
6f7d5780
DN
48872009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
4888
4889 * print.c (syms_of_print): Undo previous change.
4890
f19a0f5b
TZ
48912009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
4892
4893 * lread.c (read1, syms_of_lread): Read hashtables back from the
4894 readable format.
4895
4896 * print.c (print_preprocess, print_object): Print hashtables fully
4897 and readably.
4898 (syms_of_print): Provide 'hashtable-print-readable.
4899
b9173dc2
AR
49002009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4901
4902 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
4903 no family set.
4904 (nsfont_open): Handle case when entity has no family.
4905
1586503c
AR
49062009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4907
4908 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
4909 element, not a list, for match case.
4910
087048cd
KH
49112009-07-28 Kenichi Handa <handa@m17n.org>
4912
4913 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
4914 rigidly.
4915
4916 * xfont.c (xfont_list_pattern): Don't ignore the return value of
4917 font_parse_xlfd. Check font properties more rigidly.
4918
780c2506
DN
49192009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
4920
31fd7c5c
JB
4921 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
4922 bsd-common.h.
780c2506 4923
a8c0cc18
KH
49242009-07-27 Kenichi Handa <handa@m17n.org>
4925
4926 * xfaces.c (face_with_height): Call font_clear_prop.
4927
4fbe2306
CY
49282009-07-26 Chong Yidong <cyd@stupidchicken.com>
4929
111d9af3
CY
4930 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
4931
4932 * xterm.c (x_term_init): Use Qx.
4933
4fbe2306
CY
4934 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
4935
1ac9108a 4936 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
4937 (ns_get_color): Revert 2009-07-16 change.
4938
beb0b7f9
EZ
49392009-07-25 Eli Zaretskii <eliz@gnu.org>
4940
4941 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 4942 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 4943
2baf5e76
KR
49442009-07-25 Ken Raeburn <raeburn@raeburn.org>
4945
1ac9108a
SM
4946 * coding.h (decode_coding_string, encode_coding_string):
4947 Use SCHARS macro.
8890e5f5 4948
2baf5e76 4949 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 4950 (load_depth): Delete.
2baf5e76
KR
4951 (Qload_in_progress): New variable.
4952 (load_unwind): Don't reference load_depth or load_in_progress.
4953 (Fload): Likewise; specbind Qload_in_progress instead.
4954 (init_lread): Don't initialize load_depth.
4955 (syms_of_lread): Initialize and protect Qload_in_progress.
4956
1395c6f5
AR
49572009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4958
4959 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
4960
4e2f36cf
AR
49612009-07-23 Yavor Doganov <yavor@gnu.org>
4962
4963 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
4964
5dd9a6f7
AR
49652009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
4966
4967 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
4968 Bugs 3792, 3720, 2402.
4969 (ns_lookup_indexed_color): Check for bad index.
4970 (ns_index_color): Init unused slot to 0.
4971 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
4972 Bug 3714, possibly 3082.
5dd9a6f7 4973
c902b920
JR
49742009-07-22 Jason Rumney <jasonr@gnu.org>
4975
1ac9108a
SM
4976 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
4977 Position IME window at cursor (Bug#2570).
c902b920
JR
4978 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
4979 (globals_of_w32fns): Dynamically load functions required above.
4980
4981 * w32term.c (w32_draw_window_cursor): Send message to reposition
4982 any IME window.
4983
090101cf
CY
49842009-07-21 Chong Yidong <cyd@stupidchicken.com>
4985
4986 * fileio.c: Revert 2009-07-16 changes.
4987 (Vauto_save_include_big_deletions): New variable.
4988 (Fdo_auto_save): Disable auto-save only if
4989 auto-save-include-big-deletions is nil.
4990
e6583e3d
CY
49912009-07-21 Chong Yidong <cyd@stupidchicken.com>
4992
4993 * xdisp.c (move_it_to): For continued lines ending in a tab, take
4994 the overflowed pixels into account (Bug#3879).
4995
ece435a5
KR
49962009-07-21 Ken Raeburn <raeburn@raeburn.org>
4997
4998 * lread.c (load_depth): New variable.
4999 (Fload, load_unwind, init_lread): Set it to the load recursion
5000 depth; set load_in_progress as a simple boolean based on the
5001 current load_depth. (Bug#3892)
5002
40b2d973
AR
50032009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5004
5005 * nsfont.m (ns_has_attribute): Remove.
5006 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
5007
10be7e0d
JL
50082009-07-18 Juri Linkov <juri@jurta.org>
5009
5010 * process.c (Fset_process_query_on_exit_flag): Mention killing
5011 a buffer in docstring.
5012
fa055055
KH
50132009-07-17 Kenichi Handa <handa@m17n.org>
5014
5015 * casetab.c (shuffle): Fix the logic of setting up the cycle.
5016
042f7b69
YM
50172009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5018
5019 * nsfns.m (Fns_set_alpha): Remove function.
5020 (syms_of_nsfns): Don't defsubr it.
5021
5022 * nsterm.m (ns_get_color): Remove incompatible color formats.
5023 (ns_color_to_lisp): Generate #rrggbb color format string.
5024
4be941e3
RS
50252009-07-16 Richard Stallman <rms@gnu.org>
5026
5027 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
5028 (Fset_buffer_auto_saved): Handle save_length = -2.
5029
4e6b227d
CY
50302009-07-16 Chong Yidong <cyd@stupidchicken.com>
5031
5032 * xterm.c (Qx_gtk_map_stock): New var.
5033
5034 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
5035 of calling intern each time.
5036
a1856973
YM
50372009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5038
5039 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
5040 does tiling.
5041
5042 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
5043
497e54d8
KH
50442009-07-14 Kenichi Handa <handa@m17n.org>
5045
72d36834
KH
5046 * font.c (font_vconcat_entity_vectors): New function.
5047 (struct font_sort_data): New member font_driver_preference.
5048 (font_compare): Check font_driver_preference.
5049 (font_sort_entities): The format of the first argument changed.
5050 (font_delete_unmatched): Likewise.
5051 (font_list_entities): The return type changed.
5052 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
5053 (font_find_for_lface): Adjuste for the above changes.
5054 Don't suppress the checking of C even if the repertory supports it.
5055 (Flist_fonts): Adjust for the above changes.
72d36834 5056
1ac9108a
SM
5057 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
5058 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
5059 Reject a font who has adstyle property that is different from a
5060 langname derived from registry property.
1ac9108a 5061 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 5062
b6046155
EZ
50632009-07-13 Eli Zaretskii <eliz@gnu.org>
5064
5065 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
5066 local copy of dirfilename.
5067
fb6b6049
KH
50682009-07-13 Kenichi Handa <handa@m17n.org>
5069
e2402a5e
KH
5070 * chartab.c (sub_char_table_ref_and_range): Fix the range check
5071 against max_char.
5072
fb6b6049
KH
5073 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
5074 calling XSYMBOL (sym).
5075
65156807
EZ
50762009-07-11 Eli Zaretskii <eliz@gnu.org>
5077
1ac9108a
SM
5078 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
5079 New function.
5080 (directory_files_internal) [WINDOWSNT]:
5081 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
5082 the filesystem of the directory is fast or slow.
5083
5084 * w32.c (logon_network_drive): Don't assume PATH is an absolute
5085 file name.
5086 (is_slow_fs): New function.
5087 (stat): Use it to determine whether to issue more system calls to
5088 get accurate file attributes, when w32-get-true-file-attributes is
5089 `local'.
5090
e0ab5fcf
JD
50912009-07-10 Jan Djärv <jan.h.d@swipnet.se>
5092
5093 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 5094 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
5095 parameter font-parameter as default to the font dialog.
5096
784ceded
KH
50972009-07-10 Kenichi Handa <handa@m17n.org>
5098
5099 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
5100
fb8edc0b
EZ
51012009-07-09 Eli Zaretskii <eliz@gnu.org>
5102
1ac9108a 5103 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 5104
fb8edc0b
EZ
5105 * w32.c (stat): Treat UNC file names as residing on remote
5106 drives. (Bug#3542)
5107
635c75b1
KH
51082009-07-09 Kenichi Handa <handa@m17n.org>
5109
5110 * fontset.c (fontset_find_font): Fix previous change.
5111
c1d5ce94
MA
51122009-07-08 Michael Albinus <michael.albinus@gmx.de>
5113
5114 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
5115 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
5116 error flag.
5117
edb61b39
KH
51182009-07-08 Kenichi Handa <handa@m17n.org>
5119
374bf7e4
KH
5120 * fontset.c (fontset_find_font): Fix the logic of handling
5121 charset_matched.
5122 (font_for_char): Delete unused var.
5123 (generate_ascii_font_name): Delete it.
5124
edb61b39
KH
5125 * coding.h (JIS_TO_SJIS2): Fix the code range check.
5126
5127 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
5128 (encode_coding_sjis): Fix the code range check.
5129
0f3f018c
CY
51302009-07-07 Chong Yidong <cyd@stupidchicken.com>
5131
5132 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
5133 (Fexpand_file_name): Copy string data properly (Bug#3772).
5134
fcaf6f3a
JD
51352009-07-07 Jan Djärv <jan.h.d@swipnet.se>
5136
5137 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
5138 first MapNotify.
5139
6809ca75
KH
51402009-07-07 Kenichi Handa <handa@m17n.org>
5141
5142 * character.h (unibyte_has_multibyte_table): Delete extern.
5143 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
5144
5145 * charset.c (Fset_charset_priority): Update charset_unibyte.
5146 (syms_of_charset): Initialize charset_unibyte.
5147
5148 * character.c (unibyte_has_multibyte_table): Delete it.
5149 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
5150 charset_unibyte.
5151 (multibyte_char_to_unibyte_safe): Likewise.
5152 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
5153
1ac9108a 5154 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
5155 (x_produce_glyphs): Likewise.
5156
5157 * .gdbinit (xcharset): Fix the treating $arg0.
5158
ad9e2d54
EZ
51592009-07-04 Eli Zaretskii <eliz@gnu.org>
5160
5161 Emulation of `getloadavg' on MS-Windows.
50426a04 5162 * w32.c: Include float.h.
ad9e2d54
EZ
5163 (g_b_init_get_native_system_info, g_b_init_get_system_times)
5164 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
5165 (get_native_system_info, get_system_times): New functions.
5166 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
5167 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
5168 (globals_of_w32): Initialize g_b_init_get_native_system_info,
5169 g_b_init_get_system_times, and num_of_processors.
5170
0a3472c7
JR
51712009-07-03 Jason Rumney <jasonr@gnu.org>
5172
5173 * w32term.c (w32_initialize): Use standard types.
5174
80904120
EZ
51752009-07-03 Eli Zaretskii <eliz@gnu.org>
5176
5177 * dired.c (Ffile_attributes): Decode user and group names by the
5178 locale's encoding. (Bug#3443)
5179
6978862d
DN
51802009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
5181
f8d23104
DN
5182 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
5183 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
5184
5185 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
5186
5187 * term.c (init_tty): Remove spurious #ifdef.
5188
6978862d
DN
5189 * m/mips.h: Mention this file is also used for netbsd.
5190 * m/pmax.h: Remove file.
5191
e044e4fc
JD
51922009-07-03 Jan Djärv <jan.h.d@swipnet.se>
5193
5194 * xterm.h (struct x_display_info): Add invisible_cursor.
5195 (struct x_output): Add current_cursor.
5196
5197 * xterm.c (XTtoggle_invisible_pointer): New function.
5198 (x_define_frame_cursor): Don't define cursor if invisible or the
5199 same as before. Set current_cursor.
5200 (x_create_terminal): Set toggle_invisible_pointer_hook.
5201
5202 * xfns.c (make_invisible_cursor): New function.
5203 (x_set_mouse_color): Call make_invisible_cursor.
5204 Set current_cursor.
5205 (x_window): Set current_cursor.
5206
5207 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
5208
5209 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
5210 inserting a character.
5211 (read_avail_input): Call frame_make_pointer_visible.
5212
5213 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
5214 (frame_make_pointer_invisible, frame_make_pointer_visible):
5215 New functions.
e044e4fc
JD
5216 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
5217
5218 * frame.h: Declare frame_make_pointer_invisible and
5219 frame_make_pointer_visible.
5220 (struct frame): Add pointer_invisible.
5221
574c8efa
JD
52222009-07-02 Jan Djärv <jan.h.d@swipnet.se>
5223
7b507248
JD
5224 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
5225 frame isn't visible.
5226 (xg_frame_resized): If width/height is -1, get size of window
5227 from X server.
5228
5229 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
5230 for MapNotify.
5231
835bdaa7 5232 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 5233 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 5234 (flush_and_sync): Reintroduce.
574c8efa 5235
3f1c6666 52362009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 5237
31fd7c5c 5238 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
5239
5240 * xterm.c (x_handle_net_wm_state): Also look for sticky.
5241 (x_term_init): Initialize Xatom_net_wm_state_sticky.
5242
5243 * frame.h: Declare Qsticky.
5244
cad9ef74
JD
5245 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
5246
5247 * nsfns.m (ns_frame_parm_handlers): Ditto.
5248
5249 * frame.c: Declare Qsticky.
5250 (frame_parms): Add sticky.
5251
5252 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
5253
5254 * xterm.h: Declare x_set_sticky.
5255
5256 * xterm.c (x_set_sticky): New function.
5257
69b16610
JD
5258 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
5259 (xg_tool_bar_menu_proxy): Attach enter/leave events to
5260 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
5261
5262 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
5263
5264 * frame.c: Qmaximized is new.
5265 (x_set_frame_parameters): Do not handle fullscreen specially.
5266 Only set width and height if explicitly set.
5267 (x_set_fullscreen): Handle Qmaximized.
5268 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
5269 (syms_of_frame): Initialize Qmaximized.
5270
1ac9108a
SM
5271 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
5272 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
5273
5274 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
5275 for Expose event. Add call to x_check_fullscreen for MapNotify event.
5276 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
5277 set gravity to NorthWestGravity when USE_GTK.
5278 (set_wm_state): New function.
31fd7c5c 5279 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
5280 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
5281 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 5282 or the case when no window manager is running. That means remove calls
3f1c6666
JD
5283 to x_real_positions and x_fullscreen_adjust.
5284
5285 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
5286 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
5287 flush_and_sync.
5288 (xg_height_changed): New function.
5289 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
5290 and gtk_window_set_policy. Set frame gravity after parsing the
5291 geometry string.
3f1c6666
JD
5292 (xg_update_frame_menubar, free_frame_menubar)
5293 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
5294 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
5295 Remove calls to xg_frame_set_char_size.
5296
fd503d99
KH
52972009-07-01 Kenichi Handa <handa@m17n.org>
5298
5299 * keyboard.c (decode_keyboard_code): New function.
5300 (tty_read_avail_input): Decode the input bytes if necessary.
5301
1ac9108a
SM
5302 * coding.c (setup_coding_system):
5303 Initialize coding->carryover_bytes to 0.
fd503d99
KH
5304 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
5305 use Qno_conversion.
5306
24ed93fb
YM
53072009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5308
5309 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
5310
99061dfc
CY
53112009-06-30 Chong Yidong <cyd@stupidchicken.com>
5312
1ac9108a 5313 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 5314
ff90fbde
JR
53152009-06-30 Jason Rumney <jasonr@gnu.org>
5316
5317 * w32term.c (w32_initialize): Use GetModuleHandle for library that
5318 is already loaded.
5319 Set user model ID if supported (bug#1849).
5320
5f445726
JM
53212009-06-29 Jim Meyering <meyering@redhat.com>
5322
5323 Remove useless if-before-xfree test.
5324 * nsfont.m (nsfont_close): Remove useless test.
5325 * term.c (delete_tty): Likewise.
5326 * w32.c (system_process_attributes): Likewise.
5327 * w32font.c (w32font_close): Likewise.
5328 * xfaces.c (x_free_gc): Likewise.
5329 * xselect.c (buffer): Likewise.
5330
b9607587
AS
53312009-06-28 Andreas Schwab <schwab@linux-m68k.org>
5332
5333 * process.c (send_process): Keep decoded string in a local
5334 variable and protect it from GC. (Bug#3521)
5335
89ba96f4
EZ
53362009-06-28 Eli Zaretskii <eliz@gnu.org>
5337
5338 * term.c (create_tty_output) [MSDOS]: #ifdef away.
5339 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
5340
098a1589
CY
53412009-06-28 Chong Yidong <cyd@stupidchicken.com>
5342
485422be
CY
5343 * xdisp.c (start_display, handle_face_prop)
5344 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
5345 (redisplay_window, try_window_id, produce_image_glyph):
5346 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 5347
098a1589
CY
5348 * xterm.c (x_update_window_begin, x_new_focus_frame)
5349 (x_scroll_bar_handle_click, handle_one_xevent)
5350 (handle_one_xevent, XTread_socket, x_focus_on_frame)
5351 (x_make_frame_visible, x_make_frame_invisible)
5352 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
5353 code chunks that are now obsolete.
5354
78c38319
MA
53552009-06-28 Michael Albinus <michael.albinus@gmx.de>
5356
5357 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
5358 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
5359 for hours, when optimzation is enabled.
5360 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
5361 (xd_read_message): Make them static.
5362
4189ed40
CY
53632009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
5364
5365 * term.c (turn_on_face): Allow simultaneously bold and dim
5366 terminal faces (Bug#3530).
5367
cd9b5e16
CY
53682009-06-27 Chong Yidong <cyd@stupidchicken.com>
5369
4e23bedb
CY
5370 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
5371
cd9b5e16
CY
5372 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
5373 truncation glyphs (Bug#3686).
5374
07cc3c35
GM
53752009-06-27 Glenn Morris <rgm@gnu.org>
5376
5377 * m/pmax.h: Restore file, with only netbsd portions.
5378
31fd7c5c 53792009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 5380
cd9b5e16 5381 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 5382
42d4a64f
KH
53832009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
5384
5385 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
5386 the arg FORCE_SYMBOL.
5387
930fe55b 53882009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
5389
5390 * fontset.c (fontset_find_font): When a usable rfont_def is found
5391 in a fallback font-group, make it the first element of the group.
5392
57ebc3fd
CY
53932009-06-24 Chong Yidong <cyd@stupidchicken.com>
5394
5395 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
5396
f084f942
KH
53972009-06-24 Kenichi Handa <handa@m17n.org>
5398
5399 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
5400 set for C.
5401 (fontset_font): Record the availability of a font for C both in
5402 the realized fontsets of the current one and the default one.
5403
2f686c87
DN
54042009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
5405
5406 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
5407 conditional, it is always defined on AIX.
5408
666e158e
MB
54092009-06-23 Miles Bader <miles@gnu.org>
5410
5411 * window.c (Vrecenter_redisplay): New variable.
5412 (syms_of_window): Initialize it.
5413 (Qtty): New extern declaration.
5414 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
5415
c6da7cd2
JM
54162009-06-23 Jim Meyering <meyering@redhat.com>
5417
1ac9108a
SM
5418 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
5419 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 5420 pointer dereferences are guaranteed to be valid.
c6da7cd2 5421
678dca3d
KH
54222009-06-23 Kenichi Handa <handa@m17n.org>
5423
74d75424
KH
5424 * emacs.c (main): Call init_font ().
5425
5426 * font.h (Vfont_log): Extern it.
5427 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
5428
5429 * font.c (font_sort_entities, font_list_entities)
5430 (font_matching_entity, font_open_entity)
5431 (font_close_object): Change font_add_log to FONT_ADD_LOG.
5432 (Vfont_log): Delete static.
5433 (font_log_env_checked): Delete this variable.
5434 (font_add_log): Don't check font_log_env_checked.
5435 (font_deferred_log): Check Vfont_log.
5436 (init_font): New function.
5437
678dca3d
KH
5438 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
5439
5440 * w32font.c: Change font_add_log to FONT_ADD_LOG.
5441
5442 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
5443
5444 * xfont.c: Change font_add_log to FONT_ADD_LOG.
5445
5446 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
5447 (face_for_char): Don't call font_deferred_log here.
5448 (font_for_char): Likewise.
5449
8a668709
CY
54502009-06-22 Chong Yidong <cyd@stupidchicken.com>
5451
9a01ee33
CY
5452 * w32term.c (x_draw_glyph_string): Use the glyph string's width
5453 rather than its background_width for drawing the overline and
5454 underline (Bug#489).
5455
5456 * xterm.c (x_draw_glyph_string): Use the glyph string's width
5457 rather than its background_width for drawing the overline and
5458 underline (Bug#489).
ec7c9926
CY
5459 (xg_default_icon_file): New variable.
5460 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
5461 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 5462
8a668709
CY
5463 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
5464 (load_overlay_strings): Remove externs.
5465 (fast_find_position): Function deleted.
5466 (mouse_face_from_buffer_pos): New function, based on
5467 fast_find_position. Correctly handle before-strings,
5468 display-strings, and after-strings (Bug#1220).
5469 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
5470
4d4c02d8
CY
54712009-06-21 Chong Yidong <cyd@stupidchicken.com>
5472
1ac9108a 5473 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
5474 (move_it_in_display_line_to, move_it_in_display_line_to)
5475 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
5476
70243478
CY
54772009-06-21 Chong Yidong <cyd@stupidchicken.com>
5478
5479 * Branch for 23.1.
5480
13087e59
JR
54812009-06-21 Jason Rumney <jasonr@gnu.org>
5482
5483 * w32term.c (keyboard_codepage): New static variable.
5484 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
5485 (w32_read_socket) [WM_CHAR]: Use it to decode character
5486 input (bug#3237).
5487 (w32_initialize): Initialize it.
5488 (codepage_for_locale): New function.
5489
4735b74e
KR
54902009-06-20 Ken Raeburn <raeburn@raeburn.org>
5491
5492 * process.c (status_message): Pass Faset index argument as a lisp
5493 object, so as to work with USE_LISP_UNION_TYPE.
5494
0e727afa
YM
54952009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5496
5497 * coding.c (Ffind_coding_systems_region_internal):
5498 Cache checked characters.
5499
cf299835
KH
55002009-06-18 Kenichi Handa <handa@m17n.org>
5501
1ac9108a 5502 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 5503
90f20d94
AS
55042009-06-18 Andreas Schwab <aschwab@redhat.com>
5505
5506 * xdisp.c (redisplay_internal): Check that the frame is still
5507 live after redisplay of its windows.
5508 (redisplay_windows): Check that the window is still live.
5509
7f1faf1c
KH
55102009-06-17 Andreas Schwab <schwab@linux-m68k.org>
5511
5512 * coding.c (detect_coding_utf_16): Fix previous change.
5513
cc13543e
KH
55142009-06-16 Kenichi Handa <handa@m17n.org>
5515
5516 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
5517 UTF-16 by checking the dispersion of Eth and Oth bytes.
5518
977b85f4
AS
55192009-06-15 Andreas Schwab <schwab@linux-m68k.org>
5520
5521 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
5522
66bd43d1
KH
55232009-06-15 Kenichi Handa <handa@m17n.org>
5524
5525 * process.c (status_message): Fix previous change. Be sure to
5526 decode a localized string.
5527
cb5ca9c5
YM
55282009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5529
5530 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
5531 add comment explaining why.
5532
ec7709ba 55332009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 5534
ec7709ba 5535 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 5536
4b7f335c
AR
55372009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
5538
5539 * nsfont.m (ns_attribute_value): Remove.
5540 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
5541 (ns_has_attribute): Shrink the normal range.
5542 (ns_findfonts): Don't worry about requested spec in determining
5543 need for synthItal.
e41820ee 5544 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 5545
73b26103
SZ
55462009-06-14 Seiji Zenitani <zenitani@mac.com>
5547
5548 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
5549
5753e4da
KH
55502009-06-11 Kenichi Handa <handa@m17n.org>
5551
5552 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5553 overhang for the static composition case.
5554
3561b671
KH
55552009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5556
5753e4da
KH
5557 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
5558 overhang for the automatic composition case.
5559
3561b671
KH
5560 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
5561 composition case.
5562
852bbd41
CY
55632009-06-10 Chong Yidong <cyd@stupidchicken.com>
5564
5565 * xdisp.c (get_next_display_element): When handling wrap-prefix
5566 and line-prefix, treat \n as a control character (bug#3502).
5567
9903d1e6
KH
55682009-06-10 Kenichi Handa <handa@m17n.org>
5569
5570 * font.c (font_parse_family_registry): Fix for one-char foundry.
5571 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
5572
0bcbaaaa
CY
55732009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
5574
5575 * process.c (status_message): Fix handling of multibyte signal
5576 string (Bug#3499).
5577
40aa3f13
JM
55782009-06-09 Jim Meyering <meyering@redhat.com>
5579
1f80c7e2
CY
5580 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
5581 color name is missing.
40aa3f13 5582
72d51285
KH
55832009-06-09 Kenichi Handa <handa@m17n.org>
5584
5585 * charset.c (Fmap_charset_chars): In docstring, state clearly that
5586 FROM-CODE and TO-CODE are codepoints of CHARSET.
5587
c1d04d84
AR
55882009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5589
5590 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
5591
55922009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
5593
5594 Changes to support :script/:lang/:otf in NS font driver.
5595 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
5596 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
5597 indicate not part of font driver interface, and change callers.
5598 (ns_get_family): Remove pointless null check.
5599 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
5600 ns_spec_to_descriptor, ns_descriptor_to_entity.
5601 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
5602 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
5603 (ns_spec_to_descriptor, ns_descriptor_to_entity)
5604 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
5605 (ns_get_req_script, ns_accumulate_script_ranges)
5606 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
5607 New functions.
5608 (nsfont_list, nsfont_match): Use ns_findfonts.
5609 (nsfont_open): Use font descriptor instead of traits.
5610 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
5611 (dump_glyphstring): Rename to ns_dump_glyphstring.
5612
c7eb9816
AR
5613 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
5614
c1d04d84
AR
5615 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
5616
5617 * fontset.c (fontset_from_font): Remove NS-specific code.
5618
ec7709ba 56192009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
5620
5621 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
5622 nonactive windows.
5623
31fd7c5c 56242009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 5625
1ac9108a 5626 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 5627
68852c13 56282009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
5629
5630 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
5631
6756cd1d
CY
56322009-06-07 Chong Yidong <cyd@stupidchicken.com>
5633
5634 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
5635 account for the overflowing of newlines into the last glyph on the
5636 display line (Bug#3482).
5637
28bf482a
DR
56382009-06-05 David Reitter <david.reitter@gmail.com>
5639
ec7709ba
JB
5640 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
5641 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
5642 Fns_selection_exists_p, Fns_selection_owner_p.
5643
fdb55376
JR
56442009-06-03 Jason Rumney <jasonr@gnu.org>
5645
5646 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
5647 available. (Bug#3379)
5648
05129fbe
KH
56492009-05-29 Kenichi Handa <handa@m17n.org>
5650
1ac9108a
SM
5651 * coding.c (get_translation_table):
5652 Check Venable_character_translation.
05129fbe 5653
ec7709ba 56542009-05-26 David Reitter <david.reitter@gmail.com>
15891144 5655
ec7709ba
JB
5656 * nsterm.m (ns_raise_frame): Only raise frame if visible.
5657 (x_make_frame_visible): Move frame to front rather than calling
15891144 5658 ns_raise_frame().
ec7709ba 5659 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 5660 isn't key window.
ec7709ba 5661 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
5662 drawRect may be called by NSView even if the frame is hidden.
5663
ec7709ba
JB
5664 * nsfns.m (Fx_create_frame): Follow other ports in
5665 determining visibility; default to t. Ensure async_visible is set.
15891144 5666
21f73755
EZ
56672009-05-23 Eli Zaretskii <eliz@gnu.org>
5668
5669 * dired.c (Ffile_attributes): Doc fix.
5670
34001e41
CY
56712009-05-22 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
5674
46306a17
SM
56752009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
5676
5677 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
5678 and xfont_scratch_props.
5679 (syms_of_xfont): Do it here instead.
5680 (xfont_find_ccl_program): Delete, unused.
5681 (xfont_open): Delete unused var `i'.
5682
ef6e0694
KH
56832009-05-21 Kenichi Handa <handa@m17n.org>
5684
5685 * fontset.c (Qlatin): Don't make it static.
5686
46306a17
SM
5687 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
5688 New functions.
ef6e0694
KH
5689 (xfont_scripts_cache, xfont_scratch_props): New variables.
5690 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
5691 (xfont_list_pattern): Argument changed. Callers changed.
5692 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
5693 (xfont_list): Don't reject a font spec with :script property.
5694 (xfont_has_char): Fix setting of encoding.
5695 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
5696 xfont_scratch_props.
5697
56982009-05-19 Kenichi Handa <handa@m17n.org>
5699
46306a17 5700 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
5701 Callers changed.
5702
57032009-05-18 Kenichi Handa <handa@m17n.org>
5704
5705 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
5706
ac71ced7
SM
57072009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
5708
5709 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
5710 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
5711
1c6d1051
YM
57122009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5713
5714 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
5715 (x_delete_terminal): Dissociate resource database from display and
5716 then call XrmDestroyDatabase before closing display.
5717
9b9b779c
AR
57182009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
5719
5720 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
5721 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
5722 whether selected frame is viable before raising it (based on patch
5723 by David Reitter), and improve commentary.
5724 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 5725
cccd42d5
KH
57262009-05-15 Kenichi Handa <handa@m17n.org>
5727
5728 * font.c (Ffont_spec): Check arguments.
5729
337fbd17
CY
57302009-05-14 Chong Yidong <cyd@stupidchicken.com>
5731
5732 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
5733 weight when testing attributes (Bug#3282).
5734
47a6002f
JD
57352009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5736
5737 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
5738 what we expect to get in the next ConfigureNotify event.
5739
9cb363db
YM
5740 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
5741 before Xft one (Bug#1696).
5742
b9126609
CY
57432009-05-07 David Reitter <david.reitter@gmail.com>
5744
5745 * nsfns.m (Fx_display_planes): Compute bitplanes using
5746 NSBitsPerPixelFromDepth (Bug#3207).
5747
27a69fd9
CY
57482009-05-10 Chong Yidong <cyd@stupidchicken.com>
5749
5750 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
5751
00f37552
TTN
57522009-05-10 Ulrich Mueller <ulm@gentoo.org>
5753
5754 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
5755
2d82a920
DR
57562009-05-07 David Reitter <david.reitter@gmail.com>
5757
ec7709ba
JB
5758 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
5759 Respect mouse face background.
2d82a920 5760
46b0d52d
DR
57612009-05-07 David Reitter <david.reitter@gmail.com>
5762
ec7709ba
JB
5763 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
5764 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
5765 in ns_update_begin and ns_update_end.
5766
ce1b23bb
SM
57672009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5768
5996e1b7
SM
5769 * nsfns.m (ns_get_screen): Rewrite.
5770 Don't presume selected-frame is of type `ns'.
5771
ba98e3a0
SM
5772 * font.c (font_update_drivers): Sanity fallback to avoid disabling
5773 all drivers.
5774
ce1b23bb
SM
5775 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
5776
bcda200f
YM
57772009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5778
5779 * keyboard.h (add_user_signal): Fix typo in extern.
5780
5781 * lisp.h (add_user_signal): Remove extern.
5782
5783 * unexelf.c (unexec): Consider a section to precede the .bss section
5784 if its addresses overlap that of .bss.
5785 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
5786 instead of dumping process.
5787
864660a2
SM
57882009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
5789
5790 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
5791
50da4e56
SM
57922009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5793
5794 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
5795
51520a1a
DN
57962009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5797
5798 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
5799 any statements.
5800
409ea3a1
AS
58012009-05-02 Andreas Schwab <schwab@linux-m68k.org>
5802
59c4c60f
AS
5803 * process.c (read_process_output): Make sure the current buffer is
5804 always restored.
5805
409ea3a1
AS
5806 * coding.c (record_conversion_result): Don't modify
5807 Vlast_code_conversion_error for successful result.
5808 (alloc_destination): Don't clobber conversion result. (Bug#1650)
5809
56f00ed2
KH
58102009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5811
5812 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 5813 (load_charset_map): Remove unnecessary code.
56f00ed2 5814
4491c9d2
DR
58152009-04-30 David Reitter <david.reitter@gmail.com>
5816
35f5b128 5817 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
5818 through f24.
5819
6970f632
CY
58202009-04-30 Chong Yidong <cyd@stupidchicken.com>
5821
5822 * xfaces.c (face_at_buffer_position): New arg base_face_id.
5823
5824 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
5825 face_at_buffer_position.
5826 (face_before_or_after_it_pos, get_next_display_element)
5827 (note_mouse_highlight): Update face_at_buffer_position call.
5828
5829 * term.c (term_mouse_highlight):
5830 * msdos.c (IT_note_mouse_highlight):
5831 * fontset.c (Finternal_char_font):
35f5b128 5832 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
5833
5834 * dispextern.h (face_at_buffer_position): Update prototype.
5835
0c616f63
KH
58362009-04-30 Kenichi Handa <handa@m17n.org>
5837
35f5b128 5838 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 5839
ad3aaf33
AS
58402009-04-29 Andreas Schwab <schwab@linux-m68k.org>
5841
5842 * callproc.c (Fcall_process): Fix GC protection. Make sure
5843 current buffer is always restored.
5844
c3c963a0
YM
58452009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5846
5847 * atimer.c (init_atimer): Also clear stopped_atimers.
5848
5849 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
5850
7e3386cb
YM
5851 * process.c (create_process): Clean up merger residues of
5852 2008-07-17 change.
5853
91f68422
CY
58542009-04-29 Ulrich Mueller <ulm@gentoo.org>
5855
5856 * lread.c (Vread_circle): New variable.
5857 (read1): Disable recursive read if Vread_circle is nil.
5858
24b34550
KH
58592009-04-29 Kenichi Handa <handa@m17n.org>
5860
5861 * fontset.h (set_default_ascii_font): Delete extern.
5862
5863 * fontset.c (set_default_ascii_font): Delete this unused function.
5864
5865 * frame.c (x_set_font): When ARG is a font-object, check if the
5866 font-object matches with the ASCII font-spec of the frame's
9c358bda 5867 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 5868
77bf07e1
AS
58692009-04-28 Andreas Schwab <schwab@linux-m68k.org>
5870
5871 * fns.c (Flocale_info): Protect vector from GC during decoding.
5872
5873 * process.c (Fstart_process): Protect argv strings from GC during
5874 encoding.
5875
2c55aacf
AS
58762009-04-27 Andreas Schwab <schwab@linux-m68k.org>
5877
5878 * sysdep.c: Include <ctype.h>.
5879
b892d3c9
DR
58802009-04-27 David Reitter <david.reitter@gmail.com>
5881
35f5b128 5882 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
5883 Remove commented-out code.
5884
9d0644c4
JB
58852009-04-26 Johan Bockgård <bojohan@gnu.org>
5886
5887 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5888
b7053016
JR
58892009-04-25 Jason Rumney <jasonr@gnu.org>
5890
5891 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
5892
4e8231f3
YM
58932009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5894
5895 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
5896 Swap bytes in short integer if fringe bitmap width > 8.
5897
493dcf2c
KH
58982009-04-23 Kenichi Handa <handa@m17n.org>
5899
5900 * xfaces.c (Fx_list_fonts): If a font size is specified in
5901 PATTERN, set it in returned scalable fonts.
5902
401e9e57
CY
59032009-04-22 Chong Yidong <cyd@stupidchicken.com>
5904
708e05dc
CY
5905 * keyboard.c (Fset_input_meta_mode): Doc fix.
5906
5907 * dispnew.c (Fsend_string_to_terminal): Doc fix.
5908
1ac9108a 5909 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
5910
5911 * coding.c (Fterminal_coding_system): Doc fix.
5912
5913 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
5914 (Fx_display_pixel_height, Fx_display_planes)
5915 (Fx_display_color_cells, Fx_server_max_request_size)
5916 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5917 (Fx_display_mm_height, Fx_display_mm_width)
5918 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
5919 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
5920 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
5921 (check_x_display_info): Handle terminal objects instead of
5922 terminal ids.
5923
401e9e57
CY
5924 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
5925 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
5926 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
5927 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 5928
df80c7f0
KH
59292009-04-21 Kenichi Handa <handa@m17n.org>
5930
5a8f12af 5931 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 5932 (font_score): Check AVGWIDTH too.
908567ef 5933
df80c7f0
KH
5934 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
5935 worst case.
1ac9108a
SM
5936 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
5937 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 5938
705af33f
JR
59392009-04-19 Jason Rumney <jasonr@gnu.org>
5940
5941 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 5942 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
5943
5944 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
5945 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
5946 get_phys_cursor_geometry.
5947
b71ac3dd 5948 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
5949 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
5950 using get_phys_cursor_geometry.
5951
5952 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
5953 correctly calculated.
5954
dc2933eb
JD
59552009-04-19 Jan Djärv <jan.h.d@swipnet.se>
5956
1ac9108a
SM
5957 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
5958 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
5959 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
5960 is deprecated.
5961
973e7849
AS
59622009-04-18 Andreas Schwab <schwab@linux-m68k.org>
5963
5964 * font.c (font_put_frame_data): Use xfree instead of free.
5965
314d66f4
JB
59662009-04-17 Juanma Barranquero <lekktu@gmail.com>
5967
5968 * w32font.c (Qja, Qko): Remove declarations.
5969 (syms_of_w32font): Don't DEFSYM them.
5970
cf702558
CY
59712009-04-17 Chong Yidong <cyd@stupidchicken.com>
5972
5973 * font.c (Qja, Qko): Move definitions here from ftfont.c.
5974
5975 * font.h (Qja, Qko): Extern them.
5976
5977 * ftfont.c (Qja, Qko): Remove declarations.
5978
5979 * xfont.c (Qja, Qko): Remove declarations.
5980
b50504f5
KH
59812009-04-17 Kenichi Handa <handa@m17n.org>
5982
bde25748
KH
5983 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
5984 string from a vector to handle Latin-1 characters correctly.
5985
b50504f5
KH
5986 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
5987 entity even if the cache hits.
5988
f4646fff
AS
59892009-04-16 Andreas Schwab <schwab@linux-m68k.org>
5990
5991 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 5992 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 5993
e7deaab0
AS
5994 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
5995 * lisp.h: Adjust prototypes.
5996
0a0e7d49
CY
59972009-04-16 Chong Yidong <cyd@stupidchicken.com>
5998
5999 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
6000 change (Bug#3003).
6001
3c908a57
KH
60022009-04-16 Kenichi Handa <handa@m17n.org>
6003
1ac9108a 6004 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
6005
6006 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
6007 adstyle.
6008
6009 * ftfont.c (Qja, Qko): Don't make them static.
6010 (enum ftfont_cache_for): New enum.
6011 (fc_charset_table): Undo the previous change.
6012 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
6013 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
6014 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
6015 non-scarable font, try to get AVERAGE_WIDTH.
6016 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
6017 Change ft_face_cache from a list of a hash-table. Don't check
6018 `ja' and `ko' adstyle here.
6019 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
6020 FTFONT_CACHE_FOR_CHARET.
6021 (ftfont_get_charset): Undo the previous change.
1ac9108a 6022 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
6023 (ftfont_close): Likewise.
6024 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
6025
6026 * font.c (font_sort_entites): Change the meaning of the arg
6027 BEST-ONLY. Don't optimize for VEC of lenght 1.
6028 (font_select_entity): Just return the value of font_sort_entites.
6029
6030 * xfaces.c (merge_face_vectors): Reflect font properties in
6031 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
6032 font_clear_prop if a face attribute doesn't change.
6033
3c908a57
KH
6034 * charset.h (charset_ksc5601): Extern it.
6035
6036 * charset.c (charset_ksc5601): New variable.
6037 (Fdefine_charset_internal): Set charset_ksc5601.
6038 (init_charset_once): Initialize charset_ksc5601 to -1.
6039
d65859c3
DN
60402009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6041
6042 * fileio.c (history_delete_duplicates): Remove unused declaration.
6043
6044 * callint.c (history_delete_duplicates): New declaration.
6045 (Fcall_interactively): Remove command history duplicates when
6046 history_delete_duplicates is true.
6047
3ba010e5
EZ
60482009-04-14 Eli Zaretskii <eliz@gnu.org>
6049
6050 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
6051
06f19b91
KH
60522009-04-14 Kenichi Handa <handa@m17n.org>
6053
6054 * font.c (Ffont_info): Fix docstring. Fix the second element of
6055 the returned value (bug#2949).
6056
2cce8bfc
CY
60572009-04-14 Chong Yidong <cyd@stupidchicken.com>
6058
6059 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
6060
d156542d
KH
60612009-04-14 Kenichi Handa <handa@m17n.org>
6062
6063 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
6064 encoding charset is ascii_compatible.
6065
6066 * charset.c (Fdefine_charset_internal): Make charset
6067 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
6068 code_offset is 0, and covers all ASCII characters.
6069
86fa089e
SM
60702009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6071
6072 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
6073 (ns_string_to_pasteboard_internal):
6074 * nsmenu.m (process_dialog):
6075 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
6076 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
6077 * lisp.h (Fx_load_color_file): Declare.
6078
a8a3728b
KH
60792009-04-13 Kenichi Handa <handa@m17n.org>
6080
1ac9108a 6081 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
6082 (font_select_entity): Suppress the code to optimize for the same
6083 kind of fonts.
6084 (font_load_for_lface): Get a font that supports at least ASCII
6085 characters.
6086
6087 * ftfont.c (Qja, Qko): New variables.
6088 (fc_charset_table): Delete uniquifier data for iso8859-1.
6089 (ftfont_get_latin1_charset): New function.
6090 (get_adstyle_property): New function.
6091 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
6092 bitmap fonts.
6093 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
6094 Delete iso-8859-1 range from the charset of fonts whose adstyle is
6095 `ko' or `ja'.
6096 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 6097 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
6098 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
6099 property.
6100 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
6101 (syms_of_ftfont): DEFSYM Qja and Qko.
6102
483670b5
KH
61032009-04-09 Kenichi Handa <handa@m17n.org>
6104
12b55765
KH
6105 * charset.c (map_charset_chars): For a charset of `superset'
6106 method, fix calculation of code range.
6107
483670b5
KH
6108 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
6109 from the list of extra properties.
6110 (font_clear_prop): Be sure to delete `:name' font property.
6111
57d3b93b
KH
61122009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6113
b4b2c2ca
YM
6114 * dispnew.c (redraw_overlapping_rows): Fix detection of
6115 overlapping for topmost and bottommost rows.
6116
1ac9108a 6117 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 6118
472c3609
JR
61192009-04-06 Jason Rumney <jasonr@gnu.org>
6120
6121 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
6122
ab193662
KH
61232009-04-06 Kenichi Handa <handa@m17n.org>
6124
6125 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
6126
6127 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
6128
0c26f026
KH
61292009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6130
6131 * ftfont.c (ftfont_open): Fix checking of the return value of
6132 FT_Load_Char. Fix setting font->underline_thickness.
6133
e173bbce
CY
61342009-04-04 Chong Yidong <cyd@stupidchicken.com>
6135
6136 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
6137 (Fterminal_parameters, Fterminal_parameter)
6138 (Fset_terminal_parameter): In doc string, refer to terminal
6139 objects rather than terminal ids.
6140
693a2698
EZ
61412009-04-04 Eli Zaretskii <eliz@gnu.org>
6142
6143 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
6144 ret_lim_data. (Bug#2867)
6145
d5221487
CY
61462009-04-03 Chong Yidong <cyd@stupidchicken.com>
6147
6148 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
6149 so they don't get wider than the window, matching 2006-01-23
6150 change to the partner function in xdisp.c (Bug#2800).
6151
223509a3
KH
61522009-04-03 Kenichi Handa <handa@m17n.org>
6153
6154 * print.c (print_object): Make each lowest sub_char_table start a
6155 new line (Bug#2866).
6156
74fcd0b1
KH
61572009-04-02 Kenichi Handa <handa@m17n.org>
6158
6159 * fontset.c (fontset_font): Record no-font when a fontset
6160 explicitly tells not to try another font-specs.
6161
c542407d
SM
61622009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
6163
6164 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
6165
e3869731
KH
61662009-03-30 Kenichi Handa <handa@m17n.org>
6167
d8d2f142
KH
6168 * fontset.c (fontset_from_font): Specify only registry in a
6169 font-spec for all characters supported by that registry.
6170
e3869731
KH
6171 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
6172 even if HAVE_M17N_FLT is not defined.
6173
5da5f805
CY
61742009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
6175
6176 * ftfont.c: Conditionalize prototyping and use of
6177 ftfont_variation_glyphs.
6178
ab226c50
SM
61792009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
6180
9628fed7
SM
6181 * frame.c (delete_frame): Work around compiler bug.
6182
6183 * editfns.c (general_insert_function): Adjust to insdel.c changes.
6184 * insdel.c (prepare_to_modify_buffer, signal_before_change):
6185 Some more EMACS_INT.
6186 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
6187
6188 * xdisp.c (dump_glyph): Fix typo.
6189
ae19ba7c
SM
6190 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
6191 (adjust_markers_gap_motion, adjust_markers_for_delete)
6192 (adjust_markers_for_insert, adjust_point)
6193 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
6194 (make_gap, copy_text, count_size_as_multibyte, insert)
6195 (insert_and_inherit, insert_before_markers)
6196 (insert_before_markers_and_inherit, insert_1)
6197 (count_combining_before, count_combining_after, insert_1_both)
6198 (insert_from_string, insert_from_string_before_markers)
6199 (insert_from_string_1, insert_from_gap, insert_from_buffer)
6200 (insert_from_buffer_1, adjust_after_replace)
6201 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
6202 (replace_range_2, del_range, del_range_1, del_range_byte)
6203 (del_range_both, del_range_2, modify_region)
6204 (prepare_to_modify_buffer, signal_before_change)
6205 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
6206 for buffer positions and sizes.
6207 * lisp.h: Adjust prototypes accordingly.
6208
6209 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
6210 (non_regular_inserted, non_regular_nbytes, read_non_regular)
6211 (Finsert_file_contents): Use EMACS_INT for buffer positions.
6212
ab226c50
SM
6213 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
6214
46dfb8fb
JD
62152009-03-27 Jan Djärv <jan.h.d@swipnet.se>
6216
6217 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
6218 lines and columns so we keep the same pixel height and width.
6219
6220 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
6221 the property _NET_WM_STATE has changed.
46dfb8fb
JD
6222 (x_handle_net_wm_state): New function to update frame parameter
6223 fullscreen.
6224 (x_term_init): Initialize atoms for _NET_WM_STATE.
6225
6226 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
6227
d347e494
SM
62282009-03-27 Kevin Ryde <user42@zip.com.au>
6229
6230 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
6231 Gpm_GetEvent as an error that justifies closing the filedescriptor.
6232 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
6233 (Fgpm_mouse_stop): Pass that new parameter.
6234 * termhooks.h (close_gpm): Adjust prototype.
6235
84db11d6
SM
62362009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
6237
c95a5008
SM
6238 * lisp.h (Fx_focus_frame): Declare.
6239
84db11d6
SM
6240 * callint.c (Fcall_interactively): For '^' just delegate the work to
6241 handle-shift-selection.
6242 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
6243
0a1958d6
CY
62442009-03-24 Chong Yidong <cyd@stupidchicken.com>
6245
0bfdff23
CY
6246 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
6247
0a1958d6
CY
6248 * data.c (Qinteractive_form): New variable.
6249 (Finteractive_form): Use it.
6250
6251 * eval.c (Fcommandp): Use Qinteractive_form.
6252
58aec0d6
JR
62532009-03-24 Jason Rumney <jasonr@gnu.org>
6254
6255 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
6256 Calculate total size precisely. Decode environment variables
6257 before substituting. (Bug#38)
6258
553dd618
KH
62592009-03-24 Kenichi Handa <handa@m17n.org>
6260
6261 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 6262 encoding (Bug#2722).
553dd618 6263
c39ea606
JD
62642009-03-23 Jan Djärv <jan.h.d@swipnet.se>
6265
6266 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
6267 that gdpy is set.
6268
bc9b2b5e
AM
62692009-03-22 Alan Mackenzie <acm@muc.de>
6270
6271 * callint.c (Finteractive): Clarify the doc string - even
6272 promptless elements need \n separators.
6273
9f995a76
JR
62742009-03-22 Jason Rumney <jasonr@gnu.org>
6275
6276 * w32term.c (syms_of_w32term): Doc fix for
6277 x-use-underline-position-properties.
6278
22749e9a
EZ
62792009-03-21 Eli Zaretskii <eliz@gnu.org>
6280
6281 * w32.c (getpwuid): Change argument type to unsigned.
6282 (struct w32_id): Change type of `rid' member to unsigned.
6283 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
6284 argument ID to unsigned. All callers changed.
6285 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
6286
e00553bf
EZ
62872009-03-20 Eli Zaretskii <eliz@gnu.org>
6288
6289 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
6290 negative, produce a float value.
6291
6292 * dired.c (make_uid, make_gid): New functions.
6293 (Ffile_attributes): Use them to avoid negative UID and GID.
6294
f761d6b6
JB
62952009-03-20 Juanma Barranquero <lekktu@gmail.com>
6296
6297 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
6298 (syms_of_keyboard) <command-hook-internal, input-method-function>:
6299 Fix typos in docstrings.
6300
d507f8d7
KH
63012009-03-19 Kenichi Handa <handa@m17n.org>
6302
6303 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
6304 changed, use font_load_for_lface to get a new font object.
6305 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
6306
6307 * frame.c (x_set_font): Handle the case that ARG is a cons.
6308
c68845e0
GM
63092009-03-19 Glenn Morris <rgm@gnu.org>
6310
6311 * fileio.c (Fsubstitute_in_file_name): Doc fix.
6312
bfa49dd1
CY
63132009-03-19 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
6316
8458d4c1
KH
63172009-03-19 Kenichi Handa <handa@m17n.org>
6318
6319 * charset.c (load_charset_map_from_file): When a mapfile can't be
6320 loaded, signal an error.
6321
78e7d1fe
EZ
63222009-03-18 Eli Zaretskii <eliz@gnu.org>
6323
6324 * dired.c (Ffile_attributes): Make sure UID and GID are always
6325 positive, even if the value is too large for a positive EMACS_INT.
6326 Doc fix.
6327
6328 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
6329
5da9fdfa
YM
63302009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6331
6332 * xmenu.c (xdialog_show): Move Fredisplay call ...
6333 (Fx_popup_dialog): ... here.
6334
7519c40d
SM
63352009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
6336
6337 * dired.c (file_name_completion): Disable the first optimization just
6338 installed, since it is not implemented correctly.
6339
2cd298e2
SM
63402009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
6341
6342 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 6343 only if the entry can affect bestmatch.
2cd298e2
SM
6344 Stop the search early, as Ftry_completion already does.
6345
48d37adf
CY
63462009-03-17 Chong Yidong <cyd@stupidchicken.com>
6347
e10c9c93 6348 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 6349
9286b16a
CY
63502009-03-15 Chong Yidong <cyd@stupidchicken.com>
6351
6352 * keyboard.c (parse_menu_item): Don't display remappings as menu
6353 equivalent bindings (Bug#788).
6354
f7b146dc
JR
63552009-03-15 Jason Rumney <jasonr@gnu.org>
6356
6357 * w32term.h (WM_EMACS_PAINT): New message.
6358 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
6359 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
6360 before passing to lisp thread. (Bug#950)
6361
f761d6b6 63622009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 6363
d93f9575
CY
6364 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
6365 variable as it was never reset.
6366 (ns_term_init): Remove initialization of Lisp-settable defaults
6367 and ns_expand_space.
6368 (-setPanelFromDefaultValues): Remove ns_expand_space.
6369 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
6370 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
6371 i.e. no additional spacing, similar to Carbon port.
6372
d93f9575
CY
6373 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
6374 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 6375
305018ec
JD
63762009-03-14 Jan Djärv <jan.h.d@swipnet.se>
6377
6378 * sound.c (alsa_configure): Remove call to deprecated
6379 snd_pcm_sw_params_set_xfer_align.
6380
f761d6b6 63812009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
6382
6383 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
6384 after clicking in a detached tool bar.
6385 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
6386
46e722a9
SM
63872009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
6388
348db3dd
SM
6389 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
6390 int/Lisp_Object mixup).
46e722a9 6391
a3d16f39
KH
63922009-03-13 Kenichi Handa <handa@m17n.org>
6393
6394 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 6395 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
6396 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
6397 (set_fontset_font): Change ARG to a vector. Handle range_list in
6398 ARG correctly.
6399 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 6400 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
6401 the above change.
6402 (fontset_from_font): Fix previous change.
fe24f56a 6403 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
6404 entry. If FONTSET is the default fontset, don't set the extra
6405 slot of the returning char-table.
6406
b066e6b6
JB
64072009-03-12 Juanma Barranquero <lekktu@gmail.com>
6408
6409 * nsfns.m (Fx_close_connection): Doc fix.
6410 (Fns_do_applescript): Reflow docstring.
6411 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
6412 (Fx_display_pixel_width, Fx_display_pixel_height)
6413 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
6414 Fix typos in docstrings.
6415 (Fns_set_alpha): Fix typos in error messages.
6416
d472514e 64172009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 6418
d472514e 6419 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
6420 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
6421 were used for such events.
6422
d472514e
JB
6423 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
6424 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 6425
d472514e 6426 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
6427 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
6428
fb930676
KH
64292009-03-11 Kenichi Handa <handa@m17n.org>
6430
ff85581a
KH
6431 * font.h (font_open_by_spec): Extern it.
6432
c50b7e98
KH
6433 * font.c (font_open_by_spec): New function.
6434 (font_open_by_name): Use font_open_by_spec.
6435
fb930676
KH
6436 * frame.c (x_set_font): When ARG is a font-object, don't alter the
6437 fontset of the frame.
6438
6439 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
6440 modify the default font of frames that use this fontset.
6441 (num_auto_fontsets): New variable.
6442 (fontset_from_font): Use num_auto_fontsets to decide a fontset
6443 name. Be sure to set FONTSET_ASCII to the correct font name.
6444 (update_auto_fontset_alist): New function.
6445
df4e8455
JB
64462009-03-11 Juanma Barranquero <lekktu@gmail.com>
6447
6448 * makefile.w32-in: Update dependencies.
6449
0a375797
AR
64502009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6451
6452 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
6453
61313fa3
SM
64542009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6455
6456 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
6457
b55103fb
CY
64582009-03-10 Chong Yidong <cyd@stupidchicken.com>
6459
6460 * lread.c (Feval_buffer): Doc fix.
6461
dde2559c
KH
64622009-03-09 Kenichi Handa <handa@m17n.org>
6463
6464 * charset.c (Qfile_name_handler_alist): Extern it.
6465 (load_charset_map_from_file): Temporarily bind
6466 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
6467
df4e8455 64682009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 6469
47f588bb
GM
6470 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
6471 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 6472
4ddf94bd
AR
64732009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
4c9bdfc2
AR
6475 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
6476 (x_set_window_size): Change back to calculated method of setting
6477 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
6478 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
6479 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
6480
fe41ae9e
AR
6481 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
6482
4c9bdfc2
AR
6483 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
6484 accelerator in parens under GNUstep.
6485
825d0875
KH
64862009-03-06 Kenichi Handa <handa@m17n.org>
6487
6488 These changes are to detect incorrect composition sequence without
f3b3be74 6489 looking ahead the source. (Bug#2370)
825d0875
KH
6490
6491 * coding.h: Include "composite.h".
6492 (enum compisition_state): New enum.
6493 (struct compisition_status): New struct.
6494 (struct iso_2022_spec): New member cmp_status.
6495 (struct emacs_mule_spec): New struct.
6496 (struct coding_system): New members ctext_extended_segment_len and
6497 embedded_utf_8. Change the union member
6498 spec.emacs_mule_full_support to spec.emacs_mule.
6499
6500 * coding.c (CODING_ISO_CMP_STATUS): New macro.
6501 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 6502 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
6503 (ADD_COMPOSITION_DATA): New arg nbytes.
6504 (emacs_mule_char): New arg cmp_status.
6505 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
6506 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
6507 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
6508 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
6509 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
6510 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
6511 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
6512 (EMACS_MULE_COMPOSITION_END): New macro.
6513 (emacs_mule_finish_composition): New function.
6514 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
6515 (decode_coding_emacs_mule): Avoid long looking ahead while
6516 handling composition.
6517 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
6518 (ENCODE_COMPOSITION_RULE): New macro.
6519 (finish_composition): New function.
6520 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
6521 (DECODE_COMPOSITION_START): New implementation.
6522 (DECODE_COMPOSITION_END): Likewise.
6523 (STORE_COMPOSITION_RULE): New macro.
6524 (decode_coding_iso_2022): Avoid long looking ahead while handling
6525 composition, CTEXT extended segment, and embedded UTF-8.
6526 (setup_coding_system): For a coding of type iso-2022, reset
6527 CODING_ISO_EXTSEGMENT_LEN (coding) and
6528 CODING_ISO_EMBEDDED_UTF_8 (coding).
6529 (get_translation): Delete arguments last_block, from_nchars,
6530 to_nchars. Callers changed.
6531 (produce_chars): Don't modify charbuf. Adjusted for the change of
6532 get_translation.
98a326f7 6533 (produce_composition): Adjust for the new annotation sequence.
825d0875 6534 (handle_composition_annotation): Likewise.
98a326f7 6535 (consume_chars): Adjust for the change of get_translation.
825d0875 6536
ccbc4452
AR
65372009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
6538
4ddf94bd 6539 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 6540
988a7ddb
KH
65412009-03-05 Kenichi Handa <handa@m17n.org>
6542
6543 * font.c (font_select_entity): New function.
6544 (font_find_for_lface): Use font_select_entity to select a font.
6545
6546 * fontset.c (fontset_find_font): If a font found without
a8a3728b 6547 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
6548 font with C restriction.
6549
98a326f7 65502009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 6551
be1bce46 6552 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 6553
10ea2b82
JR
65542009-03-04 Jason Rumney <jasonr@gnu.org>
6555
2c93b248 6556 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 6557 characters that have already been read. (Bug#2569)
2c93b248 6558
10ea2b82
JR
6559 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
6560 Log an error message if check_image_size failed.
6561 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 6562 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 6563
71a0c011
EZ
65642009-03-02 Eli Zaretskii <eliz@gnu.org>
6565
6566 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
6567 when decoding process output.
6568
2f63bba8
RS
65692009-03-01 Richard M Stallman <rms@gnu.org>
6570
6571 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
6572
6573 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
6574
0a9564cb
EZ
65752009-02-28 Eli Zaretskii <eliz@gnu.org>
6576
6577 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
6578 (decode_coding_emacs_mule, decode_coding_iso_2022)
6579 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6580 (decode_coding_raw_text, decode_coding_charset)
6581 (setup_coding_system, decode_eol, decode_coding, consume_chars):
6582 Honor inhibit-eol-conversion. (Bug #2186)
6583
449148b3
JR
65842009-02-28 Jason Rumney <jasonr@gnu.org>
6585
6586 * coding.c (detect_coding_charset): If not checking latin extra,
6587 fail on characters between 0x80 and 0xA0. (Bug#2354)
6588
a4aee864
EZ
65892009-02-28 Eli Zaretskii <eliz@gnu.org>
6590
6591 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 6592 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 6593
d88bee5a
GM
65942009-02-27 Glenn Morris <rgm@gnu.org>
6595
6596 * callint.c (Finteractive): Doc fix.
6597
a808f22d
KH
65982009-02-27 Kenichi Handa <handa@m17n.org>
6599
6600 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
6601
caf8d60c
CY
66022009-02-27 Chong Yidong <cyd@stupidchicken.com>
6603
6604 * font.c (font_style_to_value): Set value for unknown symbols to
6605 100 instead of 255.
b61137ea
CY
6606 (weight_table, slant_table, width_table): Treat "unspecified" as
6607 the default value.
caf8d60c 6608
1a0de25c
JB
66092009-02-26 Juanma Barranquero <lekktu@gmail.com>
6610
6611 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
6612
8fc45744
JB
66132009-02-25 Juanma Barranquero <lekktu@gmail.com>
6614
107bd7d1
JB
6615 * lread.c (Fload): Stop checking Vloads_in_progress and signal
6616 error as soon as a recursive load is detected.
8fc45744 6617
f097e223
AR
66182009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6619
6620 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
6621 before caching.
6622
8810a12f
KH
66232009-02-24 Kenichi Handa <handa@m17n.org>
6624
6625 * fontset.c (fontset_find_font): Fix the condition for checking
6626 unavailable font.
6627
2c7d1565
GM
66282009-02-24 Glenn Morris <rgm@gnu.org>
6629
6630 * xfaces.c (Finternal_set_font_selection_order): Remove leading
6631 whitespace that confuses documentation.
6632
a20878b6
MB
66332009-02-23 Miles Bader <miles@gnu.org>
6634
6635 * process.c (Flist_system_processes, Fprocess_attributes)
6636 (syms_of_process): Rename `system-process-attributes' to
6637 `process-attributes'.
6638
b3b58c01
AS
66392009-02-22 Andreas Schwab <schwab@linux-m68k.org>
6640
1b3b981b
AS
6641 * coding.h (struct coding_system): Make safe_charsets a pointer to
6642 unsigned char.
6643 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
6644 being 255.
6645 (SAFE_CHARSET_P): Likewise.
6646 (setup_iso_safe_charsets): Properly setup safe_charsets.
6647 (Fdefine_coding_system_internal): Likewise.
6648 (setup_coding_system): Likewise. Remove unneeded casts.
6649 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
6650 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
6651 unneeded casts.
6652
b3b58c01
AS
6653 * insdel.c (del_range_2): Don't modify gap contents when called
6654 from decode_coding_object. (Bug#1809)
6655
0b6f228c
CY
66562009-02-21 Chong Yidong <cyd@stupidchicken.com>
6657
6658 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
6659 Qfont_object.
6660 (Ftype_of): Recognize font objects.
6661
6662 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
6663
6664 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
6665 moved to data.c.
6666
52f8870b
AR
66672009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6668
6669 * nsterm.m (x_make_frame_invisible): Unset async_visible,
6670 async_iconified. Based on a patch by Christian Lynbech
6671 <christian.lynbech@tieto.com>.
6672 (EmacsView-windowDidMiniaturize:): Unset async_visible.
6673
7087d5e9
GM
66742009-02-20 Glenn Morris <rgm@gnu.org>
6675
6676 * syntax.c (Fskip_chars_forward): Fix doc typo.
6677
41d2ceef
CY
66782009-02-20 Chong Yidong <cyd@stupidchicken.com>
6679
6680 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
6681
1a3b7ca6
CY
66822009-02-19 Chong Yidong <cyd@stupidchicken.com>
6683
6684 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
6685
73cce38d
KH
66862009-02-19 Kenichi Handa <handa@m17n.org>
6687
6688 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 6689 Don't overflow coding->carryover. (Bug#2370)
73cce38d 6690
a51092ee
DN
66912009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
6692
6693 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
6694
c423ecca
KH
66952009-02-18 Kenichi Handa <handa@m17n.org>
6696
6697 * font.c (font_check_otf_features): Fix handling of `nil' element.
6698 (Ffont_spec): Describe :lang and :otf in the docstring.
6699
4c1958f4
AS
67002009-02-16 Andreas Schwab <schwab@suse.de>
6701
6702 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
6703 string.
6704
5704f39a
KH
67052009-02-16 Kenichi Handa <handa@m17n.org>
6706
6707 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 6708 (Bug#1723)
5704f39a 6709
8f0085aa
CY
67102009-02-14 Chong Yidong <cyd@stupidchicken.com>
6711
a057d86a 6712 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
6713
6714 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
6715 (handle_line_prefix): Suppress wrapping of wrap prefixes.
6716
aff01dd9
EZ
67172009-02-14 Eli Zaretskii <eliz@gnu.org>
6718
6719 * msdos.c (MAX_SCREEN_BUF): New macro.
6720 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
6721 Encode the entire run of glyphs sharing the same face, instead of
6722 doing that one glyph at a time (fixes a bug with displaying
6723 double-size characters).
6724
ba301db3
AR
67252009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
6726
6727 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
6728
6729 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
6730 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 6731 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
6732
6733 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 6734 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 6735
51d861de
SM
67362009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
6737
ac146f82 6738 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
6739 invisible areas.
6740
7fed8996
JR
67412009-02-12 Jason Rumney <jasonr@gnu.org>
6742
631ea4fb
JR
6743 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
6744 (add_font_entity_to_list): Call check_face_name even when family
6745 is unspecified.
6746
cb4a3e42
JR
6747 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6748 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 6749 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 6750
7fed8996 6751 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 6752 raster fonts. (Bug#2219)
7fed8996 6753
895416e3
KH
67542009-02-12 Kenichi Handa <handa@m17n.org>
6755
6756 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
6757 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
6758 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 6759 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6760 (find_automatic_composition): While looking forward and backward,
6761 check static composition. Fix where to stop looking forward.
6762 (composition_adjust_point): Fix checking of static composition.
6763 (Fcomposition_get_gstring): Pay attention to
1dacf998 6764 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
6765
6766 * lisp.h (fast_looking_at): Extern it.
6767
6768 * search.c (fast_looking_at): New function.
6769
51d861de 6770 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
6771 <struct glyph>.u.cmp.to.
6772 (append_composite_glyph): Likewise.
6773
51d861de 6774 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
6775 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
6776 composition.
51d861de 6777 (append_composite_glyph): Adjust for the change of
895416e3
KH
6778 <strcut glyph>.u.cmp.to.
6779
8510724d
JB
67802009-02-11 Juanma Barranquero <lekktu@gmail.com>
6781
6782 * casetab.c (init_casetab_once):
6783 * coding.c (ALLOC_CONVERSION_WORK_AREA):
6784 * font.c (font_update_lface):
6785 * fontset.c (Fnew_fontset):
6786 * ftfont.c (ftfont_drive_otf):
6787 * xfont.c (xfont_open):
6788 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
6789
294fa707
SM
67902009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
6791
6792 * fileio.c (Fwrite_region): !NILP -> CONSP.
6793
b5bfebec
AS
67942009-02-10 Andreas Schwab <schwab@suse.de>
6795
6796 * process.c (send_process): Properly relocate pointer into data
adab88bd 6797 when using encoded data. (Bug#2272)
b5bfebec 6798
cb84a2be
KH
67992009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
6800
6801 * coding.c (detect_coding_charset): Fix previous change.
6802
89e09428
JR
68032009-02-08 Jason Rumney <jasonr@gnu.org>
6804
6805 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 6806 disappeared while hourglass was displayed. (Bug #2193)
89e09428 6807
4470a277
AS
68082009-02-07 Andreas Schwab <schwab@suse.de>
6809
6810 * unexelf.c (unexec): Fix error message.
6811
3175b12a
AR
68122009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
6813
6814 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 6815 when modal window is active. (Bug #2152)
3175b12a
AR
6816 (applicationShouldTerminate:): Remove now-unneeded while loop
6817 around NSRunAlertPanel.
6818
6819 * nsmenu.m (popupSession): New file-global variable.
6820 (pop_down_menu): End the popupSession before closing dialog.
6821 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
6822 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
6823 don't query NSApp for events (just sleep instead).
6824
8434d0b8
EZ
68252009-02-07 Eli Zaretskii <eliz@gnu.org>
6826
51d861de
SM
6827 * coding.c (syms_of_coding) <translation-table-for-input>:
6828 Modify doc string to discourage use for character code unification.
8434d0b8 6829
aa82edfd
CY
68302009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6831
6832 * atimer.c (run_timers): Update pending_atimers.
6833
2d283c7c
CY
68342009-02-06 Chong Yidong <cyd@stupidchicken.com>
6835
eb306cab
CY
6836 * image.c (svg_load_image): Fix last change.
6837
2d283c7c
CY
6838 * xfns.c (Fx_create_frame): Signal an error if no font is
6839 found (Bug#2147).
6840
4d8e170e
JB
68412009-02-05 Juanma Barranquero <lekktu@gmail.com>
6842
6843 * character.c (syms_of_character) <script-representative-chars>:
6844 Fix typo in docstring.
6845
c96169a0
AR
68462009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6847
6848 * nsmenu.m (pop_down_menu): New function.
6849 (ns_popup_dialog): Call it on unwind.
6850 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
6851 call timer_check() (Bug#2154).
6852 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
6853 handling_signal is set.
6854 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
6855
31fd7c5c 6856 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
6857
6858 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
6859
6860 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
6861
51d861de
SM
6862 * keyboard.c (poll_for_input_1, handle_async_input):
6863 Set handling_signal under HAVE_NS.
c96169a0 6864
aacd8ba1
GM
68652009-02-04 Glenn Morris <rgm@gnu.org>
6866
6867 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
6868
4cb75c4b
KH
68692009-02-04 Kenichi Handa <handa@m17n.org>
6870
6871 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
6872
6873 * charset.c (Fchar_charset): New optional arg restriction.
6874
6875 * coding.h (coding_system_charset_list): Extern it.
6876
6877 * coding.c (coding_system_charset_list): New function.
6878
6879 * composite.c: Include coding.h and termhooks.h.
6880 (composition_gstring_p): Fix for the terminal case.
6881 (composition_gstring_width): Likewise.
6882 (fill_gstring_body): Likewise.
6883 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
6884 the frame.
6885 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
6886 is within a composition.
867d4bb3 6887 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
6888
6889 * term.c (encode_terminal_code): Fix handling of composition.
6890 (produce_composite_glyph): For static composition, get pixel_width
6891 from struct composition.
6892
826ba17e
AS
68932009-02-02 Andreas Schwab <schwab@suse.de>
6894
6895 * unexelf.c (unexec): Handle unaligned bss offset.
6896
8ad093db
AR
68972009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6898
6899 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
6900 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 6901
8ad093db
AR
6902 * keyboard.c (handle_interrupt): Don't call
6903 quit_throw_to_read_char() under NS.
d0a76a6e 6904
8ad093db
AR
6905 * blockinput.h: Remove NS-specific code.
6906
4d18a7a2
DN
69072009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
6908
db878925
DN
6909 * dispnew.c (window_change_signal): Don't try to get the size of a
6910 suspended tty frame.
6911 * term.c (Fresume_tty): Resize if the size has changed while the
6912 tty was suspended.
6913
4d18a7a2
DN
6914 * alloc.c (mark_stack): Properly conditionalize previous change.
6915
8984df7c
JB
69162009-01-30 Juanma Barranquero <lekktu@gmail.com>
6917
6918 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
6919 * w32term.c (w32_read_socket) [SYNC_INPUT]:
6920 Remove; this code is not used on Windows.
6921
75f4f1ac
EZ
69222009-01-30 Eli Zaretskii <eliz@gnu.org>
6923
6924 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
6925 EOLs that also has stray ^M characters.
6926
07a1e794
JB
69272009-01-30 Juanma Barranquero <lekktu@gmail.com>
6928
6929 * atimer.c (run_timers, alarm_signal_handler):
6930 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
6931 * w32inevt.c (w32_console_read_socket):
6932 * w32term.c (w32_read_socket):
6933 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
6934
a8b11cc9
CY
69352009-01-30 Chong Yidong <cyd@stupidchicken.com>
6936
6937 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
6938 Initialize it as a relative filename pattern.
6939 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
6940 (Fcall_process_region): Simplify temp file creation using
6941 temporary-file-directory.
6942
c279587b
EZ
69432009-01-29 Eli Zaretskii <eliz@gnu.org>
6944
6945 * msdos.c: Rename pending_signals to msdos_pending_signals.
6946 (sig_suspender, sigprocmask): Adjust.
6947
a8fe3242
CY
69482009-01-29 Chong Yidong <cyd@stupidchicken.com>
6949
6950 * keyboard.c (pending_signals): New var.
6951 (poll_for_input, input_available_signal, init_keyboard): Set it.
6952 (process_pending_signals): New function.
6953
6954 * lisp.h (QUIT): Check pending_signals instead of
6955 interrupt_input_pending. Use process_pending_signals.
6956
51d861de 6957 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 6958
51d861de 6959 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
6960
6961 * sysdep.c (emacs_write): Use process_pending_signals.
6962
6963 * xterm.c (XTread_socket): Update pending_signals.
6964
6965 * w32term.c (w32_read_socket): Update pending_signals.
6966
6967 * w32inevt.c (w32_console_read_socket): Update pending_signals.
6968
6570a1c4
KH
69692009-01-29 Kenichi Handa <handa@m17n.org>
6970
6971 * xftfont.c (xftfont_has_char): New function.
6972 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
6973
d72a4afa
AR
69742009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6975
6976 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
6977 under GNUstep.
6978 (ns_query_color): New declaration.
6979
6980 * nsterm.m (ns_confirm_quit): New variable.
6981 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
6982 (EmacsApp-applicationShouldTerminate:): Use it.
6983 (EmacsPrefsController): Let user set it.
6984 (ns_query_color): New function.
6985 (ns_defined_color): Use it.
6986 (ns_initialize): Drop.
6987 (ns_term_init): Add two lines from ns_initialize(), and set
6988 input_interrupt_mode to nil.
6989
6990 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 6991 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 6992
9fe78804
KH
69932009-01-28 Kenichi Handa <handa@m17n.org>
6994
6995 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
6996 (fontset_get_font_group): Remember that no font-group is specified
6997 for C.
9fe78804 6998
fa57de36
CY
69992009-01-27 Chong Yidong <cyd@stupidchicken.com>
7000
930600e9
CY
7001 * fns.c (concat): Check for string overflow (bug#1787).
7002
fa57de36
CY
7003 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
7004 Quadruple undo limits (bug#1501).
7005
7179ce7b
KH
70062009-01-27 Kenichi Handa <handa@m17n.org>
7007
7008 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
7009 directly use GT_Get_Char_index.
7010
7011 * xftfont.c (struct xftfont_info): New member `index'.
7012
7013 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 7014 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 7015
5be8fcc0
CY
70162009-01-26 Kenichi Handa <handa@m17n.org>
7017
7018 * fontset.c (fontset_find_font): Fix handling of non-cons return
7019 value of fontset_get_font_group.
7020 (fontset_font): Revert last change.
7021
19ae3e61
JR
70222009-01-26 Jason Rumney <jasonr@gnu.org>
7023
7024 * w32font.c (w32font_list_internal): Return quickly if registry is
7025 unknown. Simplify final return.
7026 (add_font_entity_to_list): Break complex logic down into more
7027 manageable chunks. Move unknown registry check to
7028 w32font_list_internal.
7029
8612b71a
AR
70302009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
7031
7032 Changes to remove Feval calls from GUI under NS.
7033
d8038940
JB
7034 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
7035 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
7036 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
7037
7038 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
7039 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
7040 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
7041 instead of NON_ASCII_KEYSTROKE_EVENT.
7042 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
7043 (EmacsApp-applicationShouldTerminate:): Query user.
7044 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
7045 instead of Feval.
7046
7047 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
7048
7049 * keyboard.c (kbd_buffer_get_event): Check for it.
7050 (keys_of_keyboard): Define lispy keys for
7051 ns-put/unput-working-text.
7052
7053 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
7054 versions.
7055 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
7056
6288ae55
CY
70572009-01-25 Chong Yidong <cyd@stupidchicken.com>
7058
7059 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 7060 setting current_buffer directly. (Bug#2044)
6288ae55 7061
289e7f8f
CY
70622009-01-24 Chong Yidong <cyd@stupidchicken.com>
7063
5ce87308 7064 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 7065 any work. (Bug#1952, bug#1990).
5ce87308 7066
64cc3cf6 7067 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 7068
b3243e6f
AR
70692009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7070
7071 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
7072 (ns_no_defaults): New declaration.
7073 (main): Use it.
e0d2e69a 7074
d900b2af 7075 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 7076
d900b2af 7077 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 7078
d900b2af
AR
7079 * nsterm.m (ns_no_defaults): New variable.
7080 (ns_initialize): Don't read defaults when ns_no_defaults.
7081 (EmacsView-readSelectionFromPasteboard:)
7082 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 7083 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
7084 (ns_dumpglyphs_stretch): New function.
7085 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 7086 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 7087
e0d2e69a
AR
7088 * nsimage.m (setPixmapData:): Set to ignore image DPI.
7089
3ac71f5d
CY
70902009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
7091
7092 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
7093 call for Sparc64.
7094
3fe53a83
AR
70952009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7096
7097 * nsfns.m:
7098 * nsgui.h:
7099 * nsmenu.m:
7100 * nsselect.m:
7101 * nsterm.h:
7102 * nsterm.m: Remove '23' comments that indicated code added during
7103 update from emacs-20 -> emacs-23.
7104
10f87c6f 71052009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
7106
7107 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 7108 ns_alternate_modifier. (Bug#1217)
a3b53a85 7109
c7cef62d
AR
7110 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
7111 Display all shortcuts, including those w/o super modifier.
7112
575fb8bd
AR
7113 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
7114
918b848b
CY
71152009-01-22 Chong Yidong <cyd@stupidchicken.com>
7116
7117 * fileio.c (Vwrite_region_post_annotation_function)
7118 (Vwrite_region_annotation_buffers): New vars.
7119 (build_annotations_unwind): Just reset
7120 Vwrite_region_annotation_buffers.
7121 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
7122 Call write-region-post-annotation-function.
7123 (build_annotations): Add to Vwrite_region_annotation_buffers if
7124 buffer changes.
7125
a39e2539
AR
71262009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7127
7128 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
7129 Tiger.
51d861de
SM
7130 * nsfns.m (ns_do_applescript):
7131 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 7132
35ed44db
AR
71332009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
7134
7135 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
7136
cbe0b5bf
AR
71372009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7138
7139 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 7140
6049d3a0
AR
7141 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
7142
7143 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
7144 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
7145 handle Ctrl-tab. (Bug#1841)
7146 (ns_get_color): Use unsigned long long for scanned hex string value.
7147 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 7148 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 7149 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 7150 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 7151 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 7152 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 7153 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 7154
d3810c21 7155 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 7156 DPI. (Bug#1316)
d3810c21
AR
7157 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
7158 values in onTiger section.
4c7077c3 7159
e301e634
CY
71602009-01-19 Chong Yidong <cyd@stupidchicken.com>
7161
7f82490b
CY
7162 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
7163 Check return value of font_spec_from_name.
64cc3cf6 7164 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
7165
7166 * font.c (font_spec_from_name): Return Qnil if font name could not
7167 be parsed.
7168 (font_parse_name): Treat a `?' character as part of an XLFD.
7169
e301e634
CY
7170 * fns.c (Fsubstring): Doc fix.
7171
1c0db158
KH
71722009-01-19 Kenichi Handa <handa@m17n.org>
7173
51d861de 7174 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
7175 (ftfont_list): Likewise.
7176
acf20901
JB
71772009-01-18 Juanma Barranquero <lekktu@gmail.com>
7178
fff4e459
JB
7179 * dbusbind.c (Fdbus_register_signal):
7180 * process.c (conv_sockaddr_to_lisp):
7181 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
7182
acf20901
JB
7183 * callproc.c (Fgetenv_internal): Doc fix.
7184
e7abcdfb
CY
71852009-01-16 Chong Yidong <cyd@stupidchicken.com>
7186
7187 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
7188 it is not even used.
7189
b60861e6
GM
71902009-01-16 Glenn Morris <rgm@gnu.org>
7191
7192 * font.c (Ffont_variation_glyphs): Silence compiler.
7193
8db52afe
JB
71942009-01-15 Juanma Barranquero <lekktu@gmail.com>
7195
7196 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
7197 Reported by David Robinow <drobinow@gmail.com>.
7198
4cddb209
KH
71992009-01-15 Kenichi Handa <handa@m17n.org>
7200
51d861de 7201 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 7202
f247f67b
JR
72032009-01-14 Jason Rumney <jasonr@gnu.org>
7204
7205 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 7206 never a fontset. (Bug#1562)
f247f67b 7207
f56a4450
KH
72082009-01-14 Kenichi Handa <handa@m17n.org>
7209
7210 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 7211 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 7212
4e99855e
CY
72132009-01-13 Chong Yidong <cyd@stupidchicken.com>
7214
7215 * font.c (font_clear_prop): If clearing the family, clear the font
7216 width index too.
7217
fff4e459 7218 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 7219
24f01470
JB
72202009-01-12 Juanma Barranquero <lekktu@gmail.com>
7221
7222 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
7223 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
7224 functions, use sizeof.
7225
a41240a3
MR
72262009-01-12 Martin Rudalics <rudalics@gmx.at>
7227
7228 * keyboard.c (read_char): Fix case where last_nonmenu_event
7229 returned a bad value with submenus. (Bug#447)
7230
944636b8
CY
72312009-01-12 Chong Yidong <cyd@stupidchicken.com>
7232
7233 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
7234 family, clear the font width index too.
7235
0dad7c6f
JR
72362009-01-11 Jason Rumney <jasonr@gnu.org>
7237
7238 * keyboard.c (cmd_error_internal): Exit when errors occur before
7239 frame creation and not in daemon mode. (Bug#1836)
7240
7c2363af
CY
72412009-01-10 Chong Yidong <cyd@stupidchicken.com>
7242
7243 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
7244 of a display vector, backtrack.
7245 (try_window_reusing_current_matrix): Check glyph type before
7246 referencing charpos member.
7247
97b1b294
EZ
72482009-01-10 Eli Zaretskii <eliz@gnu.org>
7249
7250 Fix Bug #876:
7251
7252 * coding.c (inhibit_null_byte_detection): New variable.
7253 (detect_coding, detect_coding_system): Don't pay attention to null
7254 bytes if inhibit_null_byte_detection is non-zero.
51d861de 7255 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
7256 <inhibit-iso-escape-detection>: Doc fix.
7257
4624b6e3
JR
72582009-01-09 Jason Rumney <jasonr@gnu.org>
7259
7260 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 7261 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
7262 Only report Unicode Plane 2 fonts as unicode-sip.
7263
323b840c
CY
72642009-01-09 Chong Yidong <cyd@stupidchicken.com>
7265
51d861de
SM
7266 * xfaces.c (Fx_font_family_list): Delete function.
7267 Move compatibility version to faces.el.
323b840c 7268
51d861de 7269 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 7270
eba7400d
MR
72712009-01-09 Martin Rudalics <rudalics@gmx.at>
7272
7273 * frame.c (x_set_frame_parameters): Remember requested value for
7274 fullscreen before it's reset by the parameter handler.
7275
4b09796d
GM
72762009-01-09 Glenn Morris <rgm@gnu.org>
7277
7278 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 7279 (last_command_event): ... and update all users.
4b09796d
GM
7280 (last_input_char): For clarity, rename to...
7281 (last_input_event): ... and update all users.
7282 (last-command-char, last-input-char): Move to subr.el as aliases.
7283 * cmds.c, commands.h: Update for last_command_char rename.
7284
14ccea62
CY
72852009-01-08 Chong Yidong <cyd@stupidchicken.com>
7286
51d861de 7287 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 7288
5f004711
JR
72892009-01-08 Jason Rumney <jasonr@gnu.org>
7290
7291 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
7292 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
7293 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
7294 Don't declare.
fff4e459 7295 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
7296 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
7297
b71f6f73
KH
72982009-01-07 Kenichi Handa <handa@m17n.org>
7299
50b06221 7300 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 7301 remember the coding system used for decoding in
50b06221
KH
7302 coding_system (Bug#1039).
7303
b71f6f73 7304 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 7305 breaking the loop. (Bug#870)
b71f6f73
KH
7306 (decode_coding_utf_16, decode_coding_emacs_mule)
7307 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
7308 (decode_coding_charset): Likewise.
7309
56f668f7
MR
73102009-01-05 Martin Rudalics <rudalics@gmx.at>
7311
7312 * frame.c (x_set_frame_parameters): Make sure height (width) get
7313 applied when fullwidth (fullheight) is set. (Bug#1522)
7314
5da9424d
JB
73152009-01-04 Juanma Barranquero <lekktu@gmail.com>
7316
7317 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
7318 (utc_base): Declare as ULONGLONG, not long double.
7319 (convert_time_raw): Delete.
7320 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
7321 (initialize_utc_base): New function.
7322 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
7323 (convert_from_time_t): Use initialize_utc_base; compute result with
7324 64-bit arithmetic.
7325 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
7326
c4605e09
EZ
73272009-01-03 Eli Zaretskii <eliz@gnu.org>
7328
9acef61c 7329 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
7330 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
7331 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
7332 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
7333 [!subprocesses]: Define.
7334 (syms_of_process) [!subprocesses]: Intern and staticpro them.
7335 (Flist_system_processes, Fsystem_process_attributes)
7336 [!subprocesses]: Call list_system_processes and
7337 system_process_attributes instead of returning Qnil.
7338
9acef61c
JB
7339 * dosfns.c (system_process_attributes, list_system_processes):
7340 New functions.
c4605e09
EZ
7341
7342 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
7343
7344 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
7345 Don't use the default (no-op) implementation.
7346
8b7d0a16
JR
73472009-01-03 Jason Rumney <jasonr@gnu.org>
7348
a6d46bc1
JR
7349 * keyboard.c (parse_modifiers_uncached): Wheel events are
7350 clicks (bug#687).
7351
8b7d0a16
JR
7352 * w32term.c (x_query_colors, x_query_color): New functions.
7353
7354 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
7355 (svg_load_image): Cast returned pointers from dynamically loaded
7356 functions. Eliminate W32 specific code.
7357
bfe11752
DN
73582009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
7359
89e2438a
DN
7360 * nsfns.m (x_set_foreground_color, x_set_background_color)
7361 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
7362 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
7363 x_ prefix instead of ns_. Update references.
7364 (syms_of_nsfns): Add a FIXME comment.
7365
7366 * nsterm.m (x_set_cursor_type): New prototype.
7367 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
7368
bfe11752
DN
7369 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
7370 for Solaris instead of incorrectly providing Qutime and Qcutime.
7371
031da700
EZ
73722009-01-02 Eli Zaretskii <eliz@gnu.org>
7373
7374 * w32.c (process_times): Compute sum of utime and stime.
7375 (system_process_attributes): Add Qtime to the alist.
7376
7377 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
7378 and add them to the alist.
7379
7380 * process.c (top level) <Qtime, Qctime>: New variables.
7381 (syms_of_process): staticpro them.
7382 (Fsystem_process_attributes): Add their documentation to the doc
7383 string.
7384
7385 * process.h: Declare Qtime and Qctime.
7386
df23bf08
JR
73872009-01-02 Jason Rumney <jasonr@gnu.org>
7388
9acef61c 7389 * image.c (Qgobject): New symbol.
df23bf08
JR
7390 (syms_of_image): Initialize it.
7391 (init_svg_functions): Load some functions from gobject library.
7392
5bbdf7aa
DN
73932009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
7394
7395 * frame.c (make_terminal_frame): Remove redundant code and useless
7396 block.
7397
63136da6
AS
73982009-01-01 Andreas Schwab <schwab@suse.de>
7399
7400 * process.c (conv_sockaddr_to_lisp): Add workaround for
7401 getsockname bug on BSD.
7402
9ef69046
CY
74032009-01-01 Chong Yidong <cyd@stupidchicken.com>
7404
d6fafbe0
CY
7405 * xfns.c (x_create_tip_frame): Set border width of the X window.
7406
51d861de 7407 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 7408
f9c34147
JR
74092009-01-01 Jason Rumney <jasonr@gnu.org>
7410
9acef61c 7411 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
7412 Don't block input, as per earlier xterm.c changes.
7413
f5497e45
AR
74142008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
7415
7416 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
7417 (ns_appkit_version_int): New function.
7418 (x-server-version): Use ns_appkit_version_int and follow 21+
7419 convention of returning 3 integers.
7420
c19cab20
KH
74212008-12-30 Kenichi Handa <handa@m17n.org>
7422
7423 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
7424 (CHAR_SURROGATE_PAIR_P): New macro.
7425
7426 * font.h (struct font_driver): New member get_variation_glyphs.
7427
9acef61c 7428 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
7429 (Ffont_variation_glyphs): New function.
7430 (syms_of_font): Defsubr it.
7431
7432 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
7433 ftfont_variation_glyphs.
7434 (setup_otf_gstring): New function.
7435 (ftfont_drive_otf): Use it.
7436 (ftfont_shape_by_flt): Handle variation selector.
7437 (ftfont_variation_glyphs): New function.
7438
28cd591f
MR
74392008-12-30 Martin Rudalics <rudalics@gmx.at>
7440
7441 * frame.c (Vemacs_iconified): Remove.
7442
7f714baf
JR
74432008-12-30 Jason Rumney <jasonr@gnu.org>
7444
7445 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 7446 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 7447
9d2d22ab
CY
74482008-12-30 Chong Yidong <cyd@stupidchicken.com>
7449
7450 * indent.c (Fvertical_motion): Don't advance iterator if we have
7451 reseated to the desired position.
7452
7453 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
7454 checking for pos match.
7455
545312c2
KH
74562008-12-30 Kenichi Handa <handa@m17n.org>
7457
1ede3eb6
KH
7458 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
7459 just get the low 8-bit of the code.
7460
545312c2
KH
7461 * font.c (font_intern_prop): Validate str as multibyte.
7462
bd7bbf29
DN
74632008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7464
31e0750e
DN
7465 * dispextern.h (struct face): Move lface and hash from the middle
7466 of bitfields.
7467
bd7bbf29
DN
7468 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
7469
b5672e7c
DN
74702008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
7471
7472 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
7473 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
7474 instead of intervals.h.
7475
d704470f
AS
74762008-12-26 Andreas Schwab <schwab@suse.de>
7477
7478 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
7479 cons.
7480
54b33868
MR
74812008-12-26 Martin Rudalics <rudalics@gmx.at>
7482
7483 * textprop.c (Qminibuffer_prompt): New variable.
7484 (syms_of_textprop): Initialize it.
7485 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
7486 in minibuffer-prompt face. (Bug#1662)
7487
40b615d6
JR
74882008-12-25 Jason Rumney <jasonr@gnu.org>
7489
7490 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
7491
baae5c2d
JR
74922008-12-24 Jason Rumney <jasonr@gnu.org>
7493
7494 * ralloc.c (r_alloc_reset_variable): New function.
7495
7496 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 7497 record of what points where. (Bug#716)
baae5c2d 7498
a9051c88
DN
74992008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
7500
7501 * minibuf.c (read_minibuf): Follow the non-interactive case when
7502 running as a daemon, before detaching.
7503
8b146312
AS
75042008-12-22 Andreas Schwab <schwab@suse.de>
7505
7506 * buffer.c (init_buffer): Use realloc instead of xrealloc.
7507 * gtkutil.c (free_widget_value): Use xfree instead of free.
7508
56f2de10
MR
75092008-12-22 Martin Rudalics <rudalics@gmx.at>
7510
7511 * frame.c (delete_frame): New function derived from
7512 Fdelete_frame to handle Qnoelisp value for FORCE argument.
7513 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
7514 (Fdelete_frame): Call delete_frame. Remove line from doc-string
7515 saying that FORCE non-nil doesn't run `delete-frame-functions'.
7516 * frame.h: Extern delete_frame.
7517 * window.c (window_loop):
7518 * terminal.c (delete_terminal):
7519 * xterm.c (x_connection_closed):
7520 * xfns.c (Fx_hide_tip):
9acef61c 7521 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 7522
1fc200d6
JR
75232008-12-21 Jason Rumney <jasonr@gnu.org>
7524
7525 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
7526 when character maps to .notdef character.
7527
5e252df2
SM
75282008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
7529
7530 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
7531
99b72cc4
JR
75322008-12-20 Jason Rumney <jasonr@gnu.org>
7533
7534 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 7535 a graphical frame on Windows. (Bug#1325)
99b72cc4 7536
acc49a52
JD
75372008-12-20 Jan Djärv <jan.h.d@swipnet.se>
7538
7539 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
7540
6ea15123
CY
75412008-12-20 Chong Yidong <cyd@stupidchicken.com>
7542
7543 * minibuf.c (Fread_buffer): Doc fix.
7544
b2dab6c8
JR
75452008-12-20 Jason Rumney <jasonr@gnu.org>
7546
54ea0c87 7547 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 7548 server name in UNC paths. (Bug#719)
54ea0c87 7549
b2dab6c8 7550 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 7551 charbuf. (Bug#1035)
b2dab6c8 7552
6d1921be
DN
75532008-12-19 Daniel Engeler <engeler@gmail.com>
7554
7555 * sysdep.c (serial_configure): Fix typo.
7556
53934c98
DN
75572008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7558
7559 * sysdep.c: Include alloca.h.
f4f634e8
DN
7560 (system_process_attributes): Add implementation for Solaris.
7561
7562 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 7563
06e111a6
DN
75642008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
7565
7566 Reorganize implementation of Flist_system_processes and
7567 Fsystem_process_attributes. No functional changes.
7568 * process.c: Don't #include pwd.h, grp.h and limits.h.
7569 (Flist_system_processes): Just call list_system_processes.
7570 (Fsystem_process_attributes): Just call system_process_attributes.
7571 (procfs_list_system_processes, time_from_jiffies)
7572 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
7573 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
7574
7575 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
7576 (list_system_processes): Rename from
7577 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
7578 Provide a do nothing implementation.
7579 (system_process_attributes): Rename from
7580 procfs_list_system_processes.
7581 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 7582 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
7583
7584 * w32.c (list_system_processes): Rename from
7585 w32_list_system_processes.
7586 (system_process_attributes): Rename from
7587 w32_system_process_attributes.
7588
7589 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
7590
7591 * process.h (w32_list_system_processes)
7592 (w32_system_process_attributes): Remove.
362654a6
JB
7593 (list_system_processes, system_process_attributes):
7594 New prototypes.
06e111a6 7595
6a705b23
KH
75962008-12-19 Kenichi Handa <handa@m17n.org>
7597
7598 * xfont.c (xfont_decode_coding_xlfd): New function.
7599 (xfont_encode_coding_xlfd): New function.
7600 (xfont_list_pattern): Decode XLFD by iso-8859-1.
7601 (xfont_list): Decode and encode XLFD by iso-8859-1.
7602 (xfont_match): Likewise.
7603 (xfont_list_family): Likewise.
7604 (xfont_open): Likewise.
7605
d66c0241 7606 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
7607 names are utf-8.
7608
d66c0241 7609 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
7610 names are utf-8.
7611
5a130941
JD
76122008-12-18 Jan Djärv <jan.h.d@swipnet.se>
7613
7614 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
7615 changed.
bfd20325
JD
7616 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
7617 clicked on a detached tool bar button.
5a130941 7618
fd95644b
DN
76192008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * emacs.c (main): Print and error and exit when no data is read
7622 from the pipe.
7623
e6eee6ae
JR
76242008-12-17 Jason Rumney <jasonr@gnu.org>
7625
7626 * w32font.c (w32font_has_char): Always return -1.
7627
a35dd56b
KH
76282008-12-16 Kenichi Handa <handa@m17n.org>
7629
7630 * font.c (font_open_entity): Fix previous change.
7631
0e3635c2
DN
76322008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
7633
7634 * process.c: Include <limits.h>.
7635
d4835507 76362008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
7637
7638 * font.c (font_update_drivers): Fix mistake in reconstructing the
7639 driver list.
7640
76412008-12-16 Chong Yidong <cyd@stupidchicken.com>
7642
7643 * font.c (font_clear_cache): Fix format of font cache data.
7644
e2cbc401
CY
76452008-12-15 Chong Yidong <cyd@stupidchicken.com>
7646
7647 * xftfont.c (xftfont_open): Free Xft font pattern if
7648 XftFontOpenPattern fails.
7649
7650 * xterm.c (x_free_frame_resources): Remove extraneous call to
7651 free_frame_faces.
7652
b131d535
CY
76532008-12-13 Chong Yidong <cyd@stupidchicken.com>
7654
7655 * xterm.c (x_delete_display): Move xim_close_dpy call to
7656 x_delete_terminal.
7657 (x_delete_terminal): Call xim_close_dpy.
7658
e6df5336
JR
76592008-12-13 Jason Rumney <jasonr@gnu.org>
7660
7661 * w32font.c (intern_font_name): New function.
7662 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
7663 (w32font_open_internal, Fx_select_font): Decode font name.
7664 (fill_in_logfont, list_all_matching_fonts): Encode font name.
7665
7666 * w32font.h (intern_font_name): Declare new function.
7667
7668 * w32uniscribe.c (add_opentype_font_name_to_list):
7669 Use intern_font_name.
7670
20d68145
CY
76712008-12-13 Chong Yidong <cyd@stupidchicken.com>
7672
9f2554de
CY
7673 * frame.c (Fdelete_frame): Call free_font_driver_list.
7674
3d9bec9a
CY
7675 * font.c (free_font_driver_list): Implement missing function.
7676
20d68145
CY
7677 * w32term.c (w32_term_init): Don't initialize the image cache
7678 here; it will be done in init_frame_faces.
7679
7680 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
7681 (struct x_display_info): Remove unused member null_pixel. New
7682 member xim_callback_data.
7683
7684 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
7685 (xim_initialize): Save pointer to callback function data.
7686 (xim_close_dpy): Free callback function data. Call XCloseIM,
7687 reverting 2008-11-04 change by David Smith.
7688 (x_term_init): Don't initialize the image cache here; it will be
7689 done in init_frame_faces. Remove ancient "null_pixel" cruft.
7690 (x_delete_display): Free x_dnd_atoms member.
7691
96f9306b
KH
76922008-12-13 Kenichi Handa <handa@m17n.org>
7693
6dec9044
JB
7694 * font.c (font_rescale_ratio): Moved from xfaces.c.
7695 Argument type changed. Handle a font-spec too.
96f9306b 7696 (font_score): Check Vface_font_rescale_alist.
6dec9044 7697 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
7698
7699 * xfaces.c (font_rescale_ratio): Moved to font.c.
7700
8d5b4964
CY
77012008-12-13 Chong Yidong <cyd@stupidchicken.com>
7702
7703 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
7704
e6df5336
JR
77052008-12-12 Jason Rumney <jasonr@gnu.org>
7706
7707 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
7708 Vwindow_system_version to the real w32 major version.
7709
97c6058a
DN
77102008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
7711
7712 * term.c (init_tty): Move setting the terminal name before the
7713 potential user: maybe_fatal.
7714
ec4e88d7
CY
77152008-12-11 Chong Yidong <cyd@stupidchicken.com>
7716
d4835507
JB
7717 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
7718 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 7719
b4233ec9
JR
77202008-12-11 Jason Rumney <jasonr@gnu.org>
7721
8ec71e23 7722 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 7723 SYMBOL_CHARSET. (Bug#547)
8ec71e23 7724
b4233ec9 7725 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 7726 size for surrogates. (Bug#1096, bug#872)
b4233ec9 7727
011a0143
JB
77282008-12-11 Juanma Barranquero <lekktu@gmail.com>
7729
7730 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
7731
3c309f34
JB
77322008-12-11 Juanma Barranquero <lekktu@gmail.com>
7733
7734 * process.c (Fsystem_process_attributes, syms_of_process):
7735 Fix typo in name of Ssystem_process_attributes.
7736 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
7737
fedc6ab5
JB
77382008-12-11 Juanma Barranquero <lekktu@gmail.com>
7739
7740 * syntax.c (Fmodify_syntax_entry): Doc fix.
7741
ba3de0e8
JB
77422008-12-10 Juanma Barranquero <lekktu@gmail.com>
7743
7744 * font.c (Ffont_spec): Move usage to end of docstring.
7745
174f1c74
JR
77462008-12-10 Jason Rumney <jasonr@gnu.org>
7747
7748 * w32font.c (Qcham): New symbol.
7749 (font_supported_scripts): Add cham, and comments for other new
7750 scripts in bitfield from OpenType spec.
9d32f818
JR
7751 (add_font_entity_to_list): Limit unicode-sip fonts to those that
7752 contain characters beyond the bmp.
174f1c74 7753
7b649478
KH
77542008-12-10 Kenichi Handa <handa@m17n.org>
7755
7756 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 7757 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
7758 Qunicode_sip.
7759
2133e2d1
JB
77602008-12-10 Juanma Barranquero <lekktu@gmail.com>
7761
7762 * coding.c (QCdefault_char): Rename from QCdefalut_char.
7763 (Fcoding_system_put): Use QCdefault_char.
7764 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
7765
9af886ee
CY
77662008-12-09 Chong Yidong <cyd@stupidchicken.com>
7767
74d819eb
CY
7768 * xftfont.c (syms_of_xftfont): Fix typo.
7769
4ccfa1c0 7770 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 7771
7c19d3ae
DN
77722008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
7773
7774 * emacs.c (main): Close daemon_pipe on exec.
7775
567826bb
CY
77762008-12-08 Chong Yidong <cyd@stupidchicken.com>
7777
7778 * termchar.h (struct tty): New members termcap_term_buffer and
7779 termcap_strings_buffer.
7780
7781 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 7782 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
7783 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
7784 All callers changed.
7785 (init_tty): Store termcap data and string buffers in new struct
7786 tty members termcap_term_buffer and termcap_strings_buffer.
7787 (delete_tty): Free them.
4ccfa1c0 7788 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 7789
aa96c42b
SZ
77902008-12-07 Seiji Zenitani <zenitani@mac.com>
7791
7792 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 7793 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 7794
b7e1d896
CY
77952008-12-06 Chong Yidong <cyd@stupidchicken.com>
7796
7797 * coding.c (make_conversion_work_buffer): Disable buffer
7798 modification hooks in the work buffer.
7799
b5ec91a5
EZ
78002008-12-05 Eli Zaretskii <eliz@gnu.org>
7801
7802 * process.c (procfs_system_process_attributes): If `nread' has a
7803 negative value, assign zero to it.
7804
a5d2a52b
CY
78052008-12-05 Chong Yidong <cyd@stupidchicken.com>
7806
68c5540b 7807 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 7808
7bf1bb21
KH
78092008-12-05 Kenichi Handa <handa@m17n.org>
7810
7811 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
7812 second character is a combining character.
7813
2fdc7d00
EZ
78142008-12-05 Eli Zaretskii <eliz@gnu.org>
7815
7816 * process.c (procfs_system_process_attributes): Don't use cmd,
7817 cmdsize, and q without initializing them first.
7818
bf6bfba8
JR
78192008-12-04 Jason Rumney <jasonr@gnu.org>
7820
7821 * w32font.c (w32font_draw): Initialize orig_clip before getting
7822 it, and delete it when finished.
7823
a3b1a468
DN
78242008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
7825
7826 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
7827 case when running as a daemon before detaching.
7828
8b8be8eb
JB
78292008-12-03 Juanma Barranquero <lekktu@gmail.com>
7830
805f2638 7831 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 7832
b1bde622
KH
78332008-12-03 Kenichi Handa <handa@m17n.org>
7834
e500c47d
KH
7835 * font.c (font_at): Set `multibyte' at first.
7836
ca516334
KH
7837 * coding.c (decode_coding_charset): Check type of an element of
7838 vector VALIDS.
7bf1bb21 7839 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 7840
4ccfa1c0 7841 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
7842 (font_for_char): Likewise.
7843
1e5ecd37
CY
78442008-12-03 Chong Yidong <cyd@stupidchicken.com>
7845
d5b01609 7846 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
7847 (font_update_lface): Handle fonts with corrupted size specs,
7848 i.e. non-int and non-float.
d5b01609 7849
11e3a6e4 7850 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 7851 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 7852 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 7853
ab06788b
CY
7854 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
7855
1e5ecd37 7856 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 7857 underline_minimum_offset for underline position.
1e5ecd37 7858
63c125ab
DN
78592008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
7860
7861 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
7862
7863 * character.c (c_string_width): Specify the type for LEN.
7864
3a8406e1
KH
78652008-12-03 Kenichi Handa <handa@m17n.org>
7866
4ccfa1c0 7867 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 7868 (decode_coding_utf_8): Likewise.
4ccfa1c0 7869 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 7870 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 7871
651df7d9
CY
78722008-12-02 Chong Yidong <cyd@stupidchicken.com>
7873
7874 * keyboard.c (make_lispy_position): Only use PT if the selected
7875 window is current.
7876
1f625c6c
AS
78772008-12-02 Andreas Schwab <schwab@suse.de>
7878
f7741ce9
AS
7879 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
7880
1f625c6c
AS
7881 * doprnt.c (doprnt1): Fix size of charbuf.
7882
92bc2678
CY
78832008-12-02 Chong Yidong <cyd@stupidchicken.com>
7884
7885 * keyboard.c (timer_check): Revert last change.
7886
93b9e8cc
JB
78872008-12-02 Juanma Barranquero <lekktu@gmail.com>
7888
7889 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
7890
fd7a37d5
JB
78912008-12-01 Juanma Barranquero <lekktu@gmail.com>
7892
7893 * makefile.w32-in: Update dependencies.
7894 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
7895
c115043b
AS
78962008-12-01 Andreas Schwab <schwab@suse.de>
7897
7898 * font.c (register_font_driver): Use xmalloc.
7899 (font_put_frame_data): Likewise.
7900
f5668d2a
CY
79012008-12-01 Chong Yidong <cyd@stupidchicken.com>
7902
860d96be
CY
7903 * xfaces.c (realize_x_face): Make abort condition clearer.
7904
f5668d2a
CY
7905 * gtkutil.c (update_frame_tool_bar): Initialize variable.
7906
379c17e7
CY
79072008-11-30 Chong Yidong <cyd@stupidchicken.com>
7908
7909 * keyboard.c (timer_check): After a timer runs, ensure that the
7910 selected window's buffer is current.
7911
35f36d65
JB
79122008-11-30 Juanma Barranquero <lekktu@gmail.com>
7913
f952c61c
JB
7914 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
7915 It was accidentally restored by the Unicode merge.
7916
35f36d65
JB
7917 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
7918
b23077df
JB
79192008-11-29 Juanma Barranquero <lekktu@gmail.com>
7920
7921 * w32proc.c: Include "coding.h".
7922 (Fw32_short_file_name): Encode filename passed to Windows API.
7923 (Fw32_long_file_name): Encode filename passed to Windows API and
7924 decode back the result. (Bug#1433)
7925
b8ebe9dd
KH
79262008-11-29 Kenichi Handa <handa@m17n.org>
7927
8cc53f96
KH
7928 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
7929 not before accessing it.
7930
b8ebe9dd
KH
7931 * charset.c (Fdefine_charset_internal): After calculating
7932 min_char, max_char, and fastmap, copy the charset structure again.
7933 (encode_char): Fix the previous change.
7934
59bc82c0
SZ
79352008-11-28 Seiji Zenitani <zenitani@mac.com>
7936
7937 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
7938
7939 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
7940
7941 * nsterm.m (x_set_frame_alpha): New function.
7942
32247e3d
EZ
79432008-11-27 Eli Zaretskii <eliz@gnu.org>
7944
7945 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
7946
b003e5ff
JB
79472008-11-27 Juanma Barranquero <lekktu@gmail.com>
7948
7949 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
7950 pointer to check_face_name.
7951
708550f5
KH
79522008-11-27 Kenichi Handa <handa@m17n.org>
7953
7954 * category.h (SET_CATEGORY_SET): Call set_category_set.
7955 (set_category_set): Extern it.
7956
7957 * category.c (hash_get_category_set): New function.
7958 (Fmodify_category_entry): Adjusted for the change of
7959 char_table_ref_and_range. Call hash_get_category_set to get a
7960 category set to store in the table.
7961
7962 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
7963 Funify_charset.
7964
2ae37cf0 7965 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
7966 (DECODE_CHAR): Check if the decoder vector is ready.
7967 (ENCODE_CHAR): Check if the encoder char-table is ready.
7968 (maybe_unify_char): Extern it.
7969
7970 * charset.c (Vchar_unified_charset_table): Delete it.
7971 (inhibit_load_charset_map): New variable.
7972 (temp_charset_work): New variable.
7973 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
7974 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
7975 New macros.
7976 (load_charset_map): Meaning of control_flag changed. If
7977 inhibit_load_charset_map is nonzero, setup a table in
7978 temp_charset_work.
7979 (load_charset): New argument control_flag.
7980 (map_charset_for_dump): New function.
7981 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
7982 map_charset_for_dump.
7983 (Fdefine_charset_internal): If the charset method is MAP, load
7984 mapping tables by calling load_charset.
7985 (Funify_charset): Don't load a mapping table but directly set
7986 Vchar_unify_table.
7987 (maybe_unify_char): New function.
7988 (decode_char): Don't handle the deleted method MAP_DEFERRED.
7989 Handle the case of inhibit_load_charset_map being nonzero.
7990 (encode_char): Don't handle the deleted method MAP_DEFERRED.
7991 Handle the case of inhibit_load_charset_map being nonzero.
7992 (Fclear_charset_maps): Just free temp_charset_work.
7993 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
7994 variable.
7995
7996 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
7997 change of char_table_ref_and_range.
7998 (char_table_ref_and_range): Change the meaning of argument FROM
7999 and TO. Now the caller must provide initial values for *FROM
8000 and *TO.
8001
8002 * fontset.c (fontset_add): Adjusted for the change of
8003 char_table_ref_and_range.
8004 (fontset_get_font_group): Likewise.
8005 (Ffontset_info): Likewise.
8006
8007 * keymap.c (describe_vector): Adjusted for the change of
8008 char_table_ref_and_range. For char-table, put boundary between
8009 non-ASCII and 8-bit characters.
8010
8011 * print.c (print_object): For bool-vector, delete unnecessary
8012 check of ASCII_BYTE_P.
8013
9196133b
JR
80142008-11-26 Jason Rumney <jasonr@gnu.org>
8015
8016 * w32font.c (w32font_open_internal): Don't include external
9acef61c 8017 leading in font height. (Bug#879)
9196133b 8018
9f688acf
GM
80192008-11-26 Glenn Morris <rgm@gnu.org>
8020
8021 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
8022 redefinition with ifdef. (Bug#1383)
8023
90d19aff
AR
80242008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8025
8026 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
8027
4ccfa1c0 80282008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
8029
8030 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
8031 New EmacsView methods.
8032 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
8033 Fixes bug #1048,1357,1414.
8034
80352008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8036
8037 Fix bug #1362.
8038 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
8039 is not an indexed color.
8040 * nsterm.m (free_indexed_color): Add argument checking.
8041 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
8042
e7d5ecb3
CY
80432008-11-24 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
8046 Document confirm-after-completion value for
8047 minibuffer-completion-confirm.
8048
c285743c
JR
80492008-11-24 Jason Rumney <jasonr@gnu.org>
8050
8051 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
8052 warning.
8053
b0857706
JR
80542008-11-23 Jason Rumney <jasonr@gnu.org>
8055
8056 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
8057 restored before returning.
8058
8059 * w32font.c (check_face_name): New function.
8060 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 8061 fonts. (Bug#642)
b0857706 8062
ee50ff07
MR
80632008-11-22 Martin Rudalics <rudalics@gmx.at>
8064
8065 * buffer.c (Fswitch_to_buffer): Reword and mention new option
8066 confirm-nonexistent-file-or-buffer in doc-string.
8067
b8ff72fa
SM
80682008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
8069
8070 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
8071 Fix copy/paste typo. Add checks.
8072
cee53ed4
KH
80732008-11-21 Kenichi Handa <handa@m17n.org>
8074
8075 * coding.c (detect_coding_iso_2022): Reject invalid composition
8076 sequence.
8077 (DECODE_COMPOSITION_START): If the current source is the last
8078 block, and the current composition doesn't end, regard this
8079 sequence as invalid.
8080 (decode_coding_iso_2022): Handle invalid composition sequence.
8081
f6ef1e65
MR
80822008-11-20 Martin Rudalics <rudalics@gmx.at>
8083
8084 * window.c (coordinates_in_window): Don't return
8085 ON_VERTICAL_BORDER for the rightmost position of a mode/header
8086 line when the window is not the rightmost one. (Bug#1372)
8087
e08b1705
MR
80882008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
8089
8090 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
8091
ad98e89f
EZ
80922008-11-15 Eli Zaretskii <eliz@gnu.org>
8093
8094 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
8095 and bright_bg if noninteractive is non-zero.
8096
fb098a4b
CY
80972008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8098
8099 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
8100 x_draw_glyph_string_background.
8101
8102 * w32term.c (x_draw_glyph_string): Likewise.
8103
ce952b6e
CY
81042008-11-15 Chong Yidong <cyd@stupidchicken.com>
8105
8106 * xterm.c (x_draw_glyph_string): Stop drawing the background of
8107 the next glyph string once past the overhang width.
8108
8109 * nsterm.m (ns_draw_glyph_string): Likewise.
8110
8111 * w32term.c (x_draw_glyph_string): Likewise.
8112
26ea7079
CY
81132008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
8114
8115 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
8116 double file close.
8117
1c33c906
MR
81182008-11-14 Martin Rudalics <rudalics@gmx.at>
8119
8120 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
8121 dedicated status of window before attempting to display another
8122 buffer in it.
8123
8fc29035
JB
81242008-11-14 Juanma Barranquero <lekktu@gmail.com>
8125
8126 * msdos.c (Fmsdos_long_file_names):
8127 (syms_of_msdos) <dos-unsupported-char-glyph>:
8128 * dosfns.c (Fint86): Fix typos in docstrings.
8129
55fb4286
EZ
81302008-11-14 Eli Zaretskii <eliz@gnu.org>
8131
8132 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
8133
3fda0315
KY
81342008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
8135
8136 * puresize.h (BASE_PURESIZE): Increase to 1260000.
8137
7e849c17
CY
81382008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
8139
8140 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
8141
8142 * frame.h: Negative alpha means "don't touch".
8143
8144 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
8145
8146 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
8147
b9fd67bd
DN
81482008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
8149
8150 * hftctl.c:
8151 * chpdef.h:
8152 * acldef.h: Remove files used only for systems no longer supported.
8153
8154 * Makefile.in: Fix .o alphabetical ordering.
8155 (hftctl.o): Remove dependency, file removed.
8156 (keymap.o, print.o): Depend on charset.h.
8157
d5998e03
KH
81582008-11-10 Kenichi Handa <handa@m17n.org>
8159
2ae37cf0 8160 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 8161
be70e183
CY
81622008-11-08 Chong Yidong <cyd@stupidchicken.com>
8163
8164 * dired.c (file_name_completion): If completion_ignore_case is
8165 enabled, ignore case when checking completion-regexp-list.
8166
7cf94eac
EZ
81672008-11-08 Eli Zaretskii <eliz@gnu.org>
8168
8169 * vm-limit.c (get_lim_data): Fix last change.
8170
ee107a89
KH
81712008-11-08 Kenichi Handa <handa@m17n.org>
8172
8173 * character.c (Fget_byte): New function.
8174 (syms_of_character): Defsubr Fget_byte.
8175
5fd15622
CY
81762008-11-07 Chong Yidong <cyd@stupidchicken.com>
8177
8178 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
8179 cursor position is valid after scrolling.
8180
13d62fad
JB
81812008-11-06 Juanma Barranquero <lekktu@gmail.com>
8182
8183 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
8184
a1dd2936
GM
81852008-11-06 Glenn Morris <rgm@gnu.org>
8186
8187 * xterm.c (handle_one_xevent): Don't let popup menus cause
8188 mouse-autoselect-window related window switching. (Bug#1261)
8189
860cd236
CY
81902008-11-04 David Smith <davidsmith@acm.org> (tiny change)
8191
8192 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
8193
653a3150
AS
81942008-11-04 Andreas Schwab <schwab@suse.de>
8195
8196 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
8197
870f5cac
CY
81982008-11-03 Chong Yidong <cyd@stupidchicken.com>
8199
8200 * xfns.c (Fx_wm_set_size_hint): New function.
8201
1e02f3cb
MR
82022008-11-03 Martin Rudalics <rudalics@gmx.at>
8203
8204 * textprop.c (Fprevious_single_char_property_change): Return 0
8205 when there's no change in a string. (Bug#1301)
8206
e630dfc6
MR
82072008-11-02 Martin Rudalics <rudalics@gmx.at>
8208
8209 * frame.c (do_switch_frame): New argument NORECORD passed to
8210 Fselect_window.
8211 (Fselect_frame): New argument NORECORD passed to
8212 do_switch_frame.
8213 (Fset_frame_selected_window): New argument NORECORD passed to
8214 Fselect_frame.
8215 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
8216 in call of do_switch_frame.
8217 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
8218 Handle NORECORD argument in call of Fselect_frame.
8219 * lisp.h (do_switch_frame, Fselect_frame)
8220 (Fset_frame_selected_window): Adjust declarations.
8221 * window.c (select_frame_norecord): New function.
8222 (run_window_configuration_change_hook): Use it and call
8223 Fselect_frame with NORECORD set.
8224 (Fselect_window): Pass NORECORD to Fselect_frame.
8225 (Fset_window_configuration): Handle NORECORD argument in call of
8226 do_switch_frame.
8227 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
8228 Fset_frame_selected_window.
8229 * keyboard.c (command_loop_1): Handle NORECORD in call of
8230 Fselect_frame (currently ifdefd).
8231
9020b223
GM
82322008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
8233
8234 * emacs.c (USAGE2): Untabify.
8235
793ffee8
SM
82362008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
8237
8238 * composite.c (fill_gstring_header): Fix copy/paste typo.
8239
ab6d1131
MR
82402008-10-31 Martin Rudalics <rudalics@gmx.at>
8241
8242 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
8243 (Fother_window): Rename argument and rewrite doc-string.
8244 (select_window_norecord): Fix return value. (Bug#1276)
8245
601a9cf1
JB
82462008-10-30 Juanma Barranquero <lekktu@gmail.com>
8247
8248 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
8249 new frames overriding foreground for tooltips. Based on similar patch
8250 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
8251
813b0652
CY
82522008-10-29 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * emacs.c (Fdaemon_initialized): Initialize nfd.
8255
4414f58f
MR
82562008-10-29 Martin Rudalics <rudalics@gmx.at>
8257
8258 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
8259 (Fwindow_text_height): Clarify doc-strings.
8260 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
8261 doc-string of window-scroll-functions.
8262
ecdcaa09
RS
82632008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
8264
8265 * category.c (syms_of_category): Fix typo in docstring.
8266
23fe745a
JB
82672008-10-28 Juanma Barranquero <lekktu@gmail.com>
8268
8269 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
8270 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
8271 Fix typos in docstrings.
8272
ff808935
DN
82732008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
8274
8275 * emacs.c (daemon_pipe): Make non-static.
8276 (IS_DAEMON): Move definition ...
8277 * lisp.h (IS_DAEMON): ... here.
8278 (daemon_pipe): Declare.
8279 (is_daemon): Remove.
8280 * dispnew.c (init_display): Use IS_DAEMON.
8281
fc012771
SM
82822008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
8283
8284 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
8285 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
8286
8287 * emacs.c (is_daemon): Remove.
8288 (main): Don't set is_daemon.
8289 (IS_DAEMON): New macro.
8290 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 8291 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
8292 parent exits.
8293 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
8294
d8bdbe6f
CY
82952008-10-27 Chong Yidong <cyd@stupidchicken.com>
8296
d1a072bf
CY
8297 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
8298 over-sized glyph, draw it with the default glyph width.
8299
e2e325aa
CY
8300 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8301 glyph, draw it with the default glyph width.
8302
8303 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
8304 glyph, draw it with the default glyph width.
8305
d8bdbe6f
CY
8306 * xdisp.c (try_scrolling): When computing the distance from the
8307 scroll margin to PT, try moving some distance past the window
8308 bottom before giving up.
8309
7bfac547
MR
83102008-10-27 Martin Rudalics <rudalics@gmx.at>
8311
8312 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
8313 (Fset_window_buffer): Explain in doc-string that a window can be
8314 "strongly" dedicated to its buffer.
8315
4ff029f6
DN
83162008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
8317
8318 * emacs.c (daemon_name): New variable.
8319 (main): Deal with --daemon=SERVER_NAME.
8320 (Fdaemonp): Return a name if one was passed to --daemon.
8321
5790ef40
DN
83222008-10-26 Romain Francoise <romain@orebokech.com>
8323
f9bd0df9 8324 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
8325 (main): Create a pipe before forking, make the parent exit only after
8326 the child has closed its end of the pipe. Move closing the
8327 descriptors ...
8328 (Fdaemon_initialized): ... here. New function.
8329
f5385255
SM
83302008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
8331
4d632321
SM
8332 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
8333 the previous unoptimized table.
8334
f5385255
SM
8335 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
8336 the distinction between non-nil and non-t value of `dedicated'.
8337
6c56a0f3
CY
83382008-10-25 Chong Yidong <cyd@stupidchicken.com>
8339
8340 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 8341 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 8342
fec89261
MR
83432008-10-25 Martin Rudalics <rudalics@gmx.at>
8344
8345 * window.c (Fget_buffer_window, Fdelete_windows_on)
8346 (Freplace_buffer_in_windows): Make buffer argument optional and
8347 rename to buffer_or_name.
8348
34fcddd0
CY
83492008-10-24 Chong Yidong <cyd@stupidchicken.com>
8350
f5385255
SM
8351 * xdisp.c (handle_single_display_spec, handle_display_prop):
8352 Undo 2005-05-16 change.
34fcddd0
CY
8353 (handle_stop): Pop iterator if it's loaded with an empty string.
8354 (get_overlay_strings_1): Don't save iterator if it's loaded with
8355 an empty string (bug#1201).
8356
064766f2
KH
83572008-10-24 Kenichi Handa <handa@m17n.org>
8358
8359 * ftfont.c (ftfont_otf_features): Fix previous change.
8360 (ftfont_otf_capability): Check FeatureList.FeatureCount before
8361 calling ftfont_otf_features.
8362
f9bd0df9 83632008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
8364
8365 * font.c (font_match_p): Fix for the case that a vector of
8366 characters is in script-representative-chars.
8367
1dae9197
MA
83682008-10-24 Michael Albinus <michael.albinus@gmx.de>
8369
8370 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 8371 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
8372 (xd_read_queued_messages): Catch Qdbus_error from the macros.
8373 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 8374 macro. (Bug#1186)
1dae9197 8375
f9bd0df9 83762008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
8377
8378 * s/sol2-10.h: New file.
8379
878a4584
JB
83802008-10-23 Juanma Barranquero <lekktu@gmail.com>
8381
8382 * xdisp.c (fill_glyph_string): Fix typo in source (though the
8383 poor beast has survived 9+ years and the jump from xterm.c!).
8384
cd265ca6
MR
83852008-10-23 Martin Rudalics <rudalics@gmx.at>
8386
8387 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
8388 Reword doc-string.
f5385255 8389 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 8390
472a4dc9
JB
83912008-10-23 Juanma Barranquero <lekktu@gmail.com>
8392
8393 * character.c (syms_of_character) <script-representative-chars>:
8394 <unicode-category-table>: Doc fixes.
8395
159bd5a2
NF
83962008-10-23 Noah Friedman <friedman@splode.com>
8397
8398 * coding.c (make_conversion_work_buffer): Check that
8399 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
8400 Fget_buffer_create.
8401
49f9c344
KH
84022008-10-23 Kenichi Handa <handa@m17n.org>
8403
8404 * font.c (font_add_log): Check the values of extra properties.
8405
12bb3111
MR
84062008-10-22 Martin Rudalics <rudalics@gmx.at>
8407
8408 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8409 Reword doc-string.
8410 (Fset_window_parameter): Use NILP.
8411 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 8412 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 8413
bbeb4e99
JB
84142008-10-22 Juanma Barranquero <lekktu@gmail.com>
8415
8416 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
8417
84182008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
8419
8420 * nsfns.m (ns_appkit_version): New function.
8421 (x-server-version): Use it.
8422 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
8423 (x-server-vendor): Don't check_ns().
8424
8425 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
8426
a9b555d3
JB
84272008-10-22 Juanma Barranquero <lekktu@gmail.com>
8428
8429 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
8430 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
8431
4626499f
KH
84322008-10-22 Kenichi Handa <handa@m17n.org>
8433
e3681952
KH
8434 * syntax.c (scan_words): Call word_boundary_p instead of comparing
8435 scripts.
8436
4626499f
KH
8437 * category.c (word_boundary_p): Check scripts instead of charset.
8438 Handle nil value in word-separating-categories and
8439 word-combining-categories.
8440 (syms_of_category): Fix docstrings of word-separating-categories
8441 and word-combining-categories.
8442
1560f91a
EZ
84432008-10-21 Eli Zaretskii <eliz@gnu.org>
8444
8445 * coding.c (Fencode_coding_region, Fdecode_coding_region)
8446 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
8447
f4668441
MR
84482008-10-21 Martin Rudalics <rudalics@gmx.at>
8449
8450 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
8451 Rename arg "buffer" to "buffer_or_name".
8452 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
8453 it optional.
8454 (no_switch_window): Remove since the return value is not used.
a9b555d3 8455 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
8456 Consider window as dedicated when Fwindow_dedicated_p returns a
8457 non-nil value.
8458 * lisp.h: Remove prototype for no_switch_window.
8459
fd75ddb2
JD
84602008-10-21 Jan Djärv <jan.h.d@swipnet.se>
8461
8462 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 8463 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 8464
07295713
KH
84652008-10-21 Kenichi Handa <handa@m17n.org>
8466
8467 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
8468 check Vlatin_extra_code_table.
8469
712adc82
EZ
84702008-10-20 Eli Zaretskii <eliz@gnu.org>
8471
8472 * fileio.c (Fset_file_modes): Doc fix.
8473
f549eb0b
MA
84742008-10-19 Michael Albinus <michael.albinus@gmx.de>
8475
8476 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
8477 in arrays.
8478
aac0c6e3
MR
84792008-10-19 Martin Rudalics <rudalics@gmx.at>
8480
8481 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
8482 Mention kill-buffer in doc-string.
8483 (Fset_window_buffer): Reinsert tem check removed in last commit.
8484 (Fenlarge_window, Fshrink_window): Have argument names and
8485 doc-string follow Elisp manual more closely.
8486
84872008-10-18 Eli Zaretskii <eliz@gnu.org>
8488
8489 * fileio.c (Fset_file_modes): Doc fix.
8490
84912008-10-18 Martin Rudalics <rudalics@gmx.at>
8492
8493 * window.c (Fwindow_width, Fset_window_start)
8494 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
8495 (Fdelete_windows_on, Freplace_buffer_in_windows):
8496 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
8497 (Fwindow_dedicated_p): Make window argument optional.
8498 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
8499 (Fset_window_buffer): Respect any non-nil dedicated value for
8500 window. Rename "buffer" argument to "buffer_or_name".
8501
85022008-10-18 Ulrich Mueller <ulm@gentoo.org>
8503
8504 * m/sh3.h: New file, machine description for SuperH.
8505
85062008-10-17 Martin Rudalics <rudalics@gmx.at>
8507
8508 * window.c (Fsplit_window): Rename arg horflag to horizontal.
8509
85102008-10-17 Kenichi Handa <handa@m17n.org>
8511
8512 * ftfont.c (ftfont_otf_features): Fix indexing
8513 gsub_gpos->FeatureList.Feature. Check the validity of indices.
8514
85152008-10-16 Magnus Henoch <mange@freemail.hu>
8516
8517 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
8518 (Fdbus_call_method_asynchronously): Ditto.
8519 This change makes C-h f display the argument list.
8520
85212008-10-16 Chong Yidong <cyd@stupidchicken.com>
8522
8523 * fileio.c (Fexpand_file_name): Doc fix.
8524
8525 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
8526 of :foreground and :background equivalent to unspecified (20.x
8527 compatibility).
8528
85292008-10-15 Eli Zaretskii <eliz@gnu.org>
8530
8531 * buffer.c (syms_of_buffer): Doc fix.
8532
85332008-10-14 Kenichi Handa <handa@m17n.org>
8534
8535 * font.c (font_clear_prop): When clearing font width, clear the
8536 average width field too.
8537
85382008-10-12 Andreas Schwab <schwab@suse.de>
8539
8540 * ftfont.c (ftfont_shape_by_flt): Make static.
8541 * ftfont.h (ftfont_shape_by_flt): Don't declare.
8542
8543 * font.c: Don't include <m17n-flt.h>.
8544
85452008-10-10 Eli Zaretskii <eliz@gnu.org>
8546
8547 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
8548
85492008-10-09 Eli Zaretskii <eliz@gnu.org>
8550
8551 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
8552 away code.
8553
85542008-10-09 Chong Yidong <cyd@stupidchicken.com>
8555
8556 * dispnew.c (update_text_area): Avoid looping due to large glyph
8557 overhangs (bug#1070).
8558
85592008-10-09 Kenichi Handa <handa@m17n.org>
8560
8561 * fontset.c (face_for_char): If face->fontset is negative, just
8562 return ascii_face.
8563
f5385255
SM
8564 * font.c (font_delete_unmatched): Fix previous change.
8565 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
8566
85672008-10-09 Martin Rudalics <rudalics@gmx.at>
8568
8569 * frame.c (Fraise_frame): On text-only terminals select frame in
8570 order to make it visible. (Bug#1061)
8571
85722008-10-08 Chong Yidong <cyd@stupidchicken.com>
8573
8574 * fontset.c (fontset_find_font): Check frame validity.
8575
85762008-10-07 Chong Yidong <cyd@stupidchicken.com>
8577
a9b555d3 8578 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
8579 (xg_display_close): Allow Emacs to close all displays (bug#985).
8580
85812008-10-06 Andreas Schwab <schwab@suse.de>
8582
f5385255 8583 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
8584
85852008-10-06 Chong Yidong <cyd@stupidchicken.com>
8586
f5385255 8587 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 8588
a9b555d3 8589 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
8590
8591 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
8592 during initialization.
8593
85942008-10-04 Eli Zaretskii <eliz@gnu.org>
8595
8596 * xdisp.c (redisplay_internal): If frame switched, redisplay the
8597 whole thing on MSDOS frames as well as on a TTY.
8598
8599 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
8600 well as for TTY.
8601 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
8602 well as on a TTY.
8603
8604 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
8605 as well as for TTY.
8606
8607 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
8608
8609 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
8610 MSDOS frames as well.
8611
86122008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8613
8614 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
8615 correct arguments.
b71ac3dd 8616 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
8617
86182008-10-03 Glenn Morris <rgm@gnu.org>
8619
8620 * emacs.c (USAGE1): Add --daemon.
8621
86222008-10-02 Eli Zaretskii <eliz@gnu.org>
8623
8624 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
8625 100, so it's in percents as advertised.
8626
86272008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8628
8629 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
8630 (ns_output.current_cursor, ns_output.desired_cursor)
8631 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
8632 (FRAME_NEW_CURSOR_COLOR): Remove.
8633
8634 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 8635 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
8636 enumeration (HOLLOW_BOX_CURSOR, etc.).
8637
8638 * nsterm.m (ns_frame_rehighlight): Remove commented code.
8639 (draw_window_cursor): Simplify code.
f5385255
SM
8640 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
8641 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 8642 updates manually.
a9b555d3
JB
8643 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
8644 Use core Emacs cursor types.
aac0c6e3 8645
b8ff72fa 8646 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
8647
86482008-10-02 Martin Rudalics <rudalics@gmx.at>
8649
8650 * process.c (Faccept_process_output): Fix doc-string.
8651
86522008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
8653
8654 * gmalloc.c (__sbrk): Also define for uClibc.
8655
8656 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
8657 for uClibc.
8658
86592008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8660
8661 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
8662 styles.
8663 (nsfont_open): Reenable the cache.
8664
86652008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8666
8667 * font.c (font_matching_entity): Reflect ATTRS in font selection.
8668 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
8669
86702008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
8671
8672 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
8673 a suspended terminal.
8674
86752008-09-30 Michael Albinus <michael.albinus@gmx.de>
8676
8677 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
8678
86792008-09-30 Eli Zaretskii <eliz@gnu.org>
8680
8681 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
8682
86832008-09-30 Chong Yidong <cyd@stupidchicken.com>
8684
8685 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
8686 in a continued line coincides with a line beginning.
8687
86882008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8689
8690 * nsfont.m (nsfont_trait_distance): Fix bug.
8691 (nsfont_list): Return a list rather than a vector (syncs with Handa
8692 changes of 2008-05-14).
8693 (nsfont_open): Improve logging.
8694
86952008-09-29 Andreas Schwab <schwab@suse.de>
8696
8697 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8698
86992008-09-28 Martin Rudalics <rudalics@gmx.at>
8700
8701 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
8702 name as char-resolve-modifiers.
8703 Reported by: Markus Triska <markus.triska@gmx.at>
8704
87052008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8706
8707 * dispnew.c (init_display): Return earlier when running as a daemon.
8708
87092008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8710
8711 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
8712
87132008-09-27 Eli Zaretskii <eliz@gnu.org>
8714
8715 * composite.c (Fcomposition_get_gstring)
8716 (Fcompose_region_internal, Fcompose_string_internal)
8717 (Ffind_composition_internal): Doc fix.
8718 (syms_of_composite) <compose-chars-after-function>: Doc fix.
8719 (syms_of_composite) <auto-composition-function>: Doc fix.
8720 (syms_of_composite) <composition-function-table>: Doc fix.
8721
87222008-09-25 Chong Yidong <cyd@stupidchicken.com>
8723
8724 * search.c (wordify): New argument for lax word-ends.
8725 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
8726
87272008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
8728
8729 * lisp.h (is_daemon): Declare.
8730 * dispnew.c (init_display): Do not try to initialize the terminal
8731 when running as a daemon.
8732
87332008-09-22 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
8736 x_display_pixel_height.
8737
87382008-09-22 Martin Rudalics <rudalics@gmx.at>
8739
8740 * undo.c (record_point): Don't call Fundo_boundary for first
8741 change. (Bug#731)
8742
87432008-09-22 Juanma Barranquero <lekktu@gmail.com>
8744
8745 * emacs.c (Fdaemonp): Doc fix.
8746
87472008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
8748
8749 * emacs.c (main): Place #ifdef in the proper place.
8750
87512008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8752
8753 * emacs.c (standard_args): Add --daemon.
8754 (main): Disconnect from the terminal when --daemon is passed.
8755 (is_daemon): New variable.
8756 (Fdaemonp): New function.
8757 (syms_of_emacs): Defsubr it.
8758
87592008-09-20 Chong Yidong <cyd@stupidchicken.com>
8760
8761 * xdisp.c (get_next_display_element): Handle string display
8762 correctly when checking for the end of a box run.
8763
87642008-09-20 Glenn Morris <rgm@gnu.org>
8765
8766 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
8767 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
8768 (Frename_file): Avoid copying to trash if a rename involves
8769 a delete. (Bug#964).
8770
87712008-09-20 Eli Zaretskii <eliz@gnu.org>
8772
8773 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
8774 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
8775 frames as well as termcap frames.
8776 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
8777 get_named_tty.
8778
87792008-09-19 Eli Zaretskii <eliz@gnu.org>
8780
8781 * process.c (procfs_system_process_attributes): Fix cmdline in
8782 case /proc/PID/cmdline is empty.
8783
8784 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
8785 x_display_pixel_height.
8786
87872008-09-19 Juanma Barranquero <lekktu@gmail.com>
8788
8789 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
8790
8791 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
8792 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
8793
87942008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
8795
8796 * dispextern.h (struct it): Move line_wrap away from the middle of
8797 bitfields. Move voffset in struct iterator_stack_entry after the
8798 bitfields. Move tab_width near after another short.
8799
88002008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
8801
8802 * frame.h (struct frame): Move alpha from the middle of bitfields.
8803
8804 * window.h (struct window): Move frozen_window_start_p after the
8805 rest of the bitfields to reduce padding.
8806
88072008-09-18 Chong Yidong <cyd@stupidchicken.com>
8808
8809 * xterm.h (x_display_info): Remove `height' and `width' members.
8810
8811 * nsterm.h (ns_display_info): Remove `height' and `width' members.
8812
8813 * w32term.h (w32_display_info): Remove `height', `width',
8814 `height_in', and `width_in' members.
8815
b8ff72fa
SM
8816 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8817 New functions.
aac0c6e3
MR
8818 (x_calc_absolute_position): Use them.
8819 (x_term_init): Omit removed `height' and `width' members.
8820
b8ff72fa
SM
8821 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8822 New functions.
aac0c6e3
MR
8823 (w32_read_socket, x_calc_absolute_position): Use them.
8824 (w32_initialize_display_info, w32_term_init): Omit removed members
8825 of w32_display_info.
8826
b8ff72fa
SM
8827 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
8828 New functions.
8829 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 8830
b8ff72fa
SM
8831 * xterm.c (x_display_pixel_height, x_display_pixel_width):
8832 New functions.
aac0c6e3
MR
8833 (x_calc_absolute_position): Use them.
8834 (x_term_init): Omit removed `height' and `width' members.
8835
8836 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
8837 (compute_tip_xy):
8838 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
8839 * xmenu.c (menu_position_func): Use x_display_pixel_height and
8840 x_display_pixel_width.
8841
88422008-09-18 Kenichi Handa <handa@m17n.org>
8843
8844 * composite.c (fill_gstring_header): Don't check FROM and TO here.
8845 (composition_compute_stop_pos): Fix handling of static composition.
8846 (Fcomposition_get_gstring): Check FROM and TO at first.
8847
88482008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8849
46e722a9 8850 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
8851 mixup (YAILOM).
8852
88532008-09-17 Chong Yidong <cyd@stupidchicken.com>
8854
8855 * indent.c (Fvertical_motion): Use position reported by iterator
8856 instead of PT for determining screen motion (bug#943).
8857
88582008-09-17 Romain Francoise <romain@orebokech.com>
8859
8860 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
8861
88622008-09-17 Kenichi Handa <handa@m17n.org>
8863
8864 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
8865
8866 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
8867 if necessary.
8868
88692008-09-16 Kenichi Handa <handa@m17n.org>
8870
8871 * coding.c (make_conversion_work_buffer): Avoid calling
8872 Fget_buffer_create if it is not necessary.
8873
88742008-09-15 Martin Rudalics <rudalics@gmx.at>
8875
8876 * window.c (Fselect_window): Don't update window_select_count and
8877 use_time when norecord is not nil.
8878
88792008-09-14 Kenichi Handa <handa@m17n.org>
8880
8881 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
8882 specpdl_ptr.
8883
88842008-09-12 Kenichi Handa <handa@m17n.org>
8885
8886 * indent.c (scan_for_column): Don't handle automatic composition
8887 if the current buffer is not associated with a window.
8888
8889 * composite.c (composition_reseat_it): If the current buffer is
8890 not associated with a window, ignore the automatic composition.
8891 (find_automatic_composition): Likewise.
8892
88932008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8894
8895 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
8896 (Fgpm_mouse_stop): Use it.
8897 * termhooks.h (close_gpm): Declare.
8898 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
8899 connection if Gpm_GetEvent fails.
8900
8901 * window.c (set_window_buffer): Always preserve current-buffer.
8902
89032008-09-12 Glenn Morris <rgm@gnu.org>
8904
8905 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
8906
89072008-09-11 Glenn Morris <rgm@gnu.org>
8908
8909 * charset.c (charset-map-path): Doc fix.
8910
89112008-09-10 Kenichi Handa <handa@m17n.org>
8912
8913 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
8914
8915 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
8916 compose a grapheme cluster with the preceding base glyph.
8917
8918 * composite.c (composition_compute_stop_pos): Fix previous change.
8919 Reset cmp_it->id to -1 at first.
8920
89212008-09-10 Glenn Morris <rgm@gnu.org>
8922
8923 * Makefile.in (character.o, chartab.o): Fix config.h typo.
8924
89252008-09-09 Chong Yidong <cyd@stupidchicken.com>
8926
8927 * keyboard.c (read_key_sequence): Reapply translation maps when
8928 switching keyboards.
8929
89302008-09-09 Kenichi Handa <handa@m17n.org>
8931
8932 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
8933 characters.
8934
8935 * composite.c (FORWARD_CHAR): Fix calculation
8936 of (POSITION).pos_byte.
8937 (composition_compute_stop_pos): Limit the search of composition to
8938 at most 500 characters ahead. If we reach the limit or find a
8939 newline, set cmp_it->ch to -2 and return 0.
8940 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
8941
89422008-09-08 Kenichi Handa <handa@m17n.org>
8943
8944 * indent.c (Fvertical_motion): Be sure to set
8945 it_overshoot_expected if it.cmp_it.id is non-negative.
8946
89472008-09-07 Andreas Schwab <schwab@suse.de>
8948
8949 * callproc.c (Fcall_process): Don't hold references to string data
8950 across garbage collection. Move initialisation of new_argv down
8951 to avoid compiler bug.
8952
89532008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8954
8955 * process.c (Fsystem_process_attributes): Doc fix.
8956
89572008-09-07 Chong Yidong <cyd@stupidchicken.com>
8958
8959 * callproc.c (Fcall_process): Canonicalize current directory name.
8960
8961 * xdisp.c (move_it_to): When moving by vpos, ensure that the
8962 iterator advances to the next line if the current line ends in a
8963 continued tab.
8964
89652008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
8966
8967 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
8968 member to point to cmp_from.
8969
8970 * xdisp.c: Doc fix for references to gidx data member.
8971
89722008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8973
8974 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
8975
89762008-09-07 Kenichi Handa <handa@m17n.org>
8977
8978 * composite.c (FORWARD_CHAR): Check STOP after
8979 incrementing (POSITION).pos.
8980
89812008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
8982
8983 * process.c (Fsystem_process_attributes): Doc fix.
8984
89852008-09-06 Chong Yidong <cyd@stupidchicken.com>
8986
8987 * keyboard.c (Ftop_level): Doc fix.
8988
89892008-09-06 Eli Zaretskii <eliz@gnu.org>
8990
8991 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
8992 minibuffer, don't let lower part of menu invade the echo area.
8993
8994 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
8995 "char *q" to access menu text and advance through it. Revert the
8996 change that displayed ">" instead of ASCII character 0x10.
8997
89982008-09-05 Eli Zaretskii <eliz@gnu.org>
8999
9000 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
9001 toggle boxes and radio buttons on MS-DOS as well.
9002
90032008-09-05 Kenichi Handa <handa@m17n.org>
9004
9005 * composite.c (autocmp_chars): Check lookback count.
9006 (composition_compute_stop_pos): Set cmp_it->lookback.
9007 (composition_reseat_it): Check lookback count.
9008 (struct position_record): New struct.
9009 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
9010 (find_automatic_composition): New function.
9011 (composition_adjust_point): Use find_automatic_composition.
9012
9013 * dispextern.h (struct composition_it): New member lookback.
9014
90152008-09-02 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
9018 if moving by a single line.
9019
90202008-09-02 Andreas Schwab <schwab@suse.de>
9021
9022 * xterm.c (x_delete_display): Fix merge error.
9023
9024 * fileio.c (Fexpand_file_name): Remove unused variables.
9025
90262008-09-02 Eli Zaretskii <eliz@gnu.org>
9027
9028 * fileio.c (Fexpand_file_name): Copy argument `name' into local
9029 storage on all platforms, not just on DOS_NT.
9030
90312008-09-02 Jason Rumney <jasonr@gnu.org>
9032
b8ff72fa
SM
9033 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
9034 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
9035
90362008-09-01 Chong Yidong <cyd@stupidchicken.com>
9037
9038 * xfaces.c (Finternal_set_alternative_font_family_alist)
9039 (Finternal_set_alternative_font_registry_alist): Properly copy
9040 entire alist structure.
9041
90422008-09-01 Kenichi Handa <handa@m17n.org>
9043
d66c0241 9044 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 9045 representative chars of the script is a vector.
d66c0241
JB
9046 (ftfont_list): Handle the case where the representative chars of
9047 the script is a vector.
aac0c6e3
MR
9048
9049 * character.c (syms_of_character): Docstring of
9050 script-representative-chars fixed.
9051
90522008-08-31 Eli Zaretskii <eliz@gnu.org>
9053
9054 * msdos.c (BUILD_CHAR_GLYPH): New macro.
9055 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
9056 the menu. Allocate larger buffer for `text', to account for
9057 possible ^C characters.
9058
90592008-08-31 Martin Rudalics <rudalics@gmx.at>
9060
9061 * xdisp.c (prepare_menu_bars): Don't call
9062 Vwindow_size_change_functions with arg Qt.
9063
90642008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
9065
9066 * font.h (font_range):
9067 * fileio.c (report_file_error):
46e722a9
SM
9068 * composite.c (composition_update_it): Yet another int/Lisp_Object
9069 mixup (YAILOM).
aac0c6e3
MR
9070
90712008-08-30 Glenn Morris <rgm@gnu.org>
9072
9073 * data.c (Fmake_variable_frame_local): Doc fix.
9074
9075 * frame.c (Fmodify_frame_parameters): Doc fix.
9076
90772008-08-30 Eli Zaretskii <eliz@gnu.org>
9078
9079 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
9080 needed by GetTokenInformation.
9081 (w32_system_process_attributes): Check return values of all system
9082 APIs.
9083
9084 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
9085 only when the state changes.
9086 (IT_update_begin, IT_update_end): Add termscript trace.
9087
9088 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
9089 clipboard is unavailable. Set dst to NULL if it doesn't point to
9090 malloc'ed data.
9091 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
9092 passing random values to xfree.
9093
9094 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 9095 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
9096
90972008-08-29 Jason Rumney <jasonr@gnu.org>
9098
9099 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
9100
91012008-08-29 Eli Zaretskii <eliz@gnu.org>
9102
9103 * composite.c (fill_gstring_body): Avoid compiler warnings.
9104
9105 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
9106 LGLYPH_SET_CODE to avoid compiler warnings.
9107
2ae37cf0 9108 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
9109
9110 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
9111
9112 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
9113 LGLYPH_SET_CODE.
9114
91152008-08-29 Kenichi Handa <handa@m17n.org>
9116
9117 * fileio.c (report_file_error): Don't downcase the first character
9118 of errstring if it is still unibyte.
9119
91202008-08-29 Kenichi Handa <handa@m17n.org>
9121
9122 These changes are to re-implement the automatic composition so
9123 that it doesn't use text properties.
9124
9125 * Makefile.in (ftfont.o): Depend on composite.h.
9126 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
9127
9128 * character.h (Vunicode_category_table): Extern it.
9129
9130 * character.c (Vunicode_category_table): New variable.
9131 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
9132
9133 * chartab.c (optimize_sub_char_table): Perform more greedy
9134 optimization.
9135
b8ff72fa
SM
9136 * composite.h (enum composition_method):
9137 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
9138 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
9139 (Vcomposition_function_table): Extern it.
9140 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
9141 (composition_gstring_put_cache, composition_gstring_from_id)
9142 (composition_gstring_p, composition_gstring_width)
9143 (composition_compute_stop_pos, composition_reseat_it)
9144 (composition_update_it, composition_adjust_point): Extern them.
9145 (Fcomposition_get_gstring): EXFUN it.
9146
d66c0241 9147 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
9148 (Vcomposition_function_table)
9149 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
9150 (gstring_hash_table, gstring_work, gstring_work_headers):
9151 New variables.
aac0c6e3
MR
9152 (gstring_lookup_cache, composition_gstring_put_cache)
9153 (composition_gstring_from_id, composition_gstring_p)
9154 (composition_gstring_width, fill_gstring_header)
9155 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
9156 (composition_reseat_it, composition_update_it)
b8ff72fa 9157 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
9158 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
9159 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 9160 Defsubr composition_get_gstring.
aac0c6e3
MR
9161
9162 * dispextern.h (struct glyph): New union u.cmp. Delete the member
9163 cmp_id.
9164 (struct glyph_string): Delete the member gidx. New members
9165 cmp_id, cmp_from, and cmp_to.
9166 (enum it_method): Delete GET_FROM_COMPOSITION.
9167 (struct composition_it): New struct.
9168 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
9169 Delete c, len, cmp_id, cmp_len in u.comp.
9170
9171 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 9172 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 9173 (enum lglyph_indices): Likewise.
b8ff72fa 9174 (font_range): Adjust extern.
aac0c6e3
MR
9175 (font_fill_lglyph_metrics): Extern it.
9176
9177 * font.c (QCf): New variable.
9178 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9179 (font_prepare_composition): Delete this function.
9180 (font_range): Type and arguments changed.
9181 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
9182 (font_fill_lglyph_metrics): New function.
b8ff72fa 9183 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 9184 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
9185 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
9186 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
9187
9188 * fontset.h (font_for_char): Extern it.
9189
9190 * fontset.c (font_for_char): New function.
9191
9192 * ftfont.c: Include composite.h.
9193 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 9194 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
9195
9196 * indent.c: Include composite.h and dispextern.h.
9197 (check_composition): Delete this function.
9198 (scan_for_column): Handle composition by
9199 composition_compute_stop_pos, composition_reseat_it, and
9200 composition_update_it.
9201 (compute_motion): Likewise.
9202 (Fvertical_motion): Fix checking of composition.
9203
9204 * keyboard.c (adjust_point_for_property): Check composition by
9205 composition_adjust_point.
9206
b8ff72fa 9207 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
9208 struct glyph_string.
9209
b8ff72fa
SM
9210 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
9211 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
9212 struct glyph.
9213 (produce_composite_glyph): Likewise.
9214
b8ff72fa
SM
9215 * w32term.c (x_draw_composite_glyph_string_foreground):
9216 Adjust for the change of struct glyph_string.
aac0c6e3
MR
9217 (x_draw_glyph_string): Likewise.
9218
9219 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
9220 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
9221
9222 * xdisp.c: Include font.h.
9223 (it_props): Delete the entry for Qauto_composed.
9224 (init_iterator): Initialize it->cmp_it.id to -1.
9225 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 9226 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
9227 (handle_auto_composed_prop): Delete it.
9228 (handle_composition_prop): Handle only static composition.
9229 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
9230 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 9231 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
9232 (pop_it): Likewise.
9233 (get_next_element): Delete next_element_from_composition.
9234 (CHAR_COMPOSED_P): New macro.
9235 (get_next_display_element): For automatic composition, get a face
9236 from the font in the glyph-string.
9237 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 9238 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
9239 (next_element_from_string): Check if the character at the current
9240 position is composed by CHAR_COMPOSED_P.
9241 (next_element_from_buffer): Likewise.
d66c0241
JB
9242 (next_element_from_composition): Adjust for the change of struct it.
9243 Update it->cmp_it.
b8ff72fa
SM
9244 (dump_glyph): Adjust for the change of struct glyph.
9245 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
9246 it and struct glyph. Don't handle automatic composition here.
9247 (fill_gstring_glyph_string): New function.
9248 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 9249 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
9250 (BUILD_GSTRING_GLYPH_STRING): New macro.
9251 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
9252 automatic composition.
b8ff72fa 9253 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 9254 struct glyph.
b8ff72fa 9255 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 9256
b8ff72fa 9257 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
9258 the change of struct glyph_string.
9259 (x_draw_glyph_string): Likewise.
9260
92612008-08-29 Glenn Morris <rgm@gnu.org>
9262
9263 * buffer.c (word-wrap): Doc fix.
9264 * xdisp.c (truncate-partial-width-windows): Doc fix.
9265 Increase default to 50.
9266
92672008-08-29 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * xdisp.c (update_tool_bar_unwind): New function.
9270 (update_tool_bar): Temporarily set selected frame before building
9271 tool-bar items.
9272
92732008-08-28 Michael Albinus <michael.albinus@gmx.de>
9274
9275 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
9276 snprintf, respectively.
9277 (xd_append_arg): Convert strings with Fstring_make_unibyte.
9278
92792008-08-28 Chong Yidong <cyd@stupidchicken.com>
9280
9281 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
9282 LDFLAGS to GNUstep CC invocation.
9283
92842008-08-27 Chong Yidong <cyd@stupidchicken.com>
9285
9286 * indent.c (Fvertical_motion): Revert last change. Handle the
9287 general case where we are moving forward, and PT spans multiple
9288 screen lines.
9289
9290 * eval.c (find_handler_clause): Temporarily increase
9291 max-lisp-eval-depth while printing the backtrace buffer, to
9292 guarantee that help-mode code can run.
9293
92942008-08-27 Eli Zaretskii <eliz@gnu.org>
9295
9296 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
9297 colors under -rv.
9298 (IT_set_frame_parameters): Don't swap foreground and background
9299 colors if `(reverse . t)' is present in the frame properties.
9300 (internal_terminal_init): Call init_frame_faces only for the
9301 initial frame.
9302
93032008-08-27 Andreas Schwab <schwab@suse.de>
9304
9305 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
9306
93072008-08-27 Andreas Schwab <schwab@suse.de>
9308
9309 * search.c (search_buffer): Set char_base to zero only at the end.
9310
93112008-08-27 Kenichi Handa <handa@m17n.org>
9312
b8ff72fa 9313 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
9314
93152008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
9316
9317 * xterm.c (x_term_init): Temporarily hide the partially
9318 initialized terminal while calling vendor-specific-keysyms.
9319
93202008-08-26 Eli Zaretskii <eliz@gnu.org>
9321
9322 * msdos.c (internal_terminal_init): Most initializations done only
9323 once, especially initial_screen_colors[] and termscript open.
9324
93252008-08-26 Chong Yidong <cyd@stupidchicken.com>
9326
9327 * eval.c (Fcondition_case): Doc fix.
9328
9329 * widgetprv.h (EmacsFramePart): Change font member to the new font
9330 struct.
9331
9332 * widget.c: Include character.h and font.h for XSETFONT.
9333 (setup_frame_gcs): Compute X font id from font struct, just once.
9334
93352008-08-26 Eli Zaretskii <eliz@gnu.org>
9336
9337 * term.c (get_named_tty): Fix last change.
9338
93392008-08-26 Chong Yidong <cyd@stupidchicken.com>
9340
9341 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 9342 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
9343
93442008-08-25 Eli Zaretskii <eliz@gnu.org>
9345
9346 * frame.c (do_switch_frame): Mark previously displayed frame as
9347 obscured for FRAME_MSDOS_P frames as well.
9348
93492008-08-24 Eli Zaretskii <eliz@gnu.org>
9350
9351 * frame.c (make_terminal_frame): Initialize f->terminal,
9352 f->terminal->reference_count, and scroll bars on MS-DOS as well.
9353 Set the top frame to newly created frame.
9354 (Fmake_terminal_frame): Reuse the_only_display_info.
9355
9356 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
9357 estimating available memory.
9358
b97439ce 93592008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
9360
9361 * nsterm.m (ns_draw_window_cursor): Don't call
9362 NSDisableScreenUpdates and NSEnableScreenUpdates on
9363 non-NS_IMPL_COCOA systems.
9364
93652008-08-23 Andreas Schwab <schwab@suse.de>
9366
9367 * process.c (procfs_system_process_attributes): Fix use of
9368 uninitialized variables.
9369
93702008-08-23 Eli Zaretskii <eliz@gnu.org>
9371
9372 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
9373
9374 * dispnew.c (init_display): Remove MS-DOS specific conditions for
9375 calling tty-set-up-initial-frame-faces.
9376
b8ff72fa
SM
9377 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
9378 Allow MSDOS frames along with X frames.
aac0c6e3
MR
9379
9380 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
9381 addition to output_termcap.
9382
9383 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
9384
9385 * termchar.h (FRAME_TTY): Support output_msdos_raw.
9386 (struct tty_display_info) [MSDOS]: Add fields related to mouse
9387 highlight.
9388
9389 * process.c [!subprocesses]: Define QCname.
9390 (syms_of_process): Intern and staticpro it.
9391
9392 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
9393 Adjust for changes in encoding/decoding routines.
9394 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
9395 encode_coding and decode_coding.
9396
b8ff72fa 9397 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
9398
9399 * dosfns.c: Include frame.h before termhooks.h.
9400 (dos_cleanup): Use CURTTY ()->termscript instead of a global
9401 variable termscript.
9402
9403 * s/msdos.h (USER_FULL_NAME): Define.
9404 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
9405
9406 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
9407 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
9408 pw->pw_gecos.
9409
9410 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
9411 SELECTED_FRAME as additional (1st) argument.
9412 (tty_read_avail_input): Handle output_msdos_raw in
9413 addition to output_termcap.
9414
9415 * msdos.c: Include frame.h before termhooks.h.
9416 (mouse_on, mouse_off, mouse_moveto, mouse_init)
9417 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
9418 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
9419 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
9420 (IT_set_terminal_modes, IT_reset_terminal_modes)
9421 (IT_set_frame_parameters): Use tty->termscript instead of a global
9422 variable termscript.
9423 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
9424 global variable terminal_coding. Don't refer to
9425 Vnonascii_translation_table.
9426 (internal_terminal_init): Set Vwindow_system in current_kboard.
9427 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
9428 Announce date and time of session start, if termscript is open.
9429 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
9430 term.c:init_tty). Open termscript only of not already open.
9431 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
9432 here instead of dos_ttraw. Don't initialize display if this is an
9433 initial tty. Don't set FRAME_FONT.
9434 (Vwindow_system_version): Bump to 23.
9435 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
9436 is available, set up mouse_position_hook.
9437 (dos_ttraw, IT_set_terminal_modes): If called with initial
9438 terminal, do nothing.
9439 (IT_set_frame_parameters): Handle the Qtty_type frame
9440 parameter by calling internal_terminal_init.
9441 (dos_set_window_size, show_mouse_face)
9442 (clear_mouse_face, IT_note_mode_line_highlight)
9443 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
9444 (dos_rawgetc): Use tty_display_info instead of x_display_info.
9445 (initialize_msdos_display): New function.
9446 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
9447 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
9448 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
9449 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 9450 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
9451 (request_sigio, unrequest_sigio): Don't define, now defined on
9452 sysdep.c.
9453 (IT_write_glyphs): Rewrite to use encode_terminal_code.
9454
9455 * term.c [MSDOS]: Include msdos.h.
9456 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
9457 conditional to DOS_NT. Allow only one call to this function in a
9458 session. Don't allocate a new struct tty_display_info; instead,
9459 reuse the_only_display_info. Call get_tty_size to get screen
9460 dimensions. Call init_baud_rate to set bad_rate.
9461 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
9462 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 9463 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
9464 (get_tty_terminal, get_named_tty, Ftty_type)
9465 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
9466 output_termcap.
b8ff72fa
SM
9467 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
9468 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 9469 only when subprocesses are supported.
aac0c6e3
MR
9470
9471 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
9472 f->output_data.x.
9473 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
9474 terminal devices.
9475
5582fbc7 9476 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
9477 x_output.
9478 (FRAME_FONT): Use output_data.tty.
9479 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
9480 (struct x_display_info): Rename from display_info. Update all users in
9481 msdos.c.
aac0c6e3 9482 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 9483 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
9484 (dos_ttraw): Update prototype.
9485
9486 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
9487 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
9488
94892008-08-23 Jason Rumney <jasonr@gnu.org>
9490
9491 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
9492 (fn_TIFFSetDirectory): New library function used.
9493 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
9494 (tiff_load): Use :index to select among multiple images. Set count
9495 property when multiple images exist.
9496 (gif_format): Use :index, not :image.
9497
94982008-08-23 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * xdisp.c (try_scrolling): Check INT_MAX instead of
9501 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
9502 to obtain INT_MAX.
9503
95042008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
9505
9506 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
9507
95082008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
9509
9510 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
9511 GNUstep library location.
9512
95132008-08-21 Chong Yidong <cyd@stupidchicken.com>
9514
9515 * xfaces.c (x_update_menu_appearance): Check validity of menu font
9516 before using it.
9517
9518 * puresize.h (BASE_PURESIZE): Increase to 1250000.
9519
95202008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9521
9522 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
9523 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
9524 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
9525 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
9526 (EmacsApp-cursor_blink_handler): Remove declaration.
9527 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
9528 match 01 Feb 2008 changes in xterm.c.
9529 (ns_read_socket): Add cast to avoid warning.
9530 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
9531 GNUstep.
9532
95332008-08-20 Chong Yidong <cyd@stupidchicken.com>
9534
9535 * xselect.c (x_get_foreign_selection): Return nil if desired
9536 selection could not be obtained, instead of signalling an error.
9537
95382008-08-20 David Reitter <david.reitter@gmail.com>
9539
9540 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
9541 * nsterm.m: Remove ns-specific code for cursor blinking.
9542 (ns_draw_window_cursor): Clear cursor properly rather than
9543 redrawing the area. Respect width of bar cursors.
9544 These changes enable the use of generic blink-cursor-mode and
9545 generic cursor types in NS and support smooth cursor movements (do
9546 not blink off after command).
9547 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
9548 Nextstep, too.
9549
95502008-08-19 Kenichi Handa <handa@m17n.org>
9551
9552 * font.c (Vfont_log_deferred): New variable.
9553 (font_add_log): Check Vfont_log_deferred.
9554 (font_deferred_log): New function.
9555
9556 * font.h (font_deferred_log): Extern it.
9557
9558 * fontset.c (reorder_font_vector): Use encoding charset of fonts
9559 for sorting.
9560 (face_for_char): Use deferred log.
9561
95622008-08-18 Kenichi Handa <handa@m17n.org>
9563
9564 * fontset.c (face_for_char): Add font log.
9565
9566 * font.c (font_add_log): Add the font properties :script, :lang,
9567 and :otf in the log.
9568
95692008-08-17 Chong Yidong <cyd@stupidchicken.com>
9570
9571 * xdisp.c: Remove dead code.
9572 (handle_invisible_prop, next_overlay_string): Defer call to
9573 setup_for_ellipsis.
9574 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
9575
95762008-08-15 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * xfaces.c (lookup_derived_face): Properly handle possible zero
9579 return value of get_lface_attributes.
9580 (merge_faces): Don't tell lookup_derived_face to signal an error
9581 if face is not found.
9582
9583 * dired.c (Fdirectory_files): Doc fix.
9584
9585 * process.c (make_process): Initialize kill_without_query struct
9586 member.
9587
95882008-08-15 Eli Zaretskii <eliz@gnu.org>
9589
9590 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
9591 Alternative calculation of totphys for Visual Studio 6.
9592
9593 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
9594
9595 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
9596 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
9597 All users changed.
9598 (stat): Only root directory passed to GetDriveType. Allow RAM
9599 disk as well as local fixed disk when w32-get-true-file-attributes
9600 is set to `local'.
9601 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
9602 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
9603 (w32_cached_id, w32_add_to_cache): New functions.
9604 (get_name_and_id): Look account names in the cache before calling
9605 lookup_account_sid.
9606 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
9607 New initialization flags.
9608 (globals_of_w32): Initialize them to zero.
9609 (w32_system_process_attributes): Use w32_cached_id and
9610 w32_add_to_cache.
9611
96122008-08-14 Lawrence Mitchell <wence@gmx.li>
9613
9614 * lread.c (Fread_char, Fread_char_exclusive): If no character
9615 event is read before timeout is reached, return nil, rather than
9616 converting to a number.
9617
96182008-08-14 Chong Yidong <cyd@stupidchicken.com>
9619
9620 * fns.c (use_dialog_box): Doc fix.
9621
9622 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
9623 on OS X.
9624
96252008-08-13 Chong Yidong <cyd@stupidchicken.com>
9626
9627 * frame.c (Qns_parse_geometry): New var.
9628 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
9629
96302008-08-11 Chong Yidong <cyd@stupidchicken.com>
9631
9632 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9633 space character in calculating tabs.
9634
96352008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
9636
9637 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
9638
96392008-08-10 Glenn Morris <rgm@gnu.org>
9640
9641 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
9642 silence gcc "limited range of data type" warnings in some
9643 make_fixnum_or_float calls.
9644
96452008-08-09 Eli Zaretskii <eliz@gnu.org>
9646
9647 * w32.c (w32_system_process_attributes): If the process does not
9648 exist, return nil.
9649
9650 * w32.c: Include thelp32.h, psapi.h and coding.h.
9651 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
9652 declarations.
9653 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
9654 (Process32Next_Proc): New typedefs.
9655 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
9656 (g_b_init_process32_next, g_b_init_open_thread_token)
9657 (g_b_init_impersonate_self, g_b_init_revert_to_self)
9658 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
9659 (g_b_init_get_process_working_set_size)
9660 (g_b_init_global_memory_status_ex): New static variables.
9661 (globals_of_w32): Initialize them.
9662 (create_toolhelp32_snapshot, process32_first, process32_next)
9663 (open_thread_token, impersonate_self, revert_to_self)
9664 (get_process_memory_info, get_process_working_set_size)
9665 (global_memory_status, global_memory_status_ex): New wrapper
9666 functions.
9667 (w32_list_system_processes, w32_system_process_attributes)
9668 (enable_privilege, restore_privilege, ltime, process_times):
9669 New functions.
9670 (convert_time_raw): New function.
9671 (convert_time): Remove conversion of FILETIME into time in 100
9672 nsec units, call convert_time_raw instead.
9673
9674 * process.h (w32_list_system_processes, w32_system_process_attributes):
9675 Add prototypes.
9676 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
9677 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
9678 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
9679 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
9680
9681 * process.c (Fsystem_process_attributes): Doc fix.
9682
96832008-08-08 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
9686 a continued multi-char glyph; if so, advance to the actual glyph.
9687
96882008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9689
9690 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
9691
9692 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
9693 (.m.o): Use it.
9694 * config.in: Regenerate.
9695
96962008-08-07 Chong Yidong <cyd@stupidchicken.com>
9697
9698 * xdisp.c (redisplay_window): Revert last change.
9699 (try_window): Check bottom scroll margin too.
9700
97012008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9702
9703 * config.in: Regenerate.
9704
9705 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
9706 -list-load-path-shadows'.
9707 (nsgui.h): Reduce number of things depending on it.
9708
97092008-08-06 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
9712 instead of window-end which does the wrong thing at eob.
9713 (try_cursor_movement): Minor optimization.
9714 (redisplay_window): If scroll margin is defined, don't assume
9715 window doesn't need scrolling.
9716
97172008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9718
9719 * config.in: Regenerate.
9720
9721 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
9722 (mostlyclean): Don't delete *.d under NS.
9723
9724 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
9725
97262008-08-06 Kenichi Handa <handa@m17n.org>
9727
9728 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
9729
97302008-08-06 Andreas Schwab <schwab@suse.de>
9731
9732 * config.in: Regenerate.
9733
97342008-08-05 Chong Yidong <cyd@stupidchicken.com>
9735
9736 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
9737 forcing a window start.
9738
9739 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
9740 (auto_save_1): Update modtime when auto-save-list-file-name is on.
9741
97422008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9743
9744 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
9745 argument.
9746
97472008-08-05 Juanma Barranquero <lekktu@gmail.com>
9748
9749 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
9750 <scroll-down-aggressively, before-change-functions>:
9751 <after-change-functions>: Reflow docstrings.
9752
97532008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4e2af782 9754 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
9755
9756 Dock menu customization, based on a patch by Ken Raeburn, plus some
9757 other fixes.
9758 * nsmenu.m (dockMenu): New variable.
9759 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
9760
9761 * nsterm.h (dockMenu): Declare.
9762
9763 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
9764 (ns_term_init): Initialize dockMenu.
9765 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
9766 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
9767 left.
9768
9769 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
9770
97712008-08-04 Chong Yidong <cyd@stupidchicken.com>
9772
9773 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
9774
9775 * config.in: Regenerate.
9776
97772008-08-04 Seiji Zenitani <zenitani@mac.com>
9778
9779 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
9780
97812008-08-04 Chong Yidong <cyd@stupidchicken.com>
9782
9783 * nsterm.h (find_and_call_menu_selection): Fix prototype.
9784
97852008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9786
9787 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
9788
9789 * keyboard.h: Comment an #endif.
9790
9791 * lisp.h (have_menus_p): Adjust comment.
9792
9793 * menu.c (find_and_return_menu_selection): Fix comparison with
9794 client_data.
9795
9796 * nsmenu.m (popup_activated_flag): New variable.
9797 (popup_activated): New function.
9798 (menu-or-popup-active-p): New exported lisp definition.
9799 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
9800 when popup done.
9801 (ns_popup_dialog): Set popup_activated_flag.
9802
9803 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
9804 version for GNUstep (handled by conditional typedef in nsterm.m).
9805 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
9806 in rgb.txt).
9807
9808 * process.c (init_process): Use DARWIN_OS, not DARWIN.
9809
9810 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
9811
9812 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
9813
9814 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
9815 shortcircuit if popup_activated like GTK and X toolkit.
9816
9817 * m/inter386.h: Change DARWIN to DARWIN_OS.
9818
9819 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
9820 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
9821 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
9822 comment on NO_SOCK_SIGIO.
9823
98242008-08-03 Chong Yidong <cyd@stupidchicken.com>
9825
9826 * nsterm.m (windowDidResize): Remove stopModal call.
9827
98282008-08-03 Andreas Schwab <schwab@suse.de>
9829
9830 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
9831 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
9832
98332008-08-02 Chong Yidong <cyd@stupidchicken.com>
9834
9835 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
9836 Don't use uninitialized pointer variable when using getrlimit.
9837
98382008-08-02 Jason Rumney <jasonr@gnu.org>
9839
9840 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
9841
98422008-08-02 Eli Zaretskii <eliz@gnu.org>
9843
9844 * alloc.c (NSTATICS): Bump to 0x640.
9845
9846 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
9847
9848 * lisp.h: Add prototype for directory_files_internal.
9849
9850 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
9851 New functions.
9852 (syms_of_process): Defsubr them. Add initializations for various
9853 Q* symbols used in procfs_system_process_attributes.
9854 (procfs_list_system_processes, procfs_system_process_attributes)
9855 [HAVE_PROCFS]: New functions.
9856 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
9857 (procfs_get_total_memory): New functions.
9858
98592008-08-01 Juanma Barranquero <lekktu@gmail.com>
9860
9861 * xfaces.c (Fx_load_color_file): Fix previous change;
9862 it is #ifdef WINDOWSNT, not WINDOWS_NT.
9863
98642008-08-01 Michael Albinus <michael.albinus@gmx.de>
9865
9866 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
9867
98682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9869
9870 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
9871
98722008-08-01 Chong Yidong <cyd@stupidchicken.com>
9873
9874 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
9875
9876 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
9877 define NSApplicationDelegateReplySuccess.
9878 (EmacsView -converstationIdentifier): Use long instead of
9879 NSInteger for GNUstep, since it doesn't have NSInteger.
9880
9881 * xmenu.c: Revert last change.
9882
9883 * keyboard.h: Fix last change.
9884
98852008-08-01 Juanma Barranquero <lekktu@gmail.com>
9886
9887 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
9888 on Windows.
9889
98902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9891
9892 Warning clearing and clean-up in NS port.
9893 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
9894 Add prototypes.
9895 * nsgui.h (FACE_DEFAULT): Remove, unused.
9896 (XGCValues): Change colors to unsigned long.
9897 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
9898 nsterm.m.
9899 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
9900 (ns_list_fonts): Remove, unused.
9901 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
9902 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
9903 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
9904 (nsfont_draw): Compare face colors to 0, not nil.
9905 * nsmenu.m (struct widget_value): Drop unneeded declaration.
9906 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
9907 (-addSubmenuWithTitle:): Use NSMenuItem class.
9908 (ns_popup_menu): Use NO, not NULL, for enabled setting.
9909 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
9910 (ns_clip_to_row): Make gc arg a BOOL.
9911 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
9912 ns_clip_to_row() call.
9913 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
9914 used). Cast FRAME_FONT assignments.
9915 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
9916 (ns_string_to_lispmod): Change arg to const char.
9917 (ns_term_init): Use NSMenuItem class.
9918 (EmacsApp -openFile:): Move to different section of file.
9919 (EmacsApp -application:openFiles:): Don't return a value, call
9920 -replyToOpenOrPrint:.
9921 (EmacsView -keyDown:): Fix up cast.
9922 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
9923 (EmacsView -menuDown:): Cast tag in call to
9924 find_and_call_menu_selection().
9925 (ns_list_fonts): Remove, unused.
9926 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
9927 (ns_fontname_to_xlfd): Make static.
9928 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
9929 Remove prototypes (now in keyboard.h).
9930 (next_menubar_widget_id): Remove, unused.
9931 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
9932 Remove prototypes (now in keyboard.h).
9933 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
9934
99352008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
9936
9937 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
9938 (floatfns.o): Depend on syssignal.h.
9939 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
9940
9941 * systty.h: Fix previous change that removed BSD_TERMIOS.
9942 Add comments to #ifdefs.
9943
99442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9945
9946 * w32fns.c (w32-load-color-file): Remove.
9947 (x-open-connection): Use renamed Fx_load_color_file.
9948 * xfaces.c (x-load-color-file): Add.
9949 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
9950 Emacs.clr.
9951 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
9952
99532008-07-31 Michael Albinus <michael.albinus@gmx.de>
9954
9955 * dbusbind.c (Fdbus_call_method_asynchronously)
9956 (Fdbus_method_error_internal): New defuns.
9957 (xd_read_message): Handle also reply messages.
9958 (Vdbus_registered_functions_table): Extend docstring.
9959
99602008-07-31 Juanma Barranquero <lekktu@gmail.com>
9961
9962 * keyboard.c (gobble_input): Fix previous change.
9963
99642008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
9965
9966 * bitmaps/README:
9967 * xfns.c:
9968 * termcap.c:
9969 * term.c:
9970 * syswait.h:
9971 * systty.h:
9972 * systime.h:
9973 * syssignal.h:
9974 * sysdep.c:
9975 * process.h:
9976 * process.c:
9977 * print.c:
9978 * ndir.h:
9979 * lread.c:
9980 * keyboard.c:
9981 * getpagesize.h:
9982 * floatfns.c:
9983 * fileio.c:
9984 * emacs.c:
9985 * doc.c:
9986 * dispnew.c:
9987 * dired.c:
9988 * data.c:
9989 * callproc.c:
9990 * buffer.c:
9991 * README:
9992 * Makefile.in:
9993 * s/template.h:
9994 * s/msdos.h:
9995 * m/vax.h: Remove VMS support.
9996 * s/vms.h:
9997 * vlimit.h:
9998 * uaf.h:
9999 * temacs.opt:
10000 * param.h:
10001 * ioctl.h: Remove file.
10002
100032008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
10004
10005 * s/ms-w32.h (MULTI_KBOARD): Remove.
10006 * xterm.c:
10007 * xselect.c:
10008 * xfns.c:
10009 * window.c:
10010 * w32term.c:
10011 * w32fns.c:
10012 * terminal.c:
10013 * termhooks.h:
10014 * term.c:
10015 * sysdep.c:
10016 * keyboard.h:
10017 * keyboard.c:
10018 * frame.h:
10019 * frame.c:
10020 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
10021 * config.in: Regenerate.
10022
100232008-07-30 Jason Rumney <jasonr@gnu.org>
10024
10025 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
10026
10027 * w32font.c (w32font_encode_char): Leave as unicode if in range.
10028 (w32font_open_internal): Get unicode version of textmetrics.
10029 Don't enable or disable glyph indices here.
10030 (w32font_open): Disable use of glyph indices.
10031
10032 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
10033
100342008-07-30 Chong Yidong <cyd@stupidchicken.com>
10035
10036 * minibuf.c (Vread_buffer_function): Doc fix.
10037
100382008-07-30 John Paul Wallington <jpw@pobox.com>
10039
10040 * minibuf.c (read_buffer_completion_ignore_case): New var.
10041 (Fread_buffer): Use it.
10042
100432008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
10044
10045 * systty.h (sensemode): Remove empty #if. Remove reference to
10046 BSD_TERMIOS, unused.
10047
10048 * sysdep.c: Remove reference to DGUX.
10049 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
10050
10051 * config.in: Regenerate.
10052
100532008-07-30 Jason Rumney <jasonr@gnu.org>
10054
10055 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
10056
100572008-07-29 Jason Rumney <jasonr@gnu.org>
10058
10059 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
10060 is populated.
10061 (uniscribe_encode_char): Always use uniscribe.
10062 Avoid using context if cache is populated.
10063
100642008-07-29 Jan Djärv <jan.h.d@swipnet.se>
10065
10066 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
10067 open menu.
10068
10069 * gtkutil.c (menu_nav_ended): Remove.
10070 (create_menus): Remove signal connect for menu_nav_ended.
10071
100722008-07-28 Chong Yidong <cyd@stupidchicken.com>
10073
10074 * xdisp.c (redisplay_window): Check return value of
10075 compute_window_start_on_continuation_line before forcing a window
10076 start.
10077
100782008-07-28 Jason Rumney <jasonr@gnu.org>
10079
10080 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
10081
10082 * w32term.c (w32_enable_unicode_output, cleartype_active):
10083 Remove obsolete display options.
10084 (x_draw_glyph_string_background): Don't use old cleartype_active
10085 workaround.
10086 (w32_initialize): Remove cleartype_active initialization.
10087 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
10088
100892008-07-28 Andreas Schwab <schwab@suse.de>
10090
10091 * lisp.h (init_weak_hash_tables, syms_of_font)
10092 (xd_read_queued_messages, syms_of_dbusbind): Declare.
10093 (remove_hash_entry): Don't declare.
10094 * eval.c (maybe_call_debugger): Make static and move before use.
10095 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
10096 * xdisp.c: Include "gtkutil.h" if USE_GTK.
10097 * xterm.h (x_set_frame_alpha): Declare.
10098
100992008-07-28 Jan Djärv <jan.h.d@swipnet.se>
10100
10101 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
10102 (create_menus): Connect selection-done to menu_nav_ended.
10103
101042008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10105
10106 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
10107 Set Vx_resource_name to a fallback. Replace read of 'buffered'
10108 parameter with read of 'alpha' one.
10109 (Qns_frame_parameter): Remove.
5582fbc7 10110 * nsselect.m (selection-coding-system)
aac0c6e3
MR
10111 (next-selection-coding-system, Vselection_coding_system)
10112 (Vnext_selection_coding_system): Drop.
10113
101142008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10115
10116 * nsfns.m (do-applescript, do_applescript): Rename to
10117 ns-do-applescript, ns_do_applescript, and move within file.
10118
101192008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
10120
10121 Remove support for Mac Carbon.
10122 * mactoolbox.c:
10123 * macterm.h:
10124 * macterm.c:
10125 * macselect.c:
10126 * macmenu.c:
10127 * macgui.h:
10128 * macfns.c:
10129 * mac.c: Remove file.
10130 * s/darwin.h:
10131 * m/intel386.h:
10132 * xfaces.c:
10133 * xdisp.c:
10134 * window.c:
10135 * tparam.c:
10136 * termhooks.h:
10137 * termcap.c:
10138 * term.c:
10139 * syssignal.h:
10140 * sysselect.h:
10141 * sysdep.c:
10142 * process.c:
10143 * lread.c:
10144 * lisp.h:
10145 * keyboard.c:
10146 * image.c:
10147 * fringe.c:
10148 * frame.h:
10149 * frame.c:
10150 * fontset.c:
10151 * font.h:
10152 * font.c:
10153 * fns.c:
10154 * fileio.c:
10155 * emacs.c:
10156 * dispnew.c:
10157 * dispextern.h:
10158 * config.in:
10159 * atimer.c:
2ae37cf0 10160 * Makefile.in: Remove code for Carbon.
aac0c6e3 10161
f0131492 101622008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10163
10164 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
10165
101662008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10167
10168 * macterm.h (kCGBitmapByteOrder32Host): New define for
10169 non-universal SDKs.
10170
10171 * image.c (mac_create_cg_image_from_image, image_load_image_io)
10172 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10173
10174 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
10175 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
10176
101772008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
10178
10179 * w32inevt.c: Include dispextern.h.
10180
101812008-07-26 Andreas Schwab <schwab@suse.de>
10182
10183 * print.c (print_object): Fix off-by-one in last change.
10184
101852008-07-25 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * term.c (syms_of_term): Don't initialize default_orig_pair,
10188 default_set_foreground and default_set_background on Windows.
10189
101902008-07-25 Jason Rumney <jasonr@gnu.org>
10191
10192 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
10193 ScriptItemize. Clean up return value checking. Remove unused
10194 variables.
10195 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
10196 shaping engine.
10197
10198 * w32font.c (w32font_has_char): Handle the case where we can't
10199 determine the script for a character.
10200
102012008-07-25 Chong Yidong <cyd@stupidchicken.com>
10202
10203 * term.c (syms_of_term): Initialize default_orig_pair,
10204 default_set_foreground, and default_set_background.
10205
10206 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10207 clash (bug#86).
10208 (getloadavg): Callers changed.
10209
10210 * image.c (svg_load_image): Fix last change.
10211 (svg_load_image): Use rsvg_handle_get_dimensions to check that
10212 image size is valid. Use g_object_unref instead of deprecated
10213 rsvg_handle_free to free rsvg handle.
10214 (x_from_xcolors): Don't initialize pixmap (silence compiler).
10215
102162008-07-25 Jason Rumney <jasonr@gnu.org>
10217
10218 * w32font.c (w32font_encode_char): Encode characters outside BMP as
10219 surrogates before looking up glyph index.
10220 (w32font_text_extents): Encode as surrogates if falling back to
10221 functions that need UTF-16 wide chars.
10222
10223 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
10224 BMP as surrogates before looking up glyph index.
10225
102262008-07-25 Chong Yidong <cyd@stupidchicken.com>
10227
10228 * image.c (svg_load_image): Check for failure in return value of
10229 rsvg_handle_get_pixbuf. Free rsvg handle when done.
10230
102312008-07-25 Jason Rumney <jasonr@gnu.org>
10232
10233 * w32font.c (Fx_select_font): Reverse sense of second arg.
10234
102352008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
10236
10237 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
10238 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
10239
10240 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
10241 (PURESIZE): Use it.
10242
102432008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
10244
10245 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
10246 * m/alpha.h (TEXT_END):
10247 * m/ibmrs6000.h (TEXT_END):
10248 * m/macppc.h (TEXT_END):
10249 * s/darwin.h (TEXT_END):
10250 * s/msdos.h (TEXT_END): Remove, unused.
10251 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
10252 * s/cygwin.h: Remove comment.
10253
10254 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
10255 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
10256 * m/intel386.h (DOT_GLOBAL_START):
10257 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
10258 (USG): Remove, file not used on USG platforms.
10259
10260 * Makefile.in (HAVE_X11): Remove empty #else.
10261
102622008-07-24 Andreas Schwab <schwab@suse.de>
10263
10264 * fileio.c (Finsert_file_contents): Properly adjust undo list
10265 after format conversion.
10266
102672008-07-24 Jan Djärv <jan.h.d@swipnet.se>
10268
10269 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
10270 (menu_nav_ended): Remove.
10271 (create_menus): Remove signal connect for menu_nav_ended.
10272 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
10273 create_menus.
10274 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
10275
102762008-07-23 Jason Rumney <jasonr@gnu.org>
10277
10278 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
10279 with opened font.
10280 (w32font_open): Set font type to gdi.
10281
10282 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
10283
102842008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
10285
10286 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
10287 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
10288 defines it.
10289 * unexec.c (ADDR_CORRECT): Define unconditionally.
10290
10291 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
10292
10293 * unexec.c: Remove code depending on !COFF and USG, the file is
10294 not used for such systems.
10295
10296 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
10297 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
10298 (LD_SWITCH_SYSTEM_1): Remove, update users.
10299
10300 * s/darwin.h (DATA_END):
10301 * m/intel386.h (DATA_END):
10302 * m/ibmrs6000.h (DATA_END):
10303 * m/alpha.h (DATA_END): Remove, unused.
10304
10305 * config.in: Regenerate.
10306 * s/ms-w32.h (subprocesses): Define unconditionally.
10307 * s/template.h (subprocesses): Update comment.
10308 * s/vms.h (subprocesses):
10309 * s/usg5-4.h (subprocesses):
10310 * s/hpux10-20.h (subprocesses):
10311 * s/gnu-linux.h (subprocesses):
10312 * s/cygwin.h (subprocesses):
10313 * s/bsd-common.h (subprocesses):
10314 * s/aix4-2.h (subprocesses):
10315 * s/darwin.h (subprocesses): Do not define, defined by default now.
10316
10317 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
10318 Remove all references.
10319 (temacs): Add GNUstep specific ld flags.
10320
10321 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
10322 similarly to what X does.
10323
103242008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10325
10326 * nsfns.m (x-list-fonts): Remove.
10327 (syms_of_nsfns): Drop the x-list-fonts declaration.
10328 * nsterm.m: Get rid of remaining "//" comments.
10329
103302008-07-22 Chong Yidong <cyd@stupidchicken.com>
10331
10332 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
10333
10334 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
10335 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
10336 (Fns_own_selection_internal, Fx_disown_selection_internal)
10337 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
10338
10339 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
10340 ... */' style of docstrings. Doc fixes.
10341
103422008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10343
10344 * terminfo.c (UP, BC, PC): Undo previous change.
10345
10346 * nsfns.m: Rename ns prefixed functions/variables to the
10347 corresponding x versions. Update references.
10348
103492008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
10352
103532008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
10354
10355 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
10356 Remove forwarding functions.
10357 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
10358 non-static.
10359 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
10360 non-static.
10361 (ns_frame_parm_handlers): Use the new names.
10362 (syms_of_nsfns): Move to the end of file.
10363
10364 * nsterm.m (syms_of_nsterm): Move to the end of file.
10365
10366 * dispnew.c (init_display): Remove code for X10.
10367
103682008-07-22 Jason Rumney <jasonr@gnu.org>
10369
10370 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
10371 bare drive.
10372
103732008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10374
10375 * nsterm.m (syms_of_nsterm): Remove debugging println.
10376
103772008-07-22 David Reitter <david.reitter@gmail.com>
10378
10379 * nsfns.m (do_applescript, F_do_applescript): NS version of the
10380 Carbon implementation of the same functionality: execute arbitrary
10381 AppleScript code.
10382
103832008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10384
10385 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
10386 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
10387 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10388 (Fx_display_mm_height, Fx_display_mm_width)
10389 (Fx_display_backing_store, Fx_display_visual_class)
10390 (Fx_display_save_under, Fx_open_connection)
10391 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
10392 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
10393 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10394 (Fx_display_pixel_width, Fx_display_pixel_height)
10395 (Fx_display_usable_bounds, Fx_display_planes)
10396 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
10397 ... */' style of docstrings.
10398
103992008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
10400
10401 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
10402 on this platform.
10403 (mips):
10404 * m/iris4d.h (mips): Do not define.
10405 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
10406
10407 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
10408
10409 * image.c:
10410 * nsfns.m:
10411 * nsselect.m:
10412 * nsterm.h:
10413 * nsterm.m: Rename ns prefixed functions/variables to the
10414 corresponding x versions. Update references.
10415
10416 * m/ibms390x.h (NO_REMAP): Do not undefine.
10417
10418 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
10419
104202008-07-21 Chong Yidong <cyd@stupidchicken.com>
10421
10422 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
10423 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
10424 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
10425 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
10426 (Fns_display_mm_height, Fns_display_mm_width)
10427 (Fns_display_backing_store, Fns_display_visual_class)
10428 (Fns_display_save_under, Fns_open_connection)
10429 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
10430 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
10431 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
10432 (Fns_display_pixel_width, Fns_display_pixel_height)
10433 (Fns_display_usable_bounds, Fx_display_planes)
10434 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
10435
104362008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
10437
10438 * print.c (print_object): Check print_depth before searching for
10439 circularities.
10440
104412008-07-21 Michael Albinus <michael.albinus@gmx.de>
10442
10443 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
10444 only sprintf.
10445
104462008-07-21 Kenichi Handa <handa@m17n.org>
10447
10448 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
10449
104502008-07-20 Andreas Schwab <schwab@suse.de>
10451
10452 * syntax.c (find_start_pos, find_start_value)
10453 (find_start_value_byte, find_start_begv, find_defun_start)
10454 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
10455
104562008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10457
10458 * s/sol2-3.h: Insert contents of s/sol2.h.
10459 (LD_SWITCH_SYSTEM): Remove redundant definition.
10460 * s/sol2.h: Remove, unused.
10461
104622008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10463
10464 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
10465
104662008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10467
10468 * Makefile.in (ns_appdir): Fix typo in find command.
10469
104702008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
10471
10472 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
10473
10474 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
10475 added not supported anymore.
10476
10477 * s/usg5-4-2.h (LIBS_SYSTEM):
10478 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
10479
10480 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10481 * s/lynxos.h (GETPGRP_NO_ARG):
10482 * s/hpux10-20.h (NO_SIOCTL_H):
10483 * s/gnu.h (GETPGRP_NO_ARG):
10484 * s/gnu-linux.h (NO_SIOCTL_H):
10485 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
10486 * s/cygwin.h (GETPGRP_NO_ARG):
10487 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
10488 (C_DEBUG_SWITCH): Remove duplicate definition.
10489
10490 * m/ibms390.h: Remove boilerplate comments.
10491
10492 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
10493
10494 * process.c (HAVE_SERIAL): Consolidate ifdefs.
10495 (wait_reading_process_output): Remove code for SunOS, platform not
10496 supported anymore. Use SOLARIS2 instead of sun.
10497
104982008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10499
10500 * font.c (font_open_by_name): Under NS, default lface height to zero.
10501 (font_open_for_lface): Under NS, set size based on frame fontsize.
10502 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
10503 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
10504
105052008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10506
10507 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
10508 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
10509 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
10510 YES/NO.
10511 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
10512 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
10513 * Makefile.in (clean): Clear out build destination dir.
10514
105152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10516
10517 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
10518 xterm, xselect.
10519 * lisp.h: Remove declaration of hash_remove.
10520 * nsgui.h: Remove redefinitions of hash_remove.
10521 * fns.c (hash_remove): Rename to hash_remove_from_table.
10522
105232008-07-19 Seiji Zenitani <zenitani@mac.com>
10524
10525 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
10526 strdup() the family UTF8String before modifying it.
10527
105282008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
10529
10530 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
10531 NS_FACE_BACKGROUND with 0 instead of nil.
10532 * nsfont.m (nsfont_draw): Same.
10533
105342008-07-19 Chong Yidong <cyd@stupidchicken.com>
10535
10536 * nsfns.m (ns_set_background_color): Fix crash.
10537
105382008-07-18 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
10541
105422008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
10543
10544 * puresize.h (BASE_PURESIZE): Increase to 1240000.
10545
105462008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10547
10548 * gtkutil.c: Include <config.h> instead of "config.h".
10549
10550 * lisp.h (Foverlay_buffer): Add EXFUN.
10551
10552 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
10553 child process to complete child_setup. Undo 2005-09-21 change.
10554
10555 * s/darwin.h: Mention setsid after vfork.
10556
105572008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10558
10559 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
10560 Depend on macgui.h.
10561
10562 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
10563 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
10564
10565 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
10566 and f19.
10567 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
10568
10569 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
10570 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
10571 Remove enumerators.
10572
10573 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
10574 Check if FACE_FROM_ID returns NULL.
10575
105762008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
10577
10578 * w32inevt.c (change_frame_size): Remove extern declaration.
10579 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
10580 change_frame_size.
10581
105822008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10583
10584 * getloadavg.c: Revert last change (2008-07-15).
10585
105862008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
10587
10588 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 10589 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
10590 from configure.
10591
105922008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
10593
10594 * s/sol2.h:
10595 * s/sol2-4.h: Reorganize conditionals.
10596
10597 * ecrt0.c: Remove code depending on m68000, not used anymore.
10598
10599 * fns.c (hash_remove): Make static.
10600 * lisp.h (hash_remove): Don't prototype.
10601
10602 * m/ibmrs6000.h:
10603 * m/ibms390x.h:
10604 * m/macppc.h: Remove boilerplate comments.
10605
10606 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
10607 Solaris, which does not need them.
10608
10609 * m/vax.h: Remove comments about unsupported systems.
10610
10611 * s/darwin.h: Reorganize ifdefs.
10612
106132008-07-17 Andreas Schwab <schwab@suse.de>
10614
10615 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
10616
106172008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
10618
10619 Use SDATA. Follow coding convention of placing operators at
10620 beginning of next line rather than end of previous line, and placing
10621 spaces around infix operators.
10622
10623 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
10624 in case it was defined already.
10625 USE @GNUSTEP_MAKEFILES@ rather than envvars.
10626 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
10627 ns_default.
10628 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
10629 Lisp_Objects.
10630 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
10631 (ns_defined_color, ns_color_to_lisp): Declare.
10632 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
10633 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
10634 it's accepted even with USE_LISP_UNION_TYPE.
10635 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
10636 (update_frame_tool_bar): Remove apparently obsolete tests for
10637 non-integerness of f->tool_bar_lines.
10638 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
10639 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
10640 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
10641 (nsfont_open): Don't confuse NULL for Qnil.
10642 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
10643 * menu.h (find_and_call_menu_selection):
10644 * menu.c (find_and_call_menu_selection): Use just int for vector size.
10645 (find_and_return_menu_selection): Always return something.
10646 * frame.h: Include dispextern.h for Display_Info.
10647 (display_x_get_resource): Declare.
10648
106492008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
10650
10651 * syntax.c: Remove stdio.h include accidentally introduced in
10652 Emacs.app commit.
10653 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
10654 NS_IMPL_COCOA.
10655 * keyboard.c (handle_async_input, input_available_signal): Remove
10656 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
10657
106582008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10659
10660 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
10661 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
10662 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
10663 Use SDATA.
10664
10665 * keymap.c: Remove all NS-specific code.
10666 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
10667 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
10668 where_is_preferred_modifier, return a different value depending on how
10669 preferred is the binding.
10670 (where_is_internal): Adjust accordingly.
10671 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
10672 Adjust to new preferred_sequence_p.
10673 (syms_of_keymap): Declare `where-is-preferred-modifier'.
10674 * keyboard.c (parse_solitary_modifier): Not static any more.
10675 * keyboard.h (parse_solitary_modifier): Declare.
10676
106772008-07-16 Andreas Schwab <schwab@suse.de>
10678
10679 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
10680 of easymenu.
10681
106822008-07-16 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * xdisp.c (move_it_in_display_line): Account for word wrap, so
10685 that we don't move off the line.
10686
106872008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
10688
10689 * keyboard.c (Qsuper): Remove.
10690 (parse_menu_item): Don't call where_is_internal specially for NS.
10691
106922008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10693
10694 * s/gnu-linux.h: Remove boilerplate comments.
10695
10696 * m/alpha.h (__ELF__): Consolidate conditions.
10697
10698 * m/m68k.h (linux): Use GNU_LINUX instead.
10699 Remove boilerplate comments.
10700
10701 * m/intel386.h: Undo refactoring from previous change.
10702 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
10703 too, remove dead code.
10704 (linux): Use GNU_LINUX instead.
10705
107062008-07-16 Jason Rumney <jasonr@gnu.org>
10707
10708 * w32gui.h: Repeat 26 June changes lost by last change.
10709
107102008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
10711
10712 * systty.h: Remove code for Aix on 386, unsupported platform.
10713
10714 * s/ms-w32.h: Remove boilerplate comments.
10715 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
10716
10717 * s/gnu-linux.h (TERM): Remove support.
10718 (HAVE_SYSVIPC): Remove, unused.
10719 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
10720 for this system.
10721
10722 * process.c: Remove support for IRIS, unused.
10723 Remove support for TERM, not relevant anymore.
10724
10725 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
10726 used with the definition.
10727
10728 * s/aix4-2.h (static): Do not undef.
10729
10730 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
10731 only used on Aix.
10732 (HAVE_SYSVIPC): Remove, unused.
10733
10734 * m/hp800.h (CANNOT_DUMP): Do not undef.
10735
10736 * m/alpha.h: Fix comment.
10737
10738 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
10739 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
10740 used by this configuration.
10741 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
10742 * unexec.c: Remove code depending on HPUX and
10743 USG_SHARED_LIBRARIES, not used with this file. Remove code
10744 depending on IRIS, unused. Remove if 0-ed code.
10745
10746 * s/template.h: Remove comments about static.
10747
10748 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
10749 Remove if 0-ed code.
10750 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
10751 were the same as the default.
10752 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
10753 Remove boilerplate comments.
10754 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
10755 (HAVE_SYSVIPC): Remove, unused.
10756 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
10757
10758 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10759 Remove boilerplate comments.
10760 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10761 Remove boilerplate comments.
10762 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
10763 Remove boilerplate comments.
10764 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
10765
10766 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
10767 USG systems which do not use DATA_SEG_BITS.
10768 Refactor code. Remove boilerplate comments.
10769
10770 * m/ibms390.h:
10771 * m/m68k.h:
10772 * s/bsd-common.h:
10773 * s/cygwin.h:
10774 * s/darwin.h:
10775 * s/freebsd.h:
10776 * s/gnu.h:
10777 * s/msdos.h: Remove boilerplate comments.
10778
10779 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 10780 do not use this file.
aac0c6e3
MR
10781 (IRIS_4D): Remove, unused.
10782
10783 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 10784 do not use this file.
aac0c6e3
MR
10785 (SIGN_EXTEND_CHAR):
10786 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
10787 * unexmips.c: Remove file, unused.
10788
10789 * editfns.c (Fuser_full_name): Replace the only use of
10790 USER_FULL_NAME with its value.
10791 * config.in: Regenerate.
10792
107932008-07-16 David Reitter <david.reitter@gmail.com>
10794
10795 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
10796 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
10797
107982008-07-16 Glenn Morris <rgm@gnu.org>
10799
10800 * emacs.c (system-type): Doc fix.
10801
108022008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
10803
10804 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
10805 If the cache doesn't work, let's fix it, rather than work around it.
10806
108072008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10808
10809 * Makefile.in: Correct additions for nsfont.o in last commit.
10810 * nsfont.m: New file (forgot last commit).
10811
108122008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
10813
10814 * callproc.c (set_initial_environment): Initialize
10815 Vprocess_environment under CANNOT_DUMP (fixes crash when
10816 batch-compiling for bootstrap).
10817
108182008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4e2af782 10819 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
10820
10821 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
10822 fix crash due to different init order.
10823
108242008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10825
10826 Changes and additions for NeXTstep windowing system (Cocoa and
10827 GNUstep) support.
10828
10829 * Makefile.in:
10830 * config.in: Support defines and build commands for NS port.
10831 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
10832 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
10833 * dispextern.h: Include nsgui.h and add needed typedefs under NS
10834 windowing.
10835 (struct face): Add synth_ital field.
10836 * dispnew.c: Include nsterm.h when compiling under NS windowing.
10837 (init_display): Initialize Vinitial_window_system to "ns" when so
10838 compiled.
10839 * emacs.c: Include GSConfig.h when compiling under GNUstep.
10840 (display_arg): Use under NS.
10841 (main): Under NS, allocate autorelease pool and handle command line
10842 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
10843 (standard_args): Add NS-specific args.
10844 (shut_down_emacs): Shut down NS terminal if compiled under NS.
10845 * font.c (DEFAULT_ENCODING): New variable.
10846 (font_find_for_lface): Use it.
10847 (syms_of_font): Load syms_of_nsfont under NS.
10848 * font.h: Declare nsfont_driver when compiled under NS.
10849 * fontset.c: When compiling under NS, include nsterm.h.
10850 (fontset_from_font): Autoconstruct fontset under NS.
10851 * frame.c (various): Under NS, include nsterm.h, add Qns window system
10852 symbol, document and use it.
10853 (do_switch_frame): When for_deletion under Cocoa, add
10854 Fraise_frame(Qnil).
10855 (x_set_frame_parameters): Ensure font attribute changes are picked up.
10856 (x_get_arg): Allow "yes" and "no" as boolean values.
10857 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
10858 Qright under Cocoa.
10859 (focus-follows-mouse): Default to 0 under NS.
10860 * frame.h (enum output_method): Add output_ns.
10861 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
10862 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
10863 (FRAME_WINDOW_P): NS-specific definition.
10864 * fringe.c (max_used_fringe_bitmap): Make public.
10865 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
10866 (getloadavg): Use NeXT code under descendant OS's.
10867 * image.c (includes and header section, x_create_bitmap_from_data)
10868 (x_create_bitmap_from_file, free_bitmap_record, image_background)
10869 (image_background_transparent, x_clear_image_1)
10870 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
10871 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
10872 (x_to_xcolors, x_from_xcolors, x_disable_image)
10873 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
10874 other GUIs, including XPM support using code originally written for
10875 Carbon GUI.
10876 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
10877 using NS API.
10878 (image_ascent): Use font metrics macros instead of direct struct field
10879 access.
10880 * keyboard.c (includes): Add nsterm.h when compiling under NS.
10881 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
10882 Also, handle NS as GTK for menu bar purposes.
10883 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
10884 toolkit where they differ.
10885 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
10886 use cachelist, still needed under NS.
10887 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
10888 (struct widget_value): Define it here for menu.c.
10889 * keymap.c (includes): Include modifier internals.
10890 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
10891 NS.
10892 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
10893 support for preferring sequences using certain modifiers, specified by
10894 the FIRSTONLY argument.
10895 * lisp.h (hash_remove): Rename to avoid name clash when compiling
10896 under NS GNUstep implementation.
10897 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
10898 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
10899 * menu.c: Include nsterm.h under NS.
10900 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
10901 (free_menubar_widget_tree_value, update_submenu_strings)
10902 (find_and_call_menu_selection): Treat NS as X and NT.
10903 (find_and_return_menu_selection): New function, used for popup menus.
10904 * nsgui.h:
10905 * nsterm.h:
10906 * nsfns.m:
10907 * nsimage.m:
10908 * nsmenu.m:
10909 * nsselect.m:
10910 * nsterm.m: New files.
10911 * process.c (wait_reading_process_output): Under NS, call ns_select()
10912 instead of plain select().
10913 * syntax.c (char_quoted): Under NS, avoid a crash when called near
10914 beginning of buffer.
10915 * sysselect.h (init_process): Rename when compiling under Cocoa to
10916 avoid name conflict.
10917 * termhooks.h (display_info): Add ns_display_info to union.
10918 * terminal.c (Fterminal_live_p): Add ns to terminal types.
10919 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
10920 COCOA environment.
10921 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
10922 unexec() signature. (Note, this will dump, but the resulting file
10923 crashes; unexosx is used instead; keeping around for reference and
10924 possible aid in getting dump working under GNUstep.)
10925 * w32gui.h (button_type, widget_value): Remove definitions (now in
10926 keyboard.h).
10927 * window.c: Include nsterm.h when compiling under NS.
10928 * xdisp.c (includes): Include nsterm.h when compiling under NS.
10929 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
10930 other GUI windowing systems.
10931 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
10932 GTK.
10933 (x_consider_frame_title): Under NS, set icon type and frame
10934 modified-state indicator; use ns_set_name_as_filename() when using
10935 formatted title.
10936 (update_window_cursor): Make public when compiling under NS.
10937 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
10938 (hourglass_atimer, Vhourglass_delay
10939 * xfaces.c (header section, init_frame_faces, clear_font_table)
10940 (defined_color, unload_color, x_face_list_fonts)
10941 (prepare_face_for_display): Add NS support parallel to other GUIs.
10942 Emulate GCs like other non-X GUIs.
10943 (split_font_name): Don't lowercase font name under NS.
10944 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
10945 under NS.
10946 * s/darwin.h: Add support for compilation under NS.
10947
109482008-07-15 Jason Rumney <jasonr@gnu.org>
10949
10950 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
10951 (w32_show_hourglass): Rename from show_hourglass.
10952 (w32_hide_hourglass): Rename from hide_hourglass.
10953 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
10954 (Vhourglass_delay): Declare extern.
10955 (hourglass_started): Remove.
10956
10957 * xdisp.c (Vhourglass_delay): Remove static.
10958 (hourglass_started, start_hourglass, cancel_hourglass):
10959 Don't include these versions on WINDOWSNT.
10960
109612008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
10962
10963 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
10964 variables (formerly in xfns.c).
10965 (show_hourglass, hide_hourglass): New prototypes (same).
10966 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
10967 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
10968 in xfns.c).
10969 (syms_of_xdisp): Declare/initialize display-hourglass,
10970 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
10971 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
10972 formerly in xfns.c.
10973 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10974 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10975 (start_hourglass, cancel_hourglass): Remove.
10976 (show_hourglass, hide_hourglass): Remove prototypes and static
10977 modifiers.
10978 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
10979 hourglass_atimer, hourglass_shown_p declaration/initialization.
10980 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
10981 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
10982 (start_hourglass, cancel_hourglass): Remove.
10983 (show_hourglass, hide_hourglass): Remove prototypes and static
10984 modifiers.
10985 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
10986 hourglass_atimer, hourglass_shown_p declaration/initialization.
10987 * w32fns.c (display_hourglass_p, Vhourglass_delay)
10988 (DEFAULT_HOURGLASS_DELAY): Remove.
10989 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
10990 hourglass_shown_p declaration/initialization.
10991
109922008-07-14 Jason Rumney <jasonr@gnu.org>
10993
10994 * w32fns.c (w32_get_arg): Remove wrapper function.
10995 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
10996 directly.
10997 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
10998
109992008-07-14 Kenichi Handa <handa@m17n.org>
11000
11001 * xfont.c (xfont_open): Add workaround for X's bug.
11002
110032008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
11004
11005 * fontset.c: Include <stdio.h> unconditionally.
11006
110072008-07-13 Michael Albinus <michael.albinus@gmx.de>
11008
11009 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
11010 for filtering.
11011
110122008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
11013
11014 * s/vms.h: Use __GNUC__ instead of _GNUC_.
11015
11016 * m/macppc.h:
11017 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
11018
11019 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
11020 (SPECIAL_EMACS_INT):
11021 * m/ia64.h (SPECIAL_EMACS_INT):
11022 * m/amdx86-64.h (SPECIAL_EMACS_INT):
11023 * s/gnu.h (NLIST_STRUCT):
11024 * s/aix4-2.h (X11R5_INHIBIT_I18N):
11025 * s/gnu-linux.h (LINUX):
11026 * s/msdos.h (HAVE_FACES):
11027 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
11028
11029 * systty.h:
11030 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
11031 anymore.
11032
110332008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
11034
11035 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
11036 always defined as int.
11037
11038 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
11039 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
11040 * s/gnu-linux.h (HAVE_WAIT_HEADER):
11041 * s/freebsd.h (HAVE_WAIT_HEADER):
11042 * s/bsd-common.h (HAVE_UNION_WAIT):
11043 * s/aix4-2.h (HAVE_WAIT_HEADER):
11044 * m/mips.h (HAVE_UNION_WAIT):
11045 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
11046 (COFF, static): Do not define, they are undefined later in the file.
11047
11048 * process.c (update_status): Don't use a union.
11049 (status_convert):
11050 (sigchld_handler): Use int instead of WAITTYPE.
11051
110522008-07-12 Chong Yidong <cyd@stupidchicken.com>
11053
11054 * indent.c (Fvertical_motion): Restore hscroll before moving to
11055 goal column.
11056
110572008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11058
11059 * lisp.h: Remove left over code.
11060
110612008-07-11 Andreas Schwab <schwab@suse.de>
11062
11063 * lisp.h: Fix logic in last change.
11064
11065 * menu.h: New file.
11066 * menu.c: Include it.
11067 * xmenu.c: Likewise.
11068 * Makefile.in: Update dependencies.
11069
110702008-07-11 Kenichi Handa <handa@m17n.org>
11071
11072 * fontset.c (fontset_from_font): Cancel the previous change.
11073
110742008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
11075
11076 * lisp.h:
11077 * w32heap.c:
11078 * emacs.c:
11079 * alloc.c: Replace all references of NO_UNION_TYPE with
11080 USE_LISP_UNION_TYPE.
11081
11082 * m/xtensa.h (NO_UNION_TYPE):
11083 * m/vax.h (NO_UNION_TYPE):
11084 * m/template.h (NO_UNION_TYPE):
11085 * m/sparc.h (NO_UNION_TYPE):
11086 * m/mips.h (NO_UNION_TYPE):
11087 * m/macppc.h (NO_UNION_TYPE):
11088 * m/m68k.h (NO_UNION_TYPE):
11089 * m/iris4d.h (NO_UNION_TYPE):
11090 * m/intel386.h (NO_UNION_TYPE):
11091 * m/ibms390x.h (NO_UNION_TYPE):
11092 * m/ibms390.h (NO_UNION_TYPE):
11093 * m/ibmrs6000.h (NO_UNION_TYPE):
11094 * m/ia64.h (NO_UNION_TYPE):
11095 * m/hp800.h (NO_UNION_TYPE):
11096 * m/arm.h (NO_UNION_TYPE):
11097 * m/amdx86-64.h (NO_UNION_TYPE):
11098 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
11099 defining it the same.
11100
111012008-07-10 Chong Yidong <cyd@stupidchicken.com>
11102
11103 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
11104
111052008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11106
11107 * fileio.c:
50426a04 11108 * sysdep.c:
aac0c6e3
MR
11109 * systty.h:
11110 * m/ibmrs6000.h:
11111 * m/iris4d.h:
11112 * s/aix4-2.h:
11113 * s/freebsd.h:
11114 * s/gnu-linux.h:
11115 * s/hpux10-20.h:
11116 * s/hpux11.h:
11117 * s/netbsd.h:
11118 * s/sol2-3.h:
11119 * s/sol2-4.h:
11120 * s/sol2.h:
11121 * s/usg5-4.h:
11122 * s/vms.h: Remove references to unused variables.
11123
111242008-07-10 Andreas Schwab <schwab@suse.de>
11125
11126 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
11127 pattern before matching the generic family.
11128
111292008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
11130
11131 * unexec.c:
11132 * s/vms.h:
11133 * s/usg5-4-2.h:
11134 * s/sol2-5.h:
11135 * s/freebsd.h:
11136 * s/darwin.h: Remove dead code.
11137
11138 * m/template.h:
11139 * m/sparc.h:
11140 * m/mips.h:
11141 * m/m68k.h:
11142 * m/iris4d.h:
11143 * m/intel386.h:
11144 * m/ibms390x.h:
11145 * m/ibms390.h:
11146 * m/ia64.h:
11147 * m/hp800.h:
11148 * m/arm.h:
11149 * m/amdx86-64.h: Remove dead code and references to unused
11150 and compiler defined symbols.
11151
11152 * unexmips.c:
11153 * unexelf.c: Remove references to desupported systems.
11154
11155 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
11156
11157 * m/powermac.h: Remove boilerplate comments.
11158 (NO_REMAP): Remove unused definition.
11159
11160 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
11161 define them.
11162
111632008-07-10 Kenichi Handa <handa@m17n.org>
11164
11165 * xfont.c (xfont_open): Log the reason of failure.
11166
111672008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
11168
11169 * fontset.c (fontset_get_font_group):
11170 * font.c (font_check_otf): Specify argument types.
11171
111722008-07-09 Kenichi Handa <handa@m17n.org>
11173
11174 * coding.c (detect_coding_utf_8): Set detect_info->found only when
11175 non-ASCII char is found.
11176
11177 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
11178 (reorder_font_vector): Change the arg preferred_family to font.
11179 Prefer the spec matching with font.
11180 (fontset_get_font_group): New function.
11181 (fontset_find_font): Change the format of an element of a realized
11182 fontset. Use fontset_get_font_group.
11183 (fontset_font): Try the current fontset, the default fontset, the
11184 fallbacks of the current fontset, and the fallbacks of the default
11185 fontset in this order.
11186 (face_for_char): Delete the shortcut to use the current font.
11187 (fontset_from_font): Don't set fonts for Latin in the fontset.
11188
11189 * font.h (font_make_object, font_match_p): Adjust prototypes.
11190
11191 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
11192
11193 * font.c (font_make_object): New arg entity and pixelsize.
11194 (font_check_otf_features, font_check_otf): New functions.
11195 (font_match_p): Check :lang, :script, and :otf properties.
11196
11197 * xfont.c (xfont_open): Adjust it for the change of
11198 font_make_object.
11199 (xfont_text_extents): Fix initial setting of metrics.
11200
11201 * ftfont.c (struct ftfont_info): New member index, delete member
11202 fc_charset_idx. Make the member order compatible with struct
11203 xftfont_info.
11204 (fc_charset_table): Change charset names to registry names.
11205 (ftfont_pattern_entity): Delete the args registry and
11206 fc_charset_idx. Change the value of :font-entity property
11207 to (FONTNAME . INDEX). Always set :registry property to
11208 `iso10646-1'.
11209 (struct ftfont_cache_data): New struct.
11210 (ftfont_lookup_cache): New arg for_face.
11211 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
11212 (ftfont_driver): Set the member otf_capability.
11213 (ftfont_get_charset): Adjust it for the change of
11214 fc_charset_table.
11215 (OTF_TAG_SYM): New macro.
11216 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
11217 for the change of fc_charset_table.
11218 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
11219 ftfont_pattern_entity. Add FC_INDEX to objset.
11220 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
11221 and ftfont_pattern_entity.
11222 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
11223 font_make_object, struct ftfont_info.
11224 (ftfont_has_char): Use ftfont_get_fc_charset.
11225 (ftfont_otf_features, ftfont_otf_capability): New functions.
11226 (ftfont_shape): Use ftfont_get_otf.
11227 (ftfont_text_extents): Fix initial setting of metrics.
11228
11229 * xftfont.c (struct xftfont_info): New member ft_size. Make the
11230 member order compatible with struct ftfont_info.
11231 (xftfont_open): Add FC_CHARSET to the pattern. Set
11232 xftfont_info->ft_size. Don't unlock the face. Check BDF
11233 properties if appropriate.
11234 (xftfont_close): Unlock the face.
11235 (xftfont_anchor_point, xftfont_shape): Deleted.
11236 (syms_of_xftfont): Don't set members anchor_point and shape of
11237 xftfont_driver.
11238
11239 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
11240 font_make_object.
11241
11242 * w32font.c (w32font_open): Adjust it for the change of
11243 font_make_object.
11244 (w32font_open_internal): Don't set properties of font_object here.
11245
112462008-07-08 Chong Yidong <cyd@stupidchicken.com>
11247
11248 * macfns.c (x_create_tip_frame):
11249 * w32fns.c (x_create_tip_frame):
11250 * xfns.c (x_create_tip_frame): Pass parameter argument to
11251 face-set-after-frame-default.
11252
11253 * xfaces.c (Finternal_merge_in_global_face): Save merged
11254 attributes for the default face back into the face vector.
11255
112562008-07-08 Andreas Schwab <schwab@suse.de>
11257
11258 * fontset.h: Declare fontset_from_font. Don't declare
11259 new_fontset_from_font and fontset_from_font_name.
11260 * xterm.c: Include "fontset.h".
11261 * Makefile.in (xterm.o): Update dependencies.
11262
112632008-07-08 Glenn Morris <rgm@gnu.org>
11264
11265 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
11266 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
11267
112682008-07-07 Chong Yidong <cyd@stupidchicken.com>
11269
11270 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
11271 (x_set_frame_parameters): Don't bind it.
11272
112732008-07-07 Juanma Barranquero <lekktu@gmail.com>
11274
11275 * w32fns.c (map_w32_filename): Declare extern.
11276
112772008-07-07 Jason Rumney <jasonr@gnu.org>
11278
11279 * w32term.c (WS_EX_LAYERED): Define if not already.
11280
112812008-07-06 Chong Yidong <cyd@stupidchicken.com>
11282
11283 * xfaces.c (set_font_frame_param): Don't try to set the font
11284 parameter if it is still unspecified in the lface.
11285
112862008-07-05 Chong Yidong <cyd@stupidchicken.com>
11287
11288 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
11289 face if it didn't already exist.
11290
11291 * xdisp.c (try_window_id): Give up if word-wrapping is on.
11292
112932008-07-05 Andreas Schwab <schwab@suse.de>
11294
11295 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
11296
112972008-07-05 Chong Yidong <cyd@stupidchicken.com>
11298
11299 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
11300 word-wrapping.
11301 (IT_DISPLAYING_WHITESPACE): New macro.
11302 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
11303 when word-wrapping. Simplify word-wrapping logic. Use correct
11304 pixel positions when saving copies of the iterator.
11305 (display_line): Use proper wrap point if the last character on a
11306 line was preceded by whitespace.
11307
113082008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
11309
11310 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
11311
113122008-07-04 Kenichi Handa <handa@m17n.org>
11313
11314 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
11315
11316 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
11317
113182008-07-02 Jason Rumney <jasonr@gnu.org>
11319
11320 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 11321 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
11322
11323 * xdisp.c (next_element_from_display_vector): Move assignment out
11324 of if statement.
11325
113262008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
11327
11328 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
11329
11330 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
11331 (syms_of_fileio): Initialize and export them.
11332 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
11333
11334 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
11335 (Fsystem_move_file_to_trash): New function.
11336 (syms_of_w32fns): Export it to lisp.
11337
113382008-07-01 Jason Rumney <jasonr@gnu.org>
11339
11340 * w32font.c (w32font_text_extents): Don't count overhang as part
11341 of width.
11342
113432008-06-30 Miles Bader <miles@gnu.org>
11344
11345 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
11346 Add `avoid_cursor_p' field.
11347
11348 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
11349 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
11350 (append_glyph, append_composite_glyph, produce_image_glyph)
11351 (append_stretch_glyph): Initialize avoid_cursor_p.
11352 (get_it_property): Rename from `get_line_height_property'.
11353 (x_produce_glyphs): Use get_it_property.
11354 (handle_line_prefix, push_display_prop): New functions.
11355 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
11356 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
11357 New variables.
11358 (syms_of_xdisp): Initialize them.
11359
113602008-06-30 Kenichi Handa <handa@m17n.org>
11361
11362 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
11363 XftDefaultSubstitute (they are called in XftFontMatch).
11364 (xftfont_open): Fix args to ftfont_font_format.
11365
11366 * ftfont.c (fc_charset_table): New member lang.
11367 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 11368 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
11369 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
11370 (ftfont_open): Fix args to ftfont_font_format.
11371 (ftfont_font_format): New arg filename.
11372
113732008-06-30 Chong Yidong <cyd@stupidchicken.com>
11374
11375 * xfaces.c (Finternal_merge_in_global_face): If default face was
11376 modified, realize it again. Update the font face attribute.
11377
113782008-06-29 Jason Rumney <jasonr@gnu.org>
11379
11380 * w32term.c (x_set_frame_alpha): Fix logic.
11381
113822008-06-29 Kenichi Handa <handa@m17n.org>
11383
11384 * fontset.c (Finternal_char_font): Return font-object instead of
11385 font-name.
11386
11387 * composite.c (get_composition_id): Fix the width calculation for TAB.
11388
113892008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
11390
11391 * indent.c (Fvertical_motion): Properly handle float column arg.
11392
113932008-06-28 Jason Rumney <jasonr@gnu.org>
11394
11395 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
11396 (pfnSetLayeredWindowAttributes): New function pointer.
11397 (w32_initialize): Initialize it when supported.
11398 (x_set_frame_alpha): New function.
11399
11400 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
11401 (w32_frame_parm_handlers): Set alpha handler.
11402
11403 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
11404
114052008-06-27 Jason Rumney <jasonr@gnu.org>
11406
11407 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
11408 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
11409 (w32_to_x_charset, x_to_w32_charset)
11410 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
11411 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
11412 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
11413 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
11414 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
11415 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
11416 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
11417 (Qw32_charset_unicode): Remove.
11418 (syms_of_w32fns): Update for above changes.
11419
11420 * w32font.c (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 from w32fns.c.
11428 (syms_of_w32font): Update for above changes.
11429
114302008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
11431
11432 * s/usg5-4.h: Fix previous change: keep the correct branch of a
11433 removed #if.
11434 (USG_SHARED_LIBRARIES): Remove duplicate definition.
11435
114362008-06-26 Juanma Barranquero <lekktu@gmail.com>
4e2af782 11437 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
11438
11439 * makefile.w32-in (LOCAL_FLAGS):
11440 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
11441
11442 * sysdep.c (_spawnlp, _getpid):
11443 Declare with explicit _cdecl instead of _CRTAPI1.
11444
11445 * editfns.c (Fget_internal_run_time):
11446 Check for WINDOWSNT with #ifdef, not #if.
11447
114482008-06-26 Jason Rumney <jasonr@gnu.org>
11449
11450 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
11451
11452 * w32term.c (x_draw_glyph_string_foreground)
11453 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
11454 Use FONT_HANDLE macro.
11455 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
11456
11457 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11458 (uniscribe_encode_char): Use FONT_HANDLE macro.
11459
11460 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
11461 (w32font_text_extents): Use precast w32_font.
11462 (w32font_close): Free cached metrics.
11463 (w32font_open_internal): Allocate space for name on stack.
11464
114652008-06-26 Chong Yidong <cyd@stupidchicken.com>
11466
11467 * xdisp.c (extend_face_to_end_of_line): Fix last change.
11468
114692008-06-26 Jason Rumney <jasonr@gnu.org>
11470
11471 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
11472 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
11473
114742008-06-26 Juanma Barranquero <lekktu@gmail.com>
11475
11476 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
11477
114782008-06-26 Jason Rumney <jasonr@gnu.org>
11479
11480 * w32bdf.c, w32bdf.h: Remove obsolete files.
11481
11482 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
11483
11484 * w32gui.h: Don't include w32bdf.h.
11485 (XCharStruct, enum w32_char_font_type, W32FontStruct):
11486 Remove obsolete font support.
11487
11488 * w32font.h (struct w32font_info): Remove compat_w32_font.
11489 Add hfont member.
11490 (FONT_COMPAT): Remove obsolete macro.
11491
11492 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
11493 (w32font_encode_char, w32font_text_extents): Use new hfont member.
11494 (w32font_open_internal): Remove compat code. Set new hfont member.
11495 (Fx_select_font): Use new hfont member.
11496
11497 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
11498 (uniscribe_encode_char): Use new hfont member.
11499
11500 * w32term.c (x_draw_glyph_string_foreground)
11501 (x_draw_composite_glyph_string_foreground): Use new hfont member.
11502 (x_draw_glyph_string): Use metrics in w32font_info.
11503
115042008-06-26 Kenichi Handa <handa@m17n.org>
11505
11506 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
11507
115082008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
11509
11510 * unexnext.c:
11511 * m/ews4800.h:
11512 * m/hp9000s300.h:
11513 * m/ibm370aix.h:
11514 * m/mips-siemens.h:
11515 * m/ncr386.h:
11516 * m/next.h:
11517 * m/pmax.h:
11518 * m/powerpcle.h:
11519 * m/tandem-s2.h:
11520 * s/386bsd.h:
11521 * s/bsd386.h:
11522 * s/bsd4-1.h:
11523 * s/bsd4-2.h:
11524 * s/bsdos2-1.h:
11525 * s/bsdos2.h:
11526 * s/bsdos3.h:
11527 * s/bsdos4.h:
11528 * s/nextstep.h:
11529 * s/ultrix4-3.h:
11530 * s/usg5-0.h:
11531 * s/usg5-2-2.h:
11532 * s/usg5-2.h:
11533 * s/usg5-4-3.h:
11534 * s/ux4800.h:
11535 * s/uxpds.h:
11536 * s/uxpv.h: Remove support for obsolete systems.
11537 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 11538 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
11539 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
11540 Remove, insert contents in s/aix4-2.h.
11541 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
11542 * s/bsd4-3.h: Rename to ...
11543 * s/bsd-common.h: ... this.
11544 * data.c:
11545 * doc.c:
11546 * ecrt0.c:
11547 * emacs.c:
11548 * fileio.c:
11549 * floatfns.c:
11550 * keyboard.c:
11551 * mem-limits.h:
11552 * print.c:
11553 * process.c:
11554 * sysdep.c:
11555 * syssignal.h:
11556 * systty.h:
11557 * syswait.h:
11558 * term.c:
11559 * unexec.c:
11560 * unexelf.c:
11561 * unexhp9k800.c:
11562 * m/hp800.h:
11563 * m/ibmrs6000.h:
11564 * m/mips.h:
11565 * m/vax.h:
11566 * s/darwin.h:
11567 * s/freebsd.h:
11568 * s/gnu.h:
11569 * s/ms-w32.h:
11570 * s/msdos.h:
11571 * s/netbsd.h:
11572 * s/template.h: Remove references to obsolete variables.
11573
11574 * Makefile.in: Add dependencies for all unexec files.
11575 (admindir): Remove unused variable.
11576 (UNEXEC_SRC): Remove references.
11577
115782008-06-25 Chong Yidong <cyd@stupidchicken.com>
11579
11580 * xfns.c (x_default_font_parameter): If Xft is available, first
11581 try Monospace-12 for the default font.
11582
115832008-06-25 Jason Rumney <jasonr@gnu.org>
11584
11585 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
11586
115872008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
11588
11589 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
11590
11591 * buffer.c (syms_of_buffer): Remove default-word-wrap.
11592
115932008-06-25 Juanma Barranquero <lekktu@gmail.com>
11594
11595 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
11596 <scroll-conservatively>: Fix typo in docstring.
11597
11598 * xselect.c (Fx_send_client_event): Doc fix.
11599
116002008-06-25 Kenichi Handa <handa@m17n.org>
11601
11602 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
11603
11604 * font.c (font_parse_fcname): Remove unused variables.
11605 (font_sort_entites): Delete the arg SPEC. Caller changed.
11606 Fix for the case of ! best_only.
11607 (font_delete_unmatched): Check DPI and AVGWIDTH too.
11608
11609 * lisp.h (Fstring_to_unibyte): EXFUN it.
11610
11611 * character.h (str_to_unibyte): Extern it.
11612
11613 * character.c (str_to_unibyte): New function.
11614
11615 * fns.c (Fstring_to_unibyte): New function.
11616 (syms_of_fns): Defsubr it.
11617
116182008-06-24 Kenichi Handa <handa@m17n.org>
11619
11620 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
11621 DPI too.
11622 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
11623
116242008-06-24 Andreas Schwab <schwab@suse.de>
11625
11626 * Makefile.in (${lispsource}loaddefs.el): Rename from
11627 ../lisp/loaddefs.el.
11628 (bootstrap-clean): Do what distclean does but don't remove
11629 Makefile.
11630 (distclean): Depend on bootstrap-clean and remove Makefile.
11631
116322008-06-24 Chong Yidong <cyd@stupidchicken.com>
11633
11634 * buffer.h (struct buffer): New member word_wrap.
11635
11636 * buffer.c (syms_of_buffer): New variables default-word-wrap and
11637 word-wrap.
11638 (init_buffer_once): Initialize them.
11639
11640 * dispextern.h (struct it): Replace bool truncate_lines_p with a
11641 line_wrap enum possessing three possible values.
11642
11643 * termopts.h: Replace truncate_partial_width_windows with
11644 Vtruncate_partial_width_windows.
11645
11646 * dispnew.c (direct_output_for_insert): Avoid direct output when
11647 inserting a space with word wrap on.
11648
11649 * indent.c (compute_motion): Obey integer values of
11650 truncate-partial-width-windows.
11651
11652 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
11653 replacing truncate_partial_width_windows.
11654 (init_iterator): If Vtruncate_partial_width_windows is an integer,
11655 truncate only if the window width is below that integer.
11656 (start_display, resize_mini_window, produce_stretch_glyph)
11657 (display_string, move_it_in_display_line_to): Use line_wrap.
11658 (back_to_previous_visible_line_start, reseat_1): Reset
11659 string_from_display_prop_p.
11660 (display_line): Extend default face to end of line when wrapping.
11661
116622008-06-24 Kim F. Storm <storm@cua.dk>
11663
11664 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
11665 to wrap continued lines at word boundaries.
11666
116672008-06-24 Jason Rumney <jasonr@gnu.org>
11668
11669 * font.c (Ffont_face_attributes): Multiply pixel size before point
11670 conversion to avoid multiplying rounding error.
11671
116722008-06-23 Jason Rumney <jasonr@gnu.org>
11673
11674 * w32term.c (x_draw_glyph_string_background)
11675 (x_draw_glyph_string): Remove old bdf font code.
11676
11677 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
11678
116792008-06-22 Kenichi Handa <handa@m17n.org>
11680
11681 * font.c (font_find_for_lface): Try the adstyle specified in
11682 the property of LFACE_FONT of LFACE (if any).
11683
116842008-06-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 11685 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
11686
11687 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
11688
116892008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
11692 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
11693 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
11694 (witness-emacs): Remove.
11695 (lisp, shortlisp): Move loaddefs.el earlier.
11696 (mostlyclean): Forget about witness-emacs.
11697
116982008-06-22 Glenn Morris <rgm@gnu.org>
11699
11700 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
11701 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
11702
117032008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11704
11705 * Makefile.in (PRECOMP): Remove.
11706 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
11707 (witness-emacs): Run `compile-first'.
11708 (.el.elc): Use the new compile-onefile target.
11709
117102008-06-21 Kenichi Handa <handa@m17n.org>
11711
11712 * xftfont.c (xftfont_open): Handle QCembolden only when
11713 FC_EMBOLDEN is defined.
11714
117152008-06-21 Andreas Schwab <schwab@suse.de>
11716
11717 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
11718 (.el.elc): Likewise.
11719
117202008-06-21 Miles Bader <miles@gnu.org>
11721
11722 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
11723 build dir, not the lisp source dir.
11724
117252008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
11726
11727 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
11728 (bootstrapclean): Remove.
11729 (.el.elc): New rule.
11730 (PRECOMP): New var.
11731 (../lisp/subdirs.el): Remove.
11732 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
11733 (witness-emacs): New target.
11734 (mostlyclean): Remove witness-emacs as well.
11735 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
11736 Add witness-emacs dependency.
11737
117382008-06-20 Chong Yidong <cyd@stupidchicken.com>
11739
11740 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
11741 defined by the font.
11742
117432008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
11746 (bootstrap-clean): New target that keeps TAGS around.
11747 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
11748 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
11749
117502008-06-20 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
11753 Remove obsolete font code.
11754
11755 * w32font.c (font_matches_spec): Use csb bitfield from font signature
11756 to determine language support.
11757
117582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11759
11760 * sysdep.c (cfsetspeed): New fun extracted from the code.
11761 (cfmakeraw): Move before first use.
11762
117632008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
11764
11765 * sysdep.c (cfmakeraw): Provide fallback implementation.
11766 (serial_configure): Provide fallback implementation of cfsetspeed.
11767
117682008-06-20 Kenichi Handa <handa@m17n.org>
11769
11770 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
11771 the pattern.
11772
11773 * fontset.c (fontset_from_font): Copy font_spec before changing
11774 the elements.
11775
11776 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
11777
117782008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
11779
11780 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
11781 for explicit `font' parameters.
11782
11783 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
11784
117852008-06-19 Kenichi Handa <handa@m17n.org>
11786
11787 * frame.c: Include <ctype.h>.
11788 (x_set_font_backend): Allow spacing characters in the X resource
11789 for FontBackend.
11790
117912008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * w32fns.c, xfns.c (Qfont_param): New var.
11794 (syms_of_w32fns): Initialize it.
11795 (x_default_font_parameter): Record explicit `font' into
11796 `font-parameter'.
11797
117982008-06-18 Kenichi Handa <handa@m17n.org>
11799
11800 * font.c (font_parse_xlfd): Fix previous change.
11801 (font_parse_fcname): Don't use :fc-unknown-spec.
11802 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
11803 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
11804 (font_add_log): Prepend the driver name to the resulting fonts.
11805
11806 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
11807 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
11808 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
11809
11810 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
11811 (QCembolden): New variables.
11812 (syms_of_xftfont): DEFSYM them.
11813 (xftfont_open): Call XftFontMatch. Don't trust the result of
11814 XftTextExtents8 if the pixel_size is less than 5.
11815
118162008-06-18 Andreas Schwab <schwab@suse.de>
11817
11818 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
11819 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
11820
118212008-06-18 Jason Rumney <jasonr@gnu.org>
11822
11823 * w32font.c (w32font_list, w32font_match): Add logging.
11824
11825 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
11826
118272008-06-17 Chong Yidong <cyd@stupidchicken.com>
11828
11829 * font.c (font_parse_fcname): Store divider characters for
11830 unknown-spec list. For known key symbols, intern using correct
11831 symbol name.
11832
118332008-06-17 Kenichi Handa <handa@m17n.org>
11834
11835 * xfaces.c (realize_default_face): If the frame is not on window
11836 system, set the fontset of face to nil.
11837
118382008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11839
11840 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
11841
118422008-06-16 Juanma Barranquero <lekktu@gmail.com>
11843
11844 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
11845 (build_font_name_from_vector): Delete externs.
11846
11847 * xfaces.c (struct font_name): Don't declare.
11848
118492008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
11850
11851 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
11852
118532008-06-16 Chong Yidong <cyd@stupidchicken.com>
11854
11855 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
11856
118572008-06-16 Juanma Barranquero <lekktu@gmail.com>
11858
11859 * font.c (Ffont_spec): Fix usage in docstring.
11860 (Ffont_face_attributes): Doc fix.
11861
118622008-06-16 Andreas Schwab <schwab@suse.de>
11863
11864 * font.c (Ffont_face_attributes): Fix definition.
11865
118662008-06-16 Jason Rumney <jasonr@gnu.org>
11867
11868 * font.h (font_style_symbolic_from_value): Remove.
11869
11870 * font.c (font_style_symbolic_from_value): Remove.
11871 (font_style_symbolic): Revert to pre 2008-06-13 version.
11872
11873 * w32font.c (w32_to_fc_weight): New function.
11874 (w32font_full_name, logfont_to_fcname): Use it.
11875
118762008-06-16 Kenichi Handa <handa@m17n.org>
11877
11878 * font.c (font_check_object): Delete it.
11879 (font_clear_cache): Check if a font-object is alive.
11880 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
11881 font-object to nil.
11882 (font_close_object): Don't check FONT_CLOSE_OBJECT.
11883 (font_at): Don't call font_check_object.
11884 (Ffont_get): Return a symbol for :weight, :slant, and :width.
11885
118862008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
11887
11888 * puresize.h (BASE_PURESIZE): Increase to 1230000.
11889
118902008-06-16 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
11893
118942008-06-15 Chong Yidong <cyd@stupidchicken.com>
11895
11896 * font.c (font_parse_fcname): Only one decimal point.
11897 (font_unparse_fcname): Handle data in family and foundry indices
11898 as symbols, not strings.
11899 (font_unparse_gtkname, Ffont_face_attributes): New functions.
11900
11901 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
11902
11903 * font.h (font_unparse_gtkname): Add prototype.
11904
119052008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
11906
11907 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
11908
119092008-06-15 Andreas Schwab <schwab@suse.de>
11910
11911 * font.c (font_update_drivers): Fix crash when no drivers match.
11912
119132008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
11916 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
11917
119182008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
11919
11920 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
11921
119222008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * process.c (Fserial_process_configure, Fprocess_send_eof):
11925 Use EQ to compare Lisp_Objects.
11926
119272008-06-13 Jason Rumney <jasonr@gnu.org>
11928
11929 * w32fns.c (Fw32_select_font): Remove old font API function.
11930
11931 * w32font.c (logfont_to_fcname): New function.
11932 (Fx_select_font): New font dialog function compatible with
11933 GTK/fontconfig version.
11934
11935 * font.c (font_style_symbolic_from_value): New function.
11936 (font_style_symbolic): Use it.
11937
11938 * font.h (font_style_symbolic_from_value): Declare new function.
11939
119402008-06-13 Juanma Barranquero <lekktu@gmail.com>
11941
11942 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
11943 <font-width-table>: Fix typos in docstrings.
11944
119452008-06-13 Daniel Engeler <engeler@gmail.com>
11946
11947 These changes add serial port access.
11948 * process.c: Add HAVE_SERIAL.
11949 (Fdelete_process, Fprocess_status, Fset_process_buffer)
11950 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
11951 (list_processes_1, select_wrapper, Fstop_process)
11952 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
11953 (status_notify): Modify to handle serial processes.
11954 [HAVE_SERIAL] (Fserial_process_configure)
11955 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
11956 New functions.
11957 * process.h (struct Lisp_Process): Add `type'.
11958 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
11959 New functions.
11960 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
11961 serial ports.
b71ac3dd 11962 (serial_open, serial_configure): New functions.
aac0c6e3
MR
11963 * w32.h: Add FILE_SERIAL.
11964 (struct _child_process): Add ovl_read, ovl_write.
11965
119662008-06-13 Kenichi Handa <handa@m17n.org>
11967
11968 * dispextern.h (enum lface_attribute_index): New member
11969 LFACE_FOUNDRY_INDEX.
11970
11971 * font.c (font_score): Delete arg alternate_families. Check only
11972 weight, slant, width, and size. Ignore the difference of alias
11973 style symbols.
11974 (font_sort_entites): Adjust for the above change. Reflect the
11975 order of font-driver to scores.
11976 (font_list_entities): Don't check alternate_familes here.
11977 (font_clear_prop): Handle foundry.
11978 (font_update_lface): Don't parse "foundry-family" form here.
11979 Handle FONT_FOUNDRY_INDEX.
11980 (font_find_for_lface): Likewise. Handle alternate families here.
11981 If registry is nil, try iso8859-1 and ascii-0.
11982 (font_open_for_lface): Pay attention to size in ENTITY.
11983 (font_open_by_name): Simplify by calling font_load_for_lface.
11984 (free_font_driver_list): Delete it.
11985 (font_update_drivers): Preserve the order of backends.
11986 (syms_of_font): Setting of sort_shift_bits adjusted for the change
11987 of font_score and font_sort_entites.
11988 (font_update_sort_order): Likewise.
11989
11990 * xfaces.c (LFACE_FOUNDRY): New macro.
11991 (check_lface_attrs): Check foundry.
11992 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
11993 (merge_face_vectors): Check foundry.
11994 (merge_face_ref): Likewise.
11995 (Finternal_set_lisp_face_attribute): Likewise.
11996 (x_update_menu_appearance): Likewise.
11997 (Finternal_get_lisp_face_attribute): Likewise.
11998 (lface_hash): Likewise.
11999 (lface_same_font_attributes_p): Likewise.
12000 (x_supports_face_attributes_p): Likewise.
12001 (tty_supports_face_attributes_p): Likewise.
12002 (Finternal_set_alternative_font_family_alist): Intern strings.
12003 (Finternal_set_alternative_font_registry_alist): Downcase strings.
12004 (realize_default_face): Set LFACE_FOUNDRY (lface).
12005
12006 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
12007 font-driver at first.
12008
12009 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
12010
120112008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12012
12013 * lread.c (Fload): Use xfree, not free on saved_doc_string.
12014
120152008-06-12 Jim Meyering <meyering@redhat.com>
12016
12017 Make unexec_free handle NULL the same way free does.
12018 * unexmacosx.c (unexec_free): Ignore a NULL argument.
12019
120202008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
12021
12022 * character.h (CHAR_TO_BYTE_SAFE): New macro.
12023 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
12024 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
12025 (WEAK_ALIAS): Simplify.
12026 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
12027 when searching a unibyte buffer.
12028
120292008-06-12 Chong Yidong <cyd@stupidchicken.com>
12030
12031 * xfns.c (Fx_select_font): Rename from x-font-dialog.
12032
120332008-06-12 Juanma Barranquero <lekktu@gmail.com>
12034
12035 * w32font.c: Include ctype.h.
12036
120372008-06-11 Jason Rumney <jasonr@gnu.org>
12038
12039 * w32font.c (w32font_encode_char): Detect missing glyphs that are
12040 misreported as space.
12041 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
12042 as aliases for registry iso10646-1.
12043
120442008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * buffer.c (clone_per_buffer_values): Skip `name'.
12047
120482008-06-11 Chong Yidong <cyd@stupidchicken.com>
12049
12050 * font.c (font_parse_fcname): Fix last change; accept decimal
12051 points in font size.
12052
120532008-06-10 Jason Rumney <jasonr@gnu.org>
12054
12055 * w32uniscribe.c (add_opentype_font_name_to_list):
12056 Skip non unicode fonts.
12057
120582008-06-10 Chong Yidong <cyd@stupidchicken.com>
12059
12060 * xfns.c (Fx_font_dialog): New function.
12061
12062 * gtkutil.c (xg_dialog_response_cb): Rename from
12063 xg_file_response_callback.
12064 (pop_down_dialog): Rename from pop_down_file_dialog.
12065 (xg_get_file_name): Callers changed.
12066 (xg_get_font_name): New function.
12067
12068 * gtkutil.h (xg_get_font_name): Insert prototype.
12069
120702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12071
12072 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
12073 x_underline_minimum_display_offset.
12074 (syms_of_xdisp): Declare it here rather than in xterm.c.
12075 * dispextern.h (underline_minimum_offset): Declare it.
12076 * w32term.c (x_draw_glyph_string): Use it.
12077 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
12078 (syms_of_xterm): Don't declare it any more.
12079 (x_draw_glyph_string): Adjust to the new name.
12080
8719abec 120812008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
12082
12083 * xterm.c (x_underline_minimum_display_offset): New var.
12084 (x_draw_glyph_string): Use it.
12085 (syms_of_xterm): Declare it.
12086
120872008-06-10 Chong Yidong <cyd@stupidchicken.com>
12088
12089 * font.c (font_parse_fcname): Accept GTK-style font names too.
12090
120912008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
12092
12093 * dired.c (file_name_completion): Don't return t if the match is exact
12094 but with different capitalization.
12095 * minibuf.c (Ftry_completion): Simplify.
12096
12097 * window.c (Vwindow_point_insertion_type): New var.
12098 (set_window_buffer): Use it.
12099 (syms_of_window): Init and export it to Lisp.
12100
121012008-06-10 Kenichi Handa <handa@m17n.org>
12102
12103 * font.h (font_intern_prop): Prototype adjusted.
12104
12105 * font.c (font_intern_prop): New arg force_symbol.
12106 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
12107 Adjust for the change of font_intern_prop.
12108
12109 * ftfont.c (ftfont_pattern_entity):
12110 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
12111 (w32_registry):
12112 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
12113 the change of font_intern_prop.
12114
121152008-06-09 Juanma Barranquero <lekktu@gmail.com>
12116
12117 * w32menu.c (digest_single_submenu): Declare extern.
12118
121192008-06-09 Jason Rumney <jasonr@gnu.org>
12120
12121 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12122
12123 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
12124 (parse_single_submenu): Remove.
12125 (digest_single_submenu): Remove.
12126 (syms_of_w32menu): Don't initialise variables that have moved
12127 to menu.c.
12128 (set_frame_menubar): Sync with version in xmenu.c.
12129 (w32_menu_show): Sync with xmenu_show in xmenu.c.
12130
12131 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
12132 Make static again.
12133
121342008-06-09 Jason Rumney <jasonr@gnu.org>
12135
12136 Changes to w32 files related to the move of common menu code
12137 to menu.c on 2008-06-08 by Chong Yidong.
12138
12139 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
12140 defs to w32gui.h.
12141 (single_keymap_panes, push_menu_item, push_menu_pane):
12142 Make globally visible.
12143
12144 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
12145 (local_free, malloc_widget_value, free_widget_value)
12146 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
12147 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
12148 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
12149 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
12150 (menu_items, menu_items_allocated, menu_items_used)
12151 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
12152 (init_menu_items, finish_menu_items, discard_menu_items)
12153 (grow_menu_items, push_submenu_start, push_submenu_end)
12154 (push_left_right_boundary, push_menu_pane, push_menu_item)
12155 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
12156 (free_menubar_widget_tree_value, parse_single_submenu)
12157 (update_submenu_strings): Remove functions.
12158 (xmalloc_widget_value): Remove and declare extern.
12159
12160 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
12161 (OBJ1): Build it.
12162
12163 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
12164 (local_heap, local_alloc, local_free, malloc_widget_value)
12165 (free_widget_value): Define here.
12166
121672008-06-09 Kenichi Handa <handa@m17n.org>
12168
12169 * font.h (Qascii_0): Extern it.
12170
12171 * font.c (Qascii_0): New variable.
12172 (syms_of_font): DEFSYM it.
12173 (font_open_by_name): If the registry "iso8859-1" fails, try also
12174 "ascii-0".
12175
12176 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
12177
121782008-06-08 Kenichi Handa <handa@m17n.org>
12179
12180 * .gdbinit (xfont): New command.
12181
121822008-06-08 Andreas Schwab <schwab@suse.de>
12183
12184 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
12185 * Makefile.in (menu.o): Update dependencies.
12186
12187 * Makefile.in (obj): Always add menu.o.
12188 * emacs.c (main): Always call syms_of_menu.
12189 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
12190
121912008-06-08 Chong Yidong <cyd@stupidchicken.com>
12192
12193 * Makefile.in: Compile menu.c.
12194
12195 * lisp.h: Declare syms_of_menu.
12196
12197 * emacs.c (main): Call syms_of_menu.
12198
12199 * keyboard.h: Relocate platform-independent menu definitions from
12200 xmenu.c.
12201
12202 * menu.c: New file. Relocate platform-independent menu
12203 definitions from xmenu.c. Suggested by Adrian Robert.
12204
12205 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 12206 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
12207 (menu_items_used, menu_items_n_panes)
12208 (menu_items_submenu_depth): Move to keyboard.h.
12209 (init_menu_items, finish_menu_items, unuse_menu_items)
12210 (discard_menu_items, restore_menu_items, save_menu_items)
12211 (grow_menu_items, push_submenu_start, push_submenu_end)
12212 (push_left_right_boundary, push_menu_pane, push_menu_item)
12213 (keymap_panes, single_keymap_panes, single_menu_item)
12214 (list_of_panes, list_of_items, find_and_call_menu_selection)
12215 (xmalloc_widget_value, free_menubar_widget_value_tree)
12216 (parse_single_submenu, digest_single_submenu)
12217 (update_submenu_strings): Move to menu.c.
12218
122192008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
12220
12221 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
12222
122232008-06-06 Miles Bader <miles@gnu.org>
12224
12225 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
12226 face, not frame default.
12227
122282008-06-05 Martin Rudalics <rudalics@gmx.at>
12229
12230 * window.c (pop_up_windows, pop_up_frames)
12231 (display_buffer_reuse_frames, Vpop_up_frame_function)
12232 (Vdisplay_buffer_function, Veven_window_heights)
12233 (Vspecial_display_buffer_names, Vspecial_display_regexps)
12234 (Vspecial_display_function, Vsame_window_buffer_names)
12235 (Vsame_window_regexps, split_height_threshold)
12236 (Vsplit_window_preferred_function): Move those vars to window.el.
12237 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
12238 (Fdisplay_buffer): Move those functions to window.el.
12239 (syms_of_window): Remove corresponding declarations.
12240 (display_buffer): New function.
12241 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
12242 * dispnew.c (Flast_nonminibuf_frame): New function.
12243 * buffer.c (Fpop_to_buffer): Move to window.el.
12244
122452008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12246
12247 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
12248
122492008-06-05 Kenichi Handa <handa@m17n.org>
12250
12251 * coding.c (detect_coding): Fix previous change.
12252 (detect_coding_system): Likewise.
12253
122542008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12255
12256 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
12257
12258 * keymap.c (Vminibuffer_local_filename_must_match_map):
12259 Rename from Vminibuffer_local_must_match_filename_map.
12260 (syms_of_keymap):
12261 * minibuf.c (Fcompleting_read): Adjust accordingly.
12262 * commands.h: Rename declaration as well.
12263
122642008-06-05 Kenichi Handa <handa@m17n.org>
12265
12266 * font.c (Ffont_spec): Don't use font_parse_family_registry for
12267 family name.
12268 (Ffont_put): Likewise.
12269
12270 * fontset.c (fontset_find_font): Call font_open_for_lface with the
12271 current font-spec.
12272
12273 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
12274 is unspecified.
12275
12276 * xfaces.c (realize_x_face): If the font-related face attributes
12277 are the same as those of default face, realize a new fontset from
12278 default->fontset.
12279 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
12280
122812008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
12282
12283 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
12284 (move_it_in_display_line): New wrapper.
12285
12286 * window.c (window_scroll_pixel_based_preserve_x)
12287 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
12288 (window_scroll_pixel_based, window_scroll_line_based):
12289 Use them to preserve column positions.
12290 (syms_of_window): Initialize them.
12291
12292 * indent.c (Fvertical_motion): Extend first arg to allow passing an
12293 (HPOS . VPOS) pair.
12294
12295 * dispextern.h (move_it_in_display_line): Declare.
12296
122972008-06-05 Juanma Barranquero <lekktu@gmail.com>
12298
12299 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
12300 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
12301 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
12302
123032008-06-04 Juanma Barranquero <lekktu@gmail.com>
12304
12305 * window.c (Fset_window_parameter): Doc fix.
12306 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
12307
123082008-06-04 Joakim Verona <joakim@verona.se>
12309
12310 * window.h (struct window): Add new member window_parameters.
12311
12312 * window.c (Fwindow_parameters, Fwindow_parameter)
12313 (Fset_window_parameter): New defuns.
12314 (syms_of_window): Defsubr the new defuns.
12315 (make_window): Initialize window_parameters to nil.
12316
123172008-06-04 John Paul Wallington <jpw@pobox.com>
12318
12319 * eval.c (Fdefmacro): Doc fix.
12320
123212008-06-04 Kenichi Handa <handa@m17n.org>
12322
12323 * coding.c (detect_coding): Fix handling of coding->head_ascii.
12324 Be sure to call setup_coding_system when we find a proper coding system.
12325 (detect_coding_system): Fix handling of coding->head_ascii.
12326
123272008-06-03 Andreas Schwab <schwab@suse.de>
12328
12329 * font.c (font_prop_validate_spacing): Fix last change.
12330
123312008-06-03 Kenichi Handa <handa@m17n.org>
12332
12333 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
12334 (font_parse_fcname): Fix handling of unknown key.
12335
12336 * xfont.c (xfont_list): Try an alias.
12337
12338 * charset.c (char_charset): Return NULL if the arg charset_list is
12339 specified and C doesn't belong to any of them.
12340
123412008-06-02 Chip Coldwell <coldwell@redhat.com>
12342
12343 * font.c (font_pixel_size): Don't take cdr of an integer.
12344
123452008-06-02 Jim Meyering <meyering@redhat.com>
12346
12347 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
12348 * alloc.c (xfree): Return right away for a NULL arg.
12349 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
12350 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
12351 * mac.c (create_apple_event_from_event_ref): Likewise.
12352 (create_apple_event_from_drag_ref, cfstring_create_normalized):
12353 Likewise.
12354 * doprnt.c (doprnt1): Likewise.
12355 * frame.c (frame): Likewise.
12356 * keyboard.c (wipe_kboard): Likewise.
12357 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
12358 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
12359 * term.c (tty_default_color_capabilities, maybe_fatal)
12360 (delete_tty): Likewise.
12361 * w16select.c (string): Likewise.
12362 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
12363 * w32bdf.c (w32_free_bdf_font): Likewise.
12364 * w32fns.c (w32_unload_font): Likewise.
12365 * w32font.c (w32font_close): Likewise.
12366 * window.c (size_window): Likewise.
12367 * xselect.c (receive_incremental_selection): Likewise.
12368 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
12369 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
12370 * w32.c (stat): Likewise.
12371
12372 Remove useless if-before-free tests.
12373 * editfns.c (Fset_time_zone_rule): Likewise.
12374 * lread.c (nosuffix): Likewise.
12375 * ralloc.c (get_bloc): Likewise.
12376 * regex.c (reg_free): Likewise.
12377 * xftfont.c (xftfont_open, xftfont_close): Likewise.
12378 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
12379 * xsmfns.c (smc_save_yourself_CB): Likewise.
12380
123812008-06-02 Kenichi Handa <handa@m17n.org>
12382
12383 * font.c (font_find_for_lface): Handle float font size.
12384 (font_open_for_lface): Likewise.
12385
12386 * xfaces.c (x_supports_face_attributes_p): Check face->font before
12387 comparing the properties.
12388
123892008-06-01 Jason Rumney <jasonr@gnu.org>
12390
12391 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
12392 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
12393 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
12394 Don't add empty script list.
12395 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
12396
123972008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
12398
12399 * Makefile.in (dot, dotdot): Remove, update users.
12400 ".." has been used elsewhere in the file for a long time.
12401 (LIBXT_STATIC): Remove conditional based on unused variable.
12402
124032008-06-01 Miles Bader <miles@gnu.org>
12404
12405 * xfaces.c (Vface_remapping_alist): New variable.
12406 (syms_of_xfaces): Initialize it.
12407 (enum named_merge_point_kind): New type.
12408 (struct named_merge_point): Add `named_merge_point_kind' field.
12409 (push_named_merge_point): Make cycle detection respect different
12410 named-merge-point kinds.
12411 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
12412 Remove face-name alias resolution.
12413 (lface_from_face_name): New definition using
12414 `lface_from_face_name_no_resolve'.
12415 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
12416 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
12417 (get_lface_attributes): New definition that layers face-remapping on
12418 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
12419 (lookup_basic_face): New function.
12420 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
12421 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
12422 `get_lface_attributes'.
12423 (face_at_buffer_position): Use `lookup_basic_face' to lookup
12424 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
12425 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
12426
12427 * xdisp.c (init_iterator): Pass base_face_id through
12428 `lookup_basic_face' when we actually use it as a face-id.
12429 (handle_single_display_prop): Use `lookup_basic_face' to lookup
12430 DEFAULT_FACE_ID.
12431
12432 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
12433 lookup the initial face-id.
12434
12435 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
12436
124372008-06-01 Juanma Barranquero <lekktu@gmail.com>
12438
12439 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
12440 (Fremove_text_properties): Fix typos in docstrings.
12441
124422008-05-31 Kenichi Handa <handa@m17n.org>
12443
12444 * font.c (font_list_entities): Fix the car part of data to be
12445 stored in the cache.
12446
12447 * ftfont.c (ftfont_font_format): Don't use strcasestr.
12448
124492008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
12452 Add a `test' argument so another predicate than `equal' can be used.
12453 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
12454 (map_char_table): Remove unused vars `c' and `i'.
12455 * lisp.h (Foptimize_char_table): Adjust declaration.
12456 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
12457
124582008-05-30 Kenichi Handa <handa@m17n.org>
12459
12460 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
12461 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
12462 defined.
12463
124642008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
12465
12466 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
12467 (Fmake_variable_frame_local): Disallow mixing buffer-local and
12468 frame-local settings for the same variable.
12469
124702008-05-30 Kenichi Handa <handa@m17n.org>
12471
12472 * fontset.c (Ffont_info): Move to font.c.
12473 (syms_of_fontset): Delete defsubr of Sfont_info.
12474
12475 * font.c (font_style_to_value, font_score): Delete casting of the
12476 args to xstcasecmp.
12477 (register_font_driver): Increment num_font_drivers only when
12478 registering the driver globally.
12479 (Ffont_info): Move from fontset.c. Handle a font object too.
12480 (syms_of_font): Defsubr Sfont_info.
12481
124822008-05-29 Kenichi Handa <handa@m17n.org>
12483
12484 * coding.h (enum define_coding_utf8_arg_index): New enum.
12485 (enum coding_attr_index): Change coding_attr_utf_16_bom to
12486 coding_attr_utf_bom.
12487 (enum utf_bom_type): Rename from utf_16_bom_type.
12488 (struct utf_16_spec): Adjust for the above change.
12489 (struct coding_system): Add utf_8_bom in `spec' union.
12490
12491 * coding.c (CODING_UTF_8_BOM): New macro.
12492 (enum coding_category): Delete coding_category_utf_8, add
12493 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
12494 coding_category_utf_8_sig.
12495 (CATEGORY_MASK_UTF_8): Delete it.
12496 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
12497 (CATEGORY_MASK_UTF_8_SIG): New macros.
12498 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
12499 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
12500 CATEGORY_MASK_UTF_8_SIG.
12501 (CATEGORY_MASK_UTF_8): New macro.
12502 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
12503 (detect_coding_utf_8): Check BOM.
12504 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
12505 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
12506 (encode_coding_utf_16): Likewise.
12507 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
12508 (detect_coding, detect_coding_system): Handle utf-8-auto.
12509 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
12510 (syms_of_coding): Fix setting up of Vcoding_category_table.
12511
125122008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
12513
12514 * process.c (Faccept_process_output): If `millisec' is non-nil,
12515 `seconds' default to 0.
12516 (wait_reading_process_output): Also return non-nil if we read output
12517 from a non-running process.
12518
125192008-05-29 Jason Rumney <jasonr@gnu.org>
12520
12521 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
12522 `raster' specified.
12523 (add_font_entity_to_list): Allow non-opentype truetype fonts back
12524 in the uniscribe backend, but disallow any font that has no
12525 unicode subrange support.
12526
125272008-05-29 Juanma Barranquero <lekktu@gmail.com>
12528
12529 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
12530 Fix typos in docstrings.
12531
125322008-05-29 Kenichi Handa <handa@m17n.org>
12533
12534 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
12535 (Fx_family_fonts): Set frame correctly.
12536
125372008-05-28 Jason Rumney <jasonr@gnu.org>
12538
12539 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
12540
125412008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
12544 calling build_annotations.
12545
125462008-05-28 Juanma Barranquero <lekktu@gmail.com>
12547
12548 * coding.c (Fdecode_coding_region, Fencode_coding_region)
12549 (Fencode_coding_string):
12550 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
12551 <latin-extra-code-table>: Fix typos in docstrings.
12552 (syms_of_coding) <coding-system-alist>: Doc fix.
12553 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
12554
125552008-05-28 Kenichi Handa <handa@m17n.org>
12556
12557 * fontset.c (Ffont_info): Don't call font_close_object.
12558
12559 * font.c (font_parse_family_registry): Use Ffont_put to validate
12560 foundry and family.
12561 (font_delete_unmatched): Don't check spacing.
12562 (font_list_entities): Add spacing to the spec to list fonts.
12563
12564 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
12565 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
12566
12567 * coding.c (encode_coding_raw_text): Fix previous change.
12568 (encode_coding_object): When the dst_object is a buffer and is
12569 different from src_object, move gap to PT.
12570
125712008-05-27 Chong Yidong <cyd@stupidchicken.com>
12572
12573 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
12574
125752008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12576
12577 * coding.c (encode_coding_raw_text): Set coding->produced_char for
12578 all branches. Compute it differently.
12579
12580 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
12581
125822008-05-27 Juanma Barranquero <lekktu@gmail.com>
12583
12584 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
12585 into "else if () ... else ...".
12586
125872008-05-27 Jason Rumney <jasonr@gnu.org>
12588
12589 * w32font.c (w32font_open_internal): Determine if glyph indices
12590 are likely to work here.
12591
125922008-05-27 Chong Yidong <cyd@stupidchicken.com>
12593
12594 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
12595 draw overlap glyphs with appropriate highlighting.
12596
125972008-05-27 Kenichi Handa <handa@m17n.org>
12598
12599 * xfont.c (xfont_open): Fix calculation of font->average_width.
12600
126012008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
12602
12603 * casefiddle.c (casify_object): Try to guess better whether the
12604 argument is a byte or a char.
12605
126062008-05-26 Andreas Schwab <schwab@suse.de>
12607
12608 * xselect.c (x_reply_selection_request): Properly handle format == 32.
12609 Always send multiples of format size.
12610
12611 * xterm.c (x_set_frame_alpha): Fix type mismatch.
12612
126132008-05-26 Jason Rumney <jasonr@gnu.org>
12614
12615 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
12616 (compute_metrics): Don't set failure if we just cleared the cache.
12617 (w32_weight_table): Remove unused variable.
12618 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
12619 backwards compatibility.
12620
126212008-05-25 Kenichi Handa <handa@m17n.org>
12622
12623 * w32term.c (x_draw_glyph_string):
12624 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
12625
12626 * xfaces.c: Delete unused function prototypes.
12627 (xstrlwr, font_frame): Delete them.
12628 (clear_face_cache): Delete unused variable.
12629
12630 * xftfont.c (xftfont_open): Delete unused variable.
12631 If underline_thickness is not 1, adjust underline_position.
12632
12633 * ftxfont.c (ftxfont_open): Delete unused variable.
12634
12635 * fontset.c (face_for_char): Optimize for the case of no charset
12636 property.
12637
12638 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
12639 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
12640 (otf_open, font_otf_capability, generate_otf_features)
12641 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12642 Comment out by surrounding "#if 0" and "#endif" for the moment.
12643 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
12644 (syms_of_font): Codes for accessing above commented out.
12645
126462008-05-24 Eli Zaretskii <eliz@gnu.org>
12647
12648 * w32proc.c: Include dispextern.h.
12649
12650 * w32.c: Include dispextern.h.
12651
126522008-05-23 Juanma Barranquero <lekktu@gmail.com>
12653
12654 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
12655 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
12656 Fix typos in docstrings.
12657
126582008-05-23 Jason Rumney <jasonr@gnu.org>
12659
12660 * xsmfns.c: Remove includes that are already included by config.h.
12661
126622008-05-23 Kenichi Handa <handa@m17n.org>
12663
12664 * charset.c (Qemacs, charset_emacs): New variables.
12665 (char_charset): Fix for non-Unicode characters.
12666 (syms_of_charset): Define charset_emacs.
12667
12668 * w32term.c (x_draw_glyph_string): Be sure to update
12669 s->underline_thickness and s->underline_position. Be sure to draw
12670 underline within the current line area.
12671
12672 * xterm.c (x_draw_glyph_string): Be sure to update
12673 s->underline_thickness and s->underline_position. Be sure to draw
12674 underline within the current line area.
12675
12676 * fontset.c: Delete unused variables and add casting for char *
12677 throughout the file.
12678 (fontset_font): Try the fallback fonts of the current fontset
12679 before consulting the default fontset.
12680
12681 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
12682
12683 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
12684
126852008-05-22 Jason Rumney <jasonr@gnu.org>
12686
12687 * font.c: Don't include strings.h.
12688
12689 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
12690
12691 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
12692 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
12693 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
12694 to call xstrcasecmp.
12695
12696 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
12697
12698 * fontset.c (fs_query_fontset): Use xstrcasecmp.
12699
12700 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
12701
12702 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
12703
127042008-05-22 Kenichi Handa <handa@m17n.org>
12705
12706 * puresize.h (BASE_PURESIZE): Increase to 1220000.
12707
12708 * font.c (font_prop_validate_style): Adjust for the format
12709 change of font_style_table.
12710
12711 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
12712 two args.
12713
12714 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
12715 two args.
12716
127172008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
12718
12719 * minibuf.c (keys_of_minibuf): Delete.
12720 * lisp.h (keys_of_minibuf): Delete.
12721 * emacs.c (main): Don't call keys_of_minibuf.
12722
127232008-05-22 Kenichi Handa <handa@m17n.org>
12724
12725 * ftfont.c (ftfont_resolve_generic_family): Rename from
12726 ftfont_list_generic_family. Return a single family for each
12727 generic family.
12728 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
12729 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
12730 Call font_add_log.
12731 (ftfont_match): Call font_add_log.
12732
12733 * font.h (Ffont_xlfd_name): EXFUN adjusted.
12734 (FONT_DEBUG): Define it.
12735 (font_add_log): Extern it.
12736 (font_assert): Rename from xassert.
12737
12738 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
12739 (xfont_list_family): Call font_add_log.
12740 (xfont_match): Likewise.
12741 (memq_no_quit): Delete.
12742
12743 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
12744 call of Ffont_xlfd_name.
12745
12746 * xfaces.c (struct table_entry, slant_table, weight_table)
12747 (swidth_table): Move to font.c.
12748
12749 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
12750 xassert are changed to font_assert. Delete many unused variables.
12751 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
12752 New variables.
12753 (struct table_entry): Move from xfaces.c and modified.
12754 (weight_table, slant_table, width_table): Move from xfaces.c and
12755 contents adjusted for the change of struct table_entry.
12756 (font_style_to_value, font_style_symbolic): Adjust for the
12757 format change of font_style_table.
12758 (font_parse_family_registry): Don't overwrite existing foundry and
12759 family of font_spec.
12760 (font_score): Fix calculation of diff for sizes.
12761 (font_sort_entites): Call font_add_log.
12762 (font_delete_unmatched): Return a newly created list.
12763 (font_list_entities): Fix previous change. Call font_add_log.
12764 (font_matching_entity, font_open_entity, font_close_entity):
12765 Call font_add_log.
12766 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
12767 (Finternal_set_font_style_table): Delete.
12768 (BUILD_STYLE_TABLE): New macro.
12769 (build_style_table): New function.
12770 (Vfont_log, font_log_env_checked): New variables.
12771 (font_add_log): New function.
12772 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
12773 Declare Lisp variables "font-weight-table", "font-slant-table",
12774 "font-width-table", and "font-log". Initialize font_style_table.
12775
127762008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
12777
12778 * xterm.c (x_set_frame_alpha): Move declarations before statements.
12779
127802008-05-21 Seiji Zenitani <zenitani@mac.com>
4e2af782 12781 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
12782
12783 * frame.c (Qalpha): Add a new frame parameter `alpha'.
12784 (Vframe_alpha_lower_limit): New variable.
12785 (x_set_alpha): New function.
12786
12787 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
12788
12789 * xfns.c (x-create-frame, Qalpha):
12790 Initialize the frame parameter `alpha'.
12791 * xterm.c (OPAQUE, OPACITY): New.
12792 (x_set_frame_alpha): New function.
12793 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
12794
12795 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
12796 * w32fns.c (w32_frame_parm_handlers): Likewise.
12797
127982008-05-20 Jason Rumney <jasonr@gnu.org>
12799
12800 * w32font.c (add_font_entity_to_list): Don't add non-opentype
12801 truetype fonts to opentype list.
12802
128032008-05-20 Juanma Barranquero <lekktu@gmail.com>
12804
12805 * fontset.c (Ffontset_info): Doc fix.
12806 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
12807 <ignore-relative-composition>: Fix typos in docstrings.
12808
12809 * font.c (syms-of-font) <font-encoding-alist>:
12810 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
12811 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
12812 (Ffont_otf_alternates): Doc fixes.
12813
128142008-05-20 Kenichi Handa <handa@m17n.org>
12815
12816 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
12817 font.h through out the file.
12818 (FONT_DRIVERS): Rename from FONTOBJ.
12819 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
12820 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
12821
12822 * emacs.c (main): Call syms_of_font unconditionally.
12823
12824 * font.h (find_font_encoding): Extern it.
12825
12826 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
12827 fontset.c.
194d44e7 12828 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
12829 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
12830 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
12831 only when HAVE_WINDOW_SYSTEM is defined.
12832 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
12833 when HAVE_WINDOW_SYSTEM is defined.
12834
12835 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
12836 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
12837
12838 * xfaces.c: Include font.h unconditionally.
12839 (merge_face_ref, merge_face_vectors)
12840 (Finternal_set_lisp_face_attribute): Cancel the previous change.
12841
128422008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
12843
12844 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
12845 indirect_variable.
12846 * eval.c (lisp_indirect_variable): New fun.
12847 (Fuser_variable_p): Use it.
12848
128492008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
12850
12851 * lisp.h (indirect_variable):
12852 * data.c (indirect_variable, let_shadows_buffer_binding_p):
12853 Use Lisp_Symbol pointers rather than Lisp_Object.
12854 Adjust callers.
12855 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
12856 To this end, change calling-convention.
12857
12858 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
12859 if some non-hidden buffers are selected by string&pred.
12860
128612008-05-19 Chong Yidong <cyd@stupidchicken.com>
12862
12863 * process.c (wait_reading_process_output): Always check status
12864 when in batch mode.
12865
128662008-05-19 Kenichi Handa <handa@m17n.org>
12867
12868 * font.c (font_list_entities): Fix handling of cache.
12869 (font_matching_entity): Likewise.
12870
12871 * ftfont.c (cs_iso8859_1): Delete.
12872 (ft_face_cache): New variable.
12873 (struct ftfont_info): New member fc_charset_idx.
12874 (ftfont_build_basic_charsets): Delete.
12875 (fc_charset_table): New variable.
12876 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
12877 . FC_CHARSET_IDX) as :font-entity property in the font entity.
12878 Callers changed.
12879 (ftfont_lookup_cache, ftfont_get_charset): New functions.
12880 (ftfont_spec_pattern): New argument fc_charset_idx.
12881 Check registry more rigidly. Change callers.
12882 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
12883 change of :font-entity property of the font.
12884
12885 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
12886 property of the font.
12887
128882008-05-18 Juanma Barranquero <lekktu@gmail.com>
12889
12890 * coding.c (Fcoding_system_p): Rename argument to match docstring.
12891 (Funencodable_char_position, Fcheck_coding_systems_region)
12892 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
12893 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
12894 (Ffind_operation_coding_system, Fset_coding_system_priority)
12895 (Fcoding_system_eol_type): Doc fixes.
12896
128972008-05-17 Glenn Morris <rgm@gnu.org>
12898
12899 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
12900
129012008-05-16 Eli Zaretskii <eliz@gnu.org>
12902
12903 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
12904 and st_gid.
12905
12906 * frame.c (Fdelete_frame): Don't call font_update_drivers if
12907 HAVE_WINDOW_SYSTEM is not defined.
12908
12909 * xfaces.c (merge_face_ref, merge_face_vectors)
12910 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
12911 HAVE_WINDOW_SYSTEM is defined.
12912 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
12913
129142008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
12917
129182008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12919
12920 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
12921
129222008-05-15 Kenichi Handa <handa@m17n.org>
12923
12924 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
12925 preference.
12926
129272008-05-15 Glenn Morris <rgm@gnu.org>
12928
12929 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
12930
129312008-05-15 Chong Yidong <cyd@stupidchicken.com>
12932
12933 * fns.c (init_fns): Don't initialize weak_hash_tables here.
12934 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
12935
12936 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
12937
129382008-05-15 Kenichi Handa <handa@m17n.org>
12939
12940 * ftfont.c (ftfont_list): Downcase family name to check generic
12941 families.
12942
12943 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
12944 font-spec for QCfont value.
12945
12946 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
12947 buffer. Check the return value of it.
12948
129492008-05-14 Jason Rumney <jasonr@gnu.org>
12950
12951 * w32term.c (w32_get_glyph_overhangs): Remove.
12952 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
12953
129542008-05-14 Kenichi Handa <handa@m17n.org>
12955
12956 * font.c (font_prop_validate): Make nil a valid value.
12957 (font_clear_cache): Check if the cached vector of entities is nil
12958 or not.
12959
129602008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12961
12962 * emacs.c (main_thread): Conditionalize on
12963 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12964 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
12965
12966 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
12967 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
12968 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
12969
129702008-05-14 Kenichi Handa <handa@m17n.org>
12971
12972 * coding.c (detect_coding_iso_2022): Ignore a coding category that
12973 has no corresponding coding system.
12974
129752008-05-14 Jason Rumney <jasonr@gnu.org>
12976
12977 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
12978
12979 * w32font.h (w32font_open_internal): Update declaration.
12980
12981 * w32font.c (w32font_open_internal): Change last argument from
12982 w32font_info struct to font object. Fill in font object from
12983 font_entity. Get Outline metrics if possible. Use them to
12984 calculate underline position and thickness. Use xlfd name as name
12985 property. Don't set codepage.
12986 (w32font_open): Pass font_object to w32font_open_internal. Don't
12987 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
12988 (w32font_draw): Use s->font.
12989 (clear_cached_metrics): Don't clear non-existent blocks.
12990
12991 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
12992 font was not found.
12993 (x_draw_glyph_string): Use underline position and thickness from font.
12994
12995 * w32uniscribe.c (uniscribe_open): Pass font_object to
12996 w32font_open_internal.
12997
129982008-05-14 Kenichi Handa <handa@m17n.org>
12999
13000 These changes are to delete all legacy font-handling codes, and
13001 make Emacs use only font-backends.
13002
13003 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
13004 (frame.o, image.o, print.o): Depend on $(FONTSRC).
13005
13006 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
13007
13008 * charset.h (Vcharset_non_preferred_head)
13009 (Vcurrent_iso639_language): Extern them.
13010
13011 * charset.c (Vcharset_non_preferred_head): New variable.
13012 (Vcurrent_iso639_language): New variable.
13013 (syms_of_charset): Declare it as a Lisp variable.
13014 (char_charset): Don't check non preferred charsets. As a last
13015 resort, return charset_unicode.
13016 (Fset_charset_priority): Update Vcharset_non_preferred_head.
13017
13018 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
13019 conditionals. Don't check enable_font_backend. Delete all codes
13020 used only when USE_FONT_BACKEND is not defined.
13021
13022 * dispextern.h (struct glyph_string): Change type of `font' to
13023 `struct font *'.
13024 (struct glyph_string): New member underline_position and
13025 underline_thickness.
13026 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
13027 (struct face): Change type of `font' to `struct font *'. Remove
13028 members `font_name', `font_info_id'.
13029 (per_char_metric, encode_char): Delete externs.
13030 (calc_pixel_width_or_height): Adjust the prototype.
13031
13032 * emacs.c (enable_font_backend): Delete extern.
13033 (main): Don't set enable_font_backend. Don't check the command
13034 line argument "-disable-font-backend".
13035
13036 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
13037 (enum font_property_index): New members FONT_DPI_INDEX,
13038 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
13039 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
13040 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
13041 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
13042 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
13043 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
13044 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
13045 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
13046 (struct font_spec, struct font_entity): New structs.
13047 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
13048 (struct font): Many members from old "struct font_info" moved to
13049 here. Members font and entity deleted.
13050 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
13051 the new font-related objects.
13052 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
13053 (CHECK_FONT_GET_OBJECT): Likewise.
13054 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
13055 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
13056 (struct font_driver): New members case_sensitive anc check. Type
13057 of the member list and open changed.
13058 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
13059 (font_symbolic_width, font_find_object, font_get_spec)
13060 (font_set_lface_from_name): Delete extern.
13061 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
13062
13063 * font.c: Include <strings.h>.
13064 (enable_font_backend): Delete it.
13065 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
13066 (CHECK_VALIDATE_FONT_SPEC): Delete it.
13067 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
13068 (null_string): Delete it.
13069 (null_vector): Make it static.
13070 (font_family_alist): Delete it.
13071 (Qnormal): Extern it.
13072 (QCextra, QClanguage): Delete it.
13073 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
13074 (font_make_spec, font_make_entity, font_make_object)
13075 (font_intern_prop): Renamed from intern_downcase. Don't downcase
13076 the string. Callers changed.
13077 (font_pixel_size): Adjusted for the format change of font-related
13078 objects.
13079 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
13080 (font_style_to_value, font_style_symbolic): New function.
13081 (build_font_family_alist): Delete it.
13082 (font_registry_charsets): Use Fassoc_string instead of
13083 assq_no_quit.
13084 (font_prop_validate_symbol): Don't return null_string.
13085 (font_prop_validate_style): Adjusted for the change of
13086 style-related values in a font vector.
13087 (font_property_table): Delete entries for QClanguage and
13088 QCantialias, add entries for QCavgwidth.
13089 (get_font_prop_index): Delete the 2nd argument FROM.
13090 (font_prop_validate): Arguments changed.
13091 (font_put_extra): Adjusted for the change of font-related objects.
13092 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
13093 (font_parse_fcname, font_unparse_fcname)
13094 (font_prepare_composition): Likewise.
13095 (font_parse_family_registry): Renamed from font_merge_old_spec.
13096 (otf_open): Delete the 1st arg entity.
13097 (font_otf_capability): Adjusted for the above change.
13098 (font_score): New arg alternate_families. Adjusted for the change
13099 of font-related objects.
13100 (font_sort_entites): New arg best_only.
13101 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
13102 Delete them.
13103 (font_match_p): Check alternate families.
13104 (font_find_object): Delete it.
13105 (font_check_object): New function.
13106 (font_clear_cache): Adjusted for the change of font-related objects.
13107 (font_delete_unmatched): New arg.
13108 (font_list_entities): Call font_driver->list with a spec that
13109 doesn't specify style-related properties.
13110 (font_matching_entity): Arguments changed. Caller changed.
13111 (font_open_entity): Adjusted for the change of font-related objects.
13112 (font_close_object, font_has_char, font_encode_char)
13113 (font_get_name, font_get_spec): Likewise.
13114 (font_spec_from_name, font_clear_prop, font_update_lface):
13115 New functions.
13116 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
13117 (font_prepare_for_face, font_done_for_face, font_open_by_name)
13118 (font_at): Adjusted for the change of font-related objects.
13119 (font_range): New function.
13120 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
13121 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
13122 (Fcopy_font_spec, Fmerge_font_spec): New function.
13123 (Ffont_family_list): Renamed from list-families.
13124 (Finternal_set_font_style_table): Arguments changed.
13125 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
13126 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
13127 change of font-related objects.
13128 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
13129
13130 * fontset.h (struct font_info): Delete it. Most members go to
13131 struct font.
13132 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
13133 (enum FONT_SPEC_INDEX): Delete it.
13134 (font_info, list_fonts_func, load_font_func, query_font_func)
13135 (set_frame_fontset_func, find_ccl_program_func)
13136 (get_font_repertory_func, new_fontset_from_font_name): Delete
13137 externs.
13138 (fontset_from_font_name): Extern it.
13139 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
13140 (FONT_INFO_FROM_FACE): Deleted.
13141 (face_for_font): Adjust prototype.
13142
13143 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
13144 conditionals. Don't check enable_font_backend. Delete all codes
13145 used only when USE_FONT_BACKEND is not defined.
13146 (get_font_info_func, list_font_func, load_font_func)
13147 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
13148 (get_font_repertory_func): Delete them.
13149 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
13150 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
13151 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
13152 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
13153 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
13154 (fontset_compare_rfontdef): New function.
13155 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
13156 rfont-defs by qsort. Adjusted for the change of font-group vector.
13157 (load_font_get_repertory): Deleted.
13158 (fontset_find_font): Use new macros to ref/set elements of
13159 font-def and rfont-def.
13160 (fontset_font): Fix the timing of remembering that no font for C.
13161 (free_face_fontset): Do nothing if the face has no fontset.
13162 (face_suitable_for_char_p): Use new macros to ref/set elements of
13163 rfont-def.
13164 (face_for_char): Likewise. Call face_for_char with font_object.
13165 (fs_load_font): Delete. Delete #pragma surrounding it.
13166 (fs_query_fontset): Use strcasecmp instead of strcmp.
13167 (generate_ascii_font_name): Adjusted for the format change of
13168 font-spec.
13169 (Fset_fontset_font): Likewise. Use new macros to set elements of
13170 font-def.
13171 (Fnew_fontset): Use font_unparse_xlfd to generate
13172 FONTSET_ASCII (fontset).
13173 (new_fontset_from_font_name): Deleted.
13174 (fontset_from_font): Renamed from new_fontset_from_font. Check if
13175 a fontset is already created for the font. FIx updating of
13176 Vfontset_alias_alist.
13177 (fontset_ascii_font): Deleted.
13178 (Ffont_info): Adjusted for the format change of font-spec.
13179 (Finternal_char_font): Likewise.
13180 (Ffontset_info): Likewise.
13181 (syms_of_fontset): Don't check load_font_func.
13182
13183 * fns.c (internal_equal): Handle PREV_FONT.
13184
13185 * frame.h: Delete USE_FONT_BACKEND conditional.
13186
13187 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
13188 conditionals. Don't check enable_font_backend. Delete all codes
13189 used only when USE_FONT_BACKEND is not defined.
13190 (x_set_font): Call x_new_font, not x_new_fontset2.
13191 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
13192 already set for the frame.
13193
13194 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
13195 a font-entity by font_make_entity. Use font_intern_prop instead
13196 of intern_downcase. Use FONT_SET_STYLE to set a style-related
13197 font property. If a font is scalable, set avgwidth property to 0.
13198 Set font-entity property by font_put_extra.
13199 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
13200 (ffont_driver): Adjusted for the change of struct font_driver.
13201 (ftfont_spec_pattern): New function.
13202 (ftfont_list): Return a list, not vector.
13203 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
13204 (ftfont_list_family): Don't downcase names.
13205 (ftfont_free_entity): Deleted.
13206 (ftfont_open): Return a font-object. Adjusted for the change of
13207 struct font. Get underline_thickness and underline_position from
13208 font property. Don't update dpyinfo->smallest_font_height and
13209 dpyinfo->smallest_char_width.
13210 (ftfont_close): Don't free `struct font'.
13211 (ftfont_has_char): Adjusted for the format change of font-entity.
13212 (ftfont_encode_char, ftfont_text_extents): Likewise.
13213
13214 * ftxfont.c (ftxfont_list): Return a list, not vector.
13215 (ftxfont_open): Return a font-object. Adjusted for the change of
13216 struct font. Get underline_thickness and underline_position from
13217 font property. Don't update dpyinfo->smallest_font_height and
13218 dpyinfo->smallest_char_width.
13219 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
13220 (ftxfont_draw): Adjusted for the change of struct font.
13221
13222 * image.c (image_ascent): Don't include "charset.h". Include
13223 "character.h" and "font.h".
13224
13225 * lisp.h (enum pvec_type): New member PREV_FONT.
13226 (Fassoc_string): EXFUN it.
13227
13228 * print.c: Include font.h.
13229 (print_object): Handle font-related objects.
13230
13231 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
13232 conditionals. Don't check enable_font_backend. Delete all codes
13233 used only when USE_FONT_BACKEND is not defined.
13234 (handle_auto_composed_prop): Do nothing if it->f is not on a
13235 window system. Check how many following characters can be
13236 displayed by the same font.
13237 (calc_pixel_width_or_height): Type of the 4th arg is changed to
13238 'struct font *'.
13239 (get_char_face_and_encoding): Assign the whole encoding task to
13240 the `encode-char' method of a font driver.
13241 (fill_composite_glyph_string): Adjusted for the change of `struct
13242 face' and `struct glyph_string'.
13243 (fill_glyph_string): Likewise.
13244 (get_per_char_metric): Arguments changed.
13245 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
13246 and `struct glyph_string'.
13247 (produce_stretch_glyph, calc_line_height_property)
13248 (x_produce_glyphs): Likewise.
13249
13250 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
13251 conditionals. Don't check enable_font_backend. Delete all codes
13252 used only when USE_FONT_BACKEND is not defined. Use
13253 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
13254 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
13255 (Qp): Extern them.
13256 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
13257 Deleted.
13258 (struct font_name): Deleted.
13259 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
13260 (compare_fonts_by_sort_order): New function.
13261 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
13262 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
13263 Deleted.
13264 (Fx_family_fonts): Use font_list_entities, and sort fonts by
13265 compare_fonts_by_sort_order.
13266 (Fx_font_family_list): Call Ffont_family_list.
13267 (face_numeric_value, face_numeric_weight, face_numeric_slant)
13268 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
13269 (face_symbolic_slant, face_symbolic_swidth)
13270 (split_font_name_into_vector, build_font_name_from_vector)
13271 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
13272 (font_rescale_ratio, split_font_name, build_font_name)
13273 (free_font_names, sort_fonts, x_face_list_fonts)
13274 (face_font_available_p, sorted_font_list, cmp_font_names)
13275 (font_list_1, concat_font_list, font_list, remove_duplicates):
13276 Deleted.
13277 (Fx_list_fonts): Use Ffont_list.
13278 (LFACE_AVGWIDTH): Deleted.
13279 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
13280 by FONTP.
13281 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
13282 (set_lface_from_font_name): Delete it.
13283 (set_lface_from_font): Renamed from
13284 set_lface_from_font_and_fontset. Caller changed. Don't set
13285 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
13286 for face.
13287 (merge_face_vectors): Copy font-spec if necessary.
13288 Clear properties of the font-spec if necessary.
13289 (merge_face_ref): Clear properties of the font-spec if necessary.
13290 (Finternal_set_lisp_face_attribute): Likewise.
13291 (set_font_frame_param): Use font_load_for_lface to load a
13292 font-object, and call Fmodify_frame_parameters with it.
13293 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
13294 font name by Ffont_xlfd_name.
13295 (Finternal_lisp_face_attribute_values): Don't check QCweight,
13296 QCslant, and QCwidth.
13297 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
13298 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
13299 Compare fonts by EQ.
13300 (lookup_non_ascii_face): Deleted.
13301 (face_for_font): The 2nd argument changed.
13302 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
13303 Check atomic font properties by case insensitive.
13304 (realize_non_ascii_face): Set face->overstrike correctly.
13305 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
13306 (dump_realized_face): Get font name from
13307 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
13308
13309 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
13310 conditionals. Don't check enable_font_backend. Delete all codes
13311 used only when USE_FONT_BACKEND is not defined.
13312 (xic_create_xfontset): Original code deleted and renamed from
13313 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
13314 (x_make_gc): Don't set GCFont in GCs.
13315 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
13316 opened by "fixed".
13317 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
13318 find_ccl_program_func, query_font_func, set_frame_fontset_func,
13319 get_font_repertory_func.
13320
13321 * xfont.c: Include <stdlib.h> and "ccl.h".
13322 (struct xfont_info): New structure.
13323 (xfont_query_font): Deleted.
13324 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
13325 moved from xterm.c.
13326 (xfont_driver): Adjusted for the change of struct font_driver.
13327 (compare_font_names): New function.
13328 (xfont_list_pattern): Sort font names case insensitively. Make
13329 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
13330 (xfont_list): Return a list, not vector.
13331 (xfont_match): If the font doesn't have QCname property, generate
13332 a name from the other font properties.
13333 (xfont_open): Return a font-object. Adjusted for the change of
13334 struct font. Get underline_thickness and underline_position from
13335 font property. Don't update dpyinfo->smallest_font_height and
13336 dpyinfo->smallest_char_width.
13337 (xfont_close): Don't free struct font.
13338 (xfont_prepare_face): Adjusted for the change of struct font.
13339 (xfont_done_face): Deleted.
13340 (xfont_has_char): Adjusted for the change of struct font.
13341 (xfont_encode_char, xfont_draw): Likewise.
13342 (xfont_check): New function.
13343
13344 * xftfont.c (xftfont_list): Adjusted for the change of `list'
13345 callback function.
13346 (xftfont_match): Adjusted for the format change of font-entity.
13347 (xftfont_open): Adjusted for the format change of font-entity and
13348 font-object. Adjusted for the change of struct font. Return a
13349 font-object. Don't update dpyinfo->smallest_font_height and
13350 dpyinfo->smallest_char_width.
13351 (xftfont_close): Block input while calling XftFontClose.
13352 (xftfont_prepare_face): Don't block input while calling
13353 xftfont_get_colors. Adjusted for the change of struct font.
13354 (xftfont_shape): Return value of error case fixed.
13355
13356 * xrdb.c (x_load_resources): Don't setup a fontset resource.
13357
13358 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
13359 conditionals.
13360 (FONT_WIDTH): Return (f)->max_width.
13361 (struct x_display_info): Delete member `font'.
13362 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
13363 (x_find_ccl_program, x_get_font_repertory): Delete externs.
13364 (struct x_output): Change type of `font' to `struct font *'.
13365
13366 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
13367 conditionals. Don't check enable_font_backend. Delete all codes
13368 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
13369 (x_per_char_metric, x_encode_char): Deleted.
13370 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
13371 (x_compute_glyph_string_overhangs): Adjusted for the change of
13372 `struct face'.
13373 (x_draw_glyph_string_foreground)
13374 (x_draw_composite_glyph_string_foreground): Likewise.
13375 (x_draw_glyph_string): Likewise. Use font->underline_position and
13376 font->underline_thickness.
13377 (x_new_font): Renamed from x_new_fontset2.
13378 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
13379 (x_check_font): Call `check' method of a font driver.
13380 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
13381 (x_query_font, x_get_font_repertory): Deleted.
13382 (x_find_ccl_program): Renamed and moved to xfont.c.
13383 (x_redisplay_interface): Adjusted for the change of `struct
13384 redisplay_interface'.
13385
13386 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
13387 conditionals. Don't check enable_font_backend. Delete all codes
13388 used only when USE_FONT_BACKEND is not defined. Surround non-used
13389 code by "#ifdef OLD_FONT" and "endif".
13390 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
13391
13392 * w32font.h (struct w32font_info): New member.
13393 (FONT_COMPAT): New macro.
13394 (w32font_open_internal): Prototype adjusted.
13395
13396 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
13397 OLD_FONT" and "endif".
13398
13399 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
13400 conditionals. Don't check enable_font_backend. Delete all codes
13401 used only when USE_FONT_BACKEND is not defined.
13402 (w32font_open): Return a font-object. Make a font-object by
13403 font_make_object. Adjusted for the change of struct w32font_info.
13404 (w32font_close): Don't free struct font. Adjusted for the change
13405 of struct w32font_info.
13406 (w32font_encode_char, w32font_text_extents, w32font_draw):
13407 Adjusted for the change of struct w32font_info.
13408 (w32font_draw): Likewise.
13409 (w32font_list_internal): Return a list, not vector.
13410 (w32font_open_internal): Change the 4th arg to font-object.
13411 Adjusted for the change of struct w32font_info and font-object format.
13412 (add_font_name_to_list): Don't downcase names.
13413 (w32_enumfont_pattern_entity): Make a font-entity by
13414 font_make_entity. Adjusted for the format change of font-entity.
13415 Use FONT_SET_STYLE to set a style-related font property. If a
13416 font is scalable, set avgwidth property to 0. Set font-entity
13417 property by font_put_extra.
13418 (font_matches_spec): Adjusted for the format change of font-entity.
13419 (w32_weight_table, w32_decode_weight): New variables.
13420 (w32_encode_weight): New function.
13421 (fill_in_logfont): Adjusted for the format change of font-spec.
13422 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
13423 weight value.
13424 (w32font_driver): Adjusted for the change of struct font_driver.
13425
13426 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
13427 conditionals. Don't check enable_font_backend. Surround non-used
13428 code by "#ifdef OLD_FONT" and "endif".
13429 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
13430 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
13431
13432 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
13433 conditionals. Don't check enable_font_backend. Delete all codes
13434 used only when USE_FONT_BACKEND is not defined. Surround non-used
13435 code by "#ifdef OLD_FONT" and "endif".
13436
13437 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
13438 (uniscribe_open): Return value changed to font-object.
13439 Adjusted for the format change of font-object.
13440 (uniscribe_otf_capability): Adjusted for the change of struct font.
13441 (add_opentype_font_name_to_list): Don't downcase names.
13442 (uniscribe_font_driver): Adjusted for the change of struct
13443 font_driver.
13444
134452008-05-13 Chong Yidong <cyd@stupidchicken.com>
13446
13447 * dispnew.c (update_frame_1): Check if tty output is still valid
13448 before flushing it.
13449
134502008-05-13 Jan Djärv <jan.h.d@swipnet.se>
13451
13452 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
13453 to Gtk+ menus.
13454
134552008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
13456
13457 * dired.c (file_name_completion): Tweak the code so as to always do it
13458 in a single pass. Tighten the scope of some variables.
13459
13460 * dired.c (Qdefault_directory): New var.
13461 (file_name_completion): Use it instead of Fexpand_file_name.
13462 (syms_of_dired): Initialize it.
13463
134642008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * fileio.c (double_dollars): Remove dead code.
13467
134682008-05-10 Eli Zaretskii <eliz@gnu.org>
13469
13470 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
13471 Mention w32-get-true-file-attributes in doc string.
13472
13473 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
13474
134752008-05-09 Glenn Morris <rgm@gnu.org>
13476
13477 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
13478 2008-04-23.
13479
134802008-05-09 Eli Zaretskii <eliz@gnu.org>
13481
13482 Support for reporting owner and group of each file on MS-Windows:
13483 * dired.c (stat_uname, stat_gname): New functions, with special
13484 implementation for w32.
13485 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
13486
13487 * w32.c: Rename the_passwd_* to dflt_passwd_*.
13488 (dflt_group_name): New static variable.
13489 (dflt_group): Rename from the_group.
13490 (init_user_info): Init dflt_group fields. Get user's group name
13491 from LookupAccountSid.
13492 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
13493 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
13494 New initialization states.
13495 (globals_of_w32): Initialize them to zero. Initialize the default
13496 group name to "None".
13497 (GetFileSecurity_Name): New global var, the name of the function
13498 to call for GetFileSecurity.
13499 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
13500 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
13501 (get_file_security, get_security_descriptor_owner)
13502 (get_security_descriptor_group, is_valid_sid)
13503 (get_file_security_desc, get_rid, get_name_and_id)
13504 (get_file_owner_and_group): New functions.
13505 (stat): Use get_file_security_desc and get_file_owner_and_group to
13506 report the owner and primary group of each file. Don't ignore the
13507 high 32 bits of file's size, now that st_size is 64-bit wide.
13508 Fix test when to get true file attributes.
13509 (init_user_info): Use get_rid instead of equivalent inline code.
13510 (fstat): Don't ignore the high 32 bits of file's size.
13511
135122008-05-09 Chong Yidong <cyd@stupidchicken.com>
13513
13514 * image.c (png_load): Use correct bit-depth for setting background
13515 color.
13516
135172008-05-08 Eli Zaretskii <eliz@gnu.org>
13518
13519 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
13520 epa-hook.elc.
13521
135222008-05-08 Juanma Barranquero <lekktu@gmail.com>
13523
13524 * font.c (Ffont_match_p): Don't use `iff' in docstring.
13525
135262008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
13527
13528 * macfns.c (Fx_create_frame): Make a copy of frame parameters
13529 because the original parameters are in pure storage now.
13530 (mac_window): Remove unused params. Update callers.
13531
135322008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13533
13534 * lread.c (substitute_object_recurse): Use lower-level primitives.
13535 Don't signal errors when traversing sub-char-tables.
13536 Don't loop over all the possible characters when traversing char-tables.
13537
13538 * print.c (print_preprocess): Add sub-char-tables to the print-table,
13539 just like we do in print.c.
13540
135412008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
13542
13543 * minibuf.c (Ftry_completion): Remove code left over from when we used
13544 scmp instead of Fcompare_strings.
13545
135462008-05-04 Juanma Barranquero <lekktu@gmail.com>
13547
13548 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
13549
135502008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13551
13552 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
13553 Create bitmap context in native byte order.
13554
13555 * macterm.c (XDrawLine)
13556 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
13557 context in native byte order.
13558
135592008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13560
13561 * config.in: Regenerate.
13562
13563 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
13564 New definitions for Image I/O support.
13565 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
13566 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
13567 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13568 (mac_data_provider_release_data, image_load_image_io)
13569 [USE_MAC_IMAGE_IO]: New functions.
13570 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
13571 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
13572 (init_image_func_pointer) [MAC_OSX]: Remove function.
13573 (image_load_quartz2d) [MAC_OSX]: Check availability of
13574 CGImageCreateWithPNGDataProvider at compile time.
13575 Use lowercase `false' for boolean constant.
13576 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
13577 Use image_load_image_io.
13578 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
13579 Don't check MyCGImageCreateWithPNGDataProvider.
13580 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
13581 Don't call init_image_func_pointer.
13582
13583 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
13584
13585 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
13586 Make variable non-static.
13587 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
13588 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
13589
13590 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
13591 (RED_FROM_ULONG): Mask off higher bits.
13592 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
13593
13594 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
13595 Include AvailabilityMacros.h.
13596 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
13597 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
13598
135992008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
13600
13601 * chartab.c (Fset_char_table_range): If range is t, really set all
13602 chars to that value.
13603
136042008-05-03 Eli Zaretskii <eliz@gnu.org>
13605
13606 * dired.c (Ffile_attributes): Don't allow the device number become
13607 negative.
13608
136092008-05-02 Daiki Ueno <ueno@unixuser.org>
13610
13611 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
13612
136132008-05-02 Juri Linkov <juri@jurta.org>
13614
13615 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
13616 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
13617 DEFAULT argument as a list of default values in docstrings.
13618
136192008-05-01 Chong Yidong <cyd@stupidchicken.com>
13620
13621 * puresize.h (BASE_PURESIZE): Increase to 1210000.
13622
136232008-05-01 Martin Rudalics <rudalics@gmx.at>
13624
13625 * dispnew.c (change_frame_size_1): Preserve small windows when
13626 shrinking frames by calling set_window_height|width with third
13627 arg 2.
13628
13629 * window.h (struct window): Replace field too_small_ok by field
13630 resize_proportionally.
13631
13632 * window.c (make_window): Initialize resize_proportionally.
13633 (enlarge_window): Temporarily set resize_proportionally to make
13634 sure that shrink_windows does scale the window proportionally.
13635 (shrink_windows): When window has resize_proportionally set try
13636 to shrink it proportionally by stealing from other windows.
13637 (struct saved_window, Fset_window_configuration)
13638 (compare_window_configurations): Handle resize_proportionally.
13639 (WINDOW_TOTAL_SIZE): New macro.
13640 (window_min_size, shrink_windows, size_window): Use it.
13641 (check_min_window_sizes): Remove. Invalid values of
13642 window-min-height|width are handled by window_min_size_2 now.
13643 (size_window, Fsplit_window, enlarge_window)
13644 (adjust_window_trailing_edge, grow_mini_window): Don't call
13645 check_min_window_sizes.
13646 (window_min_size_2, window_min_size_1, window_min_size):
13647 New argument safe_p for retrieving "safe" minimum sizes.
13648 (Fdisplay_buffer, Fsplit_window, enlarge_window)
13649 (adjust_window_trailing_edge, grow_mini_window):
13650 Adjust arguments of window_min_size... functions.
13651 (shrink_windows): Argument min_size removed. New argument
13652 safe_p allows shrinking windows to their safe minimum sizes.
13653 Calculate minimum size and decide whether a window shall be
13654 deleted for each window individually.
13655 (size_window): When nodelete_p equals 2, tell shrink_windows to
13656 delete windows only if their new minimum size is no more safe.
13657 (shrink_window_lowest_first): Call window_min_size_1 to make
13658 sure to preserve modeline of bottom-most window when resizing
13659 the minibuffer.
13660 (Fset_window_configuration, Fcurrent_window_configuration)
13661 (compare_window_configurations): Do not handle
13662 window-min-height|width any more.
13663 (syms_of_window): Clarify window-min-height|width doc-strings.
13664
136652008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
13666
13667 * dired.c (file_name_completion): Fix up the encoding/decoding issue
13668 some more. Copy some of the code from Ftry_completions.
13669 Remove special case code that dates back to initial revision when the
13670 slash was only added when necessary and that can't trigger nowadays.
13671
136722008-04-27 Kenichi Handa <handa@m17n.org>
13673
13674 * font.c (font_prop_validate): Signal `error' instead of `font'.
13675
136762008-04-29 Jason Rumney <jasonr@gnu.org>
13677
13678 * w32fns.c (Fw32_battery_status): New defun.
13679 (syms_of_w32fns): Defsubr it.
13680
136812008-04-28 Andreas Schwab <schwab@suse.de>
13682
13683 * dired.c (file_name_completion): Fix another mixing of encoded
13684 and decoded names.
13685
136862008-04-28 Juanma Barranquero <lekktu@gmail.com>
13687
13688 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
13689
136902008-04-27 Juanma Barranquero <lekktu@gmail.com>
13691
13692 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
13693
136942008-04-27 Andreas Schwab <schwab@suse.de>
13695
13696 * dired.c (file_name_completion): Fix inappropriate mixing of
13697 encoded and decoded names.
13698
13699 * xterm.c (XTread_socket): Fix use of uninitialized variable.
13700
13701 * puresize.h (BASE_PURESIZE): Increase to 1200000.
13702
137032008-04-26 Eli Zaretskii <eliz@gnu.org>
13704
13705 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
13706 2008-03-31, it's not needed anymore with `struct stat' definition
13707 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
13708 for the same reasons.
13709
137102008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
13711
13712 * m/sparc.h: Additional redefinitions for GNU/Linux.
13713
137142008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13715
13716 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
13717 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
13718 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
13719 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
13720 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13721 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
13722 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13723 Likewise.
13724
13725 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
13726 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
13727 (mac_ax_number_of_characters): Add externs.
13728 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
13729 [USE_MAC_TSM]: Likewise.
13730 (mac_handle_text_input_event) [MAC_OSX]:
13731 Handle kEventTextInputOffsetToPos for no active input area case.
13732 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13733 (mac_handle_document_access_event)
13734 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
13735 (install_application_handler) [MAC_OSX]: Register handlers for
13736 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
13737 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
13738 Register mac_handle_document_access_event.
13739
13740 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
13741 Make functions non-static.
13742
137432008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
13744
13745 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
13746 (read_file_name_completion_ignore_case, insert_default_directory)
13747 (Qdefault_directory): Move to minibuffer.el.
13748 (Fread_file_name): Call the new `read-file-name' instead.
13749
137502008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13751
13752 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
13753 Make function non-static.
13754 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
13755 Remove function.
13756 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13757 Move to mactoolbox.c.
13758 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
13759
13760 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
13761 (mac_rect_make): New macro.
13762
13763 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
13764 instead of float.
13765 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13766 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
13767 (XSetBackground) [USE_CG_DRAWING]: Likewise.
13768 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
13769 CGRectMake.
13770 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
13771 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
13772 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
13773 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13774 instead of WindowRef in argument type.
13775 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
13776 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
13777 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
13778 instead of DISPLAY. All uses changed.
13779 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
13780 (x_calc_absolute_position): Simplify so as not to use
13781 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
13782
13783 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
13784 instead of WindowRef in argument type.
13785 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
13786 [TARGET_API_MAC_CARBON]: Remove externs.
13787 (create_apple_event, mac_event_parameters_to_lisp)
13788 [TARGET_API_MAC_CARBON]: Add externs.
13789
13790 * mactoolbox.c (Vmac_ts_script_language_on_focus)
13791 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
13792 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
13793 is clicked.
13794 (x_activate_menubar): Remove extern for saved_menu_event_location.
13795 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
13796 Move from mac.c.
13797
137982008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13799
13800 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
13801 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
13802
138032008-04-23 Jason Rumney <jasonr@gnu.org>
13804
13805 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
13806 attributes only for local files.
13807
13808 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
13809 default to Qlocal.
13810
138112008-04-22 Juri Linkov <juri@jurta.org>
13812
13813 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
13814 read-buffer-to-switch instead of using the letter "B".
13815
138162008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
13817
13818 * fileio.c (Qdefault_directory): New variable.
13819 (Fread_file_name): Use it to pass `dir' to the completion functions.
13820
138212008-04-20 Chong Yidong <cyd@stupidchicken.com>
13822
13823 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
13824
138252008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
13826
13827 * keyboard.c (Vpre_help_message): Remove.
13828 (show_help_echo): Remove default C code.
13829
13830 * dired.c (directory_files_internal, file_name_completion):
13831 Only call ENCODE_FILE if the string is indeed decoded.
13832
138332008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13834
13835 * Makefile.in (TOOLKIT_DEFINES): Remove.
13836 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
13837
138382008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13839
13840 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
13841 (mactoolbox.o): New target.
13842
13843 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
13844 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
13845
13846 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
13847 Use mac_set_frame_window_background instead of XSetWindowBackground.
13848 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
13849 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
13850 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
13851 instead of SetWindowTitleWithCFString.
13852 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
13853 Move function to mactoolbox.c.
13854 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
13855 Use mac_set_window_modified instead of SetWindowModified.
13856 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
13857 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
13858 (Fx_focus_frame): Use mac_front_non_floating_window instead of
13859 FrontNonFloatingWindow. Use mac_activate_window instead of
13860 ActivateWindow. Use mac_active_non_floating_window instead of
13861 ActiveNonFloatingWindow.
13862 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
13863 Use mac_show_hourglass and mac_hide_hourglass.
13864 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
13865 instead of GetGlobalMouse.
13866 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
13867 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
13868 Use mac_bring_window_to_front instead of BringToFront.
13869 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
13870 mactoolbox.c.
13871 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
13872 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
13873 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
13874 mactoolbox.c.
13875
13876 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
13877 (XtPointer): Move typedef from macmenu.c.
13878 (enum button_type): Move enum from macmenu.c.
13879 (widget_value): Move typedef from macmenu.c.
13880 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
13881 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13882 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13883 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13884 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13885 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13886 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13887 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
13888 (Selection): Move typedef from macselect.c.
13889 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
13890 macterm.c.
13891 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
13892 (mac_is_window_collapsed, mac_bring_window_to_front)
13893 (mac_send_window_behind, mac_hide_window, mac_show_window)
13894 (mac_collapse_window, mac_front_non_floating_window)
13895 (mac_active_non_floating_window, mac_activate_window)
13896 (mac_move_window_structure, mac_move_window, mac_size_window)
13897 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
13898
13899 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
13900 (enum mac_menu_kind): Move enum to mactoolbox.c.
13901 (min_menu_id): Move variable to mactoolbox.c.
13902 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
13903 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
13904 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
13905 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
13906 [TARGET_API_MAC_CARBON]: Likewise.
13907 (XtPointer): Move typedef to macgui.h.
13908 (enum button_type): Move enum to macgui.h.
13909 (widget_value): Move typedef to macgui.h.
13910 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
13911 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
13912 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
13913 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
13914 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
13915 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
13916 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
13917 (popup_activated_flag): Make variable non-static.
13918 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
13919 (add_menu_item, fill_menu, dispose_menus):
13920 Move functions to mactoolbox.c.
13921 (restore_show_help_function, menu_target_item_handler)
13922 (install_menu_target_item_handler, mac_handle_dialog_event)
13923 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
13924 [TARGET_API_MAC_CARBON]: Likewise.
13925 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
13926 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13927 (find_and_call_menu_selection, name_is_separator): Make function
13928 non-static.
13929 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
13930 to mactoolbox.c.
13931 (set_frame_menubar): Don't call install_menu_quit_handler.
13932 (menu_item_selection): New variable.
13933 (mac_menu_show): Use create_and_show_popup_menu.
13934 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
13935 selection but set variable menu_item_selection. All uses changed.
13936 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
13937 Call install_menu_quit_handler. Move to mactoolbox.c.
13938
13939 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
13940 (Selection): Move typedef to macgui.h.
13941 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
13942 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
13943 Make variables non-static.
13944 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13945 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
13946 Make functions non-static.
13947 (Vmac_service_selection) [MAC_OSX]: Likewise.
13948 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
13949 (mac_valid_selection_target_p, mac_clear_selection)
13950 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13951 (mac_put_selection_value, mac_selection_has_target_p)
13952 (mac_get_selection_value, mac_get_selection_target_list)
13953 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
13954 Move functions to mactoolbox.c.
13955 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
13956 Likewise.
13957 (copy_scrap_flavor_data, mac_handle_service_event)
13958 (install_service_handler) [MAC_OSX]: Likewise.
13959 (syms_of_macselect) <Vmac_dnd_known_types>:
13960 Use mac_dnd_default_known_types.
13961
13962 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
13963 Move to mactoolbox.c.
13964 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
13965 (Fx_selection_owner_p): Add EXFUN.
13966 (install_window_handler, remove_window_handler, XSetWindowBackground):
13967 Remove externs.
13968 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
13969 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
13970 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
13971 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
13972 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
13973 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
13974 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
13975 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
13976 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
13977 (create_and_show_popup_menu, mac_get_selection_from_symbol)
13978 (mac_valid_selection_target_p, mac_clear_selection)
13979 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13980 (mac_put_selection_value, mac_selection_has_target_p)
13981 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
13982 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
13983 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
13984 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
13985 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
13986 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
13987 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
13988 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13989 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
13990
13991 * mactoolbox.c: New file.
13992
139932008-04-18 Jason Rumney <jasonr@gnu.org>
13994
13995 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
13996
139972008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
13998
13999 * character.c (Fmultibyte_char_to_unibyte):
14000 Return latin1 chars unchanged.
14001
14002 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
14003 relocated if it points to `name'.
14004
140052008-04-17 Kenichi Handa <handa@m17n.org>
14006
14007 * data.c (Faset): Allow setting a multibyte character in an
14008 ASCII-only unibyte string.
14009
14010 * lisp.h (STRING_SET_MULTIBYTE): New macro.
14011
140122008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
14013
14014 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
14015 done in config.h.
14016
140172008-04-16 Juanma Barranquero <lekktu@gmail.com>
14018
14019 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
14020 (Fchar_direction): Add usage in the docstring.
14021
140222008-04-15 Chong Yidong <cyd@stupidchicken.com>
14023
14024 * keyboard.c (read_key_sequence): Remove always-true checks.
14025
140262008-04-14 Jason Rumney <jasonr@gnu.org>
14027
14028 * w32font.c (w32font_open_internal): Set max_bounds.descent in
14029 compatibility struct, for better underline positioning.
14030
140312008-04-13 David Hansen <david.hansen@gmx.net>
14032
14033 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
14034 string.
14035
140362008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
14037
14038 * m/hp800.h (XUINT, XSET): Remove.
14039
140402008-04-12 Juanma Barranquero <lekktu@gmail.com>
14041
14042 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
14043 previous change.
14044
140452008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
14046
14047 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
14048 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
14049
140502008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14051
14052 * keymap.h (map_keymap_canonical): Declare.
14053 * xmenu.c (single_keymap_panes): Use it.
14054
140552008-04-11 Glenn Morris <rgm@gnu.org>
14056
14057 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
14058 set the target's value to that of the alias.
14059
140602008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
14061
14062 * term.c (set_tty_color_mode): Left over typo.
14063
140642008-04-10 Michael Albinus <michael.albinus@gmx.de>
14065
14066 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
14067 only after check for file name handler functions. Signal, when
14068 native functionality is not supported.
14069 (syms_of_fileio): Declare it unconditionally.
14070
140712008-04-10 Jason Rumney <jasonr@gnu.org>
14072
14073 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
14074 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
14075
14076 * w32.c (logon_network_drive): Also logon to remote drives that
14077 are mapped to drive letters.
14078
140792008-04-10 Glenn Morris <rgm@gnu.org>
14080
14081 * xdisp.c (truncate-partial-width-windows): Doc fix.
14082
140832008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
14084
14085 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
14086 Move functions to minibuffer.el.
14087 (syms_of_fileio): Don't declare them.
14088
140892008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14090
14091 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
14092 (syms_of_minibuf): Remove its initialization.
14093
14094 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
14095
140962008-04-09 Juanma Barranquero <lekktu@gmail.com>
14097
14098 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
14099
141002008-04-09 Jason Rumney <jasonr@gnu.org>
14101
14102 * makefile.w32-in (distclean): Delete makefile too.
14103 (maintainer-clean): New target.
14104
14105 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
14106
14107 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
14108 for new font backend and composite cases.
14109
141102008-04-09 Jan Djärv <jan.h.d@swipnet.se>
14111
14112 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
14113 Most of the code moved to run_timers.
14114 (do_pending_atimers): Call run_timers.
14115 (run_timers): New function.
14116
14117 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
14118 run atimers.
14119
14120 * process.c (wait_reading_process_output): The same as above.
14121
141222008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
14123
14124 * minibuf.c (last_exact_completion): Remove variable.
14125 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
14126 (complete_and_exit_1, complete_and_exit_2)
14127 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
14128 (Fdisplay_completion_list, display_completion_list_1)
14129 (Fminibuffer_completion_help, Fself_insert_and_exit)
14130 (Fexit_minibuffer, Fminibuffer_message): Move functions to
14131 minibuffer.el.
14132 (syms_of_minibuf): Remove corresponding initializations.
14133
14134 * keyboard.c (Qdeactivate_mark): New var.
14135 (command_loop_1): Use it to call `deactivate-mark'.
14136 (syms_of_keyboard): Initialize it.
14137
14138 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
14139 to another frame.
14140 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
14141 Don't call set_tty_color_mode.
14142 (store_frame_param): Reset previous_frame rather than call
14143 set_tty_color_mode.
14144 * term.c (set_tty_color_mode): Rewrite.
14145 * dispextern.h (set_tty_color_mode): New type.
14146 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
14147
141482008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
14149
14150 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
14151 for generic chars, which do not exist any more in emacs-unicode.
14152
141532008-04-08 Michael Albinus <michael.albinus@gmx.de>
14154
14155 * coding.c (detect_coding_emacs_mule)
14156 (Ffind_operation_coding_system): Fix typo.
14157
141582008-04-08 Jason Rumney <jasonr@gnu.org>
14159
14160 * w32uniscribe.c (SNAME): Extract only symbol name.
14161
14162 * w32font.h (struct w32_metric_cache): New struct.
14163 (w32font_info): Use it.
14164 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
14165 (CACHE_BLOCKSIZE): New constants.
14166
14167 * w32font.c (Qja, Qko, Qzh): New symbols.
14168 (syms_of_w32font): Initialise them.
14169 (font_matches_spec): Use them to filter by language.
14170 (recompute_cached_metrics): Remove function.
14171 (compute_metrics, clear_cached_metrics): New functions.
14172 (w32font_encode_char): Use them to manage metric cache.
14173 (w32font_text_extents): Cache metrics for all glyphs on demand.
14174 Delay converting glyph indices to WORD until needed.
14175 (w32font_open_internal): Initialize metric cache to empty.
14176 (registry_to_w32_charset): Charset should always be a symbol.
14177 (fill_in_logfont, list_all_matching_fonts): Family should
14178 always be a symbol.
14179
141802008-04-06 Jason Rumney <jasonr@gnu.org>
14181
14182 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
14183 Give up if glyph indices not supported. Use uniscribe obtained
14184 ABC widths for individual metrics. Map glyph clusters back to
14185 characters using fClusterStart flag. Return number of glyphs
14186 produced, not chars processed.
14187 (uniscribe_shape): Map char at FROM to current glyph.
14188
141892008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14190
14191 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
14192 Use SetMenuItemHierarchicalMenu.
14193
141942008-04-05 Jason Rumney <jasonr@gnu.org>
14195
14196 * image.c (pbm_load): Allow color values up to 65535.
14197 Throw an error if max_color_idx is outside the supported range.
14198 Report an error when image size is invalid.
14199 Read two bytes at a time when raw images have max_color_idx above 255.
14200
aac0c6e3
MR
142012008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
14202
14203 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
14204 append "CCL: Quitted" when the CCL program is quitted.
14205 (setup_ccl_program): Initialize ccl->quit_silently to zero.
14206
14207 * ccl.h (struct ccl_program): New member quit_silently.
14208
142092008-04-05 Chong Yidong <cyd@stupidchicken.com>
14210
14211 * search.c (compile_pattern_1): Treat non-nil and non-string of
14212 search-spaces-regexp as nil.
14213
14214 * minibuf.c (Fassoc_string): Tweak docstring.
14215
142162008-04-05 Eli Zaretskii <eliz@gnu.org>
14217
14218 * dired.c (Ffile_attributes): Support inode numbers wider than 32
14219 bits. Remove ugly WINDOWSNT-specific kludge introduced on
14220 2008-03-14 to force inode be positive.
14221
14222 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
14223 _S_* ones, since we now use our own sys/stat.h.
14224 (stat, fstat): Don't mangle the inode number.
14225 (init_user_info): Don't restrict UID and GID to 0-60000 range.
14226
142272008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
14228
14229 * frame.h (struct frame): Give one more bit to `visible' since we use
14230 values larger than 1 to indicate obscured frames on ttys.
14231
14232 * keymap.c (Qkeymap_canonicalize): New var.
14233 (Fmap_keymap_internal): New fun.
14234 (describe_map): Use keymap-canonicalize.
14235
14236 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
14237 (Fundo_boundary): Set them.
14238 (syms_of_undo): Initialize them.
14239 (record_point): Use them instead of last_point_position*.
14240 (last_undo_buffer): Change type.
14241
142422008-04-04 Jason Rumney <jasonr@gnu.org>
14243
14244 * w32font.c (w32font_text_extents): Use font's ascent and descent.
14245 (recompute_cached_metrics): Don't set ascent and descent per char.
14246
14247 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
14248 (uniscribe_check_otf): Add GC protection before consing.
14249 Rearrange loop for counting features.
14250
142512008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
14252
14253 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
14254 buffer with byte-size of source buffer.
14255
142562008-04-03 Chong Yidong <cyd@stupidchicken.com>
14257
14258 * callint.c (Fcall_interactively): Handle temporary region even
14259 when shift-select-mode is off.
14260
142612008-04-03 Jason Rumney <jasonr@gnu.org>
14262
14263 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
14264
142652008-04-03 Kenichi Handa <handa@m17n.org>
14266
14267 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
14268 (CATEGORY_MASK_UTF_16): Likewise.
14269 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
14270 binary file.
14271 (detect_coding): Add null-byte detection for a binary file.
14272 (detect_coding_system): Likewise.
14273
142742008-04-03 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32uniscribe.c: New file.
14277
14278 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
14279
14280 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
14281
14282 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
14283 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
14284 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
14285 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
14286 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
14287 (Qphonetic): New symbols.
14288 (syms_of_w32font): Initialize them.
14289 (font_supported_scripts): Use them.
14290 (w32font_list_family): List all charsets.
14291 (w32font_text_extents, recompute_cached_metrics): Fix metric
14292 calculations.
14293 (w32_enumfont_pattern_entity): Make full_type a DWORD.
14294 Give opentype fonts their own format.
14295 (font_matches_spec): New arguments backend and logfont.
14296 Handle :otf spec for uniscribe backend.
14297 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
14298 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
14299
14300 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
14301 font backend.
14302 (globals_of_w32fns): Initialize uniscribe font backend.
14303
14304 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
14305 dependencies.
14306 (w32uniscribe.$(O)): New file to build.
14307 (FONT_OBJ): Include w32uniscribe.$(O).
14308 (LIBS): Add uniscribe libraries.
14309
14310 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
14311
143122008-04-02 Chong Yidong <cyd@stupidchicken.com>
14313
14314 * callint.c (Vshift_select_mode): New var.
14315 (Finteractive): Document new ^ spec.
14316 (Fcall_interactively): Call handle-shift-selection if the ^ spec
14317 is present.
14318
14319 * keyboard.c (Vthis_command_keys_shift_translated): New var.
14320 (command_loop_1): Avoid running the direct display versions of
14321 forward-char and backward-char if shift-selection may occur.
14322 (read_key_sequence): Set Vthis_command_keys_shift_translated if
14323 shift-translation takes place.
14324
14325 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
14326 avoid clobbering by define-minor-mode.
14327
14328 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
14329 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
14330
14331 * syntax.c (Fforward_word): Add ^ interactive spec.
14332
14333 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
14334 (Fscroll_right): Add ^ interactive spec.
14335
143362008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
14337
14338 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
14339
14340 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
14341
14342 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
14343
143442008-03-31 Juri Linkov <juri@jurta.org>
14345
14346 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
14347
143482008-03-30 Jan Djärv <jan.h.d@swipnet.se>
14349
14350 * gtkutil.c (xg_set_geometry): Fix indentation.
14351 (xg_resize_outer_widget): Remove.
14352 (x_wm_size_hint_off): Fix indentation.
14353 (xg_frame_set_char_size): Call flush_and_sync after
14354 gtk_window_resize.
14355 (x_wm_set_size_hint): Pass NULL as geometry window to
14356 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
14357 Add menu bar and tool bar height to base height.
14358 (xg_update_frame_menubar, free_frame_menubar)
14359 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
14360 (update_frame_tool_bar, free_frame_tool_bar):
14361 Change xg_resize_outer_widget to xg_frame_set_char_size.
14362
143632008-03-30 Michael Albinus <michael.albinus@gmx.de>
14364
14365 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
14366 (Fdbus_call_method): New parameter TIMEOUT.
14367 (dbus-send-signal): Optimize UNGCPRO call.
14368
143692008-03-29 Juri Linkov <juri@jurta.org>
14370
14371 * window.c (Fdisplay_buffer): Move call to
14372 Vsplit_window_preferred_function out of conditions that check
14373 if window is eligible for vertical splitting.
14374 When Vsplit_window_preferred_function is non-nil, call it and use
14375 its non-nil return value as window. Otherwise, continue doing
14376 vertical splitting using Fsplit_window with arg horflag=nil.
14377 (syms_of_window) <Vsplit_window_preferred_function>: Change the
14378 default value from `split-window' to nil.
14379
143802008-03-29 Juri Linkov <juri@jurta.org>
14381
14382 * callint.c (Fcall_interactively): Revert 2008-03-16 change
14383 for interactive code letters 'b' and 'B'.
14384
143852008-03-29 Eli Zaretskii <eliz@gnu.org>
14386
14387 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
14388 multibyte string.
14389
143902008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
14391
14392 * keyboard.c (pending_funcalls): New var.
14393 (timer_check): Run it.
14394 (syms_of_keyboard): Initialize it.
14395 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
14396 (Vdelete_terminal_functions): New vars.
14397 (syms_of_terminal): Initialize them.
14398 (Fdelete_terminal): Run delete-terminal-functions.
14399 * xdisp.c (safe_eval): Rewrite.
14400 (safe_call2): New fun.
14401 * frame.c (Qdelete_frame_functions): New var.
14402 (syms_of_frame): Initialize it.
14403 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
14404 * lisp.h (safe_call2, pending_funcalls): Declare.
14405
144062008-03-28 Andreas Schwab <schwab@suse.de>
14407
14408 * indent.c (Fmove_to_column): Move declaration before statements.
14409
144102008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
14411
14412 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
14413 (struct frame): Use bit fields for boolean vars.
14414
14415 * process.c (server_accept_connection): Simplify naming.
14416 (emacs_get_tty_pgrp): Use SDATA.
14417
14418 * coding.c (decode_coding_object): Fix last change.
14419
144202008-03-27 Jason Rumney <jasonr@gnu.org>
14421
14422 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
14423
144242008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
14425
14426 * charset.c (Fdefine_charset_internal): Change the way of
14427 registering charsets in Vcharset_order_list.
14428 (syms_of_charset): Make the charset `eight-bit' supplementary.
14429
144302008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
14431
14432 * regex.c (EXTEND_BUFFER): Change order of pointer addition
14433 operations, to avoid having the difference between pointers
14434 overflow.
14435
144362008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14437
14438 * indent.c (check_display_width): New fun.
14439 (scan_for_column): Use it.
14440
14441 * data.c (syms_of_data): Mark most-positive-fixnum and
14442 most-negative-fixnum as constants.
14443
14444 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
14445
14446 * indent.c (scan_for_column): Extract from current_column_1.
14447 Merge with the same code from Fmove_to_column.
14448 (current_column_1, Fmove_to_column): Use it.
14449
144502008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
14451
14452 * keymap.c (map_keymap_internal): New fun.
14453 (map_keymap): Use it.
14454 (Fmap_keymap_internal): New fun.
14455 (Fmap_keymap): Remove left-out test from before make_save_value.
14456
14457 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
14458
14459 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
14460 Use XCAR/XCDR.
14461
14462 * process.h (struct Lisp_Process): Remove filter_multibyte.
14463 * process.c (QCfilter_multibyte): Remove.
14464 (setup_process_coding_systems): Don't use filter_multibyte.
14465 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
14466 (read_process_output): Don't adjust multibyteness to filter_multibyte.
14467 (Fset_process_filter_multibyte): Change the coding-system to
14468 approximate the previous behavior.
14469 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
14470 coding-system.
14471
14472 * coding.c (decode_coding_object): When not decoding into a buffer,
14473 obey the coding system's preference of (uni|multi)byte.
14474
144752008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
14476
14477 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
14478 every char is changed and has a different byte-length.
14479 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
14480 Fix int -> EMACS_INT.
14481
144822008-03-23 David Hansen <david.hansen@gmx.net>
14483
14484 * dbusbind.c (xd_read_message): Remove extra copying of message
14485 strings. Check for NULL `interface' or `member'.
14486
144872008-03-22 Eli Zaretskii <eliz@gnu.org>
14488
14489 * w32.c (readdir): If FindFirstFile/FindNextFile return in
14490 cFileName a file name that includes `?' characters, use the 8+3
14491 alias in cAlternateFileName instead.
14492
144932008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
14494
14495 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
14496
144972008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14498
14499 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
14500 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
14501 work on current_buffer only instead (that was already the case
14502 for some of the code anyway).
14503 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
14504 (temp_set_point, temp_set_point_both): Use EMACS_INT.
14505 (SET_PT, SET_PT_BOTH): Adjust.
14506 * intervals.h (set_point, temp_set_point, set_point_both)
14507 (temp_set_point_both): Remove redundant declarations.
14508
145092008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
14510
14511 * fileio.c (Finsert_file_contents):
14512 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
14513 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
14514 when buffer != current_buffer anyway.
14515
145162008-03-20 Andreas Schwab <schwab@suse.de>
14517
14518 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
14519 as default.
14520
145212008-03-19 Jason Rumney <jasonr@gnu.org>
14522
14523 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
14524 (syms_of_w32fns): Initialize them.
14525 (HOURGLASS_ID): New constant.
14526 (x_window_to_frame): Don't check hourglass_window.
14527 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
14528 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
14529 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
14530 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
14531 Only change the cursor if hourglass is not active.
14532 (Fx_create_frame): Initialize frame's current_cursor.
14533 (hourglass_atimer): Remove.
14534 (hourglass_started): New function.
14535 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
14536 (show_hourglass): Adapt to w32, changing argument to frame.
14537
14538 * w32term.h (struct w32_output): Remove hourglass_window.
14539 Add current_cursor.
14540
14541 * eval.c (call_debugger, Fsignal):
14542 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
14543 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
14544 (Fexecute_extended_command, cancel_hourglass_unwind):
14545 * minibuf.c (read_minibuf):
14546 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
14547
145482008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
14549
14550 * window.c (run_funs): New fun.
14551 (run_window_configuration_change_hook): Use it to run the buffer-local
14552 and the global part of the hook.
14553
14554 * xdisp.c (format_mode_line_unwind_data): Add window argument.
14555 (unwind_format_mode_line): Restore selected window.
14556 (x_consider_frame_title, Fformat_mode_line): Set selected window.
14557
145582008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14559
14560 * editfns.c (Fchar_equal): Check they are valid characters.
14561
14562 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
14563
145642008-03-17 Andreas Schwab <schwab@suse.de>
14565
14566 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
14567 against a charset.
14568
14569 * lisp.h (Fbuffer_list): Declare.
14570
145712008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 14572
aac0c6e3
MR
14573 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
14574 handlebox_widget is != 0.
14575
145762008-03-16 Juri Linkov <juri@jurta.org>
14577
14578 * callint.c (Fcall_interactively): For interactive code letters
14579 'b' and 'B' put the buffer list into the list of default "future"
14580 values of the minibuffer.
14581
145822008-03-16 Andreas Schwab <schwab@suse.de>
14583
14584 * keyboard.c (read_key_sequence): Fix downcasing of letters with
14585 modifiers.
14586
14587 * regex.c (re_match_2_internal): Correct matching of a charset
14588 against latin-1 characters.
14589
145902008-03-16 Kenichi Handa <handa@m17n.org>
14591
14592 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
14593 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
14594 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
14595 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
14596 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
14597 CHAR_STRING_ADVANCE.
14598 (produce_chars): Fix for the case that the source and the
14599 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
14600 instead of CHAR_STRING_ADVANCE.
14601 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
14602 STRING_CHAR_ADVANCE.
14603
146042008-03-15 Andreas Schwab <schwab@suse.de>
14605
14606 * regex.c (re_match_2_internal): Correct matching of eight bit
14607 characters in unibyte strings.
14608
146092008-03-15 Martin Rudalics <rudalics@gmx.at>
14610
14611 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
14612 at end of range when it coincides with the end of the buffer.
14613
146142008-03-14 Eli Zaretskii <eliz@gnu.org>
14615
14616 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
14617
14618 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
14619
146202008-03-14 Jason Rumney <jasonr@gnu.org>
14621
14622 * editfns.c (initial_tz): New variable.
14623 (syms_of_editfns): Initialize it.
14624 (Fset_time_zone_rule): Set it when first called.
14625 Use it when TZSTRING is nil.
14626
14627 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
14628 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
14629 (monitor_from_point_fn, get_monitor_info_fn): New globals.
14630 (globals_of_w32fns): Initialize them.
14631 (compute_tip_xy): Use them to position tooltips.
14632
146332008-03-14 Glenn Morris <rgm@gnu.org>
14634
14635 * emacs.c (main): Revert previous change.
14636 (standard_args): Revert -internal-script back to -scriptload,
14637 and remove the long-option form.
14638
146392008-03-13 Glenn Morris <rgm@gnu.org>
14640
14641 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
14642 Remove option -enable-font-backend.
14643
146442008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
14645
14646 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
14647
146482008-03-11 Jan Djärv <jan.h.d@swipnet.se>
14649
14650 * xterm.c (x_connection_closed): For GTK: If this is the last
14651 terminal just exit without closing the display.
14652
146532008-03-11 Jason Rumney <jasonr@gnu.org>
14654
14655 * w32font.c (w32font_full_name): Use floor to round.
14656
f0131492 146572008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
14658
14659 * sound.c (alsa_configure): Declare vol at beginning of block.
14660
14661 * fontset.c (Ffontset_info): Remove extra semicolon.
14662
146632008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14664
14665 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
14666 size of resulting string.
14667
146682008-03-10 Jason Rumney <jasonr@gnu.org>
14669
14670 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
14671
146722008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14673
14674 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
14675 Don't pretend as if characters with display property haven't been
14676 consumed for string-replacing-string case.
14677
146782008-03-08 Kim F. Storm <storm@cua.dk>
14679
14680 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
14681 (get_next_display_element, next_element_from_string)
14682 (next_element_from_ellipsis, next_element_from_buffer): Use it.
14683
146842008-03-08 Andreas Schwab <schwab@suse.de>
14685
14686 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
14687
146882008-03-06 Jason Rumney <jasonr@gnu.org>
14689
14690 * w32font.c (w32_registry): Take font_type argument. Use ANSI
14691 when charset not specified. Only translate ANSI to unicode when
14692 font_type is truetype.
14693 (w32font_coverage_ok): New function.
14694 (add_font_entity_to_list): Use it to filter unsuitable fonts.
14695
146962008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
14697
14698 * lread.c (Fread_char): Resolve modifiers.
14699 (Fread_char_exclusive): Likewise.
14700
14701 * character.c (char_resolve_modifier_mask): New function.
14702 (char_string): Use char_resolve_modifier_mask.
14703 (Fchar_resolve_modifiers): New function.
14704 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
14705 function.
14706
147072008-03-04 Jason Rumney <jasonr@gnu.org>
14708
14709 * makefile.w32-in: Always include w32font.c in the build.
14710 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
14711
147122008-03-04 Andreas Schwab <schwab@suse.de>
14713
14714 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
14715 (versionclean): Likewise.
14716
147172008-03-04 Juanma Barranquero <lekktu@gmail.com>
14718
14719 * .cvsignore: Add oo.
14720
147212008-03-03 Andreas Schwab <schwab@suse.de>
14722
14723 * coding.c (decode_coding_object): Inhibit gap shrinking while
14724 decoding in place.
14725
147262008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
14727
14728 * w32term.c: Remove unused include "gnu.h".
14729 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
14730
14731 * gnu.h: Rename to ...
14732 * emacs-icon.h: ... this.
14733 * xterm.c: Use emacs-icon.h instead of gnu.h.
14734 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
14735
147362008-03-03 Juanma Barranquero <lekktu@gmail.com>
14737
14738 * w32font.c: Include math.h.
14739
147402008-03-03 Jason Rumney <jasonr@gnu.org>
14741
14742 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
14743 Compute options separately.
14744 (w32font_open_internal): Set glyph_idx before caching metrics.
14745
14746 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
14747 Define if system headers don't.
14748 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
14749 (w32font_encode_char): Don't declare here.
14750
14751 * w32font.c (Quniscribe, QCformat): New symbols.
14752 (syms_of_w32font): Define them.
14753 (w32font_has_char): Indicate uncertainty.
14754 (w32font_encode_char): Encode as glyph point. Make static.
14755 (recompute_cached_metrics): New function.
14756 (w32font_open_internal): Use it. Set font to use glyph points
14757 initially. Set format based on type of font.
14758 (w32font_text_extents, w32font_draw): Optionally use glyph points.
14759 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
14760 on it. Set format based on information available here.
14761 (add_font_entity_to_list): Identify backend based on opentype_only.
14762
147632008-03-02 Andreas Schwab <schwab@suse.de>
14764
14765 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
14766
14767 * coding.c (decode_coding_big5, produce_chars):
14768 Fix typos in last change.
14769
147702008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
14771
14772 * gnu.h: New icon.
14773
147742008-03-02 Kenichi Handa <handa@m17n.org>
14775
14776 * coding.c (decode_coding_utf_8): When eol-type of CODING is
14777 `dos', don't decode '\r' if that is the last in the source.
14778 (decode_coding_utf_16, decode_coding_emacs_mule)
14779 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14780 (decode_coding_raw_text, decode_coding_charset): Likewise.
14781 (produce_chars): Don't decode EOL here. Use EMACS_INT.
14782
147832008-03-01 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32font.c (w32font_full_name): Report point size for scalable fonts.
14786
147872008-03-01 Kim F. Storm <storm@cua.dk>
14788
14789 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
14790
147912008-03-01 Jason Rumney <jasonr@gnu.org>
14792
14793 * w32font.c (w32font_full_name): New function.
14794 (w32font_open_internal): Use it.
14795
147962008-03-01 Kim F. Storm <storm@cua.dk>
14797
14798 * dispnew.c (line_draw_cost): Fix invalid glyph check.
14799
148002008-03-01 Jason Rumney <jasonr@gnu.org>
14801
14802 * font.c (font_unparse_fcname): Increase len when style is a symbol.
14803
148042008-03-01 Jan Djärv <jan.h.d@swipnet.se>
14805
14806 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
14807 xg_frame_resized when the event is for the edit widget.
14808
14809 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
14810
14811 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
14812 set_char_size.
14813 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
14814 operations on widgets here. Just set frame size if needed.
14815 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
14816 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
14817 (x_wm_set_size_hint): Set size hints on the edit widget only, not
14818 the whole frame.
14819 (xg_create_tool_bar): Move attachment of the tool bar to
14820 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
14821 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
14822
148232008-03-01 Jason Rumney <jasonr@gnu.org>
14824
14825 * w32fns.c (w32_msg_pump): Disable debug code.
14826
148272008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14828
14829 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
14830
148312008-02-29 Chong Yidong <cyd@stupidchicken.com>
14832
14833 * xdisp.c (next_overlay_string): Don't set
14834 overlay_strings_at_end_processed_p if we're currently reading from
14835 a display string.
14836
148372008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
14838
14839 * xdisp.c (get_overlay_strings_1): Fix typo.
14840
148412008-02-29 Chong Yidong <cyd@stupidchicken.com>
14842
14843 * xdisp.c (get_overlay_strings_1): Add missing argument type.
14844
148452008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
14846
14847 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
14848
14849 * xdisp.c (display_mode_element): Cancel the previous change.
14850 (decode_mode_spec): Likewise.
14851 (handle_auto_composed_prop): Don't make composition if it->string
14852 is a string.
14853
148542008-02-27 Kim F. Storm <storm@cua.dk>
14855
14856 * lisp.h (GLYPH): Change type from int to struct with separate char
14857 and face_id members.
14858 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
14859 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
14860 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
14861 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
14862 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
14863 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
14864 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
14865 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
14866 handle new Lisp glyph code encoding, either an integer or a cons.
14867
14868 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
14869 (GLYPH_ALIAS): Delete.
14870 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
14871 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
14872 (GLYPH_FROM_CHAR): Replace macro by ...
14873 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
14874
14875 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
14876 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
14877 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
14878 (GLYPH_INVALID_P): New macro.
14879 (spec_glyph_lookup_face): Update prototype.
14880
14881 * dispnew.c (line_draw_cost): Adapt to new glyph type.
14882 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
14883 new glyph code encoding.
14884 (spec_glyph_lookup_face): No return value; update passed glyph instead.
14885 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
14886
14887 * xdisp.c (get_next_display_element, next_element_from_display_vector):
14888 Adapt to new glyph type and new glyph code encoding.
14889
14890 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
14891
14892 * indent.c (current_column, current_column_1, Fmove_to_column)
14893 (compute_motion): Adapt to new glyph code encoding.
14894
14895 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
14896
148972008-02-27 Chong Yidong <cyd@stupidchicken.com>
14898
14899 * process.c (wait_reading_process_output): Check for window
14900 changes caused by timers.
14901 Suggested by Johan Bockgård.
14902
149032008-02-27 Glenn Morris <rgm@gnu.org>
14904
14905 * emacs.c (USAGE1): Add `--disable-font-backend'.
14906
149072008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
14908
14909 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
14910 is made to the buffer.
14911
149122008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
14913
14914 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
14915 (face_at_string_position):
14916 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
14917 (face_at_string_position):
14918 * xdisp.c (display_string, next_overlay_change):
14919 * buffer.h (overlays_at):
14920 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
14921 Update callers.
14922
149232008-02-26 Chong Yidong <cyd@stupidchicken.com>
14924
14925 * editfns.c (Fformat): Doc fix.
14926
149272008-02-26 Juanma Barranquero <lekktu@gmail.com>
14928
14929 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
14930 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
14931 (Ffont_otf_alternates, Fquery_font): Doc fixes.
14932
149332008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14934
14935 * buffer.c (Fbuffer_swap_text): New function.
14936 (syms_of_buffer): Defsubr it.
14937
149382008-02-25 Chong Yidong <cyd@stupidchicken.com>
14939
14940 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
14941
149422008-02-25 Jason Rumney <jasonr@gnu.org>
14943
14944 * w32font.c (w32font_draw): Draw one character at a time when padding.
14945
149462008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
14947
14948 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
14949 Handle a nil arg. Use run_window_configuration_change_hook.
14950 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
14951 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
14952 Use run_window_configuration_change_hook.
14953
149542008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14955
14956 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
14957 1-pixel width.
14958
149592008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
14960
14961 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
14962 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
14963 if the glyph in the font is zero pixel with.
14964
14965 * dispextern.h (struct glyph_string): New member padding_p.
14966
14967 * w32font.c (w32font_draw): Pay attention to s->padding_p.
14968
14969 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
14970
14971 * xfont.c (xfont_draw): Pay attention to s->padding_p.
14972
14973 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
14974
14975 * font.c: If the font driver doesn't have `shape' function, return Qnil.
14976
149772008-02-25 Jason Rumney <jasonr@gnu.org>
14978
14979 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
14980
149812008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
14982
14983 Allow fine-grained image-cache flushing.
14984 * dispextern.h (struct image): Add `dependencies' field.
14985 (clear_image_caches): Change arg to Lisp_Object.
14986 * image.c (make_image): Initialize `dependencies' field.
14987 (clear_image_cache): Change arg to allow fine-grained flushing.
14988 Perform the flush even if image-cache-eviction-delay is nil.
14989 (clear_image_caches): Change arg to Lisp_Object.
14990 (Fclear_image_cache): Expand meaning of the argument.
14991 (mark_image): Mark `dependencies' field.
14992 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
14993 (lface_hash): Use XHASH rather than XFASTINT.
14994 (face_at_buffer_position): Fix int -> EMACS_INT position.
14995 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
14996 (select_frame_for_redisplay): Remove code duplication.
14997 (redisplay_internal): Adapt arg to call to clear_image_caches.
14998
149992008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
15000
15001 * s/vms4-0.h:
15002 * s/vms4-2.h:
15003 * s/vms4-4.h:
15004 * s/vms5-5.h: Remove, unused.
15005
15006 * s/irix5-2.h:
15007 * s/irix6-0.h:
15008 * s/riscos5.h:
15009 * s/mach-bsd4-3.h:
15010 * m/mips4.h: Remove files for obsolete systems.
15011
15012 * Makefile.in:
15013 * filelock.c:
15014 * unexmips.c:
15015 * m/hp9000s300.h:
15016 * m/iris4d.h:
15017 * s/aix3-1.h:
15018 * s/hpux.h:
15019 * s/msdos.h:
15020 * s/usg5-0.h:
15021 * s/usg5-2-2.h:
15022 * s/usg5-2.h:
15023 * s/usg5-3.h: Remove references to obsolete variables.
15024
15025 * s/irix5-0.h: Remove, move all the contents ...
15026 * s/irix6-5.h: ... here. Simplify.
15027 * config.in: Regenerate.
15028
150292008-02-24 Jason Rumney <jasonr@gnu.org>
15030
15031 * w32term.c (x_draw_glyph_string_background): Clear the background
15032 manually when cleartype is in use.
15033 (x_draw_glyph_string_foreground): Draw text transparently when
15034 cleartype is in use.
15035
15036 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
15037 a font into it unless we have to.
15038
150392008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15040
15041 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
15042 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 15043
aac0c6e3
MR
150442008-02-18 Jason Rumney <jasonr@gnu.org>
15045
15046 * w32fns.c (Fw32_shell_execute): Encode parameters.
15047
150482008-02-09 Eli Zaretskii <eliz@gnu.org>
15049
15050 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
15051
150522008-02-05 Juanma Barranquero <lekktu@gmail.com>
15053
15054 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
15055
150562008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
15057
15058 * xterm.c (x_set_offset): Don't change the gravity if
15059 CHANGE_GRAVITY is -1.
15060
150612008-02-23 Chong Yidong <cyd@stupidchicken.com>
15062
15063 * fileio.c (auto_save_error_occurred): New var.
15064 (auto_save_error): Set it.
15065 (Fdo_auto_save): Don't overwrite the error message if an auto-save
15066 error occurred.
15067
150682008-02-23 Eli Zaretskii <eliz@gnu.org>
15069
15070 * w32.c (globals_of_w32): Add initializations for
15071 g_b_init_get_sid_sub_authority and
15072 g_b_init_get_sid_sub_authority_count.
15073
150742008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
15075
15076 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
15077 (font_parse_xlfd): Use them for sanity check.
15078 (Finternal_set_font_style_table): Make sure the table is bijective.
15079
15080 Consolidate the image_cache to the terminal struct.
15081 * termhooks.h (P_): Remove redundant def.
15082 (struct terminal): New field `image_cache'.
15083 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
15084 of FRAME_X_IMAGE_CACHE.
15085 * xterm.h (struct x_display_info): Remove image_cache field.
15086 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15087 * w32term.h (struct w32_display_info): Remove image_cache field.
15088 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15089 * macterm.h (struct mac_display_info): Remove image_cache field.
15090 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
15091 * xterm.c (x_term_init):
15092 * w32term.c (w32_term_init):
15093 * macterm.c (mac_term_init): Set the image_cache in the terminal.
15094 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
15095 Remove declarations.
15096 (clear_image_caches, mark_image_cache): New declarations.
15097 * xfaces.c (clear_face_cache):
15098 * xdisp.c (redisplay_internal): Use clear_image_caches.
15099 * image.c (clear_image_cache): Don't check that a frame is on
15100 a window-system before checking if it shares the same cache.
15101 (clear_image_caches): New function.
15102 (Fclear_image_cache): Use it.
15103 (mark_image): Move from allo.c.
15104 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
15105 * alloc.c (mark_image, mark_image_cache): Move to image.c.
15106 (mark_object): Don't call mark_image_cache for frames.
15107 (mark_terminals): Call mark_image_cache.
15108
15109 * lisp.h (Fdelete_terminal): Declare.
15110
15111 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
15112 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
15113 wrong_type_argument.
15114
151152008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
15116
15117 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
15118 malayalam.el, and tamil.el. Add sinhala.el.
15119
151202008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
15121
15122 * xterm.c (x_connection_closed): Consolidate identical tests.
15123 (x_delete_terminal): Don't crash if called via x_connection_closed.
15124
151252008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
15126
15127 * xdisp.c (decode_mode_spec): New arg string.
15128 (display_mode_element): Adjust for the above change.
15129
151302008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
15131
15132 * callint.c (Fcall_interactively): Use AREF.
15133
151342008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
15135
15136 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
15137
151382008-02-18 Jan Djärv <jan.h.d@swipnet.se>
15139
15140 * xfns.c (Fx_show_tip): Set string to " " if empty.
15141
151422008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
15143
15144 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
15145 with Qt.
15146
151472008-02-17 Kenichi Handa <handa@m17n.org>
15148
15149 * ftfont.c (ftfont_shape): Return Lispy number.
15150
15151 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
15152 for GCs.
15153 (Finternal_set_font_selection_order): Call font_update_sort_order
15154 only when enable_font_backend is set.
15155 (realize_x_face): Set face->font_info to that of default face only
15156 when enable_font_backend is set.
15157
15158 * xdisp.c (handle_composition_prop): Set it->c to the fist
15159 character of the composed region.
15160 (fill_composite_glyph_string): Set base_face->font_info to
15161 s->font_info. Get a face for ascii from base_face->ascii_face.
15162 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
15163 with a face already decided.
15164 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
15165 non-negative.
15166 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
15167 call font_prepare_composition unconditionally.
15168
15169 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
15170
15171 * xterm.h (struct x_display_info): New member font.
15172
15173 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
15174 (x_set_mouse_face_gc, x_new_font): Likewise.
15175 (x_term_init): Setup display_info->font.
15176 (x_delete_terminal): Free display_info->font.
15177
15178 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
15179
15180 * ftxfont.c (ftxfont_default_fid): Delete it.
15181 (ftxfont_open): Set xfont->fid to 0.
15182 (ftxfont_end_for_frame): Clear data specific to the frame and the
15183 font-driver.
15184
15185 * xftfont.c (xftfont_default_fid): Delete it.
15186 (xftfont_open): Set xfont->fid to 0.
15187
15188 * fontset.c (FONTSET_OBJLIST): New macro.
15189 (fontset_find_font): Update font-object list of the fontset.
15190 (free_realized_fontset): New function.
15191 (free_face_fontset): Call free_realized_fontset.
15192 (Ffont_info): Call font_close_object only when enable_font_backend
15193 is set.
15194
15195 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
15196 [HAVE_NTGUI]: Include w32term.h.
15197 [MAC_OS]: Include macterm.ch.
15198 (font_otf_ValueRecord): Use make_number.
15199 (font_finish_cache): Fix handling of reference count.
15200 (font_clear_cache): Update num_fonts.
15201 (font_open_entity): Update smallest_char_width and
15202 smallest_font_height of the frame.
15203 (font_close_object): Update num_fonts.
15204 (Fclear_font_cache): Fix finding the target cache data.
15205
152062008-02-16 Glenn Morris <rgm@gnu.org>
15207
15208 * fontset.c (Finternal_char_font): Fix compilation warning.
15209
152102008-02-16 Eli Zaretskii <eliz@gnu.org>
15211
15212 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
15213 instead of char arrays. Enlarge the size of array passed to
15214 get_token_information.
15215
15216 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
15217 warnings.
15218
152192008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
15220
15221 * .gdbinit: Don't set `args', it breaks gdb --args.
15222
152232008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
15224
15225 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
15226 within a narrowed buffer.
15227
152282008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
15229
15230 * coding.c (decode_coding_object, encode_coding_object):
15231 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
15232
152332008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
15234
15235 * coding.c (coding_set_destination): Use BEG_BYTE rather than
15236 hardcoding 1.
15237 (detect_coding_system):
15238 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
15239 (string_char_to_byte, string_byte_to_char, insert_from_gap):
15240 * insdel.c (insert_from_gap):
15241 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
15242 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
15243 (string_to_multibyte):
15244 * character.c (chars_in_text, multibyte_chars_in_text):
15245 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
15246
15247 * character.h (FETCH_STRING_CHAR_ADVANCE)
15248 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
15249 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
15250 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
15251
15252 * casefiddle.c (casify_region): Only call after-change and composition
15253 functions on the part of the region that was changed.
15254
15255 * keyboard.c (read_avail_input):
15256 * frame.c (Fdelete_frame): Call Fdelete_terminal.
15257
152582008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15259
15260 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
15261 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
15262
152632008-02-11 Juanma Barranquero <lekktu@gmail.com>
15264
15265 * w32menu.c (push_submenu_start, push_submenu_end)
15266 (push_left_right_boundary, push_menu_pane, push_menu_item):
15267 * keyboard.c (read_key_sequence): Don't pass args with side effects
15268 to AREF, it fails when compiling with -DENABLE_CHECKING.
15269
152702008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
15271
15272 * Makefile.in (${lispsource}international/charprop.el):
15273 Delete this target.
15274
15275 * search.c (boyer_moore): Fix incorrect synching of the trunk and
15276 emacs-unicode-2.
15277
152782008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
15279
15280 * terminal.c (Fdelete_terminal): Clean up the `force' path.
15281
152822008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * frame.c (Qnoelisp): New symbol.
15285 (syms_of_frame): Initialize it.
15286 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
15287 harmless Elisp code, from a strong `force' from x_connection_closed.
15288 * frame.h (Qnoelisp): Declare.
15289 * xterm.c (x_connection_closed): Pass `noelisp'.
15290
15291 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
15292 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
15293 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
15294 rather than `int' for the type of `type'.
15295
152962008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
15297
15298 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
15299
15300 * Makefile.in (GNUC): Remove support for gcc-1.x.
15301
153022008-02-10 Richard Stallman <rms@gnu.org>
15303
15304 * lisp.h (ASET): Use AREF, not ASLOT.
15305
153062008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
15307
15308 * lisp.h (ASET): Check bounds.
15309
153102008-02-10 Glenn Morris <rgm@gnu.org>
15311
15312 * buffer.c (mode-name): Doc fix.
15313
153142008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15315
15316 * Makefile.in:
15317 * emacs.c:
15318 * gmalloc.c:
15319 * keyboard.c:
15320 * lisp.h:
15321 * m/ibm370aix.h:
15322 * process.c:
15323 * regex.c:
15324 * s/hpux.h:
15325 * sysdep.c:
15326 * sysselect.h:
15327 * systty.h:
15328 * unexec.c:
15329 * w32term.c:
15330 * xsmfns.c:
15331 * xterm.c: Remove code that deals with obsolete variables.
15332
15333 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
15334
15335 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
15336 nothing else needs it anymore.
15337
153382008-02-09 Eli Zaretskii <eliz@gnu.org>
15339
15340 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
15341 instead of unibyte_char_to_multibyte.
15342
153432008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
15344
15345 * s/gnu-linux.h: Remove commented out code.
15346
15347 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
15348
15349 * Makefile.in: Update what RMS says about using autoconf.
15350 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
15351 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
15352 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
15353 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
15354
153552008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
15356
15357 * keymap.c (Fkey_description): Move side effect outside of macro call.
15358
15359 * xfaces.c (Finternal_make_lisp_face):
15360 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
15361
15362 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
15363 (syms_of_fontset): Use ASET.
15364
15365 * fns.c (concat): Move side effect outside of macro call.
15366 (hash_clear): Use ASET.
15367
153682008-02-08 Richard Stallman <rms@gnu.org>
15369
15370 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
15371 If FORCE, and frame has a surrogate minibuffer for another frame,
15372 delete the other frame first.
15373
153742008-02-07 Timo Savola <timo.savola@iki.fi>
15375
15376 * xterm.c (x_detect_focus_change): Handle embed client message.
15377 (handle_one_xevent): Ditto.
15378 (handle_one_xevent): If embedded and we get a button press/release,
15379 request focus.
15380 (xembed_set_info, xembed_send_message): New functions.
15381 (x_make_frame_visible): Call xembed_set_info if embedded.
15382 (x_make_frame_invisible): Call xembed_set_info if embedded.
15383 (x_term_init): Initialize Xatom_XEMBED.
15384 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
15385 (x_iconify_frame): Ditto.
15386
15387 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
15388 (enum xembed_info, enum xembed_message, enum xembed_focus)
15389 (enum xembed_modifier, enum xembed_accelerator): New.
15390 (xembed_set_info, xembed_send_message): Declare.
15391 (FRAME_X_EMBEDDED_P): New.
15392
15393 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
15394 gtk_plug_new.
15395
15396 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
15397 window ID of a frame.
15398 (x_window): Reparent frame if embedded.
15399 (Fx_create_frame): Don't set border width if embedded.
15400
15401 * emacs.c (USAGE3): Add --parent-id.
15402 (standard_args): Ditto.
15403
154042008-02-07 Jan Djärv <jan.h.d@swipnet.se>
15405
15406 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
15407
154082008-02-07 Jim Meyering <meyering@redhat.com>
15409
15410 Use "do...while (0)", not "if (1)...else" in macro definitions.
15411 The latter provokes a warning from gcc about the empty else, when
15412 followed by ";". Also, without that trailing semicolon, it would
15413 silently swallow up any following statement.
15414 * syntax.h (SETUP_SYNTAX_TABLE)
15415 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
15416 * buffer.h (DECODE_POSITION): Likewise.
15417 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
15418 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
15419 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
15420 (FETCH_CHAR_ADVANCE): Likewise.
15421 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
15422
154232008-02-07 Jim Meyering <meyering@redhat.com>
15424
15425 * lread.c [lint]: Don't include <sys/inode.h>.
15426
154272008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * xselect.c (x_handle_dnd_message):
15430 * xmenu.c (digest_single_submenu, xmenu_show):
15431 * xdisp.c (with_echo_area_buffer_unwind_data)
15432 (format_mode_line_unwind_data, unwind_format_mode_line)
15433 (display_menu_bar):
15434 * eval.c (Ffetch_bytecode):
15435 * doc.c (store_function_docstring):
15436 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
15437 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
15438 * buffer.c (add_overlay_mod_hooklist): Use ASET.
15439
154402008-02-07 Kenichi Handa <handa@m17n.org>
15441
15442 * ftxfont.c (ftxfont_open): Don't set
15443 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
15444
15445 * ftfont.c (ftfont_open): Fix previous change.
15446
154472008-02-06 Jason Rumney <jasonr@gnu.org>
15448
15449 * w32font.c (w32font_text_extents): Fill in lbearing metric.
15450 Use cached metrics for ASCII characters.
15451 (w32font_open_internal): Don't set font's owning_frame.
15452 Cache metrics for ASCII characters.
15453
15454 * w32font.h (struct w32font_info): Add ascii_metrics.
15455 Remove owning_frame.
15456
154572008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
15458
15459 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
15460 to negative value.
15461
15462 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
15463
15464 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
15465
15466 * charset.c (syms_of_charset): Set QCtest and Qeq.
15467
154682008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
15469
15470 * process.c (Fstart_process):
15471 * callproc.c (Fcall_process): Handle the case where
15472 Funhandled_file_name_directory returns nil.
15473
15474 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
15475 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
15476 * font.c (check_gstring): Use them and AREF to access the vector before
15477 we know it's really a gstring.
15478 (Ffont_shape_text): Fix typo.
46e722a9 15479 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
15480
15481 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
15482 Declare.
15483
15484 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
15485
154862008-02-05 Jason Rumney <jasonr@gnu.org>
15487
15488 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
15489 Set smallest_font_height and smallest_char_width in display info.
15490
154912008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
15492
15493 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
15494
154952008-02-05 Miles Bader <miles@gnu.org>
15496
15497 * xfaces.c (get_lface_attributes, merge_named_face)
15498 (lookup_named_face, lookup_derived_face, realize_named_face):
15499 Revert 2008-02-01 change by cyd@stupidchicken.com.
15500
155012008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
15502
15503 * fontset.c (Ffontset_info): Handle the case of inhibitting the
15504 fallback fonts.
15505 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
15506
155072008-02-04 Jason Rumney <jasonr@gnu.org>
15508
15509 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
15510 set full_name.
15511 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
15512
155132008-02-03 Jason Rumney <jasonr@gnu.org>
15514
15515 * makefile.w32-in (OBJ1): Include font.o here.
15516 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
15517
155182008-02-02 Jason Rumney <jasonr@gnu.org>
15519
15520 * makefile.w32-in (temacs): Bump EMHEAP to 21.
15521
155222008-02-01 Jason Rumney <jasonr@gnu.org>
15523
15524 * s/cygwin.h: Define VIRT_ADDR_VARIES.
15525
15526 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
15527
155282008-02-01 Andreas Schwab <schwab@suse.de>
15529
15530 * Makefile.in (shortlisp, lisp): Update for rename of
15531 ../lisp/language/myanmar.el.
15532
155332008-02-01 Chong Yidong <cyd@stupidchicken.com>
15534
15535 * xfaces.c (get_lface_attributes): Delete function.
15536 (merge_named_face, lookup_named_face, lookup_derived_face)
15537 (realize_named_face): Call lface_from_face_name directly, and use
15538 the fact that merge_face_vectors does not alter its FROM argument.
15539
155402008-02-01 Jason Rumney <jasonr@gnu.org>
15541
15542 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
15543 input in the default locale. Handle non-Unicode multibyte input.
15544
155452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15546
15547 * fontset.c (reorder_font_vector): Exclude nil elements from the
15548 font group. Don't try multiple fonts.
15549 (fontset_font): Adjust for the above change.
15550 (Finternal_char_font): Return nil if the found font doesn't
15551 contain the character ch.
15552
15553 * Makefile.in (lisp, shortlisp): Add cham.el.
15554
155552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15556
15557 * font.h (FONTP): Make it return 1 also for a font-object.
15558
15559 * .gdbinit (xfontset): New function.
15560
15561 * font.c (font_find_for_lface): Check if the character C is
15562 supported or not only for the first font.
15563
15564 * fontset.c (reorder_font_vector): Fix typo.
15565 (fontset_find_font): Don't add a font-spec specifying a script.
15566 Use 0 (not Qt) for the indication of empty font-group. Change the
15567 format of RFONT-DEF. Return Qt if no font in the font-group
15568 support the character.
15569 (fontset_font): Adjust for the above change. If no font was
15570 found the character, remember that.
15571 (face_for_char): Adjust for the change of RFONT-DEF.
15572 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
15573 no font for the target.
15574 (Finternal_char_font): Adjust for the change of RFONT-DEF.
15575
155762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15577
15578 * font.c (font_load_for_face): Handle the case that the font in
15579 face->lface is a string.
15580
155812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15582
15583 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
15584
155852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15586
15587 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
15588 Fix previous change. If the frame is not on a window system,
15589 signal an error.
15590
155912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15592
15593 * coding.c (decode_coding_object, encode_coding_object): Adjust
15594 marker positions after conversion.
15595
15596 * lisp.h (struct Lisp_Marker): New member need_adjustment.
15597
155982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15599
15600 * font.c (font_find_for_lface): Fix the handling of the return
15601 value of font_has_char.
15602 (Ffont_shape_text): Fix previous change.
15603
15604 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
15605 (fontset_ref_and_range): Delete it.
15606 (fontset_find_font): Call char_table_ref_and_range instead of
15607 FONTSET_REF_AND_RANGE.
15608 (make_fontset): Don't setup font groups of Latin here.
15609 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
15610 (new_fontset_from_font): Make the specified font the default for
15611 all Latin characters.
15612
156132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15614
15615 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
15616 is on a window system before accessing the fontset of the frame.
15617
156182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15619
15620 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
15621
15622 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
15623 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
15624
15625 * font.c (Ffont_shape_text): If the font driver doesn't have a
15626 shaper function, make zero-width glyphs to have at least one-pixel
15627 width. Fix setting of `to' field of glyphs.
15628
156292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15630
15631 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
15632 glyphs.
15633
15634 * font.h (struct font_driver): Improve docstring of member `shape'.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * composite.c (syms_of_composite): Fix docstring of
15639 auto-composition-function.
15640
15641 * font.h (LGLYPH_SIZE): New macro.
15642
15643 * font.c (Ffont_fill_gstring): Stop filling when a character not
15644 supported by the font is found.
15645 (Ffont_shape_text): When a shape callback function returns nil,
15646 try at most two more times with larger gstring.
15647 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
15648
15649 * xdisp.c (handle_auto_composed_prop): Change the argument to
15650 auto-composition-function.
15651
15652 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
15653 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
15654 Lispy glyph and store it in the lgstring.
15655
15656 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
15657
15658 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
15659
156602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15661
15662 * font.c (Ffont_shape_text): Avoid unnecessary composition.
15663
15664 * fontset.c (Vfont_encoding_charset_alist): New variable.
15665 (syms_of_fontset): DEFVAR it.
15666 (reorder_font_vector, fontset_find_font): Optimize for the case of
15667 no need of reordering.
15668 (face_for_char): Map the charset property by
15669 Vfont_encoding_charset_alist.
15670
156712008-02-01 Jason Rumney <jasonr@gnu.org>
15672
15673 * w32font.c (logfonts_match): Don't check adstyle here.
15674 (font_matches_spec): Check here against physical font instead.
15675 (add_font_entity_to_list): Avoid some substitutions.
15676
15677 * font.c (font_parse_fcname): Default weight and slant to normal.
15678 (font_score): Prefer normal fonts if weight or slant unspecified.
15679 (font_score) [WINDOWSNT]: Scale weight difference down to closer
15680 match freetype scores.
15681
156822008-02-01 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32font.c (w32font_text_extents): Don't use the frame stored in the
15685 font, as it may have been deleted.
15686 (w32_enumfont_pattern_entity): Map generic family to adstyle using
15687 most common hyphenless variation.
15688 (logfonts_match): Check generic family.
15689 (font_matches_spec): Don't check generic family here.
15690 (fill_in_logfont): Set generic family based on adstyle.
15691
15692 * w32font.h (w32font_get_cache): Update declaration.
15693
156942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15695
15696 * ftfont.c (ftfont_get_cache): Adjust the argument type.
15697
15698 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
15699 If none of the new drivers are available, call font_update_drivers
15700 with the old drivers.
15701
15702 * w32font.c (w32font_get_cache): Adjust the argument type.
15703
15704 * xfont.c (xfont_get_cache): Adjust the argument type.
15705
15706 * font.h (struct font_driver): Change argument type of get_cache.
15707
15708 * xftfont.c (xftfont_start_for_frame): Delete prototype.
15709
15710 * font.c (Ffont_get): Fix arguments to Fassoc.
15711 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
15712 (font_clear_cache): New function.
15713 (font_list_entities, font_matching_entity): Use font_get_cache.
15714 (font_update_drivers): Call font_clear_cache when finishing a driver.
15715
15716 * fontset.c (fontset_find_font): Fix previous change.
15717
157182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15719
15720 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
15721 dpyinfo->font_table.
15722 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15723 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
15724
15725 * font.c (font_at): Handle the case that the arg C is negative.
15726 Handle the unibyte case.
15727 (Ffont_at): Call font_at with the arg C -1.
15728
15729 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15730 the position here, and call font_at with the arg C -1.
15731 Don't check the range of the existing composition at the point.
15732
157332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15734
15735 * fontset.c (fontset_add): New args charset_id and family.
15736 Change caller.
15737 (load_font_get_repertory, fontset_find_font): Assume that
15738 font_spec is always a font-spec object.
15739 (Fset_fontset_font): Always store a font-spec object in a fontset.
15740
15741 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
15742 instead of get_property_and_range.
15743
157442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15745
15746 * xftfont.c (struct xftfont_info): Delete the member ft_face.
15747 (xftfont_open): Don't keep locking face.
15748 (xftfont_close): Don't unlock face.
15749 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
15750
15751 * fontset.c (fontset_find_font): Don't prefer a font of
15752 supplementary charset.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
15757 script, langsys_tag to langsys, new member script.
15758 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 15759 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
15760 listing to the script specified in that property. Fix arg to
15761 OTF_check_features.
15762
157632008-02-01 Jason Rumney <jasonr@gnu.org>
15764
15765 * w32font.h: New file.
15766
15767 * w32font.c: Include it.
15768 (struct w32font_info): Add owning_frame field. Move to w32font.h.
15769 (w32font_open): Set owning_frame.
15770 (w32font_text_extents): Use owning_frame.
15771 (struct font_callback_data): Add opentype_only field.
15772 (add_font_entity_to_list): Use it to filter fonts.
15773 Don't check against full name.
15774 (w32font_list_internal): New function.
15775 (w32font_list): Use it.
15776 (w32font_match_internal): New function.
15777 (w32font_match): Use it.
15778 (w32font_open_internal): New function.
15779 (w32font_open): Use it.
15780 (w32font_get_cache, w32font_close, w32font_has_char)
15781 (w32font_encode_char, w32font_text_extents, w32font_draw):
15782 Make non-static.
15783
15784 * makefile.w32-in (w32font.o): Depend on w32font.h.
15785
157862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15787
15788 * charset.c (Fdefine_charset_internal): Record a supplementary
15789 charset at the tail of Vcharset_order_list.
15790
15791 * font.c (Ffont_shape_text): Fix the return value.
15792
15793 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
15794
15795 * xdisp.c (handle_auto_composed_prop): Fix previous change.
15796
157972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15798
15799 * ftfont.c (struct OpenTypeSpec): New struct.
15800 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
15801 (ftfont_get_open_type_spec): New function.
15802 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
15803
15804 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
15805
158062008-02-01 Jason Rumney <jasonr@gnu.org>
15807
15808 * w32font.c (add_font_entity_to_list): Compare only the beginning
15809 of full name.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * xdisp.c (handle_auto_composed_prop): Simplify the code.
15814 Never return HANDLED_RECOMPUTE_PROPS.
15815
158162008-02-01 Kenichi Handa <handa@m17n.org>
15817
15818 * font.c (font_gstring_produce): Delete it.
15819
15820 * composite.h (COMPOSITION_METHOD):
15821 Handle COMPOSITION_WITH_GLYPH_STRING.
15822
158232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15824
15825 * xfont.c (Qx): Delete.
15826 (syms_of_xfont): Don't initialize Qx.
15827
15828 * composite.h (enum composition_method):
15829 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
15830
158312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15832
15833 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
15834 (choose_face_font): Accept new form of font-spec.
15835
15836 * frame.h (font_driver_list): Declare it unconditionally.
15837 (struct frame): Define members font_driver_list and font_data_list
15838 unconditionally.
15839
15840 * fontset.c: Include "font.h" unconditionally.
15841 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
15842 (Fset_fontset_font): Accept a font-spec object.
15843
15844 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
15845 PIXEL_SIZE part a wild card.
15846
15847 * dispextern.h (struct glyph_string): Define members clip and
15848 num_clips unconditionally.
15849 (struct face): Define members font_info and extra unconditionally.
15850
15851 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
15852 ftfont_info only when HAVE_LIBOTF is defined.
15853
158542008-02-01 Andreas Schwab <schwab@suse.de>
15855
15856 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
15857 and end.
15858
158592008-02-01 Jason Rumney <jasonr@gnu.org>
15860
15861 * w32font.c (w32font_driver): Add new fields.
15862
158632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15864
15865 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
15866 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
15867 (LIBES): Add @M17N_FLT_CFLAGS@.
15868
15869 * composite.c (compose_text): Don't treat the new style
15870 composition specially.
15871
15872 * emacs.c (main): Call syms_of_font unconditionally.
15873
15874 * font.h (FONT_ENTITY_NOT_LOADABLE)
15875 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15876 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
15877 (struct font_driver): New member shape.
15878 (font_registry_charsets): Extern it.
15879 (font_find_for_lface, font_prepare_composition): Adjust prototype.
15880 (font_otf_capability, font_drive_otf): Delete their externs.
15881
15882 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
15883 (font_charset_alist, font_registry_charsets): Move from xfont.c
15884 and rename.
15885 (font_prop_validate_otf): New function.
15886 (font_property_table): Register it for QCotf.
15887 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15888 (font_drive_otf): Delete.
15889 (font_prepare_composition): New arg F. Adjust for the change of
15890 lispy gstring.
15891 (font_find_for_lface): New arg C.
15892 (font_load_for_face): Adjust for the change of font_find_for_lface.
15893 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
15894 lispy gstring.
15895 (Ffont_shape_text): New function.
15896 (Fopen_font): If the font size is not given, use 12-pixel.
15897 (Ffont_at): New arg STRING.
15898 (syms_of_font): Initalize font_charset_alist.
15899 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
15900 conditionally.
15901
15902 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
15903 fonts of the same font-spec. Change the format of RFONT-DEF.
15904 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
15905 Adjust for the change of RFONT-DEF.
15906 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
15907
15908 * ftfont.h: New file.
15909
15910 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
15911 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15912 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15913 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
15914 font_otf_capability and font_drive_otf, set ftfont_shape.
15915 (ftfont_list): Adjust for the change of :otf property value.
15916 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
15917 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
15918 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
15919 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15920 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
15921 (otf_gstring, gstring, m17n_flt_initialized): New variables.
15922
15923 * w32term.c (x_draw_composite_glyph_string_foreground):
15924 Adjust for the change of lispy gstring.
15925
15926 * xdisp.c (handle_composition_prop): Adjust for the change of
15927 lispy gstring. Call a function for auto-composition with the
15928 third arg it->window.
15929 (fill_composite_glyph_string): Adjust for the change of lispy string.
15930 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
15931
15932 * xfaces.c (set_font_frame_param): Adjust for the change of
15933 font_find_for_lface.
15934
15935 * xfont.c (x_font_charset_alist): Move to font.c and rename.
15936 (xfont_registry_charsets): Likewise. Change caller.
15937 (syms_of_xfont): Don't handle x_font_charset_alist.
15938
15939 * xftfont.c: Include "ftfont.h".
15940 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
15941 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
15942 (xftfont_close) [HAVE_LIBOTF]: Close otf.
15943 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15944 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
15945 Set xftfont_driver.shape to xftfont_shape.
15946
15947 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15948 the change of lispy gstring.
15949
159502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15951
15952 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
15953
159542008-02-01 Jason Rumney <jasonr@gnu.org>
15955
15956 * w32font.c (w32font_draw): Fill background manually.
15957
159582008-02-01 Jason Rumney <jasonr@gnu.org>
15959
15960 * font.c (Qfontp): Remove unused symbol.
15961 (QCantialias): New symbol.
15962 (syms_of_font): Define it.
15963 (font_property_table): Set a validator for QCantialias.
15964
15965 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
15966 Define if not already.
15967 (QCfamily): Share with xfaces.c.
15968 (Qstandard, Qsubpixel, Qnatural): New symbols.
15969 (syms_of_w32font): Define them. Don't define QCfamily here.
15970 (w32_antialias_type, lispy_antialias_type): New functions.
15971 (w32_enumfont_pattern_entity): New arg requested_font.
15972 Set antialias parameter if non-default was requested.
15973 (fill_in_logfont): Fill in lfQuality if :antialias specified.
15974
159752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15976
15977 * lread.c (read1): Undo the previous change.
15978
159792008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
15980
15981 * frame.c (Fdelete_frame): Call font_update_drivers only when
15982 USE_FONT_BACKEND is defined.
15983
159842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15985
15986 * font.h (struct font_bitmap): New member bits_per_pixel.
15987 (struct font_driver): New members start_for_frame and end_for_frame.
15988 (struct font_data_list): New struct.
15989 (font_put_frame_data, font_get_frame_data): Extern them.
15990
15991 * frame.h (struct frame): New member font_data_list.
15992
15993 * font.c (font_update_drivers): Call driver->start_for_frame and
15994 driver->end_for_frame at proper timings.
15995 (font_put_frame_data, font_get_frame_data): New functions.
15996 (Ffont_spec): Add usage in the docstring.
15997
15998 * frame.c (make_frame): Initialize f->font_data_list to NULL.
15999 (Fdelete_frame): Call font_update_drivers.
16000
16001 * xftfont.c (struct xftface_info): Delete the member xft_draw.
16002 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
16003 (xftfont_get_xft_draw): New function.
16004 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
16005 (xftfont_end_for_frame): New function.
16006 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
16007
16008 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
16009 Change argument. Cache GCs in the per-frame data.
16010 (struct ftxfont_frame_data): New struct.
16011 (ftxfont_draw_bitmap): New arg gc_fore and flush.
16012 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
16013 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
16014 (ftxfont_end_for_frame): New function.
16015 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
16016
16017 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * xselect.c (Vselection_coding_system)
16022 (Vnext_selection_coding_system): Delete them.
16023 (syms_of_xselect): Don't declare selection-coding-system and
16024 next-selection-coding-system. They are declared in select.el.
16025
160262008-02-01 Jason Rumney <jasonr@gnu.org>
16027
16028 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
16029
16030 * w32fns.c: Include imm.h.
16031 (get_composition_string_fn, get_ime_context_fn): New optional
16032 system functions.
16033 (globals_of_w32fns): Load them from imm32.dll.
16034 (ignore_ime_char): New flag.
16035 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
16036 WM_IME_ENDCOMPOSITION messages.
16037
16038 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
16039 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
16040
160412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16042
16043 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
16044 (READCHAR_REPORT_MULTIBYTE): New macro.
16045 (readchar): New 2nd arg MULTIBYTE.
16046 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
16047 Make symbol's name multibyte according to the multibyteness of the
16048 source.
16049
160502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16051
16052 * xfaces.c (face_for_overlay_string): Call lookup_face with
16053 correct arguments (fix of synching with the trunk).
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * font.c (font_prop_validate_symbol, font_prop_validate_style)
16058 (font_prop_validate_non_neg, font_prop_validate_spacing):
16059 Delete argument prop_index.
16060 (font_property_table): Change arguments to validater. Change Callers.
16061 (font_lispy_object): Delete.
16062 (font_at): Use font_find_object instead fo font_lispy_object.
16063
160642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16065
16066 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
16067 and file names.
16068
160692008-02-01 Jason Rumney <jasonr@gnu.org>
16070
16071 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
16072 (font_matches_spec): Remove debug output.
16073 (add_font_entity_to_list): Avoid using substituted fonts.
16074
160752008-02-01 Jason Rumney <jasonr@gnu.org>
16076
16077 * doc.c (Fsnarf_documentation):
16078 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
16079
160802008-02-01 Miles Bader <miles@gnu.org>
16081
16082 * dispextern.h (struct glyph_row): Only define "clip" field if
16083 HAVE_WINDOW_SYSTEM is defined.
16084
160852008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16086
16087 Fix up multi-tty merge.
16088
16089 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
16090 and indentation.
16091
16092 * xfaces.c (free_realized_face, clear_face_gcs):
16093 Include font_done_for_face in the input_blocked section, just in case.
16094
16095 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
16096 (get_char_face_and_encoding): Undo last change and remove the *other*
16097 duplicate definition (i.e. keep the one that's better scoped and that
16098 includes code for the font-backend).
16099
16100 * terminal.c (create_terminal): Default keyboard_coding to
16101 `no-conversion' and terminal_coding to `undecided'.
16102
16103 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
16104
16105 * fontset.c (free_realized_fontsets): Check that the table entry does
16106 contain a fontset before trying to compare it to `base'.
16107
16108 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
16109 syms_of_charset, and syms_of_coding earlier because init_window_once
16110 now needs Vcoding_system_hash_table to be setup.
16111
16112 * coding.h (default_buffer_file_coding): Remove.
16113
16114 * coding.c (default_buffer_file_coding): Remove.
16115 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
16116 than ->symbol, and use the terminal-local coding system.
16117 (syms_of_coding): Don't setup the coding-systems that are not
16118 terminal-local.
16119 (Fdefine_coding_system_internal): Use XCAR/XCDR.
16120
16121 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
16122 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
16123
16124 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
16125 in chartab.c and were re-added here by mistake.
16126 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
16127
16128 * doc.c (Fsnarf_documentation):
16129 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
16130 src to etc.
16131
16132 * ChangeLog.10: Add mistakenly removed entry.
16133
161342008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
16135
16136 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
16137
161382008-02-01 Miles Bader <miles@gnu.org>
16139
16140 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
16141 Add extra args to FACE_FOR_CHAR.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * keymap.c (where_is_internal_1): If key is a cons, store the copy
16146 in sequence.
16147
16148 * chartab.c (map_sub_char_table, map_char_table): If the range
16149 contains just one character, call the function with that character
16150 even if the depth is not 3.
16151
161522008-02-01 Jason Rumney <jasonr@gnu.org>
16153
16154 * w32font.c (w32font_text_extents): Calculate metrics for the
16155 whole string.
16156
161572008-02-01 Jason Rumney <jasonr@gnu.org>
16158
16159 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
16160
161612008-02-01 Jason Rumney <jasonr@gnu.org>
16162
16163 * w32term.c (x_set_glyph_string_clipping): Use
16164 get_glyph_string_clip_rects.
16165 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16166 Adjust for the change of struct glyph_string.
16167
16168 * w32font.c (w32font_draw): Do clipping here.
16169
161702008-02-01 Kenichi Handa <handa@m17n.org>
16171
16172 * xftfont.c (xftfont_draw): Adjust for the change of struct
16173 glyph_string.
16174
16175 * xterm.c (x_set_glyph_string_clipping): Use
16176 get_glyph_string_clip_rects.
16177 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
16178 Adjust for the change of struct glyph_string.
16179
16180 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
16181 the resulting clip(s}.
16182 (expose_overlaps): Add arg r. Change callers. Set it to
16183 row->clip temporarily.
16184 (expose_window): Redraw rows overlapping the exposed area.
16185
16186 * dispextern.h (struct glyph_row): New member clip.
16187 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
16188 clip_height, new member clip, and num_clips.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * data.c (Fchar_or_string_p): Fix docstring.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
16197 create a temporary XftDraw object.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * font.c (Ffontp): Fix docstring.
16202
16203 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
16204 strong evidence of ISO-2022.
16205
162062008-02-01 Kenichi Handa <handa@m17n.org>
16207
16208 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
16209 SYNTAX_ENTRY_FOLLOW_PARENT.
16210
162112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16212
16213 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
16214 its type.
16215 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16216 Update to the new type of weak_hash_tables and next_weak.
16217
16218 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
16219 a plain C pointer to Lisp_Hash_Table.
16220
16221 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
16222 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
16223 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
16224 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
16225 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
16226 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
16227 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
16228 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
16229 (GC_EQ): Remove since they've been identical to their non-GC_
16230 alter-egos ever since the markbit was eradicated.
16231
16232 * alloc.c:
16233 * buffer.c:
16234 * buffer.h:
16235 * data.c:
16236 * fileio.c:
16237 * filelock.c:
16238 * fns.c:
16239 * frame.h:
16240 * lisp.h:
16241 * macterm.c:
16242 * print.c:
16243 * process.c:
16244 * w32fns.c:
16245 * w32menu.c:
16246 * w32term.c:
16247 * xfns.c:
16248 * xmenu.c:
16249 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * chartab.c (map_sub_char_table): Make it work for the top-level
16254 char-table. Fix handling of parent char-table.
16255 (map_char_table): Adjust for the above change.
16256
162572008-02-01 Jason Rumney <jasonr@gnu.org>
16258
16259 * w32font.c (Qgdi): Rename from Qw32.
16260
162612008-02-01 Jason Rumney <jasonr@gnu.org>
16262
16263 * w32bdf.c (get_quoted_string): Make function static.
16264
162652008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
16268 bigger ascent and descent than those of the font, use them as
16269 font's ascent and descent.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * Makefile.in (${lispsource}international/charprop.el): Move this
16274 target within "#ifdef HAVE_UNIDATA" and "#endif".
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
16279 (shortlisp): Add ../lisp/language/tai-viet.el.
16280
162812008-02-01 Ulrich Mueller <ulm@gentoo.org>
16282
16283 * Makefile.in (${lispsource}international/charprop.el): Depend on
16284 temacs${EXEEXT}.
16285
162862008-02-01 Jason Rumney <jasonr@gnu.org>
16287
16288 * w32font.c (w32font_close): Delete the GDI font object.
16289
16290 * w32menu.c: Include character.h.
16291
16292 * w32proc.c: Likewise.
16293
16294 * w32select.c: Likewise.
16295
16296 * makefile.w32-in (w32proc.o): Depend on character.h.
16297
162982008-02-01 Jason Rumney <jasonr@gnu.org>
16299
16300 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
16301
16302 * w32menu.c (syms_of_w32menu): Likewise.
16303
16304 * w32proc.c (syms_of_ntproc): Likewise.
16305
16306 * w32select.c (syms_of_w32select): Likewise.
16307
16308 * w32term.c (syms_of_w32term): Likewise.
16309
163102008-02-01 Jason Rumney <jasonr@gnu.org>
16311
16312 * w32font.c (w32font_draw): Delete brush after using it.
16313
163142008-02-01 Jason Rumney <jasonr@gnu.org>
16315
16316 * w32font.c (w32font_open): Don't set font_idx.
16317 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
16318 to font settings.
16319 (w32font_draw): Fill background explicitly.
16320
163212008-02-01 Jason Rumney <jasonr@gnu.org>
16322
16323 * w32term.c (w32_initialize): Don't call w32font_initialize.
16324
16325 * w32font.c (w32font_info): Remove subranges.
16326 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
16327 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
16328 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
16329 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
16330 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
16331 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
16332 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
16333 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
16334 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
16335 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
16336 New symbols.
16337 (font_callback_data): New struct.
16338 (w32font_list, w32font_match): Use it.
16339 (w32font_open): Don't populate subranges.
16340 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
16341 (w32font_encode_char): Always return unicode code-point as-is.
16342 (w32font_text_extents): Supply a transformation matrix to
16343 GetGlyphOutline. Never look up by glyph index. Avoid looping
16344 twice. Use unicode version of GetTexExtentPoint32 instead of
16345 glyph index version.
16346 (set_fonts_frame): Remove.
16347 (w32_enumfont_pattern_entity): Add frame parameter, use it to
16348 set frame parameter. Use backward compatible fake foundries.
16349 Save generic family in extra slot under QCfamily. Make width slot
16350 constant. Save QCspacing value. Save list of scripts instead of
16351 binary subranges.
16352 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
16353 (add_font_entity_to_list): Use font_callback_data struct. Filter
16354 unwanted fonts.
16355 (add_one_font_entity_to_list): Use font_callback_data struct.
16356 (w32_registry): Default to iso10646_1.
16357 (fill_in_logfont): Use dpi from extra slot. Don't bother with
16358 string font registries. Don't fill in font name if it is a generic
16359 family name, fill family instead. Use spacing, family and script
16360 extra info to fill pitch, family and charset fields.
16361 (list_all_matching_fonts): Use font_callback_data struct.
16362 (unicode_range_for_char): Remove.
16363 (font_supported_scripts): New function.
16364 (w32font_initialize): Remove.
16365 (syms_of_w32font): Update which symbols are defined.
16366
163672008-02-01 Jason Rumney <jasonr@gnu.org>
16368
16369 * font.c (font_pixel_size): Reverse assq_no_quit args.
16370
16371 * w32term.h (FONT_WIDTH): Report max width, not average.
16372 (FONT_MAX_WIDTH): Remove.
16373 (FONT_AVG_WIDTH): New macro.
16374
16375 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
16376 redefinition of FONT_WIDTH.
16377
16378 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
16379 (w32_cache_char_metrics): Use FONT_WIDTH.
16380
16381 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
16382
163832008-02-01 Jason Rumney <jasonr@gnu.org>
16384
16385 * w32font.c (w32font_open): Make lfHeight negative.
16386
16387 * w32fns.c (x_default_font_parameter): Use new style font name.
16388 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
16389
163902008-02-01 Jason Rumney <jasonr@gnu.org>
16391
16392 * w32font.c (QCsubranges): New symbol.
16393 (w32font_open, w32font_has_char): Get subranges from subproperty
16394 of extra.
16395 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
16396 (syms_of_w32font): Define :subranges symbol.
16397
16398 * font.c (font_put_extra): Expose externally.
16399
16400 * font.h (font_put_extra): Move declaration from font.c.
16401
16402 * font.c (Ffont_get): Use font driver to determine otf capability.
16403 (adjust_anchor): Check if driver defines anchor_point before using.
16404
16405 * w32font.c (w32font_open): Handle size, height and pixel_size better.
16406 (w32font_draw): Use options.
16407 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
16408 Fix detection of truetype fonts.
16409 (registry_to_w32_charset): Handle charsets other than iso8859-1
16410 expressed as lisp symbols.
16411 (w32_registry): Express charset as lisp symbol.
16412 (fill_in_logfont): Reverse pixel and point height logic.
16413 Don't set width here. Set quality to default.
16414
16415 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
16416 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
16417
16418 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16419 Remove redundant loop and allocation.
16420
16421 * makefile.w32-in (font.o, w32font.o): New objects.
16422 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
16423 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
16424
16425 * xdisp.c (fill_composite_glyph_string): Make the first arg to
16426 STORE_XCHARB a valid l-value.
16427
16428 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
16429 calculations for non-Truetype fonts.
16430 (x_draw_glyph_string): Sync with xterm.c.
16431 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
16432 Remove redundant code.
16433 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
16434
16435 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
16436 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
16437
16438 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
16439 (x_to_w32_charset, w32_to_x_charset): Expose externally.
16440
16441 * w32font.c: New file for w32 font backend.
16442
164432008-02-01 Kenichi Handa <handa@m17n.org>
16444
16445 * term.c: Don't include "buffer.h" twice.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * character.c (Funibyte_string): New function.
16450 (syms_of_character): Defsubr it.
16451
164522008-02-01 Jason Rumney <jasonr@gnu.org>
16453
16454 * w32term.c [USE_FONT_BACKEND]:
16455 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
16456 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
16457 (x_draw_glyph_string, x_draw_glyph_string_foreground)
16458 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
16459 (x_free_frame_resources): Sync with xterm.c.
16460
164612008-02-01 Andreas Schwab <schwab@suse.de>
16462
16463 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
16464 char-table size.
16465
164662008-02-01 Kenichi Handa <handa@m17n.org>
16467
16468 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
16469
164702008-02-01 Kenichi Handa <handa@m17n.org>
16471
16472 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
16473 font_otf_gpos, add font_drive_otf.
16474
16475 * fontset.c (fontset_find_font): Pay attention to font size
16476 specified for a font.
16477 (reorder_font_vector): Check contents of font_def.
16478
16479 * font.c (struct otf_list): Delete it.
16480 (otf_list): Make it a lisp variable.
16481 (otf_open): Use lispy otf_list.
16482 (generate_otf_features): Rename from parse_gsub_gpos_spec.
16483 (check_otf_features): New function.
16484 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16485 New functions.
16486 (font_drive_otf): New function merging font_otf_gsub and
16487 font_otf_gpos.
16488 (font_open_for_lface): New arg spec. Change argument order.
16489 (font_load_for_face): Adjust for the change of font_open_for_lface.
16490 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
16491 Ffont_otf_gpos.
16492 (syms_of_font): Staticpro otf_list. Delete defsubr of
16493 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
16494
16495 * xfaces.c (set_font_frame_param): Adjust for the change of
16496 font_open_for_lface.
16497
16498 * font.h (font_open_for_lface): Adjust prototype.
16499 (struct font_driver): Delete members otf_gsub and otf_gpos, add
16500 member otf_drive.
16501 (font_otf_gsub, font_otf_gpos): Delete externs.
16502 (font_drive_otf): Extern it.
16503
165042008-02-01 Kenichi Handa <handa@m17n.org>
16505
16506 * font.c (font_at): If the window W is not on a window system,
16507 return Qnil.
16508
16509 * coding.c (produce_chars, encode_coding): Don't call
16510 insert_from_gap if no characters to produce.
16511
165122008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
16515 Fclear_face_cache.
16516
16517 * xfaces.c (face_for_font): Check also face->font==font->font.font.
16518
165192008-02-01 Miles Bader <miles@gnu.org>
16520
16521 * emacs.c (main): Change default value of `enable_font_backend' to 1.
16522 Parse "--disable-font-backend" option.
16523 (standard_args): Add "--disable-font-backend" option.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * fontset.c (fontset_find_font): New function.
16528 (fontset_font): Use fontset_find_font.
16529 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
16530 Register the specified font for all Latin characters.
16531 (new_fontset_from_font): Register the specified font for all Latin
16532 characters.
16533 (dump_fontset): For a realized fontset, include the base fontset
16534 name in the returned vector.
16535
165362008-02-01 Kenichi Handa <handa@m17n.org>
16537
16538 * character.h (CHAR_STRING): Cast C to unsigned on calling
16539 char_string.
16540
16541 * character.c (char_string): Type of arg C changed to unsigned.
16542 Signal an error if C is an invalid character code.
16543
16544 * editfns.c (general_insert_function, Fchar_to_string):
16545 Use CHARACTERP, not INTEGERP.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * character.h (MIN_MULTIBYTE_LEADING_CODE)
16550 (MAX_MULTIBYTE_LEADING_CODE): New macros.
16551
16552 * regex.c (analyse_first): Fix for multibyte characters in "case
16553 charset:" and "case categoryspec:".
16554
165552008-02-01 Andreas Schwab <schwab@suse.de>
16556
16557 * Makefile.in (LIBES): Move standard libraries to the end.
16558
165592008-02-01 Kenichi Handa <handa@m17n.org>
16560
16561 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
16562 nonzero, don't shrink the buffer nextb.
16563
16564 * buffer.h (struct buffer_text): New member inhibit_shrinking.
16565
16566 * coding.c (coding_alloc_by_making_gap): New arg offset.
16567 (alloc_destination): Call coding_alloc_by_making_gap with the arg
16568 offset.
16569 (decode_coding_iso_2022): Update coding->safe_charsets.
16570 (decode_coding_gap): Temporarily set
16571 current_buffer->text->inhibit_shrinking to 1.
16572
165732008-02-01 Kenichi Handa <handa@m17n.org>
16574
16575 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
16576 indexing into elements of s->cmp and s->char2b.
16577
165782008-02-01 Juanma Barranquero <lekktu@gmail.com>
16579
16580 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
16585 target_multibyte instead of multibyte.
16586 (re_match_2_internal): Call bcmp_translate with target_multibyte.
16587 (bcmp_translate): Change the argument name from multibyte to
16588 target_multibyte.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 These changes are to compile a regexp into a pattern that can be
16593 used both for multibyte and unibyte targets.
16594
16595 * Makefile.in (search.o): Depend on charset.h.
16596
16597 * character.c (multibyte_char_to_unibyte_safe): New function.
16598
16599 * search.c: Include "charset.h".
16600 (compile_pattern_1): Delete argument multibyte. Don't set
16601 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
16602 (compile_pattern): Don't compare cp->buf.target_multibyte.
16603 Compare cp->buf.charset_unibyte.
16604 (compile_pattern): Set cp->buf.target_multibyte.
16605
16606 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
16607
16608 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
16609
16610 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
16611 multibyte. Change callers.
16612 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
16613 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
16614 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
16615 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
16616 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
16617 (regex_compile): Make the compiled pattern usable both for
16618 multibyte and unibyte targets.
16619 (analyse_first): Make the fastmap usable both for multibyte and
16620 unibyte targets.
16621 (TRANSLATE_VIA_MULTIBYTE): Delete.
16622 (re_match_2_internal): Pay attention to the case that the
16623 multibyteness of bufp and target may be different.
16624
166252008-02-01 Kenichi Handa <handa@m17n.org>
16626
16627 * xdisp.c (x_produce_glyphs): When a font is not found, make the
16628 empty box occupy at least one column width.
16629
166302008-02-01 Miles Bader <miles@gnu.org>
16631
16632 * Makefile.in: Remove redundant HAVE_XFT clause.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
16637
166382008-02-01 Kenichi Handa <handa@m17n.org>
16639
16640 * fontset.c (Finternal_char_font): Fix for the case of POSITION
16641 being nil.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
16650
166512008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * search.c (simple_search): Fix previous change.
16654
166552008-02-01 Kenichi Handa <handa@m17n.org>
16656
16657 * xftfont.c (ftfont_font_format): Extern declaration.
16658
16659 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
16660
16661 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
16662 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
16663
16664 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
16665 (ftfont_font_format): Fix previous change.
16666
16667 * font.h (Ffont_xlfd_name): EXFUN it.
16668
16669 * font.c (font_parse_xlfd): Fix the array size of `f'.
16670 (register_font_driver): Use EQ to compare driver->type.
16671
16672 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
16673 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
16674 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
16679 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * xfont.c (xfont_open): Set font->format.
16684
16685 * xftfont.c (xftfont_open): Set font->format.
16686
16687 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
16688 (ftfont_list): Include FC_FONTFORMAT in FcObject.
16689 (ftfont_open): Set font->format.
16690 (ftfont_font_format): New function.
16691
16692 * font.h (struct font): New member format.
16693
16694 * font.c (Qopentype): New variable.
16695 (syms_of_font): Defsym it.
16696 (Fquery_font): Change the format of the last element of the return
16697 value.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * xfns.c (xic_create_xfontset): Try the default fontset name as a
16702 last resort.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * coding.c (detect_coding_charset): Fix detection of multi-byte
16707 charset.
16708
167092008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
16710
16711 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * xdisp.c (get_next_display_element): Set it->face_id for the
16716 first component of a composition.
16717 (x_produce_glyphs): Check if the font is changed or not for composition.
16718
167192008-02-01 Kenichi Handa <handa@m17n.org>
16720
16721 * fontset.c (Qlatin): New variable.
16722 (syms_of_fontset): Define it as a lisp symbol.
16723 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
16724
167252008-02-01 Kenichi Handa <handa@m17n.org>
16726
16727 * font.c (font_unparse_fcname): Pay attention to the case that
16728 some of font property is a null string.
16729
167302008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * term.c: Include "composite.h".
16733 (encode_terminal_code): Output all components of composition.
16734 Check the size of encode_terminal_src.
16735 (produce_glyphs): For composition, call produce_composite_glyph.
16736 (append_composite_glyph, produce_composite_glyph): New functions.
16737
16738 * xdisp.c (x_produce_glyphs): In handling composition, if a font
16739 is not found, get font_info from the current ascii face.
16740
167412008-02-01 Kenichi Handa <handa@m17n.org>
16742
16743 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
16744 buffer-file-name to Qnil before calling insert_from_buffer.
16745
16746 * font.c (font_unparse_fcname): Pay attention to the case that
16747 foundry is a null string.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
16752
16753 * font.c (Qunicode_sip): New variable.
16754 (syms_of_font): Declare it as a Lisp symbol.
16755
16756 * font.h (Qunicode_sip): Extern it.
16757
167582008-02-01 Kenichi Handa <handa@m17n.org>
16759
16760 * composite.c (get_composition_id): Pay attention to TAB component.
16761
16762 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
16763 TAB. Adjust for the change of s->char2b which always points to
16764 the first element of allocated memory.
16765
16766 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
16767
16768 * xdisp.c (handle_composition_prop): Set it->c to the first
16769 non-TAB component.
16770 (fill_composite_glyph_string): Change argument.
16771 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
16772 (x_produce_glyphs): Fix handling of left/right padding.
16773
167742008-02-01 Kenichi Handa <handa@m17n.org>
16775
16776 * coding.c (detect_coding_system): Fix for handling off
16777 inhibit_iso_escape_detection. Fix for the case that no coding
16778 system is defined for a specific coding category.
16779
167802008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * font.c (font_matching_entity): Delete unused local var.
16783
16784 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
16785 opening a font.
16786
16787 * fileio.c (Finsert_file_contents): On recovering a file, assume
16788 Unix-like eol.
16789 (choose_write_coding_system): On auto-saving a file, force
16790 Unix-like eol.
16791
16792 * coding.c (setup_coding_system): Fix setting of
16793 coding->common_flags based on eol_type.
16794 (coding_inherit_eol_type): If PARENT is not nil, be sure to
16795 inherit from it.
16796
167972008-02-01 Kenichi Handa <handa@m17n.org>
16798
16799 * alloc.c (NSTATICS): Increas to 0x600.
16800
168012008-02-01 Kenichi Handa <handa@m17n.org>
16802
16803 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
16804 (ftfont_list): Don't check :name property.
16805 (ftfont_match): New function.
16806 (ftfont_pattern_entity): If the pattern doesn't contain
16807 FC_SPACING, don't assume FC_MONO.
16808
16809 * font.h (struct font_driver): New member `match'.
16810 (font_update_drivers): Adjust prototype.
16811
16812 * font.c (font_parse_fcname, font_parse_name): Don't change :name
16813 property of FONT.
16814 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
16815 them unconditionally.
16816 (font_matching_entity): New function.
16817 (font_open_by_name): Try font_matching_entity if exact match is
16818 not found.
16819 (font_update_drivers): Delete the arg FONT. Return a list of
16820 actually used backends. Don't free faces, font caches here.
16821 Don't store data in frame parameters. Don't call x_set_font.
16822 (Ffont_spec): Store :name property as is.
16823 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
16824 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
16825 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
16826 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
16827 Call font->driver->otf_gsub instead of font_otf_gsub.
16828
16829 * frame.c (x_set_font_backend): Do more works that were done in
16830 font_update_drivers before.
16831
16832 * xfont.c (xfont_match): New function.
16833 (xfont_driver): Set xfont_driver.match to xfont_match.
16834 (xfont_draw): Set font in GC if necessary.
16835
16836 * ftxfont.c (ftxfont_match): New function.
16837 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
16838
16839 * xftfont.c (xftfont_match): New function.
16840 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
16841
168422008-02-01 Kenichi Handa <handa@m17n.org>
16843
16844 * font.h (struct font): New member scalable.
16845 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
16846 (font_otf_gsub): Adjust prototype.
16847
16848 * font.c (font_otf_capability): Fix handling of the default langsys.
16849 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
16850 Check the contents of SPEC.
16851 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
16852 (check_gstring): New function.
16853 (REPLACEMENT_CHARACTER): New macro.
16854 (font_otf_gsub): New arg alternate_subst. Be sure to set all
16855 glyph codes of GSTRING.
16856 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
16857 (font_prepare_composition): Set cmp->glyph_len.
16858 (font_open_entity): Set font->scalable.
16859 (Ffont_get): Handle :otf property.
16860 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
16861 functions.
16862 (Fquery_font): Use font->font.full_name.
16863 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
16864 Sfont_otf_alternates.
16865
16866 * ftfont.c (ftfont_open): Set font->font.full_name and
16867 font->font.name properly. Fix calculation of font->font.height
16868 and font->min_width.
16869
16870 * ftxfont.c (ftxfont_create_gcs): New function.
16871 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
16872 (ftxfont_draw_backgrond): Fix filling region.
16873 (ftxfont_default_fid): New function.
16874 (ftxfont_open): Set xfont->fid to the return value of
16875 ftxfont_default_fid.
16876 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
16877 (ftxfont_done_face): Free only GCs that are created by
16878 ftxfont_create_gcs.
16879 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
16880
16881 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
16882 Clip to src->width, etc (not src->clip_XXX).
16883
16884 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
16885 FontBackend frame parameter.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * font.h (struct font_driver_list): New member `on'.
16890 (Fclear_font_cache): EXFUN it.
16891 (font_update_drivers): Extern it.
16892
16893 * font.c (font_unparse_fcname): Fix typo (swidth->width).
16894 (font_list_entities): Check driver_list->on.
16895 (register_font_driver): Initalize `on' member to 0.
16896 (font_update_drivers): New function.
16897 (Fclear_font_cache): Check driver_list->on.
16898
16899 * frame.h (Qfont_backend): Extern it.
16900 (x_set_font_backend): Extern it.
16901
16902 * frame.c (Qfont_backend): New variable.
16903 (frame_parms): New element for font-backend.
16904 (x_set_font_backend): New function.
16905
16906 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
16907 FontBackend frame parameter.
16908 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
16909 x_set_font_backend.
16910
16911 * xfont.c (xfont_list): Don't try listing by :name property if the
16912 name is not for XLFD.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
16917 (LGLYPH_SET_TO): New macros.
16918 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
16919 element of G is vector or not.
16920 (font_at): Extern it.
16921
16922 * font.c: Include window.h.
16923 (font_lispy_object): New function.
16924 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
16925 end of valid glyph.
16926 (font_close_object): Fix getting (struct font *).
16927 (font_at): New function.
16928 (Ffont_get): If FONT is a font-object, get entity from it.
16929 (Ffont_make_gstring): Initialize elements of glyphs with nil.
16930 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
16931 range check.
16932 (Ffont_at): New function.
16933 (syms_of_font): Defsubr Sfont_at.
16934
16935 * xdisp.c (it_props): Move the entry for Qauto_composed to just
16936 before the entry for Qcomposition.
16937 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
16938 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
16939 the font in gstring.
16940 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
16941 LGLYPH_FORM (g) to detect the end of valid glyph.
16942 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
16943 we are composing with gstring.
16944
16945 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
16946 Check if adjustment is vector or not.
16947
16948 * Makefile.in (font.o): Make it depends on window.h.
16949
169502008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
16953 adjustment is vector or not.
16954
169552008-02-01 Miles Bader <miles@gnu.org>
16956
16957 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
16958
169592008-02-01 Kenichi Handa <handa@m17n.org>
16960
16961 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
16962 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
16963 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
16964
16965 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
16966 (DEVICE_DELTA): Fix typo.
16967 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
16968 LGLYPH format.
16969
16970 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
16971 the change of LGLYPH format.
16972
169732008-02-01 Kenichi Handa <handa@m17n.org>
16974
16975 * ftfont.c (ftfont_list): Fix typo.
16976 (ftfont_build_basic_charsets): Don't include letters with diacritics.
16977
169782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16979
16980 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
16981
16982 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
16983 xftface_info is non-NULL.
16984
169852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
16986
16987 * ftfont.c (ftfont_list): Move misplaced #endif.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 * ftfont.c (ftfont_list): Pay attention to the case that
16992 FC_CAPABILITY is not defined.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * xftfont.c (xftfont_open): Set charset related members to -1.
16997
16998 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
16999 QCname.
17000 (ftfont_open): Set charset related members to -1.
17001
17002 * fontset.c (Votf_script_alist): New variable.
17003 (syms_of_fontset): Initialize it.
17004 (fontset_font): Delete unused variable.
17005
17006 * fontset.h (Votf_script_alist): Extern it.
17007
17008 * font.c (font_find_for_lface): Optimize code.
17009
17010 * font.h (font_close_object, font_merge_old_spec): Extern them.
17011
170122008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
17015 (syms_of_font): Initialize them.
17016 (font_pixel_size): Allow float value in dpi.
17017 (font_prop_validate_type): Delete.
17018 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
17019 Change caller.
17020 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
17021 (font_prop_validate_extra): Delete.
17022 (font_prop_validate_spacing): New function.
17023 (font_property_table): Add elements for all known properties.
17024 (get_font_prop_index): Rename from check_font_prop_name. New
17025 argument FROM. Change caller.
17026 (font_prop_validate): Validate all known properties.
17027 (font_put_extra): Delete argument force. Change caller.
17028 (font_expand_wildcards): Make it static. Fix the way of shrinking
17029 the possible range.
17030 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
17031 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
17032 Change caller.
17033 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
17034 (font_parse_fcname): Delete argument merge. Fix parsing of point
17035 size. Don't validate properties values here. Change caller.
17036 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
17037 (font_open_by_name): Delete unused variable.
17038 (Ffont_spec): Likewise. Validate property values.
17039 (Ffont_match_p): New function.
17040
17041 * font.h (QCscalable): Extern it.
17042 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
17043
17044 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
17045
17046 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
17047 (xfont_list_pattern): New function.
17048 (xfont_list): Use xfont_list_pattern.
17049
170502008-02-01 Kenichi Handa <handa@m17n.org>
17051
17052 * font.h (Flist_fonts): EXFUN it.
17053
170542008-02-01 Jason Rumney <jasonr@gnu.org>
17055
17056 * w32term.c (w32_initialize): Add back smoothing_type and
17057 smoothing_enabled definitions.
17058
170592008-02-01 Kenichi Handa <handa@m17n.org>
17060
17061 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
17062 s->face->font on determining underline position.
17063
170642008-02-01 Kenichi Handa <handa@m17n.org>
17065
17066 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
17067 (font_has_char): Accept font-object too.
17068 (font_find_for_lface): Try at first with a size specified in face.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
17073 font_open_by_name.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * font.h (QCspacing, QCdpi): Extern them.
17078 (enum font_spacing): New enum.
17079 (FONT_PIXEL_SIZE_QUANTUM): New macro.
17080
17081 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
17082 (QCspacing, QCdpi): New variables.
17083 (syms_of_font): Initialize them.
17084 (font_pixel_size): New function.
17085 (font_put_extra): New function.
17086 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
17087 in FONT_EXTRA.
17088 (font_parse_fcname): Handle enumerated values (e.g. bold).
17089 Fix handling font size. Add QCname property that contains only
17090 unknown properties.
17091 (font_score): Change argument. Change caller. Pay attention to
17092 FONT_PIXEL_SIZE_QUANTUM.
17093 (font_sort_entites, font_list_entities, font_find_for_lface)
17094 (font_open_for_lface, font_open_by_name): Fix handling of font size.
17095 (Ffont_spec): Add QCname property that contains only unknown properties.
17096
17097 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
17098 include weight in listing pattern, instead check weight of each
17099 listed font. Don't include scalable in pattern. Pay attention to
17100 FONT_PIXEL_SIZE_QUANTUM.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * font.c (font_parse_fcname): Fix parsing of point-size.
17105 (font_unparse_fcname): Produce symbolic names for style properties.
17106 (font_list_entities): Handle float size correctly.
17107 (font_open_by_name): Prefer `normal' property values if the name
17108 doesn't specify them.
17109
17110 * fontset.c (Finternal_char_font): Use font_get_name, not
17111 Ffont_xlfd_name.
17112
17113 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
17114 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
17115 pattern. Don't force scalable.
17116
17117 * xftfont.c (xftfont_open): For generating a name, start from
17118 96-byte buffer.
17119
171202008-02-01 Jan Djärv <jan.h.d@swipnet.se>
17121
17122 * frame.h (x_new_fontset2): Fix prototype.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * font.h (struct font_driver): Delete member parse_name.
17127 (font_match_p, font_get_spec, font_parse_fcname)
17128 (font_unparse_fcname): Extern them.
17129 (font_get_name): Adjust prototype.
17130
17131 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
17132 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
17133 (font_expand_wildcards): Fix handling ENCODING field. Avoid
17134 unnecessary checks for weight, slant, and swidth.
17135 (font_parse_fcname): New function.
17136 (font_unparse_fcname): New function.
17137 (font_parse_name): New function.
17138 (font_match_p): New function.
17139 (font_get_name): Change return value to Lisp string.
17140 (font_get_spec): New function.
17141 (Qunspecified, Qignore_defface): Don't extern them.
17142 (font_find_for_lface): Assume that LFACE is fully specified.
17143 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
17144 object, use it for FACE.
17145 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
17146 driver->parse_name.
17147 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
17148
17149 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
17150 prototype.
17151
17152 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
17153 argument F. Don't call Fnew_fontset. Instead, directly call
17154 make_fontset.
17155
17156 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
17157
17158 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
17159 of x_new_fontset2.
17160
17161 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
17162 (Qsans__serif): New variables.
17163 (ftfont_generic_family_list): New variable.
17164 (syms_of_ftfont): Initialize the above variables.
17165 (ftfont_pattern_entity): Delete argument NAME.
17166 (ftfont_list_generic_family): New function.
17167 (ftfont_parse_name): Delete this function.
17168 (ftfont_list): Try generic family only when FcFontList found no font.
17169 (ftfont_list_family): Fix args to FcObjectSetBuild.
17170
17171 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
17172 object in attrs[LFACE_FONT_INDEX].
17173 (set_lface_from_font_name): Cancel all changes for font-backend.
17174 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
17175 function.
17176 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
17177 font object in QCfont attribute.
17178 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
17179 (realize_default_face) [USE_FONT_BACKEND]: Call
17180 set_lface_from_font_and_fontset.
17181
17182 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
17183 "fixed", and signal error here if no suitable font was found.
17184
17185 * xfont.c (xfont_parse_name): Delete this function.
17186
17187 * xftfont.c (xftfont_open): Change coding style of error
17188 handling. Generate fontconfig's fontname pattern.
17189
17190 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
17191 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
17192
17193 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
17194 Both args FONTSET and FONT_OBJECT must be existing ones.
17195
171962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17197
17198 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
17199
172002008-02-01 Kenichi Handa <handa@m17n.org>
17201
17202 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
17203
17204 * font.h (struct font): Fix typo.
17205
17206 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
17207 XLFD_XXX_INDEX.
17208 (enum xlfd_field_mask): New enum.
17209 (intern_font_field): Changed argument. Change caller. If digits
17210 are followed by non-digits, return a symbol.
17211 (font_expand_wildcards): New function.
17212 (font_parse_xlfd): Fix wildcard handling.
17213 (Ffont_spec): If :name is specified, reflect the info in the other
17214 properties.
17215
17216 * ftfont.c (ftfont_pattern_entity): Fix typo.
17217 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
17218 locale.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
17223
17224 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
17225 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
17226 registry doesn't specify encoding part.
17227 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
17228 (font_open_by_name): At first try parsing the name.
17229 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
17230 as Lisp symbols.
17231
17232 * fontset.c (reorder_font_vector): Pay attention to the case that
17233 the 3rd element of font_def is nil.
17234 (fontset_font): For the default fontset, append one more fontset
17235 elements for a script-based font specification. Don't add script
17236 attribute on finding a font.
17237 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
17238 font name.
17239 (fontset_ascii_font): If a font can't be opened, return nil.
17240
17241 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
17242 (ftfont_pattern_entity): New function.
17243 (ftfont_get_cache): Assume that freetype_font_cache is already
17244 initialized.
17245 (ftfont_list): Handle the case that a file is specified in font
17246 name. Use ftfont_pattern_entity to generate entities.
17247 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
17248 (syms_of_ftfont): Initialize freetype_font_cache.
17249
17250 * xftfont.c (xftfont_open): Make the font name fontconfig's
17251 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
17252 (xftfont_close): Free font->font.name if not NULL.
17253
17254 * xfont.c (xfont_list): If script is specified for a font, return
17255 null_vector.
17256 (xfont_list_family): Declare argument type.
17257
17258 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
17259 name, set LFACE_FONT (lface) to nil.
17260
17261 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
17262 return Qnil.
17263
172642008-02-01 Kenichi Handa <handa@m17n.org>
17265
17266 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
17267 (standard_args): Add "-enable-font-backend".
17268
172692008-02-01 Kenichi Handa <handa@m17n.org>
17270
17271 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
17272 (struct xftdraw_list, xftdraw_list): Delete them.
17273 (register_xftdraw, check_xftdraw): Delete them.
17274 (xftfont_prepare_face): Don't call register_xftdraw.
17275 (xftfont_done_face): Don't call check_xftdraw.
17276 (xftfont_draw): Get background color only when with_background is
17277 nonzero.
17278
17279 * xfont.c (xfont_encode_char): Fix calculation of char2b.
17280
172812008-02-01 Kenichi Handa <handa@m17n.org>
17282
17283 These changes are for the new font handling codes.
17284
17285 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
17286 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
17287 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
17288 (FONTSRC, FONTOBJ): New variables.
17289 (obj): Add $(FONTOBJ).
17290 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
17291 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
17292 @LIBOTF_LIBS@.
17293 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
17294 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
17295
17296 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
17297
17298 * character.h (Vscript_representative_chars): Extern it.
17299
17300 * character.c (Vscript_representative_chars): New variable.
17301 (syms_of_character): Declare it as a Lisp variable.
17302
17303 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
17304 enable_font_backend is nonzero, accept the composition method
17305 COMPOSITION_WITH_GLYPH_STRING.
17306
17307 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
17308 enumeration COMPOSITION_WITH_GLYPH_STRING.
17309
17310 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
17311 members clip_x, clip_y, clip_width, and clip_height.
17312 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
17313
17314 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
17315 --enable-font-backend. Call syms_of_font.
17316
17317 * fns.c (assoc_no_quit): New function.
17318
17319 * fontset.h (FONT_INFO_FROM_FACE): New macro.
17320 (face_for_font, new_fontset_from_font)
17321 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
17322
17323 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
17324 (fontset_font, fontset_ascii, face_for_char)
17325 (make_fontset_for_ascii_face, Ffont_info)
17326 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
17327 is nonzero, use font-backend mechanism.
17328 (find_font_encoding): Make it non-static.
17329 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
17330 New functions.
17331
17332 * frame.h (struct frame): New members resx and resy.
17333 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
17334 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
17335
17336 * frame.c [USE_FONT_BACKEND]: Include "font.h".
17337 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
17338
17339 * lisp.h (assoc_no_quit): Extern it.
17340
17341 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
17342 Through out the file, use FONT_INFO_FROM_FACE instead of
17343 FONT_INFO_FROM_ID, use get_per_char_metric instead of
17344 rif->per_char_metric.
17345 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
17346 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
17347 (get_glyph_face_and_encoding, fill_composite_glyph_string)
17348 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
17349 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
17350 nonzero, use font-backend mechanism.
17351 (get_per_char_metric): New function.
17352
17353 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
17354 (set_lface_from_font_name)
17355 (set_font_frame_param, free_realized_face)
17356 (prepare_face_for_display, clear_face_gcs)
17357 (Finternal_set_font_selection_order, realize_x_face)
17358 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
17359 font-backend mechanism.
17360 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
17361 (load_face_font) [USE_FONT_BACKEND]: Abort.
17362 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
17363 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
17364
17365 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
17366 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
17367 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
17368 nonzero, register all available font drivers. Call
17369 x_default_font_parameter for deciding a font.
17370 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
17371
17372 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
17373 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
17374 (x_set_glyph_string_clipping_exactly)
17375 (x_compute_glyph_string_overhangs)
17376 (x_draw_glyph_string_foreground)
17377 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
17378 (x_free_frame_resources) [USE_FONT_BACKEND]: If
17379 enable_font_backend is nonzero, use font-backend mechanism.
17380 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
17381
173822008-02-01 Kenichi Handa <handa@m17n.org>
17383
17384 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
17385 system_eol_type.
17386 (syms_of_coding): Initialize system_eol_type.
17387
17388 * process.c (Fset_process_coding_system): Inherit system's eol
17389 format if necessary.
17390
173912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17392
17393 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * coding.c (decode_eol): Pay attention to buffer relocation in
17398 del_range_2.
17399 (decode_coding): Call decode_eol before restoring undo_list.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * charset.c (Fdefine_charset_internal): Fix setting of
17404 emacs_mule_bytes.
17405
174062008-02-01 Kenichi Handa <handa@m17n.org>
17407
17408 * keyboard.c (read_char): Check if C is a character or not before
17409 looking up Vkeyboard_translate_table.
17410
174112008-02-01 Kenichi Handa <handa@m17n.org>
17412
17413 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
17414 condition to terminate the loop.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * coding.c (produce_composition): Compare charbuf[i] instead of
17419 args[i] against 0.
17420 (Fterminal_coding_system): Use EQ to compare Lisp objects.
17421
174222008-02-01 Kenichi Handa <handa@m17n.org>
17423
17424 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
17425 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
17426 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
17427 detect_coding.
17428 (emacs_mule_char): Handle old style (Emacs 20) component character
17429 of a composition.
17430 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
17431 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
17432 composition rule.
17433 (decode_coding_emacs_mule): Handle invalid bytes correctly.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * coding.c (encode_coding_ccl): Allocate destination dynamically
17438 when necessary.
17439
174402008-02-01 Kenichi Handa <handa@m17n.org>
17441
17442 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
17443 the loop. When quitted, show a proper error message.
17444
174452008-02-01 Kenichi Handa <handa@m17n.org>
17446
17447 * xterm.c (x_set_glyph_string_clipping_exactly): Set
17448 src->clip_head and src->clip_tail temporarily instead of src->hl.
17449
17450 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
17451 character sequence.
17452 (Fccl_execute_on_string): Use ASET, not XSET.
17453
174542008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
17457
174582008-02-01 Kenichi Handa <handa@m17n.org>
17459
17460 * coding.c (decode_coding): Fix the condition of terminating the
17461 decoding loop.
17462
174632008-02-01 Kenichi Handa <handa@m17n.org>
17464
17465 * data.c (Faset): On setting a character bigger than 255 in a
17466 unibyte string, signal an error instead of make the string multibyte.
17467
174682008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * charset.c (map_charset_chars): Fix for ascii-compatible charset
17471 made by a mapping table.
17472
174732008-02-01 Kenichi Handa <handa@m17n.org>
17474
17475 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
17476 not.
17477 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
17478 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
17479
17480 * xterm.c (x_draw_composite_glyph_string_foreground): Check
17481 s->face is NULL or not.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
17486 (x_draw_glyph_string): Fix drawing of right_overhang and
17487 left_overhang around/on cursor.
17488
17489 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
17494
174952008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * coding.c (Fdefine_coding_system_internal)
17498 (Fdefine_coding_system_alias): Avoid a duplicated element in
17499 Vcoding_system_alist.
17500
175012008-02-01 Kenichi Handa <handa@m17n.org>
17502
17503 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
17504
17505 * coding.c (Qcoding_system_define_form): New variable.
17506 (syms_of_coding): Intern and staticpro it.
17507 (Fcoding_system_p): Check Qcoding_system_define_form.
17508 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
17509
17510 * coding.h (CODING_SYSTEM_P): If ID is not available, call
17511 Fcoding_system_p.
17512 (CHECK_CODING_SYSTEM): If ID is not available, call
17513 Fcheck_coding_system.
17514 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
17515 Try also Fcheck_coding_system.
17516
175172008-02-01 Kenichi Handa <handa@m17n.org>
17518
17519 * coding.c (code_conversion_restore): GCPRO arg.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * character.c (lisp_string_width): Check multibyteness of STRING.
17524
175252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17526
17527 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
17528 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
17529 (decode_mac_font_name): Use decode_coding_c_string instead of
17530 decode_coding.
17531 (x_load_font): Initialize fontp->fontset to -1. Set
17532 fontp->encoding_type.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * search.c (search_buffer): Give up BM search on case-fold-search
17537 if one of a target character has a case-equivalence of different
17538 byte length even if that target charcter is an ASCII.
17539 (simple_search): Fix calculation of byte length of matched text.
17540 (boyer_moore): Fix handling of case-equivalent multibyte characters.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * coding.c (decode_coding): Fix handling of invalid bytes.
17545
175462008-02-01 Kenichi Handa <handa@m17n.org>
17547
17548 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
17549 Unicode characters.
17550
175512008-02-01 Kenichi Handa <handa@m17n.org>
17552
17553 * coding.c (encode_coding_object): If a pre-write-conversion
17554 function makes a new buffer, kill it.
17555
175562008-02-01 Kenichi Handa <handa@m17n.org>
17557
17558 * coding.c (QCascii_compatible_p): New variable.
17559 (syms_of_coding): Initialize it.
17560 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
17561 calling string_char.
17562 (record_conversion_result): Add `default:' case.
17563 (coding_charset_list): Delete unused variable `coding_type'.
17564 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
17565 property in the plist of the coding system.
17566 (Fcoding_system_put): Check QCascii_compatible_p.
17567
175682008-02-01 Miles Bader <miles@gnu.org>
17569
17570 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
17571 removed calculation of frame `f', as it's now used.
17572
175732008-02-01 Kenichi Handa <handa@m17n.org>
17574
17575 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
17576 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
17577 (UNIDATA): New variable.
17578 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
17579 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
17580 $(RUN_TEMACS) unconditionally.
17581
175822008-02-01 Kenichi Handa <handa@m17n.org>
17583
17584 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
17585 (admindir): New variable.
17586 ($(lispsource)international/charprop.el): New target.
17587
175882008-02-01 Miles Bader <miles@gnu.org>
17589
17590 * character.c (chars-in-region): Remove obsolete function.
17591 (syms_of_character): Remove its initialization.
17592
175932008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
17594
17595 * w32select.c (validate_coding_system)
17596 (setup_windows_coding_system): New functions.
17597 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
17598 setup_windows_coding_system.
17599 (setup_config, Fw32_get_clipboard_data): Use
17600 validate_coding_system.
17601 (Fx_selection_exists): Move call to setup_config to a place
17602 where signals are allowed.
17603
17604 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
17605 (Fcheck_coding_system): Add declarations.
17606
176072008-02-01 Kenichi Handa <handa@m17n.org>
17608
17609 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
17610
176112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17612
17613 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
17614 string as the second argument for x_new_fontset.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
17619 (encode_coding_object): Use safe_call instead of call2.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * fontset.c (Fset_fontset_font): Check family element of a given vector.
17624
17625 * Makefile.in (lisp): Include charprop.el.
17626
176272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17628
17629 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
17630 Not sure if it's unnecessary.
17631
176322008-02-01 Steven Tamm <steventamm@mac.com>
17633
17634 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
17635 some possibly unnecessary fontset checking code that crashed
17636 when creating a new frame.
17637
176382008-02-01 Kenichi Handa <handa@m17n.org>
17639
17640 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
17641 lookup_face.
17642
17643 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
17644
17645 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
17646
176472008-02-01 Kenichi Handa <handa@m17n.org>
17648
17649 * coding.c: Cancel the change done in HEAD on 2008-02-01.
17650 (coding_charset_list): New function.
17651
17652 * coding.h (coding_charset_list): Extern it.
17653
176542008-02-01 Kenichi Handa <handa@m17n.org>
17655
17656 * fontset.c (Fset_fontset_font): Call find_font_encoding with
17657 concatenation of family and registry.
17658
176592008-02-01 Kenichi Handa <handa@m17n.org>
17660
17661 * character.h (BYTE8_STRING): Fix typo.
17662
17663 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
17664 string to multibyte (sync to HEAD).
17665
17666 * casefiddle.c (casify_region): Handle changes in byte-length
17667 using replace_range_2 (sync to HEAD).
17668
176692008-02-01 Andreas Schwab <schwab@suse.de>
17670
17671 * chartab.c (map_char_table): GCPRO table and arg.
17672
176732008-02-01 Kenichi Handa <handa@m17n.org>
17674
17675 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
17676 already at limit.
17677
176782008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
17681 instead of fast_c_string_match_ignore_case.
17682 (find_font_encoding): Change argument to Lisp_Object. Use
17683 fast_string_match_ignore_case instead of
17684 fast_c_string_match_ignore_case. Change caller.
17685
176862008-02-01 Kenichi Handa <handa@m17n.org>
17687
17688 * xdisp.c (get_next_display_element): In unibyte case, decide to
17689 display in octal form by checking a character by
17690 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
17691
17692 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
17693
17694 * character.c (unibyte_has_multibyte_table): New variable.
17695
17696 * character.h (unibyte_has_multibyte_table): Extern it.
17697 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
17698
176992008-02-01 Kenichi Handa <handa@m17n.org>
17700
17701 * coding.c (encode_coding_iso_2022): Fix handling of charset
17702 annotation.
17703
177042008-02-01 Kenichi Handa <handa@m17n.org>
17705
17706 * coding.c (setup_coding_system): If coding_system is nil, use
17707 Qundecided.
17708 (Fterminal_coding_system): Return nil if terminal coding system is
17709 `undecided'.
17710 (syms_of_coding): Define coding-system `undecided' here. Setup
17711 terminal_coding as `undecided'.
17712
177132008-02-01 Kenichi Handa <handa@m17n.org>
17714
17715 * xdisp.c (message_dolog, set_message_1): Call
17716 unibyte_char_to_multibyte with arg type int.
17717
17718 * lread.c (read1): Fix reading of a char-table.
17719
17720 * print.c (print_object): Include sub char-table in circularities
17721 detection.
17722
177232008-02-01 Kenichi Handa <handa@m17n.org>
17724
17725 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
17726 Append the found sequences in car of ARGS instead of prepending.
17727
177282008-02-01 Kenichi Handa <handa@m17n.org>
17729
17730 * fileio.c (report_file_error): Make a unibyte string from
17731 strerror (errorno).
17732 (Fsubstitute_in_file_name): Fix the arg to
17733 unibyte_char_to_multibyte. It is evaluated twice.
17734
177352008-02-01 Kenichi Handa <handa@m17n.org>
17736
17737 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
17738
177392008-02-01 Kenichi Handa <handa@m17n.org>
17740
17741 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
17742 BOM is not found.
17743 (detect_coding, detect_coding_system): Optimization for ISO-2022
17744 when no 8-bit data is found.
17745
177462008-02-01 Jason Rumney <jasonr@gnu.org>
17747
17748 * w32fns.c (x_to_w32_font): Update to use new coding struct.
17749
177502008-02-01 Kenichi Handa <handa@m17n.org>
17751
17752 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
17753 CHARS.
17754
177552008-02-01 Steven Tamm <steventamm@mac.com>
17756
17757 * macterm.c (mac_encode_char): Add charset argument and update
17758 to use encoding_type.
17759 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
17760 switch to pure fontset.
17761 (decode_mac_font_name): Temporarily remove decoding.
17762 (x_font_name_to_mac_font_name): Temporarily remove encoding.
17763 (x_load_font): Temporarily remove encoding.
17764
177652008-02-01 Kenichi Handa <handa@m17n.org>
17766
17767 * xfaces.c (Fface_font): If frame is not on a window system,
17768 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
17769 refer to face->font.
17770 (split_font_name_into_vector, build_font_name_from_vector)
17771 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
17772 when HAVE_WINDOW_SYSTEM is defined.
17773
177742008-02-01 Kenichi Handa <handa@m17n.org>
17775
17776 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
17777 (x_produce_glyphs): Fix setting of members of cmp in case
17778 cmp->glyph_len is zero.
17779
17780 * fontset.c (Fset_fontset_font): Fix docstring.
17781 (Ffontset_info): Make it backward compatible. New arg ALL.
17782
177832008-02-01 Kim F. Storm <storm@cua.dk>
17784
17785 * process.c (read_process_output): Grow decoding_buf when needed;
17786 this could cause a crash in allocate_string and compact_small_strings.
17787
177882008-02-01 Kenichi Handa <handa@m17n.org>
17789
17790 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
17791
177922008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * coding.c (setup_coding_system): Set coding->common_flags
17795 correctly for raw-text.
17796 (consume_chars): On encoding unibyte text by raw-text, don't check
17797 multibyte form.
17798 (encode_coding): On encoding by raw-text, never use translation tables.
17799
17800 * fileio.c (e_write): Short cut for the case of no encoding.
17801
178022008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * coding.c (detect_coding, detect_coding_system): Delete unused
17805 variables.
17806
178072008-02-01 Kenichi Handa <handa@m17n.org>
17808
17809 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
17810 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
17811
178122008-02-01 Kenichi Handa <handa@m17n.org>
17813
17814 * coding.c (Ffind_coding_systems_region_internal): Include
17815 raw-text and no-conversion in the result.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
17820 (load_font_get_repertory): Delete unnecessary check of ENCODING of
17821 FONT_DEF.
17822 (font_def_arg, add_arg, from_arg, to_arg): New args.
17823 (set_fontset_font): Change argument.
17824 (Fset_fontset_font): Fix for the case that TARGET is a script
17825 name and charset name.
17826 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
17827
178282008-02-01 Kenichi Handa <handa@m17n.org>
17829
17830 * fontset.c (fontset_font): Rename from fontset_face. Change return
17831 value.
17832 (face_suitable_for_char_p, face_for_char): Adjust for the change
17833 of fontset_font.
17834 (make_fontset_for_ascii_face): Fix setting of the fontset element
17835 for ASCII.
17836 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
17837 to get a font name.
17838 (Ffontset_info): Adjust for the change of fontset_font.
17839
17840 * coding.c (emacs_mule_char): Check invalid code more rigidly.
17841
17842 * character.h (LEADING_CODE_LATIN_1_MIN)
17843 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * editfns.c (check_translation): New function.
17848 (Ftranslate_region_internal): Handle M:N mapping.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
17853
178542008-02-01 Kenichi Handa <handa@m17n.org>
17855
17856 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
17857 goto invalid_code.
17858 (decode_coding_iso_2022): Fix handling of invalid designation.
17859
17860 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
17861 after calling code_conversion_save.
17862
178632008-02-01 Kenichi Handa <handa@m17n.org>
17864
17865 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
17866
17867 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
17868
17869 * fontset.c: Include "intervals.h".
17870 (fontset_face): Fix comparing of Lisp_Objects.
17871 (free_face_fontset, new_fontset_from_font_name): Fix
17872 Lisp_Object/int mixup.
17873
17874 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
17875
17876 * coding.c: Add many prototypes for static functions.
17877 (get_translation_table): Allow max_lookup to be NULL.
17878 (decode_coding, Ffind_coding_systems_region_internal)
17879 (Funencodable_char_position, Fcheck_coding_systems_region): Call
17880 get_translation_table with max_lookup NULL.
17881
178822008-02-01 Kenichi Handa <handa@m17n.org>
17883
17884 * coding.c (get_translation_table): Declare it as Lisp_Object.
17885 (LOOKUP_TRANSLATION_TABLE): New macro.
17886 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
17887 instead of CHAR_TABLE_REF.
17888
178892008-02-01 Kenichi Handa <handa@m17n.org>
17890
17891 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
17892 annotation data format.
17893 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
17894 Change arguments FROM and TO to single argument NCHARS. Change caller.
17895 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
17896 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17897 (decode_coding_ccl, decode_coding_charset): Pay attention to
17898 coding->charbuf_used.
17899 (get_translation): New function.
17900 (produce_chars): New arguments translation_table and last_block.
17901 Translate characters here. Return number of carryover chars.
17902 Change caller.
17903 (produce_composition): New argument pos. Change caller.
17904 Adjust for the change of annotation data format.
17905 (produce_charset, produce_annotation): Likewise.
17906 (decode_coding, encode_coding): Don't call translate_chars.
17907 (consume_chars): New arg translation_table. Change caller.
17908 (translate_chars): Delete.
17909 (syms_of_coding): Make translation-table's number of extra slots 2.
17910
179112008-02-01 Kenichi Handa <handa@m17n.org>
17912
17913 * search.c (simple_search): Fix setting this_pos_byte in backward
17914 search.
17915
17916 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
17917 byte sequence.
17918 (detect_coding_ccl): Fix setting of the variable valids.
17919
179202008-02-01 Kenichi Handa <handa@m17n.org>
17921
17922 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
17923
17924 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
17925
17926 * editfns.c (Ftranslate_region_internal): Rename from
17927 Ftranslate_region. Accept a char-table in TABLE.
17928 (syms_of_editfns): Defsubr Stranslate_region_internal.
17929
17930 * xfaces.c (set_lface_from_font_name): If a font is specified for
17931 a frame, generate a fontset from the font.
17932 (build_scalable_font_name): If the scalable font is requested for
17933 a specific size, don't change that size.
17934 (try_font_list): Try a scalable font also in the case that a
17935 pattern string is specified.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * xfaces.c (Fface_font): New optional arg CHARACTER.
17940
179412008-02-01 Kenichi Handa <handa@m17n.org>
17942
17943 * charset.h (CHARSET_OFFSET): New macro.
17944
179452008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
17948
17949 * fontset.c (fontset_face): Handle the case that repertory is a
17950 char-table.
17951 (find_font_encoding): Return nil for unknown encoding.
17952 (Fset_fontset_font): Ignore a font of unknown encoding.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * keymap.c (describe_vector): Handle default value of a char table.
17957
17958 * fontset.c (fontset_face): Handle fallback fonts correctly.
17959 (Ffontset_info): Return infomation about fallback fonts.
17960
179612008-02-01 Kenichi Handa <handa@m17n.org>
17962
17963 * fontset.c (FONTSET_DEFAULT): New macro.
17964 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
17965 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
17966 the case that it is nil.
17967 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
17968 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
17969
17970 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
17971 subset or superset.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * emacs.c (main): Call init_charset after syms_of_XXX.
17976
17977 * charset.c (Vcharset_map_directory): Delete.
17978 (Vcharset_map_path): New variable.
17979 (load_charset_map_from_file): Use Vcharset_map_path instead.
17980 (init_charset): Initialize Vcharset_map_path.
17981 (syms_of_charset): Delete declaration of "charset-map-directory",
17982 add declaration of "charset-map-path".
17983
179842008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
17987 ASCII only string.
17988
17989 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
17990
17991 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
17992 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
17997
17998 * coding.c (QCmnemonic, QCdefalut_char)
17999 (QCdecode_translation_table, QCencode_translation_table)
18000 (QCpost_read_conversion, QCpre_write_conversion): New variables.
18001 (get_translation_table): Return a list of translation tables if
18002 necessary.
18003 (decode_coding): Call get_translation_table with ENCODEP 0.
18004 (char_encodable_p): If translation_table is non-nil, always call
18005 translate_char.
18006 (Fdefine_coding_system_internal): Accept list of translation
18007 tables as :encode-translation-table and :decode-translation-table.
18008 (Fcoding_system_put): New function.
18009 (syms_of_coding): Declare new symbols. Defsubr
18010 Scoding_system_put.
18011 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
18012 typically JISX0212.
18013
18014 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
18015 when the charset is superset type.
18016
18017 * character.c (translate_char): Accept list of translation tables.
18018
180192008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
18022 (CODING_ATTR_TRANS_TBL): New macro.
18023
18024 * coding.c (get_translation_table): New function.
18025 (translate_chars): Fix the bug of skipping annotation data.
18026 (decode_coding, encode_coding): Utilize get_translation_table.
18027 (char_encodable_p, Funencodable_char_position): Translate char if
18028 necessary.
18029 (Ffind_coding_systems_region_internal)
18030 (Fcheck_coding_systems_region): Setup translation table for encode
18031 in a coding system attribute vector in advance.
18032 (Fdefine_coding_system_internal): Allow a symbol as translation
18033 table. For shift-jis type coding system, allow 4th charset.
18034
180352008-02-01 Kenichi Handa <handa@m17n.org>
18036
18037 * coding.c (decode_coding_sjis): Check the first byte rigidly.
18038
18039 * xdisp.c (get_next_display_element): Pass -1 as POS to
18040 FACE_FOR_CHAR if displaying a C-string.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * composite.c (get_composition_id): Handle xoff and yoff in a
18045 composition rule.
18046
18047 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
18048 (struct composition): New member lbearing and rbearing.
18049
18050 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
18051 (x_get_glyph_overhangs): Handle a composition glyph.
18052 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
18053
18054 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
18055 composition glyph.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * print.c: Include charset.h.
18060 (Vprint_charset_text_property): New variable.
18061 (Qdefault): Extern it.
18062 (PRINT_STRING_NON_CHARSET_FOUND)
18063 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
18064 (print_check_string_result): New variable.
18065 (print_check_string_charset_prop): New function.
18066 (print_prune_charset_plist): New variable.
18067 (print_prune_string_charset): New function.
18068 (print_object): Call print_prune_string_charset if
18069 Vprint_charset_text_property is not t.
18070 (print_interval): Print nothing if interval->plist is nil.
18071 (syms_of_print): Declare Vprint_charset_text_property as a lisp
18072 variable. Init and staticpro print_prune_charset_plist.
18073
180742008-02-01 Kenichi Handa <handa@m17n.org>
18075
18076 * fontset.c (new_fontset_from_font_name): Use the specified font
18077 for all characters in the new fontset.
18078
18079 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18080 OBJECT args.
18081
18082 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
18083 OBJECT args for composition too.
18084
18085 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
18086 OBJECT args.
18087
180882008-02-01 Kenichi Handa <handa@m17n.org>
18089
18090 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
18091
18092 * fontset.c (reorder_font_vector): Adjust for the change of
18093 FONT_DEF format.
18094 (fontset_face): New arg id. Change caller.
18095 (face_for_char): New args pos and object.
18096 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
18097 (fs_query_fontset): Check NAME by Fassoc too.
18098 (Fset_fontset_font): Allow non-XLFD font name.
18099 (Ffontset_info): Adjust for the change of FONT_DEF format.
18100
18101 * fontset.h (face_for_char): Adjust prototype.
18102
18103 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
18104 (append_space, extend_face_to_end_of_line)
18105 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18106 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
18107
18108 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
18109 POS and OBJECT args.
18110
18111 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
18112 POS and OBJECT args.
18113
181142008-02-01 Jason Rumney <jasonr@gnu.org>
18115
18116 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
18117 of GlobalAlloc'ed memory.
18118
181192008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
18122
18123 * charset.h (charset_table_used): Delete extern.
18124
18125 * charset.c (charset_table_used): Make it static.
18126 (map_charset_chars): Fix args to c_function with.
18127
18128 * chartab.c (map_sub_char_table_for_charset): Fix args to
18129 c_function with.
18130
18131 * coding.h (enum coding_result_code): Delete
18132 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
18133
18134 * coding.c (Qinsufficient_source, Qinconsistent_eol)
18135 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
18136 (Vlast_code_conversion_error): New variables.
18137 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
18138 (ONE_MORE_BYTE): Record error if any instead of signaling an
18139 error. If non-ASCII multibyte char is found, return the negative
18140 value of the code. All callers changed to check it.
18141 (ONE_MORE_BYTE_NO_CHECK): Likewise.
18142 (record_conversion_result): New function. Change all codes setting
18143 coding->result to call this function.
18144 (detect_coding_utf_8, decode_coding_utf_8)
18145 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
18146 Don't use the local variable incomplete.
18147 (emacs_mule_char): Change the second arg to `const'.
18148 (decode_coding): Fix of flushing out unprocessed data.
18149 (make_conversion_work_buffer): Fix making of a work buffer.
18150 (decode_coding_object): Return coding->dst_object.
18151
18152 * fontset.c (set_fontset_font): Fix args.
18153
18154 * lisp.h (CHARACTERBITS): Define as 22.
18155
18156 * process.c (send_process): Be sure to set coding->src_multibyte.
18157
18158 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
18159
181602008-02-01 Kenichi Handa <handa@m17n.org>
18161
18162 * xdisp.c (handle_auto_composed_prop): Give limit to
18163 Fnext_single_char_property_change.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * composite.c (syms_of_composite): Don't make the composition hash
18168 table weak.
18169
18170 * fontset.c (Fset_fontset_font): Fix docstring.
18171
18172 * lisp.h (detect_coding_system): Adjust prototype.
18173
18174 * fileio.c (kill_workbuf_unwind): Delete this function.
18175 (Finsert_file_contents): Adjust the call of detect_coding_system.
18176 Get conversion_buffer by code_conversion_save. Use the macro
18177 CODING_MAY_REQUIRE_DECODING. After decoding, update
18178 coding_system.
18179
18180 * coding.h (make_conversion_work_buffer): Delete extern.
18181 (code_conversion_save): Extern it.
18182
18183 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
18184 (CODING_GET_INFO): Delete argument eol_type. Change callers.
18185 (decode_coding_utf_8): Don't do eol converion.
18186 (detect_coding_utf_16): Check coding->src_chars, not
18187 coding->src_bytes. Add heuristics for those that have no signature.
18188 (decode_coding_emacs_mule, decode_coding_iso_2022)
18189 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18190 Don't do eol converion.
18191 (adjust_coding_eol_type): Return a new coding system.
18192 (detect_coding): Don't detect eol. Fix for utf-16 detection.
18193 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
18194 each change.
18195 (decode_coding): Pay attention to undo_list. Do eol conversion for
18196 all types of coding-systems (if necessary).
18197 (Vcode_conversion_work_buf_list): Delete it.
18198 (Vcode_conversion_reused_workbuf): Rename from
18199 Vcode_conversion_reused_work_buf.
18200 (Vcode_conversion_workbuf_name): New variable.
18201 (reused_workbuf_in_use): New variable.
18202 (make_conversion_work_buffer): Delete the arg DEPTH.
18203 (code_conversion_restore): Change argument to cons.
18204 (code_conversion_save): Delete the argument BUFFER. Change callers.
18205 (detect_coding_system): New argument src_chars. Change callers.
18206 Fix for utf-16 detection.
18207 (init_coding_once): Don't use ISO_carriage_return.
18208 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
18209 reused_workbuf_in_use.
18210
182112008-02-01 Kenichi Handa <handa@m17n.org>
18212
18213 * keymap.c (store_in_keymap): Pay attention to the case that idx
18214 is a cons specifying a character range.
18215
182162008-02-01 Kenichi Handa <handa@m17n.org>
18217
18218 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
18219 HANDLED_RECOMPUTE_PROPS.
18220
18221 * coding.c (Fdefine_coding_system_internal): Fix checking of
18222 ascii compatibility.
18223
182242008-02-01 Kenichi Handa <handa@m17n.org>
18225
18226 * charset.c (find_charsets_in_text): Delete unused locale variable.
18227 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
18228
18229 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
18230 Resync charset_list to Vemacs_mule_charset_list.
18231
18232 * keymap.c (store_in_keymap): Pay attention to the case that idx
18233 is a cons specifying a character range.
18234
182352008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 * composite.c (update_compositions): Bind inhibit-read-only, etc
18238 to t before calling remove-list-of-text-properties.
18239
18240 * print.c (print_object): Always print ASCII chars as is.
18241
182422008-02-01 Kenichi Handa <handa@m17n.org>
18243
18244 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
18245
18246 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
18247 is a char table.
18248
182492008-02-01 Kenichi Handa <handa@m17n.org>
18250
18251 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
18252
182532008-02-01 Kenichi Handa <handa@m17n.org>
18254
18255 * xfaces.c (set_lface_from_font_name): Fix for the case that
18256 FONTNAME is not fontset name.
18257
182582008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * fns.c (base64_encode_1): Fix previous change.
18261
182622008-02-01 Kenichi Handa <handa@m17n.org>
18263
18264 * fontset.c (set_fontset_font): New function.
18265 (Fset_fontset_font): If a font is specified for a charset, use
18266 map_charset_chars to store the font spec in a fontset.
18267
182682008-02-01 Kenichi Handa <handa@m17n.org>
18269
18270 * fontset.c (fontset_face): Create a fallback fontset on demand.
18271 (make_fontset): Don't create a fallback fontset here.
18272 (free_face_fontset): Free a fallback fontset (if any) too.
18273 (n_auto_fontsets): Delete this variable.
18274 (auto_fontset_alist): New variable.
18275 (new_fontset_from_font_name): Check auto_fontset_alist.
18276 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
18277 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
18278 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
18279 Defsubr Sfontset_list_all.
18280
182812008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * fontset.c (Fnew_fontset): Check NAME more rigidly.
18288
182892008-02-01 Kenichi Handa <handa@m17n.org>
18290
18291 * editfns.c (Fgoto_char): Fix docstring.
18292
182932008-02-01 Kenichi Handa <handa@m17n.org>
18294
18295 * insdel.c (insert_from_gap): Adjust intervals correctly.
18296
182972008-02-01 Jason Rumney <jasonr@gnu.org>
18298
18299 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
18300 (pfnGetFontUnicodeRanges): New dynamically loaded function.
18301 (w32_initialize): Try to load it.
18302 (x_get_font_repertory): Use it if available.
18303 (w32_encode_char): Add shortcut for unicode output.
18304
18305 * w32fns.c (w32_load_system_font): Default charset to -1.
18306 (x_to_w32_charset): Match all fonts for unicode.
18307 (w32_to_x_charset): New parameter matching. Don't return partial
18308 or wildcard charsets.
18309 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
18310 (w32_codepage_for_font): Return CP_UNICODE for unicode.
18311 (w32_to_x_font): Match charset to real charset.
18312 (enum_font_cb2): Always list unicode versions.
18313
18314 * makefile.w32-in (temacs): Increase EMHEAP.
18315
183162008-02-01 Jason Rumney <jasonr@gnu.org>
18317
18318 * w32term.c (w32_encode_char): New charset parameter.
18319 font_info.encoding becomes encoding_type.
18320 (x_get_font_repertory): New function. Warning: stub only!
18321 (x_new_font): Return quickly if font already set.
18322 (x_new_fontset): fontsetname parameter is Lisp_Object.
18323 Use new fs_query_fontset. Try new_fontset_from_font_name.
18324 Use fontset_name for return value.
18325
18326 * w32term.h: Declare x_get_font_repertory.
18327
18328 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
18329 place of find_charset_in_text. Use encode_coding_object in place
18330 of encode_coding.
18331 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
18332 decode_coding.
18333
18334 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
18335 of x_new_fontset.
18336 (w32_load_system_font): Initialize charset as unicode.
18337 font_info.encoding becomes encoding_type.
18338 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
18339 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
18340 (syms_of_w32fns): Set get_font_repertory_func.
18341
18342 * w32console.c: Include character.h. Use terminal_encode_buffer
18343 from term.c.
18344 (write_glyphs): Use new version of encode_terminal_code. Use
18345 encode_coding_object in place of encode_coding.
18346
18347 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
18348 encoding becomes encoding_type.
18349
18350 * term.c (terminal_encode_buffer): Make externally visible.
18351
18352 * makefile.w32-in: Add character.h dependancies.
18353 (character.o, chartab.o): New targets.
18354
183552008-02-01 Kenichi Handa <handa@m17n.org>
18356
18357 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
18358 CODING_ID_EOL_TYPE.
18359
183602008-02-01 Andreas Schwab <schwab@suse.de>
18361
18362 * coding.c (produce_chars): Revert last change.
18363
183642008-02-01 Kenichi Handa <handa@m17n.org>
18365
18366 * charset.h (charset_unicode): Extern it.
18367
18368 * charset.c (string_xstring_p): Check by (C >= 0x100).
18369 (find_charsets_in_text): Change format of the arc CHARSETS. New
18370 arg MULTIBYTE.
18371 (Ffind_charset_region, Ffind_charset_string): Adjust for the
18372 change of find_charsets_in_text.
18373 (Fsplit_char): Fix doc. Never return unknown.
18374
18375 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
18376
18377 * coding.c (Fdefine_coding_system_alias): Update
18378 Vcoding_system_list.
18379
18380 * fontset.c (load_font_get_repertory): Pay attention to the case
18381 that ENCODING of a font is specified by a char-table.
18382
18383 * xterm.c (x_get_font_repertory): Handle the case that the
18384 encoding of font is other than Unicode.
18385
183862008-02-01 Kenichi Handa <handa@m17n.org>
18387
18388 * term.c (encode_terminal_code): Don't handle glyph-table. Check
18389 if a character is encodable by the terminal coding system. If
18390 not, produces proper number of `?'s. Update
18391 terminal_encode_buffer and terminal_encode_buf_size if necessary.
18392 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
18393
183942008-02-01 Kenichi Handa <handa@m17n.org>
18395
18396 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
18397 variables.
18398 (encode_terminal_code): Change argument. Encode multiple
18399 characters at once. Store the result of encoding in
18400 terminal_encode_buffer.
18401 (write_glyphs, insert_glyphs): Adjust for the change of
18402 encode_terminal_code.
18403 (term_init): Initialize terminal_encode_buffer and
18404 terminal_encode_buf_size.
18405
18406 * coding.c (consume_chars): If coding->src_object is nil, don't
18407 check annotation.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * character.c (char_string): Use ASCII_CHAR_P instead of
18412 SINGLE_BYTE_CHAR_P.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * xdisp.c (handle_auto_composed_prop): Check if the last
18417 characters of auto-composed region is newly composed with the
18418 following characters.
18419 (handle_composition_prop): Fix checking of point being inside
18420 composition.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * fns.c (concat): Don't change multibyteness of the result by
18425 concatenating an 8-bit character.
18426
18427 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
18428 multibyteness of the result when newelt is an 8-bit character.
18429
184302008-02-01 Dave Love <fx@gnu.org>
18431
18432 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
18433 EMACS_INT.
18434
18435 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
18436
18437 * xfaces.c (face_numeric_value): Declare dim size_t.
18438 (Finternal_lisp_face_equal_p): Remove unused f.
18439
18440 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
18441 (MATRIX_ROW): Remove unused vars.
18442 (draw_glyphs, x_insert_glyphs, fast_find_position)
18443 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
18444 byte/char counts.
18445
18446 * regex.c (regex_compile): Remove unused var.
18447
18448 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18449
18450 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18451 (Faccessible_keymaps, where_is_internal): Remove unused vars.
18452
18453 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
18454
18455 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
18456
18457 * fileio.c (Fwrite_region): Remove unused var.
18458
18459 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
18460 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
18461
18462 * composite.c (Fremove_list_of_text_properties): Declare.
18463
18464 * coding.c (inhibit_pre_post_conversion): Remove (unused).
18465 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
18466 (coding_inherit_eol_type): Remove unused attrs.
18467 (detect_coding): Cast arg of detect_eol.
18468
18469 * charset.c (syms_of_charset): Remove unused var p.
18470 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
18471 byte/char counts.
18472
18473 * casetab.c (set_case_table): Remove unused var.
18474
18475 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
18476 unused vars.
18477
184782008-02-01 Dave Love <fx@gnu.org>
18479
18480 * xterm.c (x_bitmap_mask): Declare.
18481
184822008-02-01 Dave Love <fx@gnu.org>
18483
18484 * xterm.c (x_term_init): Fix type error.
18485
18486 * lisp.h: Add Funibyte_char_to_multibyte.
18487
18488 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
18489 (Fset_coding_system_priority): Doc fix.
18490
18491 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
18492
18493 * indent.c (check_composition): Make start and end EMACS_INT.
18494
18495 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
18496
18497 * xdisp.c (handle_composition_prop, check_point_in_composition):
18498 Make buffer positions EMACS_INT.
18499
18500 * composite.c (find_composition, run_composition_function)
18501 (update_compositions, Ffind_composition_internal): Make buffer
18502 positions EMACS_INT.
18503
18504 * composite.h (find_composition, update_compositions): Make
18505 position args EMACS_INT.
18506
18507 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
18508
18509 * intervals.c (get_property_and_range):
18510 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
18511
18512 * unexalpha.c: Don't include varargs.h.
18513
185142008-02-01 Dave Love <fx@gnu.org>
18515
18516 * coding.h (ENCODE_UTF_8): New.
18517
18518 * Makefile.in (gtkutil.o): Depend on coding.h.
18519
18520 * coding.c (Fset_coding_system_priority): Doc fix.
18521
185222008-02-01 Kenichi Handa <handa@m17n.org>
18523
18524 * fileio.c (Finsert_file_contents): Call setup_coding_system in
18525 the case of auto saving.
18526
185272008-02-01 Andreas Schwab <schwab@suse.de>
18528
18529 * chartab.c (map_char_table, map_char_table_for_charset): Protect
18530 `range' from GC.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * coding.c (decode_coding_sjis): Check bytes more rigidly.
18535
185362008-02-01 Kenichi Handa <handa@m17n.org>
18537
18538 * fileio.c (choose_write_coding_system): Return a decided coding system.
18539 (Fwrite_region): Set Vlast_coding_system_used to the return value
18540 of choose_write_coding_system.
18541
185422008-02-01 Kenichi Handa <handa@m17n.org>
18543
18544 * charset.c (Fset_charset_priority): Pay attention to duplicated
18545 arguments.
18546
18547 * coding.c (QCcategory): New variable.
18548 (syms_of_coding): Defsym it. Set all elements of
18549 Vcoding_category_table and their symbol values.
18550 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
18551 coding-category-XXX, and coding-category-list.
18552 (Fdefine_coding_system_internal): Add category in the plist.
18553
185542008-02-01 Kenichi Handa <handa@m17n.org>
18555
18556 * callproc.c (Fcall_process): Handle carryover correctly.
18557
18558 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
18559 (raw_text_coding_system): Check NILP (coding_system).
18560 (coding_inherit_eol_type): Check NILP (coding_system) and
18561 NILP (parent).
18562 (consume_chars): Fix for the case of raw-text.
18563
18564 * process.c (read_process_output): Handle carryover correctly.
18565
185662008-02-01 Dave Love <fx@gnu.org>
18567
18568 * regex.c (re_search_2): Fix last change.
18569
185702008-02-01 Kenichi Handa <handa@m17n.org>
18571
18572 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
18573 target_multibyte. Even in a unibyte case, return a converted
18574 multibyte char.
18575 (GET_CHAR_AFTER): New macro.
18576 (PATFETCH): Translate via multibyte char.
18577 (HANDLE_UNIBYTE_RANGE): Delete this macro.
18578 (SETUP_MULTIBYTE_RANGE): New macro.
18579 (regex_compile): Setup compiled code so that its multibyteness
18580 matches that of a target. Fix the handling of "[X-YZ]" using
18581 SETUP_MULTIBYTE_RANGE.
18582 (analyse_first) <charset>: For filling fastmap for all multibyte
18583 characters, don't check by BASE_LEADING_CODE_P.
18584 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
18585 the same as RE_MULTIBYTE_P (bufp) now.
18586 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
18587 (TARGET_CHAR_AND_LENGTH): Delete this macro.
18588 (TRANSLATE_VIA_MULTIBYTE): New macro.
18589 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
18590 It is the same as RE_MULTIBYTE_P (bufp) now.
18591 <exactn>: Translate via multibyte.
18592 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
18593 translate it.
18594 <charset, charset_not>: Fetch a character by
18595 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
18596 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
18597 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
18598 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
18599 by GET_CHAR_AFTER.
18600 (bcmp_translate): Likewise.
18601
18602 * search.c (compile_pattern): Check the member target_multibyte,
18603 not the member multibyte of buf.
18604
18605 * lread.c (read1): While reading a string, set force_singlebyte
18606 and force_multibyte correctly.
18607
18608 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
18609 up of unibyte_to_multibyte_table.
18610
186112008-02-01 Kenichi Handa <handa@m17n.org>
18612
18613 * coding.c (setup_coding_system): If coding has
18614 post-read-conversion or pre-write-conversion, set
18615 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
18616 respectively.
18617 (decode_coding_gap): Run post-read-conversion if any.
18618
18619 * fileio.c (Finsert_file_contents): Even if we read into a
18620 unibyte buffer, check if we must decode the result or not.
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * coding.c (make_conversion_work_buffer): Change the work buffer
18625 name to the same one as that of Emacs 21.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * coding.h (make_conversion_work_buffer): Adjust prototype.
18630 (code_conversion_restore): Don't extern it.
18631
18632 * coding.c (detected_mask): Delete unused variable.
18633 (decode_coding_iso_2022): Pay attention to the byte sequence of
18634 CTEXT extended segment, and retain those bytes as is.
18635 (decode_coding_ccl): Delete unused variable `valids'.
18636 (setup_coding_system): Delete unused variable `category'.
18637 (consume_chars): Delete unused variable `category'. Make it work
18638 for non-multibyte case.
18639 (make_conversion_work_buffer): Change argument.
18640 (saved_coding): Delete unused variable.
18641 (code_conversion_restore): Don't check saved_coding->destination.
18642 (code_conversion_save): New function.
18643 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
18644 instead of record_unwind_protect.
18645 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
18646 (detect_coding_system): Delete unused variable `mask'.
18647 (Fdefine_coding_system_internal): Delete unused variable id.
18648
18649 * fileio.c (kill_workbuf_unwind): New function.
18650 (Finsert_file_contents): On replacing, call
18651 make_conversion_work_buffer with correct args, and call
18652 record_unwind_protect with the first arg kill_workbuf_unwind.
18653
18654 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
18655
186562008-02-01 Kenichi Handa <handa@m17n.org>
18657
18658 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
18659 (fontset_add): Fix for the case that TO is less than TO1.
18660 (Ffontset_info): Don't use fallback fontset on checking the
18661 default fontset.
18662 (dump_fontset): New function for debugging.
18663
18664 * coding.c (Fdefine_coding_system_internal): Fix for the case that
18665 coding_type is Qcharset.
18666
186672008-02-01 Kenichi Handa <handa@m17n.org>
18668
18669 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
18670 (map_char_table): Don't inherit the value from the parent on
18671 initializing VAL. Adjust for the above change.
18672
186732008-02-01 Kenichi Handa <handa@m17n.org>
18674
18675 * coding.c (Qsignature, Qendian): Delete these variables.
18676 (syms_of_coding): Don't initialize them.
18677 (CATEGORY_MASK_UTF_16_AUTO): New macro.
18678 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
18679 detect_info->found.
18680 (decode_coding_utf_16): Don't detect BOM here.
18681 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
18682 is NOT utf_16_without_bom.
18683 (setup_coding_system): For a coding system of type utf-16, check
18684 if the attribute :endian is Qbig or not (not nil or not), and set
18685 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
18686 (detect_coding): If coding type is utf-16 and BOM detection is
18687 required, detect it.
18688 (Fdefine_coding_system_internal): For a coding system of type
18689 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
18690
186912008-02-01 Kenichi Handa <handa@m17n.org>
18692
18693 * coding.c (coding_set_source): Fix for the case that the current
18694 buffer is different from coding->src_object.
18695 (decode_coding_object): Don't use the conversion work buffer if
18696 DST_OBJECT is a buffer.
18697
186982008-02-01 Dave Love <fx@gnu.org>
18699
18700 * lread.c (read_emacs_mule_char) [len==2]: Index
18701 emacs_mule_charset correctly.
18702
187032008-02-01 Dave Love <fx@gnu.org>
18704
18705 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
18706 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
18707 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
18708 treated specially.)
18709 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
18710 (detected_mask): Remove Big5 bits.
18711
187122008-02-01 Kenichi Handa <handa@m17n.org>
18713
18714 The following changes are to make the font rescaling facility
18715 compatible with Emacs 21.
18716
18717 * xfaces.c (Vface_font_rescale_alist): Rename from
18718 Vface_resizing_fonts.
18719 (struct font_name): Rename member resizing_ratio to rescale_ratio.
18720 (font_rescale_ratio): Rename from font_resizing_ratio.
18721 (split_font_name): Set font->rescale_ratio.
18722 (better_font_p): Pay attention to font->rescale_ratio.
18723 (build_scalable_font_name): Likewise. Change RESX, and RESY
18724 fields.
18725 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18726
187272008-02-01 Kenichi Handa <handa@m17n.org>
18728
18729 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
18730 (Qutf_16_le): Remove these variables.
18731 (syms_of_coding): Don't DEFSYM them.
18732 (decode_coding_utf_16): Fix handling of BOM.
18733 (encode_coding_utf_16): Fix handling of BOM.
18734
187352008-02-01 Kenichi Handa <handa@m17n.org>
18736
18737 * fileio.c (Finsert_file_contents): On replacing, before decoding
18738 the file into the work buffer, set point of the work buffer to the end.
18739
187402008-02-01 Dave Love <fx@gnu.org>
18741
18742 * coding.c (Fcheck_coding_systems_region): Fix type errors.
18743
187442008-02-01 Dave Love <fx@gnu.org>
18745
18746 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18747 and fix C types.
18748
187492008-02-01 Kenichi Handa <handa@m17n.org>
18750
18751 * xdisp.c (SKIP_GLYPHS): New macro.
18752 (set_cursor_from_row): Pay attention to string display properties.
18753
18754 * category.c (copy_category_entry): Fix for the case that RANGE
18755 is an integer.
18756
18757 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
18758
18759 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
18760
187612008-02-01 Kenichi Handa <handa@m17n.org>
18762
18763 * charset.c (Fcharset_id_internal): New function.
18764 (syms_of_charset): Defsubr it.
18765
18766 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
18767 with the last arg charset_list acquired from coding.
18768 (Fdefine_coding_system_internal): For ccl-based coding system, fix
18769 the attribute coding_attr_ccl_valids.
18770
18771 * coding.h (enum define_coding_ccl_arg_index): Set the first
18772 member coding_arg_ccl_decoder to coding_arg_max.
18773
18774 * ccl.h (ccl_driver): Adjust prototype.
18775
18776 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
18777 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 18778 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
18779 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
18780 last arg Qnil.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
18785 call encode_char.
18786
18787 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
18788
187892008-02-01 Dave Love <fx@gnu.org>
18790
18791 * composite.c (syms_of_composite): Make composition_hash_table weak.
18792
187932008-02-01 Kenichi Handa <handa@m17n.org>
18794
18795 * dispextern.h (check_face_attributes, generate_ascii_font_name)
18796 (font_name_registry): Don't extern them.
18797 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
18798
18799 * fontset.h (Qfontset): Don't extern it.
18800 (new_fontset_from_font_name): Extern it.
18801
18802 * fontset.c: Give 8 extra slots to fontset objects.
18803 (Qfontset_info): New variable.
18804 (syms_of_fontset): Defsym it.
18805 (FONTSET_FALLBACK): New macro.
18806 (fontset_face): Try also the default fontset.
18807 (make_fontset): Realize a fallback fontset from the default fontset.
18808 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
18809 using split_font_name_into_vector and build_font_name_from_vector.
18810 (Fset_fontset_font): Access the elements of font_spec by enum
18811 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
18812 name by using split_font_name_into_vector.
18813 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
18814 generate a proper font name from the fontset name. Update
18815 Vfontset_alias_alist.
18816 (n_auto_fontsets): New variable.
18817 (new_fontset_from_font_name): New function.
18818 (Ffont_info): Store the information about fonts generated from the
18819 default fontset in the first extra slot of the returned char-table.
18820
18821 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
18822 (font_name_registry): Delete function.
18823 (split_font_name_into_vector): New function.
18824 (build_font_name_from_vector): New function.
18825 (font_list): The argument REGISTRY is now a list of registry names.
18826 (choose_face_font): If we are choosing an ASCII font, and ATTRS
18827 specifies an explicit font name, return the name as is. Make a
18828 list of registy names.
18829
18830 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
18831 of x_new_fontset.
18832 (Fx_create_frame): Don't call x_new_fontset here. Just use
18833 x_list_fonts to check the existence of fonts.
18834
18835 * xterm.h (x_new_fontset): Adjust prototype.
18836
18837 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
18838 string. Use new_fontset_from_font_name to create a fontset from a
18839 font name.
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * syntax.c (Vfind_word_boundary_function_table): New name for
18844 Vnext_word_boundary_function_table.
18845 (find-word-boundary-function-table): New name for
18846 next-word-boundary-function-table.
18847
188482008-02-01 Dave Love <fx@gnu.org>
18849
18850 * Makefile.in: Fix some dependencies.
18851
18852 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
18853 set it to nil before returning.
18854
18855 * composite.c (update_compositions): Fix type error.
18856
18857 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
18858
188592008-02-01 Kenichi Handa <handa@m17n.org>
18860
18861 * xterm.c (x_new_font): Optimize for the case that the font is
18862 already set for the frame.
18863
188642008-02-01 Kenichi Handa <handa@m17n.org>
18865
18866 * chartab.c (char_table_ascii): Check if the char table contents
18867 is sub-char-table or not.
18868 (char_table_set, char_table_set_range): Fix argument to
18869 char_table_ascii.
18870
18871 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
18872 (detect_coding_utf_8, detect_coding_utf_16)
18873 (detect_coding_emacs_mule, detect_coding_iso_2022)
18874 (detect_coding_sjis, detect_coding_big5)
18875 (detect_coding_ccl, detect_coding_charset): Change argument MASK
18876 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
18877 sequence is valid in this coding system. Change callers.
18878 (MAX_ANNOTATION_LENGTH): New macro.
18879 (ADD_ANNOTATION_DATA): New macro.
18880 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
18881 ADD_ANNOTATION_DATA. Change the format of annotation data.
18882 (ADD_CHARSET_DATA): New macro.
18883 (emacs_mule_char): New argument ID. Change callers.
18884 (decode_coding_emacs_mule, decode_coding_iso_2022)
18885 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
18886 Produce charset annotation data in coding->charbuf.
18887 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
18888 to charset annotation data in coding->charbuf.
18889 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
18890 coding->common_flags if the coding system is iso-2022 based and
18891 uses designation.
18892 (produce_composition): Adjust for the new annotation data format.
18893 (produce_charset): New function.
18894 (produce_annotation): Handle charset annotation.
18895 (handle_composition_annotation, handle_charset_annotation): New
18896 functions.
18897 (consume_chars): Handle charset annotation. Utilize the above two
18898 functions.
18899 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
18900 buffer, get the deleted text as a string and set
18901 coding->src_object to that string.
18902 (detect_coding, detect_coding_system): Use the new struct
18903 coding_detection_info.
18904
18905 * coding.h (struct coding_detection_info): New structure.
18906 (struct coding_system): Adjust prototype of the member `detector'.
18907 (CODING_ANNOTATE_CHARSET_MASK): New macro.
18908
189092008-02-01 Kenichi Handa <handa@m17n.org>
18910
18911 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
18912
189132008-02-01 Dave Love <fx@gnu.org>
18914
18915 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
18916 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
18917 to new local and nullify apropos_accumulate before returning.
18918 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
18923 correctly.
e3eea1fc 18924
aac0c6e3
MR
189252008-02-01 Dave Love <fx@gnu.org>
18926
18927 * fns.c (Flanginfo): Call synchronize_system_time_locale.
18928
189292008-02-01 Kenichi Handa <handa@m17n.org>
18930
18931 The following changes are to make character composition happen
18932 automatically on displaying.
18933
18934 * Makefile.in (lisp, shortlisp): Add composite.elc.
18935
18936 * composite.h (Qauto_composed, Vauto_composition_function)
18937 (Qauto_composition_function): Extern them.
18938
18939 * composite.c (Vcomposition_function_table)
18940 (Qcomposition_function_table): Delete variables.
18941 (Qauto_composed, Vauto_composition_function)
18942 (Qauto_composition_function): New variables.
18943 (run_composition_function): Don't call
18944 compose-chars-after-function.
18945 (update_compositions): Clear `auto-composed' text property.
18946 (compose_chars_in_text): Delete this function.
18947 (syms_of_composite): Staticpro Qauto_composed and
18948 Qauto_composition_function. Declare Vauto_composition_function as
18949 a Lisp variable.
18950
18951 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
18952
18953 * xdisp.c (it_props): Add an entry for Qauto_composed.
18954 (handle_auto_composed_prop): New function.
18955
18956 * xselect.c (selection_data_to_lisp_data): Don't call
18957 compose_chars_in_text.
18958
189592008-02-01 Dave Love <fx@gnu.org>
18960
18961 * keyboard.c (read_char): Modify checking around use of
18962 Vkeyboard_translate_table.
18963
18964 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
18965 and fix C types.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
18970 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18971 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
18972 the case that the last byte is '\r' correctly.
18973 (decode_coding): Flush out the unprocessed data correctly.
18974 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
18975
189762008-02-01 Dave Love <fx@gnu.org>
18977
18978 * xterm.c (XTread_socket): Fix changes for defined keysyms.
18979 Add XK_ISO... case.
18980 (xaw_scroll_callback): Revert last change.
18981
189822008-02-01 Kenichi Handa <handa@m17n.org>
18983
18984 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
18985
189862008-02-01 Kenichi Handa <handa@m17n.org>
18987
18988 * xfaces.c (Vface_resizing_fonts): New variable.
18989 (struct font_name): New member `resizing_ratio'.
18990 (font_resizing_ratio): New function.
18991 (split_font_name): Set font->resizing_ratio.
18992 (better_font_p): Pay attention to font->resizing_ratio.
18993 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
18994 RESX, and RESY fields.
18995 (try_alternative_families): Try scalable fonts if
18996 Vscalable_fonts_allowed is not Qt.
18997 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
18998
189992008-02-01 Dave Love <fx@gnu.org>
19000
19001 * xterm.c (xaw_scroll_callback): Cast correctly.
19002
190032008-02-01 Dave Love <fx@gnu.org>
19004
19005 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
19006 (lispy_kana_keys): Comment out.
19007 (make_lispy_event) [XK_kana_A]: Comment out.
19008
19009 * xterm.c (xaw_scroll_callback): Cast call_data.
19010 (XTread_socket): Deal with ASCII keysyms.
19011 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
19012
190132008-02-01 Dave Love <fx@gnu.org>
19014
19015 * xterm.c (Vx_keysym_table): New.
19016 (syms_of_xterm): Initialize it.
19017 (XTread_socket): Use it.
19018 From head: Eliminate incorrect optimization that tried to avoid
19019 decoding the output of X*LookupString.
19020 (x_get_font_repertory): Delete charset declaration.
19021
190222008-02-01 Kenichi Handa <handa@m17n.org>
19023
19024 * coding.c (detect_coding_charset): If only ASCII bytes are found,
19025 return 0.
19026 (Fdefine_coding_system_internal): Setup
19027 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
19028
190292008-02-01 Dave Love <fx@gnu.org>
19030
19031 * coding.c (Fcheck_coding_system): Doc fix.
19032
19033 * editfns.c (Finsert_byte): Return a proper value.
19034
190352008-02-01 Kenichi Handa <handa@m17n.org>
19036
19037 * coding.c (decode_coding): Fix args to translate_chars. Pay
19038 attention to Vstandard_translation_table_for_decode.
19039 (encode_coding): Fix args to translate_chars. Pay attention to
19040 Vstandard_translation_table_for_encode.
19041
19042 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
19043 SINGLE_BYTE_CHAR_P.
19044
19045 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
19046 not by SINGLE_BYTE_CHAR_P.
19047
19048 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
19049 SINGLE_BYTE_CHAR_P.
19050
19051 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
19052 SINGLE_BYTE_CHAR_P.
19053
19054 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
19055 by SINGLE_BYTE_CHAR_P.
19056
19057 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
19058 SINGLE_BYTE_CHAR_P.
19059
190602008-02-01 Dave Love <fx@gnu.org>
19061
19062 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
19063
190642008-02-01 Dave Love <fx@gnu.org>
19065
19066 * fns.c (Flanginfo): Fix typo.
19067
19068 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
19073 (detect_coding_emacs_mule, detect_coding_iso_2022)
19074 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
19075 incomplete byte sequence. Don't update *mask when correctly detected.
19076 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
19077 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
19078 (detect_coding, detect_coding_system): Adjust for the changes above.
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * character.c (char_string): Rename from
19083 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
19084 (string_char): Rename from string_char.
19085
19086 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
19087 if C is greater than MAX_3_BYTE_CHAR.
19088 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
19089 string_char instead of string_char_with_unification.
19090
190912008-02-01 Dave Love <fx@gnu.org>
19092
19093 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
19094
190952008-02-01 Kenichi Handa <handa@m17n.org>
19096
19097 * keymap.c (push_key_description): Pay attention to force_multibyte.
19098
19099 * regex.c (re_search_2): Fix for the case of unibyte buffer.
19100
191012008-02-01 Dave Love <fx@gnu.org>
19102
19103 * charset.c (define_charset_internal): Rename `supprementary'.
19104
19105 * Makefile.in (lisp, shortlisp): Remove latin-N.
19106
191072008-02-01 Dave Love <fx@gnu.org>
19108
19109 * xfns.c (x_window, x_window): Use use_xim.
19110
19111 * xterm.c (use_xim): Initialize.
19112 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
19113 (x_term_init): Maybe set use_xim.
19114
19115 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
19116
191172008-02-01 Kenichi Handa <handa@m17n.org>
19118
19119 * search.c (search_buffer): Fix case-fold-search of multibyte
19120 characters.
19121 (boyer_moore): Rename the last argument to char_high_bits.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * xdisp.c (display_string): Fix for the case of zero width glyph.
19126
19127 * xfns.c (x_set_font): Change the error message of the case that
19128 x_new_fontset returns Qt.
19129
19130 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
19131 (Finternal_set_lisp_face_attribute): Use signal_error for the
19132 error of invalid fontset.
19133
19134 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
19135 fontset, return Qt.
19136
191372008-02-01 Dave Love <fx@gnu.org>
19138
19139 * unexelf.c (unexec): Make .got handling not SGI-specific.
19140
19141 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
19142
19143 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
19144
19145 * keyboard.c (read_key_sequence): Fix type error.
19146
19147 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
19148 type error.
19149
19150 * fontset.c (fontset_add): Return Lisp_Object.
19151
191522008-02-01 Dave Love <fx@gnu.org>
19153
19154 * charset.h (charset_ordered_list_tick): Declare extern.
19155
191562008-02-01 Kenichi Handa <handa@m17n.org>
19157
19158 The following changes (and some of 2008-02-01 changes of mine) are
19159 for handling syntax, category, and case conversion for unibyte
19160 characters by converting them to multibyte on the fly. With these
19161 changes, we don't have to setup syntax and case tables for unibyte
19162 characters in each language environment.
19163
19164 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
19165 multibyte if necessary.
19166
19167 * bytecode.c (Fbyte_code): Likewise.
19168
19169 * character.h (LEADING_CODE_LATIN_1_MIN)
19170 (LEADING_CODE_LATIN_1_MAX): New macros.
19171 (unibyte_to_multibyte_table): Extern it.
19172 (unibyte_char_to_multibyte): New macro.
19173 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
19174 (CHAR_LEADING_CODE): New macro.
19175 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
19176
19177 * character.c (unibyte_to_multibyte_table): New variable.
19178 (unibyte_char_to_multibyte): Move to character.h and define as macro.
19179 (multibyte_char_to_unibyte): If C is an eight-bit character,
19180 convert it to the corresponding byte value.
19181
19182 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
19183 not 1, signals an error. Update the elements of
19184 unibyte_to_multibyte_table.
19185 (init_charset_once): Initialize unibyte_to_multibyte_table.
19186 (syms_of_charset): Define the charset `iso-8859-1'.
19187
19188 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
19189 as is without converting it to unibyte. In a unibyte buffer,
19190 convert C to multibyte before checking the syntax.
19191
19192 * lisp.h (unibyte_char_to_multibyte): Delete extern.
19193
19194 * minibuf.c (Fminibuffer_complete_word): Use the macro
19195 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
19196
19197 * regex.h (struct re_pattern_buffer): New member target_multibyte.
19198
19199 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
19200 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
19201 that is zero, convert an eight-bit char to multibyte.
19202 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
19203 non-emacs case.
19204 (PATFETCH): Convert an eight-bit char to multibyte.
19205 (HANDLE_UNIBYTE_RANGE): New macro.
19206 (regex_compile): Setup the compiled pattern for multibyte chars
19207 even if the given regex string is unibyte. Use PATFETCH_RAW
19208 instead of PATFETCH in many places. To handle `charset'
19209 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
19210 only for ASCII chars.
19211 (analyse_first) <exactn>: Simplify because the compiled pattern
19212 is multibyte.
19213 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
19214 <charset>: Use CHAR_LEADING_CODE to get leading codes.
19215 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
19216 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
19217 multibyte always 1.
19218 (re_search_2): In emacs, set the locale variable multibyte to 1,
19219 otherwise to 0. New local variable target_multibyte. Check it
19220 to decide the multibyteness of STR1 and STR2. If
19221 target_multibyte is zero, convert unibyte chars to multibyte
19222 before translating and checking fastmap.
19223 (TARGET_CHAR_AND_LENGTH): New macro.
19224 (re_match_2_internal): In emacs, set the locale variable multibyte
19225 to 1, otherwise to 0. New local variable target_multibyte. Check
19226 it to decide the multibyteness of STR1 and STR2. Use
19227 TARGET_CHAR_AND_LENGTH to fetch a character from D.
19228 <charset, charset_not>: If multibyte is nonzero, check fastmap
19229 only for ASCII chars. Call bcmp_translate with
19230 target_multibyte, not with multibyte.
19231 <begline>: Declare the local variable C as `unsigned'.
19232 (bcmp_translate): Change the last arg name to target_multibyte.
19233
19234 * search.c (compile_pattern_1): Don't adjust the multibyteness of
19235 the regexp pattern and the matching target. Set cp->buf.multibyte
19236 to the multibyteness of the regexp pattern. Set
19237 cp->but.target_multibyte to the multibyteness of the matching target.
19238 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
19239 FETCH_STRING_CHAR_ADVANCE.
19240 (Freplace_match): Convert unibyte chars to multibyte.
19241
19242 * syntax.c (char_quoted, back_comment, scan_words)
19243 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
19244 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
19245 unibyte chars to multibyte.
19246 (skip_chars): Delete the arg syntaxp, and move the code for
19247 handling syntaxes to skip_syntaxes. Change callers.
19248 Fix the case that the multibyteness of STRING and the current
19249 buffer doesn't match.
19250 (skip_syntaxes): New function.
19251 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
19252 SINGLE_BYTE_CHAR_P.
19253
192542008-02-01 Kenichi Handa <handa@m17n.org>
19255
19256 * xfaces.c (QCfontset): New variable.
19257 (LFACE_FONTSET): New macro.
19258 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
19259 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
19260 (Finternal_set_lisp_face_attribute)
19261 (Finternal_get_lisp_face_attribute): Handle QCfontset.
19262 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
19263 check also LFACE_FONTSET_INDEX.
19264 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
19265 attrs[LFACE_FONT_INDEX].
19266 (syms_of_xfaces): Intern and staticpro QCfontset.
19267
19268 * dispextern.h (enum lface_attribute_index): New member
19269 LFACE_FONTSET_INDEX.
19270
19271 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (coding_set_destination): Fix coding->destination for
19276 the case converting a region.
19277 (encode_coding_utf_8): Encode eight-bit chars as single byte.
19278 (encode_coding_object): Fix coding->dst_pos and
19279 coding->dst_pos_byte for the case converting a region.
19280
19281 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
19282
19283 * character.h (BYTE8_STRING): New macro.
19284
19285 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
19286
192872008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
19290 characters by octal form.
19291
19292 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
19293
19294 * buffer.h (_fetch_multibyte_char_len): Delete extern.
19295 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
19296 _fetch_multibyte_char_len.
19297 (FETCH_CHAR_AS_MULTIBYTE): New macro.
19298
19299 * casetab.c (set_canon, set_identity, shuffle): Simplify.
19300
19301 * casefiddle.c (casify_object): Simplify. Handle the case that
19302 the case conversion change the byte length.
19303 (casify_region): Likewise.
19304
19305 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
19306
19307 * character.c (_fetch_multibyte_char_len): Delete this variable.
19308 (syms_of_character): Setup Vprintable_chars.
19309
19310 * editfns.c (Fchar_equal): Fix for the unibyte case.
19311 (Finsert_byte): New function.
19312 (syms_of_editfns): Defsubr it.
19313
19314 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
19315 of direct code 0x3ffff.
19316
19317 * search.c (Freplace_match): Fix for the unibyte case.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * lread.c (safe_to_load_p): Fix the logic.
19322
19323 * syntax.c (scan_words): Don't treat characters belonging to
19324 different scripts as constituting a word.
19325
19326 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19327
19328 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
19329
19330 * emacs.c (main): In the case of --unibyte, instead of aborting on
19331 finding non-empty buffer, make it unibyte.
19332
193332008-02-01 Kenichi Handa <handa@m17n.org>
19334
19335 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
19336 to create a fontset.
19337
193382008-02-01 Dave Love <fx@gnu.org>
19339
19340 * character.c (Funibyte_char_to_multibyte): Doc fix.
19341
19342 * xfns.c [HAVE_STDLIB_H]: Fix last change.
19343
193442008-02-01 Kenichi Handa <handa@m17n.org>
19345
19346 * fontset.c (fontset_add): Make the type `int'.
19347 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
19348
19349 * character.c (unibyte_char_to_multibyte)
19350 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
19351 charset_unibyte, not charset_primary.
19352
19353 * charset.h (charset_unibyte): Extern it instead of charset_primary.
19354
19355 * charset.c (charset_unibyte): Rename from charset_primary.
19356 (Funibyte_charset): Rename from Fprimary_charset.
19357 (Fset_unibyte_charset): Rename from Fset_primary_charset.
19358 (syms_of_charset): Adjust for the above changes.
19359
19360 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19361 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19362 it->multibyte_p is zero.
19363
19364 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
19365 Delete extern.
19366
193672008-02-01 Kenichi Handa <handa@m17n.org>
19368
19369 * coding.c (Fdefine_coding_system_internal): Fix category setting
19370 for a coding system of type iso-2022.
19371
193722008-02-01 Kenichi Handa <handa@m17n.org>
19373
19374 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * syntax.c (Vnext_word_boundary_function_table): New variable.
19379 (next-word-boundary-function-table): Declare it as a Lisp variable
19380 in syms_of_syntax.
19381 (scan_words): Call functions in Vnext_word_boundary_function_table
19382 if any.
19383
19384 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
19385
19386 * fontset.c (fs_load_font): If fontp->charset is not negative,
19387 return fontp without setting its members.
19388
193892008-02-01 Dave Love <fx@gnu.org>
19390
19391 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
19392
19393 * m/sparc.h (HAVE_ALLOCA): Delete.
19394
19395 * s/irix6-5.h: Don't include strings.h.
19396 (bcopy, bzero, bcmp): Don't undef.
19397
19398 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
19399
19400 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
19401 (TIOCSIGSEND): Don't test IRIX6.
19402 (bcopy, bzero, bcmp): Define conditionally.
19403
194042008-02-01 Kenichi Handa <handa@m17n.org>
19405
19406 * buffer.c (Qas, Qmake, Qto): New variables.
19407 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
19408 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
19409
19410 * callproc.c (Fcall_process): Don't call insert_1_both directly if
19411 we are inserting a process output into a multibyte buffer.
19412
19413 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
19414 multibyte_char_to_unibyte.
19415
19416 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
19417 by the primary charset, make it eight-bit char.
19418 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
19419
19420 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
19421 (charset_8_bit__control, charset_8_bit_graphic)
19422 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
19423 (define_charset_internal): New function.
19424 (syms_of_charset): Call define_charset_internal for pre-defined
19425 charsets.
19426
19427 * charset.h (charset_8_bit): Extern it.
19428
19429 * coding.c (make_conversion_work_buffer): Adjust for the change
19430 of Fset_buffer_multibyte.
19431 (encode_coding_raw_text): Increment p0 in the loop.
19432
19433 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
19434
19435 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
19436 for the change of Fset_buffer_multibyte.
19437
19438 * fns.c (Fstring_to_multibyte): New function.
19439 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
19440
194412008-02-01 Dave Love <fx@gnu.org>
19442
19443 * xfns.c (x_put_x_image): Declare args.
19444
19445 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
19446 (try_font_list): Declare an arg.
19447
19448 * xdisp.c (message2_nolog, set_message): Declare an arg.
19449
19450 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
19451
19452 * syntax.c (scan_sexps_forward): Declare an arg.
19453
19454 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
19455 Declare an arg.
19456
19457 * lisp.h (Fnew_fontset): Declare.
19458
19459 * keymap.c (push_key_description): Call CHARACTERP correctly.
19460
19461 * fontset.c (fontset_add): Declare args. Call make_number correctly.
19462 (face_for_char): Delete unused vars.
19463 (Fset_fontset_font): Doc fix. Delete unused vars.
19464
19465 * doc.c (Fsubstitute_command_keys): Delete unused vars.
19466
19467 * composite.c (update_compositions): Declare arg.
19468
19469 * cm.c (calccost, cmgoto): Declare args.
19470
19471 * charset.c: Remove `emacs' conditional. Doc fixes.
19472 (map_char_table_for_charset): Declare.
19473
19474 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
19475
19476 * ccl.c: Remove `emacs' conditional.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 The following changes are to allow specifying multiple font
19481 patterns for a character range (specified by script or charset).
19482
19483 * Makefile.in (abbrev.o): Depend on syntax.h.
19484 (xfaces.o): Depend on charset.h.
19485
19486 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
19487 SINGLE_BYTE_CHAR_P.
19488
19489 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
19490
19491 * character.h (Vchar_script_table): Extern it.
19492
19493 * character.c (Vscript_alist): Delete.
19494 (Vchar_script_table, Qchar_script_table): New variable.
19495 (syms_of_character): Declare Vchar_script_table as a lisp variable
19496 and initialize it.
19497
19498 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
19499 have property char-table-extra-slots, make no extra slot.
19500
19501 * dispextern.h (struct face): Delete member `charset'.
19502 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
19503 SINGLE_BYTE_CHAR_P.
19504 (choose_face_font, lookup_non_ascii_face, font_name_registry):
19505 Add prototypes.
19506 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
19507 (generate_ascii_font_name): Rename from generate_ascii_font.
19508
19509 * fontset.h (get_font_repertory_func): New prototype.
19510 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
19511 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
19512
19513 * fontset.c (Qprepend, Qappend): New variables.
19514 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
19515 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
19516 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
19517 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
19518 (fontset_ref_and_range, fontset_add, reorder_font_vector)
19519 (load_font_get_repertory): New functions.
19520 (fontset_set): Delete.
19521 (fontset_face): New arg FACE. Return face ID, not face.
19522 Complete re-write to handle new fontset structure. Change caller.
19523 (free_face_fontset): Use ASET istead of AREF (X) = Y.
19524 (face_for_char): Don't call lookup_face.
19525 (make_fontset_for_ascii_face): New arg FACE.
19526 (fs_load_font): New arg CHARSET_ID. Don't check
19527 Vfont_encoding_alist here.
19528 (find_font_encoding): New function.
19529 (list_fontsets): Use STRINGP, not ! NILP.
19530 (accumulate_script_ranges): New function.
19531 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
19532 re-written to handle new fontset structure.
19533 (Ffontset_font): Return a copy of element.
19534 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
19535 docstring of font-encoding-alist.
19536
19537 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
19538 (Fset_fotset_font): Fix arguments to 5.
19539
19540 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
19541
19542 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
19543 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19544 (highlight_trailing_whitespace): Adjust for the change of
19545 lookup_named_face.
19546
19547 * xfaces.c: Include charset.h.
19548 (load_face_font): Delete argument C. Change caller.
19549 (generate_ascii_font_name): Rename from generate_ascii_font.
19550 (font_name_registry): New function.
19551 (cache_face): Store ascii faces before non-ascii faces in buckets.
19552 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
19553 Lookup only ascii faces.
19554 (lookup_non_ascii_face): New function.
19555 (lookup_named_face): Delete argument C. Change caller.
19556 (lookup_derived_face): Delete argument C. Change caller.
19557 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
19558 a string, just call font_list with it.
19559 (choose_face_font): Delete arguments FACE and C. New arg
19560 FONT_SPEC. Change caller.
19561 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
19562 Change caller.
19563 (realize_non_ascii_face): New function.
19564 (realize_x_face): Call load_face_font here.
19565 (realize_tty_face): Delete argument C. Change caller.
19566 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
19567 get a face ID.
19568 (dump_realized_face): Don't print charset of FACE.
19569
19570 * xfns.c (x_set_font): Always call x_new_fontset and
19571 store_frame_parameter.
19572 (Fx_create_frame): Call x_new_fontset, not x_new_font.
19573 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
19574
19575 * xterm.h (x_get_font_repertory): Extern it.
19576
19577 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
19578 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
19579 it->multibyte_p is zero.
19580 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
19581 (x_new_fontset): If FONTSETNAME doesn't match any existing
19582 fontsets, create a new one.
19583 (x_get_font_repertory): New function.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * coding.c (Ffind_coding_systems_region_internal): Detect an
19588 ASCII only string correctly.
19589
19590 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
19591 version is 0.
19592
195932008-02-01 Kenichi Handa <handa@m17n.org>
19594
19595 * lread.c: Include "coding.h".
19596 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
19597 (load_each_byte, unread_char): New variables.
19598 (readchar_backlog): Delete.
19599 (readchar): Return a character unless load_each_byte is nonzero.
19600 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
19601 cons. If unread_char is not -1, simply return it.
19602 (unreadchar): Handle the case that readcharfun is
19603 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
19604 (read_multibyte): Delete.
19605 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
19606 (read_emacs_mule_char): New functions.
19607 (Fload): Even if the file doesn't have the extension ".elc", if
19608 safe_to_load_p returns a positive version number, assume that the
19609 file contains bytecompiled code. If the version is less than 22,
19610 load the file while decoding multibyte sequences by emacs-mule.
19611 (readevalloop): Don't use readchar_backlog.
19612 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
19613 (Fread_from_string): Pay attention to the case that STREAM is a cons.
19614 (read_escape): Delete the arg BYTEREP.
19615 (read1): Set load_each_byte to 1 temporarily while handling
19616 #@NUMBER. Don't call read_multibyte.
19617 (read_vector): Call Fread with a cons. If readcharfun is
19618 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
19619 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
19620 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
19621 and Qload_force_doc_strings.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * xdisp.c (face_before_or_after_it_pos): Call
19626 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
19627
196282008-02-01 Kenichi Handa <handa@m17n.org>
19629
19630 * character.h (TRAILING_CODE_P): New macro.
19631 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
19632 (string_char_with_unification): Fix prototype.
19633 (Vscript_alist): Extern it.
19634
19635 * character.c (Vscript_alist): New variable.
19636 (string_char_with_unification, str_as_unibyte)
19637 (string_escape_byte8): Add `const' to local variables.
19638 (syms_of_character): Declare script-alist as a Lisp variable.
19639
19640 * charset.h (Vcharset_ordered_list): Extern it.
19641 (charset_ordered_list_tick): Extern it.
19642 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
19643 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
19644 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
19645 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
19646 (Funify_charset): Adjust for the change of Funify_charset.
19647
19648 * charset.c (charset_ordered_list_tick): New variable.
19649 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
19650 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
19651 deunify intead of unify a charset.
19652 (string_xstring_p): Add `const' to local variables.
19653 (find_charsets_in_text): Add `const' to arguments and local variables.
19654 (encode_char): Adjust for the change of Funify_charset. Fix
19655 detecting of invalid code.
19656 (Fset_charset_priority): Increment charset_ordered_list_tick.
19657 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
19658 and TO_CODE.
19659
19660 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
19661 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
19662 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
19663 (decode_coding_ccl, consume_chars)
19664 (Ffind_coding_systems_region_internal)
19665 (Fcheck_coding_systems_region): Add `const' to local variables.
19666
19667 * print.c (print_object): Use octal form for printing the
19668 contents of a bool vector.
19669
196702008-02-01 Dave Love <fx@gnu.org>
19671
19672 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
19673 <version == 20>: Refuse to load.
19674
196752008-02-01 Dave Love <fx@gnu.org>
19676
19677 * fns.c: Move coding.h.
19678 (Qcodeset, Qdays, Qmonths): New.
19679 (concat): Use CHARACTERP instead of INTEGERP.
19680 (Flocale_codeset): Delete.
19681 (Flanginfo): New function.
19682 (syms_of_fns): Change accordingly.
19683
19684 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
19685
196862008-02-01 Dave Love <fx@gnu.org>
19687
19688 * casetab.c (init_casetab_once, init_casetab_once): Fix
19689 CHAR_TABLE_SET call.
19690
19691 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
19692
19693 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
19694
19695 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
19696 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
19697 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
19698
19699 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
19700
19701 * coding.c (ENCODE_DESIGNATION, decode_eol)
19702 (make_conversion_work_buffer, code_conversion_restore)
19703 (Fdefine_coding_system_internal): Convert Lisp types.
19704 (code_conversion_restore): Use EQ, not ==.
19705 (Fencode_coding_string): Fix code_convert_string call.
19706
19707 * coding.h (code_convert_region): Fix prototype.
19708
19709 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
19710
19711 * fontset.c (fontset_ref, fontset_set, fs_load_font)
19712 (Ffontset_info): Convert Lisp types.
19713
19714 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
19715
19716 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
19717
19718 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
19719
19720 * chartab.c: Include "...h", not <...h> in some cases.
19721
19722 * callproc.c (Fcall_process): Remove unused variables.
19723
197242008-02-01 Dave Love <fx@gnu.org>
19725
19726 * coding.c (Fset_coding_system_priority): Allow null arg list.
19727
197282008-02-01 Dave Love <fx@gnu.org>
19729
19730 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
19731 (Fself_insert_and_exit): Use CHARACTERP.
19732
19733 * callproc.c (Fcall_process): Remove unused vars.
19734
19735 * xterm.c (XTread_socket): Add extra dead keysyms.
19736
19737 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
19738
19739 * dispextern.h: Remove prototypes for redraw_frame,
19740 redraw_garbaged_frames.
19741
19742 * cmds.c (Fself_insert_command): Use CHARACTERP.
19743
19744 * chartab.c (make_sub_char_table): Remove unused var.
19745 (Fset_char_table_default, Fmap_char_table): Doc fix.
19746
19747 * keymap.c (access_keymap): Remove generic char code.
19748 (push_key_description): Use CHARACTERP.
19749
197502008-02-01 Dave Love <fx@gnu.org>
19751
19752 * charset.c: Doc fixes.
19753 (Funify_charset): Extra checking.
19754
197552008-02-01 Dave Love <fx@gnu.org>
19756
19757 * lread.c: Remove some unused variables.
19758 (safe_to_load_p): If safe, return the magic number version byte.
19759 (Fload): Maybe use load-with-code-conversion.
19760
197612008-02-01 Kenichi Handa <handa@m17n.org>
19762
19763 * category.c (Fmodify_category_entry): Don't modify the contents
19764 of category_set for characters out of the range. Avoid
19765 unnecessary modification.
19766
19767 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
19768 Vchar_unify_table. The default value of the table is now nil.
19769
19770 * character.c (syms_of_character): Setup Vchar_width_table for
19771 eight-bit-control and raw-byte chars.
19772
19773 * charset.h (enum define_charset_arg_index): Delete
19774 charset_arg_parents and add charset_arg_subset and
19775 charset_arg_superset.
19776 (enum charset_attr_index): Delete charset_parents and add
19777 charset_subset and charset_superset.
19778 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
19779 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
19780 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
19781 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
19782 (CHARSET_SUPERSET): New macros.
19783 (charset_work): Extern it.
19784 (ENCODE_CHAR): Use charset_work.
19785 (CHAR_CHARSET_P): Adjust for the change of encoder format.
19786 (map_charset_chars): Extern it.
19787
19788 * charset.c (load_charset_map): Set the default value of encoder
19789 and deunifier char-tables to nil.
19790 (map_charset_chars): Change argument. Change callers. Use
19791 map_char_table_for_charset instead of map_char_table.
19792 (Fmap_charset_chars): New optional args from_code and to_code.
19793 (Fdefine_charset_internal): Adjust for the change of
19794 `define-charset' (:parents -> :subset or :superset).
19795 (charset_work): New variable.
19796 (encode_char, syms_of_charset): Adjust for the change of
19797 Fdefine_charset_internal.
19798 (Ffind_charset_string): Setup the vector `charsets' correctly.
19799
19800 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
19801 the previous change.
19802 (char_table_ref_and_range): Adjust for the above change.
19803 (map_sub_char_table_for_charset): New function.
19804 (map_char_table_for_charset): New function.
19805
19806 * keymap.c (describe_vector): Handle a char-table directly here.
19807 (describe_char_table): Delete.
19808
19809 * lisp.h (map_charset_chars): Delete.
19810
198112008-02-01 Dave Love <fx@gnu.org>
19812
19813 * fns.c (count_combining): Comment out (unused).
19814 (Flocale_codeset): New.
19815 (syms_of_fns): Defsubr it.
19816
19817 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
19818 (size_t): Remove.
19819
198202008-02-01 Dave Love <fx@gnu.org>
19821
19822 * Makefile.in (chartab.o): Depend on charset.h.
19823
198242008-02-01 Kenichi Handa <handa@m17n.org>
19825
19826 * character.c (syms_of_character): Set the default value of
19827 Vprintable_chars to Qnil.
19828
198292008-02-01 Dave Love <fx@gnu.org>
19830
19831 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
19832
198332008-02-01 Kenichi Handa <handa@m17n.org>
19834
19835 * charset.c (load_charset_map): Handle the case that from < to
19836 correctly.
19837
19838 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
19839 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
19840 Pay attention to raw-8-bit chars.
19841
198422008-02-01 Kenichi Handa <handa@m17n.org>
19843
19844 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
19845 It is not bytecompiled now.
19846
19847 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
19848 (charset_jisx0208): New variables.
19849 (Fdefine_charset_internal): Setup them if appropriate.
19850 (init_charset_once): Initialize them to -1.
19851
19852 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
19853 (charset_jisx0208): Extern them.
19854
19855 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
19856 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
19857 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
19858 (setup_iso_safe_charsets): Fix arguments to Fassq.
19859 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
19860 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
19861 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
19862 (encode_coding_iso_2022): Change the 1st arg to
19863 ENCODE_ISO_CHARACTER to a variable.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * charset.h (enum define_charset_arg_index): New enums
19868 charset_arg_min_code and charset_arg_max_code.
19869 (struct charset): New member char_index_offset.
19870
19871 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
19872 Take charset->char_index_offset into account.
19873 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
19874 args[charset_arg_max_code]. Setup charset.char_index_offset.
19875 (syms_of_charset): Fix args to Fdefine_charset_internal.
19876
198772008-02-01 Dave Love <fx@gnu.org>
19878
19879 * coding.c (decode_coding_utf_8): Reject overlong sequences.
19880
198812008-02-01 Dave Love <fx@gnu.org>
19882
19883 * coding.c: Doc fixes.
19884 (Fcoding_system_aliases): Fix return value.
19885 (Qmac): Remove (duplicated) definition.
19886
198872008-02-01 Dave Love <fx@gnu.org>
19888
362654a6
JB
19889 * charset.c (Fcharset_priority_list, Fset_charset_priority):
19890 New functions.
aac0c6e3
MR
19891
19892 * character.c (Fstring): Doc fix.
19893
19894 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
19895
362654a6 19896 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
19897 (font-encoding-alist): Doc fix.
19898
198992008-02-01 Dave Love <fx@gnu.org>
19900
19901 * term.c (costs_set): Declare static, non-initialized for pcc.
19902 (encode_terminal_code): Remove unused var.
19903
19904 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
19905 for K&R.
19906
19907 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
19908
19909 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
19910 (suffixes): Move out of make_subsidiaries for K&R.
19911
19912 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
19913
19914 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
19915
199162008-02-01 Dave Love <fx@gnu.org>
19917
19918 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
19919
19920 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
19921
199222008-02-01 Yong Lu <lyongu@asia-infonet.com>
19923
19924 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
19925
19926 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
19927
199282008-02-01 Kenichi Handa <handa@m17n.org>
19929
19930 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
19931 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
19934
19935 * coding.c (decode_coding_charset): Adjust for the change of
19936 Fdefine_coding_system_internal.
19937 (Fdefine_coding_system_internal): For a coding system of
19938 `charset' type, store a list of charset IDs in
19939 `charset_attr_charset_valids' element of coding attributes.
19940
199412008-02-01 Kenichi Handa <handa@m17n.org>
19942
19943 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
19944 (emacs_mule_char): New arg src. Delete arg `composition'. Change
19945 caller. Handle 2-byte and 3-byte charsets correctly.
19946 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
19947 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
19948 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
19949 (DECODE_EMACS_MULE_21_COMPOSITION): Call
19950 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
19951 sequence.
19952 (decode_coding_emacs_mule): Handle composition correctly. Rewind
19953 `src' and `consumed_chars' correctly before calling emacs_mule_char.
19954 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
19955 and alt&rule composition.
19956 (decode_coding_iso_2022): Handle composition correctly.
19957 (init_coding_once): Setup emacs_mule_bytes for private charsets.
19958
19959 * charset.c (Fdefine_charset_internal): Fix bug for the case of
19960 re-defining a charset. If the charset has :emacs-mule-id, setup
19961 emacs_mule_bytes.
19962 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
19963
199642008-02-01 Kenichi Handa <handa@m17n.org>
19965
19966 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
19967 (encode_coding_big5, encode_coding_charset): If coding requires safe
19968 encoding, produce a character specified by
19969 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
19970
199712008-02-01 Dave Love <fx@gnu.org>
19972
19973 * xterm.c (XSetIMValues): Declare.
19974
19975 * process.c: Conditionally include sys/wait.h, pty.h.
19976
19977 * print.c (print_object): Fix print format for 64-bit systems.
19978
19979 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
19980
19981 * buffer.c (emacs_strerror): Declare.
19982
19983 * fontset.c (Fclear_face_cache): Declare.
19984 (accumulate_font_info): Comment-out (unused).
19985 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
19986 variables.
19987
19988 * character.h (string_escape_byte8): Declare.
19989
19990 * charset.c (load_charset_map, load_charset_map_from_file): Remove
19991 unused vars.
19992 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
19993 (Fmap_charset_chars): Doc fix.
19994
19995 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
19996 (Fset_coding_system_priority, Fset_coding_system_priority)
19997 (Fdefine_coding_system_internal): Doc fix.
19998
199992008-02-01 Dave Love <fx@gnu.org>
20000
20001 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
20002
200032008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * character.c (string_escape_byte8): Make multibyte string with
20006 correct size.
20007
20008 * charset.c (Fmake_char): Delete unnecessary code.
20009
200102008-02-01 Kenichi Handa <handa@m17n.org>
20011
20012 * xfns.c (x_encode_text): Allocate coding.destination here, and
20013 call encode_coding_object with dst_object Qnil.
20014
20015 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
20016 multibyte form correctly.
20017
20018 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
20019 against Vfont_encoding_alist.
20020
20021 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
20022 handling of charset list.
20023 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
20024 (decode_coding_object): Move point to coding->dst_pos before
20025 calling post-read-conversion function.
20026 (encode_coding_object): Give correct arguments to
20027 pre-write-conversion. Ignore the return value of
20028 pre-write-conversion function. Pay attention to the case that
20029 pre-write-conversion changes the current buffer. If dst_object is
20030 Qt, even if coding->src_bytes is zero, allocate at least one byte
20031 to coding->destination.
20032
20033 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
20034
20035 * charset.c (Fmake_char): Make it more backward compatible.
20036 (Fmap_charset_chars): Fix docstring.
20037
200382008-02-01 Dave Love <fx@gnu.org>
20039
20040 * coding.c: Doc fixes.
20041 (Fdefine_coding_system_alias): Use names, not symbols, in
20042 coding-system-alist.
20043
200442008-02-01 Kenichi Handa <handa@m17n.org>
20045
20046 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
20047 of calling free_realized_face.
20048
200492008-02-01 Yong Lu <lyongu@asia-infonet.com>
20050
20051 * charset.c (read_hex): Don't treat SPC as a comment starter.
20052 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
20053 (Fdecode_char): Fix typo.
20054
200552008-02-01 Kenichi Handa <handa@m17n.org>
20056
20057 * charset.h (struct charset): New member `code_space_mask'.
20058
20059 * coding.c (coding_set_source): Delete the local variable beg_byte.
20060 (encode_coding_charset, Fdefine_coding_system_internal):
20061 Delete the local variable charset.
20062 (Fdefine_coding_system_internal): Setup
20063 attrs[coding_attr_charset_valids] correctly.
20064
20065 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
20066 member to check if CODE is valid or not.
20067 (Fdefine_charset_internal): Initialize `code_space_mask' member.
20068 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
20069 is within the range of charset->min_code and carset->max_code.
20070
200712008-02-01 Dave Love <fx@gnu.org>
20072
20073 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
20074
20075 * dispextern.h (generate_ascii_font): Fix return type.
20076
20077 * xfaces.c (generate_ascii_font): Fix arg declaration.
20078
20079 * coding.c (coding_inherit_eol_type)
20080 (Fset_terminal_coding_system_internal)
20081 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
20082
200832008-02-01 Kenichi Handa <handa@m17n.org>
20084
20085 * coding.c (decode_coding_charset, encode_coding_charset): Handle
20086 multiple charsets correctly.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * search.c (boyer_moore): Fix handling of multibyte character
20091 translation.
20092
20093 * xdisp.c (display_mode_element): When the variable `elt' is
20094 changed, update `this' and `lisp_string'.
20095
200962008-02-01 Kenichi Handa <handa@m17n.org>
20097
20098 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
20099
20100 * callproc.c (Fcall_process): Be sure to give the current buffer
20101 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
20102
20103 * charset.c (struct charset_map_entries): New struct.
20104 (load_charset_map): Rename from parse_charset_map. New args
20105 entries and n_entries. Change caller.
20106 (load_charset_map_from_file): Rename from load_charset_map.
20107 Change caller. New arg control_flag. Call load_charset_map at
20108 the tail.
20109 (load_charset_map_from_vector): New function.
20110 (Fdefine_charset_internal): Setup charset.compact_codes_p.
20111 (encode_char): If the charset is compact, change a character index
20112 to a code point.
20113
20114 * coding.c (coding_alloc_by_making_gap): Check the case that the
20115 source and destination are the same correctly.
20116 (decode_coding_raw_text): Set coding->consumed_char and
20117 coding->consumed to 0.
20118 (produce_chars): If coding->chars_at_source is nonzero, update
20119 coding->consumed_char and coding->consumed before calling
20120 alloc_destination.
20121 (Fdefine_coding_system_alias): Register ALIAS in
20122 Vcoding_system_alist.
20123 (syms_of_coding): Define `no-conversion' coding system at the tail.
20124
20125 * fileio.c (Finsert_file_contents): Set coding_system instead of
20126 val. If the current buffer is multibyte, always call
20127 decode_coding_gap.
20128
20129 * xfaces.c (try_font_list): Give higher priority to fontset's
20130 family than face's family.
20131
201322008-02-01 Kenichi Handa <handa@m17n.org>
20133
20134 * callproc.c (Fcall_process): Be sure to give the current buffer
20135 to decode_coding_c_string.
20136
20137 * xfaces.c (try_font_list): Give a family specified in a fontset
20138 higher priority than a family specified in a face.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
20143 Fix arguments to insert_from_buffer.
20144
20145 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
20146
201472008-02-01 Kenichi Handa <handa@m17n.org>
20148
20149 * coding.c (produce_chars): Set the variable `multibytep' correctly.
20150 (decode_coding_gap): Set coding->dst_multibyte correctly.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
20155 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
20156 (encode_coding_utf_16): Substitute coding->default_char for
20157 non-Unicode characters.
20158 (decode_coding): Don't call record_insert here.
20159 (setup_coding_system): Initialize `surrogate' of
20160 coding->spec.utf_16 to 0.
20161 (EMIT_ONE_BYTE): Fix for multibyte case.
20162
20163 * insdel.c (insert_from_gap): Call record_insert.
20164
201652008-02-01 Kenichi Handa <handa@m17n.org>
20166
20167 * casefiddle.c (casify_region): Fix multibyte case.
20168
20169 * character.c (c_string_width): Add return type `int'.
20170 (char_string_with_unification): Delete arg ADVANCED.
20171
20172 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
20173 (CHAR_STRING): Adjust for the change of char_string_with_unification.
20174 (CHAR_STRING_ADVANCE): Make it do-while statement.
20175
20176 * chartab.c (sub_char_table_set_range): Optimize for the case
20177 DEPTH == 3. Add workaround code for a GCC optimization bug.
20178
20179 * charset.c (parse_charset_map): Remove an unused variable.
20180
20181 * coding.c: Delete unused variables.
20182
20183 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
20184 earlier. If inserted is zero and the coding system doesn't
20185 require flushing, don't call decode_coding_gap.
20186
20187 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
20188
201892008-02-01 Kenichi Handa <handa@m17n.org>
20190
20191 The following changes are for using Unicode as an internal
20192 character model, and use UTF-8 format for buffer/string
20193 representation.
20194
20195 * .gdbinit (xchartable): Adjust for the change of char table structure.
20196 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
20197
20198 * Makefile.in (obj): Add character.o and chartab.o.
20199 (lisp, shortlisp): Remove utf-8.elc.
20200 (*.o): For many files, change dependency on charset.h to
20201 character.h, and add dependency on character.h.
20202 (character.o, chartab.o): New targets.
20203
20204 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
20205 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
20206 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
20207 of "charset.h".
20208
20209 * dired.c, filelock.c: Include "character.h".
20210
20211 * alloc.c: Include "character.h" instead of "charset.h".
20212 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
20213 (syms_of_alloc): Remove defsubr for Smake_char_table.
20214
20215 * buffer.c: Include "character.h" instead of "charset.h", don't
20216 include "coding.h".
20217 (Fset_buffer_multibyte): Adjust for UTF-8.
20218
20219 * buffer.h: EXFUN Fbuffer_live_p.
20220
20221 * callproc.c: Include "character.h" instead of "charset.h".
20222 (Fcall_process): Big change for the new code-conversion APIs.
20223
20224 * casetab.c: Include "character.h" instead of "charset.h".
20225 (set_canon, set_identity, shuffle): Adjust for the new
20226 map_char_table spec.
20227 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
20228 accessing the char table structure.
20229
20230 * chartab.c: New file that implements char table.
20231
20232 * category.c: Include "character.h".
20233 (copy_category_entry): New function.
20234 (copy_category_table): Call map_char_table and copy_category_entry.
20235 (Fmake_category_table): Initialize all top-level slots.
20236 (char_category_set): New function.
20237 (modify_lower_category_set): Delete.
20238 (Fmodify_category_entry): Call char_table_ref_and_range.
20239
20240 * category.h (CATEGORY_SET): Just call char_category_set.
20241
20242 * ccl.c: Include "character.h".
20243 (Qccl, Qcclp): New variables.
20244 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
20245 it's less than 256.
20246 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
20247 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
20248 and DST type.
20249 (ccl_driver): Change types of argument, adjust code accordingly.
20250 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
20251 ccl_driver.
20252 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
20253
20254 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
20255 New members src_multibyte, dst_multibyte, consumed, and produced.
20256 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
20257 (CODING_SPEC_CCL_PROGRAM): New macro.
20258 (ccl_driver): Update prototype.
20259 (Qccl, Qcclp, Fccl_program_p): Extern them.
20260 (CHECK_CCL_PROGRAM): New macro.
20261
20262 * character.c, character.h, chartab.c: New files.
20263
20264 * charset.c: Mostly re-written. Move character and multibyte sequence
20265 handling codes to character.c.
20266
20267 * charset.h: Mostly re-written. Move character and multibyte sequence
20268 handling codes to character.h.
20269
20270 * coding.c, coding.h: Mostly re-written.
20271
20272 * composite.c: Include "character.h" instead of "charset.h".
20273 (CHAR_WIDTH): Move to character.h.
20274 (HASH_KEY, HASH_VALUE): Delete.
20275
20276 * composite.h (enum composition_method): Change order of enumeration
20277 symbols.
20278
20279 * data.c: Include "character.h" instead of "charset.h".
20280 (Faref): Call CHAR_TABLE_REF for a char table.
20281 (Faset): Call CHAR_TABLE_SET for a char table.
20282
20283 * dispextern.h (free_realized_face, check_face_attribytes)
20284 (generate_ascii_font): Extern them.
20285 (free_realized_multibyte_face): Delete extern.
20286
20287 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
20288 table structure.
20289
20290 * editfns.c: Include "character.h" instead of "charset.h".
20291 (Fchar_to_string): Always call CHAR_STRING.
20292
20293 * emacs.c (main): Call init_charset_once, init_charset,
20294 syms_of_chartab, and syms_of_character.
20295
20296 * fileio.c: Include "character.h" instead of "charset.h".
20297 (Finsert_file_contents): Big change for the new code-conversion API.
20298 (choose_write_coding_system, Fwrite_region): Likewise.
20299 (build_annotations_2): Delete.
20300 (e_write): Big change for the new code-conversion API.
20301
20302 * fns.c: Include "character.h" instead of "charset.h".
20303 (copy_sub_char_table): Move to chartab.c.
20304 (Fcopy_sequence): Call copy_char_table for a char table.
20305 (concat): Delete codes calling count_multibyte.
20306 (string_char_to_byte, string_byte_to_char): Adjust for the new
20307 multibyte form.
20308 (internal_equal): Adjust for the change of char table structure.
20309 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
20310 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
20311 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
20312 (char_table_translate, optimize_sub_char_table)
20313 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
20314 chartab.c.
20315 (char_table_ref_and_index): Delete.
20316 (HASH_KEY, HASH_VALUE): Move to lisp.h.
20317 (Fmd5): Call preferred_coding_system instead of accessing
20318 Vcoding_category_list. Adjust for the new code-conversion API.
20319 (syms_of_fns): Move defsubr for char table related functions to
20320 chartab.c.
20321
20322 * fontset.c: Mostly re-written.
20323
20324 * fontset.h (struct font_info): Change type of the member encoding_type.
20325 (enum FONT_SPEC_INDEX): New enum.
20326 (fontset_font_pattern, fs_load_font): Update prototype.
20327 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
20328
20329 * indent.c: Include "character.h" instead of "charset.h".
20330 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
20331
20332 * insdel.c: Include "character.h" instead of "charset.h".
20333 (copy_text): Don't refer to Vnonascii_translation_table.
20334 (insert_from_gap): New function.
20335
20336 * keyboard.c: Include "character.h" instead of "charset.h".
20337 (command_loop_1): Never call direct_output_forward_char before
20338 a non-ASCII character.
20339 (read_char): If Vkeyboard_translate_table is a char table, always
20340 translate a character.
20341
20342 * keymap.c: Include "character.h".
20343 (store_in_keymap): Handle the case that IDX is a cons.
20344 (Fdefine_key): Handle the case that KEY is a cons and the car part
20345 is also a cons (range).
20346 (push_key_description): Adjust for the new character code.
20347 (describe_vector): Call describe_char_table for a char table.
20348 (describe_char_table): New function.
20349
20350 * keymap.h (describe_char_table): Extern it.
20351
20352 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
20353 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
20354 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
20355 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
20356 Delete.
20357 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
20358 structure.
20359 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
20360 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
20361 (CHARTAB_SIZE_BITS_3): New macros.
20362 (chartab_size): Extern it.
20363 (struct Lisp_Char_Table): Re-design.
20364 (struct Lisp_Sub_Char_Table): New structure.
20365 (HASH_KEY, HASH_VALUE): Move from fns.c.
20366 (CHARACTERBITS): Define as 22.
20367 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
20368 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
20369 (GC_SUB_CHAR_TABLE_P): New macro.
20370 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
20371 (code_convert_string_norecord): Deleted extern.
20372 (init_character_once, syms_of_character, init_charset)
20373 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
20374
20375 * lread.c: Include "character.h".
20376 (read_multibyte): New arg NBYTES.
20377 (read_escape): Change the meaning of returned *BYTEREP.
20378 (to_multibyte): Delete.
20379 (read1): Adjust the handling of char table and string.
20380
20381 * print.c: Include "character.h" instead of "charset.h".
20382 (print_string): Convert 8-bit raw bytes to octal form by
20383 string_escape_byte8.
20384 (print_object): Adjust for the new multibyte form. Print 8-bit
20385 raw bytes always in octal form. Handle sub char table correctly.
20386
20387 * process.c: Include "character.h" instead of "charset.h".
20388 (read_process_output, send_process): Adjust for the new
20389 code-conversion API.
20390
20391 * puresize.h (BASE_PURESIZE): Increase.
20392
20393 * regex.c: Include "character.h" instead of "charset.h".
20394 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
20395 (regex_compile): Accept a range whose starting and ending
20396 character have different leading bytes.
20397 (analyse_first): Adjust for the above change.
20398
20399 * search.c: Include "character.h" instead of "charset.h".
20400 (search_buffer, boyer_moore): Adjust for the new multibyte form.
20401 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
20402
20403 * syntax.c: Include "character.h" instead of "charset.h".
20404 (syntax_parent_lookup): Delete.
20405 (Fmodify_syntax_entry): Accept a cons as CHAR.
20406 (skip_chars): Adjust for the new multibyte form.
20407 (init_syntax_once): Call char_table_set_range instead of directly
20408 accessing the structure of a char table.
20409
20410 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
20411 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
20412 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
20413 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
20414
20415 * term.c: Include "buffer.h" and "character.h".
20416 (encode_terminal_code, write_glyphs): Adjust for the new
20417 code-conversion API.
20418 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
20419
20420 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
20421
20422 * xdisp.c: Include "character.h".
20423 (get_next_display_element): Adjust for the new multibyte form.
20424 (disp_char_vector): Adjust for the new char table structure.
20425 (decode_mode_spec_coding): Adjust for the new structure of
20426 coding system.
20427 (decode_mode_spec): Adjust for the new code-conversion API.
20428
20429 * xfaces.c: Include "character.h" instead of "charset.h".
20430 (load_face_font): Adjust for the change of choose_face_font and
20431 FS_LOAD_FONT.
20432 (generate_ascii_font): New function.
20433 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
20434 (set_font_frame_param): Adjust for the change of choose_face_font.
20435 (free_realized_face): Make it public.
20436 (free_realized_faces_for_fontset): Rename from
20437 free_realized_multibyte_face. Free also faces realized for ASCII.
20438 (choose_face_font): Change arguments. Adjust for the change of
20439 fontset_font_pattern and FS_LOAD_FONT.
20440
20441 * xfns.c: Include "character.h".
20442 (x_encode_text): Adjust for the new code-conversion API.
20443
20444 * xselect.c: Don't include "charset.h".
20445 (selection_data_to_lisp_data): Adjust for the new code conversion API.
20446
20447 * xterm.c: Include "character.h".
20448 (x_encode_char): New argument CHARSET. Change caller.
20449 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
20450 Call ENCODE_CHAR instead of SPLIT_CHAR.
20451 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
20452 CHAR_WIDTH instead of CHARSET_WIDTH.
20453 (XTread_socket): Adjust for the new code-conversion API.
20454 (x_new_font): Adjust for the change of FS_LOAD_FONT.
20455 (x_load_font): Adjust for the change of struct font.
20456
204572008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * xfaces.c (face_at_buffer_position): Remove unused vars.
20460
204612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20462
20463 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
20464 Fix overflow checking.
20465
204662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20467
20468 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
20469 Cancel previous change.
20470
204712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20472
20473 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
20474 ccl->eight_bit_control. Fix check for buffer overflow.
20475 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
20476 (ccl_driver): Initialize extra_bytes to 0.
20477
204782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
20479
20480 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
20481 return it ORed with ctrl_modifier.
20482
204832008-01-29 Miles Bader <miles@gnu.org>
20484
20485 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
20486
204872008-01-28 Jason Rumney <jasonr@gnu.org>
20488
20489 * w32.c (stat): Don't double check for networked drive.
20490
204912008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
20492
20493 * window.c (run_window_configuration_change_hook): New function.
20494 Code extracted from set_window_buffer. Set the selected frame.
20495 (set_window_buffer): Use it.
20496 * window.h (run_window_configuration_change_hook): Declare.
20497 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
20498
20499 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
20500
205012008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
20502
20503 * Makefile.in: Remove references to unused macros.
20504
205052008-01-26 Eli Zaretskii <eliz@gnu.org>
20506
20507 * w32.c (g_b_init_get_sid_sub_authority)
20508 (g_b_init_get_sid_sub_authority_count): New static variables.
20509 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
20510 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
20511 (init_user_info): Use them to retrieve uid and gid.
20512 Use 500/513, the Windows defaults, as Administrator's uid/gid.
20513 (fstat): Use pw_uid and pw_gid from the_passwd structure for
20514 st_uid and st_gid of the file.
20515
205162008-01-26 Jason Rumney <jasonr@gnu.org>
20517
20518 * w32.c (logon_network_drive): New function.
20519 (stat): Use it.
20520
205212008-01-26 Chong Yidong <cyd@stupidchicken.com>
20522
20523 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
20524 invisible text covered with an ellipsis.
20525
205262008-01-25 Richard Stallman <rms@gnu.org>
20527
20528 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
20529 jump back to beginning. Move some other initializations after that.
20530 (Qwindow_text_change_functions, Vwindow_text_change_functions):
20531 New variables.
20532 (syms_of_xdisp): Init them.
20533
20534 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
20535
20536 * buffer.c (reset_buffer_local_variables):
20537 Implement `permanent-local-hook'.
20538 (Qpermanent_local_hook): New variable.
20539 (syms_of_buffer): Init and staticpro it.
20540
205412008-01-25 Michael Albinus <michael.albinus@gmx.de>
20542
20543 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
20544
205452008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
20546
20547 * fns.c (Fclrhash): Return TABLE.
20548
205492008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20550
20551 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
20552 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
20553 is set even without positional changes.
20554 (x_scroll_bar_clear): Set bar->redraw_needed_p.
20555
20556 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
20557
205582008-01-23 Jason Rumney <jasonr@gnu.org>
20559
20560 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
20561
20562 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
20563 the unicode range available in MULE by locale-coding-system.
20564 Improve dbcs lead byte detection. Set event timestamp and modifiers
20565 earlier.
20566
205672008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20568
20569 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
20570 [MAC_OSX] (init_mac_osx_environment): Initialize it.
20571 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
20572 when used on child processes.
20573
205742008-01-21 Michael Albinus <michael.albinus@gmx.de>
20575
20576 * dbusbind.c (Fdbus_method_return_internal): Rename from
20577 Fdbus_method_return.
20578 (Fdbus_unregister_object): Move to dbus.el.
20579 (Fdbus_call_method, Fdbus_method_return_internal)
20580 (Fdbus_send_signal): Improve debug messages.
20581
205822008-01-20 Martin Rudalics <rudalics@gmx.at>
20583
20584 * undo.c (undo_inhibit_record_point): New variable.
20585 (syms_of_undo): Initialize it.
20586 (record_point): Don't record point when undo_inhibit_record_point
20587 is set.
20588
205892008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
20590
20591 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
20592
20593 * xdisp.c (Qauto_hscroll_mode): New var.
20594 (syms_of_xdisp): Initialize it.
20595 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
20596 window's buffer.
20597 (hscroll_windows): Don't check automatic_hscrolling_p here.
20598
20599 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
20600 vscroll if we're setting window-buffer to the value it already has.
20601
206022008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
20603
20604 * m/intel386.h: Remove references to XENIX.
20605
206062008-01-17 Andreas Schwab <schwab@suse.de>
20607
20608 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
20609 instead of HAVE_X86_64_LIB64_DIR.
20610 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
20611
206122008-01-17 Glenn Morris <rgm@gnu.org>
20613
20614 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
20615 to HAVE_X86_64_LIB64_DIR.
20616
206172008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
20618
20619 * s/irix3-3.h:
20620 * s/irix4-0.h:
20621 * s/386-ix.h:
20622 * s/domain.h:
20623 * s/hpux9-x11r4.h:
20624 * s/hpux9shxr4.h: Remove files for systems no longer supported.
20625
20626 * sysdep.c: Remove code containing references to symbols defined
20627 by unsupported systems.
20628
206292008-01-16 Glenn Morris <rgm@gnu.org>
20630
20631 * coding.c (select-safe-coding-system-function): Doc fix.
20632
206332008-01-15 Glenn Morris <rgm@gnu.org>
20634
20635 * config.in: Revert 2008-01-13 change: this is a generated file.
20636
206372008-01-13 Tom Tromey <tromey@redhat.com>
20638
20639 * lisp.h: Fix typo.
20640
206412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20642
20643 * m/sequent-ptx.h:
20644 * m/sequent.h:
20645 * s/ptx.h:
20646 * s/ptx4-2.h:
20647 * s/ptx4.h: Remove files for systems no longer supported.
20648
20649 * callproc.c (Fcall_process): Fix previous change.
20650
206512008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
20652
20653 * unexsunos4.c: Remove file, system not supported anymore.
20654
20655 * m/mips.h:
20656 * m/intel386.h:
20657 * callproc.c:
20658 * config.in:
20659 * ecrt0.c:
20660 * emacs.c:
20661 * fileio.c:
20662 * frame.c:
20663 * getpagesize.h:
20664 * keyboard.c:
20665 * lread.c:
20666 * process.c:
20667 * puresize.h:
20668 * sysdep.c:
20669 * systty.h:
20670 * syswait.h:
20671 * unexec.c:
20672 * xdisp.c:
20673 * alloc.c: Remove code containing references to symbols defined by
20674 unsupported systems.
20675
206762008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
20677
20678 * coding.c (detect_coding_mask): Fix previous change.
20679
206802008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
20681
20682 * coding.c (detect_coding_iso2022): New arg
20683 latin_extra_code_state. Allow Latin extra codes only
20684 when *latin_extra_code_state is nonzero.
20685 (detect_coding_mask): If there is a NULL byte, detect the encoding
20686 as UTF-16 or binary. If Latin extra codes exist, detect the
20687 encoding as ISO-2022 only when there's no other proper encoding is
20688 found.
20689
206902008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20691
20692 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
20693 #ifdef MAC_OS.
20694
206952008-01-08 Richard Stallman <rms@gnu.org>
20696
20697 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
20698
206992008-01-06 Nick Roberts <nickrob@snap.net.nz>
20700
20701 * keyboard.c (parse_menu_item): Don't enclose key bindings on
20702 menu bar in parentheses.
20703
207042008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
20705
20706 * m/7300.h:
20707 * m/acorn.h:
20708 * m/alliant-2800.h:
20709 * m/alliant.h:
20710 * m/alliant1.h:
20711 * m/alliant4.h:
20712 * m/altos.h:
20713 * m/amdahl.h:
20714 * m/apollo.h:
20715 * m/att3b.h:
20716 * m/aviion-intel.h:
20717 * m/aviion.h:
20718 * m/celerity.h:
20719 * m/clipper.h:
20720 * m/cnvrgnt.h:
20721 * m/convex.h:
20722 * m/cydra5.h:
20723 * m/delta88k.h:
20724 * m/dpx2.h:
20725 * m/dual.h:
20726 * m/elxsi.h:
20727 * m/f301.h:
20728 * m/gould-np1.h:
20729 * m/gould.h:
20730 * m/i860.h:
20731 * m/ibmps2-aix.h:
20732 * m/ibmrt-aix.h:
20733 * m/ibmrt.h:
20734 * m/irist.h:
20735 * m/is386.h:
20736 * m/isi-ov.h:
20737 * m/mega68.h:
20738 * m/mg1.h:
20739 * m/news-r6.h:
20740 * m/news-risc.h:
20741 * m/news.h:
20742 * m/nh3000.h:
20743 * m/nh4000.h:
20744 * m/ns16000.h:
20745 * m/ns32000.h:
20746 * m/nu.h:
20747 * m/orion.h:
20748 * m/orion105.h:
20749 * m/paragon.h:
20750 * m/pfa50.h:
20751 * m/plexus.h:
20752 * m/pyramid.h:
20753 * m/pyrmips.h:
20754 * m/sh3el.h:
20755 * m/sps7.h:
20756 * m/sr2k.h:
20757 * m/stride.h:
20758 * m/sun1.h:
20759 * m/sun2.h:
20760 * m/sun3-68881.h:
20761 * m/sun3-fpa.h:
20762 * m/sun3-soft.h:
20763 * m/sun3.h:
20764 * m/sun386.h:
20765 * m/symmetry.h:
20766 * m/tad68k.h:
20767 * m/tahoe.h:
20768 * m/targon31.h:
20769 * m/tek4300.h:
20770 * m/tekxd88.h:
20771 * m/tower32.h:
20772 * m/tower32v3.h:
20773 * m/ustation.h:
20774 * m/wicat.h:
20775 * m/xps100.h:
20776 * s/cxux.h:
20777 * s/cxux7.h:
20778 * s/dgux.h:
20779 * s/dgux4.h:
20780 * s/dgux5-4-3.h:
20781 * s/dgux5-4r2.h:
20782 * s/esix.h:
20783 * s/esix5r4.h:
20784 * s/hiuxmpp.h:
20785 * s/hiuxwe2.h:
20786 * s/iris3-5.h:
20787 * s/iris3-6.h:
20788 * s/isc2-2.h:
20789 * s/isc3-0.h:
20790 * s/isc4-0.h:
20791 * s/isc4-1.h:
20792 * s/newsos5.h:
20793 * s/newsos6.h:
20794 * s/osf1.h:
20795 * s/osf5-0.h:
20796 * s/riscix1-1.h:
20797 * s/riscix12.h:
20798 * s/sco4.h:
20799 * s/sco5.h:
20800 * s/sunos4-0.h:
20801 * s/sunos4-1.h:
20802 * s/sunos413.h:
20803 * s/sunos4shr.h:
20804 * s/umax.h:
20805 * s/unipl5-2.h:
20806 * s/xenix.h:
20807 * cxux-crt0.s:
20808 * unexapollo.c:
20809 * unexconvex.c:
20810 * unexenix.c:
20811 * unexsni.c: Remove files for systems no longer supported.
20812
20813 * m/intel386.h: Remove references to unsupported systems.
20814
20815 * w32.c (get_emacs_configuration): Remove reference to i860.
20816
20817 * sysdep.c: Remove dead code.
20818
208192008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
20820
20821 * s/rtu.h:
20822 * m/masscomp.h: Remove files. Platform is obsolete.
20823
208242008-01-04 Michael Albinus <michael.albinus@gmx.de>
20825
20826 * dbusbind.c (Fdbus_method_return): New function.
20827 (xd_read_message): Add the serial number to the event.
20828 (Fdbus_register_method): Activate the function.
20829
208302008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
20831
20832 * keyboard.c (read_key_sequence): Fix typo.
20833
208342008-01-03 Michael Albinus <michael.albinus@gmx.de>
20835
20836 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
20837 (xd_signature, xd_append_arg): Handle element type detection for
20838 empty arrays.
20839 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
20840 SDATA () calls; this must be solved more general.
20841 (Fdbus_register_signal): Use SBYTES instead of strlen.
20842
208432008-01-03 Magnus Henoch <magnus@zemdatav>
20844
20845 * dbusbind.c (xd_append_arg): Use unsigned char instead of
20846 unsigned int for byte values (necessary for big-endian platform).
20847 (Fdbus_call_method): Handle the case of no returned arguments.
20848
208492007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
20850
20851 * dbusbind.c (xd_read_message): Use non-static input_event struct.
20852
208532007-12-31 Magnus Henoch <mange@freemail.hu>
20854
20855 * dbusbind.c (xd_signature): Signature of variant is just "v".
20856
208572007-12-30 Michael Albinus <michael.albinus@gmx.de>
20858
20859 * dbusbind.c: Fix several errors and compiler warnings.
20860 Reported by Tom Tromey <tromey@redhat.com>.
20861 (XD_ERROR, XD_DEBUG_MESSAGE)
20862 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
20863 (xd_append_arg): Part for basic D-Bus types rewritten.
20864 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
20865 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
20866 appropriate.
20867 (xd_read_message): Return Qnil. Don't signal an error; it is not
20868 useful during event reading.
20869 (Fdbus_register_signal): Signal an error if the check for
20870 FUNCTIONP fails.
20871 (Fdbus_register_method): New function. The implementation is not
20872 complete, the call of the function signals an error therefore.
20873 (Fdbus_unregister_object): New function, renamed from
20874 Fdbus_unregister_signal. The initial check signals an error, if
20875 the object is not well formed.
20876
208772007-12-30 Richard Stallman <rms@gnu.org>
20878
20879 * textprop.c (get_char_property_and_overlay):
20880 Signal error if POSITION is out of range in a buffer.
20881
208822007-12-29 Martin Rudalics <rudalics@gmx.at>
20883
20884 * w32fns.c (Fx_create_frame): Make copy of frame parameters
20885 because the original parameters are in pure storage now.
20886
208872007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20888
20889 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
20890
208912007-12-22 Eli Zaretskii <eliz@gnu.org>
20892
20893 * callint.c (syms_of_callint) <command-history>: Add reference to
20894 history-length in the doc string.
20895
208962007-12-17 Jason Rumney <jasonr@gnu.org>
20897
20898 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
20899 before passing as wParam.
20900
209012007-12-22 Michael Albinus <michael.albinus@gmx.de>
20902
20903 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
20904 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
20905 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
20906 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
20907 as number.
20908 (Fdbus_call_method): Fix docstring.
20909
209102007-12-21 Michael Albinus <michael.albinus@gmx.de>
20911
20912 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
20913 New macros.
20914 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
20915 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
20916 Simplify.
20917 (xd_signature): New function.
20918 (xd_append_arg): Compute also signatures. Major rewrite.
20919 (xd_retrieve_arg): Make debug messages friendly.
20920 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
20921 Check for signatures of arguments.
20922
209232007-12-19 Michael Albinus <michael.albinus@gmx.de>
20924
20925 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
20926 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
20927 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
20928 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
20929 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
20930 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
20931 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
20932 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
20933 (xd_retrieve_value): Remove. Functionality included in ...
20934 (xd_append_arg): New function.
20935 (Fdbus_call_method, Fdbus_send_signal): Apply it.
20936
209372007-12-16 Michael Albinus <michael.albinus@gmx.de>
20938
20939 * dbusbind.c (top): Include <stdio.h>.
20940 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
20941 dbus_message_new_method_call and dbus_message_new_signal.
20942 (Fdbus_register_signal): Rename unique_name to uname.
20943 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
20944 non-existing unique name. Fix typos in matching rule. Return an
20945 object which is useful in Fdbus_unregister_signal.
20946 (Fdbus_unregister_signal): Reimplementation, in order to remove
20947 only the corresponding entry.
20948 (Vdbus_registered_functions_table): Change the order of entries.
20949 Apply these changes in xd_read_message and Fdbus_register_signal.
20950
209512007-12-16 Andreas Schwab <schwab@suse.de>
20952
20953 * fileio.c (Finsert_file_contents): Fix overflow check to not
20954 depend on undefined integer overflow.
20955
209562007-12-14 Jason Rumney <jasonr@gnu.org>
20957
20958 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
20959 for characters above 127.
20960
209612007-12-13 Jason Rumney <jasonr@gnu.org>
20962
20963 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
20964 before dereferencing array.
20965 (lookup_vk_code): Remove zero comparison.
20966
209672007-12-14 Michael Albinus <michael.albinus@gmx.de>
20968
20969 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
20970 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
20971 Use `unsigned int' instead of `uint'.
20972 (xd_read_message, Fdbus_register_signal): Split expressions into
20973 multiple lines before operators "&&" and "||", according to the
20974 GNU Coding Standards.
20975
209762007-12-14 Eli Zaretskii <eliz@gnu.org>
20977
20978 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
20979
209802007-12-12 Juri Linkov <juri@jurta.org>
20981
20982 * buffer.c (Frename_buffer): In interactive spec replace
20983 `read-buffer' with `read-string' that uses `buffer-name-history'
20984 as history, and the current buffer's name as default.
20985
209862007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
20987
20988 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
20989 manipulating the backtrace manually.
20990 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
20991 (struct backtrace, backtrace_list): Remove.
20992 (command_loop_1): Remove dead var `no_direct'.
20993
20994 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
20995 preserve non-built-in buffer-local variables.
20996 (Fkill_all_local_variables): Don't re-create&re-set permanent
20997 buffer-local variables.
20998
209992007-12-09 Juri Linkov <juri@jurta.org>
21000
21001 * buffer.c (Frename_buffer): Change interactive spec from "s" to
21002 Lisp code that uses `read-buffer' with current buffer as default.
21003
210042007-12-08 Michael Albinus <michael.albinus@gmx.de>
21005
21006 * dbusbind.c (xd_read_message): Generate an event for every
21007 registered handler. There might be several handlers registered
21008 for the same signal.
21009 (Fdbus_register_signal): Don't overwrite a registration for the
21010 same signal. Add a new registration if handlers are different.
21011 (Vdbus_registered_functions_table): Rework doc string.
21012
210132007-12-07 Michael Albinus <michael.albinus@gmx.de>
21014
21015 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
21016 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
21017 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
21018 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
21019 Unify argument lists.
21020 (xd_read_message, Fdbus_register_signal): Reorder and extend event
21021 arguments and hash table keys. Use unique name for service.
21022 (Fdbus_unregister_signal): Remove checks.
21023 (Vdbus_registered_functions_table): Fix doc string.
21024
210252007-12-05 Magnus Henoch <mange@freemail.hu>
21026
21027 * process.c (make_process): Initialize pty_flag to 0.
21028
210292007-12-05 Jason Rumney <jasonr@gnu.org>
21030
21031 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
21032 specified XBMs.
21033
210342007-12-05 Richard Stallman <rms@gnu.org>
21035
21036 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
21037
210382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21039
21040 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
21041 New variable.
21042 (mac_try_close_socket) [MAC_OSX]: New function.
21043 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
21044 Update cfsockets_for_select. Replace invalid CFRunLoop source.
21045
21046 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
21047 Use mac_try_close_socket.
21048
210492007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21050
21051 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
21052 reloc_base.
21053 (copy_dysymtab): Compute relocation base here.
21054 (rebase_reloc_address) [__ppc64__]: New function.
21055 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
21056 changed.
21057
210582007-12-05 Jason Rumney <jasonr@gnu.org>
21059
21060 * w32proc.c (sys_spawnve): Quote args with wildcards.
21061
210622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21063
21064 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
21065 __objc_* sections.
21066 (unrelocate) [_LP64]: Set relocation base to address of data segment.
21067
210682007-12-05 Michael Albinus <michael.albinus@gmx.de>
21069
21070 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
21071 Move check for Vdbus_registered_functions_table to
21072 xd_read_queued_messages.
21073 (xd_read_queued_messages): Protect xd_read_message calls by
21074 internal_condition_case_1.
21075
210762007-12-04 Michael Albinus <michael.albinus@gmx.de>
21077
21078 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
21079 Qdbus_system_bus and Qdbus_session_bus, respectively.
21080 (Vdbus_intern_symbols): Remove.
21081 (Vdbus_registered_functions_table): New hash table.
21082 (XD_SYMBOL_INTERN_SYMBOL): Remove.
21083 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
21084 Rewrite in order to manage registered functions by hash table
21085 Vdbus_registered_functions_table.
21086
210872007-12-03 Jan Djärv <jan.h.d@swipnet.se>
21088
21089 * xterm.c: Update URL to Window Manager Specification in comment.
21090
210912007-12-02 Michael Albinus <michael.albinus@gmx.de>
21092
21093 * config.in (HAVE_DBUS): Add.
21094
21095 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
21096 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
21097 (obj): Add $(DBUS_OBJ).
21098 (LIBES): Add $(DBUS_LIBS).
21099 (dbusbind.o): New target.
21100
21101 * dbusbind.c: New file.
21102
21103 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
21104
21105 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
21106 (Qdbus_event): New Lisp symbol.
21107 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
21108 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 21109 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
21110
21111 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
21112
211132007-12-01 Richard Stallman <rms@gnu.org>
21114
21115 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
21116
211172007-11-30 Jason Rumney <jasonr@gnu.org>
21118
21119 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
21120 (w32con_reset_terminal_modes): Clear screen buffer.
21121 (w32_face_attributes): Don't use color indexes that are out of range.
21122 Only reverse the default colors.
21123
21124 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
21125 WINDOWSNT.
21126
21127 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
21128
211292007-11-29 Jason Rumney <jasonr@gnu.org>
21130
21131 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
21132 (w32_face_attributes): Use Vtty_defined_color_alist to determine
21133 if the terminal colors are initialized.
21134 (unspecified_fg, unspecified_bg): Remove unused declarations.
21135
211362007-11-29 Andreas Schwab <schwab@suse.de>
21137
21138 * keyboard.c (apply_modifiers): Fix typo.
21139
211402007-11-29 Richard Stallman <rms@gnu.org>
21141
21142 * keymap.c (Fcurrent_local_map): Doc fix.
21143
211442007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
21145
21146 * s/gnu-kfreebsd.h: New file.
21147
211482007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
21149
21150 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
21151 Don't cast redundantly.
21152
21153 * keyboard.c (KEY_TO_CHAR): New macro.
21154 (parse_modifiers, apply_modifiers): Accept integer arguments.
21155 (read_key_sequence): Use them to unify the "shift->unshift" mapping
21156 for chars and symbol keys.
21157 After doing such remapping, apply function-key-map again.
21158
211592007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
21160
21161 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
21162 compiled anymore.
21163
211642007-11-26 Andreas Schwab <schwab@suse.de>
21165
21166 * process.c (list_processes_1): Fix indentation level of the
21167 command column.
21168
211692007-11-23 Andreas Schwab <schwab@suse.de>
21170
21171 * editfns.c (Fformat): Handle %c specially since it requires the
21172 argument to be of type int.
21173
211742007-11-23 Markus Triska <markus.triska@gmx.at>
21175
21176 * emacs.c (main): Call init_editfns before init_process, since
21177 init_process sets Vprocess_connection_type depending on OS release.
21178
211792007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
21180
21181 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
21182 (find_symbol_value): Use do_symval_forwarding.
21183
21184 * data.c (set_internal): Set the value in the `cons-cell' (for
21185 Buffer_Local_values) not only for frame-local variables.
21186
211872007-11-22 Andreas Schwab <schwab@suse.de>
21188
21189 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
21190 values to sprintf.
21191 * keymap.c (Fsingle_key_description): Likewise.
21192 * print.c (print_object): Likewise.
21193
211942007-11-22 Jan Djärv <jan.h.d@swipnet.se>
21195
21196 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
21197 file for image is nil.
21198
211992007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
21200
21201 * term.c: Include stdarg.h.
21202 (fatal): Implement using varargs.
21203 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
21204
212052007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21206
21207 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
21208 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
21209 Update call to buffer_slot_type_mismatch.
21210 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
21211 (buffer_slot_type_mismatch): Update.
21212 * buffer.c (buffer_local_types): Remove.
21213 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
21214 (defvar_per_buffer): Set the type in the buffer_objfwd.
21215
212162007-11-21 Jason Rumney <jasonr@gnu.org>
21217
21218 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
21219 CreateFileMapping returns NULL on failure.
21220
212212007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
21222
21223 * search.c (Fset_match_data): Remove the `evaporate' feature.
21224 (unwind_set_match_data): Don't use the `evaporate' feature.
21225
212262007-11-21 Jason Rumney <jasonr@gnu.org>
21227
21228 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
21229
21230 * w32console.c (w32con_write_glyphs): Remove unused variables.
21231
212322007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
21233
21234 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
21235
21236 * s/darwin.h (MULTI_KBOARD): Remove.
21237
21238 * macfns.c (x_create_tip_frame, Fx_create_frame)
21239 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
21240
212412007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
21242
21243 * buffer.c (Fbuffer_local_value): Remove redundant test.
21244 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
21245 than in `current-buffer' to match the comment.
21246 Do the swap using swap_in_global_binding.
21247
21248 * data.c (store_symval_forwarding, set_internal):
21249 * eval.c (specbind): Remove dead code.
21250
21251 * coding.c (detect_coding, Fupdate_coding_systems_internal):
21252 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
21253 Since we do not want to see internal Lisp_*fwd objects here.
21254
212552007-11-18 Jan Djärv <jan.h.d@swipnet.se>
21256
21257 * sysdep.c (init_system_name): Use getaddrinfo if available.
21258
21259 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
21260 (x_scroll_bar_note_movement): start, end, with, height in struct
21261 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
21262
212632007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
21264
21265 * puresize.h (BASE_PURESIZE): Increase to 1190000.
21266
212672007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
21268
21269 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
21270 This undoes Richard's change of 14-Oct-2002.
21271
21272 * alloc.c (allocate_other_vector):
21273 * lisp.h (allocate_other_vector): Remove.
21274
21275 * window.c (struct save_window_data): Move non-lisp data to the end
21276 and make it `int' rather than Lisp_Object.
21277 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
21278 Done wrap/unwrap integer values.
21279 (Fset_window_configuration, compare_window_configurations):
21280 Update use of fields to their new types.
21281
21282 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
21283 Turn integer fields into `int'. Merge x_window_low and x_window_high.
21284 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
21285 (SET_SCROLL_BAR_X_WINDOW): Remove.
21286 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
21287 Access the new x_window field directly.
21288 * xterm.c (x_scroll_bar_create): Use a pseudovector.
21289 Don't wrap/unwrap integers into Lisp_Objects.
21290 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
21291 (x_scroll_bar_report_motion):
21292 Don't wrap/unwrap integers into Lisp_Objects.
21293 (x_term_init): Use SDATA.
21294 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
21295 (x_scroll_bar_set_handle, x_scroll_bar_remove)
21296 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
21297 (x_scroll_bar_report_motion, x_scroll_bar_clear):
21298 * xfns.c (x_set_background_color):
21299 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
21300 Access the new x_window field directly.
21301
21302 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
21303 (allocate_pseudovector): Make non-static.
21304
21305 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
21306 (allocate_pseudovector): Declare.
21307 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
21308
213092007-11-15 Andreas Schwab <schwab@suse.de>
21310
21311 * editfns.c (Fformat): Correctly format EMACS_INT values.
21312 Also take precision into account when formatting an integer.
21313
21314 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
21315
213162007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
21317
21318 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
21319 (syms_of_keyboard): Defsubr it.
21320
21321 * data.c (swap_in_global_binding): Fix longstanding bug where
21322 store_symval_forwarding was not called with the right second argument,
21323 thus causing objfwd-ing from being dropped.
21324
213252007-11-14 Juanma Barranquero <lekktu@gmail.com>
21326
21327 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
21328 (Fx_display_pixel_height, Fx_display_planes)
21329 (Fx_display_color_cells, Fx_server_max_request_size)
21330 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21331 (Fx_display_visual_class, Fx_display_save_under):
21332 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
21333 (Fx_display_pixel_height, Fx_display_planes)
21334 (Fx_display_color_cells, Fx_server_max_request_size)
21335 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
21336 (Fx_display_mm_height, Fx_display_mm_width)
21337 (Fx_display_backing_store, Fx_display_visual_class)
21338 (Fw32_select_font, Fx_display_save_under):
21339 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
21340 (Fx_display_pixel_height, Fx_display_planes)
21341 (Fx_display_color_cells, Fx_server_max_request_size)
21342 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
21343 (Fx_display_save_under): Fix typos in docstrings.
21344
213452007-11-14 Juanma Barranquero <lekktu@gmail.com>
21346
21347 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
21348 corresponding to deleted entries; they are an implementation detail.
21349 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
21350 Remove variables.
21351 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
21352 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
21353 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
21354 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
21355 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
21356 (Fw32_define_rgb_color, Fw32_load_color_file)
21357 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
21358 Fix typos in docstrings.
21359 (Fx_server_version): Reflow docstring.
21360 (Fw32_shell_execute): Doc fixes.
21361
213622007-11-13 Juanma Barranquero <lekktu@gmail.com>
21363
21364 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
21365 if w32_parse_hot_key returned nil.
21366
213672007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
21368
21369 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
21370
213712007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 21372
aac0c6e3
MR
21373 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
21374
21375 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
21376
21377 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
21378 Remove W32_SCROLL_BAR_CLICK_EVENT.
21379
21380 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
21381 Add MULTIMEDIA_KEY_EVENT.
21382
21383 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
21384 (lispy_multimedia_keys) [WINDOWSNT]: New array.
21385 (make_lispy_event) [WINDOWSNT]: Use it to translate
21386 MULTIMEDIA_KEY_EVENT.
21387
21388 * w32term.h (WM_APPCOMMAND): Define if not already.
21389 (GET_APPCOMMAND_LPARAM): Likewise.
21390
21391 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
21392 WM_APPCOMMAND.
21393
21394 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
21395 (syms_of_w32fns): Export and initialize it.
21396 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
21397
213982007-11-09 Chong Yidong <cyd@stupidchicken.com>
21399
21400 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
21401 twice.
21402
21403 * xdisp.c (handle_face_prop): Fix last change.
21404
214052007-11-09 Richard Stallman <rms@gnu.org>
21406
21407 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
21408 not just for after-strings and before-strings.
21409 Call face_for_overlay_string and pass the overlay to it.
21410 (handle_display_prop): Determine whether property came from an overlay.
21411 Pass OVERLAY arg to handle_single_display_spec.
21412 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
21413 (load_overlay_strings): Fill in it->string_overlays.
21414 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
21415
21416 * xfaces.c (face_for_overlay_string): Function renamed from
21417 face_at_buffer_position_no_overlays, and add arg OVERLAY.
21418
21419 * dispextern.h (struct it): New elt string_overlays.
21420 New elt from_overlay, also in stack.
21421 Rearrange a few elements.
21422 (face_for_overlay_string): Decl renamed from
21423 face_at_buffer_position_no_overlays, and add argument.
21424
214252007-11-09 Richard Stallman <rms@gnu.org>
21426
21427 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
21428 to get the base face for an overlay string.
21429
21430 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
21431
21432 * xfaces.c (face_at_buffer_position_no_overlays): New function.
21433
21434 * xdisp.c (handle_stop): Move some code out of loop.
21435
214362007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21437
21438 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
21439 Fix conversion from Lisp object to ATSUFontID.
21440
214412007-11-09 Jason Rumney <jasonr@gnu.org>
21442
21443 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
21444
214452007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21446
21447 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
21448 Don't assume regions are aligned to page boundary.
21449 (print_load_command_name): Add LC_UUID if defined.
21450
214512007-11-09 Richard Stallman <rms@gnu.org>
21452
21453 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
21454
214552007-11-07 Jason Rumney <jasonr@gnu.org>
21456
21457 * s/windows95.h: Remove.
21458
214592007-11-06 Jan Djärv <jan.h.d@swipnet.se>
21460
21461 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
21462 abort with a message on unhandled store_type values.
21463
214642007-11-01 Jan Djärv <jan.h.d@swipnet.se>
21465
21466 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
21467 Remove HAVE_X11R5 and HAVE_X11R4.
21468
214692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21470
21471 * Makefile.in: Remove references to sunfns.c and sunfns.o.
21472
214732007-11-01 Johan Bockgård <bojohan@gnu.org>
21474
21475 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
21476 Don't set s->stippled_p here, since it has already been set by
21477 x_set_glyph_string_gc from x_draw_glyph_string.
21478
214792007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
21480
21481 * sunfns.c: Remove file.
21482
21483 * m/sun386.h:
21484 * m/sun2.h:
21485 * m/sparc.h: Remove Sun windows code.
21486
214872007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
21488
21489 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
21490 (init_keyboard): Set current_kboard's window-system to nil.
21491 (tty_read_avail_input): Typo.
21492 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
21493
214942007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
21495
21496 * s/usg5-4.h:
21497 * s/usg5-3.h:
21498 * s/ptx.h:
21499 * m/is386.h:
21500 * m/ibmps2-aix.h:
21501 * Makefile.in: Remove all mentions of X10.
21502
21503 * dispnew.c (syms_of_display): Don't mention version 10.
21504
215052007-10-28 Juanma Barranquero <lekktu@gmail.com>
21506
21507 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
21508 ($(BLD)/abbrev.$(O)): Remove.
21509
215102007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
21511
21512 Rewrite abbrev.c in Elisp.
21513 * image.c (Qcount): Don't declare as extern.
21514 (syms_of_image): Initialize and staticpro `Qcount'.
21515 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
21516 * emacs.c (main): Don't call syms_of_abbrev.
21517 * Makefile.in (obj): Remove abbrev.o.
21518 (abbrev.o): Remove.
21519 * abbrev.c: Remove.
21520
215212007-10-26 Martin Rudalics <rudalics@gmx.at>
21522
21523 * window.c (window_min_size_2): Don't count header-line.
21524
215252007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
21526
21527 * frame.h (struct frame): Move all bit fields after the first bit
21528 field to take advantage of the available space. Group all the
21529 chars together to reduce wasted space due to padding.
21530
215312007-10-26 Juanma Barranquero <lekktu@gmail.com>
21532
21533 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
21534
21535 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
21536 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
21537 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
21538 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
21539 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
21540 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
21541 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
21542 (last_marked, mark_object_loop_halt): Make static.
21543
21544 * frame.c (syms_of_frame) <delete-frame-functions>:
21545 Fix typo in docstring.
21546
215472007-10-25 Juanma Barranquero <lekktu@gmail.com>
21548
21549 * w32.c (init_environment): Fix tiny memory leak.
21550 (w32_get_resource): Remove unused variable `ok'.
21551
215522007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
21553
21554 Make `window-system' into a keyboard-local variable (rather than
21555 frame-local as done originally by multi-tty).
21556
21557 * keyboard.h (struct kboard): Add Vwindow_system.
21558 * keyboard.c (init_kboard): Set a default for Vwindow_system.
21559 (mark_kboards): Mark Vwindow_system.
21560
21561 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
21562 (init_display): Don't set the obsolete `window-system' frame-param.
21563
21564 * xterm.c (x_term_init):
21565 * w32term.c (w32_create_terminal):
21566 * term.c (init_tty): Set Vwindow_system.
21567 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
21568 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
21569
21570 * xfns.c (Fx_create_frame, x_create_tip_frame):
21571 * w32fns.c (Fx_create_frame, x_create_tip_frame):
21572 * macfns.c (Fx_create_frame):
21573 Don't set the obsolete `window-system' frame-param.
21574
21575 * frame.h (Qwindow_system): Remove.
21576 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
21577 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
21578
215792007-10-24 Richard Stallman <rms@gnu.org>
21580
21581 * frame.c (x_figure_window_size): For fullscreen case,
21582 set USPosition | PPosition without clobbering rest of window_prompting.
21583
21584 * keyboard.c (Fcurrent_idle_time): Doc fix.
21585
21586 * print.c (Fwith_output_to_temp_buffer): Doc fix.
21587
215882007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
21589
21590 * process.c (unwind_request_sigio): Only define if __ultrix__.
21591
21592 * callproc.c (child_setup): Remove spurious *.
21593
21594 * lisp.h (Fget_text_property): Declare.
21595 (have_menus_p): Declare it here rather than in sys-dep header files.
21596 * macterm.h (have_menus_p):
21597 * msdos.h (have_menus_p):
21598 * xterm.h (have_menus_p): Remove.
21599
21600 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
21601 (Fmake_variable_frame_local): Just check the variable's const-ness
21602 rather than checking nil or t.
21603
216042007-10-22 Jason Rumney <jasonr@gnu.org>
21605
21606 * w32fns.c: Include math.h.
21607 (w32_abort): Declaration moved to nt/config.nt.
21608
21609 * s/ms-w32.h (HAVE_STDLIB_H): Define.
21610 (abort): Redefinition moved to nt/config.nt.
21611
21612 * m/windowsnt.h: Remove.
21613
216142007-10-22 Juanma Barranquero <lekktu@gmail.com>
21615
21616 * emacs.c (Fdump_emacs): Fix typo in message.
21617 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
21618 <installation-directory>: Reflow docstring.
21619
216202007-10-22 Juri Linkov <juri@jurta.org>
21621
21622 * minibuf.c: Allow minibuffer default to be a list of default values.
21623 With empty input use the first element of this list as returned default.
21624 (string_to_object)
21625 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
21626 (read_minibuf): If defalt is cons, set histstring to its car.
21627 (Fread_string): If default_value is cons, set val to its car.
21628 (Fread_buffer): If def is cons, use its car.
21629 (Fcompleting_read): If defalt is cons, set val to its car.
21630
216312007-10-21 Michael Albinus <michael.albinus@gmx.de>
21632
21633 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
21634
216352007-10-20 Juanma Barranquero <lekktu@gmail.com>
21636
21637 * doc.c (Fdocumentation): Check for advice in all cases.
21638
216392007-10-19 Chong Yidong <cyd@stupidchicken.com>
21640
21641 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
21642
216432007-10-19 Richard Stallman <rms@gnu.org>
21644
21645 * doc.c (Fdocumentation): Check for and handle an advised function.
21646
216472007-10-19 Juanma Barranquero <lekktu@gmail.com>
21648
21649 * process.c (Fset_process_filter): Doc fix.
21650
216512007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
21652
21653 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
21654 which caused key-translation-map to applied repeatedly (thus breaking
21655 double-mode).
21656
216572007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21658
21659 * xselect.c (x_own_selection, x_handle_selection_clear)
21660 (x_clear_frame_selections):
21661 * w32menu.c (list_of_panes, list_of_items):
21662 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
21663 * textprop.c (validate_plist, interval_has_all_properties)
21664 (interval_has_some_properties, interval_has_some_properties_list)
21665 (add_properties, text_property_list):
21666 * process.c (Fget_buffer_process, list_processes_1, status_notify):
21667 * minibuf.c (Fassoc_string):
21668 * macselect.c (x_own_selection, x_clear_frame_selections)
21669 (Fx_disown_selection_internal):
21670 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
21671 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
21672
216732007-10-17 Chong Yidong <cyd@stupidchicken.com>
21674
21675 * process.c: Link to libs for calling res_init() if available.
21676 (Fmake_network_process): Call res_init() before getaddrinfo or
21677 gethostbyname, if possible.
21678
216792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
21680
21681 * lread.c (read1): Set pvectype for char_tables.
21682
21683 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
21684 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
21685 Add type checks.
21686 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
21687
21688 * alloc.c (free_misc): Use XMISCTYPE.
21689 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
21690
216912007-10-17 Glenn Morris <rgm@gnu.org>
21692
21693 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
21694 (syms_of_minibuf): Add Qcompletion_ignore_case.
21695 * dired.c (Qcompletion_ignore_case): Change to external.
21696 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
21697 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
21698 (Fread_file_name): Use it rather than intern'ing.
21699
21700 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
21701 (Fread_coding_system): Ignore case of user input.
21702
217032007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21704
21705 * xdisp.c (handle_display_prop): Ignore display specs after
21706 replacing one when string text is being replaced.
21707 (handle_single_display_spec): Pretend as if characters with display
21708 property haven't been consumed only when buffer text is being replaced.
21709
217102007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
21711
21712 * xfns.c (Fx_create_frame, Fx_display_list):
21713 * window.c (window_fixed_size_p, enlarge_window)
21714 (shrink_window_lowest_first):
21715 * macterm.c (init_font_name_table):
21716 * macfns.c (Fx_create_frame, Fx_display_list):
21717 * lread.c (close_load_descs):
21718 * keyboard.c (read_char_x_menu_prompt):
21719 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
21720 * coding.c (code_convert_region_unwind): Test the type of an object
21721 rather than just !NILP before extracting data from it.
21722
21723 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
21724
21725 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
21726 (XMISCANY): New macro.
21727 (XMISCTYPE): Use it.
21728 (struct Lisp_Misc_Any): New type.
21729 (union Lisp_Misc): Use it.
21730 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
21731 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
21732 (find_symbol_value, set_internal, default_value, Fset_default)
21733 (Fmake_variable_buffer_local, Fmake_local_variable)
21734 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
21735 (Flocal_variable_if_set_p, Fvariable_binding_locus):
21736 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
21737 * alloc.c (allocate_buffer): Set the size and tag.
21738 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
21739 Use XMISCANY.
21740 (die): Follow the GNU convention for error messages.
21741 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
21742 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
21743 tag any more.
21744 (set_buffer_internal_1):
21745 * frame.c (store_frame_param):
21746 * eval.c (specbind):
21747 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
21748
21749 * doc.c (Fsnarf_documentation): Simplify.
21750
217512007-10-14 Juanma Barranquero <lekktu@gmail.com>
21752
21753 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
21754 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
21755
217562007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
21759
217602007-10-14 Juanma Barranquero <lekktu@gmail.com>
21761
21762 * eval.c (do_autoload): Don't save autoloads.
21763
21764 * data.c (Ffset): Save autoload of the function being set.
21765
217662007-10-07 John Paul Wallington <jpw@pobox.com>
21767
21768 * xfns.c (x_create_tip_frame): Set the `display-type' frame
21769 parameter before setting up faces.
21770
217712007-10-13 Eli Zaretskii <eliz@gnu.org>
21772
21773 * ccl.c (Fregister_code_conversion_map):
21774 * keyboard.c (append_tool_bar_item): Reformat last change.
21775
21776 * lisp.h (eabs): Rename from `abs'. All callers changed.
21777
217782007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
21779
21780 * buffer.c (add_overlay_mod_hooklist):
21781 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
21782 * fontset.c (make_fontset):
21783 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
21784 (append_tool_bar_item):
21785 * macmenu.c (grow_menu_items):
21786 * w32menu.c (grow_menu_items):
21787 * xmenu.c (grow_menu_items): Use larger_vector.
21788
217892007-10-13 Eli Zaretskii <eliz@gnu.org>
21790
21791 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
21792 selected frame'' on MSDOS).
21793
217942007-10-12 Martin Rudalics <rudalics@gmx.at>
21795
21796 * frame.c (Qexplicit_name): New variable.
21797 (x_report_frame_params): Report it in parameter alist.
21798 (syms_of_frame): Intern and staticpro it.
21799
218002007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
21801
21802 * macfns.c (x_create_tip_frame): Set terminal for frame.
21803
218042007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
21805
21806 * frame.c (Qenvironment): Remove.
21807 (syms_of_frame) <Qenvironment>: Don't initialize.
21808 (Fdelete_frame): Don't treat the `environment' param specially.
21809 * frame.h (Qenvironment): Don't declare.
21810 * callproc.c (set_initial_environment): Don't set unused frame param.
21811
21812 * frame.c (Fframe_with_environment): Remove.
21813 (syms_of_frame) <Sframe_with_environment>: Don't declare.
21814
21815 * lisp.h (Fframe_with_environment): Don't declare.
21816
218172007-10-10 Juanma Barranquero <lekktu@gmail.com>
21818
21819 * indent.c (indent_tabs_mode, last_known_column)
21820 (last_known_column_modified): Make static.
21821 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
21822
218232007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
21824
21825 * puresize.h (BASE_PURESIZE): Increase to 1170000.
21826
218272007-10-09 Jason Rumney <jasonr@gnu.org>
21828
21829 * w32term.c (x_set_window_size): Disable code that attempts to tell
21830 Lisp code about a size change before it actually happens.
21831
218322007-10-09 Richard Stallman <rms@gnu.org>
21833
21834 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
21835 return HANDLED_RETURN.
21836
218372007-10-08 Martin Rudalics <rudalics@gmx.at>
21838
21839 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
21840 when there's an unread command event.
21841
21842 * frame.c (focus_follows_mouse): Move here from frame.el to allow
21843 window autoselection act appropriately when leaving selected frame.
21844 (syms_of_frame): Initialize focus_follows_mouse.
21845 * frame.h (focus_follows_mouse): Extern it.
21846 * macterm.c (XTread_socket): When focus_follows_mouse is nil
21847 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
21848 * msdos.c (dos_rawgetc): Likewise.
21849 * w32term.c (w32_read_socket): Likewise.
21850 * xterm.c (handle_one_xevent): Likewise.
21851 * xdisp.c (syms_of_xdisp): In doc-string of
21852 mouse-autoselect-window mention focus-follows-mouse.
21853
218542007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21855
21856 * macterm.c (mac_load_query_font): Fix missing return value.
21857 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
21858 Add BLOCK_INPUT.
21859
218602007-10-08 Richard Stallman <rms@gnu.org>
21861
21862 * xdisp.c (get_window_cursor_type): Implement documented behavior
21863 for cursor-in-non-selected-windows = t.
21864
218652007-10-08 Jason Rumney <jasonr@gnu.org>
21866
21867 * w32.c (w32_get_resource): Always close registry keys.
21868
218692007-10-08 Jason Rumney <jasonr@gnu.org>
21870
21871 * makefile.w32-in (LIBS): Add COMCTL32.
21872
21873 * w32fns.c (globals_of_w32fns): Init common controls.
21874
218752007-10-08 Richard Stallman <rms@gnu.org>
21876
21877 * image.c (our_memory_buffer): Rename from omfib_buffer.
21878
218792007-10-08 Richard Stallman <rms@gnu.org>
21880
21881 * buffer.c (Foverlays_at): Doc fix.
21882
218832007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
21884
21885 * fns.c (Fplist_put): Preserve uneven tail data.
21886
218872007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
21888
21889 * termhooks.h (enum event_kind): Remove trailing comma.
21890
21891 * frame.h (enum): Remove trailing comma.
21892
218932007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
21894
21895 * w32proc.c (delete_child): Don't terminate threads of zombies.
21896
218972007-10-08 Martin Rudalics <rudalics@gmx.at>
21898
21899 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
21900
21901 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
21902 last-repeatable-command.
21903 (init_kboard): Initialize Vlast_repeatable_command.
21904 (command_loop_1): Set it to real_this_command unless that was
21905 bound to an input event.
21906 (mark_kboards): Mark it.
21907
219082007-10-08 Richard Stallman <rms@gnu.org>
21909
21910 * eval.c (condition-case): Doc fix.
21911
219122007-10-08 Masatake YAMATO <jet@gyve.org>
21913
21914 * xfaces.c (tty_supports_face_attributes_p): Fix code
21915 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
21916 was copied and not edited.
21917
219182007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
21919
21920 Add new `input-decode-map' keymap and use it for terminal
21921 escape sequences.
21922 * keyboard.h (struct kboard): Add Vinput_decode_map.
21923 Remove Vlocal_key_translation_map.
21924 * keyboard.c (read_key_sequence): Add support for input-decode-map.
21925 (init_kboard): Init input-decode-map.
21926 Replace local-key-translation-map back with key-translation-map.
21927 (syms_of_keyboard): Declare input-decode-map.
21928 Remove local-key-translation-map. Update docstrings.
21929 (mark_kboards): Mark Vinput_decode_map.
21930 Don't mark Vlocal_key_translation_map.
21931 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
21932 Replace local-key-translation-map back with key-translation-map.
21933 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
21934 Bind in input-decode-map rather than function-key-map.
21935
21936 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
21937 This was made redundant by the previous introduction of XSETPVECTYPE.
21938
219392007-10-09 Richard Stallman <rms@gnu.org>
21940
21941 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
21942
219432007-09-29 Richard Stallman <rms@gnu.org>
21944
21945 * eval.c (internal_condition_case_2, internal_condition_case_1)
21946 (internal_condition_case): Reenable abort if x_catching_errors ()
21947 to see if that really happens and why.
21948
219492007-10-06 Andreas Schwab <schwab@suse.de>
21950
21951 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
21952
219532007-10-04 Juanma Barranquero <lekktu@gmail.com>
21954
21955 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
21956
219572007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
21958
21959 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
21960
219612007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
21962
21963 * window.h (struct window):
21964 * window.c (struct save_window_data, struct saved_window):
21965 * termhooks.h (struct terminal):
21966 * process.h (struct Lisp_Process):
21967 * frame.h (struct frame):
21968 * buffer.h (struct buffer):
21969 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
21970 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
21971 The size field of (pseudo)vectors is now unsigned.
21972 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
21973
21974 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
21975 Turn `count' into an integer.
21976
21977 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
21978 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
21979 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
21980 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
21981 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
21982
21983 * alloc.c (allocate_pseudovector): New fun.
21984 (ALLOCATE_PSEUDOVECTOR): New macro.
21985 (allocate_window, allocate_terminal, allocate_frame)
21986 (allocate_process): Use it.
21987 (mark_vectorlike): New function.
21988 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
21989 (mark_terminals): Use it.
21990 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
21991 (Fmake_byte_code): Use XSETPVECTYPE.
21992
21993 * frame.c (Fframe_parameters): Minor simplification.
21994
21995 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
21996
21997 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
21998
21999 * buffer.c (Fget_buffer_create, init_buffer_once):
22000 * lread.c (defsubr):
22001 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
22002
22003 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
22004 defined differently in the m/*.h files.
22005 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
22006 (XSETPVECTYPE): New macro.
22007 (XSETPSEUDOVECTOR): Use it.
22008
22009 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
22010 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
22011
22012 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
22013 * lread.c (defvar_per_buffer):
22014 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
22015
22016 * window.c (candidate_window_p): Only consider as visible frames that
22017 are on the same terminal.
22018
22019 * m/ibms390x.h (MARKBIT): Remove unused macro.
22020
220212007-10-01 Juanma Barranquero <lekktu@gmail.com>
22022
22023 * lread.c (Fload): Fix typo in docstring.
22024
220252007-10-01 Michaël Cadilhac <michael@cadilhac.name>
22026
22027 * floatfns.c (Fexpt): Manually check for overflows, so that a power
22028 of a non-zero value can't yield zero.
22029
220302007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
22031
22032 * term.c (term_clear_mouse_face, term_mouse_highlight)
22033 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
22034
22035 * print.c (safe_debug_print): Use XHASH.
22036
22037 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
22038 Lisp elements such as tags.
22039 (XHASH): New macro.
22040 (EQ): Use it.
22041 (SREF, SSET, STRING_COPYIN): Use SDATA.
22042 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
22043
22044 * alloc.c (mark_terminal): Remove left-over declaration.
22045 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
22046 (allocate_vectorlike): Remove type argument. Adjust callers.
22047 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
22048 Only handle the one remaining MEM_TYPE_VECTORLIKE.
22049
22050 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
22051 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
22052 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
22053 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
22054 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
22055 Use them.
22056
22057 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
22058 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
22059 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
22060
220612007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
22062
22063 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
22064 loaded by default.
22065
220662007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
22067
22068 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
22069 on this tty.
22070 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
22071
22072 * term.c (mouse_face_window): Rename from Qmouse_face_window.
22073 Update all users.
22074 (handle_one_term_event): Use Gpm_DrawPointer.
22075 (Fgpm_mouse_start): Rename from Fterm_open_connection.
22076 Signal errors instead of returning nil. Always return nil.
22077 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
22078 Make it a noop if gpm-mouse was not activated.
22079 (syms_of_term): Update names.
22080
220812007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
22082
22083 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
22084 (init_sys_modes): Check that gpm_tty is the current tty.
22085
22086 * alloc.c (allocate_terminal): Set the vector size to only count the
22087 lisp fields. Initialize those to nil.
22088 (mark_object): Don't treat terminals specially.
22089 (mark_terminal): Remove.
22090 (mark_terminals): Use mark_object instead.
22091
22092 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
22093 the GC to the beginning.
22094
22095 * indent.h:
22096 * indent.c: Use EMACS_INT for ints coming from Elisp data.
22097
22098 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
22099
221002007-09-25 Jason Rumney <jasonr@gnu.org>
22101
22102 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
22103
22104 * w32console.c (create_w32cons_output): Remove.
22105
22106 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
22107
22108 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
22109 (reset_sys_modes): Use reset_terminal_modes_hook.
22110
221112007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
22112
22113 * eval.c (do_autoload): Don't output any message.
22114
221152007-09-24 Juri Linkov <juri@jurta.org>
22116
22117 * emacs.c (standard_args): Change priority of "--no-splash"
22118 from 40 to 3. Add "--no-desktop" with the same priority.
22119
221202007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
22121
22122 * alloc.c (gc_sweep): Check cons cell mark bits word by word
22123 and optimize the case where they are all 1.
22124
221252007-09-23 Johannes Weiner <hannes@saeurebad.de>
22126
22127 * lisp.h (abs): Define if not defined.
22128 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
22129 Don't define `abs', since it's defined in lisp.h.
22130
221312007-09-22 Eli Zaretskii <eliz@gnu.org>
22132
22133 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
22134 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
22135 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
22136 (init_tty): Use DEV_TTY instead of "/dev/tty".
22137 [WINDOWSNT]: No need to protect from NAME arg being null.
22138
221392007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
22140
22141 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
22142 up the tty state.
22143
221442007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22145
22146 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
22147 (gpm_tty): Change its type.
22148 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
22149 (gpm_tty): Change its type and initialize it.
22150 (Fterm_open_connection): Check the frame is indeed a tty.
22151 Use the new gpm_tty.
22152 (Fterm_close_connection): Use the new gpm_tty.
22153 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
22154 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
22155
221562007-09-21 Juanma Barranquero <lekktu@gmail.com>
22157
22158 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
22159 underline_color, to draw strike-through.
22160
221612007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
22162
22163 * lisp.h (allocate_terminal): Declare.
22164
22165 * window.c (candidate_window_p): Consider frames that are being placed
22166 by the user as somewhere between visible and iconified.
22167 (window_loop): Prefer windows on the current frame.
22168 (Fselect_window): Move the use of select-frame to the beginning so we
22169 can just delegate all the work (it'll call us back anyway).
22170
22171 * frame.c (Qdisplay_environment_variable):
22172 * frame.h (Qdisplay_environment_variable): Delete.
22173
22174 * .gdbinit (xbacktrace): Print the arg's address rather than the value
22175 of the first arg, since that value may be a union.
22176
22177 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
22178 parameter rather than Qdisplay_environment_variable. If all else
22179 fails, look for DISPLAY in initial-environment.
22180
221812007-09-21 Glenn Morris <rgm@gnu.org>
22182
22183 * Makefile.in (emacstool): Remove target.
22184 (lisp, shortlisp): Remove termdev.elc.
22185
221862007-09-21 Markus Triska <markus.triska@gmx.at>
22187
22188 * xterm.c (x_delete_display): Compile session management conditionally.
22189
221902007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
22191
22192 * callproc.c (getenv_internal_1): New function.
22193 (getenv_internal): Use it.
22194 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
22195
22196 * terminal.c (get_terminal): Don't accept ints to represent terminals.
22197 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
22198 (Fset_terminal_parameter): Work with dead terminals as well.
22199 (Fmodify_terminal_parameters): Remove.
22200
22201 * terminal.c (get_terminal): Handle terminals.
22202 Make sure the terminal returned is live.
22203 (create_terminal): Use allocate_terminal.
22204 (mark_terminals): Move to alloc.c.
22205 (delete_terminal): Use terminal->name as liveness status.
22206 NULL out fields after freeing their contents.
22207 Don't deallocate the object.
22208 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
22209 rather than an int.
22210 (Fterminal_live_p): Accept non-integer arguments.
22211 (Fterminal_list): Return terminal objects rather than an ints.
22212
22213 * alloc.c (enum mem_type): New member for `terminal' objects.
22214 (allocate_terminal): New function.
22215 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
22216 Handle terminals.
22217 (mark_terminal): New fun.
22218 (mark_terminals): Move from terminal.c.
22219
22220 * term.c (get_tty_terminal): Don't treat output_initial specially.
22221 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
22222 (delete_tty): Use terminal->name as liveness status.
22223
22224 * termhooks.h (struct terminal): Make it into a pseudovector.
22225 Remove `deleted' replaced by checking `name's nullness.
22226
22227 * print.c (print_object): Handle terminals.
22228
22229 * lisp.h (enum pvec_type): New `terminal' pseudovector.
22230 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
22231
22232 * frame.c (make_terminal_frame):
22233 * keyboard.c (tty_read_avail_input):
22234 * w32term.c (x_delete_terminal):
22235 * xfns.c (Fx_create_frame, x_create_tip_frame):
22236 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
22237
222382007-09-20 Glenn Morris <rgm@gnu.org>
22239
22240 * process.c (Fmake_network_process): Doc fix.
22241
222422007-09-19 Jason Rumney <jasonr@gnu.org>
22243
22244 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
22245
222462007-09-19 Michaël Cadilhac <michael@cadilhac.name>
22247
22248 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
22249 Fix a C warning regarding variable constness.
22250
22251 * xterm.c (handle_one_xevent): Fix a C warning.
22252
222532007-09-18 Jason Rumney <jasonr@gnu.org>
22254
22255 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
22256
222572007-09-17 Jan Djärv <jan.h.d@swipnet.se>
22258
22259 * gtkutil.c (gdpy_def): New variable.
22260 (xg_initialize): Initialize gdpy_def.
22261 (xg_display_close): If no other display exists, set gdpy_def to a
22262 new connection.
22263
222642007-09-16 Jan Djärv <jan.h.d@swipnet.se>
22265
22266 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
22267 when we have no file name for the icon.
22268 (xg_tool_bar_expose_callback): Remove.
22269 (xg_create_tool_bar): Don't connect expose signal to
22270 xg_tool_bar_expose_callback.
22271 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
22272
222732007-09-16 Andreas Schwab <schwab@suse.de>
22274
22275 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
22276 values instead of zapping them.
22277
222782007-09-14 Glenn Morris <rgm@gnu.org>
22279
22280 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
22281 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
22282 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
22283 scope and rename to omfib_buffer for clarity.
22284 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
22285
222862007-09-14 Kenichi Handa <handa@m17n.org>
22287
22288 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
22289
222902007-09-13 Jason Rumney <jasonr@gnu.org>
22291
22292 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
22293
22294 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
22295
22296 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
22297 (mac_term_init): Call here instead, passing rif.
22298
222992007-09-13 Glenn Morris <rgm@gnu.org>
22300
22301 * s/hpux.h: No longer define `static' as nothing.
22302
223032007-09-13 Johan Bockgård <bojohan@gnu.org>
22304
22305 * callint.c (Fcall_interactively): Remove unused var `fun'.
22306
223072007-09-12 Romain Francoise <romain@orebokech.com>
22308
22309 * window.c (prefer_window_split_horizontally, display_buffer):
22310 Revert 2007-09-08 change.
22311
223122007-09-12 Glenn Morris <rgm@gnu.org>
22313
22314 * alloca.c: Remove file.
22315 * Makefile.in (alloca): Do not undef.
22316 (allocaobj, alloca.o): Remove.
22317 (otherobj): Remove allocaobj.
22318 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
22319 * regex.c (C_ALLOCA): Remove all references and code that was only
22320 used when this was defined.
22321 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
22322 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
22323 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
22324
22325 * Makefile.in (SOURCES, unlock, relock): Delete.
22326
22327 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
22328 (menu_grab_callback): All uses changed.
22329
22330 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
22331 (x_reply_selection_request): All uses changed.
22332
223332007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22334
22335 * lread.c (load_warn_old_style_backquotes): Change message to look
22336 better when it appears in the middle of byte-compiler messages.
22337
223382007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
22339
22340 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
22341
22342 * xterm.c (x_create_terminal): Add comment.
22343
22344 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
22345
223462007-09-10 Richard Stallman <rms@gnu.org>
22347
22348 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
22349
223502007-09-10 Michaël Cadilhac <michael@cadilhac.name>
22351
22352 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
22353 (DEFUN): Document `intspec', use it instead of `prompt'.
22354
22355 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
22356
22357 * data.c (Finteractive_form): If the interactive specification starts
22358 with a `(', use it as a Lisp form.
22359
22360 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
22361 name and file modes.
22362
22363 * callint.c (Fcall_interactively): Comment fixes.
22364
223652007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
22366
22367 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
22368 and compiled functions.
22369
223702007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
22371
22372 * window.c (prefer_window_split_horizontally): New variable.
22373 (display_buffer): Consider splitting window horizontally depending
22374 on prefer_window_split_horizontally.
22375
223762007-09-08 Eli Zaretskii <eliz@gnu.org>
22377
22378 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
22379
223802007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22381
22382 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
22383
22384 * frame.c (x_set_frame_parameters): Check number is positive before
22385 using XFASTINT.
22386
22387 * window.c (freeze_window_start): Don't presume selected_window holds
22388 a window object.
22389 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
22390
223912007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
22392
22393 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
22394
223952007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
22396
22397 * window.c (Vsplit_window_preferred_function): New var.
22398 (Fdisplay_buffer): Use it.
22399 (syms_of_window): Export, and initialize it.
22400
224012007-09-06 Pixel <pixel@mandriva.com> (tiny change)
22402
22403 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
22404
224052007-09-06 Glenn Morris <rgm@gnu.org>
22406
22407 * gtkutil.c (menu_grab_callback) <cnt>:
22408 * xselect.c (x_reply_selection_request) <cnt>: Move static
22409 variable to file scope.
22410
224112007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
22412
22413 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
22414 consistent values of selected_frame and selected_window.
22415
224162007-09-04 Jason Rumney <jasonr@gnu.org>
22417
22418 * w32console.c (initialize_w32_display): Zero unused hooks.
22419
224202007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22421
22422 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
22423 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
22424
224252007-09-04 Jason Rumney <jasonr@gnu.org>
22426
22427 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
22428 in w32console.c. Set up input. Remove XXX comments that have been
22429 confirmed as correct.
22430
22431 * s/ms-w32.h (MULTI_KBOARD): Define.
22432
22433 * w32console.c (one_and_only_w32cons): Remove.
22434 (initialize_w32_display): Take terminal argument.
22435
22436 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
22437 initialize_w32_display.
22438 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
22439
22440 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
22441
22442 * keyboard.c (discard_mouse_events): Discard it.
22443 (make_lispy_event): Translate it to a lisp event.
22444 (lispy_wheel_names): Add wheel-left and right events.
22445 (syms_of_keyboard): Enlarge wheel_syms.
22446
22447 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
22448 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
22449
22450 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
22451
22452 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
22453 from WM_MOUSEHWHEEL.
22454 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
22455
22456 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
22457 terminal.
22458
22459 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
22460 keyboard for the terminal.
22461
224622007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
22463
22464 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
22465 (Vresume_tty_hook): Rename from Vresume_tty_functions.
22466 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
22467 and resume-tty-function to resume-tty-hook.
22468 (Fsuspend_tty, Fresume_tty): Use new names.
22469
224702007-09-02 Jan Djärv <jan.h.d@swipnet.se>
22471
22472 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
22473 if it starts with "n:".
22474
224752007-08-31 Jan Djärv <jan.h.d@swipnet.se>
22476
22477 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
22478
224792007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
22480
22481 * frame.h:
22482 * frame.c (Qterm_environment_variable): Remove.
22483 (syms_of_frame): Don't init and staticpro it.
22484
22485 * callproc.c (getenv_internal): Remove special case for $TERM.
22486
22487 * callproc.c (Vinitial_environment): New variable.
22488 (set_initial_environment): Initialize it.
22489 (syms_of_callproc): Declare it.
22490 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
22491 TERM under which a process runs is never related to the TERM in which
22492 Emacs is running.
22493
224942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22495
22496 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
22497 * s/darwin.h: ... do it here.
22498
224992007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
22500
22501 * lisp.h (set_initial_environment): Rename from set_global_environment.
22502
22503 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
22504 removed by mistake on the multi-tty branch.
22505
22506 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
22507 (Fmodify_frame_parameters): Return a value.
22508
22509 * image.c (png_load): Comment-out var only used in commented-out code.
22510
22511 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
22512 before passing it to mark_object.
22513
22514 * xfaces.c (internal_resolve_face_name): Return a value.
22515 (internal_resolve_face_name, resolve_face_name_error): Comment out.
22516
22517 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
22518 (x_icon): Comment-out var only used in commented-out code.
22519
225202007-08-29 Romain Francoise <romain@orebokech.com>
22521
22522 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
22523 QUIT hasn't been provided.
22524
225252007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
22526
22527 * callproc.c (child_setup, getenv_internal): Use the
22528 display-environment-variable and term-environment-variable frame params.
22529 (set_initial_environment): Initialise Vprocess_environment.
22530
22531 * config.in: Disable multi-keyboard support on a mac.
22532
22533 * frame.c (Qterm_environment_variable)
22534 (Qdisplay_environment_variable): New variables.
22535 (syms_of_frame): Intern and staticpro them.
22536 (Fmake_terminal_frame): Disable output method test.
22537
22538 * frame.h: Declare them here.
22539
22540 * macfns.c (x_set_mouse_color): Get rif from the frame.
22541 (x_set_tool_bar_lines): Don't use updating_frame.
22542 (mac_window): Add 2 new parameters for consistency with other systems.
22543 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
22544 frame parameters following what is done in X11 and w32. Don't use
22545 FRAME_MAC_DISPLAY_INFO.
22546 (Fx_open_connection, start_hourglass): Remove window-system check.
22547 (x_create_tip_frame): Get the keyboard from the terminal.
22548
22549 * macmenu.c: Reorder includes.
22550 (Fx_popup_menu): Use terminal specific mouse_position_hook.
22551
22552 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
22553 terminal parameter.
22554 (x_clear_frame): Add a frame parameter.
22555 (note_mouse_movement): Get rif from the frame.
22556 (mac_term_init): Initialize the terminal.
22557 (mac_initialize): Make static and move terminal initialization ...
22558 (mac_create_terminal): ... to this new function.
22559
22560 * macterm.h (struct mac_display_info): Add terminal.
22561 (mac_initialize): Delete declaration.
22562
22563 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
22564
22565 * sysdep.c: Comment out text after #endif.
22566
22567 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
22568 is defined. Better initialize ttys in windows. Use terminal
22569 specific mouse_position_hook.
22570
22571 * termhooks.h (union display_info): Add mac_display_info.
22572
22573 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
22574 Set the default minibuffer frame, window_system and the rest of the
22575 frame parameters following what is done in X11.
22576
22577 * w32term.c (w32_initialize): Make static.
22578
22579 * xselect.c (x_handle_selection_clear): Only access
22580 terminal->kboard when MULTI_KBOARD is defined.
22581
22582 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
22583 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
22584
225852007-08-29 Jason Rumney <jasonr@gnu.org>
22586
22587 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
22588 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
22589
22590 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
22591 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
22592
22593 * keyboard.c (restore_kboard_configuration): Only define when
22594 MULTI_KBOARD defined.
22595
22596 * makefile.w32-in: Update dependancies from Makefile.in.
22597 (OBJ1): Add terminal.$(O)
22598
22599 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
22600 Don't define function body.
22601 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
22602
22603 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
22604
22605 * w32.c (request_sigio, unrequest_sigio): Remove.
22606
22607 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
22608 (w32con_clear_frame, w32con_clear_end_of_line)
22609 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
22610 (w32con_delete_glyphs, w32con_set_terminal_window)
22611 (scroll_line, w32_sys_ring_bell): Add frame arg.
22612 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
22613 Add terminal arg.
22614 (PICK_FRAME): Remove.
22615 (w32con_write_glyphs): Use frame specific terminal coding.
22616 (one_and_only_w32cons): New global variable.
22617 (initialize_w32_display): Use it for storing hooks.
22618 (create_w32cons_output): New function.
22619
22620 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
22621 arg a frame.
22622
22623 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
22624 Set window_system.
22625 (x_set_tool_bar_lines): Don't use updating_frame.
22626 (Fx_create_frame): Set terminal and ref count.
22627 (Fx_open_connection): Remove window-system check.
22628
22629 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
22630
22631 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
22632 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
22633 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
22634 Add frame arg.
22635 (x_delete_terminal, w32_create_terminal): New functions.
22636 (w32_term_init): Create a terminal.
22637 (w32_initialize): Move terminal specific initialization to
22638 w32_create_terminal.
22639
22640 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
22641 (w32_clear_rect, w32_clear_area): Use background from frame.
22642 (w32_display_info): Add terminal.
22643 (w32_sys_ring_bell, x_delete_display): Declare here.
22644
22645 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
22646
22647 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
22648
226492007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
22650
22651 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
22652 Fix get_named_tty calls for the controlling tty.
22653
226542007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
22655
194d44e7 22656 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
22657
226582007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
22659
22660 * term.c (tty_insert_glyphs): Add missing first parameter.
22661
226622007-08-29 Károly Lőrentey <karoly@lorentey.hu>
22663
22664 * buffer.c (Fbuffer_list, Fbury_buffer):
22665 Take frame->buried_buffer_list into account.
22666
22667 * cm.c (current_tty): New variable, for cmputc().
22668 (cmputc): Use it.
22669 (cmcheckmagic): Add tty parameter, look up terminal streams there.
22670 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
22671 (cmgoto): Add tty parameter. Pass it on to calccost().
22672 Use emacs_tputs() instead of tputs().
22673
22674 * cm.h (emacs_tputs): New macro to set current_tty, and then call
22675 tputs().
22676 (current_tty): New variable, for cmputc().
22677 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
22678
22679 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
22680 (internal_condition_case, internal_condition_case_1)
22681 (internal_condition_case_2): Don't abort when x_catching_errors.
22682
22683 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
22684 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
22685 prevent crashes caused by bogus longjmps in read_char.
22686
22687 * keymap.h (Fset_keymap_parent): Add EXFUN.
22688
22689 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
22690 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22691 Remove redundant definition.
22692
22693 * macfns.c (x_set_mouse_color, x_make_gc):
22694 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22695
22696 * w32term.c (x_free_frame_resources):
22697 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22698 (w32_initialize): Use the accessor macros for terminal characteristics.
22699
22700 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
22701 Use the accessor macros for terminal characteristics.
22702 * msdos.c (internal_terminal_init): Use the accessor macros for
22703 terminal characteristics.
22704 (ScreenVisualBell, internal_terminal_init):
22705 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22706
22707 * termopts.h (no_redraw_on_reenter): Declare.
22708
22709 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
22710 (mark_terminals, mark_ttys): Declare.
22711 (Fgarbage_collect): Call them.
22712 (mark_object): Mark buried_buffer_list.
22713
22714 * prefix-args.c: Include stdlib.h for exit.
22715
22716 * syssignal.h: Add comment.
22717
22718 * indent.c: Include stdio.h.
22719
22720 * window.h (Vinitial_window_system): Declare.
22721 (Vwindow_system): Delete declaration.
22722
22723 * fontset.c (Finternal_char_font): Use FRAME_RIF.
22724
22725 * image.c (lookup_image): Don't initialize `c' until the xasserts
22726 have been run.
22727
22728 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
22729 FRAME_FOREGROUND_PIXEL.
22730
22731 * print.c (print_preprocess): Don't lose print_depth levels while
22732 iterating.
22733
22734 * widget.c (update_from_various_frame_slots):
22735 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22736
22737 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
22738 frames.
22739 (window_internal_height): Remove bogus make_number call.
22740 (init_window_once): Call make_terminal_frame with two zero parameters.
22741
22742 * fileio.c (Fread_file_name): Update comment.
22743
22744 * callint.c (Fcall_interactively):
22745 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
22746 Make sure it is correctly unwound.
22747
22748 * xsmfns.c (x_session_close): New function.
22749
22750 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
22751 Delete declarations.
22752
22753 * xterm.h: Remove declaration for x_fully_uncatch_errors.
22754 (x_output): Remove background_pixel and foreground_pixel fields.
22755 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
22756 (x_delete_device, x_session_close): Declare.
22757
22758 * lread.c: Include setjmp.h. Update declaration of `read_char'.
22759 (read_filtered_event): Call `read_char' with a local
22760 `wrong_kboard_jmpbuf'.
22761
22762 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
22763 Don't call single_kboard_state. Use FRAME_RIF.
22764
22765 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
22766 systems.
22767
22768 * lisp.h (set_process_environment): Rename to `set_global_environment'.
22769 (Fframe_with_environment, Fset_input_meta_mode)
22770 (Fset_quit_char): EXFUN.
22771 (x_create_device, tty_output, terminal, tty_display_info): Declare.
22772 (init_sys_modes, reset_sys_modes): Update prototypes.
22773 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
22774
22775 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
22776 Vlocal_key_translation_map, and Vkeyboard_translate_table.
22777 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
22778 Delete declarations.
22779 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
22780 (temporarily_switch_to_single_kboard, tty_read_avail_input):
22781 New declarations.
22782
22783 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
22784 already does that during init_display(). Call syms_of_keymap
22785 before syms_of_keyboard. Call `syms_of_terminal'.
22786 Call set_initial_environment, not set_process_environment.
22787 (shut_down_emacs): Call reset_all_sys_modes() instead of
22788 reset_sys_modes().
22789
22790 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
22791 (internal_resolve_face_name, resolve_face_name_error): New functions.
22792 (resolve_face_name): Protect against loops and errors thrown by Fget.
22793 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
22794 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
22795
22796 * scroll.c: Replace CURTTY() with local variables throughout the
22797 file (where applicable).
22798 (calculate_scrolling, calculate_direct_scrolling)
22799 (scrolling_1, scroll_cost): Use the accessor macros for terminal
22800 characteristics.
22801
22802 * keymap.c (Vfunction_key_map): Remove.
22803 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
22804 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
22805 (Vkey_translation_map): Remove.
22806 (syms_of_keymap): Remove DEFVAR for key-translation-map.
22807 (Fdescribe_buffer_bindings)
22808 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
22809 Update for terminal-local key-translation-map.
22810
22811 * Makefile.in (callproc.o): Update dependencies.
22812 (lisp, shortlisp): Add termdev.elc.
22813 (obj): Add terminal.o.
22814 (terminal.o): Add dependencies.
22815 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
22816 (data.o, fns.o): Add termhooks.h dependency.
22817 (SOME_MACHINE_LISP): Add dnd.elc.
22818 (minibuf.o): Fix typo.
22819 Update dependencies.
22820
22821 * data.c (do_symval_forwarding, store_symval_forwarding)
22822 (find_symbol_value): Use the selected frame's keyboard, not
22823 current_kboard.
22824
22825 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
22826 Vwindow_system.
22827
22828 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
22829 Fmenu_bar_open.
22830 (syms_of_xmenu): Update defsubr.
22831 (mouse_position_for_popup, Fx_popup_menu)
22832 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
22833 (set_frame_menubar, free_frame_menubar)
b97439ce 22834 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
22835 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
22836 an X frame.
22837
22838 * xselect.c (x_own_selection): Abort if not an X frame.
22839 (some_frame_on_display): Check if it is an X frame.
22840 (x_handle_selection_clear): Deal with MULTI_KBOARD.
22841
22842 * coding.c: Include frame.h and termhooks.h.
22843 (terminal_coding, keyboard_coding): Delete.
22844 (Fset_terminal_coding_system_internal)
22845 (Fset_keyboard_coding_system_internal)
22846 (Fkeyboard_coding_system)
22847 (Fterminal_coding_system): Add a terminal parameter.
22848 Get terminal_coding from the terminal.
22849 (init_coding_once): Don't call setup_coding_system here.
22850
22851 * dispextern.h (set_scroll_region, turn_off_insert)
22852 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
22853 (tty_clear_end_of_line, tty_setup_colors)
22854 (delete_tty, updating_frame)
22855 (produce_special_glyphs, produce_glyphs, write_glyphs)
22856 (insert_glyphs): Remove.
22857 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
22858 (tty_turn_off_highlight, get_tty_size): Add declaration.
22859 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
22860
22861 * frame.h (enum output_method): Add output_initial.
22862 (struct x_output): Delete.
22863 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
22864 Access foreground_pixel and background_pixel directly from the frame.
22865 (tty_display): Delete.
22866 (struct frame): Add buried_buffer_list, foreground_pixel,
22867 background_pixel and terminal. Delete kboard.
22868 (union output_data): Add tty.
22869 (FRAME_KBOARD): Get the kboard from the terminal.
22870 (FRAME_INITIAL_P): New macro.
22871 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
22872 (Qterm_environment_variable, Qdisplay_environment_variable)
22873 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
22874 New declarations.
22875
22876 * termchar.h (tty_output, tty_display_info): New structures.
22877 (tty_list): Declare.
22878 (FRAME_TTY, CURTTY): New macros.
22879 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
22880 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
22881 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
22882 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
22883
22884 * callproc.c: Include frame.h and termhooks.h, for terminal
22885 parameters.
22886 (add_env): New function.
22887 (child_setup): Use it.
22888 (child_setup, getenv_internal): Handle the new Vprocess_environment.
22889 (getenv_internal): Fix get_terminal_param call.
22890 (Fgetenv_internal, egetenv): Update doc.
22891 (syms_of_callproc): Initialize Vprocess_environment to nil.
22892 Register and initialize them. Remove obsolete defvars. Update doc
22893 strings.
22894 (child_setup): Handle Vlocal_environment_variables.
22895 (getenv_internal): Add terminal parameter.
22896 Handle Vlocal_environment_variables.
22897 (Fgetenv_internal): Add terminal parameter.
22898 (child_setup, getenv_internal, Fgetenv_internal): Store the local
22899 environment in a frame (not terminal) parameter. Update doc strings.
22900 (set_initial_environment): Rename from set_global_environment.
22901 Store Emacs environment in initial frame parameter.
22902
22903 * xdisp.c (redisplay_internal): Update references to
22904 `previous_terminal_frame'.
22905 (display_mode_line, Fformat_mode_line): Replace calls to
22906 `push_frame_kboard' with `push_kboard'.
22907 (get_glyph_string_clip_rects): Add extra parentheses and
22908 braces to prevent compiler warnings.
22909 (calc_pixel_width_or_height): Add xassert to check that the
22910 frame is alive. Don't call `lookup_image' on a termcap frame.
22911 (message2_nolog, message3_nolog, redisplay_internal)
22912 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
22913 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
22914 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
22915 (Fx_display_pixel_width, Fx_display_pixel_height)
22916 (Fx_display_planes, Fx_display_color_cells)
22917 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
22918 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
22919 (Fx_display_backing_store, Fx_display_visual_class)
22920 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
22921 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
22922
22923 * xfns.c (x_set_foreground_color x_set_background_color)
22924 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
22925 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22926 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
22927 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
22928 terminal that is being deleted.
22929 (Fx_create_frame): Use `store_frame_param' to set `window-system'
22930 frame parameter, and make sure it overrides any user-supplied setting.
22931 (Fx_close_connection, Fx_synchronize): Unify argument names with
22932 the rest of the DEFUNs.
22933
22934 * dispnew.c (Fsend_string_to_terminal): Update call to
22935 `get_tty_terminal'.
22936 (Fredraw_frame, Fsend_string_to_terminal)
22937 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
22938 FRAME_TERMCAP_P and FRAME_TTY.
22939 (window_change_signal): Don't believe width/height values that are
22940 impossibly small.
22941 (Vinitial_window_system): Rename from Vwindow_system.
22942 (termscript, Wcm, rif): Delete.
22943
22944 * termhooks.h (struct terminal): New struct containing the
22945 previously global text display hooks and new members NAME,
22946 DELETED and PARAM_ALIST.
22947 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
22948 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
22949 (FRAME_RIF): New macros.
22950 (get_terminal_param, get_device): New declarations.
22951 (termscript): Delete declaration.
22952
22953 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
22954 (XTflash, x_free_frame_resources, x_scroll_bar_create)
22955 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
22956 FRAME_FOREGROUND_PIXEL.
22957 (x_fully_uncatch_errors): Disable definition.
22958 (x_scroll_bar_expose): Fix reference to foreground pixel.
22959 (XTread_socket): Disable loop on all X displays.
22960 (x_delete_terminal): Don't set terminal->deleted and let
22961 delete_terminal delete the frames on the terminal.
22962 (x_delete_display): Doc update to reflect changes in
22963 delete_terminal.
22964 (x_display_info) <terminal>: Move member earlier in the struct.
22965 (deleting_tty): Remove old variable.
22966 (Fsuspend_tty): Call clear_tty_hooks.
22967 (Fresume_tty, init_tty): Call set_tty_hooks.
22968 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
22969 errors on X frames.
22970 (x_catch_errors_unwind): Abort if x_error_message is NULL.
22971 (handle_one_xevent): Initialize `f' to NULL.
22972 (x_delete_terminal, x_create_terminal): New functions.
22973 (XTset_terminal_modes, XTreset_terminal_modes)
22974 (XTread_socket, x_connection_closed, x_term_init)
22975 (x_term_init, x_delete_display): Add terminal parameter.
22976 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
22977 X connections.
22978
22979 * frame.c: Include termchar.h.
22980 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
22981 (Qwindow_system, Qenvironment, Qterm_environment_variable)
22982 (Qdisplay_environment_variable): New vars.
22983 (Fframep): Deal with output_initial.
22984 (Fframe-live-p): Doc fix.
22985 (Fwindow-system): New function.
22986 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
22987 (make_terminal_frame): Don't create frames on a terminal that is
22988 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
22989 (store_frame_param): Check for found_for_frame before calling XFRAME.
22990 (Fmake_terminal_frame): Handle NULL tty names correctly.
22991 (syms_of_frame): Enhance doc string of `default-frame-alist'.
22992 (Fdelete_frame): Remove unused variable `count'. Don't allow other
22993 frames to refer to a deleted frame in their 'environment parameter.
22994 (Fframe_with_environment): New function.
22995 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
22996 (get_future_frame_param): New function.
22997 (Fmake_terminal_frame): Use it.
22998 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
22999
23000 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
23001 * sysdep.c (reset_sys_modes): Update for renames.
23002
23003 * keyboard.c (tty_read_avail_input): New function.
23004 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
23005 (syms_of_keyboard): Defsubr them.
23006 (Fset_input_meta_mode, Fset_quit_char): New functions.
23007 (Fset_input_mode): Split to above functions.
23008 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
23009 parameter. Use it in call to `read_char'.
23010 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
23011 Set wrong_kboard_jmpbuf correctly in recursive calls.
23012 Use current_kboard to access Vkeyboard_translate_table.
23013 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
23014 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
23015 Update longjmp invocations. Remember the original current_kboard,
23016 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
23017 changes it. Comment out unnecessary calls to
23018 `record_single_kboard_state' and `any_kboard_state'.
23019 Update recursive calls.
23020 (wrong_kboard_jmpbuf): Remove global variable.
23021 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
23022 Handle deleted interrupted_kboards correctly; that is a legal
23023 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
23024 and read_char calls. Abort if interrupted_kboard died in read_char.
23025 (any_kboard_state, single_kboard_state)
23026 (push_frame_kboard): Remove function.
23027 (pop_kboard): Switch out of single_kboard mode if the kboard has
23028 been deleted. Remove unused variable. Help debugging by not
23029 changing current_kboard unnecessarily. Set current_kboard to the
23030 kboard of the selected frame when the stored kboard object has
23031 been deleted before pop_kboard.
23032 (temporarily_switch_to_single_kboard): Change first parameter to a
23033 frame pointer. Throw an error when caller wants to change kboards
23034 while in single_kboard mode. Don't push_kboard if we weren't in
23035 single kboard state. Don't pop_kboard if we popped into any
23036 kboard state.
23037 (restore_kboard_configuration): Abort if pop_kboard changed the
23038 kboard in single_kboard mode. Call pop_kboard only after setting
23039 up single_kboard mode.
23040 (Frecursive_edit): Switch to single_kboard mode only in nested
23041 command loops.
23042 (cmd_error, command_loop, command_loop_1, timer_check):
23043 Comment out unnecessary call to `any_kboard_state' and
23044 `record_single_kboard_state'.
23045 (delete_kboard): Exit single_kboard mode if we have just deleted
23046 that kboard. Use FRAME_KBOARD.
23047 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
23048 `fatal_error_signal'.
23049 (record_single_kboard_state): Don't push_kboard if we weren't in
23050 single kboard state. Don't pop_kboard if we popped into any
23051 kboard state.
23052 (push_frame_kboard): Rename to push_kboard.
23053 (kbd_buffer_get_event): Use FRAME_TERMINAL.
23054 (read_avail_input): Read input from all terminals.
23055 (mark_kboards): Also mark Vkeyboard_translate_table.
23056 (kbd_buffer_store_event_hold): Simplify condition.
23057 (read_key_sequence): Reinitialize fkey and keytran at each replay.
23058 (Vkeyboard_translate_table): Move to struct kboard.
23059 (init_kboard): Initialize Vkeyboard_translate_table.
23060 (syms_of_keyboard): Use DEFVAR_KBOARD to define
23061 Vkeyboard_translate_table. Update doc strings. Update docs of
23062 local-function-key-map and function-key-map.
23063
23064 * terminal.c: New file.
23065
23066 * term.c: Include errno.h.
23067 (Vring_bell_function, device_list, initial_device)
23068 (next_device_id, ring_bell, update_begin, update_end)
23069 (set_terminal_window, cursor_to, raw_cursor_to)
23070 (clear_to_end, clear_frame, clear_end_of_line)
23071 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
23072 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
23073 (syms_of_term): Move their initialization to terminal.c.
23074 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
23075 (Ftty_display_color_cells)
23076 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
23077 (clear_tty_hooks, set_tty_hooks)
23078 (init_tty, maybe_fatal): New functions.
23079 (Ftty_type): Return nil if terminal is not on a tty instead of
23080 throwing an error. Doc update.
23081 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
23082 Doc update. Initialize new subrs and variables.
23083 (delete_tty): Use terminal->deleted.
23084 (tty_set_terminal_modes): Rename from set_terminal_modes.
23085 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
23086 (set_scroll_region): Rename to `tty_set_scroll_region'.
23087 (turn_on_insert): Rename to `tty_turn_on_insert'.
23088 (turn_off_insert): Rename to `tty_turn_off_insert'.
23089 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
23090 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
23091 (toggle_highligh): Rename to `tty_toggle_highlight'.
23092 (background_highlight): Rename to `tty_background_highlight'.
23093 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
23094 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
23095 (tty_set_scroll_region, tty_background_highlight)
23096 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
23097 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
23098 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
23099 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
23100 Add static modifier.
23101 (tty_reset_terminal_modes, tty_set_terminal_window)
23102 (tty_set_scroll_region, tty_background_highlight)
23103 (tty_highlight_if_desired, tty_cursor_to)
23104 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
23105 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
23106 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
23107 renames.
23108
231092007-08-28 Jan Djärv <jan.h.d@swipnet.se>
23110
23111 * keyboard.c: Qrtl is new.
23112 (parse_tool_bar_item): Handle :rtl keyword.
23113 (syms_of_keyboard): Intern :rtl keyword.
23114
23115 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
23116
23117 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
23118 so no Lisp code is executed.
23119 (file_for_image, find_rtl_image): New functions.
23120 (xg_get_image_for_pixmap): Use file_for_image.
23121 (update_frame_tool_bar): If direction is RTL, use RTL image if
23122 defined. Use Gtk stock images if defined.
23123
231242007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23125
23126 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
23127 for nonexistent or zero-width glyph in composition glyph.
23128
231292007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
23130
23131 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
23132
23133 * xdisp.c (Finvisible_p): New function.
23134 (syms_of_xdisp): defsubr it.
23135
231362007-08-24 Juanma Barranquero <lekktu@gmail.com>
23137
23138 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
23139 Doc fixes.
23140
231412007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23142
23143 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
23144
231452007-08-24 Martin Rudalics <rudalics@gmx.at>
23146
23147 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
23148 whether decoding has modified buffer contents.
23149
231502007-08-24 Jason Rumney <jasonr@gnu.org>
23151
23152 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
23153 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
23154 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
23155 (init_svg_functions) [HAVE_NTGUI]: New function.
23156 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
23157 (svg_load_image): Use them.
23158 (svg_load_image) [HAVE_NTGUI]: Implement background.
23159
231602007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23161
23162 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
23163 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
23164 (LIBX): Remove @RSVG_LIBS@.
23165 (LIBES): Add $(RSVG_LIBS).
23166
23167 * image.c (svg_load_image): Blend with specified background if exists.
23168 Use IMAGE_BACKGROUND. Add Mac OS Support.
23169
23170 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
23171 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
23172 Remove macros.
23173 [MAC_OSX] (socket_callback): Do nothing.
23174 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
23175 ReceiveNextEvent.
23176 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
23177 socket_callback.
23178 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
23179
231802007-08-22 Glenn Morris <rgm@gnu.org>
23181
23182 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
23183
231842007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
23185
23186 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
23187
23188 * image.c: Add support for SVG images. Some additional comments
23189 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
23190 (svg_image_p): New function to test for SVG image.
23191 (svg_load): New function to load SVG image.
23192 (svg_load_image): New function, helper for svg_load.
23193 (Qsvg): New Lisp_object.
23194 (svg_keyword_index): New enum.
23195 (svg_format): New static `image_keyword' struct.
23196 (svg_type): New static `image_type' struct.
23197 (librsvg/rsvg.h): Include it.
23198
231992007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
23200
23201 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
23202
232032007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
23204
23205 * lread.c (Qold_style_backquotes): New var.
23206 (syms_of_lread): Init and staticpro it.
23207 (load_warn_old_style_backquotes): New fun.
23208 (Fload): Use them to warn about old style backquotes.
23209 (end_of_file_error, Fload): Remove unused vars.
23210
23211 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
23212
23213 * lread.c (Vold_style_backquotes): New var.
23214 (syms_of_lread): Init and export it to Elisp.
23215 (read1): Set it when we find an old-style (back)quote.
23216
232172007-08-22 Jason Rumney <jasonr@gnu.org>
23218
23219 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
23220
232212007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
23222
23223 * puresize.h (BASE_PURESIZE): Increase to 1140000.
23224
232252007-08-19 Richard Stallman <rms@gnu.org>
23226
23227 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
23228
232292007-08-19 Andreas Schwab <schwab@suse.de>
23230
23231 * alloc.c (pure): Round PURESIZE up.
23232
232332007-08-17 Jan Djärv <jan.h.d@swipnet.se>
23234
23235 * xterm.c (handle_one_xevent): Remove check that mouse click is in
23236 active frame.
23237
232382007-08-16 Richard Stallman <rms@gnu.org>
23239
23240 * eval.c (Fcommandp): Add parens to clarify.
23241
23242 * minibuf.c (Fall_completions): Use enum for type of table.
23243
23244 * emacs.c (USAGE2): Improve text.
23245
232462007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
23247
23248 * term.c (tty_default_color_capabilities): Declare static
23249 variables in file scope, to avoid HPUX compiler problem.
23250
232512007-08-13 Jan Djärv <jan.h.d@swipnet.se>
23252
23253 * gtkutil.c (update_frame_tool_bar): Use -1 as index
23254 to gtk_toolbar_insert.
23255
232562007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
23257
23258 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
23259
23260 * insdel.c (reset_var_on_error): New fun.
23261 (signal_before_change, signal_after_change):
23262 Use it to reset (after|before)-change-functions to nil in case of error.
23263 Bind inhibit-modification-hooks to t.
23264 Don't bind (after|before)-change-functions to nil while they run.
23265
232662007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23267
23268 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
23269 filling pixmap with stippled background.
23270
232712007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23272
23273 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
23274 Don't use invisible frame as parent window for repositioning.
23275
232762007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
23277
23278 * print.c (new_backquote_output): Rename from old_backquote_output.
23279 (print): Inverse its logic (according to its name) so as to match the
23280 behavior of new_backquote_flag in lread.c.
23281
232822007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23283
23284 * gmalloc.c (posix_memalign): New function.
23285
23286 * macterm.c (frame_highlight, frame_unhighlight): Don't call
23287 ActivateControl/DeactivateControl here.
23288 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
23289 frame-notice-user-settings is non-nil.
23290 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
23291 for kEventParamFMFontStyle.
23292 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
23293 mac_pass_command_to_system and mac_pass_control_to_system here.
23294 (XTread_socket): Call ActivateControl/DeactivateControl here.
23295 (XTread_socket) [TARGET_API_MAC_CARBON]:
23296 Check mac_pass_command_to_system and mac_pass_control_to_system here.
23297 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
23298 for window repositioning.
23299
233002007-08-08 Glenn Morris <rgm@gnu.org>
23301
23302 * Replace `iff' in doc-strings and comments.
23303
233042007-08-07 Chong Yidong <cyd@stupidchicken.com>
23305
23306 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
23307
233082007-08-07 Martin Rudalics <rudalics@gmx.at>
23309
23310 * fileio.c (Finsert_file_contents): Run format-decode and
23311 after_insert_file_functions on entire buffer when REPLACE is
23312 non-nil and inhibit modification_hooks and point_motion_hooks.
23313 For consistency, run after_insert_file_functions iff something
23314 got inserted. Move signal_after_change and update_compositions
23315 after code running after_insert_file_functions. Make sure that
23316 undo_list doesn't record intermediate steps of the decoding process.
23317
233182007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23319
23320 * emacs.c (main)
23321 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
23322 Call malloc_enable_thread on interactive startup.
23323
23324 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
23325 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
23326 [USE_PTHREAD]: Conditionalize with it.
23327 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
23328 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
23329 New functions.
23330
233312007-08-06 Chong Yidong <cyd@stupidchicken.com>
23332
23333 * xdisp.c (redisplay_window): When restoring original buffer
23334 position, make sure it is still valid.
23335
23336 * image.c (png_load): Ignore png-supplied background color.
23337
233382007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23339
23340 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
23341 Use kCFAbsoluteTimeIntervalSince1970.
23342
23343 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
23344 New variable.
23345 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
23346 event loop should be quit.
23347 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
23348 Quit dialog event loop if quit_dialog_event_loop is set.
23349
23350 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
23351 (Selection): New typedef. Use instead of ScrapRef.
23352 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
23353 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
23354 (mac_clear_selection): Rename from clear_scrap.
23355 (get_flavor_type_from_symbol): New argument SEL and subsume function of
23356 scrap_has_target_type. All uses changed.
23357 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
23358 (mac_selection_has_target_p): New functions.
23359 (mac_put_selection_value): Rename from put_scrap_string.
23360 (mac_get_selection_value): Rename from get_scrap_string.
23361 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
23362 (put_scrap_private_timestamp, scrap_has_target_type)
23363 (get_scrap_private_timestamp): Remove functions.
23364 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
23365 (x_own_selection, x_get_local_selection):
23366 Use mac_valid_selection_value_p.
23367 (x_own_selection): Don't use put_scrap_private_timestamp.
23368 Record OWNERSHIP-INFO into Vselection_alist instead.
23369 (x_get_local_selection): Don't check type if request is local.
23370 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
23371 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
23372
233732007-08-04 Jan Djärv <jan.h.d@swipnet.se>
23374
23375 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
23376 add comment explaining why.
23377
233782007-08-03 Richard Stallman <rms@gnu.org>
23379
23380 * fileio.c (Fvisited_file_modtime): Use make_time.
23381
233822007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
23383
23384 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
23385 build.
23386
233872007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
23388
23389 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
23390
233912007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
23392
23393 * puresize.h (BASE_PURESIZE): Increase to 1130000.
23394
233952007-07-30 Richard Stallman <rms@gnu.org>
23396
23397 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
23398
233992007-07-29 Jan Djärv <jan.h.d@swipnet.se>
23400
23401 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
23402
234032007-07-28 Nick Roberts <nickrob@snap.net.nz>
23404
23405 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
23406 remote default-directory.
23407
23408 * buffer.c (mode-line-format): Update doc string.
23409
234102007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23411
23412 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
23413 scroll bar gap.
23414 (x_scroll_bar_create): Set bar->fringe_extended_p.
23415 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
23416 on frame edge. Check fringe background extension. Don't clear
23417 extended fringe background area.
23418
23419 * w32term.h (struct scroll_bar): New member fringe_extended_p.
23420 (w32_fill_area): Enclose multiple statements with do ... while (0).
23421
23422 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
23423 Extend fringe background to scroll bar gap.
23424 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
23425 Set bar->fringe_extended_p.
23426 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23427 Put leftmost/rightmost scroll bars on frame edge. Check fringe
23428 background extension. Don't clear extended fringe background area.
23429
23430 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
23431 New member fringe_extended_p.
23432
234332007-07-25 Glenn Morris <rgm@gnu.org>
23434
23435 * Relicense all FSF files to GPLv3 or later.
23436
23437 * COPYING: Switch to GPLv3.
23438
234392007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
23440
23441 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
23442
23443 * data.c (Finteractive_form): Check for the presence of an
23444 `interactive-form' symbol property more thoroughly.
23445
23446 * data.c (Finteractive_form): Use an `interactive-form' property if
23447 present, analogous to the function-documentation property.
23448
234492007-07-24 Jason Rumney <jasonr@gnu.org>
23450
23451 * w32fns.c (x_real_positions): Get real position from OS instead of
23452 calculating it.
23453
234542007-07-23 Jason Rumney <jasonr@gnu.org>
23455
23456 * filelock.c (current_lock_owner): Allow for @ sign in username.
23457
234582007-07-22 Nick Roberts <nickrob@snap.net.nz>
23459
23460 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
23461 remote default-directory.
23462
23463 * buffer.c (mode-line-format): Describe above case in doc string.
23464
234652007-07-20 Eli Zaretskii <eliz@gnu.org>
23466
23467 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
23468 Define if not defined.
23469
234702007-07-18 Jason Rumney <jasonr@gnu.org>
23471
23472 * w32proc.c (w32_executable_type): Handle 64 bit executables.
23473
234742007-07-18 Richard Stallman <rms@gnu.org>
23475
23476 * data.c (Fsetq_default): Doc fix.
23477
23478 * eval.c (Fsetq): Doc fix.
23479
234802007-07-18 Juanma Barranquero <lekktu@gmail.com>
23481
23482 * coding.c (Ffind_operation_coding_system):
23483 * eval.c (For, Fand): Doc fixes.
23484 Reported by Johan Bockgård.
23485
234862007-07-18 Jan Djärv <jan.h.d@swipnet.se>
23487
23488 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
23489
23490 * xterm.h: Declare x_ewmh_activate_frame.
23491
23492 * xterm.c (x_ewmh_activate_frame): New function.
23493 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
23494
234952007-07-17 Martin Rudalics <rudalics@gmx.at>
23496
23497 * window.c (Fdisplay_buffer): If largest or LRU window is the
23498 only window, split it even if it is not eligible for splitting.
23499 This restores the original behavior broken by the 2007-07-15
23500 change.
23501
235022007-07-17 Glenn Morris <rgm@gnu.org>
23503
23504 * abbrev.c (abbrev_check_chars): New function.
23505 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
23506 Call abbrev_check_chars to check abbrev characters are word
23507 constituents. Doc fix.
23508
235092007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
23510
23511 * process.c (Fstart_process, Fmake_network_process)
23512 (read_process_output): Fix up last changes.
23513
235142007-07-16 Eli Zaretskii <eliz@gnu.org>
23515
23516 * makefile.w32-in (clean): Don't delete *~.
23517
235182007-07-16 Andreas Schwab <schwab@suse.de>
23519
23520 * window.c (Fdisplay_buffer): Use NILP.
23521 (Fset_window_scroll_bars): Likewise.
23522
235232007-07-15 Martin Rudalics <rudalics@gmx.at>
23524
23525 * window.c (window_min_size_2): New function.
23526 (window_min_size_1, size_window, Fdisplay_buffer)
23527 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
23528 windows without mode- or header-lines when window-min-height is
23529 too small.
23530 (size_window): Reset nodelete_p after testing it, following an
23531 earlier note by Kim F. Storm.
23532 (display_buffer): Do not set split_height_threshold to twice the
23533 value of window_min_height to avoid changing the value of a
23534 customizable variable. Rather explicitly check whether the
23535 height of the window that shall be splitted is at least as large
23536 as split_height_threshold.
23537 (Fwindow_full_width_p): New defun.
23538 (syms_of_window): Defsubr it.
23539
23540 * window.h: Add EXFUN for Fwindow_full_width_p.
23541
235422007-07-14 Jason Rumney <jasonr@gnu.org>
23543
23544 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
23545
235462007-07-14 Richard Stallman <rms@gnu.org>
23547
23548 * eval.c (maybe_call_debugger): New function.
23549 (find_handler_clause): Use maybe_call_debugger.
23550 Call it when the handler says `debug'.
23551 Eliminate DEBUGGER_VALUE_PTR.
23552 (Fsignal): Eliminate debugger_value.
23553 (Qdebug): New variable.
23554 (syms_of_eval): Initialize it.
23555
235562007-07-14 Juanma Barranquero <lekktu@gmail.com>
23557
23558 * eval.c (Fprogn):
23559 * keyboard.c (Ftrack_mouse):
23560 * print.c (Fwith_output_to_temp_buffer):
23561 * window.c (Fsave_window_excursion): Doc fix.
23562
235632007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
23564
23565 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
23566
235672007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
23568
23569 * process.h (struct Lisp_Process): Turn slots infd, outfd,
23570 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
23571 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
23572 read_output_delay, and read_output_skip from Lisp_Objects to ints.
23573 Remove unused encoding_carryover.
23574 * process.c: Adjust all functions accordingly.
23575
235762007-07-12 Richard Stallman <rms@gnu.org>
23577
23578 * term.c: Include unistd.h only if HAVE_UNISTD_H.
23579
235802007-07-11 Jason Rumney <jasonr@gnu.org>
23581
23582 * makefile.w32-in (LIBS): Include OLE32.
23583
23584 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
23585 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
23586
235872007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
23588
23589 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
23590 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
23591 from a Lisp_Object into a bare pointer.
23592 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
23593 Adjust the code correspondingly.
23594
23595 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
23596
23597 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
23598 (term_show_mouse_face): Remove unused var `j'.
23599 (handle_one_term_event): Remove unused vars `i' and `j'.
23600 Don't cast return value of ttyname since it's not necessary.
23601
236022007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
23603
23604 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
23605 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
23606
23607 * fns.c (map_char_table): Use an array of int for `indices' rather than
23608 an array of Lisp_Objects (which are only ever integers anyway).
23609 (Fmap_char_table): Update caller.
23610 * lisp.h: Update prototype.
23611 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
23612 * fontset.c (Ffontset_info):
23613 * casetab.c (set_case_table): Update callers.
23614
23615 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
23616
23617 * keymap.c (struct accessible_keymaps_data)
23618 (struct where_is_internal_data): New structures.
23619 (accessible_keymaps_1, where_is_internal_1): Use them to change
23620 interface to adhere to the one used by map_keymap.
23621 (Faccessible_keymaps, where_is_internal): Use map_keymap.
23622 (accessible_keymaps_char_table, where_is_internal_2): Remove.
23623
23624 * keymap.h (map_keymap_function_t): More informative prototype.
23625
236262007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
23627
23628 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
23629 (looking_at_1): Don't change search_regs and last_thing_searched
23630 if `inhibit-changing-match-data' is non-nil.
23631 (string_match_1, search_buffer, set_search_regs): Likewise.
23632 (syms_of_search): Add Lisp level definition for
23633 `inhibit-changing-match-data' and set it to nil.
23634 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
23635 start and end of the match, instead of using values in search_regs.
23636
236372007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
23638
23639 * minibuf.c (Fcompleting_read): New value `confirm-only'
23640 for `require-match'.
23641
236422007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
23643
23644 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
23645 part of the 2007-06-27 change to syms_of_fileio.
23646
236472007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23648
23649 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
23650 Check WINDOWP before using XWINDOW. Consolidate return statements.
23651
236522007-06-27 Richard Stallman <rms@gnu.org>
23653
23654 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
23655
236562007-06-27 Juanma Barranquero <lekktu@gmail.com>
23657
23658 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
23659
236602007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23661
23662 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
23663 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
23664 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
23665 (_free_internal, memalign): Use them.
23666 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
23667 Initialize to PTHREAD_MUTEX_INITIALIZER.
23668 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
23669 (morecore_nolock): Rename from morecore. All uses changed.
23670 Use only nolock versions of internal allocation functions.
23671 (_malloc_internal_nolock, _realloc_internal_nolock)
23672 (_free_internal_nolock): New functions created from
23673 _malloc_internal, _realloc_internal, and _free_internal.
23674 (_malloc_internal, _realloc_internal, _free_internal): Use them.
23675 Copy hook value to automatic variable before its use.
23676 (memalign): Copy hook value to automatic variable before its use.
23677
236782007-06-26 Kenichi Handa <handa@m17n.org>
23679
23680 * coding.c (Ffind_operation_coding_system): Docstring improved.
23681 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
23682
236832007-06-25 David Kastrup <dak@gnu.org>
23684
23685 * keymap.c (Fcurrent_active_maps): Add `position' argument.
23686 (Fwhere_is_internal): Adjust call to `current-active-maps' to
23687 cater for additional parameter.
23688
23689 * keymap.h: Adjust number of parameters to `current-active-maps'.
23690
23691 * doc.c (Fsubstitute_command_keys): Adjust call of
23692 `current-active-maps'.
23693
236942007-06-25 David Kastrup <dak@gnu.org>
23695
23696 * callint.c (Fcall_interactively): Make the parsing of interactive
23697 specs somewhat more readable.
23698
236992007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23700
23701 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
23702 to scroll bar gap also when bitmap fills fringe. Draw only foreground
23703 if extended background has already been filled.
23704
237052007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23706
23707 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
23708 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
23709
23710 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
23711 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
23712 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
23713 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
23714 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
23715 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
23716 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
23717 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
23718 Run timers during dialog popup.
23719 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
23720
237212007-06-21 Jason Rumney <jasonr@gnu.org>
23722
23723 * image.c (convert_mono_to_color_image): Swap fore and background.
23724
237252007-06-20 Jason Rumney <jasonr@gnu.org>
23726
23727 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
23728 (w32_free_bdf_font): Unmap memory not handle.
23729
237302007-06-20 Sam Steingold <sds@gnu.org>
23731
23732 * gmalloc.c (__morecore): Fix the declaration to comply with the
23733 definition.
23734
237352007-06-20 Juanma Barranquero <lekktu@gmail.com>
23736
23737 * w32term.c (w32_delete_display): Remove leftover declaration.
23738 (w32_define_cursor, w32_initialize): Make static.
23739
23740 * w32.c (_wsa_errlist): Fix typo in error message.
23741 (init_environment): Ignore any environment variable from the
23742 registry having a null value.
23743
237442007-06-20 Glenn Morris <rgm@gnu.org>
23745
23746 * Makefile.in (LIBGIF): Default to -lgif.
23747
237482007-06-17 Jason Rumney <jasonr@gnu.org>
23749
23750 * w32menu.c (add_menu_item): Don't use multibyte string functions on
23751 unicode strings.
23752
237532007-06-16 Juanma Barranquero <lekktu@gmail.com>
23754
23755 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
23756 Fix typo in docstring.
23757
237582007-06-16 Eli Zaretskii <eliz@gnu.org>
23759
23760 * w32menu.c (add_menu_item): Escape `&' characters in menu items
23761 and their keybindings.
23762
237632007-06-15 Chong Yidong <cyd@stupidchicken.com>
23764
23765 * composite.c (update_compositions): Fix last fix.
23766
237672007-06-14 Jason Rumney <jasonr@gnu.org>
23768
23769 * w32.c (get_process_times_fn): New function pointer.
23770 (globals_of_w32): Intialize it if present in kernel32.dll.
23771 (w32_get_internal_run_time): New function.
23772
23773 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
23774
237752007-06-14 Kenichi Handa <handa@etlken.m17n.org>
23776
23777 * composite.c (update_compositions): Check the validness of
23778 compositions.
23779
237802007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23781
23782 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
23783 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
23784
23785 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
23786 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
23787
23788 * macgui.h (USE_MAC_TOOLBAR): New define.
23789
23790 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23791 Return immediately unless popup is activated.
23792
23793 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
23794 background to scroll bar gap.
23795 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
23796 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
23797 scroll bars on frame edge. Check fringe background extension.
23798 Don't clear extended fringe background area.
23799 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
23800 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
23801 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
23802 [USE_MAC_TOOLBAR]: New macros.
23803 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
23804 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
23805 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
23806 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
23807 [USE_MAC_TOOLBAR]: New functions.
23808 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
23809 manually if previous repositioning has failed.
23810 (mac_handle_keyboard_event): Use precomputed event kind.
23811 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
23812 as tool bar item click. Handle mouse movement over tool bar items.
23813
23814 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
23815 toolbar_win_gravity.
23816 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
23817 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
23818 Add externs.
23819
23820 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
23821 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
23822
238232007-06-14 Chong Yidong <cyd@stupidchicken.com>
23824
23825 * image.c (search_image_cache): Remove unused variable.
23826
238272007-06-13 Chong Yidong <cyd@stupidchicken.com>
23828
23829 * xfns.c, xmenu.c: Link to xaw3d if available.
23830
238312007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23832
23833 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
23834 frame_foreground and frame_background.
23835
23836 * image.c (lookup_image): Save frame foreground and background colors.
23837 (search_image_cache): Check if saved and current frame colors match.
23838
238392007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
23840
23841 * regex.c (regex_compile): Remove the `regnum' counter.
23842 Use bufp->re_nsub instead. Add support for \(?N:RE\).
23843
238442007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
23845
23846 * term.c: Include intervals.h to declare Fget_text_property.
23847
238482007-06-10 Jason Rumney <jasonr@gnu.org>
23849
23850 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
23851
238522007-06-08 Juanma Barranquero <lekktu@gmail.com>
23853
23854 * callint.c (Fcall_interactively):
23855 * editfns.c (Fdelete_and_extract_region):
23856 * fileio.c (Fread_file_name):
23857 * fns.c (Fmapconcat):
23858 * keyboard.c (cmd_error_internal):
23859 * keymap.c (Fkey_description):
23860 * lread.c (openp):
23861 * minibuf.c (read_minibuf):
23862 * search.c (wordify):
23863 * sunfns.c (sel_read):
23864 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
23865 * xfns.c (x_default_scroll_bar_color_parameter):
23866 * xmenu.c (menu_help_callback):
23867 * xselect.c (Fx_get_atom_name):
23868 * xterm.c (x_term_init): Use empty_unibyte_string.
23869
238702007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
23871
23872 * alloc.c (init_strings): Initialize canonical empty strings.
23873 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
23874 canonical empty string when the requested size is 0.
23875
23876 * emacs.c (empty_unibyte_string): Rename from empty_string.
23877 (empty_multibyte_string): New canonical empty string.
23878 (syms_of_emacs): Don't initialize empty_string.
23879
23880 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
23881 string, if appropriate.
23882 (empty_unibyte_string, empty_multibyte_string): New externs.
23883 (empty_string): Remove extern.
23884
23885 * lread.c (syms_of_lread): Use empty_unibyte_string.
23886
238872007-06-07 Jason Rumney <jasonr@gnu.org>
23888
23889 * s/ms-w32.h: Don't define HAVE_TZNAME.
23890
23891 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
23892
238932007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23894
23895 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
23896
23897 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
23898 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
23899
23900 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
23901 Don't call next handler.
23902 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
23903 Remove argument. Install handler to application.
23904 (set_frame_menubar): Don't change deep_p.
23905 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
23906 FRAME_OUTER_TO_INNER_DIFF_Y.
23907 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
23908 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
23909 [HAVE_DIALOGS]: New macros.
23910 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
23911 Use them.
23912 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
23913
23914 * macselect.c [MAC_OSX] (install_service_handler): Rename from
23915 init_service_handler. All callers changed. Return OSStatus value.
23916
23917 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
23918 All callers changed so as not to call SetPortWindowPort.
23919 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
23920 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
23921 mac_draw_string_common.
23922 (mac_draw_image_string_qd): Likewise.
23923 (mac_draw_string_common): Use them. Add INLINE.
23924 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
23925 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
23926 GetGlobalMouse.
23927 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
23928 and FRAME_OUTER_TO_INNER_DIFF_Y.
23929 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
23930 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
23931 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
23932 repositioning window to mac_handle_window_event.
23933 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
23934 saving window location to mac_handle_window_event
23935 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
23936 (install_menu_target_item_handler): Remove argument in extern.
23937 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
23938 Also accept command events.
23939 (do_keystroke): New function created from XTread_socket.
23940 (init_command_handler): Remove functions.
23941 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
23942 and save window location by kEventWindowShowing and kEventWindowHiding
23943 handlers here. Don't call next handler for window state change and
23944 focus events.
23945 (mac_handle_application_event, mac_handle_keyboard_event)
23946 [TARGET_API_MAC_CARBON]: New functions.
23947 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
23948 kEventWindowShowing and kEventWindowHiding events. Move installation
23949 of mouse, font, text input and menu target item handlers to
23950 install_application_handler.
23951 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
23952 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23953 New function.
23954 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
23955 Register it.
23956 (XTread_socket) [TARGET_API_MAC_CARBON]:
23957 Consolidate SendEventToEventTarget calls.
23958 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
23959 Move application activation handler to mac_handle_application_event.
23960 Move keyboard handler to mac_handle_keyboard_event.
23961 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
23962 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
23963 init_command_handler. Call install_application_handler.
23964
23965 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
23966 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
23967
239682007-06-07 Glenn Morris <rgm@gnu.org>
23969
23970 * emacs.c (main): Use `emacs-copyright' in --version output.
23971
239722007-06-06 Chong Yidong <cyd@stupidchicken.com>
23973
23974 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
23975
239762007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23977
23978 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
23979
23980 * macgui.h: Replace WindowPtr with WindowRef.
23981
23982 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23983 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23984 Replace ControlHandle with ControlRef.
23985 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
23986
23987 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
23988 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
23989 Replace ControlHandle with ControlRef.
23990 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
23991 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
23992
23993 * macterm.h (struct scroll_bar): Rename member control_handle_low
23994 and control_handle_high to control_ref_low and control_ref_high.
23995 All uses changed.
23996 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
23997 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
23998 respectively. All uses changed.
23999 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
24000 (install_window_handler, remove_window_handler): Replace WindowPtr
24001 with WindowRef in externs.
24002
240032007-06-05 Juanma Barranquero <lekktu@gmail.com>
24004
24005 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
24006
240072007-06-03 Nick Roberts <nickrob@snap.net.nz>
24008
24009 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
24010
24011 * frame.c (Fmouse_position, Fmouse_pixel_position):
24012 Condition on HAVE_GPM too.
24013
24014 * term.c (term_mouse_highlight): Remove unused variables.
24015 (Fterm_open_connection): Set gpm_zerobased to 1.
24016 (term_mouse_movement, term_mouse_click, handle_one_term_event):
24017 Use zero based co-ordinates.
24018 (handle_one_term_event): Report a drag as mouse movement too.
24019
24020 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
24021
240222007-06-03 Chong Yidong <cyd@stupidchicken.com>
24023
24024 * image.c (search_image_cache): New function. Require background
24025 color match if background color is unspecified in the image spec.
24026 (uncache_image, lookup_image): Use it.
24027
240282007-06-01 Juanma Barranquero <lekktu@gmail.com>
24029
24030 * window.c (Fshrink_window): Reflow docstring.
24031
240322007-06-02 Chong Yidong <cyd@stupidchicken.com>
24033
24034 * Version 22.1 released.
24035
240362007-06-01 Richard Stallman <rms@gnu.org>
24037
24038 * xfns.c (x_encode_text): Add GCPRO.
24039
240402007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24041
24042 * xfns.c (x_set_name_internal): Save encoded name before
24043 x_encode_text in case string data is relocated.
24044
240452007-05-31 Richard Stallman <rms@gnu.org>
24046
24047 * buffer.c (syms_of_buffer): Doc fix.
24048
240492007-05-30 Nick Roberts <nickrob@snap.net.nz>
24050
24051 * sysdep.c (init_sys_modes): Add rather than replace with
24052 O_NONBLOCK.
24053
24054 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
24055 term_mouse_moveto.
24056
24057 * termhooks.h (term_mouse_moveto): New extern.
24058
24059 * term.c (mouse_face_window): Rename...
24060 (Qmouse_face_window): ...to this.
24061 (term_show_mouse_face, term_clear_mouse_face)
24062 (term_mouse_highlight): Use Qmouse_face_window.
24063 (term_mouse_moveto): New function.
24064 (term_mouse_position): Make it work.
24065 (syms_of_term): Uncomment assignment to mouse_position_hook.
24066 Staticpro Qmouse_face_window.
24067
240682007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24069
24070 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
24071 around current_column call.
24072
240732007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
24074
24075 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
24076 * xdisp.c (next_element_from_buffer):
24077 * window.c (delete_window):
24078 * term.c (term_mouse_highlight):
24079 * msdos.c (getdefdir):
24080 * macterm.c (mac_create_bitmap_from_bitmap_data)
24081 (init_font_name_table):
24082 * fns.c (Fsxhash):
24083 * data.c (Fmake_local_variable):
24084 * ccl.c (ccl_driver): Likewise.
24085
240862007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24087
24088 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
24089 Call mac_wakeup_from_rne on window size change.
24090
240912007-05-25 Chong Yidong <cyd@stupidchicken.com>
24092
24093 * image.c (uncache_image): Fix typo.
24094
240952007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
24096
24097 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
24098
240992007-05-22 Richard Stallman <rms@gnu.org>
24100
24101 * xterm.c (x_connection_closed): Remove NO_RETURN.
24102
241032007-05-22 Martin Rudalics <rudalics@gmx.at>
24104
24105 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
24106
241072007-05-21 Chong Yidong <cyd@stupidchicken.com>
24108
24109 * image.c (uncache_image): New function.
24110 (Fimage_refresh): New function.
24111
241122007-05-20 Jan Djärv <jan.h.d@swipnet.se>
24113
24114 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
24115
241162007-05-20 Nick Roberts <nickrob@snap.net.nz>
24117
24118 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
24119 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
24120
241212007-05-20 Nick Roberts <nickrob@snap.net.nz>
24122
24123 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
24124 conditional on [HAVE_GPM_H].
24125
241262007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
24127
24128 * syntax.c (skip_chars): Update syntax-table only after we checked that
24129 the new location is valid.
24130
241312007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24132
24133 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
24134 mac_get_window_bounds.
24135
241362007-05-20 Nick Roberts <nickrob@snap.net.nz>
24137
24138 * Makefile.in (LIBGPM): Allow it to be set from configure.
24139 If set then link Emacs with it.
24140
24141 * config.in: Regenerate.
24142
24143 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
24144 New externs.
24145
24146 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
24147 Include gpm.h.
24148 (handle_one_term_event, term_gpm): New externs.
24149
24150 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
24151 and allow it to be interrupted by SIGIO.
24152
24153 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
24154 (wait_reading_process_output): Wait on gpm_fd too.
24155 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
24156 (add_gpm_wait_descriptor_called_flag): New variable.
24157 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
24158
24159 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
24160 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
24161 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
24162 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
24163 (make_lispy_event): Add case GPM_CLICK_EVENT.
24164 (read_avail_input): Handle mouse input.
24165
24166 * term.c (write_glyphs_with_face): New function.
24167 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
24168 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
24169 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
24170 (mouse_face_face_id, term_gpm, pos_x, pos_y)
24171 (last_mouse_x, last_mouse_y): New variables.
24172 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
24173 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
24174 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
24175 (Fterm_close_connection): New functions.
24176 (term_init): Initialise mouse_face_window.
24177
241782007-05-19 Chong Yidong <cyd@stupidchicken.com>
24179
24180 * xdisp.c (redisplay_window): If first window line is a
24181 continuation line, recompute the new window start instead of
24182 recentering.
24183
241842007-05-18 Glenn Morris <rgm@gnu.org>
24185
24186 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
24187 Suggested by Alfred M. Szmidt <ams@gnu.org>.
24188
241892007-05-17 Glenn Morris <rgm@gnu.org>
24190
24191 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
24192
241932007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24194
24195 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
24196 dead key repeat and up events.
24197
241982007-05-14 Chong Yidong <cyd@stupidchicken.com>
24199
24200 * image.c (pbm_load): Check image size for monochrome pbm.
24201
242022007-05-13 Chong Yidong <cyd@stupidchicken.com>
24203
24204 * xterm.c (XTread_socket): Revert last change.
24205
242062007-05-12 Chong Yidong <cyd@stupidchicken.com>
24207
24208 * image.c (pbm_load): Correctly check image size for greyscale pbm.
24209
24210 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
24211
242122007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24213
24214 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
24215 mixup (YAILOM).
24216
242172007-05-07 Andreas Schwab <schwab@suse.de>
24218
24219 * keymap.c (Flookup_key): Fix typo in last change.
24220
242212007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
24222
24223 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
24224 mapping for unibyte strings.
24225
242262007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24227
24228 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
24229 (Fx_popup_dialog) [MAC_OSX]: Likewise.
24230
242312007-04-29 Richard Stallman <rms@gnu.org>
24232
24233 * insdel.c (replace_range): For undo, record insertion first.
24234
242352007-04-29 Andreas Schwab <schwab@suse.de>
24236
24237 * lisp.h (VECSIZE): Use OFFSETOF.
24238
242392007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24240
24241 * xdisp.c (try_window_reusing_current_matrix): Fix number of
24242 disabled lines.
24243
242442007-04-28 Richard Stallman <rms@gnu.org>
24245
24246 * lread.c (read_escape): In a string, \s is always space.
24247
242482007-04-27 Jan Djärv <jan.h.d@swipnet.se>
24249
24250 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
24251
24252 * gtkutil.c (xg_update_menubar, create_menus): Create empty
24253 submenu for menu bar items.
24254
24255See ChangeLog.10 for earlier changes.
24256
24257;; Local Variables:
24258;; coding: utf-8
24259;; add-log-time-zone-rule: t
aac0c6e3
MR
24260;; End:
24261
e3eb1dae 24262 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
24263
24264 This file is part of GNU Emacs.
24265
24266 GNU Emacs is free software: you can redistribute it and/or modify
24267 it under the terms of the GNU General Public License as published by
24268 the Free Software Foundation, either version 3 of the License, or
24269 (at your option) any later version.
24270
24271 GNU Emacs is distributed in the hope that it will be useful,
24272 but WITHOUT ANY WARRANTY; without even the implied warranty of
24273 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24274 GNU General Public License for more details.
24275
24276 You should have received a copy of the GNU General Public License
24277 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24278
24279;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40