Add SELinux support.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
574c05e2
KK
12010-04-21 Karel Klíč <kklic@redhat.com>
2
3 * Makefile.in (LIBSELINUX_LIBS): New.
4 (LIBES): Add $LIBSELINUX_LIBS.
5 * eval.c, lisp.h (call7): New function.
6 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
7 (Ffile_selinux_context, Fset_file_selinux_context):
8 New functions.
9 (Fcopy_file): New parameter preserve-selinux-context.
10 (Frename_file): Preserve selinux context when renaming by copy-file.
11
91eac4bb
JB
122010-04-21 Juanma Barranquero <lekktu@gmail.com>
13 Eli Zaretskii <eliz@gnu.org>
14
50426a04
JB
15 Don't depend on cm.c or termcap.c on Windows, use stubs.
16 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
17 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
18 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
19 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
20 (sys_tputs, sys_tgetstr): New stubs.
21 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
22 (tputs, tgetstr): New; define to sys_*.
91eac4bb 23
938efb77
JB
242010-04-20 Juanma Barranquero <lekktu@gmail.com>
25
26 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
27
b4bf28b7
SM
282010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
29
8b1e1112
SM
30 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
31 Just signal a warning rather than an error when inside a let.
32 (Fmake_variable_frame_local): Add the same test.
33
933ac235
SM
34 * font.c (syms_of_font): Make the style table vars read-only.
35
b4bf28b7
SM
36 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
37 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
38
39 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
40
93d68d0c
EZ
412010-04-20 Eli Zaretskii <eliz@gnu.org>
42
43 Fix R2L paragraph display on TTY.
44
45 * xdisp.c (unproduce_glyphs): New function.
46 (display_line): Use it when produced glyphs are discarded from R2L
47 glyph rows.
48 (append_composite_glyph): In R2L rows, prepend the glyph rather
49 than appending it.
50
51 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
52 rather than append it. Set up the resolved_level and bidi_type
53 attributes of the appended glyph.
283ccc18
EZ
54 (produce_special_glyphs): Mirror the backslash continuation
55 character in R2L lines.
93d68d0c 56
283ccc18 57 Implement display of R2L paragraphs in GUI sessions.
26cdf528 58
283ccc18
EZ
59 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
60 append_stretch_glyph.
61 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
62 off-by-one error in computing x at end of text in the row.
63 (append_stretch_glyph): In reversed row, prepend the glyph rather
64 than append it. Set resolved_level and bidi_type of the glyph.
65 (extend_face_to_end_of_line): If the row is reversed, prepend a
66 stretch glyph whose width is such that the rightmost glyph will be
67 drawn at the right margin of the window. Fix off-by-one error on
68 TTY frames in testing whether a line needs face extension. Fix
69 face extension at ZV. If this is the last glyph row, use
70 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
71 region face.
72 (set_cursor_from_row, display_line): Use
26cdf528
EZ
73 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
74 row->continuation_lines_width.
283ccc18
EZ
75 (next_element_from_buffer): Don't call bidi_paragraph_init if we
76 are at ZV. Fixes a crash when reseated to ZV by
77 try_window_reusing_current_matrix.
45903529
EZ
78 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
79 which happens with R2L glyph rows. Fixes a crash when inserting a
80 character at end of an R2L line.
283ccc18
EZ
81 (set_cursor_from_row): Don't be fooled by truncated rows: don't
82 treat them as having zero-width characters. Improve comments.
83 Don't reverse pos_before and pos_after for reversed glyph rows.
84 Set cursor.x to negative value when the cursor might be on the
85 left fringe.
86 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
87 left fringe, not the right one.
f951a506
EZ
88 (notice_overwritten_cursor, draw_phys_cursor_glyph)
89 (erase_phys_cursor): For reversed cursor_row, support cursor on
90 the left fringe.
91
283ccc18
EZ
92 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
93 of continuation indicators on the fringes.
94 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
95 left fringe.
96
f951a506
EZ
97 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
98 draw cursor on the left fringe.
99
100 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
101 cursor on the left fringe.
102
f951a506
EZ
103 * dispnew.c (update_text_area): Handle reversed desired rows when
104 the cursor is on the left fringe.
105 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
106 below, not by 0, for when the cursor is on the left fringe.
107
3bb49aaf
JD
1082010-04-20 Jan Djärv <jan.h.d@swipnet.se>
109
110 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
111 widget is a scrollbar.
112
c0be27fd
KH
1132010-04-20 Kenichi Handa <handa@m17n.org>
114
115 * charset.c (char_charset): Consider Vcharset_non_preferred_head
116 only when the arg CHARSET_LIST is nil.
117
ce5b453a
SM
1182010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 Make variable forwarding explicit rather the using special values.
121 Basically, this makes the structure of buffer-local values and object
122 forwarding explicit in the type of Lisp_Symbols rather than use
123 special Lisp_Objects for that. This tends to lead to slightly more
124 verbose code, but is more C-like, simpler, and makes it easier to make
125 sure we handled all cases, among other things by letting the compiler
126 help us check it.
127 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
128 Removing forwarding objects.
129 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
130 (struct Lisp_Symbol): Make the various forms of variable-forwarding
131 explicit rather than hiding them inside Lisp_Object "values".
132 (XFWDTYPE): New macro.
133 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
134 (XBUFFER_LOCAL_VALUE): Remove.
135 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
136 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
137 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
138 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
139 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
140 Remove the Lisp_Misc_* header.
141 (struct Lisp_Buffer_Local_Value): Redefine.
142 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
143 (struct Lisp_Misc_Any): Add filler to get the right size.
144 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
145 Lisp_Intfwd.
146 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
147 (DEFVAR_KBOARD): Allocate a forwarding object.
148 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
149 (let_shadows_global_binding_p): New function.
150 (union Lisp_Val_Fwd): New type.
151 (make_blv): New function.
152 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
153 (store_symval_forwarding, swap_in_global_binding, Fboundp)
154 (swap_in_symval_forwarding, find_symbol_value, Fset)
155 (let_shadows_buffer_binding_p, set_internal, default_value)
156 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
157 (Fkill_local_variable, Fmake_variable_frame_local)
158 (Flocal_variable_p, Flocal_variable_if_set_p)
159 (Fvariable_binding_locus):
160 * xdisp.c (select_frame_for_redisplay):
161 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
162 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
163 * frame.c (store_frame_param):
164 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
165 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
166 value structure.
167 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
168 (clone_per_buffer_values): Only adjust markers into the current buffer.
169 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
170 (Fbuffer_local_value, set_buffer_internal_1)
171 (swap_out_buffer_local_variables):
172 Adapt to the new symbol value structure.
173 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
174 (defvar_per_buffer): Take a new arg for the fwd object.
175 (buffer_lisp_local_variables): Return a proper alist (different fix
176 for bug#4138).
177 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
178 (Fgarbage_collect): Don't handle buffer_defaults specially.
179 (mark_object): Handle new symbol value structure rather than the old
180 special Lisp_Misc_* objects.
181 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
182 * term.c (set_tty_color_mode):
183 * bidi.c (bidi_initialize): Don't access the ->value field directly.
184 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
185 a buffer_local_flags.
186 * print.c (print_object): Get rid of impossible forwarding objects.
187
fd3998ff
EZ
1882010-04-19 Eli Zaretskii <eliz@gnu.org>
189
190 * bidi.c (bidi_get_type, bidi_get_category)
191 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
192 (bidi_type_of_next_char, bidi_level_of_next_char):
193 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 194
e42cd1a7
JB
1952010-04-19 Juanma Barranquero <lekktu@gmail.com>
196
197 * dired.c (Ffile_attributes): Fix typo in docstring.
198
6e104790 1992010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
200
201 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
202 NSInteger (Bug#5811).
203
6e104790 2042010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
205
206 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
207 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
208
6e104790 2092010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
210
211 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
212
6e104790
SM
2132010-04-19 Jan Djärv <jan.h.d@swipnet.se>
214
215 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
216 FRAME_LINE_TO_PIXEL_Y.
217
218 * xterm.c (x_set_window_size_1): Don't add border_width/height to
219 pixelwidth/height.
220
2212010-04-19 Chong Yidong <cyd@stupidchicken.com>
222
223 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
224 terminal frames (Bug#5837).
225
37dcfea0
EZ
2262010-04-19 Eli Zaretskii <eliz@gnu.org>
227
d1da276f
EZ
228 * .gdbinit (xsubchartable): New command.
229
37dcfea0
EZ
2302010-04-19 Eli Zaretskii <eliz@gnu.org>
231
232 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 233 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
234 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
235 and
236 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
237
e9515805
SM
2382010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
239
240 * alloc.c (Fpurecopy): Hash-cons if requested.
241 (syms_of_alloc): Update purify-flag docstring.
242
22aa44a8
JD
2432010-04-18 Jan Djärv <jan.h.d@swipnet.se>
244
245 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
246 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
247
ebb5722e
EZ
2482010-04-17 Eli Zaretskii <eliz@gnu.org>
249
250 Fix a crash when an NSM character is inserted at BEGV.
251
252 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
253 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
254 NEUTRAL_B or UNKNOWN_BT.
255
0f4442ef
EZ
2562010-04-16 Eli Zaretskii <eliz@gnu.org>
257
258 * xdisp.c (set_cursor_from_row): Don't consider possibility of
259 other rows with cursor unless they are different from this row and
260 this row is part of a continued line. (Bug#5943)
261
7d4e45f8
DN
2622010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
263
264 * s/freebsd.h: Restore osreldate.h include.
265 Suggested by Naohiro Aota.
266
5ba5ec85
J
2672010-04-16 Jan Djärv <jan.h.d@swipnet.se>
268
269 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
270
20af301d
CY
2712010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
272
273 * s/cygwin.h: Avoid linking against static libgcc.
274
a4b000fb
JL
2752010-04-15 Juri Linkov <juri@jurta.org>
276
277 * window.c: Add Qscroll_command.
278 Remove Vscroll_preserve_screen_position_commands.
279 (window_scroll_pixel_based, window_scroll_line_based): Check the
280 `scroll-command' property on the last command instead of searching
281 the last command in Vscroll_preserve_screen_position_commands.
282 (syms_of_window): Initialize and staticpro `Qscroll_command'.
283 Put Qscroll_command property on Qscroll_up and Qscroll_down.
284 (scroll-preserve-screen-position): Doc fix.
285 (Vscroll_preserve_screen_position_commands): Remove variable.
286
bc319ba4
DN
2872010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
288
6bb24457
DN
289 * xdisp.c (message): Do not use NO_ARG_ARRAY.
290
19d4c244
DN
2912010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
292
293 Reduce cpp use in Makefile.in.
294 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
295 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
296 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
297 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
298 (CRT0_COMPILE): Remove, inline it in the only user.
299
32129746
JL
3002010-04-14 Juri Linkov <juri@jurta.org>
301
302 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
303 `scroll-up-command' and `M-v' from `scroll-down' to
304 `scroll-down-command'.
305
9013a7f8
JL
3062010-04-14 Juri Linkov <juri@jurta.org>
307
308 * window.c (Vscroll_preserve_screen_position_commands): New variable
309 with the default value as the list of Qscroll_down and Qscroll_up.
310 (window_scroll_pixel_based, window_scroll_line_based): Search the
311 last command in the list Vscroll_preserve_screen_position_commands
312 instead of comparing with Qscroll_up and Qscroll_down.
313
4bef8d26
JD
3142010-04-13 Jan Djärv <jan.h.d@swipnet.se>
315
92848133
JD
316 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
317 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
318 does that.
319
4bef8d26
JD
320 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
321 to zero.
322
58b963f7
SM
3232010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
324
84164a0d
SM
325 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
326
2b0a91e7
SM
327 Try to solve the problem of spurious EOF chars in long lines of text
328 sent to interactive subprocesses.
329 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
330 (system_process_attributes): Remove unused var `ttotal'.
331 * process.c (send_process): Don't bother breaking long line with EOF
332 chars when talking to ttys any more.
333 (wait_reading_process_output): Output a warning when called in such
334 a way that it could block without being interruptible.
335
58b963f7
SM
336 Try to detect file modification within the same second.
337 * buffer.h (struct buffer): New field modtime_size.
338 * buffer.c (reset_buffer): Initialize it.
339 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
340 (Fverify_visited_file_modtime): Check it.
341 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
342 (Fset_visited_file_modtime): Set (or clear) it.
343
01f5787b
SM
3442010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
345
346 * process.c (status_notify): Remove unused var `ro'.
347
83725342
JD
3482010-04-12 Jan Djärv <jan.h.d@swipnet.se>
349
350 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
351 more than one visual (Bug#5938).
352
b9465836
DN
3532010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
354
50426a04
JB
355 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
356 Undefine.
b9465836 357
8d9c8ece
DN
3582010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
359
b1f52161
DN
360 Remove C_SWITCH_SYSTEM_TEMACS.
361 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
362 (malloc, realloc, free): Use emacs, not temacs for conditional
363 definition.
364
365 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
366 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
367
8d9c8ece
DN
368 Use autoconf, not cpp for some variables.
369 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
370 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
371 (ALL_CFLAGS): Use them as make variables.
372 (really-lwlib, really-oldXMenu): Do not pass them.
373
1ecb2d3f
JD
3742010-04-11 Jan Djärv <jan.h.d@swipnet.se>
375
376 * xmenu.c (apply_systemfont_to_dialog): New.
377 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
378
3a4fa2f2
SM
3792010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
380
97e53006
SM
381 * process.c (exec_sentinel): Preserve current-buffer.
382
3a4fa2f2
SM
383 * process.c (read_process_output): Move the save-current-buffer to
384 apply to both the filter and the non-filter branches.
385
88df7221
DN
3862010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
387
388 * s/msdos.h (UNEXEC): New definition.
389
5634ff85
YM
3902010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
391
6eff5c3d
YM
392 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
393 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
394
395 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
396 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
397 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
398 TRY_WINDOW_CHECK_MARGINS.
399
400 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
401 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
402 width only when it is for padding.
5634ff85 403
b13aef54
J
4042010-04-09 Jan Djärv <jan.h.d@swipnet.se>
405
406 * xfns.c (Fx_show_tip): Call try_window in a loop until
407 fonts_changed_p is zero (Bug#2423).
408
21d28484
EZ
4092010-04-08 Eli Zaretskii <eliz@gnu.org>
410
411 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
412 the end of TEXT_AREA. (Bug#5856)
413
0269ef77
JD
4142010-04-08 Jan Djärv <jan.h.d@swipnet.se>
415
416 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
417 HAVE_GCONF.
418
5930fe97
EZ
4192010-04-08 Eli Zaretskii <eliz@gnu.org>
420
421 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
422 prev.orig_type, for resolving type of NSM. (Bug#5858)
423
99852628
JD
4242010-04-08 Jan Djärv <jan.h.d@swipnet.se>
425
426 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
427 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
428 in current_font.
429 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
430 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
431 New functions.
432 (syms_of_xsettings): Initialize current_font.
433 defsubr Sfont_get_system_normal_font.
99852628
JD
434
435 * xsettings.h (Ffont_get_system_normal_font,
436 xsettings_get_system_normal_font): Declare.
437
438 * xfns.c (extern xlwmenu_default_font): Remove.
439 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
440 to xlwmenu.c.
441
442 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
443 menu items in UTF-8.
444
445 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
446 (apply_systemfont_to_menu): New function.
447 (set_frame_menubar, create_and_show_popup_menu): Call
448 apply_systemfont_to_menu.
449
7fc874c4
J
4502010-04-07 Jan Djärv <jan.h.d@swipnet.se>
451
452 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
453 FRAME_LINE_TO_PIXEL_Y.
454
455 * xterm.c (x_set_window_size_1): Don't add border_width/height to
456 pixelwidth/height.
457
863bf481
DN
4582010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
459
5e5a3b92
DN
460 Simplify code for HP machines.
461 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
462 for GNU_LINUX, not needed.
463 (UNEXEC, NEED_BSDTTY): Move definitions...
464 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
465
863bf481
DN
466 * m/iris4d.h (UNEXEC): Move definition ...
467 * s/irix6-5.h (UNEXEC): ... here.
468
3e6bec3b
JD
4692010-04-04 Jan Djärv <jan.h.d@swipnet.se>
470
471 * xfns.c (set_machine_and_pid_properties): New function.
472 (Fx_create_frame): Call set_machine_and_pid_properties.
473
2912322b
SM
4742010-04-03 Eli Zaretskii <eliz@gnu.org>
475
1502b819
EZ
476 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
477 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
478 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
479
2912322b
SM
480 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
481 in this function. (Bug#5703)
482
4832010-04-03 Chong Yidong <cyd@stupidchicken.com>
484
485 * nsterm.h: Fix last change.
486
c435b432
DN
4872010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
488
a568f507
DN
489 * m/intel386.h (NO_REMAP): Move definition ...
490 * s/msdos.h (NO_REMAP): ... here.
491
4cd9f6c2
DN
492 * m/vax.h (CRT0_DUMMIES): Remove, unused.
493
c435b432
DN
494 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
495 used on those platforms.
496
42a2c622
DN
4972010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
498
499 Remove extern errno declarations.
500 * xterm.c:
501 * xrdb.c:
502 * w32term.c:
503 * unexec.c:
504 * unexaix.c:
505 * sysdep.c:
506 * process.c:
507 * lread.c:
508 * keyboard.c:
509 * floatfns.c:
510 * filelock.c:
511 * fileio.c:
512 * emacs.c (main):
513 * ecrt0.c:
514 * dispnew.c:
515 * callproc.c:
516 * buffer.c: Remove errno extern declarations.
517 * s/netbsd.h (NEED_ERRNO): Remove.
518
8224f93d
DN
5192010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
520
521 Remove all uses of LIBX11_SYSTEM.
522 * Makefile.in (LIBX11_SYSTEM): Remove.
523 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
524 instead.
525
814062c7
EZ
5262010-04-01 Eli Zaretskii <eliz@gnu.org>
527
ed68db4d
EZ
528 Remove support for DJGPP v1.x (bug#5813).
529
530 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
531 * s/msdos.h:
532 * unexec.c (make_hdr, copy_text_and_data):
533 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 534 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
535 (IT_set_terminal_modes, __write, _rename, gethostname)
536 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
537 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
538 the value of __DJGPP__.
ed68db4d
EZ
539 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
540 compatibility code.
8224f93d
DN
541 * lread.c:
542 * gmalloc.c (memalign):
543 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
544 * emacs.c (main):
545 * dosfns.c (init_dosfns):
ed68db4d
EZ
546 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
547
52f4d8d5
EZ
5482010-04-01 Eli Zaretskii <eliz@gnu.org>
549
814062c7
EZ
550 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
551 string with `cursor' property comes from an `after-string'
552 overlay. (Bug#5816)
553
0dc2e11d
GM
5542010-04-01 Glenn Morris <rgm@gnu.org>
555
556 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
557 Define as Makefile variables.
558 (LIBX): Use above variables rather than directly using autoconf.
559
1d29df59
DN
5602010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
561
562 Clean up BSD_SYSTEM use.
563 * xterm.c:
564 * process.c:
565 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
566 for including <sys/ioctl.h>.
567 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
568 code is only used for MSDOS.
569
1546c559
JL
5702010-03-31 Juri Linkov <juri@jurta.org>
571
572 * image.c: Add `Qextension_data'.
573 (syms_of_image): Initialize and staticpro `Qextension_data'.
574 (Fimage_metadata): Rename from `Fimage_extension_data'.
575 (gif_load): Put GIF extension data to the property
576 `Qextension_data'.
577
b8a1d5a1
CY
5782010-04-05 Chong Yidong <cyd@stupidchicken.com>
579
580 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
581 terminal frames (Bug#5837).
582
6521c534
CY
5832010-03-31 Chong Yidong <cyd@stupidchicken.com>
584
585 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
586 * nsterm.h: Fix prototype.
587
52c30783
EZ
5882010-03-31 Eli Zaretskii <eliz@gnu.org>
589
590 * xdisp.c (highlight_trailing_whitespace): Support highlight of
591 trailing whitespace in right-to-left rows.
592
855a0da7
SM
5932010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
594
595 Get rid of the direct_output optimizations.
596 * keyboard.c (nonundocount): Remove extern declaration.
597 (command_loop_1): Remove brittle optimisation for cheap and
598 common operations.
599 * xdisp.c (redisplay_internal): Don't bother checking
600 redisplay_performed_directly_p any more.
601 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
602 any more.
603 * dispnew.c (redisplay_performed_directly_p)
604 (direct_output_for_insert, direct_output_forward_char):
605 * dispextern.h (redisplay_performed_directly_p)
606 (direct_output_for_insert, direct_output_forward_char): Remove.
607 * cmds.c (nonundocount): Make it static.
608
85738751 6092010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
610
611 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
612
85738751 6132010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
614
615 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
616 invisible (Bug#5766).
617
85738751 6182010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 619
855a0da7
SM
620 * xdisp.c (x_consider_frame_title, update_window_cursor):
621 Remove HAVE_NS conditionals.
194d44e7 622 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
623
624 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
625 filename for the title.
626 (ns_set_doc_edited): Do nothing if the selected window is a
627 minibuffer window.
628
629 * nsterm.h: Add prototypes for ns_set_name_as_filename and
630 ns_set_doc_edited.
631
632 * nsterm.m: Remove unneeded prototype.
633
85738751 6342010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
635
636 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
637 in the DOC file. (Bug#5336)
638
85738751 6392010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
640
641 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
642
75d1428c
SM
6432010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
644
645 * window.c (keys_of_window): Remove redundant/overridden bindings.
646
82043cfb
EZ
6472010-03-30 Eli Zaretskii <eliz@gnu.org>
648
649 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
650 Restore original behavior when the iterator is not bidi_p.
651
b5dd0ae7
DN
6522010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
653
654 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
655
bd924a5d
EZ
6562010-03-30 Eli Zaretskii <eliz@gnu.org>
657
658 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
659 are outside the range of cached character positions.
660
3580374b
JB
6612010-03-30 Juanma Barranquero <lekktu@gmail.com>
662
663 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
664
a7b02820
EZ
6652010-03-30 Eli Zaretskii <eliz@gnu.org>
666
667 Initial support for bidirectional editing.
668
669 * Makefile.in (obj): Include bidi.o.
670 (bidi.o): New target.
671
672 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
673 ($(BLD)/bidi.$(O)): New target.
674
675 * bidi.c: New file.
676
677 * buffer.h (struct buffer): New members bidi_display_reordering
678 and bidi_paragraph_direction.
679
680 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
681 and bidi_paragraph_direction.
682 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
683 and bidi-paragraph-direction.
684 (Fbuffer_swap_text): Swap the values of
685 bidi_display_reordering and bidi_paragraph_direction.
686
687 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
688 (bidi_type_t, bidi_dir_t): New types.
689 (bidi_saved_info, bidi_stack, bidi_it): New structures.
690 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
691 prev_stop, base_level_stop, and eol_pos.
692 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
693 (IT_STACK_SIZE): Enlarge to 5.
694 (struct glyph_row): New member reversed_p.
695 <string_buffer_position>: Update prototype.
696 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
697 glyph_row if bidi_it.paragraph_dir == R2L.
698 (struct glyph): New members resolved_level and bidi_type.
699
700 * dispnew.c (direct_output_forward_char): Give up if we need bidi
701 processing or buffer's direction is right-to-left.
702 (prepare_desired_row): Preserve the reversed_p flag.
703 (row_equal_p): Compare the reversed_p attributes as well.
704
705 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
706 bidi_init_it and set it->paragraph_embedding from the current
707 buffer's value of bidi_paragraph_direction.
708 (reseat_1): Initialize bidi_it.first_elt.
709 (set_iterator_to_next, next_element_from_buffer): Use the value of
710 paragraph_embedding to determine the paragraph direction.
711 (set_iterator_to_next): Under bidi reordering, call
712 bidi_get_next_char_visually. Call bidi_paragraph_init if the
713 new_paragraph flag is set in the bidi iterator.
714 (next_element_from_buffer): If bidi_it.first_elt is set,
715 initialize paragraph direction and find the first character to
716 display in the visual order. If reseated to a middle of a line,
717 prime the bidi iterator starting at the line's beginning. Handle
718 the situation where we overstepped stop_charpos due to
719 non-linearity of the bidi iteration. Likewise for when we back up
720 beyond the previous stop_charpos. When moving across stop_charpos,
721 record it in prev_stop.
722 (display_line): Set row->end and it->start for the next row to the
723 next character in logical order. Always extend reversed_p rows to
724 the end of line, even if they end at ZV. Copy the reversed_p flag
725 to the next glyph row. Keep calling set_cursor_from_row for
726 bidi-reordered rows even if we already have a possible candidate
727 for cursor position. Set row_end after all the row's glyphs have
728 been produced, by looping over the glyphs. Record the position
729 after EOL in it->eol_pos, and use it to set end_pos of the last
730 row produced for a continued line.
731 <Qright_to_left, Qleft_to_right>: New variables.
732 (syms_of_xdisp): Initialize and staticpro them.
733 (string_buffer_position_lim): New function.
734 (string_buffer_position): Most of code moved to
735 string_buffer_position_lim. Last argument and return value are
736 now EMACS_INT; all callers changed.
737 (set_cursor_from_row): Rewritten to support bidirectional text and
738 reversed glyph rows.
739 (text_outside_line_unchanged_p, try_window_id): Disable
740 optimizations if we are reordering bidirectional text and the
741 paragraph direction can be affected by the change.
742 (append_glyph, append_composite_glyph)
743 (produce_image_glyph, append_stretch_glyph): Set the
744 resolved_level and bidi_type members of each glyph.
745 (append_glyph): If the glyph row is reversed, prepend the glyph
746 rather than appending it.
747 (handle_stop_backwards): New function.
748 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
749 (reseat): call handle_stop_backwards to recompute prev_stop and
750 base_level_stop for the new position.
751 (handle_invisible_prop): Under bidi iteration, skip invisible text
752 using bidi_get_next_char_visually. If we are `reseat'ed, init the
753 paragraph direction. Update IT->prev_stop after skipping
754 invisible text.
755 (move_it_in_display_line_to): New variables prev_method
756 and prev_pos. Compare for strict equality in
757 BUFFER_POS_REACHED_P.
758 (try_cursor_movement): Examine all the candidate rows that occlude
759 point, to return the best match. If rows are bidi-reordered
760 and point moved backwards, back up to the row that is not a
761 continuation line, and start looking for a suitable row from
762 there.
763
764 * term.c (append_glyph): Reverse glyphs by pre-pending them,
765 rather than appending, if the glyph_row's reversed_p flag is set.
766 Set the resolved_level and bidi_type members of each glyph.
767
768 * .gdbinit (pbiditype): New command.
769 (pgx): Use it to display bidi level and type of the glyph.
770 (pitx): Display some bidi information about the iterator.
771 (prowlims, pmtxrows): New commands.
772
32a8894e
DN
7732010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
774
775 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
776 * s/usg5-4.h (LIBS_DEBUG):
777 * s/irix6-5.h (C_DEBUG_SWITCH):
778 * s/gnu-linux.h (LIBS_DEBUG):
779 * s/darwin.h (LIBS_DEBUG):
780 * s/bsd-common.h (LIBS_DEBUG):
781 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
782 * m/iris4d.h (LIBS_DEBUG):
783 * m/hp800.h (LIBS_DEBUG): Remove definitions.
784
785 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
786 (LIBS_DEBUG): Remove definition.
787
649dbf36
CY
7882010-03-27 Chong Yidong <cyd@stupidchicken.com>
789
790 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
791 Windows.
792
cad4261f
YM
7932010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
794
795 * process.c (Fmake_network_process): Don't call turn_on_atimers around
796 `connect' (Bug#5723).
797
cd591dbc
HE
7982010-03-25 Helmut Eller <eller.helmut@gmail.com>
799
800 * process.c (Fmake_network_process): Call `select' for interrupted
801 `connect' rather than creating new socket (Bug#5173).
802
e867cb5d 8032010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
804
805 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
806
807 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
808
809 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
810
e867cb5d 8112010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
812
813 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
814 XLoadQueryFont.
815
e867cb5d 8162010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
817
818 * coding.c (decode_coding_ccl): Fix previous change for the
819 multibyte case.
fb608df3
KH
820 (encode_coding_ccl): Don't setup ccl program here. Fix for the
821 case that the output buffer is fullfilled.
822 (encode_coding): Setup ccl program here.
fbdc1721 823
e867cb5d 8242010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
825
826 * editfns.c (Fformat): Account for string precision when computing
827 field width (Bug#5710).
828
5845f0ed
DN
8292010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
830
814fb708
DN
831 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
832
5845f0ed
DN
833 Simplify LIBS_MACHINE definitions.
834 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
835 * m/iris4d.h (LIBS_MACHINE): Likewise.
836 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
837 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 838 * s/netbsd.h: Remove commented out code.
5845f0ed 839
b7064064
DN
8402010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
841
df7734b2
DN
842 Remove dead code dealing with POSIX_SIGNALS.
843 * atimer.c (set_alarm): Remove dead code, all USG systems define
844 POSIX_SIGNALS.
845 * data.c (arith_error): Likewise.
846 * keyboard.c (input_available_signal, handle_user_signal)
847 (interrupt_signal): Likewise.
848 * process.c (sigchld_handler): Likewise.
849 (create_process): Remove if 0 code. Remove HPUX conditional when
850 !defined (POSIX_SIGNALS), it cannot be true.
851 * syssignal.h: Remove USG5_4 and USG conditionals when
852 !POSIX_SIGNALS, they cannot be true.
853
b7064064
DN
854 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
855 NO_SOCK_SIGIO, not used anymore.
856
55da5ee3
DN
8572010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
858
0be96e3a
DN
859 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
860 support vax on BSDs.
861
55da5ee3
DN
862 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
863 * s/aix4-2.h (ORDINARY_LINK): ... here.
864
c0282183
AS
8652010-03-21 Andreas Schwab <schwab@linux-m68k.org>
866
82c3d67a
AS
867 * Makefile.in (abs_builddir): Define.
868 (bootstrap_exe): Use it.
869 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 870
3613edce
SM
8712010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
872
873 * Makefile.in (bootstrap_exe): Use an absolute name.
874
7f110ddc
DN
8752010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
876
22e87574
DN
877 Remove support for old GNU/Linux using libc version 5.
878 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
879 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
880
05a670e6
DN
881 Consolidate redundant definitions in s/bsd-common.h.
882 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
883 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
884 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
885 doing it in all files that include this one.
886 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
887 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
888 (LDAV_SYMBOL, KERNEL_FILE): Remove.
889 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
890 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
891 (LDAV_SYMBOL, KERNEL_FILE): Remove.
892 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
893 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
894 (LDAV_SYMBOL, KERNEL_FILE): Remove.
895
2968f561
DN
896 Consolidate redundant definitions.
897 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
898 it's undefined in all files that include this one.
899 (POSIX_SIGNALS): Define here instead of doing it in all files that
900 include this one.
901 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
902 (POSIX_SIGNALS): Do not define.
903 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
904 (POSIX_SIGNALS): Do not define.
905 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
906 (POSIX_SIGNALS): Do not define.
907
15d25dc0
DN
908 Remove support for old UNIX System V systems.
909 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
910 * s/usg-5-4-2.h: Remove.
911
07e339e4
DN
912 Remove support for Solaris on PPC and for old versions.
913 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
914 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
915 that cancel each other.
916 * s/sol2-3.h:
917 * s/sol2-4.h:
918 * s/sol2-5.h: Remove.
919 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
920 (NO_REMAP): Remove, unused.
921 (UNEXEC): Move definition ...
922 * s/aix4-2.h (UNEXEC): ... here.
923
7f110ddc
DN
924 * s/openbsd.h: Remove support for non-ELF and for systems that do
925 not support shared libraries.
926 * s/netbsd.h:
927 * s/freebsd.h: Likewise.
928
605f35cd
DN
9292010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
930
931 Remove non-working support for lynxos 3.0.
932 * s/lynxos.h: Remove file.
933
934 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
935 COFF_BSD_SYMBOLS, nothing defines it anymore.
936
aed71cf4
DN
9372010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
938
939 Remove obsolete uses of HAVE_SHM.
940 * emacs.c (standard_args):
941 (Fdump_emacs):
942 (syms_of_emacs): Remove code depending on HAVE_SHM.
943
944 * alloc.c: Remove HAVE_SHM dependent definition.
945
946 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
947
aded53ff
GM
9482010-03-18 Glenn Morris <rgm@gnu.org>
949
17284745
GM
950 * emacs.c (USAGE4): Hard-code bug address.
951 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
952 (bug_reporting_address): Remove.
953 (main): Don't call bug_reporting_address.
954
aded53ff
GM
955 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
956 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
957
303500aa
CY
9582010-03-15 Chong Yidong <cyd@stupidchicken.com>
959
960 * xfns.c (Fx_create_frame):
961 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
962 on left.
963
cef3058f
CY
9642010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
965
966 * editfns.c (Fformat): Account for string precision when computing
967 field width (Bug#5710).
968
a647d59d
CY
9692010-03-12 Chong Yidong <cyd@stupidchicken.com>
970
4fa42018
CY
971 * xfns.c (Fx_create_frame): Set default to Qright.
972
a647d59d
CY
973 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
974 all window systems.
975
6da23aaa
EZ
9762010-03-12 Eli Zaretskii <eliz@gnu.org>
977
a96f6398 978 These changes remove termcap.c from the build on Posix platforms.
83d02def 979 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
980 (MSDOS_OBJ): ...to here.
981 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
982 now identical to when LIBS_TERMCAP is defined.
983
984 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
985
986 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
987
a96f6398 988 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 989
288f9fc0
CY
9902010-03-10 Chong Yidong <cyd@stupidchicken.com>
991
992 * Branch for 23.2.
993
d48cd3f4
SM
9942010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
995
996 Cleanup setup of gl_state in various parts of the code.
997 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
998 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
999 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1000 (skip_chars):
1001 * regex.c (regex_compile): Use it.
1002 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1003 it's now set in regex_compile when/if we need it.
1004
618db430
SM
10052010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1006
c0335e02
SM
1007 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1008 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1009 (QUIT): Use it to consolidate code and remove redundancy.
1010 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1011
254c06a8
SM
1012 * regex.c (regex_compile): Setup gl_state as well.
1013
618db430
SM
1014 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1015 (in_classes): Use CONSP before XCAR/XCDR.
1016
233f0c9f
CY
10172010-03-03 Chong Yidong <cyd@stupidchicken.com>
1018
1019 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1020 definitions, so that keyboard macros are correctly handled
1021 (Bug#5481).
1022
75f80e63
EZ
10232010-03-02 Eli Zaretskii <eliz@gnu.org>
1024
1025 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1026 text that could be relocated inside the call to emacs_mule_char.
1027 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1028 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1029
dcfb9bc4
KH
10302010-03-02 Kenichi Handa <handa@m17n.org>
1031
fc9a17bc
KH
1032 * character.c (parse_str_as_multibyte): Fix handling of the
1033 multibyte form of raw-bytes.
1034 (str_as_multibyte): Likewise.
1035
dcfb9bc4
KH
1036 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1037 form of raw-bytes.
1038
412c01b6
CY
10392010-02-28 Chong Yidong <cyd@stupidchicken.com>
1040
1041 * charset.c (load_charset_map_from_file)
1042 (load_charset_map_from_vector): Zero out allocated
1043 charset_map_entries before using them.
1044
df7e1ea0
AS
10452010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1046
1047 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1048
fe69a722
CY
10492010-02-27 Chong Yidong <cyd@stupidchicken.com>
1050
4ed28cf4
CY
1051 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1052 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1053
7379cfce
KH
10542010-02-26 Kenichi Handa <handa@m17n.org>
1055
f88cc4d6
KH
1056 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1057
7379cfce
KH
1058 * xdisp.c (reseat_to_string): Fix previous change.
1059
cf2fdcfb
CY
10602010-02-26 David Reitter <david.reitter@gmail.com>
1061
1062 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1063 Lisp_Object (Bug#4736).
1064
cc6c7c75
KH
10652010-02-25 Kenichi Handa <handa@m17n.org>
1066
1067 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1068
32e737d7
JD
10692010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1070
1071 * xterm.c (XTflash): Move declarations before statements.
1072
1073 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1074 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1075 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1076 (xg_create_tool_bar): Remove unused variables.
1077 (x_wm_set_size_hint): Move declarations before statements.
1078 (xg_create_frame_widgets): Remove variable grav,
1079
676cae9f
CY
10802010-02-21 Chong Yidong <cyd@stupidchicken.com>
1081
1082 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1083
886cc2b8
SM
10842010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1085
1086 * term.c (fatal): Add a final \n if needed (bug#5596).
1087
ddb2d8e2
CY
10882010-02-18 Chong Yidong <cyd@stupidchicken.com>
1089
1090 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1091
2a4f8d3d
GM
10922010-02-18 Glenn Morris <rgm@gnu.org>
1093
1094 * callint.c (Finteractive): Doc fix.
1095
ebaf11b6
KH
10962010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1097
886cc2b8
SM
1098 * coding.c (record_conversion_result):
1099 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1100 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1101 memory allocation error.
1102
d0396581
KH
11032010-02-17 Kenichi Handa <handa@m17n.org>
1104
886cc2b8
SM
1105 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1106 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1107 (decode_coding): Setup ccl program here. Keep looping when the
1108 decoder stopped because the output buffer is
1109 fullfilled (bug#5534).
1110
1111 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1112
98599f74
JD
11132010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1114
471e4f04 1115 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1116 bug #5571.
886cc2b8 1117 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1118 overdrawn.
98599f74 1119
182659ae
JD
11202010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1121
1122 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1123 doing_interact here.
1124 (ice_connection_closed): New function.
1125 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1126 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1127 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1128 returns I/O error.
1129 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1130 bug #5512.
1131
9be32c4e 11322010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1133
1134 * nsfont.m (nsfont_open): The system's value for the font descent
1135 is negative, so round it down to avoid clipping.
1136
a2f3eb19
CY
11372010-02-06 Chong Yidong <cyd@stupidchicken.com>
1138
1139 * charset.c (load_charset_map_from_file)
1140 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1141 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1142
3088147c
CY
11432010-02-05 Chong Yidong <cyd@stupidchicken.com>
1144
1145 * charset.c (load_charset_map_from_file): Allocate large
1146 charset_map_entries structure on the heap rather than the stack.
1147 (Bug#5526).
1148
b57d9029
KH
11492010-01-31 Kenichi Handa <handa@m17n.org>
1150
1151 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1152 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1153
c67d885b
CY
11542010-01-31 Chong Yidong <cyd@stupidchicken.com>
1155
1156 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1157 <deactivated@gmail.com> (Bug#3605).
1158
8fab2362
CY
11592010-01-31 David De La Harpe Golden <david@harpegolden.net>
1160
1161 * fileio.c (Frename_file): Correctly rename symlinks to
1162 directories (Bug#5496).
1163
cb2a62f2
CY
11642010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1165
1166 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1167
944c7a26
AS
11682010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1169
1170 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1171
c024ac08
CY
11722010-01-29 Chong Yidong <cyd@stupidchicken.com>
1173
1174 * frame.c (DEFAULT_ROWS): Change default to 35.
1175
1176 * xfns.c (x_default_font_parameter): Change default XFT font to
1177 monospace-10 (Bug#3643).
1178
af93af83
EZ
11792010-01-29 Eli Zaretskii <eliz@gnu.org>
1180
1181 * w32inevt.c (key_event): Remove unnecessary comparison of
1182 event->uChar.AsciiChar with 128.
1183
ca0eb708
CY
11842010-01-28 Chong Yidong <cyd@stupidchicken.com>
1185
b242dbfc
CY
1186 * fileio.c (Frename_file): Fix last change (Bug#5487).
1187
ca0eb708
CY
1188 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1189
1190 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1191
45d45af5
JD
11922010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1193
1194 * xfns.c (Fx_create_frame): Remove window size matching code from
1195 2010-01-15.
1196 (x_get_current_desktop, x_get_desktop_workarea): Remove
1197
7e233730
JR
11982010-01-27 Jason Rumney <jasonr@gnu.org>
1199
1200 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1201 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1202
86e893e3
KH
12032010-01-27 Kenichi Handa <handa@m17n.org>
1204
1205 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1206 pattern string (Bug#4209).
86e893e3 1207
8719abec
CY
12082010-01-27 David De La Harpe Golden <david@harpegolden.net>
1209
1210 * fileio.c (Frename_file): Call copy-directory and
1211 delete-directory for directories, in order to handle cross-device
1212 renaming (Bug#3353).
1213
844794c8
JD
12142010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1215
aa3e13b5 1216 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1217 sizes 24 and 10. Bug #3643.
844794c8 1218
bd4b5750
SM
12192010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1220
8dc1adf6 1221 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1222 * keymap.c (shadow_lookup): Add `remap' arg.
1223 (describe_map, describe_vector): Update calls to shadow_lookup.
1224 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1225 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1226 perform remapping during shadow_lookup check of remapped_sequences.
1227
285d07e2
CY
12282010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1229
1230 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1231 png_check_sig, which has been removed in libpng 1.4.
1232
c6d09b8d
CY
12332010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1234
1235 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1236 lacks this header file).
1237
3d782998
YM
12382010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1239
1240 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1241 as in Emacs 22.
1242
2aff7c53
YM
12432010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1244
1245 * lisp.h (make_pure_string): String pointer arg now points to const.
1246
1247 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1248 args now point to const.
1249
74327f7a
EZ
12502010-01-22 Eli Zaretskii <eliz@gnu.org>
1251
1252 * lread.c (Fload): Don't treat files without .elc extension as
1253 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1254 them. (bug#5303)
1255
4d1e6632
KH
12562010-01-20 Kenichi Handa <handa@m17n.org>
1257
1258 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1259 treat the source as actual byte sequence.
1260
1fdede8f
AM
12612010-01-19 Alan Mackenzie <acm@muc.de>
1262
1263 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1264 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1265 `signal_after_change_p' to `coherent_change_p', and make the
1266 invocation of `modify_region' conditional on it.
1267
67477f30
JD
12682010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1269
1270 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1271 for debug purpose.
1272 (syms_of_xsettings): Declare xft-settings.
1273
244b023e
CY
12742010-01-18 Chong Yidong <cyd@stupidchicken.com>
1275
1276 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1277
617364fe
CY
12782010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1279
1280 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1281
4fe22cdf
CY
12822010-01-16 Chong Yidong <cyd@stupidchicken.com>
1283
1284 * emacs.c (standard_args): Adjust arg priorities to reflect how
1285 they are processed in startup.el.
1286
e118d2be
AS
12872010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1288
1289 * Makefile.in (lisp, shortlisp): Update.
1290
523ae620
SM
12912010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1292
1293 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1294 code, link the new kboard into all_kboard before running Lisp code,
1295 and protect the new terminal with GCPRO (Bug#5365).
1296 (x_term_init): Remove unused var `atom'.
1297 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1298
f0d13888
JD
12992010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1300
1301 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1302 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1303 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1304 this. Bug #3643.
f0d13888 1305
cc320f07
KH
13062010-01-15 Kenichi Handa <handa@m17n.org>
1307
1308 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1309
7ffdf101
CY
13102010-01-15 Chong Yidong <cyd@stupidchicken.com>
1311
1312 * nsterm.m (Qnone): Define.
1313
1314 * nsfns.m (Qnone): Move definition to nsterm.m.
1315
d12bd917
KH
13162010-01-14 Kenichi Handa <handa@m17n.org>
1317
1318 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1319 systems.
1320
d9a7c140
KH
13212010-01-14 Kenichi Handa <handa@m17n.org>
1322
1323 Make auto-composition work on all buffers even if they are
1324 fundamental mode.
1325
1326 * composite.c (Vauto_composition_mode): New variable.
1327 (composition_compute_stop_pos): Check Vauto_composition_mode
1328 instead of Vauto_composition_function.
1329 (composition_adjust_point, Ffind_composition_internal): Likewise.
1330 (syms_of_composite): Declare Lisp variable
1331 "auto-composition-mode" here.
1332
63286bb2
CY
13332010-01-13 Chong Yidong <cyd@stupidchicken.com>
1334
1335 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1336 during call to vendor-specific-keysyms (Bug#5365).
1337
c2623ee7
YM
13382010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1339
1340 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1341 Call SIGNAL_THREAD_CHECK (Bug#5333).
1342
1343 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1344 Call SIGNAL_THREAD_CHECK.
1345
0b5397c2
SM
13462010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1347
1348 Try to fix bug#5314. This is probably not the final word, tho.
1349 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1350 recent-auto-save-p as a side-effect.
1351 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1352 * buffer.c (Fkill_buffer, reset_buffer):
1353 * editfns.c (Fsubst_char_in_region):
1354 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1355 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1356
dc954cb2
KH
13572010-01-13 Kenichi Handa <handa@m17n.org>
1358
1359 Display buffer name, etc. in mode line by composing correctly.
1360
1361 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1362 STRING is not nil.
0b5397c2 1363 (display_mode_element): Adjust for the change of
dc954cb2
KH
1364 decode_mode_spec and display_line.
1365 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1366 (display_string): Handle the case that STRING is non-null and
1367 LISP_STRING is not nil.
1368
0b5397c2
SM
1369 * xterm.c (x_draw_composite_glyph_string_foreground):
1370 Pay attention to s->face->overstrike.
dc954cb2
KH
1371
1372 * composite.c (composition_reseat_it): Don't check PT if STRING is
1373 non nil.
1374
4a00eaca
YM
13752010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1376
1377 * keyboard.c (read_char): Don't apply previous change when current
1378 buffer is unchanged by command execution.
1379
60abb287
JD
13802010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1381
1382 * keyboard.c (read_char): Return after executing from special map.
1383
893db5bc
GM
13842010-01-12 Glenn Morris <rgm@gnu.org>
1385
1386 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1387 bug-gnu-emacs rather than emacs-pretest-bug.
1388
4d03ece0
CY
13892010-01-11 Chong Yidong <cyd@stupidchicken.com>
1390
1391 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1392 initializing the Lisp variables that depend on them.
1393
1df47e38
YM
13942010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1395
1396 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1397 Clear areas that will not be updated after change of menu bar lines.
1398 Clear the menu bar window's current matrix when the window gets empty.
1399
2f1c6384
CY
14002010-01-09 Chong Yidong <cyd@stupidchicken.com>
1401
e398c61c
CY
1402 * intervals.h, textprop.c (extend_property_ranges): Return value
1403 and args changed. Discard properties that begin at or after the
1404 new end (Bug#5306).
1405
1406 * editfns.c (Fformat): Caller changed.
1407
e5a29a10
CY
1408 * nsterm.m (ns_set_default_prefs): Delete function.
1409 (syms_of_nsterm): Initialize ns_command_modifier,
1410 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1411 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1412
2f1c6384
CY
1413 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1414 position (Bug#4040).
1415
d427a9fa
EZ
14162010-01-09 Eli Zaretskii <eliz@gnu.org>
1417
1418 * editfns.c (Ffloat_time): Doc fix.
1419
21b9df2f
JD
14202010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1421
1422 * xfns.c (Fx_create_frame): Don't create frame larger than display
1423 by default bug#3643.
1424
4b00d3b1
YM
14252010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1426
1427 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1428 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1429 windows above internal border.
1430
1431 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1432 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1433 windows above internal border.
1434
1435 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1436 tool bar windows specially.
1437
1438 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1439
1440 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1441 specially.
1442 (XTflash): Take account of menu bar height.
1443
1444 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1445 specially.
1446
5075d853
JD
14472010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1448
ac146f82 1449 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1450 also be true before we can return early (bug #5339).
1451
474217c8
CY
14522010-01-06 David Reitter <david.reitter@gmail.com>
1453
1454 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1455 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1456 (Bug#3233).
1457
c0e6d47d
JD
14582010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1459
d0cf45b7
JD
1460 * font.c (font_open_entity): Enable chache and call cached_font_ok
1461 for the driver if defined.
1462 (QCuser_spec): New symbol.
1463 (font_spec_from_name): Save name as user-spec.
1464 (font_load_for_lface): Keep user-spec instead of name.
1465 (font_open_by_name): Save name as user-spec.
1466 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1467 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1468
1469 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1470 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1471 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1472
1473 * font.h (struct font_driver): Add cached_font_ok.
1474
c0e6d47d
JD
1475 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1476
7c583cd8
JD
14772010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1478
1479 * xterm.c (x_new_font): Move code for setting rows/cols before
1480 resizing ...
ac146f82 1481 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1482
1483 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1484 (xg_frame_resized, xg_frame_set_char_size):
1485 Call xg_clear_under_internal_border.
7c583cd8 1486 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1487
03f77f0a
CY
14882010-01-05 Chong Yidong <cyd@stupidchicken.com>
1489
1490 * keyboard.c (read_key_sequence): Catch keyboard switch after
1491 making a new tty frame (Bug#5095).
1492
2a1ef5be
KH
14932010-01-05 Kenichi Handa <handa@m17n.org>
1494
1495 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1496
e3eb1dae
SM
14972010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1498
1499 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1500 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1501 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1502
777013f2
MA
15032010-01-03 Michael Albinus <michael.albinus@gmx.de>
1504
1505 * dbusbind.c (xd_add_watch): Improve debug message.
1506 (xd_remove_watch): Improve debug message. If DATA is the session
1507 bus, unset D-Bus session environment.
1508 (Fdbus_init_bus): Pass the bus as argument to
1509 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1510
8932b1c2
CY
15112010-01-01 Chong Yidong <cyd@stupidchicken.com>
1512
87231e2c
CY
1513 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1514
4801c5fa
CY
1515 * lread.c (syms_of_lread): Make it clearer that these are the
1516 names of loaded files (Bug#5068).
1517
8932b1c2
CY
1518 * eval.c (run_hook_with_args): Handle the case where the global
1519 value has the obsolete single-function form (Bug#5026).
1520
11e3c684
CY
15212009-12-27 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * minibuf.c (Fall_completions): Minor optimization.
1524
5b28ce35
EZ
15252009-12-26 Eli Zaretskii <eliz@gnu.org>
1526
5ce6e4f4
JB
1527 * .gdbinit (pgx): Fix display of composite glyphs.
1528 Display cmp.from and cmp.to as well.
1529 (pitx): Fix last change.
5b28ce35 1530
bcffff46
KH
15312009-12-25 Kenichi Handa <handa@m17n.org>
1532
1533 * composite.h (composition_adjust_point): Update prototype.
1534
1535 * composite.c (composition_reseat_it): Don't make a composition
1536 spanning over point.
1537 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1538 composable characters.
1539 (composition_adjust_point): New arg NEW_PT. Callers changed.
1540
1541 * keyboard.c (command_loop_1): Force redisplay if the last point
1542 was within a composition.
1543 (adjust_point_for_property): Don't adjust point for automatic
1544 composition when called after buffer modification.
1545
3f670e9a
EZ
15462009-12-19 Eli Zaretskii <eliz@gnu.org>
1547
5ce6e4f4
JB
1548 * .gdbinit (pitx): Don't use enum names, use their values.
1549 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1550 (pgx): Don't use enum names, use their values.
1551 (pitmethod): New helper command.
1552 (pitx): Use it to display iteration method.
1553 (pgrowit): New command.
1554
ad903955
EZ
1555 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1556
3f670e9a
EZ
1557 Update dependencies in Makefile.in.
1558
1559 * Makefile.in (alloc.o): Depend on termhooks.h.
1560 (atimer.o): Depend on blockinput.h.
1561 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1562 and frame.h.
1563 (callint.o): Depend on systime.h, coding.h, and composite.h.
1564 (callproc.o): Depend on buffer.h.
1565 (casefiddle.o): Don't depend on charset.h.
1566 (casetab.o): Depend on character.h.
1567 (ccl.o): Depend on composite.h.
1568 (chartab.o): Depend on ccl.h.
1569 (cm.o): Depend on dispextern.h.
1570 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1571 (coding.o): Don't depend on $(INTERVALS_H).
1572 (composite.o): Don't depend on dispextern.h explicitly (it's in
1573 $(INTERVALS_H)). Depend on ccl.h.
1574 (data.o): Depend on systime.h, coding.h, composite.h,
1575 dispextern.h, font.h, and ccl.h.
1576 (dired.o): Depend on composite.h.
1577 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1578 composite.h (it's in $(INTERVALS_H)).
1579 (doc.o): Depend on systime.h, coding.h, and composite.h.
1580 (editfns.o): Don't depend explicitly on dispextern.h.
1581 (emacs.o): Depend on frame.h and coding.h.
1582 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1583 (fileio.o): Depend on frame.h and commands.h. Don't depend
1584 explicitly on dispextern.h.
1585 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1586 composite.h.
1587 (fns.o): Don't depend on termhooks.h.
1588 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1589 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1590 coding.h, $(INTERVALS_H), window.h, xterm.h.
1591 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1592 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1593 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1594 fontset.h, ccl.h, and ftfont.h.
1595 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1596 (gtkutil.o): Depend on dispextern.h and composite.h.
1597 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1598 termhooks.h, and ccl.h.
1599 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1600 (intervals.o): Depend on systime.h and coding.h.
1601 (keyboard.o): Depend on composite.h and coding.h.
1602 (keymap.o): Depend on coding.h and frame.h.
1603 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1604 (macros.o): Depend on systime.h, coding.h, and composite.h.
1605 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1606 and atimer.h.
1607 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1608 dispextern.h explicitly.
0b5397c2
SM
1609 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1610 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1611 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1612 (regex.o): Don't depend on charset.h.
1613 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1614 (search.o): Don't depend explicitly on composite.h.
1615 (sound.o): Depend on atimer.h and systime.h.
1616 (syntax.o): Don't depend explicitly on composite.h.
1617 (sysdep.o): Depend on coding.h and composite.h.
1618 (term.o): Depend on xterm.h and buffer.h.
1619 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1620 (textprop.o): Don't depend on dispextern.h explicitly.
1621 (undo.o): Depend on dispextern.h.
1622 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1623 dispextern.h and composite.h explicitly.
1624 (xdisp.o): Depend on ccl.h.
1625 (xfaces.o): Depend on coding.h and ccl.h.
1626 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1627 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1628 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1629 ftfont.h.
1630 (xgselect.o): New dependency.
1631 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1632 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1633 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1634 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1635 (xsmfns.o): Depend on frame.h and dispextern.h.
1636 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1637 sysselect.h.
1638
7a6f7fea
AS
16392009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1640
1641 * font.c (Fclear_font_cache): Pass correct cache argument to
1642 font_clear_cache.
1643
f4c21026
AS
16442009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1645
1646 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1647 twice.
1648
f7ab0997
CY
16492009-12-15 Chong Yidong <cyd@stupidchicken.com>
1650
1651 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1652 calling file-remote-p. Reported by Jim Meyering.
1653
fa8e045a
MA
16542009-12-15 Michael Albinus <michael.albinus@gmx.de>
1655
1656 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1657 avoid compiler warnings. (Bug #5217)
fa8e045a 1658
a63dba42
KH
16592009-12-14 Kenichi Handa <handa@m17n.org>
1660
1661 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1662 in 8-bit encoding.
1663
5ce6e4f4 16642009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1665
1666 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1667 tooltip windows.
1668
223e5fc6
JD
16692009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1670
36acb2a7
JD
1671 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1672 Xatom_net_window_type.
1673
1674 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1675 Xatom_net_window_type.
1676
b8f00677
JD
1677 * xterm.c (my_log_handler): New function.
1678 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1679 so we can filter out buggy messages. (Bug #5120).
b8f00677 1680
e5f0bc9a
JD
1681 * xterm.c (xg_scroll_callback): Parameter list changed,
1682 use parameter GtkScrollType to determine scroll/line/page.
1683 Only allow dragging if a button < 4 is grabbed (bug #5177).
1684 (xg_end_scroll_callback): New function.
1685 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1686 xg_create_scroll_bar.
1687
1688 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1689 (scroll_end_callback): Remove.
1690 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1691 button-release-event. Replace value-changed event with change-value,
1692 bug #5177,
1693 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1694 bug #5177.
1695
1696 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1697 (xg_create_scroll_bar): Add GCallback end_callback.
1698
223e5fc6
JD
1699 * xftfont.c (QClcdfilter): New variable.
1700 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1701 (syms_of_xftfont): Initialize QClcdfilter.
1702
3c055b77
JD
17032009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1704
1705 * xsettings.c (struct xsettings): Add member seen.
1706 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1707 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1708 (apply_xft_settings): Only update Xft settings with what member seen
1709 indicates as new.
1710
05fe33ff
EZ
17112009-12-12 Eli Zaretskii <eliz@gnu.org>
1712
1713 * dispextern.h (struct text_pos): Use EMACS_INT;
1714 (struct glyph): Use EMACS_INT for charpos.
1715 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1716 region_beg_charpos, region_end_charpos,
1717 redisplay_end_trigger_charpos, and also for
1718 iterator_stack_entry.end_charpos and
1719 iterator_stack_entry.stop_charpos.
1720
e8d7886a
JD
17212009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1722
5ce6e4f4 1723 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1724 (xg_create_scroll_bar): Call scroll_end_callback on button release
1725 event (bug #5177).
1726 (xg_event_is_for_scrollbar): != replaced with ==.
1727
d0db2ec8
KH
17282009-12-12 Kenichi Handa <handa@m17n.org>
1729
1730 * ftfont.c (struct ftfont_info): New member matrix.
1731 (ftfont_open): Setup xftfont_info->matrix.
1732 (MFLTFontFT): New member matrix.
1733 (FLOOR, CEIL, ROUND): New macros.
1734 (ftfont_get_metrics): Handle matrix transformation.
1735 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1736
1737 * xftfont.c (struct xftfont_info): New member matrix.
1738 (xftfont_open): Setup xftfont_info->matrix.
1739
17402009-12-10 Kenichi Handa <handa@m17n.org>
1741
1742 * xdisp.c (append_space_for_newline): Consider face-remapping.
1743
2cc7b62f
AS
17442009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1745
b87dd913
AS
1746 * xsettings.c: Include "keyboard.h".
1747
eba5eb94
AS
1748 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1749
2cc7b62f
AS
1750 Fix implicit function declarations.
1751 * cmds.c: Include "frame.h".
1752 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1753 * frame.h: Move declaration of delete_frame outside of
1754 HAVE_WINDOW_SYSTEM.
1755
a4ef73c8
CY
17562009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1757
1758 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1759
1760 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1761 GTK builds.
1762
944a300c
AS
17632009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1764
1765 * unexelf.c (unexec): Don't search for .data twice.
1766
022eef62
CY
17672009-12-05 Chong Yidong <cyd@stupidchicken.com>
1768
426ac949
CY
1769 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1770 if push failed.
1771 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1772 of push_display_prop (Bug#5000).
1773
022eef62
CY
1774 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1775 value of font_list_entities (Bug#5085).
1776
be95bee9
JB
17772009-12-04 Juanma Barranquero <lekktu@gmail.com>
1778
1779 Fix `string-to-number' to deal consistently with integers and floats.
1780 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1781 trailing characters, not just whitespace.
1782 (read1): Pass new arg 0 to keep old behavior.
1783 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1784 trailing chars, as it is already done for integers. Doc fixes.
1785 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1786
24c2d7ce
EZ
17872009-12-04 Eli Zaretskii <eliz@gnu.org>
1788
0b5397c2
SM
1789 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1790 Delete unused enumeration value.
24c2d7ce 1791
7e694795
EZ
17922009-12-03 Eli Zaretskii <eliz@gnu.org>
1793
1794 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1795
84b31826
SM
17962009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1797
1798 * process.c (Fmake_network_process): Fix up the tests for
1799 "connectionless socket", so they DTRT for seqpacket sockets as well.
1800
f00c449b
SM
18012009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1802
1803 * process.c (Qseqpacket): New symbol.
1804 (HAVE_SEQPACKET): New macro.
1805 (Fmake_network_process): Accept new :type `seqpacket'.
1806 (init_process): Add `seqpacket' feature when applicable.
1807 (syms_of_process): Initialize Qseqpacket.
1808
8096a0ff
YM
18092009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1810
1811 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1812 if entity is Qnil.
1813
3e0de07f
SM
18142009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1815
1816 * print.c (print_preprocess): Preprocess the key_and_value table of
1817 hashtables, even tho they're "hidden" (bug#5082).
1818
abeafb2a
JD
18192009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1820
1821 * frame.c (frame_make_pointer_invisible)
1822 (frame_make_pointer_visible): Declare f before statements.
1823
4bf47195
EZ
18242009-11-28 Eli Zaretskii <eliz@gnu.org>
1825
1826 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1827 omitted dependencies on lisp.h.
1828
c525b3f2
JD
18292009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1830
ece2d4ed
JD
1831 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1832 is NULL.
1833
1834 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1835
1836 * frame.c (frame_make_pointer_invisible)
3e0de07f 1837 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1838 frame.
1839
c525b3f2
JD
1840 * search.c (simple_search): Remove warning by making *p const.
1841
2f00e299
DN
18422009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1843
1844 * xdisp.c (power_letter): Remove duplicate const.
1845
084b049b
JD
18462009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1847
a1fadc6f
JD
1848 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1849
5ce6e4f4 1850 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1851 defaults (bug #5025).
1852
28259cac
SM
18532009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1854
1855 * insdel.c (adjust_markers_for_delete): Move it in the
1856 right direction! (bug#4803)
1857
e8e14166
YM
18582009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1859
1860 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1861
1862 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1863
86677b58
GM
18642009-11-24 Glenn Morris <rgm@gnu.org>
1865
1866 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1867
581e51e8
JD
18682009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1869
cfc86c7a
JD
1870 * Makefile.in: Must create deps for ecrt0.o in its rule.
1871
581e51e8
JD
1872 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1873 because that is what Gtk+ font dialog understands.
1874
1875 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1876 of Fcopy_sequence.
1877 (font_open_by_name): Put name given into QCname for font-object returned.
1878
1879 * frame.c (x_set_font): Save original font name as frame parameter
1880 font-parameter.
1881
1882 * xsettings.c (set_default_xft_settings): New function.
1883 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1884 is found.
1885
8b264ecb
AS
18862009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1887
1888 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1889 searching backwards through multibyte buffer.
1890
872870b2
JD
18912009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1892
1893 * xterm.c: #include xgselect.h.
1894 (x_initialize): Call xgselect_initialize.
1895
1896 * xsettings.c (something_changedCB): C++ comments => C comments.
1897 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1898 does that now.
1899
1900 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1901 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1902 (scroll_bar_button_cb): Remove.
5ce6e4f4 1903 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1904 event.
1905 (xg_create_scroll_bar): Don't bind button-press-event and
1906 button-release-event.
1907
1908 * process.c: Include xgselect.h if defined (USE_GTK) ||
1909 defined (HAVE_GCONF).
1910 (wait_reading_process_output): Call xg_select for the same condition.
1911
1912 * xgselect.c (xg_select): New function to better integrate with
1913 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1914
1915 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1916
1917 * Makefile.in (XOBJ): Add xgselect.o.
1918
62a6e103
AS
19192009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1920
0b5397c2
SM
1921 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1922 Remove ignored second argument. All callers changed.
62a6e103
AS
1923 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1924 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1925 * xdisp.c (string_char_and_length): Likewise.
1926
b0ca0f33
DN
19272009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1928
1929 * xterm.c (x_new_font):
1930 * print.c (print_object):
1931 * cmds.c (Fself_insert_command): Move declarations before statements.
1932
dd5a6279
CY
19332009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1934
1935 * s/cygwin.h: Remove unneeded linker flags.
1936
4a8e097d
JD
19372009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1938
0d1d0d26
JD
1939 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1940
1941 * xsettings.h: Declare xsettings_get_system_font.
1942
1943 * xsettings.c (xsettings_get_system_font): New function.
1944 (init_gconf): No use initiating gconf unless we have Xft also.
1945 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1946 HAVE_GCONF.
1947
4a8e097d
JD
1948 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1949 add a blank entry so it doesn't collapse into nothing.
1950
8ab1650e
SM
19512009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1952
1953 * lread.c (Funintern): Comment out last change.
1954
82c602f0
RS
19552009-11-19 Richard Stallman <rms@gnu.org>
1956
1957 * lread.c (Funintern): Error if symbol is t or nil.
1958
87e32266
SM
19592009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1960
1961 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1962 representation of Lisp integers.
1963 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1964
1b9ac145
AS
19652009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1966
1967 * lisp.h: Remove declaration of Ffont_get_system_font.
1968 * xfns.c: Move include of "xsettings.h".
1969 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1970
dfb3c4c6
JD
19712009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1972
87e32266
SM
1973 * xsettings.c (something_changedCB, Ffont_get_system_font):
1974 Check use_system_font.
dfb3c4c6
JD
1975 (syms_of_xsettings): DEFVAR font-use-system-font.
1976
9370c1d8
AS
19772009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1978
25fe851a
AS
1979 * xfns.c (x_default_font_parameter): Remove dead assignment.
1980
9370c1d8
AS
1981 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1982
637fa988
JD
19832009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1984
87e32266 1985 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1986 not have FC_LCD_*. #define them if not there.
a6eb20d8 1987
87e32266 1988 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1989
637fa988
JD
1990 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1991
1992 * xterm.c (handle_one_xevent): Call xft_settings_event for
1993 ClientMessage, PropertyNotify and DestroyNotify.
1994 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1995 Call xsettings_initialize.
1996
1997 * xftfont.c (xftfont_fix_match): New function.
1998 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1999 Call xftfont_fix_match after XftFontMatch.
2000
2001 * xfont.c (xfont_driver): Initialize all members.
2002
87e32266
SM
2003 * xfns.c (x_default_font_parameter):
2004 Try font from Ffont_get_system_font.
637fa988
JD
2005 Do not get font from x_default_parameter if we got one from
2006 Ffont_get_system_font.
87e32266 2007 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2008
2009 * w32font.c (w32font_driver): Initialize all members.
2010
2011 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2012
2013 * lisp.h: Declare syms_of_xsettings.
2014
87e32266
SM
2015 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2016 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2017
2018 * ftfont.c (ftfont_filter_properties): New function.
2019
2020 * frame.c (x_set_font): Remove unused variable lval.
2021
87e32266 2022 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2023
2024 * font.c (font_put_extra): Don't return if val is nil, it means
2025 boolean option is off.
2026 (font_parse_fcname): Collect all extra properties in extra_props
2027 and call filter_properties for all drivers with extra_props and
2028 font as parameter.
87e32266
SM
2029 (font_open_entity): Do not use cache, it does not pick up new
2030 fontconfig settings like hinting.
637fa988
JD
2031 (font_load_for_lface): If spec had a name in it, store it in entity.
2032
2033 * emacs.c (main): Call syms_of_xsettings
2034
2035 * config.in: HAVE_GCONF is new.
2036
2037 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2038 xsettings.o is new.
2039
5a942932
KH
20402009-11-17 Kenichi Handa <handa@m17n.org>
2041
2042 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2043 back to the default font in case that no suitable font is found.
2044
b7c7a4d1
SM
20452009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2046
2047 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2048 Suggested by Chad Brown <yandros@mit.edu>.
2049 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2050
072f1e39
JD
20512009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2052
2053 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2054
5d1e70a2
AS
20552009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2056
87e32266 2057 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2058
a53cfbe5
JD
20592009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2060
473a99b7
JD
2061 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2062 has a parent.
2063
a53cfbe5 2064 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2065 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2066
2067 * config.in: Generated (AUTO_DEPEND).
2068
f04bb9b2
MA
20692009-11-13 Michael Albinus <michael.albinus@gmx.de>
2070
b7c7a4d1 2071 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2072 Vdbus_registered_functions_table, because it contains also
2073 properties. Fix docstring.
b7c7a4d1 2074 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2075
8f11f7ec
SM
20762009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * alloc.c (mark_object): Don't reprocess marked strings.
2079 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2080 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2081
8a605fe8
KH
20822009-11-13 Kenichi Handa <handa@m17n.org>
2083
8f11f7ec 2084 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2085 semantics of Vword_combining_categories.
2086 (Vword_combining_categories): Describe the slight change of the
2087 semantics.
2088
241c4680
EZ
20892009-11-13 Eli Zaretskii <eliz@gnu.org>
2090
2091 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2092
2093 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2094
5d58e44c
SM
20952009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2096
2097 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2098
5e13f9d3
JB
20992009-11-12 Juanma Barranquero <lekktu@gmail.com>
2100
2101 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2102
cf54c754
DR
21032009-11-11 David Reitter <david.reitter@gmail.com>
2104
2105 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2106 variables to fix 2009-11-09 change.
2107
a4ada374
DN
21082009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2109
91433552
DN
2110 * process.c (ifflag_def): Make flag_sym constant.
2111 (Fnetwork_interface_info): Use a constant pointer.
2112 (ifflag_table):
2113 * xfns.c (cursor_bits):
2114 * xdisp.c (power_letter):
2115 * termcap.c (speeds, esctab):
2116 * sysdep.c (baud_convert):
2117 * keyboard.c (lispy_accent_codes, modifier_names):
2118 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2119 (jpeg_format, tiff_format, gif_format, svg_format)
2120 (interlace_start, interlace_increment, gs_format):
2121 * gtkutil.c (separator_names):
2122 * fringe.c (swap_nibble):
2123 * fns.c (base64_value_to_char, base64_char_to_value):
2124 * fileio.c (make_temp_name_tbl):
2125 * coding.c (suffixes): Make constant.
2126
f4265f6c
DN
2127 * frame.c (make_initial_frame):
2128 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2129 build_string.
2130 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2131
04420943
DN
2132 * s/freebsd.h:
2133 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2134
0a5d24ae
DN
2135 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2136 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2137
a4ada374
DN
2138 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2139 * xterm.c (syms_of_xterm):
2140 * xfaces.c (syms_of_xfaces):
2141 * xdisp.c (syms_of_xdisp):
2142 * lread.c (syms_of_lread):
2143 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2144 build_string.
91433552 2145
a4ada374
DN
2146 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2147
af98fc7f
SM
21482009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2149
8ab1650e 2150 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2151
e90292a9
JD
21522009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2153
2154 * keyboard.h: Declare timer_check.
2155
2156 * keyboard.c (timer_check_2): New function that does what the old
2157 timer_check did.
2158 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2159 returned, i.e. don't return -1 with timers pending.
2160
2161 * process.c: Remove extern declaration of timer_check.
2162
2163 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2164 even if timer_check returned -1.
2165
af98fc7f
SM
2166 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2167 xg_dialog_data.
e90292a9
JD
2168 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2169 the event loop.
2170 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2171 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2172 Destroy the dialog after xg_dialog_run.
2173
045b83c0
SM
21742009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2175
2176 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2177
1fb99a3a
JD
21782009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2179
2180 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2181
04e452cb
JB
21822009-11-09 Juanma Barranquero <lekktu@gmail.com>
2183
2184 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2185
ef7417fd
SM
21862009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2187
2188 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2189 w32menu.c, and nsmenu.m.
2190 Simplify the obsolete case where position is nil.
2191 (cleanup_popup_menu): New function, moved from nsmenu.m.
2192 (struct skp): Remove slot `notreal'.
2193 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2194 adjust callers.
2195 (single_menu_item): Adjust call to parse_menu_item.
2196 (syms_of_menu): Defsubr x-popup-menu.
2197 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2198 (keymap_panes): Don't export any more.
2199 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2200 (xmenu_show): Declare.
2201 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2202 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2203 * keyboard.h (parse_menu_item): Update declaration.
2204 * xmenu.c (Fx_popup_menu): Remove.
2205 (syms_of_xmenu): Don't defsubr x-popup-menu.
2206 * w32menu.c (Fx_popup_menu): Remove.
2207 (syms_of_w32menu): Don't defsubr x-popup-menu.
2208 * nsmenu.m (cleanup_popup_menu): Remove.
2209 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2210 moved to menu.c's Fx_popup_menu.
2211 (Fx_popup_menu): Remove.
2212 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2213 menu_items (it's done in menu.c already).
2214
424d6179
SM
22152009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2216
2217 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2218 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2219
c0df13a6 22202009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2221
2222 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2223 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2224 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2225 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2226
2de9f71c
SM
22272009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2228
2229 Let integers use up 2 tags to give them one extra bit and thus double
2230 their range.
2231 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2232 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2233 New macros.
2234 (enum Lisp_Type): Use them. Give explicit values.
2235 (Lisp_Type_Limit): Remove.
2236 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2237 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2238 Pay attention to USE_2_TAGS_FOR_INTS.
2239 (INTEGERP): Use LISP_INT_TAG_P.
2240 * fns.c (internal_equal): Simplify the default case.
2241 (sxhash): Use case_Lisp_Int.
2242 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2243 any more.
2244 (Ftype_of): Use case_Lisp_Int.
2245 (store_symval_forwarding): Take into account the fact that Ints can
2246 now have more than one tag.
2247 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2248 buffer_slot_type_mismatch):
2249 * xfaces.c (face_attr_equal_p):
2250 * print.c (print_object):
2251 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2252 Use case_Lisp_Int.
2253
323637a2
EZ
22542009-11-06 Eli Zaretskii <eliz@gnu.org>
2255
7ac65b38
EZ
2256 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2257
323637a2
EZ
2258 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2259 warning.
2260
e511451f
JD
22612009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2262
2263 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2264
2265 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2266
2267 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2268 ButtonPressRelease and MotionNotify (bug#4870).
2269
5e2327cf
DN
22702009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2271
5adc433e
DN
2272 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2273
d67b4f80
DN
2274 * xterm.c (syms_of_xterm):
2275 * xselect.c (syms_of_xselect):
2276 * xmenu.c (syms_of_xmenu):
2277 * xfns.c (syms_of_xfns):
2278 * xfaces.c (syms_of_xfaces):
2279 * xdisp.c (syms_of_xdisp):
2280 * window.c (syms_of_window):
2281 * w32fns.c (syms_of_w32fns):
2282 * undo.c (syms_of_undo):
2283 * textprop.c (syms_of_textprop):
2284 * terminal.c (syms_of_terminal):
2285 * syntax.c (syms_of_syntax):
2286 * sound.c (syms_of_sound):
2287 * search.c (syms_of_search):
2288 * print.c (syms_of_print):
2289 * minibuf.c (syms_of_minibuf):
2290 * macros.c (syms_of_macros):
2291 * keymap.c (syms_of_keymap, initial_define_key)
2292 (initial_define_lispy_key):
2293 * keyboard.c (syms_of_keyboard):
2294 * insdel.c (syms_of_insdel):
2295 * image.c (syms_of_image):
2296 * fringe.c (syms_of_fringe):
2297 * frame.c (syms_of_frame):
2298 * fontset.c (syms_of_fontset):
2299 * fns.c (syms_of_fns):
2300 * fns.c (syms_of_fns):
2301 * fileio.c (syms_of_fileio):
2302 * fileio.c (syms_of_fileio):
2303 * eval.c (syms_of_eval):
2304 * doc.c (syms_of_doc):
2305 * dispnew.c (syms_of_display):
2306 * dired.c (syms_of_dired):
2307 * dbusbind.c (syms_of_dbusbind):
2308 * data.c (syms_of_data):
2309 * composite.c (syms_of_composite):
2310 * coding.c (syms_of_coding):
2311 * cmds.c (syms_of_cmds):
2312 * charset.c (define_charset_internal, syms_of_character):
2313 * ccl.c (syms_of_ccl):
2314 * category.c (syms_of_category, init_category_once):
2315 * casetab.c (syms_of_casetab):
2316 * casefiddle.c (syms_of_casefiddle):
2317 * callint.c (syms_of_callint):
2318 * bytecode.c (syms_of_bytecode):
2319 * buffer.c (keys_of_buffer, syms_of_buffer):
2320 * alloc.c (syms_of_alloc):
2321 * process.c (syms_of_process, init_process):
2322 * lread.c (syms_of_lread, init_obarray):
2323 * font.c (build_style_table):
2324 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2325 intern_c_string, calls to make_pure_string with
2326 make_pure_c_string. Use pure_cons instead of Fcons.
2327
5e2327cf
DN
2328 * process.c (socket_options): Make it const.
2329 (set_socket_option, init_process): Use a const pointer.
2330
2331 * lread.c (intern_c_string): New function.
2332 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2333 (defvar_int): Uset it. Make the name const char*.
2334
2335 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2336 (defvar_int): Update prototypes.
2337 (DEFUN, EXFUN): Support for prototypes is now required.
2338 (intern_c_string): New prototype.
2339 (struct Lisp_Subr): Make symbol_name constant.
2340
2341 * font.c (struct table_entry): Remove unused member. Make NAMES
2342 constant.
2343 (weight_table, slant_table, width_table): Make constant.
2344
2345 * emacs.c (struct standard_args): Make name and longname constant.
2346
2347 * character.h (DEFSYM): Use intern_c_string.
2348
a56eaaef
DN
23492009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2350
2351 * alloc.c (make_pure_c_string): New function.
2352
2353 * eval.c (Fautoload): Purecopy all arguments.
2354
f6a07420
KH
23552009-11-05 Kenichi Handa <handa@m17n.org>
2356
2357 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2358 the buffer in case of replace.
2359
5d28d4b1
DN
23602009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2361
2362 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2363
b349d111
SM
23642009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2365
d528b1ce
SM
2366 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2367 when applicable (bug#4851).
2368
b349d111
SM
2369 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2370 (P_): Support for prototypes is now required.
2371
c38eb027
CY
23722009-10-31 Chong Yidong <cyd@stupidchicken.com>
2373
2374 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2375 (Bug#4827).
2376
0405f8d9
EZ
23772009-10-30 Eli Zaretskii <eliz@gnu.org>
2378
d528b1ce 2379 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2380
ca0a881a
DN
23812009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2382
2383 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2384
d528b1ce
SM
2385 * lread.c (Fload): Purecopy the file name when building
2386 Vpreloaded_file_list.
ca0a881a 2387
47e0e0e4
JR
23882009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2389
2390 * w32fns.c (syms_of_w32fns): Change default value of
2391 w32-scroll-lock-modifier to nil. (Bug#2827)
2392
057bce6f
JB
23932009-10-26 Juanma Barranquero <lekktu@gmail.com>
2394
782a943e 2395 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2396
242bc74c
AS
23972009-10-26 Andreas Schwab <schwab@redhat.com>
2398
2399 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2400
522d013a
JB
24012009-10-26 Juanma Barranquero <lekktu@gmail.com>
2402
2403 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2404 For delta < 0, skip check that only makes sense when the mini-window
2405 is going to be enlarged. (Bug#4534)
2406
18060980
CY
24072009-10-25 Chong Yidong <cyd@stupidchicken.com>
2408
2409 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2410 string in menu maps (Bug#4471).
2411
fec8f0fe
CY
24122009-10-24 Chong Yidong <cyd@stupidchicken.com>
2413
2414 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2415 FRAME_NS_VIEW on terminal frames (Bug#4765).
2416
10d66ec0
AS
24172009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2418
1cae01f7
AS
2419 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2420 DBUS_TYPE_UINTnn separately to get proper sign extension.
2421
58a12889
AS
2422 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2423 can properly handle unsigned types.
d528b1ce 2424 (make_uid, make_gid): Remove.
58a12889 2425
987c9327
AS
2426 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2427 types again.
2428
522d013a 2429 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2430 (system_process_attributes): Likewise.
2431
905a9ed3
DN
24322009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2433
2434 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2435
2436 * eval.c (Fautoload): Purecopy the filename. Simplify.
2437
2438 * category.c (Fdefine_category): Purecopy docstring.
2439
a599b3e8
AS
24402009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2441
7b792fc9
AS
2442 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2443
a599b3e8
AS
2444 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2445
b35ac83e
CY
24462009-10-23 Chong Yidong <cyd@stupidchicken.com>
2447
2448 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2449 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2450 (Bug#4775).
2451
e8903e00
SM
24522009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2453
2454 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2455 (init_fileio_once):
2456 * lisp.h (init_fileio_once): Remove.
2457 * emacs.c (main): Don't call init_fileio_once.
2458
8f43cbf3
DN
24592009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2460
2461 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2462
26898943
AS
24632009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2464
2465 * doprnt.c (doprnt): Fix overflow check.
2466
5c646d5a
JD
24672009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2468
3132a7ea
JD
2469 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2470
5c646d5a
JD
2471 * xterm.h (x_wait_for_event): Declare it.
2472
2473 * xterm.c (pending_event_wait): New variable.
2474 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2475 see pending_event_wait.eventtype.
2476 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2477 (x_new_font): Call change_frame_size with new rows/columns before we
2478 try to resize the frame.
5c646d5a 2479 (x_wait_for_event): New function.
d528b1ce
SM
2480 (x_set_window_size_1): Don't change gravity unless change_gravity
2481 is set.
5c646d5a
JD
2482 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2483 don't change frame size, instead wait for the ConfigureNotify.
2484 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2485 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2486 (x_initialize): Initialize pending_event_wait.
2487
2488 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2489 size.
2490
2491 * widget.c (EmacsFrameSetValues): Add comment.
2492 (EmacsFrameSetCharSize): Just call x_set_window_size.
2493
2494 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2495 x_wait_for_event.
d528b1ce 2496 (flush_and_sync): Remove again.
5c646d5a
JD
2497 (xg_get_font_name): Suggest monospace if no previous font is known.
2498
e9c1637d
SM
24992009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2500
2501 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2502 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2503
5a72cccb
YM
25042009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2505
2506 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2507 processing pending events when event is filtered for input method.
ab04798f 2508 (Bug#3681)
5a72cccb 2509
2629aa37
JB
25102009-10-20 Juanma Barranquero <lekktu@gmail.com>
2511
2512 * fns.c: Add #endif accidentally removed in previous change.
2513
c3417a74
DN
25142009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2515
2516 * fns.c: Remove code for unsupported system: MAC_OS.
2517 * image.c: Likewise. Include setjmp.h.
2518
9685cef2
JD
25192009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2520
2521 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2522 pixel -1 (bug #4742).
2523
d7306fe6
DN
25242009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2525
019d2c4c
DN
2526 * process.c (create_pty): Remove conditionals for no longer
2527 supported systems: UNIPLUS and RTU.
2528
ee6bacd4
DN
2529 * xterm.c:
2530 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2531
d7306fe6
DN
2532 * alloc.c: Do not define struct catchtag.
2533 * eval.c: Move struct catchtag definition ...
2534 * lisp.h: ... here.
2535
2536 * image.c: Move png.h #include earlier to avoid warnings.
2537
2538 * xterm.c:
2539 * xsmfns.c:
2540 * xselect.c:
2541 * xrdb.c:
2542 * xmenu.c:
2543 * xftfont.c:
2544 * xfont.c:
2545 * xfns.c:
2546 * xfaces.c:
2547 * xdisp.c:
2548 * window.c:
2549 * widget.c:
2550 * w32xfns.c:
2551 * w32uniscribe.c:
2552 * w32term.c:
2553 * w32select.c:
2554 * w32reg.c:
2555 * w32proc.c:
2556 * w32menu.c:
2557 * w32inevt.c:
2558 * w32heap.c:
2559 * w32font.c:
2560 * w32fns.c:
2561 * w32console.c:
2562 * w32.c:
2563 * w16select.c:
2564 * vm-limit.c:
2565 * unexsol.c:
2566 * unexec.c:
2567 * unexcw.c:
2568 * unexaix.c:
2569 * undo.c:
2570 * tparam.c:
2571 * textprop.c:
2572 * terminfo.c:
2573 * terminal.c:
2574 * termcap.c:
2575 * term.c:
2576 * syntax.c:
2577 * sound.c:
2578 * sheap.c:
2579 * search.c:
2580 * scroll.c:
2581 * region-cache.c:
2582 * regex.c:
2583 * ralloc.c:
2584 * process.c:
2585 * print.c:
b024548b
DN
2586 * nsterm.m:
2587 * nsselect.m:
2588 * nsmenu.m:
2589 * nsimage.m:
2590 * nsfont.m:
2591 * nsfns.m:
d7306fe6
DN
2592 * msdos.c:
2593 * minibuf.c:
2594 * menu.c:
2595 * marker.c:
2596 * macros.c:
2597 * keymap.c:
2598 * keyboard.c:
2599 * intervals.c:
2600 * insdel.c:
2601 * indent.c:
2602 * gtkutil.c:
2603 * ftxfont.c:
2604 * ftfont.c:
2605 * fringe.c:
2606 * frame.c:
2607 * fontset.c:
2608 * font.c:
2609 * fns.c:
2610 * floatfns.c:
2611 * filelock.c:
2612 * fileio.c:
2613 * emacs.c:
2614 * editfns.c:
2615 * dosfns.c:
2616 * doprnt.c:
2617 * doc.c:
2618 * dispnew.c:
2619 * dired.c:
2620 * dbusbind.c:
2621 * data.c:
2622 * composite.c:
2623 * coding.c:
2624 * cmds.c:
2625 * cm.c:
2626 * chartab.c:
2627 * charset.c:
2628 * character.c:
2629 * ccl.c:
2630 * category.c:
2631 * casetab.c:
2632 * casefiddle.c:
2633 * callproc.c:
2634 * callint.c:
2635 * bytecode.c:
2636 * buffer.c:
2637 * atimer.c: Include setjmp.h. (Bug#4643)
2638
fd5f21e6
SM
26392009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2640
4c0354d7
SM
2641 Remove leftover table unibyte_to_multibyte_table.
2642 * character.c (unibyte_to_multibyte_table): Remove.
2643 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2644 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2645 * character.h (UNIBYTE_TO_CHAR): New macro.
2646 (MAKE_CHAR_MULTIBYTE): Use it.
2647 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2648 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2649 (message_dolog, set_message_1):
2650 * search.c (Freplace_match):
2651 * editfns.c (Fcompare_buffer_substrings):
2652 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2653 (concat):
2654 * insdel.c (copy_text, count_size_as_multibyte):
2655 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2656 * term.c (produce_glyphs):
2657 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2658 * regex.c (RE_CHAR_TO_MULTIBYTE):
2659 * cmds.c (internal_self_insert):
2660 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2661
fd5f21e6
SM
2662 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2663
4418646e
DN
26642009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2665
2666 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2667
35f5c1d2
JB
26682009-10-16 Juanma Barranquero <lekktu@gmail.com>
2669
2670 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2671
a0cd8f6b
AR
26722009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2673
2674 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2675 still needed under Tiger.
2676
2677 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2678
2679 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2680 __Apple__.
2681
2682 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2683
01a8d3fa
KH
26842009-10-15 Kenichi Handa <handa@m17n.org>
2685
2686 * print.c (print_object): Escape a symbol like "2E10" too.
2687
bf6c75c9 26882009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2689
2690 Cleanups and changes for 64-bit compile under Snow Leopard.
2691 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2692
2693 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2694
c5959062 2695 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2696 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2697 cast argument.
2698 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2699 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2700
2701 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2702
2703 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2704 where appropriate.
2705
2706 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2707 where appropriate.
6e4780c5
JB
2708 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2709 Use stringWithUTF8String.
bf6c75c9
AR
2710 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2711
6e4780c5
JB
2712 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2713 Add formal protocol mention to inheritance.
bf6c75c9
AR
2714 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2715
6e4780c5
JB
2716 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2717 Fix printf format.
bf6c75c9
AR
2718 (ns_query_color): Use CGFloat where appropriate.
2719 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2720 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2721 argument.
2722
3d87f118
AR
2723 * config.in (NS_HAVE_NSINTEGER): Drop.
2724
a95c8102
AR
2725 * dbusbind.c (dbus-method-return-internal)
2726 (dbus-method-error-internal): Use long format in printf, and cast
2727 argument.
2728
2729 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2730 in printf, and cast argument.
2731
6873acca 2732 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2733 cast argument.
2734
9ec6f100
GM
27352009-10-11 Glenn Morris <rgm@gnu.org>
2736
2737 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2738
5be883cd
JD
27392009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2740
2741 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2742 menu bar with a small width so it doesn't enlarge the frame.
2743
d7a39b51
JB
27442009-10-08 Juanma Barranquero <lekktu@gmail.com>
2745
2746 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2747
0c2b6f8e
GM
27482009-10-06 Glenn Morris <rgm@gnu.org>
2749
2750 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2751 SOME_MACHINE_LISP (this enters indirectly via DOC).
2752
e02131a2
EZ
27532009-10-05 Eli Zaretskii <eliz@gnu.org>
2754
2755 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2756
b4744254
EZ
27572009-10-04 Eli Zaretskii <eliz@gnu.org>
2758
2759 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2760 Doc fix.
2761
dbf64827
JB
27622009-10-03 Martin Rudalics <rudalics@gmx.at>
2763
2764 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2765
e9a0aef8
MA
27662009-10-02 Michael Albinus <michael.albinus@gmx.de>
2767
d528b1ce 2768 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2769 used anymore outside fileio.c.
2770
2771 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2772
64eb2b56
JB
27732009-10-01 Juanma Barranquero <lekktu@gmail.com>
2774
2775 * lisp.h (Qdelete_directory_internal):
2776 Declare, instead of Qdelete_directory.
2777
2778 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2779
9d28c33e
SM
27802009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2781
2782 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2783
9d8f3bd9
MA
27842009-10-01 Michael Albinus <michael.albinus@gmx.de>
2785
9d28c33e 2786 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2787 Fdelete_directory. It is not a command anymore. It has no file
2788 name handler.
2789
9694740b
SM
27902009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2791
2792 * xdisp.c (get_next_display_element): Use an enum in last change.
2793
748e162f
KH
27942009-09-28 Kenichi Handa <handa@m17n.org>
2795
9694740b 2796 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2797 unibyte_display_via_language_environment in handling
2798 Vnobreak_char_display.
2799
17efd58d
AR
28002009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2801
2802 * nsterm.h (ns_app_name): New extern variable.
2803
2804 * nsterm.m (ns_app_name): New variable.
2805 (ns_term_init): Set and use it.
2806 (ns_term_shutdown): Use it.
2807
2808 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2809 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2810
2811 * nsfns.m (ns_set_name_iconic, ns_set_name)
2812 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2813 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2814
9694740b
SM
2815 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2816 Remove double-casting in client_data comparison.
31c2d412 2817
3208cb35
YM
28182009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2819
2820 * keyboard.c (make_lispy_event): Remember last wheel direction.
2821 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2822
b7d552d6
GM
28232009-09-26 Glenn Morris <rgm@gnu.org>
2824
2825 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2826 internal.elc. Add term/pc-win.elc.
2827 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2828 term/x-win.elc.
2829 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2830 term/w32-win.elc.
2831 (NS_SUPPORT): New.
2832 (lisp): Add NS_SUPPORT.
2833 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2834
4ff670a8
DR
28352009-09-25 David Reitter <david.reitter@gmail.com>
2836
2837 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2838 on Mac OS X 10.6+ (bug#4513).
2839
feabfb6c
JB
28402009-09-24 Juanma Barranquero <lekktu@gmail.com>
2841
2842 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2843 some parts of Emacs code (like font selection) don't grok them.
2844 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2845
de59072a
AS
28462009-09-24 Andreas Schwab <schwab@redhat.com>
2847
2848 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2849
a489517b
JB
28502009-09-24 Juanma Barranquero <lekktu@gmail.com>
2851
2852 * dired.c (Fdirectory_files): Fix typo in docstring.
2853
0592970c
AR
28542009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2855
2856 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2857 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2858 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2859 under GNUstep.
2860 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2861
2862 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2863 glyph advancement.
2864
48e8a88b
AR
28652009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2866
2867 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2868 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2869
2870 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2871 deleted (bug #4492).
2872
e14f0a78
AR
2873 * nsfont.m (Vns_reg_to_script): New lisp variable.
2874 (syms_of_nsfont): Declare it.
2875 (ns_registry_to_script): New function.
2876 (ns_get_req_script): Call it.
2877 (ns_findfonts): Don't give up on non-unicode registry.
2878
2879 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2880
5b650faa
SM
28812009-09-20 Tom Tromey <tromey@redhat.com>
2882
2883 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2884 batch mode (bug#4228).
2885
a489517b 28862009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2887
2888 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2889 carefully. (Bug #4339)
0bae4e09 2890
fcfe06f3
CY
28912009-09-18 Chong Yidong <cyd@stupidchicken.com>
2892
d798ba87 2893 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2894
31642728
AR
28952009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2896
2897 * emacs.c (inhibit_x_resources): Update doc string for NS.
2898 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2899 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2900
2901 * nsterm.h (ns_no_defaults): Remove.
2902
2903 * nsterm.m (ns_no_defaults): Remove.
2904 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2905 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2906 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2907 don't update the NSWindow itself.
2908 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2909 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2910
2911 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2912 ns_use_qd_smoothing.
2913
2914 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2915 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2916 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2917 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2918
8686ac71
JB
29192009-09-17 Juanma Barranquero <lekktu@gmail.com>
2920
2921 * emacs.c (inhibit_x_resources): New variable.
2922 (main) [HAVE_NS]: Don't process --quick command line option.
2923 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2924
2925 * lisp.h (inhibit_x_resources): Declare it extern.
2926
2927 * w32reg.c (x_get_string_resource):
2928 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2929
e227ba05
EZ
29302009-09-17 Eli Zaretskii <eliz@gnu.org>
2931
362654a6
JB
2932 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2933 Add lisp/term/internal.elc.
e227ba05 2934
742d40e8
SM
29352009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2936
2937 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2938 (bug#4461).
2939
005bd5a2
DN
29402009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2941
2942 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2943
2944 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2945 (OBJECTS_MACHINE): Remove, unused.
2946
f9af9719
SM
29472009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2948
2949 * frame.c (x_get_resource_string): Remove unused.
2950
0307c7d2
JD
29512009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2952
2953 * xterm.c (x_new_font): Call change_frame_size before calling
2954 x_set_window_size, in case frame size won't change.
2955
2956 * frame.c (x_set_font): Remove dead code.
2957
428b13d6
SM
29582009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2959
2960 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2961
5766c380
SM
29622009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * lread.c (Fload): Don't output a message after loading an obsolete
2965 package any more (done in Lisp now).
2966
2fd0161b
CY
29672009-09-12 Chong Yidong <cyd@stupidchicken.com>
2968
2969 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2970
bc5e75b6
SM
29712009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2972
2973 * keymap.c (Fwhere_is_internal): Use nconc2.
2974
c31c985e
AM
29752009-09-11 Alan Mackenzie <acm@muc.de>
2976
2977 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2978 batch mode.
2979
78012bd2
AS
29802009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2981
2982 * xdisp.c (display_mode_element): Detect cycles.
2983
9d889332
SM
29842009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2985
2986 * keymap.c (where_is_internal): Don't erroneously return nil right after
2987 filling the cache.
2988 (where_is_internal_1): Fix up typo.
2989
7ab5d780
GM
29902009-09-11 Glenn Morris <rgm@gnu.org>
2991
2992 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2993 share a common doc-string.
2994
5238a749
SM
29952009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2996
66d77eda
SM
2997 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2998 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2999
5238a749
SM
3000 * keymap.c (QCadvertised_binding): New constant.
3001 (syms_of_keymap): Initialize it.
3002 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3003 if applicable.
3004
19f48442
SM
30052009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3006
50d4ba39
SM
3007 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3008 (parse_menu_item): Streamline since bindings are recomputed all the
3009 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3010 more and don't support lmenu's menu-alias any more either.
3011
a88a5372
SM
3012 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3013 (where_is_internal): Strip it down to only traverse the keymaps.
3014 Move the cache handling from Fwhere_is_internal to here.
3015 (Fwhere_is_internal): Move the handling of remapping and the choice of
3016 the best binding from where_is_internal to here.
3017 Unify the cached/noncached paths, so remapping is also handled
3018 correctly when the cache is used, and so the cache can be used to
3019 speed up remap-handling when applicable.
3020 Give preference to non-remapped bindings.
3021 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3022 non-remapped bindings.
3023 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3024 command remapping.
3025
19f48442
SM
3026 * xdisp.c (display_mode_element): Move list length limit from 50 to
3027 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3028
599498c3 30292009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3030
3031 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3032
f9b7b5ac
SM
30332009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3034
a53af587
JB
3035 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3036 (Bug#4334)
3037
f9b7b5ac
SM
3038 * keymap.c (where_is_internal): Filter out shadowed remappings.
3039 Assume that where_is_internal returns unshadowed bindings to simplify
3040 the code and get rid of the gotos. Use ASIZE.
3041
04f4b72d
JD
30422009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3043
4da146f2
JD
3044 * xterm.c (x_focus_changed): If we get a focusout and pointer
3045 is invisible, make it visible.
3046
04f4b72d
JD
3047 * xterm.h: Remove condition for declaration of
3048 x_*_window_to_frame.
3049
7cef7ce3
SM
30502009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3051
3052 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3053 initial terminal as well.
3054
a54fa5b7
JD
30552009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3056
3057 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3058 x_menubar_window_to_frame.
a54fa5b7 3059
50426a04 3060 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3061 (XTmouse_position): Do not return valid positions
3062 for clicks in the menubar and the toolbar for Gtk+.
3063
3064 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3065 if the widget for the event has the same top level as a frame,
3066 return the frame.
3067 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3068 internal windows, bug #4122.
3069 (x_non_menubar_window_to_frame): Remove.
3070
5a021dd0
GM
30712009-09-02 Glenn Morris <rgm@gnu.org>
3072
3073 * buffer.c (default-major-mode): Move most of the doc from here...
3074 (major-mode): ... to here.
3075
548fe2f3
NR
30762009-08-30 Nick Roberts <nickrob@snap.net.nz>
3077
3078 * process.c (wait_reading_process_output): Keep the descriptor
3079 when pty is used by a non-child process, e.g., in I/O buffer of
3080 GDB this allows inferior to be restarted.
3081
e0840eef
EZ
30822009-08-29 Eli Zaretskii <eliz@gnu.org>
3083
3084 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3085 both branches into one.
3086
82e98df4
SM
30872009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3088
3089 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3090 (main): Use enable-multibyte-characters rather than
3091 default-enable-multibyte-characters. Output a warning message when
3092 running a unibyte session.
3093
890617cb
YM
30942009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3095
3096 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3097 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3098 (copy_data_segment): Also copy __program_vars section.
3099 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3100 (dump_it) [LC_DYLD_INFO]: Use it.
3101
3102 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3103
e7adeadc
EZ
31042009-08-28 Eli Zaretskii <eliz@gnu.org>
3105
3106 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3107 $(SRC)/buildobj.h.
3108 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3109 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3110 $(SRC)/buildobj.h.
3111 (clean): Add buildobj.h.
3112
3ed8bbdc
TZ
31132009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3114
3115 * print.c (print_object): Set escapeflag to 1 when printing
3116 hashtable keys and values.
3117
155a6764
SM
31182009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * lread.c (read_integer): Use doubles (and potentially return a float
3121 number) as we do in string-to-number.
3122 (read1): Use strtol to read integers, signal errors on strtol's
3123 overflow and use floats if strtol's output is too large for
3124 Elisp integers.
3125
877610de
EZ
31262009-08-27 Eli Zaretskii <eliz@gnu.org>
3127
3128 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3129 (make-buildobj-SH): Fix last change.
3130 (SRC): Move to before where it's first used.
3131
ef73e7be
KH
31322009-08-27 Kenichi Handa <handa@m17n.org>
3133
550c8289
KH
3134 * process.c (send_process): Use encode_coding_object instead of
3135 encode_coding_string to perform eol-conversion even if the string
3136 is unibyte.
3137
60afa08d
KH
3138 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3139 character.
3140
ef73e7be 3141 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3142 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3143
7b3a82d7
DN
31442009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3145
5654bf63
DN
3146 * callproc.c (Fcall_process): Remove always true #if.
3147
7b3a82d7
DN
3148 * lisp.h: Replace #if 0 code for checking with text pointing to
3149 the --enable-checking configure flag.
3150
3151 * emacs.c (main): Mention the --enable-profiling configure flag
3152 instead of using CFLAGS.
3153
878bde49
KR
31542009-08-26 Ken Raeburn <raeburn@raeburn.org>
3155
3156 * Makefile.in (buildobj.h): New target.
3157 (doc.o): Depend on it.
3158 (temacs${EXEEXT}): Don't generate buildobj.lst.
3159 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3160 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3161 ($(BLD)/doc.$(O)): Depend on it.
3162 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3163 provided by Eli Zaretskii.)
3164 ($(TEMACS)): Don't generate buildobj.lst.
3165 * doc.c: Include buildobj.h.
3166 (buildobj): New static variable.
3167 (Fsnarf_documentation): Use it, instead of opening and reading
3168 buildobj.lst.
3169
1574224c
MA
31702009-08-25 Michael Albinus <michael.albinus@gmx.de>
3171
3172 * dbusbind.c (Fdbus_call_method)
3173 (Fdbus_call_method_asynchronously): Use English numeric format for
3174 timeout values in doc string.
3175
d9da2f45
KH
31762009-08-25 Kenichi Handa <handa@m17n.org>
3177
ef73e7be
KH
3178 * alloc.c (mark_char_table): New function.
3179 (mark_object): Use mark_char_table for a char-table.
3180
d9da2f45
KH
3181 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3182 (CHAR_TABLE_REF): Use it.
3183
c8edcc01
KR
31842009-08-23 Ken Raeburn <raeburn@raeburn.org>
3185
3186 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3187 before invoking the newly build emacs to check for load-path
3188 shadowing.
3189
7763401b
GM
31902009-08-22 Glenn Morris <rgm@gnu.org>
3191
3192 * Makefile.in (bootstrap_exe): New variable.
3193 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3194 Use ${bootstrap_exe}.
3195
729eadda
EZ
31962009-08-22 Eli Zaretskii <eliz@gnu.org>
3197
3198 * coding.h (encode_coding_string): Don't encode unibyte strings.
3199 (Bug#4047)
3200
eb4c6ace
MA
32012009-08-22 Michael Albinus <michael.albinus@gmx.de>
3202
3203 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3204
3205 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3206 intended as hotfix only.
3207 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3208
36e34d1b
AR
32092009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3210
3211 * nsterm.m (ns_get_color): Update documentation properly for last
3212 change, and clean up loose ends in the code left by it. Fix
3213 longstanding bug with 16-bit hex parsing, and add support for
3214 yet another X11 format (rgb:r/g/b) for compatibility.
3215 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3216 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3217
f983eb8a
SM
32182009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3221
3f56d3c6
MA
32222009-08-20 Michael Albinus <michael.albinus@gmx.de>
3223
3224 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3225 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3226 (xd_initialize, xd_pending_messages): Check, whether
3227 $DBUS_SESSION_BUS_ADDRESS is set.
3228
fb641d68
YM
32292009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3230
3231 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3232
3233 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3234
cf59a374
GM
32352009-08-20 Glenn Morris <rgm@gnu.org>
3236
3237 * emacs.c (system-type): Doc fix.
3238
1373f3be
SM
32392009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3240
3241 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3242 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3243
058ed861
MA
32442009-08-18 Michael Albinus <michael.albinus@gmx.de>
3245
1373f3be
SM
3246 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3247 New functions.
058ed861
MA
3248 (xd_initialize): Revert change from 2009-08-16.
3249
563a866e 32502009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3251
3252 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3253 font-group vector, return nil.
5fc05db0 3254
e42bdf01
CY
32552009-08-17 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * process.c (status_notify): Don't perform redisplay.
3258 (Fdelete_process, list_processes_1, process_send_signal):
3259 Expliticly perform redisplay.
3260 (wait_reading_process_output): Always check process status, but
3261 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3262
4230ab74
KR
32632009-08-17 Ken Raeburn <raeburn@raeburn.org>
3264
1373f3be 3265 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3266 (XFLOAT_INIT): New macro for storing a float value.
3267 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3268 * fns.c (sxhash): Copy out the value of a float in order to
3269 examine its bytes.
3270 * dbusbind.c (xd_append_arg): Likewise.
3271
4230ab74
KR
3272 * emacs.c (main): Don't call syms_of_data twice.
3273
a0645cdd
MA
32742009-08-16 Michael Albinus <michael.albinus@gmx.de>
3275
3276 * dbusbind.c (xd_initialize): Add connection file descriptor to
3277 input_wait_mask, in order to let select() detect, whether a new
3278 message has been arrived.
ca4f31ea 3279 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3280
485db0ba
MA
32812009-08-15 Michael Albinus <michael.albinus@gmx.de>
3282
1373f3be
SM
3283 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3284 New functions.
485db0ba
MA
3285
3286 * lisp.h (xd_pending_messages): Declare.
3287
3288 * keyboard.c (readable_events): Call xd_pending_messages.
3289
b5b98ff4
CY
32902009-08-15 Chong Yidong <cyd@stupidchicken.com>
3291
1373f3be 3292 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3293
f8354c6e
CY
3294 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3295
b5b98ff4
CY
3296 * buffer.c (set_buffer_internal_1)
3297 (swap_out_buffer_local_variables): Check for unbound local
3298 variables (Bug#4138).
3299
8b9fc636
EZ
33002009-08-14 Eli Zaretskii <eliz@gnu.org>
3301
3302 * process.c (create_pty): Fix last change.
3303
ce959360
CY
33042009-08-13 Chong Yidong <cyd@stupidchicken.com>
3305
3306 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3307 (xbm_load_image): Caller changed.
64b807c9 3308 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3309
c7baf7e9
NR
33102009-08-13 Nick Roberts <nickrob@snap.net.nz>
3311
3312 * process.c (create_pty): New function.
3313 (Fstart_process): Use it to allow Emacs to just associate a pty
3314 with the buffer. See associated change in gdb-mi.el.
3315 (list_processes_1): Deal with no program name.
3316 (start_process_unwind): Use pid == -2 to mean no process.
3317
1ac9108a
SM
33182009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3319
3320 * cmds.c (nonundocount): New global variable.
3321 (keys_of_cmds): Initialize it.
3322 (Fself_insert_command): Use it to combine upto 20 sequential chars
3323 into a single undo entry, just like the Qself_insert_command code in
3324 keyboard.c does.
3325 Call frame_make_pointer_invisible, also like the Qself_insert_command
3326 code in keyboard.c does.
3327 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3328 than its own local replacement for it.
3329
e267324c
KR
33302009-08-10 Ken Raeburn <raeburn@raeburn.org>
3331
1ac9108a 3332 * fns.c (concat): Don't re-set string length to its current value.
77437343 3333
1ac9108a
SM
3334 * coding.h (decode_coding_string, encode_coding_string):
3335 Use SBYTES macro.
f0bed503 3336
1ac9108a 3337 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3338 (doprnt): Merge with doprnt1, discarding lispstrings code.
3339 * lisp.h (doprnt_lisp): Don't declare.
3340
416e006d
JL
33412009-08-07 Juri Linkov <juri@jurta.org>
3342
3343 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3344
6f7d5780
DN
33452009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3346
3347 * print.c (syms_of_print): Undo previous change.
3348
f19a0f5b
TZ
33492009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3350
3351 * lread.c (read1, syms_of_lread): Read hashtables back from the
3352 readable format.
3353
3354 * print.c (print_preprocess, print_object): Print hashtables fully
3355 and readably.
3356 (syms_of_print): Provide 'hashtable-print-readable.
3357
b9173dc2
AR
33582009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3359
3360 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3361 no family set.
3362 (nsfont_open): Handle case when entity has no family.
3363
1586503c
AR
33642009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3365
3366 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3367 element, not a list, for match case.
3368
087048cd
KH
33692009-07-28 Kenichi Handa <handa@m17n.org>
3370
3371 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3372 rigidly.
3373
3374 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3375 font_parse_xlfd. Check font properties more rigidly.
3376
780c2506
DN
33772009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3378
31fd7c5c
JB
3379 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3380 bsd-common.h.
780c2506 3381
a8c0cc18
KH
33822009-07-27 Kenichi Handa <handa@m17n.org>
3383
3384 * xfaces.c (face_with_height): Call font_clear_prop.
3385
4fbe2306
CY
33862009-07-26 Chong Yidong <cyd@stupidchicken.com>
3387
111d9af3
CY
3388 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3389
3390 * xterm.c (x_term_init): Use Qx.
3391
4fbe2306
CY
3392 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3393
1ac9108a 3394 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3395 (ns_get_color): Revert 2009-07-16 change.
3396
beb0b7f9
EZ
33972009-07-25 Eli Zaretskii <eliz@gnu.org>
3398
3399 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3400 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3401
2baf5e76
KR
34022009-07-25 Ken Raeburn <raeburn@raeburn.org>
3403
1ac9108a
SM
3404 * coding.h (decode_coding_string, encode_coding_string):
3405 Use SCHARS macro.
8890e5f5 3406
2baf5e76 3407 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3408 (load_depth): Delete.
2baf5e76
KR
3409 (Qload_in_progress): New variable.
3410 (load_unwind): Don't reference load_depth or load_in_progress.
3411 (Fload): Likewise; specbind Qload_in_progress instead.
3412 (init_lread): Don't initialize load_depth.
3413 (syms_of_lread): Initialize and protect Qload_in_progress.
3414
1395c6f5
AR
34152009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3416
3417 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3418
4e2f36cf
AR
34192009-07-23 Yavor Doganov <yavor@gnu.org>
3420
3421 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3422
5dd9a6f7
AR
34232009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3424
3425 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3426 Bugs 3792, 3720, 2402.
3427 (ns_lookup_indexed_color): Check for bad index.
3428 (ns_index_color): Init unused slot to 0.
3429 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3430 Bug 3714, possibly 3082.
5dd9a6f7 3431
c902b920
JR
34322009-07-22 Jason Rumney <jasonr@gnu.org>
3433
1ac9108a
SM
3434 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3435 Position IME window at cursor (Bug#2570).
c902b920
JR
3436 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3437 (globals_of_w32fns): Dynamically load functions required above.
3438
3439 * w32term.c (w32_draw_window_cursor): Send message to reposition
3440 any IME window.
3441
090101cf
CY
34422009-07-21 Chong Yidong <cyd@stupidchicken.com>
3443
3444 * fileio.c: Revert 2009-07-16 changes.
3445 (Vauto_save_include_big_deletions): New variable.
3446 (Fdo_auto_save): Disable auto-save only if
3447 auto-save-include-big-deletions is nil.
3448
e6583e3d
CY
34492009-07-21 Chong Yidong <cyd@stupidchicken.com>
3450
3451 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3452 the overflowed pixels into account (Bug#3879).
3453
ece435a5
KR
34542009-07-21 Ken Raeburn <raeburn@raeburn.org>
3455
3456 * lread.c (load_depth): New variable.
3457 (Fload, load_unwind, init_lread): Set it to the load recursion
3458 depth; set load_in_progress as a simple boolean based on the
3459 current load_depth. (Bug#3892)
3460
40b2d973
AR
34612009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3462
3463 * nsfont.m (ns_has_attribute): Remove.
3464 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3465
10be7e0d
JL
34662009-07-18 Juri Linkov <juri@jurta.org>
3467
3468 * process.c (Fset_process_query_on_exit_flag): Mention killing
3469 a buffer in docstring.
3470
fa055055
KH
34712009-07-17 Kenichi Handa <handa@m17n.org>
3472
3473 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3474
042f7b69
YM
34752009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3476
3477 * nsfns.m (Fns_set_alpha): Remove function.
3478 (syms_of_nsfns): Don't defsubr it.
3479
3480 * nsterm.m (ns_get_color): Remove incompatible color formats.
3481 (ns_color_to_lisp): Generate #rrggbb color format string.
3482
4be941e3
RS
34832009-07-16 Richard Stallman <rms@gnu.org>
3484
3485 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3486 (Fset_buffer_auto_saved): Handle save_length = -2.
3487
4e6b227d
CY
34882009-07-16 Chong Yidong <cyd@stupidchicken.com>
3489
3490 * xterm.c (Qx_gtk_map_stock): New var.
3491
3492 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3493 of calling intern each time.
3494
a1856973
YM
34952009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3496
3497 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3498 does tiling.
3499
3500 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3501
497e54d8
KH
35022009-07-14 Kenichi Handa <handa@m17n.org>
3503
72d36834
KH
3504 * font.c (font_vconcat_entity_vectors): New function.
3505 (struct font_sort_data): New member font_driver_preference.
3506 (font_compare): Check font_driver_preference.
3507 (font_sort_entities): The format of the first argument changed.
3508 (font_delete_unmatched): Likewise.
3509 (font_list_entities): The return type changed.
3510 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3511 (font_find_for_lface): Adjuste for the above changes.
3512 Don't suppress the checking of C even if the repertory supports it.
3513 (Flist_fonts): Adjust for the above changes.
72d36834 3514
1ac9108a
SM
3515 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3516 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3517 Reject a font who has adstyle property that is different from a
3518 langname derived from registry property.
1ac9108a 3519 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3520
b6046155
EZ
35212009-07-13 Eli Zaretskii <eliz@gnu.org>
3522
3523 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3524 local copy of dirfilename.
3525
fb6b6049
KH
35262009-07-13 Kenichi Handa <handa@m17n.org>
3527
e2402a5e
KH
3528 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3529 against max_char.
3530
fb6b6049
KH
3531 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3532 calling XSYMBOL (sym).
3533
65156807
EZ
35342009-07-11 Eli Zaretskii <eliz@gnu.org>
3535
1ac9108a
SM
3536 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3537 New function.
3538 (directory_files_internal) [WINDOWSNT]:
3539 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3540 the filesystem of the directory is fast or slow.
3541
3542 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3543 file name.
3544 (is_slow_fs): New function.
3545 (stat): Use it to determine whether to issue more system calls to
3546 get accurate file attributes, when w32-get-true-file-attributes is
3547 `local'.
3548
e0ab5fcf
JD
35492009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3550
3551 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3552 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3553 parameter font-parameter as default to the font dialog.
3554
784ceded
KH
35552009-07-10 Kenichi Handa <handa@m17n.org>
3556
3557 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3558
fb8edc0b
EZ
35592009-07-09 Eli Zaretskii <eliz@gnu.org>
3560
1ac9108a 3561 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3562
fb8edc0b
EZ
3563 * w32.c (stat): Treat UNC file names as residing on remote
3564 drives. (Bug#3542)
3565
635c75b1
KH
35662009-07-09 Kenichi Handa <handa@m17n.org>
3567
3568 * fontset.c (fontset_find_font): Fix previous change.
3569
c1d5ce94
MA
35702009-07-08 Michael Albinus <michael.albinus@gmx.de>
3571
3572 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3573 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3574 error flag.
3575
edb61b39
KH
35762009-07-08 Kenichi Handa <handa@m17n.org>
3577
374bf7e4
KH
3578 * fontset.c (fontset_find_font): Fix the logic of handling
3579 charset_matched.
3580 (font_for_char): Delete unused var.
3581 (generate_ascii_font_name): Delete it.
3582
edb61b39
KH
3583 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3584
3585 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3586 (encode_coding_sjis): Fix the code range check.
3587
0f3f018c
CY
35882009-07-07 Chong Yidong <cyd@stupidchicken.com>
3589
3590 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3591 (Fexpand_file_name): Copy string data properly (Bug#3772).
3592
fcaf6f3a
JD
35932009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3594
3595 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3596 first MapNotify.
3597
6809ca75
KH
35982009-07-07 Kenichi Handa <handa@m17n.org>
3599
3600 * character.h (unibyte_has_multibyte_table): Delete extern.
3601 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3602
3603 * charset.c (Fset_charset_priority): Update charset_unibyte.
3604 (syms_of_charset): Initialize charset_unibyte.
3605
3606 * character.c (unibyte_has_multibyte_table): Delete it.
3607 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3608 charset_unibyte.
3609 (multibyte_char_to_unibyte_safe): Likewise.
3610 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3611
1ac9108a 3612 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3613 (x_produce_glyphs): Likewise.
3614
3615 * .gdbinit (xcharset): Fix the treating $arg0.
3616
ad9e2d54
EZ
36172009-07-04 Eli Zaretskii <eliz@gnu.org>
3618
3619 Emulation of `getloadavg' on MS-Windows.
50426a04 3620 * w32.c: Include float.h.
ad9e2d54
EZ
3621 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3622 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3623 (get_native_system_info, get_system_times): New functions.
3624 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3625 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3626 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3627 g_b_init_get_system_times, and num_of_processors.
3628
0a3472c7
JR
36292009-07-03 Jason Rumney <jasonr@gnu.org>
3630
3631 * w32term.c (w32_initialize): Use standard types.
3632
80904120
EZ
36332009-07-03 Eli Zaretskii <eliz@gnu.org>
3634
3635 * dired.c (Ffile_attributes): Decode user and group names by the
3636 locale's encoding. (Bug#3443)
3637
6978862d
DN
36382009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3639
f8d23104
DN
3640 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3641 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3642
3643 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3644
3645 * term.c (init_tty): Remove spurious #ifdef.
3646
6978862d
DN
3647 * m/mips.h: Mention this file is also used for netbsd.
3648 * m/pmax.h: Remove file.
3649
e044e4fc
JD
36502009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3651
3652 * xterm.h (struct x_display_info): Add invisible_cursor.
3653 (struct x_output): Add current_cursor.
3654
3655 * xterm.c (XTtoggle_invisible_pointer): New function.
3656 (x_define_frame_cursor): Don't define cursor if invisible or the
3657 same as before. Set current_cursor.
3658 (x_create_terminal): Set toggle_invisible_pointer_hook.
3659
3660 * xfns.c (make_invisible_cursor): New function.
3661 (x_set_mouse_color): Call make_invisible_cursor.
3662 Set current_cursor.
3663 (x_window): Set current_cursor.
3664
3665 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3666
3667 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3668 inserting a character.
3669 (read_avail_input): Call frame_make_pointer_visible.
3670
3671 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3672 (frame_make_pointer_invisible, frame_make_pointer_visible):
3673 New functions.
e044e4fc
JD
3674 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3675
3676 * frame.h: Declare frame_make_pointer_invisible and
3677 frame_make_pointer_visible.
3678 (struct frame): Add pointer_invisible.
3679
574c8efa
JD
36802009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3681
7b507248
JD
3682 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3683 frame isn't visible.
3684 (xg_frame_resized): If width/height is -1, get size of window
3685 from X server.
3686
3687 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3688 for MapNotify.
3689
835bdaa7 3690 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3691 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3692 (flush_and_sync): Reintroduce.
574c8efa 3693
3f1c6666 36942009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3695
31fd7c5c 3696 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3697
3698 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3699 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3700
3701 * frame.h: Declare Qsticky.
3702
cad9ef74
JD
3703 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3704
3705 * nsfns.m (ns_frame_parm_handlers): Ditto.
3706
3707 * frame.c: Declare Qsticky.
3708 (frame_parms): Add sticky.
3709
3710 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3711
3712 * xterm.h: Declare x_set_sticky.
3713
3714 * xterm.c (x_set_sticky): New function.
3715
69b16610
JD
3716 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3717 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3718 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3719
3720 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3721
3722 * frame.c: Qmaximized is new.
3723 (x_set_frame_parameters): Do not handle fullscreen specially.
3724 Only set width and height if explicitly set.
3725 (x_set_fullscreen): Handle Qmaximized.
3726 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3727 (syms_of_frame): Initialize Qmaximized.
3728
1ac9108a
SM
3729 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3730 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3731
3732 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3733 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3734 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3735 set gravity to NorthWestGravity when USE_GTK.
3736 (set_wm_state): New function.
31fd7c5c 3737 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3738 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3739 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3740 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3741 to x_real_positions and x_fullscreen_adjust.
3742
3743 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3744 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3745 flush_and_sync.
3746 (xg_height_changed): New function.
3747 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3748 and gtk_window_set_policy. Set frame gravity after parsing the
3749 geometry string.
3f1c6666
JD
3750 (xg_update_frame_menubar, free_frame_menubar)
3751 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3752 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3753 Remove calls to xg_frame_set_char_size.
3754
fd503d99
KH
37552009-07-01 Kenichi Handa <handa@m17n.org>
3756
3757 * keyboard.c (decode_keyboard_code): New function.
3758 (tty_read_avail_input): Decode the input bytes if necessary.
3759
1ac9108a
SM
3760 * coding.c (setup_coding_system):
3761 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3762 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3763 use Qno_conversion.
3764
24ed93fb
YM
37652009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3766
3767 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3768
99061dfc
CY
37692009-06-30 Chong Yidong <cyd@stupidchicken.com>
3770
1ac9108a 3771 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3772
ff90fbde
JR
37732009-06-30 Jason Rumney <jasonr@gnu.org>
3774
3775 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3776 is already loaded.
3777 Set user model ID if supported (bug#1849).
3778
5f445726
JM
37792009-06-29 Jim Meyering <meyering@redhat.com>
3780
3781 Remove useless if-before-xfree test.
3782 * nsfont.m (nsfont_close): Remove useless test.
3783 * term.c (delete_tty): Likewise.
3784 * w32.c (system_process_attributes): Likewise.
3785 * w32font.c (w32font_close): Likewise.
3786 * xfaces.c (x_free_gc): Likewise.
3787 * xselect.c (buffer): Likewise.
3788
b9607587
AS
37892009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3790
3791 * process.c (send_process): Keep decoded string in a local
3792 variable and protect it from GC. (Bug#3521)
3793
89ba96f4
EZ
37942009-06-28 Eli Zaretskii <eliz@gnu.org>
3795
3796 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3797 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3798
098a1589
CY
37992009-06-28 Chong Yidong <cyd@stupidchicken.com>
3800
485422be
CY
3801 * xdisp.c (start_display, handle_face_prop)
3802 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3803 (redisplay_window, try_window_id, produce_image_glyph):
3804 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3805
098a1589
CY
3806 * xterm.c (x_update_window_begin, x_new_focus_frame)
3807 (x_scroll_bar_handle_click, handle_one_xevent)
3808 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3809 (x_make_frame_visible, x_make_frame_invisible)
3810 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3811 code chunks that are now obsolete.
3812
78c38319
MA
38132009-06-28 Michael Albinus <michael.albinus@gmx.de>
3814
3815 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3816 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3817 for hours, when optimzation is enabled.
3818 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3819 (xd_read_message): Make them static.
3820
4189ed40
CY
38212009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3822
3823 * term.c (turn_on_face): Allow simultaneously bold and dim
3824 terminal faces (Bug#3530).
3825
cd9b5e16
CY
38262009-06-27 Chong Yidong <cyd@stupidchicken.com>
3827
4e23bedb
CY
3828 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3829
cd9b5e16
CY
3830 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3831 truncation glyphs (Bug#3686).
3832
07cc3c35
GM
38332009-06-27 Glenn Morris <rgm@gnu.org>
3834
3835 * m/pmax.h: Restore file, with only netbsd portions.
3836
31fd7c5c 38372009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3838
cd9b5e16 3839 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3840
42d4a64f
KH
38412009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3842
3843 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3844 the arg FORCE_SYMBOL.
3845
930fe55b 38462009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3847
3848 * fontset.c (fontset_find_font): When a usable rfont_def is found
3849 in a fallback font-group, make it the first element of the group.
3850
57ebc3fd
CY
38512009-06-24 Chong Yidong <cyd@stupidchicken.com>
3852
3853 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3854
f084f942
KH
38552009-06-24 Kenichi Handa <handa@m17n.org>
3856
3857 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3858 set for C.
3859 (fontset_font): Record the availability of a font for C both in
3860 the realized fontsets of the current one and the default one.
3861
2f686c87
DN
38622009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3863
3864 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3865 conditional, it is always defined on AIX.
3866
666e158e
MB
38672009-06-23 Miles Bader <miles@gnu.org>
3868
3869 * window.c (Vrecenter_redisplay): New variable.
3870 (syms_of_window): Initialize it.
3871 (Qtty): New extern declaration.
3872 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3873
c6da7cd2
JM
38742009-06-23 Jim Meyering <meyering@redhat.com>
3875
1ac9108a
SM
3876 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3877 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3878 pointer dereferences are guaranteed to be valid.
c6da7cd2 3879
678dca3d
KH
38802009-06-23 Kenichi Handa <handa@m17n.org>
3881
74d75424
KH
3882 * emacs.c (main): Call init_font ().
3883
3884 * font.h (Vfont_log): Extern it.
3885 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3886
3887 * font.c (font_sort_entities, font_list_entities)
3888 (font_matching_entity, font_open_entity)
3889 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3890 (Vfont_log): Delete static.
3891 (font_log_env_checked): Delete this variable.
3892 (font_add_log): Don't check font_log_env_checked.
3893 (font_deferred_log): Check Vfont_log.
3894 (init_font): New function.
3895
678dca3d
KH
3896 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3897
3898 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3899
3900 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3901
3902 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3903
3904 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3905 (face_for_char): Don't call font_deferred_log here.
3906 (font_for_char): Likewise.
3907
8a668709
CY
39082009-06-22 Chong Yidong <cyd@stupidchicken.com>
3909
9a01ee33
CY
3910 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3911 rather than its background_width for drawing the overline and
3912 underline (Bug#489).
3913
3914 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3915 rather than its background_width for drawing the overline and
3916 underline (Bug#489).
ec7c9926
CY
3917 (xg_default_icon_file): New variable.
3918 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3919 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3920
8a668709
CY
3921 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3922 (load_overlay_strings): Remove externs.
3923 (fast_find_position): Function deleted.
3924 (mouse_face_from_buffer_pos): New function, based on
3925 fast_find_position. Correctly handle before-strings,
3926 display-strings, and after-strings (Bug#1220).
3927 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3928
4d4c02d8
CY
39292009-06-21 Chong Yidong <cyd@stupidchicken.com>
3930
1ac9108a 3931 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3932 (move_it_in_display_line_to, move_it_in_display_line_to)
3933 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3934
70243478
CY
39352009-06-21 Chong Yidong <cyd@stupidchicken.com>
3936
3937 * Branch for 23.1.
3938
13087e59
JR
39392009-06-21 Jason Rumney <jasonr@gnu.org>
3940
3941 * w32term.c (keyboard_codepage): New static variable.
3942 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3943 (w32_read_socket) [WM_CHAR]: Use it to decode character
3944 input (bug#3237).
3945 (w32_initialize): Initialize it.
3946 (codepage_for_locale): New function.
3947
4735b74e
KR
39482009-06-20 Ken Raeburn <raeburn@raeburn.org>
3949
3950 * process.c (status_message): Pass Faset index argument as a lisp
3951 object, so as to work with USE_LISP_UNION_TYPE.
3952
0e727afa
YM
39532009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3954
3955 * coding.c (Ffind_coding_systems_region_internal):
3956 Cache checked characters.
3957
cf299835
KH
39582009-06-18 Kenichi Handa <handa@m17n.org>
3959
1ac9108a 3960 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3961
90f20d94
AS
39622009-06-18 Andreas Schwab <aschwab@redhat.com>
3963
3964 * xdisp.c (redisplay_internal): Check that the frame is still
3965 live after redisplay of its windows.
3966 (redisplay_windows): Check that the window is still live.
3967
7f1faf1c
KH
39682009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3969
3970 * coding.c (detect_coding_utf_16): Fix previous change.
3971
cc13543e
KH
39722009-06-16 Kenichi Handa <handa@m17n.org>
3973
3974 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3975 UTF-16 by checking the dispersion of Eth and Oth bytes.
3976
977b85f4
AS
39772009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3978
3979 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3980
66bd43d1
KH
39812009-06-15 Kenichi Handa <handa@m17n.org>
3982
3983 * process.c (status_message): Fix previous change. Be sure to
3984 decode a localized string.
3985
cb5ca9c5
YM
39862009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3987
3988 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3989 add comment explaining why.
3990
ec7709ba 39912009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3992
ec7709ba 3993 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3994
4b7f335c
AR
39952009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3996
3997 * nsfont.m (ns_attribute_value): Remove.
3998 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3999 (ns_has_attribute): Shrink the normal range.
4000 (ns_findfonts): Don't worry about requested spec in determining
4001 need for synthItal.
e41820ee 4002 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4003
73b26103
SZ
40042009-06-14 Seiji Zenitani <zenitani@mac.com>
4005
4006 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4007
5753e4da
KH
40082009-06-11 Kenichi Handa <handa@m17n.org>
4009
4010 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4011 overhang for the static composition case.
4012
3561b671
KH
40132009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4014
5753e4da
KH
4015 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4016 overhang for the automatic composition case.
4017
3561b671
KH
4018 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4019 composition case.
4020
852bbd41
CY
40212009-06-10 Chong Yidong <cyd@stupidchicken.com>
4022
4023 * xdisp.c (get_next_display_element): When handling wrap-prefix
4024 and line-prefix, treat \n as a control character (bug#3502).
4025
9903d1e6
KH
40262009-06-10 Kenichi Handa <handa@m17n.org>
4027
4028 * font.c (font_parse_family_registry): Fix for one-char foundry.
4029 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4030
0bcbaaaa
CY
40312009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4032
4033 * process.c (status_message): Fix handling of multibyte signal
4034 string (Bug#3499).
4035
40aa3f13
JM
40362009-06-09 Jim Meyering <meyering@redhat.com>
4037
1f80c7e2
CY
4038 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4039 color name is missing.
40aa3f13 4040
72d51285
KH
40412009-06-09 Kenichi Handa <handa@m17n.org>
4042
4043 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4044 FROM-CODE and TO-CODE are codepoints of CHARSET.
4045
c1d04d84
AR
40462009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4047
4048 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4049
40502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4051
4052 Changes to support :script/:lang/:otf in NS font driver.
4053 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4054 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4055 indicate not part of font driver interface, and change callers.
4056 (ns_get_family): Remove pointless null check.
4057 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4058 ns_spec_to_descriptor, ns_descriptor_to_entity.
4059 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4060 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4061 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4062 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4063 (ns_get_req_script, ns_accumulate_script_ranges)
4064 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4065 New functions.
4066 (nsfont_list, nsfont_match): Use ns_findfonts.
4067 (nsfont_open): Use font descriptor instead of traits.
4068 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4069 (dump_glyphstring): Rename to ns_dump_glyphstring.
4070
c7eb9816
AR
4071 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4072
c1d04d84
AR
4073 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4074
4075 * fontset.c (fontset_from_font): Remove NS-specific code.
4076
ec7709ba 40772009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4078
4079 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4080 nonactive windows.
4081
31fd7c5c 40822009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4083
1ac9108a 4084 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4085
68852c13 40862009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4087
4088 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4089
6756cd1d
CY
40902009-06-07 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4093 account for the overflowing of newlines into the last glyph on the
4094 display line (Bug#3482).
4095
28bf482a
DR
40962009-06-05 David Reitter <david.reitter@gmail.com>
4097
ec7709ba
JB
4098 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4099 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4100 Fns_selection_exists_p, Fns_selection_owner_p.
4101
fdb55376
JR
41022009-06-03 Jason Rumney <jasonr@gnu.org>
4103
4104 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4105 available. (Bug#3379)
4106
05129fbe
KH
41072009-05-29 Kenichi Handa <handa@m17n.org>
4108
1ac9108a
SM
4109 * coding.c (get_translation_table):
4110 Check Venable_character_translation.
05129fbe 4111
ec7709ba 41122009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4113
ec7709ba
JB
4114 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4115 (x_make_frame_visible): Move frame to front rather than calling
15891144 4116 ns_raise_frame().
ec7709ba 4117 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4118 isn't key window.
ec7709ba 4119 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4120 drawRect may be called by NSView even if the frame is hidden.
4121
ec7709ba
JB
4122 * nsfns.m (Fx_create_frame): Follow other ports in
4123 determining visibility; default to t. Ensure async_visible is set.
15891144 4124
21f73755
EZ
41252009-05-23 Eli Zaretskii <eliz@gnu.org>
4126
4127 * dired.c (Ffile_attributes): Doc fix.
4128
34001e41
CY
41292009-05-22 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4132
46306a17
SM
41332009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4134
4135 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4136 and xfont_scratch_props.
4137 (syms_of_xfont): Do it here instead.
4138 (xfont_find_ccl_program): Delete, unused.
4139 (xfont_open): Delete unused var `i'.
4140
ef6e0694
KH
41412009-05-21 Kenichi Handa <handa@m17n.org>
4142
4143 * fontset.c (Qlatin): Don't make it static.
4144
46306a17
SM
4145 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4146 New functions.
ef6e0694
KH
4147 (xfont_scripts_cache, xfont_scratch_props): New variables.
4148 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4149 (xfont_list_pattern): Argument changed. Callers changed.
4150 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4151 (xfont_list): Don't reject a font spec with :script property.
4152 (xfont_has_char): Fix setting of encoding.
4153 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4154 xfont_scratch_props.
4155
41562009-05-19 Kenichi Handa <handa@m17n.org>
4157
46306a17 4158 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4159 Callers changed.
4160
41612009-05-18 Kenichi Handa <handa@m17n.org>
4162
4163 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4164
ac71ced7
SM
41652009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4166
4167 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4168 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4169
1c6d1051
YM
41702009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4171
4172 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4173 (x_delete_terminal): Dissociate resource database from display and
4174 then call XrmDestroyDatabase before closing display.
4175
9b9b779c
AR
41762009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4177
4178 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4179 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4180 whether selected frame is viable before raising it (based on patch
4181 by David Reitter), and improve commentary.
4182 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4183
cccd42d5
KH
41842009-05-15 Kenichi Handa <handa@m17n.org>
4185
4186 * font.c (Ffont_spec): Check arguments.
4187
337fbd17
CY
41882009-05-14 Chong Yidong <cyd@stupidchicken.com>
4189
4190 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4191 weight when testing attributes (Bug#3282).
4192
47a6002f
JD
41932009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4194
4195 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4196 what we expect to get in the next ConfigureNotify event.
4197
9cb363db
YM
4198 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4199 before Xft one (Bug#1696).
4200
b9126609
CY
42012009-05-07 David Reitter <david.reitter@gmail.com>
4202
4203 * nsfns.m (Fx_display_planes): Compute bitplanes using
4204 NSBitsPerPixelFromDepth (Bug#3207).
4205
27a69fd9
CY
42062009-05-10 Chong Yidong <cyd@stupidchicken.com>
4207
4208 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4209
00f37552
TTN
42102009-05-10 Ulrich Mueller <ulm@gentoo.org>
4211
4212 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4213
2d82a920
DR
42142009-05-07 David Reitter <david.reitter@gmail.com>
4215
ec7709ba
JB
4216 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4217 Respect mouse face background.
2d82a920 4218
46b0d52d
DR
42192009-05-07 David Reitter <david.reitter@gmail.com>
4220
ec7709ba
JB
4221 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4222 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4223 in ns_update_begin and ns_update_end.
4224
ce1b23bb
SM
42252009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4226
5996e1b7
SM
4227 * nsfns.m (ns_get_screen): Rewrite.
4228 Don't presume selected-frame is of type `ns'.
4229
ba98e3a0
SM
4230 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4231 all drivers.
4232
ce1b23bb
SM
4233 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4234
bcda200f
YM
42352009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4236
4237 * keyboard.h (add_user_signal): Fix typo in extern.
4238
4239 * lisp.h (add_user_signal): Remove extern.
4240
4241 * unexelf.c (unexec): Consider a section to precede the .bss section
4242 if its addresses overlap that of .bss.
4243 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4244 instead of dumping process.
4245
864660a2
SM
42462009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4247
4248 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4249
50da4e56
SM
42502009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4251
4252 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4253
51520a1a
DN
42542009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4255
4256 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4257 any statements.
4258
409ea3a1
AS
42592009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4260
59c4c60f
AS
4261 * process.c (read_process_output): Make sure the current buffer is
4262 always restored.
4263
409ea3a1
AS
4264 * coding.c (record_conversion_result): Don't modify
4265 Vlast_code_conversion_error for successful result.
4266 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4267
56f00ed2
KH
42682009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4269
4270 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4271 (load_charset_map): Remove unnecessary code.
56f00ed2 4272
4491c9d2
DR
42732009-04-30 David Reitter <david.reitter@gmail.com>
4274
35f5b128 4275 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4276 through f24.
4277
6970f632
CY
42782009-04-30 Chong Yidong <cyd@stupidchicken.com>
4279
4280 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4281
4282 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4283 face_at_buffer_position.
4284 (face_before_or_after_it_pos, get_next_display_element)
4285 (note_mouse_highlight): Update face_at_buffer_position call.
4286
4287 * term.c (term_mouse_highlight):
4288 * msdos.c (IT_note_mouse_highlight):
4289 * fontset.c (Finternal_char_font):
35f5b128 4290 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4291
4292 * dispextern.h (face_at_buffer_position): Update prototype.
4293
0c616f63
KH
42942009-04-30 Kenichi Handa <handa@m17n.org>
4295
35f5b128 4296 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4297
ad3aaf33
AS
42982009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4299
4300 * callproc.c (Fcall_process): Fix GC protection. Make sure
4301 current buffer is always restored.
4302
c3c963a0
YM
43032009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4304
4305 * atimer.c (init_atimer): Also clear stopped_atimers.
4306
4307 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4308
7e3386cb
YM
4309 * process.c (create_process): Clean up merger residues of
4310 2008-07-17 change.
4311
91f68422
CY
43122009-04-29 Ulrich Mueller <ulm@gentoo.org>
4313
4314 * lread.c (Vread_circle): New variable.
4315 (read1): Disable recursive read if Vread_circle is nil.
4316
24b34550
KH
43172009-04-29 Kenichi Handa <handa@m17n.org>
4318
4319 * fontset.h (set_default_ascii_font): Delete extern.
4320
4321 * fontset.c (set_default_ascii_font): Delete this unused function.
4322
4323 * frame.c (x_set_font): When ARG is a font-object, check if the
4324 font-object matches with the ASCII font-spec of the frame's
9c358bda 4325 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4326
77bf07e1
AS
43272009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4328
4329 * fns.c (Flocale_info): Protect vector from GC during decoding.
4330
4331 * process.c (Fstart_process): Protect argv strings from GC during
4332 encoding.
4333
2c55aacf
AS
43342009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4335
4336 * sysdep.c: Include <ctype.h>.
4337
b892d3c9
DR
43382009-04-27 David Reitter <david.reitter@gmail.com>
4339
35f5b128 4340 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4341 Remove commented-out code.
4342
9d0644c4
JB
43432009-04-26 Johan Bockgård <bojohan@gnu.org>
4344
4345 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4346
b7053016
JR
43472009-04-25 Jason Rumney <jasonr@gnu.org>
4348
4349 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4350
4e8231f3
YM
43512009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4352
4353 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4354 Swap bytes in short integer if fringe bitmap width > 8.
4355
493dcf2c
KH
43562009-04-23 Kenichi Handa <handa@m17n.org>
4357
4358 * xfaces.c (Fx_list_fonts): If a font size is specified in
4359 PATTERN, set it in returned scalable fonts.
4360
401e9e57
CY
43612009-04-22 Chong Yidong <cyd@stupidchicken.com>
4362
708e05dc
CY
4363 * keyboard.c (Fset_input_meta_mode): Doc fix.
4364
4365 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4366
1ac9108a 4367 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4368
4369 * coding.c (Fterminal_coding_system): Doc fix.
4370
4371 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4372 (Fx_display_pixel_height, Fx_display_planes)
4373 (Fx_display_color_cells, Fx_server_max_request_size)
4374 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4375 (Fx_display_mm_height, Fx_display_mm_width)
4376 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4377 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4378 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4379 (check_x_display_info): Handle terminal objects instead of
4380 terminal ids.
4381
401e9e57
CY
4382 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4383 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4384 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4385 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4386
df80c7f0
KH
43872009-04-21 Kenichi Handa <handa@m17n.org>
4388
5a8f12af 4389 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4390 (font_score): Check AVGWIDTH too.
908567ef 4391
df80c7f0
KH
4392 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4393 worst case.
1ac9108a
SM
4394 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4395 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4396
705af33f
JR
43972009-04-19 Jason Rumney <jasonr@gnu.org>
4398
4399 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4400 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4401
4402 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4403 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4404 get_phys_cursor_geometry.
4405
b71ac3dd 4406 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4407 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4408 using get_phys_cursor_geometry.
4409
4410 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4411 correctly calculated.
4412
dc2933eb
JD
44132009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4414
1ac9108a
SM
4415 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4416 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4417 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4418 is deprecated.
4419
973e7849
AS
44202009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4421
4422 * font.c (font_put_frame_data): Use xfree instead of free.
4423
314d66f4
JB
44242009-04-17 Juanma Barranquero <lekktu@gmail.com>
4425
4426 * w32font.c (Qja, Qko): Remove declarations.
4427 (syms_of_w32font): Don't DEFSYM them.
4428
cf702558
CY
44292009-04-17 Chong Yidong <cyd@stupidchicken.com>
4430
4431 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4432
4433 * font.h (Qja, Qko): Extern them.
4434
4435 * ftfont.c (Qja, Qko): Remove declarations.
4436
4437 * xfont.c (Qja, Qko): Remove declarations.
4438
b50504f5
KH
44392009-04-17 Kenichi Handa <handa@m17n.org>
4440
bde25748
KH
4441 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4442 string from a vector to handle Latin-1 characters correctly.
4443
b50504f5
KH
4444 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4445 entity even if the cache hits.
4446
f4646fff
AS
44472009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4448
4449 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4450 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4451
e7deaab0
AS
4452 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4453 * lisp.h: Adjust prototypes.
4454
0a0e7d49
CY
44552009-04-16 Chong Yidong <cyd@stupidchicken.com>
4456
4457 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4458 change (Bug#3003).
4459
3c908a57
KH
44602009-04-16 Kenichi Handa <handa@m17n.org>
4461
1ac9108a 4462 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4463
4464 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4465 adstyle.
4466
4467 * ftfont.c (Qja, Qko): Don't make them static.
4468 (enum ftfont_cache_for): New enum.
4469 (fc_charset_table): Undo the previous change.
4470 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4471 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4472 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4473 non-scarable font, try to get AVERAGE_WIDTH.
4474 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4475 Change ft_face_cache from a list of a hash-table. Don't check
4476 `ja' and `ko' adstyle here.
4477 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4478 FTFONT_CACHE_FOR_CHARET.
4479 (ftfont_get_charset): Undo the previous change.
1ac9108a 4480 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4481 (ftfont_close): Likewise.
4482 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4483
4484 * font.c (font_sort_entites): Change the meaning of the arg
4485 BEST-ONLY. Don't optimize for VEC of lenght 1.
4486 (font_select_entity): Just return the value of font_sort_entites.
4487
4488 * xfaces.c (merge_face_vectors): Reflect font properties in
4489 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4490 font_clear_prop if a face attribute doesn't change.
4491
3c908a57
KH
4492 * charset.h (charset_ksc5601): Extern it.
4493
4494 * charset.c (charset_ksc5601): New variable.
4495 (Fdefine_charset_internal): Set charset_ksc5601.
4496 (init_charset_once): Initialize charset_ksc5601 to -1.
4497
d65859c3
DN
44982009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4499
4500 * fileio.c (history_delete_duplicates): Remove unused declaration.
4501
4502 * callint.c (history_delete_duplicates): New declaration.
4503 (Fcall_interactively): Remove command history duplicates when
4504 history_delete_duplicates is true.
4505
3ba010e5
EZ
45062009-04-14 Eli Zaretskii <eliz@gnu.org>
4507
4508 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4509
06f19b91
KH
45102009-04-14 Kenichi Handa <handa@m17n.org>
4511
4512 * font.c (Ffont_info): Fix docstring. Fix the second element of
4513 the returned value (bug#2949).
4514
2cce8bfc
CY
45152009-04-14 Chong Yidong <cyd@stupidchicken.com>
4516
4517 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4518
d156542d
KH
45192009-04-14 Kenichi Handa <handa@m17n.org>
4520
4521 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4522 encoding charset is ascii_compatible.
4523
4524 * charset.c (Fdefine_charset_internal): Make charset
4525 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4526 code_offset is 0, and covers all ASCII characters.
4527
86fa089e
SM
45282009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4529
4530 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4531 (ns_string_to_pasteboard_internal):
4532 * nsmenu.m (process_dialog):
4533 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4534 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4535 * lisp.h (Fx_load_color_file): Declare.
4536
a8a3728b
KH
45372009-04-13 Kenichi Handa <handa@m17n.org>
4538
1ac9108a 4539 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4540 (font_select_entity): Suppress the code to optimize for the same
4541 kind of fonts.
4542 (font_load_for_lface): Get a font that supports at least ASCII
4543 characters.
4544
4545 * ftfont.c (Qja, Qko): New variables.
4546 (fc_charset_table): Delete uniquifier data for iso8859-1.
4547 (ftfont_get_latin1_charset): New function.
4548 (get_adstyle_property): New function.
4549 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4550 bitmap fonts.
4551 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4552 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4553 `ko' or `ja'.
4554 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4555 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4556 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4557 property.
4558 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4559 (syms_of_ftfont): DEFSYM Qja and Qko.
4560
483670b5
KH
45612009-04-09 Kenichi Handa <handa@m17n.org>
4562
12b55765
KH
4563 * charset.c (map_charset_chars): For a charset of `superset'
4564 method, fix calculation of code range.
4565
483670b5
KH
4566 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4567 from the list of extra properties.
4568 (font_clear_prop): Be sure to delete `:name' font property.
4569
57d3b93b
KH
45702009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4571
b4b2c2ca
YM
4572 * dispnew.c (redraw_overlapping_rows): Fix detection of
4573 overlapping for topmost and bottommost rows.
4574
1ac9108a 4575 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4576
472c3609
JR
45772009-04-06 Jason Rumney <jasonr@gnu.org>
4578
4579 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4580
ab193662
KH
45812009-04-06 Kenichi Handa <handa@m17n.org>
4582
4583 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4584
4585 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4586
0c26f026
KH
45872009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4588
4589 * ftfont.c (ftfont_open): Fix checking of the return value of
4590 FT_Load_Char. Fix setting font->underline_thickness.
4591
e173bbce
CY
45922009-04-04 Chong Yidong <cyd@stupidchicken.com>
4593
4594 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4595 (Fterminal_parameters, Fterminal_parameter)
4596 (Fset_terminal_parameter): In doc string, refer to terminal
4597 objects rather than terminal ids.
4598
693a2698
EZ
45992009-04-04 Eli Zaretskii <eliz@gnu.org>
4600
4601 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4602 ret_lim_data. (Bug#2867)
4603
d5221487
CY
46042009-04-03 Chong Yidong <cyd@stupidchicken.com>
4605
4606 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4607 so they don't get wider than the window, matching 2006-01-23
4608 change to the partner function in xdisp.c (Bug#2800).
4609
223509a3
KH
46102009-04-03 Kenichi Handa <handa@m17n.org>
4611
4612 * print.c (print_object): Make each lowest sub_char_table start a
4613 new line (Bug#2866).
4614
74fcd0b1
KH
46152009-04-02 Kenichi Handa <handa@m17n.org>
4616
4617 * fontset.c (fontset_font): Record no-font when a fontset
4618 explicitly tells not to try another font-specs.
4619
c542407d
SM
46202009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4621
4622 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4623
e3869731
KH
46242009-03-30 Kenichi Handa <handa@m17n.org>
4625
d8d2f142
KH
4626 * fontset.c (fontset_from_font): Specify only registry in a
4627 font-spec for all characters supported by that registry.
4628
e3869731
KH
4629 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4630 even if HAVE_M17N_FLT is not defined.
4631
5da5f805
CY
46322009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4633
4634 * ftfont.c: Conditionalize prototyping and use of
4635 ftfont_variation_glyphs.
4636
ab226c50
SM
46372009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4638
9628fed7
SM
4639 * frame.c (delete_frame): Work around compiler bug.
4640
4641 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4642 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4643 Some more EMACS_INT.
4644 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4645
4646 * xdisp.c (dump_glyph): Fix typo.
4647
ae19ba7c
SM
4648 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4649 (adjust_markers_gap_motion, adjust_markers_for_delete)
4650 (adjust_markers_for_insert, adjust_point)
4651 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4652 (make_gap, copy_text, count_size_as_multibyte, insert)
4653 (insert_and_inherit, insert_before_markers)
4654 (insert_before_markers_and_inherit, insert_1)
4655 (count_combining_before, count_combining_after, insert_1_both)
4656 (insert_from_string, insert_from_string_before_markers)
4657 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4658 (insert_from_buffer_1, adjust_after_replace)
4659 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4660 (replace_range_2, del_range, del_range_1, del_range_byte)
4661 (del_range_both, del_range_2, modify_region)
4662 (prepare_to_modify_buffer, signal_before_change)
4663 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4664 for buffer positions and sizes.
4665 * lisp.h: Adjust prototypes accordingly.
4666
4667 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4668 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4669 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4670
ab226c50
SM
4671 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4672
46dfb8fb
JD
46732009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4674
4675 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4676 lines and columns so we keep the same pixel height and width.
4677
4678 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4679 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4680 (x_handle_net_wm_state): New function to update frame parameter
4681 fullscreen.
4682 (x_term_init): Initialize atoms for _NET_WM_STATE.
4683
4684 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4685
d347e494
SM
46862009-03-27 Kevin Ryde <user42@zip.com.au>
4687
4688 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4689 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4690 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4691 (Fgpm_mouse_stop): Pass that new parameter.
4692 * termhooks.h (close_gpm): Adjust prototype.
4693
84db11d6
SM
46942009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4695
c95a5008
SM
4696 * lisp.h (Fx_focus_frame): Declare.
4697
84db11d6
SM
4698 * callint.c (Fcall_interactively): For '^' just delegate the work to
4699 handle-shift-selection.
4700 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4701
0a1958d6
CY
47022009-03-24 Chong Yidong <cyd@stupidchicken.com>
4703
0bfdff23
CY
4704 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4705
0a1958d6
CY
4706 * data.c (Qinteractive_form): New variable.
4707 (Finteractive_form): Use it.
4708
4709 * eval.c (Fcommandp): Use Qinteractive_form.
4710
58aec0d6
JR
47112009-03-24 Jason Rumney <jasonr@gnu.org>
4712
4713 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4714 Calculate total size precisely. Decode environment variables
4715 before substituting. (Bug#38)
4716
553dd618
KH
47172009-03-24 Kenichi Handa <handa@m17n.org>
4718
4719 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4720 encoding (Bug#2722).
553dd618 4721
c39ea606
JD
47222009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4723
4724 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4725 that gdpy is set.
4726
bc9b2b5e
AM
47272009-03-22 Alan Mackenzie <acm@muc.de>
4728
4729 * callint.c (Finteractive): Clarify the doc string - even
4730 promptless elements need \n separators.
4731
9f995a76
JR
47322009-03-22 Jason Rumney <jasonr@gnu.org>
4733
4734 * w32term.c (syms_of_w32term): Doc fix for
4735 x-use-underline-position-properties.
4736
22749e9a
EZ
47372009-03-21 Eli Zaretskii <eliz@gnu.org>
4738
4739 * w32.c (getpwuid): Change argument type to unsigned.
4740 (struct w32_id): Change type of `rid' member to unsigned.
4741 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4742 argument ID to unsigned. All callers changed.
4743 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4744
e00553bf
EZ
47452009-03-20 Eli Zaretskii <eliz@gnu.org>
4746
4747 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4748 negative, produce a float value.
4749
4750 * dired.c (make_uid, make_gid): New functions.
4751 (Ffile_attributes): Use them to avoid negative UID and GID.
4752
f761d6b6
JB
47532009-03-20 Juanma Barranquero <lekktu@gmail.com>
4754
4755 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4756 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4757 Fix typos in docstrings.
4758
d507f8d7
KH
47592009-03-19 Kenichi Handa <handa@m17n.org>
4760
4761 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4762 changed, use font_load_for_lface to get a new font object.
4763 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4764
4765 * frame.c (x_set_font): Handle the case that ARG is a cons.
4766
c68845e0
GM
47672009-03-19 Glenn Morris <rgm@gnu.org>
4768
4769 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4770
bfa49dd1
CY
47712009-03-19 Chong Yidong <cyd@stupidchicken.com>
4772
4773 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4774
8458d4c1
KH
47752009-03-19 Kenichi Handa <handa@m17n.org>
4776
4777 * charset.c (load_charset_map_from_file): When a mapfile can't be
4778 loaded, signal an error.
4779
78e7d1fe
EZ
47802009-03-18 Eli Zaretskii <eliz@gnu.org>
4781
4782 * dired.c (Ffile_attributes): Make sure UID and GID are always
4783 positive, even if the value is too large for a positive EMACS_INT.
4784 Doc fix.
4785
4786 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4787
5da9fdfa
YM
47882009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4789
4790 * xmenu.c (xdialog_show): Move Fredisplay call ...
4791 (Fx_popup_dialog): ... here.
4792
7519c40d
SM
47932009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4794
4795 * dired.c (file_name_completion): Disable the first optimization just
4796 installed, since it is not implemented correctly.
4797
2cd298e2
SM
47982009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4799
4800 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4801 only if the entry can affect bestmatch.
2cd298e2
SM
4802 Stop the search early, as Ftry_completion already does.
4803
48d37adf
CY
48042009-03-17 Chong Yidong <cyd@stupidchicken.com>
4805
e10c9c93 4806 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4807
9286b16a
CY
48082009-03-15 Chong Yidong <cyd@stupidchicken.com>
4809
4810 * keyboard.c (parse_menu_item): Don't display remappings as menu
4811 equivalent bindings (Bug#788).
4812
f7b146dc
JR
48132009-03-15 Jason Rumney <jasonr@gnu.org>
4814
4815 * w32term.h (WM_EMACS_PAINT): New message.
4816 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4817 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4818 before passing to lisp thread. (Bug#950)
4819
f761d6b6 48202009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4821
d93f9575
CY
4822 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4823 variable as it was never reset.
4824 (ns_term_init): Remove initialization of Lisp-settable defaults
4825 and ns_expand_space.
4826 (-setPanelFromDefaultValues): Remove ns_expand_space.
4827 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4828 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4829 i.e. no additional spacing, similar to Carbon port.
4830
d93f9575
CY
4831 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4832 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4833
305018ec
JD
48342009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4835
4836 * sound.c (alsa_configure): Remove call to deprecated
4837 snd_pcm_sw_params_set_xfer_align.
4838
f761d6b6 48392009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4840
4841 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4842 after clicking in a detached tool bar.
4843 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4844
46e722a9
SM
48452009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4846
348db3dd
SM
4847 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4848 int/Lisp_Object mixup).
46e722a9 4849
a3d16f39
KH
48502009-03-13 Kenichi Handa <handa@m17n.org>
4851
4852 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4853 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4854 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4855 (set_fontset_font): Change ARG to a vector. Handle range_list in
4856 ARG correctly.
4857 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4858 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4859 the above change.
4860 (fontset_from_font): Fix previous change.
fe24f56a 4861 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4862 entry. If FONTSET is the default fontset, don't set the extra
4863 slot of the returning char-table.
4864
b066e6b6
JB
48652009-03-12 Juanma Barranquero <lekktu@gmail.com>
4866
4867 * nsfns.m (Fx_close_connection): Doc fix.
4868 (Fns_do_applescript): Reflow docstring.
4869 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4870 (Fx_display_pixel_width, Fx_display_pixel_height)
4871 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4872 Fix typos in docstrings.
4873 (Fns_set_alpha): Fix typos in error messages.
4874
d472514e 48752009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4876
d472514e 4877 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4878 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4879 were used for such events.
4880
d472514e
JB
4881 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4882 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4883
d472514e 4884 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4885 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4886
fb930676
KH
48872009-03-11 Kenichi Handa <handa@m17n.org>
4888
ff85581a
KH
4889 * font.h (font_open_by_spec): Extern it.
4890
c50b7e98
KH
4891 * font.c (font_open_by_spec): New function.
4892 (font_open_by_name): Use font_open_by_spec.
4893
fb930676
KH
4894 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4895 fontset of the frame.
4896
4897 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4898 modify the default font of frames that use this fontset.
4899 (num_auto_fontsets): New variable.
4900 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4901 name. Be sure to set FONTSET_ASCII to the correct font name.
4902 (update_auto_fontset_alist): New function.
4903
df4e8455
JB
49042009-03-11 Juanma Barranquero <lekktu@gmail.com>
4905
4906 * makefile.w32-in: Update dependencies.
4907
0a375797
AR
49082009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4909
4910 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4911
61313fa3
SM
49122009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4913
4914 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4915
b55103fb
CY
49162009-03-10 Chong Yidong <cyd@stupidchicken.com>
4917
4918 * lread.c (Feval_buffer): Doc fix.
4919
dde2559c
KH
49202009-03-09 Kenichi Handa <handa@m17n.org>
4921
4922 * charset.c (Qfile_name_handler_alist): Extern it.
4923 (load_charset_map_from_file): Temporarily bind
4924 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4925
df4e8455 49262009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4927
47f588bb
GM
4928 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4929 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4930
4ddf94bd
AR
49312009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4932
4c9bdfc2
AR
4933 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4934 (x_set_window_size): Change back to calculated method of setting
4935 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4936 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4937 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4938
fe41ae9e
AR
4939 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4940
4c9bdfc2
AR
4941 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4942 accelerator in parens under GNUstep.
4943
825d0875
KH
49442009-03-06 Kenichi Handa <handa@m17n.org>
4945
4946 These changes are to detect incorrect composition sequence without
f3b3be74 4947 looking ahead the source. (Bug#2370)
825d0875
KH
4948
4949 * coding.h: Include "composite.h".
4950 (enum compisition_state): New enum.
4951 (struct compisition_status): New struct.
4952 (struct iso_2022_spec): New member cmp_status.
4953 (struct emacs_mule_spec): New struct.
4954 (struct coding_system): New members ctext_extended_segment_len and
4955 embedded_utf_8. Change the union member
4956 spec.emacs_mule_full_support to spec.emacs_mule.
4957
4958 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4959 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4960 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4961 (ADD_COMPOSITION_DATA): New arg nbytes.
4962 (emacs_mule_char): New arg cmp_status.
4963 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4964 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4965 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4966 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4967 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4968 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4969 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4970 (EMACS_MULE_COMPOSITION_END): New macro.
4971 (emacs_mule_finish_composition): New function.
4972 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4973 (decode_coding_emacs_mule): Avoid long looking ahead while
4974 handling composition.
4975 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4976 (ENCODE_COMPOSITION_RULE): New macro.
4977 (finish_composition): New function.
4978 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4979 (DECODE_COMPOSITION_START): New implementation.
4980 (DECODE_COMPOSITION_END): Likewise.
4981 (STORE_COMPOSITION_RULE): New macro.
4982 (decode_coding_iso_2022): Avoid long looking ahead while handling
4983 composition, CTEXT extended segment, and embedded UTF-8.
4984 (setup_coding_system): For a coding of type iso-2022, reset
4985 CODING_ISO_EXTSEGMENT_LEN (coding) and
4986 CODING_ISO_EMBEDDED_UTF_8 (coding).
4987 (get_translation): Delete arguments last_block, from_nchars,
4988 to_nchars. Callers changed.
4989 (produce_chars): Don't modify charbuf. Adjusted for the change of
4990 get_translation.
98a326f7 4991 (produce_composition): Adjust for the new annotation sequence.
825d0875 4992 (handle_composition_annotation): Likewise.
98a326f7 4993 (consume_chars): Adjust for the change of get_translation.
825d0875 4994
ccbc4452
AR
49952009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4996
4ddf94bd 4997 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4998
988a7ddb
KH
49992009-03-05 Kenichi Handa <handa@m17n.org>
5000
5001 * font.c (font_select_entity): New function.
5002 (font_find_for_lface): Use font_select_entity to select a font.
5003
5004 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5005 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5006 font with C restriction.
5007
98a326f7 50082009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5009
be1bce46 5010 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5011
10ea2b82
JR
50122009-03-04 Jason Rumney <jasonr@gnu.org>
5013
2c93b248 5014 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5015 characters that have already been read. (Bug#2569)
2c93b248 5016
10ea2b82
JR
5017 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5018 Log an error message if check_image_size failed.
5019 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5020 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5021
71a0c011
EZ
50222009-03-02 Eli Zaretskii <eliz@gnu.org>
5023
5024 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5025 when decoding process output.
5026
2f63bba8
RS
50272009-03-01 Richard M Stallman <rms@gnu.org>
5028
5029 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5030
5031 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5032
0a9564cb
EZ
50332009-02-28 Eli Zaretskii <eliz@gnu.org>
5034
5035 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5036 (decode_coding_emacs_mule, decode_coding_iso_2022)
5037 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5038 (decode_coding_raw_text, decode_coding_charset)
5039 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5040 Honor inhibit-eol-conversion. (Bug #2186)
5041
449148b3
JR
50422009-02-28 Jason Rumney <jasonr@gnu.org>
5043
5044 * coding.c (detect_coding_charset): If not checking latin extra,
5045 fail on characters between 0x80 and 0xA0. (Bug#2354)
5046
a4aee864
EZ
50472009-02-28 Eli Zaretskii <eliz@gnu.org>
5048
5049 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5050 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5051
d88bee5a
GM
50522009-02-27 Glenn Morris <rgm@gnu.org>
5053
5054 * callint.c (Finteractive): Doc fix.
5055
a808f22d
KH
50562009-02-27 Kenichi Handa <handa@m17n.org>
5057
5058 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5059
caf8d60c
CY
50602009-02-27 Chong Yidong <cyd@stupidchicken.com>
5061
5062 * font.c (font_style_to_value): Set value for unknown symbols to
5063 100 instead of 255.
b61137ea
CY
5064 (weight_table, slant_table, width_table): Treat "unspecified" as
5065 the default value.
caf8d60c 5066
1a0de25c
JB
50672009-02-26 Juanma Barranquero <lekktu@gmail.com>
5068
5069 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5070
8fc45744
JB
50712009-02-25 Juanma Barranquero <lekktu@gmail.com>
5072
107bd7d1
JB
5073 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5074 error as soon as a recursive load is detected.
8fc45744 5075
f097e223
AR
50762009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5077
5078 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5079 before caching.
5080
8810a12f
KH
50812009-02-24 Kenichi Handa <handa@m17n.org>
5082
5083 * fontset.c (fontset_find_font): Fix the condition for checking
5084 unavailable font.
5085
2c7d1565
GM
50862009-02-24 Glenn Morris <rgm@gnu.org>
5087
5088 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5089 whitespace that confuses documentation.
5090
a20878b6
MB
50912009-02-23 Miles Bader <miles@gnu.org>
5092
5093 * process.c (Flist_system_processes, Fprocess_attributes)
5094 (syms_of_process): Rename `system-process-attributes' to
5095 `process-attributes'.
5096
b3b58c01
AS
50972009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5098
1b3b981b
AS
5099 * coding.h (struct coding_system): Make safe_charsets a pointer to
5100 unsigned char.
5101 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5102 being 255.
5103 (SAFE_CHARSET_P): Likewise.
5104 (setup_iso_safe_charsets): Properly setup safe_charsets.
5105 (Fdefine_coding_system_internal): Likewise.
5106 (setup_coding_system): Likewise. Remove unneeded casts.
5107 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5108 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5109 unneeded casts.
5110
b3b58c01
AS
5111 * insdel.c (del_range_2): Don't modify gap contents when called
5112 from decode_coding_object. (Bug#1809)
5113
0b6f228c
CY
51142009-02-21 Chong Yidong <cyd@stupidchicken.com>
5115
5116 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5117 Qfont_object.
5118 (Ftype_of): Recognize font objects.
5119
5120 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5121
5122 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5123 moved to data.c.
5124
52f8870b
AR
51252009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5126
5127 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5128 async_iconified. Based on a patch by Christian Lynbech
5129 <christian.lynbech@tieto.com>.
5130 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5131
7087d5e9
GM
51322009-02-20 Glenn Morris <rgm@gnu.org>
5133
5134 * syntax.c (Fskip_chars_forward): Fix doc typo.
5135
41d2ceef
CY
51362009-02-20 Chong Yidong <cyd@stupidchicken.com>
5137
5138 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5139
1a3b7ca6
CY
51402009-02-19 Chong Yidong <cyd@stupidchicken.com>
5141
5142 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5143
73cce38d
KH
51442009-02-19 Kenichi Handa <handa@m17n.org>
5145
5146 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5147 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5148
a51092ee
DN
51492009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5150
5151 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5152
c423ecca
KH
51532009-02-18 Kenichi Handa <handa@m17n.org>
5154
5155 * font.c (font_check_otf_features): Fix handling of `nil' element.
5156 (Ffont_spec): Describe :lang and :otf in the docstring.
5157
4c1958f4
AS
51582009-02-16 Andreas Schwab <schwab@suse.de>
5159
5160 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5161 string.
5162
5704f39a
KH
51632009-02-16 Kenichi Handa <handa@m17n.org>
5164
5165 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5166 (Bug#1723)
5704f39a 5167
8f0085aa
CY
51682009-02-14 Chong Yidong <cyd@stupidchicken.com>
5169
a057d86a 5170 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5171
5172 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5173 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5174
aff01dd9
EZ
51752009-02-14 Eli Zaretskii <eliz@gnu.org>
5176
5177 * msdos.c (MAX_SCREEN_BUF): New macro.
5178 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5179 Encode the entire run of glyphs sharing the same face, instead of
5180 doing that one glyph at a time (fixes a bug with displaying
5181 double-size characters).
5182
ba301db3
AR
51832009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5184
5185 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5186
5187 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5188 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5189 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5190
5191 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5192 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5193
51d861de
SM
51942009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5195
ac146f82 5196 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5197 invisible areas.
5198
7fed8996
JR
51992009-02-12 Jason Rumney <jasonr@gnu.org>
5200
631ea4fb
JR
5201 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5202 (add_font_entity_to_list): Call check_face_name even when family
5203 is unspecified.
5204
cb4a3e42
JR
5205 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5206 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5207 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5208
7fed8996 5209 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5210 raster fonts. (Bug#2219)
7fed8996 5211
895416e3
KH
52122009-02-12 Kenichi Handa <handa@m17n.org>
5213
5214 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5215 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5216 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5217 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5218 (find_automatic_composition): While looking forward and backward,
5219 check static composition. Fix where to stop looking forward.
5220 (composition_adjust_point): Fix checking of static composition.
5221 (Fcomposition_get_gstring): Pay attention to
1dacf998 5222 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5223
5224 * lisp.h (fast_looking_at): Extern it.
5225
5226 * search.c (fast_looking_at): New function.
5227
51d861de 5228 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5229 <struct glyph>.u.cmp.to.
5230 (append_composite_glyph): Likewise.
5231
51d861de 5232 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5233 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5234 composition.
51d861de 5235 (append_composite_glyph): Adjust for the change of
895416e3
KH
5236 <strcut glyph>.u.cmp.to.
5237
8510724d
JB
52382009-02-11 Juanma Barranquero <lekktu@gmail.com>
5239
5240 * casetab.c (init_casetab_once):
5241 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5242 * font.c (font_update_lface):
5243 * fontset.c (Fnew_fontset):
5244 * ftfont.c (ftfont_drive_otf):
5245 * xfont.c (xfont_open):
5246 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5247
294fa707
SM
52482009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5249
5250 * fileio.c (Fwrite_region): !NILP -> CONSP.
5251
b5bfebec
AS
52522009-02-10 Andreas Schwab <schwab@suse.de>
5253
5254 * process.c (send_process): Properly relocate pointer into data
adab88bd 5255 when using encoded data. (Bug#2272)
b5bfebec 5256
cb84a2be
KH
52572009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5258
5259 * coding.c (detect_coding_charset): Fix previous change.
5260
89e09428
JR
52612009-02-08 Jason Rumney <jasonr@gnu.org>
5262
5263 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5264 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5265
4470a277
AS
52662009-02-07 Andreas Schwab <schwab@suse.de>
5267
5268 * unexelf.c (unexec): Fix error message.
5269
3175b12a
AR
52702009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5271
5272 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5273 when modal window is active. (Bug #2152)
3175b12a
AR
5274 (applicationShouldTerminate:): Remove now-unneeded while loop
5275 around NSRunAlertPanel.
5276
5277 * nsmenu.m (popupSession): New file-global variable.
5278 (pop_down_menu): End the popupSession before closing dialog.
5279 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5280 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5281 don't query NSApp for events (just sleep instead).
5282
8434d0b8
EZ
52832009-02-07 Eli Zaretskii <eliz@gnu.org>
5284
51d861de
SM
5285 * coding.c (syms_of_coding) <translation-table-for-input>:
5286 Modify doc string to discourage use for character code unification.
8434d0b8 5287
aa82edfd
CY
52882009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5289
5290 * atimer.c (run_timers): Update pending_atimers.
5291
2d283c7c
CY
52922009-02-06 Chong Yidong <cyd@stupidchicken.com>
5293
eb306cab
CY
5294 * image.c (svg_load_image): Fix last change.
5295
2d283c7c
CY
5296 * xfns.c (Fx_create_frame): Signal an error if no font is
5297 found (Bug#2147).
5298
4d8e170e
JB
52992009-02-05 Juanma Barranquero <lekktu@gmail.com>
5300
5301 * character.c (syms_of_character) <script-representative-chars>:
5302 Fix typo in docstring.
5303
c96169a0
AR
53042009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5305
5306 * nsmenu.m (pop_down_menu): New function.
5307 (ns_popup_dialog): Call it on unwind.
5308 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5309 call timer_check() (Bug#2154).
5310 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5311 handling_signal is set.
5312 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5313
31fd7c5c 5314 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5315
5316 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5317
5318 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5319
51d861de
SM
5320 * keyboard.c (poll_for_input_1, handle_async_input):
5321 Set handling_signal under HAVE_NS.
c96169a0 5322
aacd8ba1
GM
53232009-02-04 Glenn Morris <rgm@gnu.org>
5324
5325 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5326
4cb75c4b
KH
53272009-02-04 Kenichi Handa <handa@m17n.org>
5328
5329 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5330
5331 * charset.c (Fchar_charset): New optional arg restriction.
5332
5333 * coding.h (coding_system_charset_list): Extern it.
5334
5335 * coding.c (coding_system_charset_list): New function.
5336
5337 * composite.c: Include coding.h and termhooks.h.
5338 (composition_gstring_p): Fix for the terminal case.
5339 (composition_gstring_width): Likewise.
5340 (fill_gstring_body): Likewise.
5341 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5342 the frame.
5343 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5344 is within a composition.
867d4bb3 5345 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5346
5347 * term.c (encode_terminal_code): Fix handling of composition.
5348 (produce_composite_glyph): For static composition, get pixel_width
5349 from struct composition.
5350
826ba17e
AS
53512009-02-02 Andreas Schwab <schwab@suse.de>
5352
5353 * unexelf.c (unexec): Handle unaligned bss offset.
5354
8ad093db
AR
53552009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5356
5357 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5358 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5359
8ad093db
AR
5360 * keyboard.c (handle_interrupt): Don't call
5361 quit_throw_to_read_char() under NS.
d0a76a6e 5362
8ad093db
AR
5363 * blockinput.h: Remove NS-specific code.
5364
4d18a7a2
DN
53652009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5366
db878925
DN
5367 * dispnew.c (window_change_signal): Don't try to get the size of a
5368 suspended tty frame.
5369 * term.c (Fresume_tty): Resize if the size has changed while the
5370 tty was suspended.
5371
4d18a7a2
DN
5372 * alloc.c (mark_stack): Properly conditionalize previous change.
5373
8984df7c
JB
53742009-01-30 Juanma Barranquero <lekktu@gmail.com>
5375
5376 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5377 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5378 Remove; this code is not used on Windows.
5379
75f4f1ac
EZ
53802009-01-30 Eli Zaretskii <eliz@gnu.org>
5381
5382 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5383 EOLs that also has stray ^M characters.
5384
07a1e794
JB
53852009-01-30 Juanma Barranquero <lekktu@gmail.com>
5386
5387 * atimer.c (run_timers, alarm_signal_handler):
5388 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5389 * w32inevt.c (w32_console_read_socket):
5390 * w32term.c (w32_read_socket):
5391 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5392
a8b11cc9
CY
53932009-01-30 Chong Yidong <cyd@stupidchicken.com>
5394
5395 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5396 Initialize it as a relative filename pattern.
5397 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5398 (Fcall_process_region): Simplify temp file creation using
5399 temporary-file-directory.
5400
c279587b
EZ
54012009-01-29 Eli Zaretskii <eliz@gnu.org>
5402
5403 * msdos.c: Rename pending_signals to msdos_pending_signals.
5404 (sig_suspender, sigprocmask): Adjust.
5405
a8fe3242
CY
54062009-01-29 Chong Yidong <cyd@stupidchicken.com>
5407
5408 * keyboard.c (pending_signals): New var.
5409 (poll_for_input, input_available_signal, init_keyboard): Set it.
5410 (process_pending_signals): New function.
5411
5412 * lisp.h (QUIT): Check pending_signals instead of
5413 interrupt_input_pending. Use process_pending_signals.
5414
51d861de 5415 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5416
51d861de 5417 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5418
5419 * sysdep.c (emacs_write): Use process_pending_signals.
5420
5421 * xterm.c (XTread_socket): Update pending_signals.
5422
5423 * w32term.c (w32_read_socket): Update pending_signals.
5424
5425 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5426
6570a1c4
KH
54272009-01-29 Kenichi Handa <handa@m17n.org>
5428
5429 * xftfont.c (xftfont_has_char): New function.
5430 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5431
d72a4afa
AR
54322009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5433
5434 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5435 under GNUstep.
5436 (ns_query_color): New declaration.
5437
5438 * nsterm.m (ns_confirm_quit): New variable.
5439 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5440 (EmacsApp-applicationShouldTerminate:): Use it.
5441 (EmacsPrefsController): Let user set it.
5442 (ns_query_color): New function.
5443 (ns_defined_color): Use it.
5444 (ns_initialize): Drop.
5445 (ns_term_init): Add two lines from ns_initialize(), and set
5446 input_interrupt_mode to nil.
5447
5448 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5449 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5450
9fe78804
KH
54512009-01-28 Kenichi Handa <handa@m17n.org>
5452
5453 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5454 (fontset_get_font_group): Remember that no font-group is specified
5455 for C.
9fe78804 5456
fa57de36
CY
54572009-01-27 Chong Yidong <cyd@stupidchicken.com>
5458
930600e9
CY
5459 * fns.c (concat): Check for string overflow (bug#1787).
5460
fa57de36
CY
5461 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5462 Quadruple undo limits (bug#1501).
5463
7179ce7b
KH
54642009-01-27 Kenichi Handa <handa@m17n.org>
5465
5466 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5467 directly use GT_Get_Char_index.
5468
5469 * xftfont.c (struct xftfont_info): New member `index'.
5470
5471 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5472 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5473
5be8fcc0
CY
54742009-01-26 Kenichi Handa <handa@m17n.org>
5475
5476 * fontset.c (fontset_find_font): Fix handling of non-cons return
5477 value of fontset_get_font_group.
5478 (fontset_font): Revert last change.
5479
19ae3e61
JR
54802009-01-26 Jason Rumney <jasonr@gnu.org>
5481
5482 * w32font.c (w32font_list_internal): Return quickly if registry is
5483 unknown. Simplify final return.
5484 (add_font_entity_to_list): Break complex logic down into more
5485 manageable chunks. Move unknown registry check to
5486 w32font_list_internal.
5487
8612b71a
AR
54882009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5489
5490 Changes to remove Feval calls from GUI under NS.
5491
d8038940
JB
5492 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5493 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5494 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5495
5496 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5497 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5498 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5499 instead of NON_ASCII_KEYSTROKE_EVENT.
5500 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5501 (EmacsApp-applicationShouldTerminate:): Query user.
5502 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5503 instead of Feval.
5504
5505 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5506
5507 * keyboard.c (kbd_buffer_get_event): Check for it.
5508 (keys_of_keyboard): Define lispy keys for
5509 ns-put/unput-working-text.
5510
5511 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5512 versions.
5513 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5514
6288ae55
CY
55152009-01-25 Chong Yidong <cyd@stupidchicken.com>
5516
5517 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5518 setting current_buffer directly. (Bug#2044)
6288ae55 5519
289e7f8f
CY
55202009-01-24 Chong Yidong <cyd@stupidchicken.com>
5521
5ce87308 5522 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5523 any work. (Bug#1952, bug#1990).
5ce87308 5524
64cc3cf6 5525 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5526
b3243e6f
AR
55272009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5528
5529 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5530 (ns_no_defaults): New declaration.
5531 (main): Use it.
e0d2e69a 5532
d900b2af 5533 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5534
d900b2af 5535 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5536
d900b2af
AR
5537 * nsterm.m (ns_no_defaults): New variable.
5538 (ns_initialize): Don't read defaults when ns_no_defaults.
5539 (EmacsView-readSelectionFromPasteboard:)
5540 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5541 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5542 (ns_dumpglyphs_stretch): New function.
5543 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5544 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5545
e0d2e69a
AR
5546 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5547
3ac71f5d
CY
55482009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5549
5550 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5551 call for Sparc64.
5552
3fe53a83
AR
55532009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5554
5555 * nsfns.m:
5556 * nsgui.h:
5557 * nsmenu.m:
5558 * nsselect.m:
5559 * nsterm.h:
5560 * nsterm.m: Remove '23' comments that indicated code added during
5561 update from emacs-20 -> emacs-23.
5562
10f87c6f 55632009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5564
5565 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5566 ns_alternate_modifier. (Bug#1217)
a3b53a85 5567
c7cef62d
AR
5568 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5569 Display all shortcuts, including those w/o super modifier.
5570
575fb8bd
AR
5571 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5572
918b848b
CY
55732009-01-22 Chong Yidong <cyd@stupidchicken.com>
5574
5575 * fileio.c (Vwrite_region_post_annotation_function)
5576 (Vwrite_region_annotation_buffers): New vars.
5577 (build_annotations_unwind): Just reset
5578 Vwrite_region_annotation_buffers.
5579 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5580 Call write-region-post-annotation-function.
5581 (build_annotations): Add to Vwrite_region_annotation_buffers if
5582 buffer changes.
5583
a39e2539
AR
55842009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5585
5586 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5587 Tiger.
51d861de
SM
5588 * nsfns.m (ns_do_applescript):
5589 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5590
35ed44db
AR
55912009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5592
5593 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5594
cbe0b5bf
AR
55952009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5598
6049d3a0
AR
5599 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5600
5601 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5602 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5603 handle Ctrl-tab. (Bug#1841)
5604 (ns_get_color): Use unsigned long long for scanned hex string value.
5605 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5606 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5607 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5608 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5609 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5610 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5611 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5612
d3810c21 5613 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5614 DPI. (Bug#1316)
d3810c21
AR
5615 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5616 values in onTiger section.
4c7077c3 5617
e301e634
CY
56182009-01-19 Chong Yidong <cyd@stupidchicken.com>
5619
7f82490b
CY
5620 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5621 Check return value of font_spec_from_name.
64cc3cf6 5622 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5623
5624 * font.c (font_spec_from_name): Return Qnil if font name could not
5625 be parsed.
5626 (font_parse_name): Treat a `?' character as part of an XLFD.
5627
e301e634
CY
5628 * fns.c (Fsubstring): Doc fix.
5629
1c0db158
KH
56302009-01-19 Kenichi Handa <handa@m17n.org>
5631
51d861de 5632 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5633 (ftfont_list): Likewise.
5634
acf20901
JB
56352009-01-18 Juanma Barranquero <lekktu@gmail.com>
5636
fff4e459
JB
5637 * dbusbind.c (Fdbus_register_signal):
5638 * process.c (conv_sockaddr_to_lisp):
5639 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5640
acf20901
JB
5641 * callproc.c (Fgetenv_internal): Doc fix.
5642
e7abcdfb
CY
56432009-01-16 Chong Yidong <cyd@stupidchicken.com>
5644
5645 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5646 it is not even used.
5647
b60861e6
GM
56482009-01-16 Glenn Morris <rgm@gnu.org>
5649
5650 * font.c (Ffont_variation_glyphs): Silence compiler.
5651
8db52afe
JB
56522009-01-15 Juanma Barranquero <lekktu@gmail.com>
5653
5654 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5655 Reported by David Robinow <drobinow@gmail.com>.
5656
4cddb209
KH
56572009-01-15 Kenichi Handa <handa@m17n.org>
5658
51d861de 5659 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5660
f247f67b
JR
56612009-01-14 Jason Rumney <jasonr@gnu.org>
5662
5663 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5664 never a fontset. (Bug#1562)
f247f67b 5665
f56a4450
KH
56662009-01-14 Kenichi Handa <handa@m17n.org>
5667
5668 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5669 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5670
4e99855e
CY
56712009-01-13 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * font.c (font_clear_prop): If clearing the family, clear the font
5674 width index too.
5675
fff4e459 5676 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5677
24f01470
JB
56782009-01-12 Juanma Barranquero <lekktu@gmail.com>
5679
5680 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5681 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5682 functions, use sizeof.
5683
a41240a3
MR
56842009-01-12 Martin Rudalics <rudalics@gmx.at>
5685
5686 * keyboard.c (read_char): Fix case where last_nonmenu_event
5687 returned a bad value with submenus. (Bug#447)
5688
944636b8
CY
56892009-01-12 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5692 family, clear the font width index too.
5693
0dad7c6f
JR
56942009-01-11 Jason Rumney <jasonr@gnu.org>
5695
5696 * keyboard.c (cmd_error_internal): Exit when errors occur before
5697 frame creation and not in daemon mode. (Bug#1836)
5698
7c2363af
CY
56992009-01-10 Chong Yidong <cyd@stupidchicken.com>
5700
5701 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5702 of a display vector, backtrack.
5703 (try_window_reusing_current_matrix): Check glyph type before
5704 referencing charpos member.
5705
97b1b294
EZ
57062009-01-10 Eli Zaretskii <eliz@gnu.org>
5707
5708 Fix Bug #876:
5709
5710 * coding.c (inhibit_null_byte_detection): New variable.
5711 (detect_coding, detect_coding_system): Don't pay attention to null
5712 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5713 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5714 <inhibit-iso-escape-detection>: Doc fix.
5715
4624b6e3
JR
57162009-01-09 Jason Rumney <jasonr@gnu.org>
5717
5718 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5719 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5720 Only report Unicode Plane 2 fonts as unicode-sip.
5721
323b840c
CY
57222009-01-09 Chong Yidong <cyd@stupidchicken.com>
5723
51d861de
SM
5724 * xfaces.c (Fx_font_family_list): Delete function.
5725 Move compatibility version to faces.el.
323b840c 5726
51d861de 5727 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5728
eba7400d
MR
57292009-01-09 Martin Rudalics <rudalics@gmx.at>
5730
5731 * frame.c (x_set_frame_parameters): Remember requested value for
5732 fullscreen before it's reset by the parameter handler.
5733
4b09796d
GM
57342009-01-09 Glenn Morris <rgm@gnu.org>
5735
5736 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5737 (last_command_event): ... and update all users.
4b09796d
GM
5738 (last_input_char): For clarity, rename to...
5739 (last_input_event): ... and update all users.
5740 (last-command-char, last-input-char): Move to subr.el as aliases.
5741 * cmds.c, commands.h: Update for last_command_char rename.
5742
14ccea62
CY
57432009-01-08 Chong Yidong <cyd@stupidchicken.com>
5744
51d861de 5745 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5746
5f004711
JR
57472009-01-08 Jason Rumney <jasonr@gnu.org>
5748
5749 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5750 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5751 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5752 Don't declare.
fff4e459 5753 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5754 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5755
b71f6f73
KH
57562009-01-07 Kenichi Handa <handa@m17n.org>
5757
50b06221 5758 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5759 remember the coding system used for decoding in
50b06221
KH
5760 coding_system (Bug#1039).
5761
b71f6f73 5762 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5763 breaking the loop. (Bug#870)
b71f6f73
KH
5764 (decode_coding_utf_16, decode_coding_emacs_mule)
5765 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5766 (decode_coding_charset): Likewise.
5767
56f668f7
MR
57682009-01-05 Martin Rudalics <rudalics@gmx.at>
5769
5770 * frame.c (x_set_frame_parameters): Make sure height (width) get
5771 applied when fullwidth (fullheight) is set. (Bug#1522)
5772
5da9424d
JB
57732009-01-04 Juanma Barranquero <lekktu@gmail.com>
5774
5775 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5776 (utc_base): Declare as ULONGLONG, not long double.
5777 (convert_time_raw): Delete.
5778 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5779 (initialize_utc_base): New function.
5780 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5781 (convert_from_time_t): Use initialize_utc_base; compute result with
5782 64-bit arithmetic.
5783 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5784
c4605e09
EZ
57852009-01-03 Eli Zaretskii <eliz@gnu.org>
5786
9acef61c 5787 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5788 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5789 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5790 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5791 [!subprocesses]: Define.
5792 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5793 (Flist_system_processes, Fsystem_process_attributes)
5794 [!subprocesses]: Call list_system_processes and
5795 system_process_attributes instead of returning Qnil.
5796
9acef61c
JB
5797 * dosfns.c (system_process_attributes, list_system_processes):
5798 New functions.
c4605e09
EZ
5799
5800 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5801
5802 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5803 Don't use the default (no-op) implementation.
5804
8b7d0a16
JR
58052009-01-03 Jason Rumney <jasonr@gnu.org>
5806
a6d46bc1
JR
5807 * keyboard.c (parse_modifiers_uncached): Wheel events are
5808 clicks (bug#687).
5809
8b7d0a16
JR
5810 * w32term.c (x_query_colors, x_query_color): New functions.
5811
5812 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5813 (svg_load_image): Cast returned pointers from dynamically loaded
5814 functions. Eliminate W32 specific code.
5815
bfe11752
DN
58162009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5817
89e2438a
DN
5818 * nsfns.m (x_set_foreground_color, x_set_background_color)
5819 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5820 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5821 x_ prefix instead of ns_. Update references.
5822 (syms_of_nsfns): Add a FIXME comment.
5823
5824 * nsterm.m (x_set_cursor_type): New prototype.
5825 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5826
bfe11752
DN
5827 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5828 for Solaris instead of incorrectly providing Qutime and Qcutime.
5829
031da700
EZ
58302009-01-02 Eli Zaretskii <eliz@gnu.org>
5831
5832 * w32.c (process_times): Compute sum of utime and stime.
5833 (system_process_attributes): Add Qtime to the alist.
5834
5835 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5836 and add them to the alist.
5837
5838 * process.c (top level) <Qtime, Qctime>: New variables.
5839 (syms_of_process): staticpro them.
5840 (Fsystem_process_attributes): Add their documentation to the doc
5841 string.
5842
5843 * process.h: Declare Qtime and Qctime.
5844
df23bf08
JR
58452009-01-02 Jason Rumney <jasonr@gnu.org>
5846
9acef61c 5847 * image.c (Qgobject): New symbol.
df23bf08
JR
5848 (syms_of_image): Initialize it.
5849 (init_svg_functions): Load some functions from gobject library.
5850
5bbdf7aa
DN
58512009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5852
5853 * frame.c (make_terminal_frame): Remove redundant code and useless
5854 block.
5855
63136da6
AS
58562009-01-01 Andreas Schwab <schwab@suse.de>
5857
5858 * process.c (conv_sockaddr_to_lisp): Add workaround for
5859 getsockname bug on BSD.
5860
9ef69046
CY
58612009-01-01 Chong Yidong <cyd@stupidchicken.com>
5862
d6fafbe0
CY
5863 * xfns.c (x_create_tip_frame): Set border width of the X window.
5864
51d861de 5865 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5866
f9c34147
JR
58672009-01-01 Jason Rumney <jasonr@gnu.org>
5868
9acef61c 5869 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5870 Don't block input, as per earlier xterm.c changes.
5871
f5497e45
AR
58722008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5873
5874 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5875 (ns_appkit_version_int): New function.
5876 (x-server-version): Use ns_appkit_version_int and follow 21+
5877 convention of returning 3 integers.
5878
c19cab20
KH
58792008-12-30 Kenichi Handa <handa@m17n.org>
5880
5881 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5882 (CHAR_SURROGATE_PAIR_P): New macro.
5883
5884 * font.h (struct font_driver): New member get_variation_glyphs.
5885
9acef61c 5886 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5887 (Ffont_variation_glyphs): New function.
5888 (syms_of_font): Defsubr it.
5889
5890 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5891 ftfont_variation_glyphs.
5892 (setup_otf_gstring): New function.
5893 (ftfont_drive_otf): Use it.
5894 (ftfont_shape_by_flt): Handle variation selector.
5895 (ftfont_variation_glyphs): New function.
5896
28cd591f
MR
58972008-12-30 Martin Rudalics <rudalics@gmx.at>
5898
5899 * frame.c (Vemacs_iconified): Remove.
5900
7f714baf
JR
59012008-12-30 Jason Rumney <jasonr@gnu.org>
5902
5903 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5904 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5905
9d2d22ab
CY
59062008-12-30 Chong Yidong <cyd@stupidchicken.com>
5907
5908 * indent.c (Fvertical_motion): Don't advance iterator if we have
5909 reseated to the desired position.
5910
5911 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5912 checking for pos match.
5913
545312c2
KH
59142008-12-30 Kenichi Handa <handa@m17n.org>
5915
1ede3eb6
KH
5916 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5917 just get the low 8-bit of the code.
5918
545312c2
KH
5919 * font.c (font_intern_prop): Validate str as multibyte.
5920
bd7bbf29
DN
59212008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5922
31e0750e
DN
5923 * dispextern.h (struct face): Move lface and hash from the middle
5924 of bitfields.
5925
bd7bbf29
DN
5926 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5927
b5672e7c
DN
59282008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5929
5930 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5931 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5932 instead of intervals.h.
5933
d704470f
AS
59342008-12-26 Andreas Schwab <schwab@suse.de>
5935
5936 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5937 cons.
5938
54b33868
MR
59392008-12-26 Martin Rudalics <rudalics@gmx.at>
5940
5941 * textprop.c (Qminibuffer_prompt): New variable.
5942 (syms_of_textprop): Initialize it.
5943 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5944 in minibuffer-prompt face. (Bug#1662)
5945
40b615d6
JR
59462008-12-25 Jason Rumney <jasonr@gnu.org>
5947
5948 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5949
baae5c2d
JR
59502008-12-24 Jason Rumney <jasonr@gnu.org>
5951
5952 * ralloc.c (r_alloc_reset_variable): New function.
5953
5954 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5955 record of what points where. (Bug#716)
baae5c2d 5956
a9051c88
DN
59572008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5958
5959 * minibuf.c (read_minibuf): Follow the non-interactive case when
5960 running as a daemon, before detaching.
5961
8b146312
AS
59622008-12-22 Andreas Schwab <schwab@suse.de>
5963
5964 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5965 * gtkutil.c (free_widget_value): Use xfree instead of free.
5966
56f2de10
MR
59672008-12-22 Martin Rudalics <rudalics@gmx.at>
5968
5969 * frame.c (delete_frame): New function derived from
5970 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5971 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5972 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5973 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5974 * frame.h: Extern delete_frame.
5975 * window.c (window_loop):
5976 * terminal.c (delete_terminal):
5977 * xterm.c (x_connection_closed):
5978 * xfns.c (Fx_hide_tip):
9acef61c 5979 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5980
1fc200d6
JR
59812008-12-21 Jason Rumney <jasonr@gnu.org>
5982
5983 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5984 when character maps to .notdef character.
5985
5e252df2
SM
59862008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5987
5988 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5989
99b72cc4
JR
59902008-12-20 Jason Rumney <jasonr@gnu.org>
5991
5992 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5993 a graphical frame on Windows. (Bug#1325)
99b72cc4 5994
acc49a52
JD
59952008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5996
5997 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5998
6ea15123
CY
59992008-12-20 Chong Yidong <cyd@stupidchicken.com>
6000
6001 * minibuf.c (Fread_buffer): Doc fix.
6002
b2dab6c8
JR
60032008-12-20 Jason Rumney <jasonr@gnu.org>
6004
54ea0c87 6005 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6006 server name in UNC paths. (Bug#719)
54ea0c87 6007
b2dab6c8 6008 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6009 charbuf. (Bug#1035)
b2dab6c8 6010
6d1921be
DN
60112008-12-19 Daniel Engeler <engeler@gmail.com>
6012
6013 * sysdep.c (serial_configure): Fix typo.
6014
53934c98
DN
60152008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6016
6017 * sysdep.c: Include alloca.h.
f4f634e8
DN
6018 (system_process_attributes): Add implementation for Solaris.
6019
6020 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6021
06e111a6
DN
60222008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6023
6024 Reorganize implementation of Flist_system_processes and
6025 Fsystem_process_attributes. No functional changes.
6026 * process.c: Don't #include pwd.h, grp.h and limits.h.
6027 (Flist_system_processes): Just call list_system_processes.
6028 (Fsystem_process_attributes): Just call system_process_attributes.
6029 (procfs_list_system_processes, time_from_jiffies)
6030 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6031 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6032
6033 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6034 (list_system_processes): Rename from
6035 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6036 Provide a do nothing implementation.
6037 (system_process_attributes): Rename from
6038 procfs_list_system_processes.
6039 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6040 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6041
6042 * w32.c (list_system_processes): Rename from
6043 w32_list_system_processes.
6044 (system_process_attributes): Rename from
6045 w32_system_process_attributes.
6046
6047 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6048
6049 * process.h (w32_list_system_processes)
6050 (w32_system_process_attributes): Remove.
362654a6
JB
6051 (list_system_processes, system_process_attributes):
6052 New prototypes.
06e111a6 6053
6a705b23
KH
60542008-12-19 Kenichi Handa <handa@m17n.org>
6055
6056 * xfont.c (xfont_decode_coding_xlfd): New function.
6057 (xfont_encode_coding_xlfd): New function.
6058 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6059 (xfont_list): Decode and encode XLFD by iso-8859-1.
6060 (xfont_match): Likewise.
6061 (xfont_list_family): Likewise.
6062 (xfont_open): Likewise.
6063
d66c0241 6064 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6065 names are utf-8.
6066
d66c0241 6067 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6068 names are utf-8.
6069
5a130941
JD
60702008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6071
6072 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6073 changed.
bfd20325
JD
6074 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6075 clicked on a detached tool bar button.
5a130941 6076
fd95644b
DN
60772008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6078
6079 * emacs.c (main): Print and error and exit when no data is read
6080 from the pipe.
6081
e6eee6ae
JR
60822008-12-17 Jason Rumney <jasonr@gnu.org>
6083
6084 * w32font.c (w32font_has_char): Always return -1.
6085
a35dd56b
KH
60862008-12-16 Kenichi Handa <handa@m17n.org>
6087
6088 * font.c (font_open_entity): Fix previous change.
6089
0e3635c2
DN
60902008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6091
6092 * process.c: Include <limits.h>.
6093
d4835507 60942008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6095
6096 * font.c (font_update_drivers): Fix mistake in reconstructing the
6097 driver list.
6098
60992008-12-16 Chong Yidong <cyd@stupidchicken.com>
6100
6101 * font.c (font_clear_cache): Fix format of font cache data.
6102
e2cbc401
CY
61032008-12-15 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * xftfont.c (xftfont_open): Free Xft font pattern if
6106 XftFontOpenPattern fails.
6107
6108 * xterm.c (x_free_frame_resources): Remove extraneous call to
6109 free_frame_faces.
6110
b131d535
CY
61112008-12-13 Chong Yidong <cyd@stupidchicken.com>
6112
6113 * xterm.c (x_delete_display): Move xim_close_dpy call to
6114 x_delete_terminal.
6115 (x_delete_terminal): Call xim_close_dpy.
6116
e6df5336
JR
61172008-12-13 Jason Rumney <jasonr@gnu.org>
6118
6119 * w32font.c (intern_font_name): New function.
6120 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6121 (w32font_open_internal, Fx_select_font): Decode font name.
6122 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6123
6124 * w32font.h (intern_font_name): Declare new function.
6125
6126 * w32uniscribe.c (add_opentype_font_name_to_list):
6127 Use intern_font_name.
6128
20d68145
CY
61292008-12-13 Chong Yidong <cyd@stupidchicken.com>
6130
9f2554de
CY
6131 * frame.c (Fdelete_frame): Call free_font_driver_list.
6132
3d9bec9a
CY
6133 * font.c (free_font_driver_list): Implement missing function.
6134
20d68145
CY
6135 * w32term.c (w32_term_init): Don't initialize the image cache
6136 here; it will be done in init_frame_faces.
6137
6138 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6139 (struct x_display_info): Remove unused member null_pixel. New
6140 member xim_callback_data.
6141
6142 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6143 (xim_initialize): Save pointer to callback function data.
6144 (xim_close_dpy): Free callback function data. Call XCloseIM,
6145 reverting 2008-11-04 change by David Smith.
6146 (x_term_init): Don't initialize the image cache here; it will be
6147 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6148 (x_delete_display): Free x_dnd_atoms member.
6149
96f9306b
KH
61502008-12-13 Kenichi Handa <handa@m17n.org>
6151
6dec9044
JB
6152 * font.c (font_rescale_ratio): Moved from xfaces.c.
6153 Argument type changed. Handle a font-spec too.
96f9306b 6154 (font_score): Check Vface_font_rescale_alist.
6dec9044 6155 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6156
6157 * xfaces.c (font_rescale_ratio): Moved to font.c.
6158
8d5b4964
CY
61592008-12-13 Chong Yidong <cyd@stupidchicken.com>
6160
6161 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6162
e6df5336
JR
61632008-12-12 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6166 Vwindow_system_version to the real w32 major version.
6167
97c6058a
DN
61682008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6169
6170 * term.c (init_tty): Move setting the terminal name before the
6171 potential user: maybe_fatal.
6172
ec4e88d7
CY
61732008-12-11 Chong Yidong <cyd@stupidchicken.com>
6174
d4835507
JB
6175 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6176 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6177
b4233ec9
JR
61782008-12-11 Jason Rumney <jasonr@gnu.org>
6179
8ec71e23 6180 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6181 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6182
b4233ec9 6183 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6184 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6185
011a0143
JB
61862008-12-11 Juanma Barranquero <lekktu@gmail.com>
6187
6188 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6189
3c309f34
JB
61902008-12-11 Juanma Barranquero <lekktu@gmail.com>
6191
6192 * process.c (Fsystem_process_attributes, syms_of_process):
6193 Fix typo in name of Ssystem_process_attributes.
6194 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6195
fedc6ab5
JB
61962008-12-11 Juanma Barranquero <lekktu@gmail.com>
6197
6198 * syntax.c (Fmodify_syntax_entry): Doc fix.
6199
ba3de0e8
JB
62002008-12-10 Juanma Barranquero <lekktu@gmail.com>
6201
6202 * font.c (Ffont_spec): Move usage to end of docstring.
6203
174f1c74
JR
62042008-12-10 Jason Rumney <jasonr@gnu.org>
6205
6206 * w32font.c (Qcham): New symbol.
6207 (font_supported_scripts): Add cham, and comments for other new
6208 scripts in bitfield from OpenType spec.
9d32f818
JR
6209 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6210 contain characters beyond the bmp.
174f1c74 6211
7b649478
KH
62122008-12-10 Kenichi Handa <handa@m17n.org>
6213
6214 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6215 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6216 Qunicode_sip.
6217
2133e2d1
JB
62182008-12-10 Juanma Barranquero <lekktu@gmail.com>
6219
6220 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6221 (Fcoding_system_put): Use QCdefault_char.
6222 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6223
9af886ee
CY
62242008-12-09 Chong Yidong <cyd@stupidchicken.com>
6225
74d819eb
CY
6226 * xftfont.c (syms_of_xftfont): Fix typo.
6227
4ccfa1c0 6228 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6229
7c19d3ae
DN
62302008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6231
6232 * emacs.c (main): Close daemon_pipe on exec.
6233
567826bb
CY
62342008-12-08 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * termchar.h (struct tty): New members termcap_term_buffer and
6237 termcap_strings_buffer.
6238
6239 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6240 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6241 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6242 All callers changed.
6243 (init_tty): Store termcap data and string buffers in new struct
6244 tty members termcap_term_buffer and termcap_strings_buffer.
6245 (delete_tty): Free them.
4ccfa1c0 6246 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6247
aa96c42b
SZ
62482008-12-07 Seiji Zenitani <zenitani@mac.com>
6249
6250 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6251 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6252
b7e1d896
CY
62532008-12-06 Chong Yidong <cyd@stupidchicken.com>
6254
6255 * coding.c (make_conversion_work_buffer): Disable buffer
6256 modification hooks in the work buffer.
6257
b5ec91a5
EZ
62582008-12-05 Eli Zaretskii <eliz@gnu.org>
6259
6260 * process.c (procfs_system_process_attributes): If `nread' has a
6261 negative value, assign zero to it.
6262
a5d2a52b
CY
62632008-12-05 Chong Yidong <cyd@stupidchicken.com>
6264
68c5540b 6265 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6266
7bf1bb21
KH
62672008-12-05 Kenichi Handa <handa@m17n.org>
6268
6269 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6270 second character is a combining character.
6271
2fdc7d00
EZ
62722008-12-05 Eli Zaretskii <eliz@gnu.org>
6273
6274 * process.c (procfs_system_process_attributes): Don't use cmd,
6275 cmdsize, and q without initializing them first.
6276
bf6bfba8
JR
62772008-12-04 Jason Rumney <jasonr@gnu.org>
6278
6279 * w32font.c (w32font_draw): Initialize orig_clip before getting
6280 it, and delete it when finished.
6281
a3b1a468
DN
62822008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6283
6284 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6285 case when running as a daemon before detaching.
6286
8b8be8eb
JB
62872008-12-03 Juanma Barranquero <lekktu@gmail.com>
6288
805f2638 6289 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6290
b1bde622
KH
62912008-12-03 Kenichi Handa <handa@m17n.org>
6292
e500c47d
KH
6293 * font.c (font_at): Set `multibyte' at first.
6294
ca516334
KH
6295 * coding.c (decode_coding_charset): Check type of an element of
6296 vector VALIDS.
7bf1bb21 6297 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6298
4ccfa1c0 6299 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6300 (font_for_char): Likewise.
6301
1e5ecd37
CY
63022008-12-03 Chong Yidong <cyd@stupidchicken.com>
6303
d5b01609 6304 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6305 (font_update_lface): Handle fonts with corrupted size specs,
6306 i.e. non-int and non-float.
d5b01609 6307
11e3a6e4 6308 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6309 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6310 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6311
ab06788b
CY
6312 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6313
1e5ecd37 6314 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6315 underline_minimum_offset for underline position.
1e5ecd37 6316
63c125ab
DN
63172008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6318
6319 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6320
6321 * character.c (c_string_width): Specify the type for LEN.
6322
3a8406e1
KH
63232008-12-03 Kenichi Handa <handa@m17n.org>
6324
4ccfa1c0 6325 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6326 (decode_coding_utf_8): Likewise.
4ccfa1c0 6327 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6328 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6329
651df7d9
CY
63302008-12-02 Chong Yidong <cyd@stupidchicken.com>
6331
6332 * keyboard.c (make_lispy_position): Only use PT if the selected
6333 window is current.
6334
1f625c6c
AS
63352008-12-02 Andreas Schwab <schwab@suse.de>
6336
f7741ce9
AS
6337 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6338
1f625c6c
AS
6339 * doprnt.c (doprnt1): Fix size of charbuf.
6340
92bc2678
CY
63412008-12-02 Chong Yidong <cyd@stupidchicken.com>
6342
6343 * keyboard.c (timer_check): Revert last change.
6344
93b9e8cc
JB
63452008-12-02 Juanma Barranquero <lekktu@gmail.com>
6346
6347 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6348
fd7a37d5
JB
63492008-12-01 Juanma Barranquero <lekktu@gmail.com>
6350
6351 * makefile.w32-in: Update dependencies.
6352 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6353
c115043b
AS
63542008-12-01 Andreas Schwab <schwab@suse.de>
6355
6356 * font.c (register_font_driver): Use xmalloc.
6357 (font_put_frame_data): Likewise.
6358
f5668d2a
CY
63592008-12-01 Chong Yidong <cyd@stupidchicken.com>
6360
860d96be
CY
6361 * xfaces.c (realize_x_face): Make abort condition clearer.
6362
f5668d2a
CY
6363 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6364
379c17e7
CY
63652008-11-30 Chong Yidong <cyd@stupidchicken.com>
6366
6367 * keyboard.c (timer_check): After a timer runs, ensure that the
6368 selected window's buffer is current.
6369
35f36d65
JB
63702008-11-30 Juanma Barranquero <lekktu@gmail.com>
6371
f952c61c
JB
6372 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6373 It was accidentally restored by the Unicode merge.
6374
35f36d65
JB
6375 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6376
b23077df
JB
63772008-11-29 Juanma Barranquero <lekktu@gmail.com>
6378
6379 * w32proc.c: Include "coding.h".
6380 (Fw32_short_file_name): Encode filename passed to Windows API.
6381 (Fw32_long_file_name): Encode filename passed to Windows API and
6382 decode back the result. (Bug#1433)
6383
b8ebe9dd
KH
63842008-11-29 Kenichi Handa <handa@m17n.org>
6385
8cc53f96
KH
6386 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6387 not before accessing it.
6388
b8ebe9dd
KH
6389 * charset.c (Fdefine_charset_internal): After calculating
6390 min_char, max_char, and fastmap, copy the charset structure again.
6391 (encode_char): Fix the previous change.
6392
59bc82c0
SZ
63932008-11-28 Seiji Zenitani <zenitani@mac.com>
6394
6395 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6396
6397 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6398
6399 * nsterm.m (x_set_frame_alpha): New function.
6400
32247e3d
EZ
64012008-11-27 Eli Zaretskii <eliz@gnu.org>
6402
6403 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6404
b003e5ff
JB
64052008-11-27 Juanma Barranquero <lekktu@gmail.com>
6406
6407 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6408 pointer to check_face_name.
6409
708550f5
KH
64102008-11-27 Kenichi Handa <handa@m17n.org>
6411
6412 * category.h (SET_CATEGORY_SET): Call set_category_set.
6413 (set_category_set): Extern it.
6414
6415 * category.c (hash_get_category_set): New function.
6416 (Fmodify_category_entry): Adjusted for the change of
6417 char_table_ref_and_range. Call hash_get_category_set to get a
6418 category set to store in the table.
6419
6420 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6421 Funify_charset.
6422
2ae37cf0 6423 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6424 (DECODE_CHAR): Check if the decoder vector is ready.
6425 (ENCODE_CHAR): Check if the encoder char-table is ready.
6426 (maybe_unify_char): Extern it.
6427
6428 * charset.c (Vchar_unified_charset_table): Delete it.
6429 (inhibit_load_charset_map): New variable.
6430 (temp_charset_work): New variable.
6431 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6432 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6433 New macros.
6434 (load_charset_map): Meaning of control_flag changed. If
6435 inhibit_load_charset_map is nonzero, setup a table in
6436 temp_charset_work.
6437 (load_charset): New argument control_flag.
6438 (map_charset_for_dump): New function.
6439 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6440 map_charset_for_dump.
6441 (Fdefine_charset_internal): If the charset method is MAP, load
6442 mapping tables by calling load_charset.
6443 (Funify_charset): Don't load a mapping table but directly set
6444 Vchar_unify_table.
6445 (maybe_unify_char): New function.
6446 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6447 Handle the case of inhibit_load_charset_map being nonzero.
6448 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6449 Handle the case of inhibit_load_charset_map being nonzero.
6450 (Fclear_charset_maps): Just free temp_charset_work.
6451 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6452 variable.
6453
6454 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6455 change of char_table_ref_and_range.
6456 (char_table_ref_and_range): Change the meaning of argument FROM
6457 and TO. Now the caller must provide initial values for *FROM
6458 and *TO.
6459
6460 * fontset.c (fontset_add): Adjusted for the change of
6461 char_table_ref_and_range.
6462 (fontset_get_font_group): Likewise.
6463 (Ffontset_info): Likewise.
6464
6465 * keymap.c (describe_vector): Adjusted for the change of
6466 char_table_ref_and_range. For char-table, put boundary between
6467 non-ASCII and 8-bit characters.
6468
6469 * print.c (print_object): For bool-vector, delete unnecessary
6470 check of ASCII_BYTE_P.
6471
9196133b
JR
64722008-11-26 Jason Rumney <jasonr@gnu.org>
6473
6474 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6475 leading in font height. (Bug#879)
9196133b 6476
9f688acf
GM
64772008-11-26 Glenn Morris <rgm@gnu.org>
6478
6479 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6480 redefinition with ifdef. (Bug#1383)
6481
90d19aff
AR
64822008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6483
6484 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6485
4ccfa1c0 64862008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6487
6488 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6489 New EmacsView methods.
6490 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6491 Fixes bug #1048,1357,1414.
6492
64932008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6494
6495 Fix bug #1362.
6496 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6497 is not an indexed color.
6498 * nsterm.m (free_indexed_color): Add argument checking.
6499 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6500
e7d5ecb3
CY
65012008-11-24 Chong Yidong <cyd@stupidchicken.com>
6502
6503 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6504 Document confirm-after-completion value for
6505 minibuffer-completion-confirm.
6506
c285743c
JR
65072008-11-24 Jason Rumney <jasonr@gnu.org>
6508
6509 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6510 warning.
6511
b0857706
JR
65122008-11-23 Jason Rumney <jasonr@gnu.org>
6513
6514 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6515 restored before returning.
6516
6517 * w32font.c (check_face_name): New function.
6518 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6519 fonts. (Bug#642)
b0857706 6520
ee50ff07
MR
65212008-11-22 Martin Rudalics <rudalics@gmx.at>
6522
6523 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6524 confirm-nonexistent-file-or-buffer in doc-string.
6525
b8ff72fa
SM
65262008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6527
6528 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6529 Fix copy/paste typo. Add checks.
6530
cee53ed4
KH
65312008-11-21 Kenichi Handa <handa@m17n.org>
6532
6533 * coding.c (detect_coding_iso_2022): Reject invalid composition
6534 sequence.
6535 (DECODE_COMPOSITION_START): If the current source is the last
6536 block, and the current composition doesn't end, regard this
6537 sequence as invalid.
6538 (decode_coding_iso_2022): Handle invalid composition sequence.
6539
f6ef1e65
MR
65402008-11-20 Martin Rudalics <rudalics@gmx.at>
6541
6542 * window.c (coordinates_in_window): Don't return
6543 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6544 line when the window is not the rightmost one. (Bug#1372)
6545
e08b1705
MR
65462008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6547
6548 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6549
ad98e89f
EZ
65502008-11-15 Eli Zaretskii <eliz@gnu.org>
6551
6552 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6553 and bright_bg if noninteractive is non-zero.
6554
fb098a4b
CY
65552008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6556
6557 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6558 x_draw_glyph_string_background.
6559
6560 * w32term.c (x_draw_glyph_string): Likewise.
6561
ce952b6e
CY
65622008-11-15 Chong Yidong <cyd@stupidchicken.com>
6563
6564 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6565 the next glyph string once past the overhang width.
6566
6567 * nsterm.m (ns_draw_glyph_string): Likewise.
6568
6569 * w32term.c (x_draw_glyph_string): Likewise.
6570
26ea7079
CY
65712008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6572
6573 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6574 double file close.
6575
1c33c906
MR
65762008-11-14 Martin Rudalics <rudalics@gmx.at>
6577
6578 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6579 dedicated status of window before attempting to display another
6580 buffer in it.
6581
8fc29035
JB
65822008-11-14 Juanma Barranquero <lekktu@gmail.com>
6583
6584 * msdos.c (Fmsdos_long_file_names):
6585 (syms_of_msdos) <dos-unsupported-char-glyph>:
6586 * dosfns.c (Fint86): Fix typos in docstrings.
6587
55fb4286
EZ
65882008-11-14 Eli Zaretskii <eliz@gnu.org>
6589
6590 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6591
3fda0315
KY
65922008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6593
6594 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6595
7e849c17
CY
65962008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6597
6598 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6599
6600 * frame.h: Negative alpha means "don't touch".
6601
6602 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6603
6604 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6605
b9fd67bd
DN
66062008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6607
6608 * hftctl.c:
6609 * chpdef.h:
6610 * acldef.h: Remove files used only for systems no longer supported.
6611
6612 * Makefile.in: Fix .o alphabetical ordering.
6613 (hftctl.o): Remove dependency, file removed.
6614 (keymap.o, print.o): Depend on charset.h.
6615
d5998e03
KH
66162008-11-10 Kenichi Handa <handa@m17n.org>
6617
2ae37cf0 6618 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6619
be70e183
CY
66202008-11-08 Chong Yidong <cyd@stupidchicken.com>
6621
6622 * dired.c (file_name_completion): If completion_ignore_case is
6623 enabled, ignore case when checking completion-regexp-list.
6624
7cf94eac
EZ
66252008-11-08 Eli Zaretskii <eliz@gnu.org>
6626
6627 * vm-limit.c (get_lim_data): Fix last change.
6628
ee107a89
KH
66292008-11-08 Kenichi Handa <handa@m17n.org>
6630
6631 * character.c (Fget_byte): New function.
6632 (syms_of_character): Defsubr Fget_byte.
6633
5fd15622
CY
66342008-11-07 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6637 cursor position is valid after scrolling.
6638
13d62fad
JB
66392008-11-06 Juanma Barranquero <lekktu@gmail.com>
6640
6641 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6642
a1dd2936
GM
66432008-11-06 Glenn Morris <rgm@gnu.org>
6644
6645 * xterm.c (handle_one_xevent): Don't let popup menus cause
6646 mouse-autoselect-window related window switching. (Bug#1261)
6647
860cd236
CY
66482008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6649
6650 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6651
653a3150
AS
66522008-11-04 Andreas Schwab <schwab@suse.de>
6653
6654 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6655
870f5cac
CY
66562008-11-03 Chong Yidong <cyd@stupidchicken.com>
6657
6658 * xfns.c (Fx_wm_set_size_hint): New function.
6659
1e02f3cb
MR
66602008-11-03 Martin Rudalics <rudalics@gmx.at>
6661
6662 * textprop.c (Fprevious_single_char_property_change): Return 0
6663 when there's no change in a string. (Bug#1301)
6664
e630dfc6
MR
66652008-11-02 Martin Rudalics <rudalics@gmx.at>
6666
6667 * frame.c (do_switch_frame): New argument NORECORD passed to
6668 Fselect_window.
6669 (Fselect_frame): New argument NORECORD passed to
6670 do_switch_frame.
6671 (Fset_frame_selected_window): New argument NORECORD passed to
6672 Fselect_frame.
6673 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6674 in call of do_switch_frame.
6675 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6676 Handle NORECORD argument in call of Fselect_frame.
6677 * lisp.h (do_switch_frame, Fselect_frame)
6678 (Fset_frame_selected_window): Adjust declarations.
6679 * window.c (select_frame_norecord): New function.
6680 (run_window_configuration_change_hook): Use it and call
6681 Fselect_frame with NORECORD set.
6682 (Fselect_window): Pass NORECORD to Fselect_frame.
6683 (Fset_window_configuration): Handle NORECORD argument in call of
6684 do_switch_frame.
6685 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6686 Fset_frame_selected_window.
6687 * keyboard.c (command_loop_1): Handle NORECORD in call of
6688 Fselect_frame (currently ifdefd).
6689
9020b223
GM
66902008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6691
6692 * emacs.c (USAGE2): Untabify.
6693
793ffee8
SM
66942008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6695
6696 * composite.c (fill_gstring_header): Fix copy/paste typo.
6697
ab6d1131
MR
66982008-10-31 Martin Rudalics <rudalics@gmx.at>
6699
6700 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6701 (Fother_window): Rename argument and rewrite doc-string.
6702 (select_window_norecord): Fix return value. (Bug#1276)
6703
601a9cf1
JB
67042008-10-30 Juanma Barranquero <lekktu@gmail.com>
6705
6706 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6707 new frames overriding foreground for tooltips. Based on similar patch
6708 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6709
813b0652
CY
67102008-10-29 Chong Yidong <cyd@stupidchicken.com>
6711
6712 * emacs.c (Fdaemon_initialized): Initialize nfd.
6713
4414f58f
MR
67142008-10-29 Martin Rudalics <rudalics@gmx.at>
6715
6716 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6717 (Fwindow_text_height): Clarify doc-strings.
6718 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6719 doc-string of window-scroll-functions.
6720
ecdcaa09
RS
67212008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6722
6723 * category.c (syms_of_category): Fix typo in docstring.
6724
23fe745a
JB
67252008-10-28 Juanma Barranquero <lekktu@gmail.com>
6726
6727 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6728 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6729 Fix typos in docstrings.
6730
ff808935
DN
67312008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6732
6733 * emacs.c (daemon_pipe): Make non-static.
6734 (IS_DAEMON): Move definition ...
6735 * lisp.h (IS_DAEMON): ... here.
6736 (daemon_pipe): Declare.
6737 (is_daemon): Remove.
6738 * dispnew.c (init_display): Use IS_DAEMON.
6739
fc012771
SM
67402008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6741
6742 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6743 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6744
6745 * emacs.c (is_daemon): Remove.
6746 (main): Don't set is_daemon.
6747 (IS_DAEMON): New macro.
6748 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6749 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6750 parent exits.
6751 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6752
d8bdbe6f
CY
67532008-10-27 Chong Yidong <cyd@stupidchicken.com>
6754
d1a072bf
CY
6755 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6756 over-sized glyph, draw it with the default glyph width.
6757
e2e325aa
CY
6758 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6759 glyph, draw it with the default glyph width.
6760
6761 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6762 glyph, draw it with the default glyph width.
6763
d8bdbe6f
CY
6764 * xdisp.c (try_scrolling): When computing the distance from the
6765 scroll margin to PT, try moving some distance past the window
6766 bottom before giving up.
6767
7bfac547
MR
67682008-10-27 Martin Rudalics <rudalics@gmx.at>
6769
6770 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6771 (Fset_window_buffer): Explain in doc-string that a window can be
6772 "strongly" dedicated to its buffer.
6773
4ff029f6
DN
67742008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6775
6776 * emacs.c (daemon_name): New variable.
6777 (main): Deal with --daemon=SERVER_NAME.
6778 (Fdaemonp): Return a name if one was passed to --daemon.
6779
5790ef40
DN
67802008-10-26 Romain Francoise <romain@orebokech.com>
6781
f9bd0df9 6782 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6783 (main): Create a pipe before forking, make the parent exit only after
6784 the child has closed its end of the pipe. Move closing the
6785 descriptors ...
6786 (Fdaemon_initialized): ... here. New function.
6787
f5385255
SM
67882008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6789
4d632321
SM
6790 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6791 the previous unoptimized table.
6792
f5385255
SM
6793 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6794 the distinction between non-nil and non-t value of `dedicated'.
6795
6c56a0f3
CY
67962008-10-25 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6799 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6800
fec89261
MR
68012008-10-25 Martin Rudalics <rudalics@gmx.at>
6802
6803 * window.c (Fget_buffer_window, Fdelete_windows_on)
6804 (Freplace_buffer_in_windows): Make buffer argument optional and
6805 rename to buffer_or_name.
6806
34fcddd0
CY
68072008-10-24 Chong Yidong <cyd@stupidchicken.com>
6808
f5385255
SM
6809 * xdisp.c (handle_single_display_spec, handle_display_prop):
6810 Undo 2005-05-16 change.
34fcddd0
CY
6811 (handle_stop): Pop iterator if it's loaded with an empty string.
6812 (get_overlay_strings_1): Don't save iterator if it's loaded with
6813 an empty string (bug#1201).
6814
064766f2
KH
68152008-10-24 Kenichi Handa <handa@m17n.org>
6816
6817 * ftfont.c (ftfont_otf_features): Fix previous change.
6818 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6819 calling ftfont_otf_features.
6820
f9bd0df9 68212008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6822
6823 * font.c (font_match_p): Fix for the case that a vector of
6824 characters is in script-representative-chars.
6825
1dae9197
MA
68262008-10-24 Michael Albinus <michael.albinus@gmx.de>
6827
6828 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6829 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6830 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6831 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6832 macro. (Bug#1186)
1dae9197 6833
f9bd0df9 68342008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6835
6836 * s/sol2-10.h: New file.
6837
878a4584
JB
68382008-10-23 Juanma Barranquero <lekktu@gmail.com>
6839
6840 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6841 poor beast has survived 9+ years and the jump from xterm.c!).
6842
cd265ca6
MR
68432008-10-23 Martin Rudalics <rudalics@gmx.at>
6844
6845 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6846 Reword doc-string.
f5385255 6847 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6848
472a4dc9
JB
68492008-10-23 Juanma Barranquero <lekktu@gmail.com>
6850
6851 * character.c (syms_of_character) <script-representative-chars>:
6852 <unicode-category-table>: Doc fixes.
6853
159bd5a2
NF
68542008-10-23 Noah Friedman <friedman@splode.com>
6855
6856 * coding.c (make_conversion_work_buffer): Check that
6857 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6858 Fget_buffer_create.
6859
49f9c344
KH
68602008-10-23 Kenichi Handa <handa@m17n.org>
6861
6862 * font.c (font_add_log): Check the values of extra properties.
6863
12bb3111
MR
68642008-10-22 Martin Rudalics <rudalics@gmx.at>
6865
6866 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6867 Reword doc-string.
6868 (Fset_window_parameter): Use NILP.
6869 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6870 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6871
bbeb4e99
JB
68722008-10-22 Juanma Barranquero <lekktu@gmail.com>
6873
6874 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6875
68762008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6877
6878 * nsfns.m (ns_appkit_version): New function.
6879 (x-server-version): Use it.
6880 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6881 (x-server-vendor): Don't check_ns().
6882
6883 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6884
a9b555d3
JB
68852008-10-22 Juanma Barranquero <lekktu@gmail.com>
6886
6887 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6888 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6889
4626499f
KH
68902008-10-22 Kenichi Handa <handa@m17n.org>
6891
e3681952
KH
6892 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6893 scripts.
6894
4626499f
KH
6895 * category.c (word_boundary_p): Check scripts instead of charset.
6896 Handle nil value in word-separating-categories and
6897 word-combining-categories.
6898 (syms_of_category): Fix docstrings of word-separating-categories
6899 and word-combining-categories.
6900
1560f91a
EZ
69012008-10-21 Eli Zaretskii <eliz@gnu.org>
6902
6903 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6904 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6905
f4668441
MR
69062008-10-21 Martin Rudalics <rudalics@gmx.at>
6907
6908 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6909 Rename arg "buffer" to "buffer_or_name".
6910 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6911 it optional.
6912 (no_switch_window): Remove since the return value is not used.
a9b555d3 6913 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6914 Consider window as dedicated when Fwindow_dedicated_p returns a
6915 non-nil value.
6916 * lisp.h: Remove prototype for no_switch_window.
6917
fd75ddb2
JD
69182008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6919
6920 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6921 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6922
07295713
KH
69232008-10-21 Kenichi Handa <handa@m17n.org>
6924
6925 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6926 check Vlatin_extra_code_table.
6927
712adc82
EZ
69282008-10-20 Eli Zaretskii <eliz@gnu.org>
6929
6930 * fileio.c (Fset_file_modes): Doc fix.
6931
f549eb0b
MA
69322008-10-19 Michael Albinus <michael.albinus@gmx.de>
6933
6934 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6935 in arrays.
6936
aac0c6e3
MR
69372008-10-19 Martin Rudalics <rudalics@gmx.at>
6938
6939 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6940 Mention kill-buffer in doc-string.
6941 (Fset_window_buffer): Reinsert tem check removed in last commit.
6942 (Fenlarge_window, Fshrink_window): Have argument names and
6943 doc-string follow Elisp manual more closely.
6944
69452008-10-18 Eli Zaretskii <eliz@gnu.org>
6946
6947 * fileio.c (Fset_file_modes): Doc fix.
6948
69492008-10-18 Martin Rudalics <rudalics@gmx.at>
6950
6951 * window.c (Fwindow_width, Fset_window_start)
6952 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6953 (Fdelete_windows_on, Freplace_buffer_in_windows):
6954 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6955 (Fwindow_dedicated_p): Make window argument optional.
6956 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6957 (Fset_window_buffer): Respect any non-nil dedicated value for
6958 window. Rename "buffer" argument to "buffer_or_name".
6959
69602008-10-18 Ulrich Mueller <ulm@gentoo.org>
6961
6962 * m/sh3.h: New file, machine description for SuperH.
6963
69642008-10-17 Martin Rudalics <rudalics@gmx.at>
6965
6966 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6967
69682008-10-17 Kenichi Handa <handa@m17n.org>
6969
6970 * ftfont.c (ftfont_otf_features): Fix indexing
6971 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6972
69732008-10-16 Magnus Henoch <mange@freemail.hu>
6974
6975 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6976 (Fdbus_call_method_asynchronously): Ditto.
6977 This change makes C-h f display the argument list.
6978
69792008-10-16 Chong Yidong <cyd@stupidchicken.com>
6980
6981 * fileio.c (Fexpand_file_name): Doc fix.
6982
6983 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6984 of :foreground and :background equivalent to unspecified (20.x
6985 compatibility).
6986
69872008-10-15 Eli Zaretskii <eliz@gnu.org>
6988
6989 * buffer.c (syms_of_buffer): Doc fix.
6990
69912008-10-14 Kenichi Handa <handa@m17n.org>
6992
6993 * font.c (font_clear_prop): When clearing font width, clear the
6994 average width field too.
6995
69962008-10-12 Andreas Schwab <schwab@suse.de>
6997
6998 * ftfont.c (ftfont_shape_by_flt): Make static.
6999 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7000
7001 * font.c: Don't include <m17n-flt.h>.
7002
70032008-10-10 Eli Zaretskii <eliz@gnu.org>
7004
7005 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7006
70072008-10-09 Eli Zaretskii <eliz@gnu.org>
7008
7009 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7010 away code.
7011
70122008-10-09 Chong Yidong <cyd@stupidchicken.com>
7013
7014 * dispnew.c (update_text_area): Avoid looping due to large glyph
7015 overhangs (bug#1070).
7016
70172008-10-09 Kenichi Handa <handa@m17n.org>
7018
7019 * fontset.c (face_for_char): If face->fontset is negative, just
7020 return ascii_face.
7021
f5385255
SM
7022 * font.c (font_delete_unmatched): Fix previous change.
7023 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7024
70252008-10-09 Martin Rudalics <rudalics@gmx.at>
7026
7027 * frame.c (Fraise_frame): On text-only terminals select frame in
7028 order to make it visible. (Bug#1061)
7029
70302008-10-08 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * fontset.c (fontset_find_font): Check frame validity.
7033
70342008-10-07 Chong Yidong <cyd@stupidchicken.com>
7035
a9b555d3 7036 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7037 (xg_display_close): Allow Emacs to close all displays (bug#985).
7038
70392008-10-06 Andreas Schwab <schwab@suse.de>
7040
f5385255 7041 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7042
70432008-10-06 Chong Yidong <cyd@stupidchicken.com>
7044
f5385255 7045 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7046
a9b555d3 7047 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7048
7049 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7050 during initialization.
7051
70522008-10-04 Eli Zaretskii <eliz@gnu.org>
7053
7054 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7055 whole thing on MSDOS frames as well as on a TTY.
7056
7057 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7058 well as for TTY.
7059 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7060 well as on a TTY.
7061
7062 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7063 as well as for TTY.
7064
7065 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7066
7067 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7068 MSDOS frames as well.
7069
70702008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7071
7072 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7073 correct arguments.
b71ac3dd 7074 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7075
70762008-10-03 Glenn Morris <rgm@gnu.org>
7077
7078 * emacs.c (USAGE1): Add --daemon.
7079
70802008-10-02 Eli Zaretskii <eliz@gnu.org>
7081
7082 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7083 100, so it's in percents as advertised.
7084
70852008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7086
7087 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7088 (ns_output.current_cursor, ns_output.desired_cursor)
7089 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7090 (FRAME_NEW_CURSOR_COLOR): Remove.
7091
7092 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7093 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7094 enumeration (HOLLOW_BOX_CURSOR, etc.).
7095
7096 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7097 (draw_window_cursor): Simplify code.
f5385255
SM
7098 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7099 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7100 updates manually.
a9b555d3
JB
7101 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7102 Use core Emacs cursor types.
aac0c6e3 7103
b8ff72fa 7104 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7105
71062008-10-02 Martin Rudalics <rudalics@gmx.at>
7107
7108 * process.c (Faccept_process_output): Fix doc-string.
7109
71102008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7111
7112 * gmalloc.c (__sbrk): Also define for uClibc.
7113
7114 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7115 for uClibc.
7116
71172008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7118
7119 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7120 styles.
7121 (nsfont_open): Reenable the cache.
7122
71232008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7124
7125 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7126 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7127
71282008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7129
7130 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7131 a suspended terminal.
7132
71332008-09-30 Michael Albinus <michael.albinus@gmx.de>
7134
7135 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7136
71372008-09-30 Eli Zaretskii <eliz@gnu.org>
7138
7139 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7140
71412008-09-30 Chong Yidong <cyd@stupidchicken.com>
7142
7143 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7144 in a continued line coincides with a line beginning.
7145
71462008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7147
7148 * nsfont.m (nsfont_trait_distance): Fix bug.
7149 (nsfont_list): Return a list rather than a vector (syncs with Handa
7150 changes of 2008-05-14).
7151 (nsfont_open): Improve logging.
7152
71532008-09-29 Andreas Schwab <schwab@suse.de>
7154
7155 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7156
71572008-09-28 Martin Rudalics <rudalics@gmx.at>
7158
7159 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7160 name as char-resolve-modifiers.
7161 Reported by: Markus Triska <markus.triska@gmx.at>
7162
71632008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7164
7165 * dispnew.c (init_display): Return earlier when running as a daemon.
7166
71672008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7168
7169 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7170
71712008-09-27 Eli Zaretskii <eliz@gnu.org>
7172
7173 * composite.c (Fcomposition_get_gstring)
7174 (Fcompose_region_internal, Fcompose_string_internal)
7175 (Ffind_composition_internal): Doc fix.
7176 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7177 (syms_of_composite) <auto-composition-function>: Doc fix.
7178 (syms_of_composite) <composition-function-table>: Doc fix.
7179
71802008-09-25 Chong Yidong <cyd@stupidchicken.com>
7181
7182 * search.c (wordify): New argument for lax word-ends.
7183 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7184
71852008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7186
7187 * lisp.h (is_daemon): Declare.
7188 * dispnew.c (init_display): Do not try to initialize the terminal
7189 when running as a daemon.
7190
71912008-09-22 Chong Yidong <cyd@stupidchicken.com>
7192
7193 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7194 x_display_pixel_height.
7195
71962008-09-22 Martin Rudalics <rudalics@gmx.at>
7197
7198 * undo.c (record_point): Don't call Fundo_boundary for first
7199 change. (Bug#731)
7200
72012008-09-22 Juanma Barranquero <lekktu@gmail.com>
7202
7203 * emacs.c (Fdaemonp): Doc fix.
7204
72052008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7206
7207 * emacs.c (main): Place #ifdef in the proper place.
7208
72092008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7210
7211 * emacs.c (standard_args): Add --daemon.
7212 (main): Disconnect from the terminal when --daemon is passed.
7213 (is_daemon): New variable.
7214 (Fdaemonp): New function.
7215 (syms_of_emacs): Defsubr it.
7216
72172008-09-20 Chong Yidong <cyd@stupidchicken.com>
7218
7219 * xdisp.c (get_next_display_element): Handle string display
7220 correctly when checking for the end of a box run.
7221
72222008-09-20 Glenn Morris <rgm@gnu.org>
7223
7224 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7225 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7226 (Frename_file): Avoid copying to trash if a rename involves
7227 a delete. (Bug#964).
7228
72292008-09-20 Eli Zaretskii <eliz@gnu.org>
7230
7231 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7232 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7233 frames as well as termcap frames.
7234 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7235 get_named_tty.
7236
72372008-09-19 Eli Zaretskii <eliz@gnu.org>
7238
7239 * process.c (procfs_system_process_attributes): Fix cmdline in
7240 case /proc/PID/cmdline is empty.
7241
7242 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7243 x_display_pixel_height.
7244
72452008-09-19 Juanma Barranquero <lekktu@gmail.com>
7246
7247 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7248
7249 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7250 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7251
72522008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7253
7254 * dispextern.h (struct it): Move line_wrap away from the middle of
7255 bitfields. Move voffset in struct iterator_stack_entry after the
7256 bitfields. Move tab_width near after another short.
7257
72582008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7259
7260 * frame.h (struct frame): Move alpha from the middle of bitfields.
7261
7262 * window.h (struct window): Move frozen_window_start_p after the
7263 rest of the bitfields to reduce padding.
7264
72652008-09-18 Chong Yidong <cyd@stupidchicken.com>
7266
7267 * xterm.h (x_display_info): Remove `height' and `width' members.
7268
7269 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7270
7271 * w32term.h (w32_display_info): Remove `height', `width',
7272 `height_in', and `width_in' members.
7273
b8ff72fa
SM
7274 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7275 New functions.
aac0c6e3
MR
7276 (x_calc_absolute_position): Use them.
7277 (x_term_init): Omit removed `height' and `width' members.
7278
b8ff72fa
SM
7279 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7280 New functions.
aac0c6e3
MR
7281 (w32_read_socket, x_calc_absolute_position): Use them.
7282 (w32_initialize_display_info, w32_term_init): Omit removed members
7283 of w32_display_info.
7284
b8ff72fa
SM
7285 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7286 New functions.
7287 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7288
b8ff72fa
SM
7289 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7290 New functions.
aac0c6e3
MR
7291 (x_calc_absolute_position): Use them.
7292 (x_term_init): Omit removed `height' and `width' members.
7293
7294 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7295 (compute_tip_xy):
7296 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7297 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7298 x_display_pixel_width.
7299
73002008-09-18 Kenichi Handa <handa@m17n.org>
7301
7302 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7303 (composition_compute_stop_pos): Fix handling of static composition.
7304 (Fcomposition_get_gstring): Check FROM and TO at first.
7305
73062008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7307
46e722a9 7308 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7309 mixup (YAILOM).
7310
73112008-09-17 Chong Yidong <cyd@stupidchicken.com>
7312
7313 * indent.c (Fvertical_motion): Use position reported by iterator
7314 instead of PT for determining screen motion (bug#943).
7315
73162008-09-17 Romain Francoise <romain@orebokech.com>
7317
7318 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7319
73202008-09-17 Kenichi Handa <handa@m17n.org>
7321
7322 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7323
7324 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7325 if necessary.
7326
73272008-09-16 Kenichi Handa <handa@m17n.org>
7328
7329 * coding.c (make_conversion_work_buffer): Avoid calling
7330 Fget_buffer_create if it is not necessary.
7331
73322008-09-15 Martin Rudalics <rudalics@gmx.at>
7333
7334 * window.c (Fselect_window): Don't update window_select_count and
7335 use_time when norecord is not nil.
7336
73372008-09-14 Kenichi Handa <handa@m17n.org>
7338
7339 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7340 specpdl_ptr.
7341
73422008-09-12 Kenichi Handa <handa@m17n.org>
7343
7344 * indent.c (scan_for_column): Don't handle automatic composition
7345 if the current buffer is not associated with a window.
7346
7347 * composite.c (composition_reseat_it): If the current buffer is
7348 not associated with a window, ignore the automatic composition.
7349 (find_automatic_composition): Likewise.
7350
73512008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7352
7353 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7354 (Fgpm_mouse_stop): Use it.
7355 * termhooks.h (close_gpm): Declare.
7356 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7357 connection if Gpm_GetEvent fails.
7358
7359 * window.c (set_window_buffer): Always preserve current-buffer.
7360
73612008-09-12 Glenn Morris <rgm@gnu.org>
7362
7363 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7364
73652008-09-11 Glenn Morris <rgm@gnu.org>
7366
7367 * charset.c (charset-map-path): Doc fix.
7368
73692008-09-10 Kenichi Handa <handa@m17n.org>
7370
7371 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7372
7373 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7374 compose a grapheme cluster with the preceding base glyph.
7375
7376 * composite.c (composition_compute_stop_pos): Fix previous change.
7377 Reset cmp_it->id to -1 at first.
7378
73792008-09-10 Glenn Morris <rgm@gnu.org>
7380
7381 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7382
73832008-09-09 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * keyboard.c (read_key_sequence): Reapply translation maps when
7386 switching keyboards.
7387
73882008-09-09 Kenichi Handa <handa@m17n.org>
7389
7390 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7391 characters.
7392
7393 * composite.c (FORWARD_CHAR): Fix calculation
7394 of (POSITION).pos_byte.
7395 (composition_compute_stop_pos): Limit the search of composition to
7396 at most 500 characters ahead. If we reach the limit or find a
7397 newline, set cmp_it->ch to -2 and return 0.
7398 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7399
74002008-09-08 Kenichi Handa <handa@m17n.org>
7401
7402 * indent.c (Fvertical_motion): Be sure to set
7403 it_overshoot_expected if it.cmp_it.id is non-negative.
7404
74052008-09-07 Andreas Schwab <schwab@suse.de>
7406
7407 * callproc.c (Fcall_process): Don't hold references to string data
7408 across garbage collection. Move initialisation of new_argv down
7409 to avoid compiler bug.
7410
74112008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7412
7413 * process.c (Fsystem_process_attributes): Doc fix.
7414
74152008-09-07 Chong Yidong <cyd@stupidchicken.com>
7416
7417 * callproc.c (Fcall_process): Canonicalize current directory name.
7418
7419 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7420 iterator advances to the next line if the current line ends in a
7421 continued tab.
7422
74232008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7424
7425 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7426 member to point to cmp_from.
7427
7428 * xdisp.c: Doc fix for references to gidx data member.
7429
74302008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7431
7432 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7433
74342008-09-07 Kenichi Handa <handa@m17n.org>
7435
7436 * composite.c (FORWARD_CHAR): Check STOP after
7437 incrementing (POSITION).pos.
7438
74392008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7440
7441 * process.c (Fsystem_process_attributes): Doc fix.
7442
74432008-09-06 Chong Yidong <cyd@stupidchicken.com>
7444
7445 * keyboard.c (Ftop_level): Doc fix.
7446
74472008-09-06 Eli Zaretskii <eliz@gnu.org>
7448
7449 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7450 minibuffer, don't let lower part of menu invade the echo area.
7451
7452 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7453 "char *q" to access menu text and advance through it. Revert the
7454 change that displayed ">" instead of ASCII character 0x10.
7455
74562008-09-05 Eli Zaretskii <eliz@gnu.org>
7457
7458 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7459 toggle boxes and radio buttons on MS-DOS as well.
7460
74612008-09-05 Kenichi Handa <handa@m17n.org>
7462
7463 * composite.c (autocmp_chars): Check lookback count.
7464 (composition_compute_stop_pos): Set cmp_it->lookback.
7465 (composition_reseat_it): Check lookback count.
7466 (struct position_record): New struct.
7467 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7468 (find_automatic_composition): New function.
7469 (composition_adjust_point): Use find_automatic_composition.
7470
7471 * dispextern.h (struct composition_it): New member lookback.
7472
74732008-09-02 Chong Yidong <cyd@stupidchicken.com>
7474
7475 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7476 if moving by a single line.
7477
74782008-09-02 Andreas Schwab <schwab@suse.de>
7479
7480 * xterm.c (x_delete_display): Fix merge error.
7481
7482 * fileio.c (Fexpand_file_name): Remove unused variables.
7483
74842008-09-02 Eli Zaretskii <eliz@gnu.org>
7485
7486 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7487 storage on all platforms, not just on DOS_NT.
7488
74892008-09-02 Jason Rumney <jasonr@gnu.org>
7490
b8ff72fa
SM
7491 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7492 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7493
74942008-09-01 Chong Yidong <cyd@stupidchicken.com>
7495
7496 * xfaces.c (Finternal_set_alternative_font_family_alist)
7497 (Finternal_set_alternative_font_registry_alist): Properly copy
7498 entire alist structure.
7499
75002008-09-01 Kenichi Handa <handa@m17n.org>
7501
d66c0241 7502 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7503 representative chars of the script is a vector.
d66c0241
JB
7504 (ftfont_list): Handle the case where the representative chars of
7505 the script is a vector.
aac0c6e3
MR
7506
7507 * character.c (syms_of_character): Docstring of
7508 script-representative-chars fixed.
7509
75102008-08-31 Eli Zaretskii <eliz@gnu.org>
7511
7512 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7513 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7514 the menu. Allocate larger buffer for `text', to account for
7515 possible ^C characters.
7516
75172008-08-31 Martin Rudalics <rudalics@gmx.at>
7518
7519 * xdisp.c (prepare_menu_bars): Don't call
7520 Vwindow_size_change_functions with arg Qt.
7521
75222008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7523
7524 * font.h (font_range):
7525 * fileio.c (report_file_error):
46e722a9
SM
7526 * composite.c (composition_update_it): Yet another int/Lisp_Object
7527 mixup (YAILOM).
aac0c6e3
MR
7528
75292008-08-30 Glenn Morris <rgm@gnu.org>
7530
7531 * data.c (Fmake_variable_frame_local): Doc fix.
7532
7533 * frame.c (Fmodify_frame_parameters): Doc fix.
7534
75352008-08-30 Eli Zaretskii <eliz@gnu.org>
7536
7537 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7538 needed by GetTokenInformation.
7539 (w32_system_process_attributes): Check return values of all system
7540 APIs.
7541
7542 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7543 only when the state changes.
7544 (IT_update_begin, IT_update_end): Add termscript trace.
7545
7546 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7547 clipboard is unavailable. Set dst to NULL if it doesn't point to
7548 malloc'ed data.
7549 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7550 passing random values to xfree.
7551
7552 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7553 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7554
75552008-08-29 Jason Rumney <jasonr@gnu.org>
7556
7557 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7558
75592008-08-29 Eli Zaretskii <eliz@gnu.org>
7560
7561 * composite.c (fill_gstring_body): Avoid compiler warnings.
7562
7563 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7564 LGLYPH_SET_CODE to avoid compiler warnings.
7565
2ae37cf0 7566 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7567
7568 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7569
7570 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7571 LGLYPH_SET_CODE.
7572
75732008-08-29 Kenichi Handa <handa@m17n.org>
7574
7575 * fileio.c (report_file_error): Don't downcase the first character
7576 of errstring if it is still unibyte.
7577
75782008-08-29 Kenichi Handa <handa@m17n.org>
7579
7580 These changes are to re-implement the automatic composition so
7581 that it doesn't use text properties.
7582
7583 * Makefile.in (ftfont.o): Depend on composite.h.
7584 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7585
7586 * character.h (Vunicode_category_table): Extern it.
7587
7588 * character.c (Vunicode_category_table): New variable.
7589 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7590
7591 * chartab.c (optimize_sub_char_table): Perform more greedy
7592 optimization.
7593
b8ff72fa
SM
7594 * composite.h (enum composition_method):
7595 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7596 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7597 (Vcomposition_function_table): Extern it.
7598 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7599 (composition_gstring_put_cache, composition_gstring_from_id)
7600 (composition_gstring_p, composition_gstring_width)
7601 (composition_compute_stop_pos, composition_reseat_it)
7602 (composition_update_it, composition_adjust_point): Extern them.
7603 (Fcomposition_get_gstring): EXFUN it.
7604
d66c0241 7605 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7606 (Vcomposition_function_table)
7607 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7608 (gstring_hash_table, gstring_work, gstring_work_headers):
7609 New variables.
aac0c6e3
MR
7610 (gstring_lookup_cache, composition_gstring_put_cache)
7611 (composition_gstring_from_id, composition_gstring_p)
7612 (composition_gstring_width, fill_gstring_header)
7613 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7614 (composition_reseat_it, composition_update_it)
b8ff72fa 7615 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7616 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7617 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7618 Defsubr compostion_get_gstring.
7619
7620 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7621 cmp_id.
7622 (struct glyph_string): Delete the member gidx. New members
7623 cmp_id, cmp_from, and cmp_to.
7624 (enum it_method): Delete GET_FROM_COMPOSITION.
7625 (struct composition_it): New struct.
7626 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7627 Delete c, len, cmp_id, cmp_len in u.comp.
7628
7629 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7630 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7631 (enum lglyph_indices): Likewise.
b8ff72fa 7632 (font_range): Adjust extern.
aac0c6e3
MR
7633 (font_fill_lglyph_metrics): Extern it.
7634
7635 * font.c (QCf): New variable.
7636 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7637 (font_prepare_composition): Delete this function.
7638 (font_range): Type and arguments changed.
7639 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7640 (font_fill_lglyph_metrics): New function.
b8ff72fa 7641 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7642 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7643 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7644 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7645
7646 * fontset.h (font_for_char): Extern it.
7647
7648 * fontset.c (font_for_char): New function.
7649
7650 * ftfont.c: Include composite.h.
7651 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7652 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7653
7654 * indent.c: Include composite.h and dispextern.h.
7655 (check_composition): Delete this function.
7656 (scan_for_column): Handle composition by
7657 composition_compute_stop_pos, composition_reseat_it, and
7658 composition_update_it.
7659 (compute_motion): Likewise.
7660 (Fvertical_motion): Fix checking of composition.
7661
7662 * keyboard.c (adjust_point_for_property): Check composition by
7663 composition_adjust_point.
7664
b8ff72fa 7665 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7666 struct glyph_string.
7667
b8ff72fa
SM
7668 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7669 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7670 struct glyph.
7671 (produce_composite_glyph): Likewise.
7672
b8ff72fa
SM
7673 * w32term.c (x_draw_composite_glyph_string_foreground):
7674 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7675 (x_draw_glyph_string): Likewise.
7676
7677 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7678 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7679
7680 * xdisp.c: Include font.h.
7681 (it_props): Delete the entry for Qauto_composed.
7682 (init_iterator): Initialize it->cmp_it.id to -1.
7683 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7684 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7685 (handle_auto_composed_prop): Delete it.
7686 (handle_composition_prop): Handle only static composition.
7687 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7688 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7689 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7690 (pop_it): Likewise.
7691 (get_next_element): Delete next_element_from_composition.
7692 (CHAR_COMPOSED_P): New macro.
7693 (get_next_display_element): For automatic composition, get a face
7694 from the font in the glyph-string.
7695 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7696 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7697 (next_element_from_string): Check if the character at the current
7698 position is composed by CHAR_COMPOSED_P.
7699 (next_element_from_buffer): Likewise.
d66c0241
JB
7700 (next_element_from_composition): Adjust for the change of struct it.
7701 Update it->cmp_it.
b8ff72fa
SM
7702 (dump_glyph): Adjust for the change of struct glyph.
7703 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7704 it and struct glyph. Don't handle automatic composition here.
7705 (fill_gstring_glyph_string): New function.
7706 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7707 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7708 (BUILD_GSTRING_GLYPH_STRING): New macro.
7709 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7710 automatic composition.
b8ff72fa 7711 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7712 struct glyph.
b8ff72fa 7713 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7714
b8ff72fa 7715 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7716 the change of struct glyph_string.
7717 (x_draw_glyph_string): Likewise.
7718
77192008-08-29 Glenn Morris <rgm@gnu.org>
7720
7721 * buffer.c (word-wrap): Doc fix.
7722 * xdisp.c (truncate-partial-width-windows): Doc fix.
7723 Increase default to 50.
7724
77252008-08-29 Chong Yidong <cyd@stupidchicken.com>
7726
7727 * xdisp.c (update_tool_bar_unwind): New function.
7728 (update_tool_bar): Temporarily set selected frame before building
7729 tool-bar items.
7730
77312008-08-28 Michael Albinus <michael.albinus@gmx.de>
7732
7733 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7734 snprintf, respectively.
7735 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7736
77372008-08-28 Chong Yidong <cyd@stupidchicken.com>
7738
7739 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7740 LDFLAGS to GNUstep CC invocation.
7741
77422008-08-27 Chong Yidong <cyd@stupidchicken.com>
7743
7744 * indent.c (Fvertical_motion): Revert last change. Handle the
7745 general case where we are moving forward, and PT spans multiple
7746 screen lines.
7747
7748 * eval.c (find_handler_clause): Temporarily increase
7749 max-lisp-eval-depth while printing the backtrace buffer, to
7750 guarantee that help-mode code can run.
7751
77522008-08-27 Eli Zaretskii <eliz@gnu.org>
7753
7754 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7755 colors under -rv.
7756 (IT_set_frame_parameters): Don't swap foreground and background
7757 colors if `(reverse . t)' is present in the frame properties.
7758 (internal_terminal_init): Call init_frame_faces only for the
7759 initial frame.
7760
77612008-08-27 Andreas Schwab <schwab@suse.de>
7762
7763 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7764
77652008-08-27 Andreas Schwab <schwab@suse.de>
7766
7767 * search.c (search_buffer): Set char_base to zero only at the end.
7768
77692008-08-27 Kenichi Handa <handa@m17n.org>
7770
b8ff72fa 7771 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7772
77732008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7774
7775 * xterm.c (x_term_init): Temporarily hide the partially
7776 initialized terminal while calling vendor-specific-keysyms.
7777
77782008-08-26 Eli Zaretskii <eliz@gnu.org>
7779
7780 * msdos.c (internal_terminal_init): Most initializations done only
7781 once, especially initial_screen_colors[] and termscript open.
7782
77832008-08-26 Chong Yidong <cyd@stupidchicken.com>
7784
7785 * eval.c (Fcondition_case): Doc fix.
7786
7787 * widgetprv.h (EmacsFramePart): Change font member to the new font
7788 struct.
7789
7790 * widget.c: Include character.h and font.h for XSETFONT.
7791 (setup_frame_gcs): Compute X font id from font struct, just once.
7792
77932008-08-26 Eli Zaretskii <eliz@gnu.org>
7794
7795 * term.c (get_named_tty): Fix last change.
7796
77972008-08-26 Chong Yidong <cyd@stupidchicken.com>
7798
7799 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7800 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7801
78022008-08-25 Eli Zaretskii <eliz@gnu.org>
7803
7804 * frame.c (do_switch_frame): Mark previously displayed frame as
7805 obscured for FRAME_MSDOS_P frames as well.
7806
78072008-08-24 Eli Zaretskii <eliz@gnu.org>
7808
7809 * frame.c (make_terminal_frame): Initialize f->terminal,
7810 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7811 Set the top frame to newly created frame.
7812 (Fmake_terminal_frame): Reuse the_only_display_info.
7813
7814 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7815 estimating available memory.
7816
b97439ce 78172008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7818
7819 * nsterm.m (ns_draw_window_cursor): Don't call
7820 NSDisableScreenUpdates and NSEnableScreenUpdates on
7821 non-NS_IMPL_COCOA systems.
7822
78232008-08-23 Andreas Schwab <schwab@suse.de>
7824
7825 * process.c (procfs_system_process_attributes): Fix use of
7826 uninitialized variables.
7827
78282008-08-23 Eli Zaretskii <eliz@gnu.org>
7829
7830 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7831
7832 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7833 calling tty-set-up-initial-frame-faces.
7834
b8ff72fa
SM
7835 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7836 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7837
7838 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7839 addition to output_termcap.
7840
7841 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7842
7843 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7844 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7845 highlight.
7846
7847 * process.c [!subprocesses]: Define QCname.
7848 (syms_of_process): Intern and staticpro it.
7849
7850 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7851 Adjust for changes in encoding/decoding routines.
7852 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7853 encode_coding and decode_coding.
7854
b8ff72fa 7855 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7856
7857 * dosfns.c: Include frame.h before termhooks.h.
7858 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7859 variable termscript.
7860
7861 * s/msdos.h (USER_FULL_NAME): Define.
7862 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7863
7864 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7865 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7866 pw->pw_gecos.
7867
7868 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7869 SELECTED_FRAME as additional (1st) argument.
7870 (tty_read_avail_input): Handle output_msdos_raw in
7871 addition to output_termcap.
7872
7873 * msdos.c: Include frame.h before termhooks.h.
7874 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7875 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7876 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7877 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7878 (IT_set_terminal_modes, IT_reset_terminal_modes)
7879 (IT_set_frame_parameters): Use tty->termscript instead of a global
7880 variable termscript.
7881 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7882 global variable terminal_coding. Don't refer to
7883 Vnonascii_translation_table.
7884 (internal_terminal_init): Set Vwindow_system in current_kboard.
7885 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7886 Announce date and time of session start, if termscript is open.
7887 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7888 term.c:init_tty). Open termscript only of not already open.
7889 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7890 here instead of dos_ttraw. Don't initialize display if this is an
7891 initial tty. Don't set FRAME_FONT.
7892 (Vwindow_system_version): Bump to 23.
7893 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7894 is available, set up mouse_position_hook.
7895 (dos_ttraw, IT_set_terminal_modes): If called with initial
7896 terminal, do nothing.
7897 (IT_set_frame_parameters): Handle the Qtty_type frame
7898 parameter by calling internal_terminal_init.
7899 (dos_set_window_size, show_mouse_face)
7900 (clear_mouse_face, IT_note_mode_line_highlight)
7901 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7902 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7903 (initialize_msdos_display): New function.
7904 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7905 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7906 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7907 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7908 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7909 (request_sigio, unrequest_sigio): Don't define, now defined on
7910 sysdep.c.
7911 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7912
7913 * term.c [MSDOS]: Include msdos.h.
7914 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7915 conditional to DOS_NT. Allow only one call to this function in a
7916 session. Don't allocate a new struct tty_display_info; instead,
7917 reuse the_only_display_info. Call get_tty_size to get screen
7918 dimensions. Call init_baud_rate to set bad_rate.
7919 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7920 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7921 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7922 (get_tty_terminal, get_named_tty, Ftty_type)
7923 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7924 output_termcap.
b8ff72fa
SM
7925 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7926 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7927 only when subprocesses are supported.
aac0c6e3
MR
7928
7929 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7930 f->output_data.x.
7931 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7932 terminal devices.
7933
5582fbc7 7934 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7935 x_output.
7936 (FRAME_FONT): Use output_data.tty.
7937 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7938 (struct x_display_info): Rename from display_info. Update all users in
7939 msdos.c.
aac0c6e3 7940 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7941 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7942 (dos_ttraw): Update prototype.
7943
7944 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7945 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7946
79472008-08-23 Jason Rumney <jasonr@gnu.org>
7948
7949 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7950 (fn_TIFFSetDirectory): New library function used.
7951 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7952 (tiff_load): Use :index to select among multiple images. Set count
7953 property when multiple images exist.
7954 (gif_format): Use :index, not :image.
7955
79562008-08-23 Chong Yidong <cyd@stupidchicken.com>
7957
7958 * xdisp.c (try_scrolling): Check INT_MAX instead of
7959 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7960 to obtain INT_MAX.
7961
79622008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7963
7964 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7965
79662008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7967
7968 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7969 GNUstep library location.
7970
79712008-08-21 Chong Yidong <cyd@stupidchicken.com>
7972
7973 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7974 before using it.
7975
7976 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7977
79782008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7979
7980 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7981 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7982 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7983 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7984 (EmacsApp-cursor_blink_handler): Remove declaration.
7985 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7986 match 01 Feb 2008 changes in xterm.c.
7987 (ns_read_socket): Add cast to avoid warning.
7988 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7989 GNUstep.
7990
79912008-08-20 Chong Yidong <cyd@stupidchicken.com>
7992
7993 * xselect.c (x_get_foreign_selection): Return nil if desired
7994 selection could not be obtained, instead of signalling an error.
7995
79962008-08-20 David Reitter <david.reitter@gmail.com>
7997
7998 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7999 * nsterm.m: Remove ns-specific code for cursor blinking.
8000 (ns_draw_window_cursor): Clear cursor properly rather than
8001 redrawing the area. Respect width of bar cursors.
8002 These changes enable the use of generic blink-cursor-mode and
8003 generic cursor types in NS and support smooth cursor movements (do
8004 not blink off after command).
8005 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8006 Nextstep, too.
8007
80082008-08-19 Kenichi Handa <handa@m17n.org>
8009
8010 * font.c (Vfont_log_deferred): New variable.
8011 (font_add_log): Check Vfont_log_deferred.
8012 (font_deferred_log): New function.
8013
8014 * font.h (font_deferred_log): Extern it.
8015
8016 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8017 for sorting.
8018 (face_for_char): Use deferred log.
8019
80202008-08-18 Kenichi Handa <handa@m17n.org>
8021
8022 * fontset.c (face_for_char): Add font log.
8023
8024 * font.c (font_add_log): Add the font properties :script, :lang,
8025 and :otf in the log.
8026
80272008-08-17 Chong Yidong <cyd@stupidchicken.com>
8028
8029 * xdisp.c: Remove dead code.
8030 (handle_invisible_prop, next_overlay_string): Defer call to
8031 setup_for_ellipsis.
8032 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8033
80342008-08-15 Chong Yidong <cyd@stupidchicken.com>
8035
8036 * xfaces.c (lookup_derived_face): Properly handle possible zero
8037 return value of get_lface_attributes.
8038 (merge_faces): Don't tell lookup_derived_face to signal an error
8039 if face is not found.
8040
8041 * dired.c (Fdirectory_files): Doc fix.
8042
8043 * process.c (make_process): Initialize kill_without_query struct
8044 member.
8045
80462008-08-15 Eli Zaretskii <eliz@gnu.org>
8047
8048 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8049 Alternative calculation of totphys for Visual Studio 6.
8050
8051 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8052
8053 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8054 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8055 All users changed.
8056 (stat): Only root directory passed to GetDriveType. Allow RAM
8057 disk as well as local fixed disk when w32-get-true-file-attributes
8058 is set to `local'.
8059 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8060 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8061 (w32_cached_id, w32_add_to_cache): New functions.
8062 (get_name_and_id): Look account names in the cache before calling
8063 lookup_account_sid.
8064 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8065 New initialization flags.
8066 (globals_of_w32): Initialize them to zero.
8067 (w32_system_process_attributes): Use w32_cached_id and
8068 w32_add_to_cache.
8069
80702008-08-14 Lawrence Mitchell <wence@gmx.li>
8071
8072 * lread.c (Fread_char, Fread_char_exclusive): If no character
8073 event is read before timeout is reached, return nil, rather than
8074 converting to a number.
8075
80762008-08-14 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * fns.c (use_dialog_box): Doc fix.
8079
8080 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8081 on OS X.
8082
80832008-08-13 Chong Yidong <cyd@stupidchicken.com>
8084
8085 * frame.c (Qns_parse_geometry): New var.
8086 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8087
80882008-08-11 Chong Yidong <cyd@stupidchicken.com>
8089
8090 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8091 space character in calculating tabs.
8092
80932008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8094
8095 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8096
80972008-08-10 Glenn Morris <rgm@gnu.org>
8098
8099 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8100 silence gcc "limited range of data type" warnings in some
8101 make_fixnum_or_float calls.
8102
81032008-08-09 Eli Zaretskii <eliz@gnu.org>
8104
8105 * w32.c (w32_system_process_attributes): If the process does not
8106 exist, return nil.
8107
8108 * w32.c: Include thelp32.h, psapi.h and coding.h.
8109 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8110 declarations.
8111 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8112 (Process32Next_Proc): New typedefs.
8113 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8114 (g_b_init_process32_next, g_b_init_open_thread_token)
8115 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8116 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8117 (g_b_init_get_process_working_set_size)
8118 (g_b_init_global_memory_status_ex): New static variables.
8119 (globals_of_w32): Initialize them.
8120 (create_toolhelp32_snapshot, process32_first, process32_next)
8121 (open_thread_token, impersonate_self, revert_to_self)
8122 (get_process_memory_info, get_process_working_set_size)
8123 (global_memory_status, global_memory_status_ex): New wrapper
8124 functions.
8125 (w32_list_system_processes, w32_system_process_attributes)
8126 (enable_privilege, restore_privilege, ltime, process_times):
8127 New functions.
8128 (convert_time_raw): New function.
8129 (convert_time): Remove conversion of FILETIME into time in 100
8130 nsec units, call convert_time_raw instead.
8131
8132 * process.h (w32_list_system_processes, w32_system_process_attributes):
8133 Add prototypes.
8134 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8135 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8136 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8137 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8138
8139 * process.c (Fsystem_process_attributes): Doc fix.
8140
81412008-08-08 Chong Yidong <cyd@stupidchicken.com>
8142
8143 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8144 a continued multi-char glyph; if so, advance to the actual glyph.
8145
81462008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8147
8148 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8149
8150 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8151 (.m.o): Use it.
8152 * config.in: Regenerate.
8153
81542008-08-07 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * xdisp.c (redisplay_window): Revert last change.
8157 (try_window): Check bottom scroll margin too.
8158
81592008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8160
8161 * config.in: Regenerate.
8162
8163 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8164 -list-load-path-shadows'.
8165 (nsgui.h): Reduce number of things depending on it.
8166
81672008-08-06 Chong Yidong <cyd@stupidchicken.com>
8168
8169 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8170 instead of window-end which does the wrong thing at eob.
8171 (try_cursor_movement): Minor optimization.
8172 (redisplay_window): If scroll margin is defined, don't assume
8173 window doesn't need scrolling.
8174
81752008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8176
8177 * config.in: Regenerate.
8178
8179 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8180 (mostlyclean): Don't delete *.d under NS.
8181
8182 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8183
81842008-08-06 Kenichi Handa <handa@m17n.org>
8185
8186 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8187
81882008-08-06 Andreas Schwab <schwab@suse.de>
8189
8190 * config.in: Regenerate.
8191
81922008-08-05 Chong Yidong <cyd@stupidchicken.com>
8193
8194 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8195 forcing a window start.
8196
8197 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8198 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8199
82002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8201
8202 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8203 argument.
8204
82052008-08-05 Juanma Barranquero <lekktu@gmail.com>
8206
8207 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8208 <scroll-down-aggressively, before-change-functions>:
8209 <after-change-functions>: Reflow docstrings.
8210
82112008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8212 Ken Raeburn <raeburn@gnu.org>
8213
8214 Dock menu customization, based on a patch by Ken Raeburn, plus some
8215 other fixes.
8216 * nsmenu.m (dockMenu): New variable.
8217 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8218
8219 * nsterm.h (dockMenu): Declare.
8220
8221 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8222 (ns_term_init): Initialize dockMenu.
8223 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8224 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8225 left.
8226
8227 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8228
82292008-08-04 Chong Yidong <cyd@stupidchicken.com>
8230
8231 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8232
8233 * config.in: Regenerate.
8234
82352008-08-04 Seiji Zenitani <zenitani@mac.com>
8236
8237 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8238
82392008-08-04 Chong Yidong <cyd@stupidchicken.com>
8240
8241 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8242
82432008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8244
8245 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8246
8247 * keyboard.h: Comment an #endif.
8248
8249 * lisp.h (have_menus_p): Adjust comment.
8250
8251 * menu.c (find_and_return_menu_selection): Fix comparison with
8252 client_data.
8253
8254 * nsmenu.m (popup_activated_flag): New variable.
8255 (popup_activated): New function.
8256 (menu-or-popup-active-p): New exported lisp definition.
8257 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8258 when popup done.
8259 (ns_popup_dialog): Set popup_activated_flag.
8260
8261 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8262 version for GNUstep (handled by conditional typedef in nsterm.m).
8263 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8264 in rgb.txt).
8265
8266 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8267
8268 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8269
8270 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8271
8272 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8273 shortcircuit if popup_activated like GTK and X toolkit.
8274
8275 * m/inter386.h: Change DARWIN to DARWIN_OS.
8276
8277 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8278 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8279 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8280 comment on NO_SOCK_SIGIO.
8281
82822008-08-03 Chong Yidong <cyd@stupidchicken.com>
8283
8284 * nsterm.m (windowDidResize): Remove stopModal call.
8285
82862008-08-03 Andreas Schwab <schwab@suse.de>
8287
8288 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8289 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8290
82912008-08-02 Chong Yidong <cyd@stupidchicken.com>
8292
8293 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8294 Don't use uninitialized pointer variable when using getrlimit.
8295
82962008-08-02 Jason Rumney <jasonr@gnu.org>
8297
8298 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8299
83002008-08-02 Eli Zaretskii <eliz@gnu.org>
8301
8302 * alloc.c (NSTATICS): Bump to 0x640.
8303
8304 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8305
8306 * lisp.h: Add prototype for directory_files_internal.
8307
8308 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8309 New functions.
8310 (syms_of_process): Defsubr them. Add initializations for various
8311 Q* symbols used in procfs_system_process_attributes.
8312 (procfs_list_system_processes, procfs_system_process_attributes)
8313 [HAVE_PROCFS]: New functions.
8314 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8315 (procfs_get_total_memory): New functions.
8316
83172008-08-01 Juanma Barranquero <lekktu@gmail.com>
8318
8319 * xfaces.c (Fx_load_color_file): Fix previous change;
8320 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8321
83222008-08-01 Michael Albinus <michael.albinus@gmx.de>
8323
8324 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8325
83262008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8327
8328 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8329
83302008-08-01 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8333
8334 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8335 define NSApplicationDelegateReplySuccess.
8336 (EmacsView -converstationIdentifier): Use long instead of
8337 NSInteger for GNUstep, since it doesn't have NSInteger.
8338
8339 * xmenu.c: Revert last change.
8340
8341 * keyboard.h: Fix last change.
8342
83432008-08-01 Juanma Barranquero <lekktu@gmail.com>
8344
8345 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8346 on Windows.
8347
83482008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8349
8350 Warning clearing and clean-up in NS port.
8351 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8352 Add prototypes.
8353 * nsgui.h (FACE_DEFAULT): Remove, unused.
8354 (XGCValues): Change colors to unsigned long.
8355 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8356 nsterm.m.
8357 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8358 (ns_list_fonts): Remove, unused.
8359 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8360 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8361 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8362 (nsfont_draw): Compare face colors to 0, not nil.
8363 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8364 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8365 (-addSubmenuWithTitle:): Use NSMenuItem class.
8366 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8367 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8368 (ns_clip_to_row): Make gc arg a BOOL.
8369 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8370 ns_clip_to_row() call.
8371 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8372 used). Cast FRAME_FONT assignments.
8373 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8374 (ns_string_to_lispmod): Change arg to const char.
8375 (ns_term_init): Use NSMenuItem class.
8376 (EmacsApp -openFile:): Move to different section of file.
8377 (EmacsApp -application:openFiles:): Don't return a value, call
8378 -replyToOpenOrPrint:.
8379 (EmacsView -keyDown:): Fix up cast.
8380 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8381 (EmacsView -menuDown:): Cast tag in call to
8382 find_and_call_menu_selection().
8383 (ns_list_fonts): Remove, unused.
8384 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8385 (ns_fontname_to_xlfd): Make static.
8386 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8387 Remove prototypes (now in keyboard.h).
8388 (next_menubar_widget_id): Remove, unused.
8389 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8390 Remove prototypes (now in keyboard.h).
8391 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8392
83932008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8394
8395 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8396 (floatfns.o): Depend on syssignal.h.
8397 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8398
8399 * systty.h: Fix previous change that removed BSD_TERMIOS.
8400 Add comments to #ifdefs.
8401
84022008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8403
8404 * w32fns.c (w32-load-color-file): Remove.
8405 (x-open-connection): Use renamed Fx_load_color_file.
8406 * xfaces.c (x-load-color-file): Add.
8407 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8408 Emacs.clr.
8409 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8410
84112008-07-31 Michael Albinus <michael.albinus@gmx.de>
8412
8413 * dbusbind.c (Fdbus_call_method_asynchronously)
8414 (Fdbus_method_error_internal): New defuns.
8415 (xd_read_message): Handle also reply messages.
8416 (Vdbus_registered_functions_table): Extend docstring.
8417
84182008-07-31 Juanma Barranquero <lekktu@gmail.com>
8419
8420 * keyboard.c (gobble_input): Fix previous change.
8421
84222008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8423
8424 * bitmaps/README:
8425 * xfns.c:
8426 * termcap.c:
8427 * term.c:
8428 * syswait.h:
8429 * systty.h:
8430 * systime.h:
8431 * syssignal.h:
8432 * sysdep.c:
8433 * process.h:
8434 * process.c:
8435 * print.c:
8436 * ndir.h:
8437 * lread.c:
8438 * keyboard.c:
8439 * getpagesize.h:
8440 * floatfns.c:
8441 * fileio.c:
8442 * emacs.c:
8443 * doc.c:
8444 * dispnew.c:
8445 * dired.c:
8446 * data.c:
8447 * callproc.c:
8448 * buffer.c:
8449 * README:
8450 * Makefile.in:
8451 * s/template.h:
8452 * s/msdos.h:
8453 * m/vax.h: Remove VMS support.
8454 * s/vms.h:
8455 * vlimit.h:
8456 * uaf.h:
8457 * temacs.opt:
8458 * param.h:
8459 * ioctl.h: Remove file.
8460
84612008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8462
8463 * s/ms-w32.h (MULTI_KBOARD): Remove.
8464 * xterm.c:
8465 * xselect.c:
8466 * xfns.c:
8467 * window.c:
8468 * w32term.c:
8469 * w32fns.c:
8470 * terminal.c:
8471 * termhooks.h:
8472 * term.c:
8473 * sysdep.c:
8474 * keyboard.h:
8475 * keyboard.c:
8476 * frame.h:
8477 * frame.c:
8478 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8479 * config.in: Regenerate.
8480
84812008-07-30 Jason Rumney <jasonr@gnu.org>
8482
8483 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8484
8485 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8486 (w32font_open_internal): Get unicode version of textmetrics.
8487 Don't enable or disable glyph indices here.
8488 (w32font_open): Disable use of glyph indices.
8489
8490 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8491
84922008-07-30 Chong Yidong <cyd@stupidchicken.com>
8493
8494 * minibuf.c (Vread_buffer_function): Doc fix.
8495
84962008-07-30 John Paul Wallington <jpw@pobox.com>
8497
8498 * minibuf.c (read_buffer_completion_ignore_case): New var.
8499 (Fread_buffer): Use it.
8500
85012008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8502
8503 * systty.h (sensemode): Remove empty #if. Remove reference to
8504 BSD_TERMIOS, unused.
8505
8506 * sysdep.c: Remove reference to DGUX.
8507 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8508
8509 * config.in: Regenerate.
8510
85112008-07-30 Jason Rumney <jasonr@gnu.org>
8512
8513 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8514
85152008-07-29 Jason Rumney <jasonr@gnu.org>
8516
8517 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8518 is populated.
8519 (uniscribe_encode_char): Always use uniscribe.
8520 Avoid using context if cache is populated.
8521
85222008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8523
8524 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8525 open menu.
8526
8527 * gtkutil.c (menu_nav_ended): Remove.
8528 (create_menus): Remove signal connect for menu_nav_ended.
8529
85302008-07-28 Chong Yidong <cyd@stupidchicken.com>
8531
8532 * xdisp.c (redisplay_window): Check return value of
8533 compute_window_start_on_continuation_line before forcing a window
8534 start.
8535
85362008-07-28 Jason Rumney <jasonr@gnu.org>
8537
8538 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8539
8540 * w32term.c (w32_enable_unicode_output, cleartype_active):
8541 Remove obsolete display options.
8542 (x_draw_glyph_string_background): Don't use old cleartype_active
8543 workaround.
8544 (w32_initialize): Remove cleartype_active initialization.
8545 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8546
85472008-07-28 Andreas Schwab <schwab@suse.de>
8548
8549 * lisp.h (init_weak_hash_tables, syms_of_font)
8550 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8551 (remove_hash_entry): Don't declare.
8552 * eval.c (maybe_call_debugger): Make static and move before use.
8553 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8554 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8555 * xterm.h (x_set_frame_alpha): Declare.
8556
85572008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8558
8559 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8560 (create_menus): Connect selection-done to menu_nav_ended.
8561
85622008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8563
8564 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8565 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8566 parameter with read of 'alpha' one.
8567 (Qns_frame_parameter): Remove.
5582fbc7 8568 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8569 (next-selection-coding-system, Vselection_coding_system)
8570 (Vnext_selection_coding_system): Drop.
8571
85722008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8573
8574 * nsfns.m (do-applescript, do_applescript): Rename to
8575 ns-do-applescript, ns_do_applescript, and move within file.
8576
85772008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8578
8579 Remove support for Mac Carbon.
8580 * mactoolbox.c:
8581 * macterm.h:
8582 * macterm.c:
8583 * macselect.c:
8584 * macmenu.c:
8585 * macgui.h:
8586 * macfns.c:
8587 * mac.c: Remove file.
8588 * s/darwin.h:
8589 * m/intel386.h:
8590 * xfaces.c:
8591 * xdisp.c:
8592 * window.c:
8593 * tparam.c:
8594 * termhooks.h:
8595 * termcap.c:
8596 * term.c:
8597 * syssignal.h:
8598 * sysselect.h:
8599 * sysdep.c:
8600 * process.c:
8601 * lread.c:
8602 * lisp.h:
8603 * keyboard.c:
8604 * image.c:
8605 * fringe.c:
8606 * frame.h:
8607 * frame.c:
8608 * fontset.c:
8609 * font.h:
8610 * font.c:
8611 * fns.c:
8612 * fileio.c:
8613 * emacs.c:
8614 * dispnew.c:
8615 * dispextern.h:
8616 * config.in:
8617 * atimer.c:
2ae37cf0 8618 * Makefile.in: Remove code for Carbon.
aac0c6e3 8619
f0131492 86202008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8621
8622 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8623
86242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8625
8626 * macterm.h (kCGBitmapByteOrder32Host): New define for
8627 non-universal SDKs.
8628
8629 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8630 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8631
8632 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8633 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8634
86352008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8636
8637 * w32inevt.c: Include dispextern.h.
8638
86392008-07-26 Andreas Schwab <schwab@suse.de>
8640
8641 * print.c (print_object): Fix off-by-one in last change.
8642
86432008-07-25 Juanma Barranquero <lekktu@gmail.com>
8644
8645 * term.c (syms_of_term): Don't initialize default_orig_pair,
8646 default_set_foreground and default_set_background on Windows.
8647
86482008-07-25 Jason Rumney <jasonr@gnu.org>
8649
8650 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8651 ScriptItemize. Clean up return value checking. Remove unused
8652 variables.
8653 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8654 shaping engine.
8655
8656 * w32font.c (w32font_has_char): Handle the case where we can't
8657 determine the script for a character.
8658
86592008-07-25 Chong Yidong <cyd@stupidchicken.com>
8660
8661 * term.c (syms_of_term): Initialize default_orig_pair,
8662 default_set_foreground, and default_set_background.
8663
8664 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8665 clash (bug#86).
8666 (getloadavg): Callers changed.
8667
8668 * image.c (svg_load_image): Fix last change.
8669 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8670 image size is valid. Use g_object_unref instead of deprecated
8671 rsvg_handle_free to free rsvg handle.
8672 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8673
86742008-07-25 Jason Rumney <jasonr@gnu.org>
8675
8676 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8677 surrogates before looking up glyph index.
8678 (w32font_text_extents): Encode as surrogates if falling back to
8679 functions that need UTF-16 wide chars.
8680
8681 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8682 BMP as surrogates before looking up glyph index.
8683
86842008-07-25 Chong Yidong <cyd@stupidchicken.com>
8685
8686 * image.c (svg_load_image): Check for failure in return value of
8687 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8688
86892008-07-25 Jason Rumney <jasonr@gnu.org>
8690
8691 * w32font.c (Fx_select_font): Reverse sense of second arg.
8692
86932008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8694
8695 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8696 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8697
8698 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8699 (PURESIZE): Use it.
8700
87012008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8702
8703 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8704 * m/alpha.h (TEXT_END):
8705 * m/ibmrs6000.h (TEXT_END):
8706 * m/macppc.h (TEXT_END):
8707 * s/darwin.h (TEXT_END):
8708 * s/msdos.h (TEXT_END): Remove, unused.
8709 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8710 * s/cygwin.h: Remove comment.
8711
8712 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8713 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8714 * m/intel386.h (DOT_GLOBAL_START):
8715 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8716 (USG): Remove, file not used on USG platforms.
8717
8718 * Makefile.in (HAVE_X11): Remove empty #else.
8719
87202008-07-24 Andreas Schwab <schwab@suse.de>
8721
8722 * fileio.c (Finsert_file_contents): Properly adjust undo list
8723 after format conversion.
8724
87252008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8726
8727 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8728 (menu_nav_ended): Remove.
8729 (create_menus): Remove signal connect for menu_nav_ended.
8730 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8731 create_menus.
8732 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8733
87342008-07-23 Jason Rumney <jasonr@gnu.org>
8735
8736 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8737 with opened font.
8738 (w32font_open): Set font type to gdi.
8739
8740 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8741
87422008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8743
8744 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8745 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8746 defines it.
8747 * unexec.c (ADDR_CORRECT): Define unconditionally.
8748
8749 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8750
8751 * unexec.c: Remove code depending on !COFF and USG, the file is
8752 not used for such systems.
8753
8754 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8755 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8756 (LD_SWITCH_SYSTEM_1): Remove, update users.
8757
8758 * s/darwin.h (DATA_END):
8759 * m/intel386.h (DATA_END):
8760 * m/ibmrs6000.h (DATA_END):
8761 * m/alpha.h (DATA_END): Remove, unused.
8762
8763 * config.in: Regenerate.
8764 * s/ms-w32.h (subprocesses): Define unconditionally.
8765 * s/template.h (subprocesses): Update comment.
8766 * s/vms.h (subprocesses):
8767 * s/usg5-4.h (subprocesses):
8768 * s/hpux10-20.h (subprocesses):
8769 * s/gnu-linux.h (subprocesses):
8770 * s/cygwin.h (subprocesses):
8771 * s/bsd-common.h (subprocesses):
8772 * s/aix4-2.h (subprocesses):
8773 * s/darwin.h (subprocesses): Do not define, defined by default now.
8774
8775 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8776 Remove all references.
8777 (temacs): Add GNUstep specific ld flags.
8778
8779 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8780 similarly to what X does.
8781
87822008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8783
8784 * nsfns.m (x-list-fonts): Remove.
8785 (syms_of_nsfns): Drop the x-list-fonts declaration.
8786 * nsterm.m: Get rid of remaining "//" comments.
8787
87882008-07-22 Chong Yidong <cyd@stupidchicken.com>
8789
8790 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8791
8792 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8793 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8794 (Fns_own_selection_internal, Fx_disown_selection_internal)
8795 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8796
8797 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8798 ... */' style of docstrings. Doc fixes.
8799
88002008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8801
8802 * terminfo.c (UP, BC, PC): Undo previous change.
8803
8804 * nsfns.m: Rename ns prefixed functions/variables to the
8805 corresponding x versions. Update references.
8806
88072008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8808
8809 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8810
88112008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8812
8813 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8814 Remove forwarding functions.
8815 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8816 non-static.
8817 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8818 non-static.
8819 (ns_frame_parm_handlers): Use the new names.
8820 (syms_of_nsfns): Move to the end of file.
8821
8822 * nsterm.m (syms_of_nsterm): Move to the end of file.
8823
8824 * dispnew.c (init_display): Remove code for X10.
8825
88262008-07-22 Jason Rumney <jasonr@gnu.org>
8827
8828 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8829 bare drive.
8830
88312008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8832
8833 * nsterm.m (syms_of_nsterm): Remove debugging println.
8834
88352008-07-22 David Reitter <david.reitter@gmail.com>
8836
8837 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8838 Carbon implementation of the same functionality: execute arbitrary
8839 AppleScript code.
8840
88412008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8842
8843 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8844 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8845 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8846 (Fx_display_mm_height, Fx_display_mm_width)
8847 (Fx_display_backing_store, Fx_display_visual_class)
8848 (Fx_display_save_under, Fx_open_connection)
8849 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8850 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8851 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8852 (Fx_display_pixel_width, Fx_display_pixel_height)
8853 (Fx_display_usable_bounds, Fx_display_planes)
8854 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8855 ... */' style of docstrings.
8856
88572008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8858
8859 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8860 on this platform.
8861 (mips):
8862 * m/iris4d.h (mips): Do not define.
8863 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8864
8865 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8866
8867 * image.c:
8868 * nsfns.m:
8869 * nsselect.m:
8870 * nsterm.h:
8871 * nsterm.m: Rename ns prefixed functions/variables to the
8872 corresponding x versions. Update references.
8873
8874 * m/ibms390x.h (NO_REMAP): Do not undefine.
8875
8876 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8877
88782008-07-21 Chong Yidong <cyd@stupidchicken.com>
8879
8880 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8881 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8882 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8883 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8884 (Fns_display_mm_height, Fns_display_mm_width)
8885 (Fns_display_backing_store, Fns_display_visual_class)
8886 (Fns_display_save_under, Fns_open_connection)
8887 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8888 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8889 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8890 (Fns_display_pixel_width, Fns_display_pixel_height)
8891 (Fns_display_usable_bounds, Fx_display_planes)
8892 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8893
88942008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8895
8896 * print.c (print_object): Check print_depth before searching for
8897 circularities.
8898
88992008-07-21 Michael Albinus <michael.albinus@gmx.de>
8900
8901 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8902 only sprintf.
8903
89042008-07-21 Kenichi Handa <handa@m17n.org>
8905
8906 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8907
89082008-07-20 Andreas Schwab <schwab@suse.de>
8909
8910 * syntax.c (find_start_pos, find_start_value)
8911 (find_start_value_byte, find_start_begv, find_defun_start)
8912 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8913
89142008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8915
8916 * s/sol2-3.h: Insert contents of s/sol2.h.
8917 (LD_SWITCH_SYSTEM): Remove redundant definition.
8918 * s/sol2.h: Remove, unused.
8919
89202008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8921
8922 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8923
89242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8925
8926 * Makefile.in (ns_appdir): Fix typo in find command.
8927
89282008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8929
8930 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8931
8932 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8933 added not supported anymore.
8934
8935 * s/usg5-4-2.h (LIBS_SYSTEM):
8936 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8937
8938 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8939 * s/lynxos.h (GETPGRP_NO_ARG):
8940 * s/hpux10-20.h (NO_SIOCTL_H):
8941 * s/gnu.h (GETPGRP_NO_ARG):
8942 * s/gnu-linux.h (NO_SIOCTL_H):
8943 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8944 * s/cygwin.h (GETPGRP_NO_ARG):
8945 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8946 (C_DEBUG_SWITCH): Remove duplicate definition.
8947
8948 * m/ibms390.h: Remove boilerplate comments.
8949
8950 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8951
8952 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8953 (wait_reading_process_output): Remove code for SunOS, platform not
8954 supported anymore. Use SOLARIS2 instead of sun.
8955
89562008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8957
8958 * font.c (font_open_by_name): Under NS, default lface height to zero.
8959 (font_open_for_lface): Under NS, set size based on frame fontsize.
8960 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8961 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8962
89632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8964
8965 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8966 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8967 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8968 YES/NO.
8969 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8970 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8971 * Makefile.in (clean): Clear out build destination dir.
8972
89732008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8974
8975 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8976 xterm, xselect.
8977 * lisp.h: Remove declaration of hash_remove.
8978 * nsgui.h: Remove redefinitions of hash_remove.
8979 * fns.c (hash_remove): Rename to hash_remove_from_table.
8980
89812008-07-19 Seiji Zenitani <zenitani@mac.com>
8982
8983 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8984 strdup() the family UTF8String before modifying it.
8985
89862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8987
8988 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8989 NS_FACE_BACKGROUND with 0 instead of nil.
8990 * nsfont.m (nsfont_draw): Same.
8991
89922008-07-19 Chong Yidong <cyd@stupidchicken.com>
8993
8994 * nsfns.m (ns_set_background_color): Fix crash.
8995
89962008-07-18 Chong Yidong <cyd@stupidchicken.com>
8997
8998 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8999
90002008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9001
9002 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9003
90042008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9005
9006 * gtkutil.c: Include <config.h> instead of "config.h".
9007
9008 * lisp.h (Foverlay_buffer): Add EXFUN.
9009
9010 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9011 child process to complete child_setup. Undo 2005-09-21 change.
9012
9013 * s/darwin.h: Mention setsid after vfork.
9014
90152008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9016
9017 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9018 Depend on macgui.h.
9019
9020 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9021 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9022
9023 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9024 and f19.
9025 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9026
9027 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9028 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9029 Remove enumerators.
9030
9031 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9032 Check if FACE_FROM_ID returns NULL.
9033
90342008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9035
9036 * w32inevt.c (change_frame_size): Remove extern declaration.
9037 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9038 change_frame_size.
9039
90402008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * getloadavg.c: Revert last change (2008-07-15).
9043
90442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9045
9046 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9047 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9048 from configure.
9049
90502008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9051
9052 * s/sol2.h:
9053 * s/sol2-4.h: Reorganize conditionals.
9054
9055 * ecrt0.c: Remove code depending on m68000, not used anymore.
9056
9057 * fns.c (hash_remove): Make static.
9058 * lisp.h (hash_remove): Don't prototype.
9059
9060 * m/ibmrs6000.h:
9061 * m/ibms390x.h:
9062 * m/macppc.h: Remove boilerplate comments.
9063
9064 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9065 Solaris, which does not need them.
9066
9067 * m/vax.h: Remove comments about unsupported systems.
9068
9069 * s/darwin.h: Reorganize ifdefs.
9070
90712008-07-17 Andreas Schwab <schwab@suse.de>
9072
9073 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9074
90752008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9076
9077 Use SDATA. Follow coding convention of placing operators at
9078 beginning of next line rather than end of previous line, and placing
9079 spaces around infix operators.
9080
9081 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9082 in case it was defined already.
9083 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9084 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9085 ns_default.
9086 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9087 Lisp_Objects.
9088 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9089 (ns_defined_color, ns_color_to_lisp): Declare.
9090 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9091 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9092 it's accepted even with USE_LISP_UNION_TYPE.
9093 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9094 (update_frame_tool_bar): Remove apparently obsolete tests for
9095 non-integerness of f->tool_bar_lines.
9096 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9097 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9098 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9099 (nsfont_open): Don't confuse NULL for Qnil.
9100 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9101 * menu.h (find_and_call_menu_selection):
9102 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9103 (find_and_return_menu_selection): Always return something.
9104 * frame.h: Include dispextern.h for Display_Info.
9105 (display_x_get_resource): Declare.
9106
91072008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9108
9109 * syntax.c: Remove stdio.h include accidentally introduced in
9110 Emacs.app commit.
9111 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9112 NS_IMPL_COCOA.
9113 * keyboard.c (handle_async_input, input_available_signal): Remove
9114 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9115
91162008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9117
9118 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9119 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9120 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9121 Use SDATA.
9122
9123 * keymap.c: Remove all NS-specific code.
9124 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9125 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9126 where_is_preferred_modifier, return a different value depending on how
9127 preferred is the binding.
9128 (where_is_internal): Adjust accordingly.
9129 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9130 Adjust to new preferred_sequence_p.
9131 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9132 * keyboard.c (parse_solitary_modifier): Not static any more.
9133 * keyboard.h (parse_solitary_modifier): Declare.
9134
91352008-07-16 Andreas Schwab <schwab@suse.de>
9136
9137 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9138 of easymenu.
9139
91402008-07-16 Chong Yidong <cyd@stupidchicken.com>
9141
9142 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9143 that we don't move off the line.
9144
91452008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9146
9147 * keyboard.c (Qsuper): Remove.
9148 (parse_menu_item): Don't call where_is_internal specially for NS.
9149
91502008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9151
9152 * s/gnu-linux.h: Remove boilerplate comments.
9153
9154 * m/alpha.h (__ELF__): Consolidate conditions.
9155
9156 * m/m68k.h (linux): Use GNU_LINUX instead.
9157 Remove boilerplate comments.
9158
9159 * m/intel386.h: Undo refactoring from previous change.
9160 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9161 too, remove dead code.
9162 (linux): Use GNU_LINUX instead.
9163
91642008-07-16 Jason Rumney <jasonr@gnu.org>
9165
9166 * w32gui.h: Repeat 26 June changes lost by last change.
9167
91682008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9169
9170 * systty.h: Remove code for Aix on 386, unsupported platform.
9171
9172 * s/ms-w32.h: Remove boilerplate comments.
9173 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9174
9175 * s/gnu-linux.h (TERM): Remove support.
9176 (HAVE_SYSVIPC): Remove, unused.
9177 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9178 for this system.
9179
9180 * process.c: Remove support for IRIS, unused.
9181 Remove support for TERM, not relevant anymore.
9182
9183 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9184 used with the definition.
9185
9186 * s/aix4-2.h (static): Do not undef.
9187
9188 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9189 only used on Aix.
9190 (HAVE_SYSVIPC): Remove, unused.
9191
9192 * m/hp800.h (CANNOT_DUMP): Do not undef.
9193
9194 * m/alpha.h: Fix comment.
9195
9196 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9197 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9198 used by this configuration.
9199 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9200 * unexec.c: Remove code depending on HPUX and
9201 USG_SHARED_LIBRARIES, not used with this file. Remove code
9202 depending on IRIS, unused. Remove if 0-ed code.
9203
9204 * s/template.h: Remove comments about static.
9205
9206 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9207 Remove if 0-ed code.
9208 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9209 were the same as the default.
9210 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9211 Remove boilerplate comments.
9212 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9213 (HAVE_SYSVIPC): Remove, unused.
9214 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9215
9216 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9217 Remove boilerplate comments.
9218 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9219 Remove boilerplate comments.
9220 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9221 Remove boilerplate comments.
9222 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9223
9224 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9225 USG systems which do not use DATA_SEG_BITS.
9226 Refactor code. Remove boilerplate comments.
9227
9228 * m/ibms390.h:
9229 * m/m68k.h:
9230 * s/bsd-common.h:
9231 * s/cygwin.h:
9232 * s/darwin.h:
9233 * s/freebsd.h:
9234 * s/gnu.h:
9235 * s/msdos.h: Remove boilerplate comments.
9236
9237 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9238 do not use this file.
aac0c6e3
MR
9239 (IRIS_4D): Remove, unused.
9240
9241 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9242 do not use this file.
aac0c6e3
MR
9243 (SIGN_EXTEND_CHAR):
9244 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9245 * unexmips.c: Remove file, unused.
9246
9247 * editfns.c (Fuser_full_name): Replace the only use of
9248 USER_FULL_NAME with its value.
9249 * config.in: Regenerate.
9250
92512008-07-16 David Reitter <david.reitter@gmail.com>
9252
9253 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9254 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9255
92562008-07-16 Glenn Morris <rgm@gnu.org>
9257
9258 * emacs.c (system-type): Doc fix.
9259
92602008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9261
9262 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9263 If the cache doesn't work, let's fix it, rather than work around it.
9264
92652008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9266
9267 * Makefile.in: Correct additions for nsfont.o in last commit.
9268 * nsfont.m: New file (forgot last commit).
9269
92702008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9271
9272 * callproc.c (set_initial_environment): Initialize
9273 Vprocess_environment under CANNOT_DUMP (fixes crash when
9274 batch-compiling for bootstrap).
9275
92762008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9277 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9278
9279 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9280 fix crash due to different init order.
9281
92822008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9283
9284 Changes and additions for NeXTstep windowing system (Cocoa and
9285 GNUstep) support.
9286
9287 * Makefile.in:
9288 * config.in: Support defines and build commands for NS port.
9289 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9290 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9291 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9292 windowing.
9293 (struct face): Add synth_ital field.
9294 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9295 (init_display): Initialize Vinitial_window_system to "ns" when so
9296 compiled.
9297 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9298 (display_arg): Use under NS.
9299 (main): Under NS, allocate autorelease pool and handle command line
9300 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9301 (standard_args): Add NS-specific args.
9302 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9303 * font.c (DEFAULT_ENCODING): New variable.
9304 (font_find_for_lface): Use it.
9305 (syms_of_font): Load syms_of_nsfont under NS.
9306 * font.h: Declare nsfont_driver when compiled under NS.
9307 * fontset.c: When compiling under NS, include nsterm.h.
9308 (fontset_from_font): Autoconstruct fontset under NS.
9309 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9310 symbol, document and use it.
9311 (do_switch_frame): When for_deletion under Cocoa, add
9312 Fraise_frame(Qnil).
9313 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9314 (x_get_arg): Allow "yes" and "no" as boolean values.
9315 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9316 Qright under Cocoa.
9317 (focus-follows-mouse): Default to 0 under NS.
9318 * frame.h (enum output_method): Add output_ns.
9319 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9320 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9321 (FRAME_WINDOW_P): NS-specific definition.
9322 * fringe.c (max_used_fringe_bitmap): Make public.
9323 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9324 (getloadavg): Use NeXT code under descendant OS's.
9325 * image.c (includes and header section, x_create_bitmap_from_data)
9326 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9327 (image_background_transparent, x_clear_image_1)
9328 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9329 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9330 (x_to_xcolors, x_from_xcolors, x_disable_image)
9331 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9332 other GUIs, including XPM support using code originally written for
9333 Carbon GUI.
9334 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9335 using NS API.
9336 (image_ascent): Use font metrics macros instead of direct struct field
9337 access.
9338 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9339 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9340 Also, handle NS as GTK for menu bar purposes.
9341 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9342 toolkit where they differ.
9343 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9344 use cachelist, still needed under NS.
9345 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9346 (struct widget_value): Define it here for menu.c.
9347 * keymap.c (includes): Include modifier internals.
9348 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9349 NS.
9350 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9351 support for preferring sequences using certain modifiers, specified by
9352 the FIRSTONLY argument.
9353 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9354 under NS GNUstep implementation.
9355 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9356 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9357 * menu.c: Include nsterm.h under NS.
9358 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9359 (free_menubar_widget_tree_value, update_submenu_strings)
9360 (find_and_call_menu_selection): Treat NS as X and NT.
9361 (find_and_return_menu_selection): New function, used for popup menus.
9362 * nsgui.h:
9363 * nsterm.h:
9364 * nsfns.m:
9365 * nsimage.m:
9366 * nsmenu.m:
9367 * nsselect.m:
9368 * nsterm.m: New files.
9369 * process.c (wait_reading_process_output): Under NS, call ns_select()
9370 instead of plain select().
9371 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9372 beginning of buffer.
9373 * sysselect.h (init_process): Rename when compiling under Cocoa to
9374 avoid name conflict.
9375 * termhooks.h (display_info): Add ns_display_info to union.
9376 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9377 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9378 COCOA environment.
9379 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9380 unexec() signature. (Note, this will dump, but the resulting file
9381 crashes; unexosx is used instead; keeping around for reference and
9382 possible aid in getting dump working under GNUstep.)
9383 * w32gui.h (button_type, widget_value): Remove definitions (now in
9384 keyboard.h).
9385 * window.c: Include nsterm.h when compiling under NS.
9386 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9387 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9388 other GUI windowing systems.
9389 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9390 GTK.
9391 (x_consider_frame_title): Under NS, set icon type and frame
9392 modified-state indicator; use ns_set_name_as_filename() when using
9393 formatted title.
9394 (update_window_cursor): Make public when compiling under NS.
9395 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9396 (hourglass_atimer, Vhourglass_delay
9397 * xfaces.c (header section, init_frame_faces, clear_font_table)
9398 (defined_color, unload_color, x_face_list_fonts)
9399 (prepare_face_for_display): Add NS support parallel to other GUIs.
9400 Emulate GCs like other non-X GUIs.
9401 (split_font_name): Don't lowercase font name under NS.
9402 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9403 under NS.
9404 * s/darwin.h: Add support for compilation under NS.
9405
94062008-07-15 Jason Rumney <jasonr@gnu.org>
9407
9408 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9409 (w32_show_hourglass): Rename from show_hourglass.
9410 (w32_hide_hourglass): Rename from hide_hourglass.
9411 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9412 (Vhourglass_delay): Declare extern.
9413 (hourglass_started): Remove.
9414
9415 * xdisp.c (Vhourglass_delay): Remove static.
9416 (hourglass_started, start_hourglass, cancel_hourglass):
9417 Don't include these versions on WINDOWSNT.
9418
94192008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9420
9421 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9422 variables (formerly in xfns.c).
9423 (show_hourglass, hide_hourglass): New prototypes (same).
9424 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9425 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9426 in xfns.c).
9427 (syms_of_xdisp): Declare/initialize display-hourglass,
9428 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9429 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9430 formerly in xfns.c.
9431 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9432 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9433 (start_hourglass, cancel_hourglass): Remove.
9434 (show_hourglass, hide_hourglass): Remove prototypes and static
9435 modifiers.
9436 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9437 hourglass_atimer, hourglass_shown_p declaration/initialization.
9438 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9439 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9440 (start_hourglass, cancel_hourglass): Remove.
9441 (show_hourglass, hide_hourglass): Remove prototypes and static
9442 modifiers.
9443 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9444 hourglass_atimer, hourglass_shown_p declaration/initialization.
9445 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9446 (DEFAULT_HOURGLASS_DELAY): Remove.
9447 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9448 hourglass_shown_p declaration/initialization.
9449
94502008-07-14 Jason Rumney <jasonr@gnu.org>
9451
9452 * w32fns.c (w32_get_arg): Remove wrapper function.
9453 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9454 directly.
9455 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9456
94572008-07-14 Kenichi Handa <handa@m17n.org>
9458
9459 * xfont.c (xfont_open): Add workaround for X's bug.
9460
94612008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9462
9463 * fontset.c: Include <stdio.h> unconditionally.
9464
94652008-07-13 Michael Albinus <michael.albinus@gmx.de>
9466
9467 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9468 for filtering.
9469
94702008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9471
9472 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9473
9474 * m/macppc.h:
9475 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9476
9477 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9478 (SPECIAL_EMACS_INT):
9479 * m/ia64.h (SPECIAL_EMACS_INT):
9480 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9481 * s/gnu.h (NLIST_STRUCT):
9482 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9483 * s/gnu-linux.h (LINUX):
9484 * s/msdos.h (HAVE_FACES):
9485 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9486
9487 * systty.h:
9488 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9489 anymore.
9490
94912008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9492
9493 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9494 always defined as int.
9495
9496 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9497 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9498 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9499 * s/freebsd.h (HAVE_WAIT_HEADER):
9500 * s/bsd-common.h (HAVE_UNION_WAIT):
9501 * s/aix4-2.h (HAVE_WAIT_HEADER):
9502 * m/mips.h (HAVE_UNION_WAIT):
9503 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9504 (COFF, static): Do not define, they are undefined later in the file.
9505
9506 * process.c (update_status): Don't use a union.
9507 (status_convert):
9508 (sigchld_handler): Use int instead of WAITTYPE.
9509
95102008-07-12 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * indent.c (Fvertical_motion): Restore hscroll before moving to
9513 goal column.
9514
95152008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9516
9517 * lisp.h: Remove left over code.
9518
95192008-07-11 Andreas Schwab <schwab@suse.de>
9520
9521 * lisp.h: Fix logic in last change.
9522
9523 * menu.h: New file.
9524 * menu.c: Include it.
9525 * xmenu.c: Likewise.
9526 * Makefile.in: Update dependencies.
9527
95282008-07-11 Kenichi Handa <handa@m17n.org>
9529
9530 * fontset.c (fontset_from_font): Cancel the previous change.
9531
95322008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9533
9534 * lisp.h:
9535 * w32heap.c:
9536 * emacs.c:
9537 * alloc.c: Replace all references of NO_UNION_TYPE with
9538 USE_LISP_UNION_TYPE.
9539
9540 * m/xtensa.h (NO_UNION_TYPE):
9541 * m/vax.h (NO_UNION_TYPE):
9542 * m/template.h (NO_UNION_TYPE):
9543 * m/sparc.h (NO_UNION_TYPE):
9544 * m/mips.h (NO_UNION_TYPE):
9545 * m/macppc.h (NO_UNION_TYPE):
9546 * m/m68k.h (NO_UNION_TYPE):
9547 * m/iris4d.h (NO_UNION_TYPE):
9548 * m/intel386.h (NO_UNION_TYPE):
9549 * m/ibms390x.h (NO_UNION_TYPE):
9550 * m/ibms390.h (NO_UNION_TYPE):
9551 * m/ibmrs6000.h (NO_UNION_TYPE):
9552 * m/ia64.h (NO_UNION_TYPE):
9553 * m/hp800.h (NO_UNION_TYPE):
9554 * m/arm.h (NO_UNION_TYPE):
9555 * m/amdx86-64.h (NO_UNION_TYPE):
9556 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9557 defining it the same.
9558
95592008-07-10 Chong Yidong <cyd@stupidchicken.com>
9560
9561 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9562
95632008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9564
9565 * fileio.c:
50426a04 9566 * sysdep.c:
aac0c6e3
MR
9567 * systty.h:
9568 * m/ibmrs6000.h:
9569 * m/iris4d.h:
9570 * s/aix4-2.h:
9571 * s/freebsd.h:
9572 * s/gnu-linux.h:
9573 * s/hpux10-20.h:
9574 * s/hpux11.h:
9575 * s/netbsd.h:
9576 * s/sol2-3.h:
9577 * s/sol2-4.h:
9578 * s/sol2.h:
9579 * s/usg5-4.h:
9580 * s/vms.h: Remove references to unused variables.
9581
95822008-07-10 Andreas Schwab <schwab@suse.de>
9583
9584 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9585 pattern before matching the generic family.
9586
95872008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9588
9589 * unexec.c:
9590 * s/vms.h:
9591 * s/usg5-4-2.h:
9592 * s/sol2-5.h:
9593 * s/freebsd.h:
9594 * s/darwin.h: Remove dead code.
9595
9596 * m/template.h:
9597 * m/sparc.h:
9598 * m/mips.h:
9599 * m/m68k.h:
9600 * m/iris4d.h:
9601 * m/intel386.h:
9602 * m/ibms390x.h:
9603 * m/ibms390.h:
9604 * m/ia64.h:
9605 * m/hp800.h:
9606 * m/arm.h:
9607 * m/amdx86-64.h: Remove dead code and references to unused
9608 and compiler defined symbols.
9609
9610 * unexmips.c:
9611 * unexelf.c: Remove references to desupported systems.
9612
9613 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9614
9615 * m/powermac.h: Remove boilerplate comments.
9616 (NO_REMAP): Remove unused definition.
9617
9618 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9619 define them.
9620
96212008-07-10 Kenichi Handa <handa@m17n.org>
9622
9623 * xfont.c (xfont_open): Log the reason of failure.
9624
96252008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9626
9627 * fontset.c (fontset_get_font_group):
9628 * font.c (font_check_otf): Specify argument types.
9629
96302008-07-09 Kenichi Handa <handa@m17n.org>
9631
9632 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9633 non-ASCII char is found.
9634
9635 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9636 (reorder_font_vector): Change the arg preferred_family to font.
9637 Prefer the spec matching with font.
9638 (fontset_get_font_group): New function.
9639 (fontset_find_font): Change the format of an element of a realized
9640 fontset. Use fontset_get_font_group.
9641 (fontset_font): Try the current fontset, the default fontset, the
9642 fallbacks of the current fontset, and the fallbacks of the default
9643 fontset in this order.
9644 (face_for_char): Delete the shortcut to use the current font.
9645 (fontset_from_font): Don't set fonts for Latin in the fontset.
9646
9647 * font.h (font_make_object, font_match_p): Adjust prototypes.
9648
9649 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9650
9651 * font.c (font_make_object): New arg entity and pixelsize.
9652 (font_check_otf_features, font_check_otf): New functions.
9653 (font_match_p): Check :lang, :script, and :otf properties.
9654
9655 * xfont.c (xfont_open): Adjust it for the change of
9656 font_make_object.
9657 (xfont_text_extents): Fix initial setting of metrics.
9658
9659 * ftfont.c (struct ftfont_info): New member index, delete member
9660 fc_charset_idx. Make the member order compatible with struct
9661 xftfont_info.
9662 (fc_charset_table): Change charset names to registry names.
9663 (ftfont_pattern_entity): Delete the args registry and
9664 fc_charset_idx. Change the value of :font-entity property
9665 to (FONTNAME . INDEX). Always set :registry property to
9666 `iso10646-1'.
9667 (struct ftfont_cache_data): New struct.
9668 (ftfont_lookup_cache): New arg for_face.
9669 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9670 (ftfont_driver): Set the member otf_capability.
9671 (ftfont_get_charset): Adjust it for the change of
9672 fc_charset_table.
9673 (OTF_TAG_SYM): New macro.
9674 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9675 for the change of fc_charset_table.
9676 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9677 ftfont_pattern_entity. Add FC_INDEX to objset.
9678 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9679 and ftfont_pattern_entity.
9680 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9681 font_make_object, struct ftfont_info.
9682 (ftfont_has_char): Use ftfont_get_fc_charset.
9683 (ftfont_otf_features, ftfont_otf_capability): New functions.
9684 (ftfont_shape): Use ftfont_get_otf.
9685 (ftfont_text_extents): Fix initial setting of metrics.
9686
9687 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9688 member order compatible with struct ftfont_info.
9689 (xftfont_open): Add FC_CHARSET to the pattern. Set
9690 xftfont_info->ft_size. Don't unlock the face. Check BDF
9691 properties if appropriate.
9692 (xftfont_close): Unlock the face.
9693 (xftfont_anchor_point, xftfont_shape): Deleted.
9694 (syms_of_xftfont): Don't set members anchor_point and shape of
9695 xftfont_driver.
9696
9697 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9698 font_make_object.
9699
9700 * w32font.c (w32font_open): Adjust it for the change of
9701 font_make_object.
9702 (w32font_open_internal): Don't set properties of font_object here.
9703
97042008-07-08 Chong Yidong <cyd@stupidchicken.com>
9705
9706 * macfns.c (x_create_tip_frame):
9707 * w32fns.c (x_create_tip_frame):
9708 * xfns.c (x_create_tip_frame): Pass parameter argument to
9709 face-set-after-frame-default.
9710
9711 * xfaces.c (Finternal_merge_in_global_face): Save merged
9712 attributes for the default face back into the face vector.
9713
97142008-07-08 Andreas Schwab <schwab@suse.de>
9715
9716 * fontset.h: Declare fontset_from_font. Don't declare
9717 new_fontset_from_font and fontset_from_font_name.
9718 * xterm.c: Include "fontset.h".
9719 * Makefile.in (xterm.o): Update dependencies.
9720
97212008-07-08 Glenn Morris <rgm@gnu.org>
9722
9723 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9724 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9725
97262008-07-07 Chong Yidong <cyd@stupidchicken.com>
9727
9728 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9729 (x_set_frame_parameters): Don't bind it.
9730
97312008-07-07 Juanma Barranquero <lekktu@gmail.com>
9732
9733 * w32fns.c (map_w32_filename): Declare extern.
9734
97352008-07-07 Jason Rumney <jasonr@gnu.org>
9736
9737 * w32term.c (WS_EX_LAYERED): Define if not already.
9738
97392008-07-06 Chong Yidong <cyd@stupidchicken.com>
9740
9741 * xfaces.c (set_font_frame_param): Don't try to set the font
9742 parameter if it is still unspecified in the lface.
9743
97442008-07-05 Chong Yidong <cyd@stupidchicken.com>
9745
9746 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9747 face if it didn't already exist.
9748
9749 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9750
97512008-07-05 Andreas Schwab <schwab@suse.de>
9752
9753 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9754
97552008-07-05 Chong Yidong <cyd@stupidchicken.com>
9756
9757 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9758 word-wrapping.
9759 (IT_DISPLAYING_WHITESPACE): New macro.
9760 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9761 when word-wrapping. Simplify word-wrapping logic. Use correct
9762 pixel positions when saving copies of the iterator.
9763 (display_line): Use proper wrap point if the last character on a
9764 line was preceded by whitespace.
9765
97662008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9767
9768 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9769
97702008-07-04 Kenichi Handa <handa@m17n.org>
9771
9772 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9773
9774 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9775
97762008-07-02 Jason Rumney <jasonr@gnu.org>
9777
9778 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9779 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9780
9781 * xdisp.c (next_element_from_display_vector): Move assignment out
9782 of if statement.
9783
97842008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9785
9786 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9787
9788 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9789 (syms_of_fileio): Initialize and export them.
9790 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9791
9792 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9793 (Fsystem_move_file_to_trash): New function.
9794 (syms_of_w32fns): Export it to lisp.
9795
97962008-07-01 Jason Rumney <jasonr@gnu.org>
9797
9798 * w32font.c (w32font_text_extents): Don't count overhang as part
9799 of width.
9800
98012008-06-30 Miles Bader <miles@gnu.org>
9802
9803 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9804 Add `avoid_cursor_p' field.
9805
9806 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9807 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9808 (append_glyph, append_composite_glyph, produce_image_glyph)
9809 (append_stretch_glyph): Initialize avoid_cursor_p.
9810 (get_it_property): Rename from `get_line_height_property'.
9811 (x_produce_glyphs): Use get_it_property.
9812 (handle_line_prefix, push_display_prop): New functions.
9813 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9814 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9815 New variables.
9816 (syms_of_xdisp): Initialize them.
9817
98182008-06-30 Kenichi Handa <handa@m17n.org>
9819
9820 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9821 XftDefaultSubstitute (they are called in XftFontMatch).
9822 (xftfont_open): Fix args to ftfont_font_format.
9823
9824 * ftfont.c (fc_charset_table): New member lang.
9825 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9826 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9827 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9828 (ftfont_open): Fix args to ftfont_font_format.
9829 (ftfont_font_format): New arg filename.
9830
98312008-06-30 Chong Yidong <cyd@stupidchicken.com>
9832
9833 * xfaces.c (Finternal_merge_in_global_face): If default face was
9834 modified, realize it again. Update the font face attribute.
9835
98362008-06-29 Jason Rumney <jasonr@gnu.org>
9837
9838 * w32term.c (x_set_frame_alpha): Fix logic.
9839
98402008-06-29 Kenichi Handa <handa@m17n.org>
9841
9842 * fontset.c (Finternal_char_font): Return font-object instead of
9843 font-name.
9844
9845 * composite.c (get_composition_id): Fix the width calculation for TAB.
9846
98472008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9848
9849 * indent.c (Fvertical_motion): Properly handle float column arg.
9850
98512008-06-28 Jason Rumney <jasonr@gnu.org>
9852
9853 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9854 (pfnSetLayeredWindowAttributes): New function pointer.
9855 (w32_initialize): Initialize it when supported.
9856 (x_set_frame_alpha): New function.
9857
9858 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9859 (w32_frame_parm_handlers): Set alpha handler.
9860
9861 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9862
98632008-06-27 Jason Rumney <jasonr@gnu.org>
9864
9865 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9866 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9867 (w32_to_x_charset, x_to_w32_charset)
9868 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9869 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9870 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9871 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9872 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9873 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9874 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9875 (Qw32_charset_unicode): Remove.
9876 (syms_of_w32fns): Update for above changes.
9877
9878 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9879 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9880 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9881 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9882 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9883 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9884 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9885 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9886 (syms_of_w32font): Update for above changes.
9887
98882008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9889
9890 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9891 removed #if.
9892 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9893
98942008-06-26 Juanma Barranquero <lekktu@gmail.com>
9895 Eli Zaretskii <eliz@gnu.org>
9896
9897 * makefile.w32-in (LOCAL_FLAGS):
9898 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9899
9900 * sysdep.c (_spawnlp, _getpid):
9901 Declare with explicit _cdecl instead of _CRTAPI1.
9902
9903 * editfns.c (Fget_internal_run_time):
9904 Check for WINDOWSNT with #ifdef, not #if.
9905
99062008-06-26 Jason Rumney <jasonr@gnu.org>
9907
9908 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9909
9910 * w32term.c (x_draw_glyph_string_foreground)
9911 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9912 Use FONT_HANDLE macro.
9913 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9914
9915 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9916 (uniscribe_encode_char): Use FONT_HANDLE macro.
9917
9918 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9919 (w32font_text_extents): Use precast w32_font.
9920 (w32font_close): Free cached metrics.
9921 (w32font_open_internal): Allocate space for name on stack.
9922
99232008-06-26 Chong Yidong <cyd@stupidchicken.com>
9924
9925 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9926
99272008-06-26 Jason Rumney <jasonr@gnu.org>
9928
9929 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9930 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9931
99322008-06-26 Juanma Barranquero <lekktu@gmail.com>
9933
9934 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9935
99362008-06-26 Jason Rumney <jasonr@gnu.org>
9937
9938 * w32bdf.c, w32bdf.h: Remove obsolete files.
9939
9940 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9941
9942 * w32gui.h: Don't include w32bdf.h.
9943 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9944 Remove obsolete font support.
9945
9946 * w32font.h (struct w32font_info): Remove compat_w32_font.
9947 Add hfont member.
9948 (FONT_COMPAT): Remove obsolete macro.
9949
9950 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9951 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9952 (w32font_open_internal): Remove compat code. Set new hfont member.
9953 (Fx_select_font): Use new hfont member.
9954
9955 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9956 (uniscribe_encode_char): Use new hfont member.
9957
9958 * w32term.c (x_draw_glyph_string_foreground)
9959 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9960 (x_draw_glyph_string): Use metrics in w32font_info.
9961
99622008-06-26 Kenichi Handa <handa@m17n.org>
9963
9964 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9965
99662008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9967
9968 * unexnext.c:
9969 * m/ews4800.h:
9970 * m/hp9000s300.h:
9971 * m/ibm370aix.h:
9972 * m/mips-siemens.h:
9973 * m/ncr386.h:
9974 * m/next.h:
9975 * m/pmax.h:
9976 * m/powerpcle.h:
9977 * m/tandem-s2.h:
9978 * s/386bsd.h:
9979 * s/bsd386.h:
9980 * s/bsd4-1.h:
9981 * s/bsd4-2.h:
9982 * s/bsdos2-1.h:
9983 * s/bsdos2.h:
9984 * s/bsdos3.h:
9985 * s/bsdos4.h:
9986 * s/nextstep.h:
9987 * s/ultrix4-3.h:
9988 * s/usg5-0.h:
9989 * s/usg5-2-2.h:
9990 * s/usg5-2.h:
9991 * s/usg5-4-3.h:
9992 * s/ux4800.h:
9993 * s/uxpds.h:
9994 * s/uxpv.h: Remove support for obsolete systems.
9995 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9996 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9997 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9998 Remove, insert contents in s/aix4-2.h.
9999 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10000 * s/bsd4-3.h: Rename to ...
10001 * s/bsd-common.h: ... this.
10002 * data.c:
10003 * doc.c:
10004 * ecrt0.c:
10005 * emacs.c:
10006 * fileio.c:
10007 * floatfns.c:
10008 * keyboard.c:
10009 * mem-limits.h:
10010 * print.c:
10011 * process.c:
10012 * sysdep.c:
10013 * syssignal.h:
10014 * systty.h:
10015 * syswait.h:
10016 * term.c:
10017 * unexec.c:
10018 * unexelf.c:
10019 * unexhp9k800.c:
10020 * m/hp800.h:
10021 * m/ibmrs6000.h:
10022 * m/mips.h:
10023 * m/vax.h:
10024 * s/darwin.h:
10025 * s/freebsd.h:
10026 * s/gnu.h:
10027 * s/ms-w32.h:
10028 * s/msdos.h:
10029 * s/netbsd.h:
10030 * s/template.h: Remove references to obsolete variables.
10031
10032 * Makefile.in: Add dependencies for all unexec files.
10033 (admindir): Remove unused variable.
10034 (UNEXEC_SRC): Remove references.
10035
100362008-06-25 Chong Yidong <cyd@stupidchicken.com>
10037
10038 * xfns.c (x_default_font_parameter): If Xft is available, first
10039 try Monospace-12 for the default font.
10040
100412008-06-25 Jason Rumney <jasonr@gnu.org>
10042
10043 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10044
100452008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10048
10049 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10050
100512008-06-25 Juanma Barranquero <lekktu@gmail.com>
10052
10053 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10054 <scroll-conservatively>: Fix typo in docstring.
10055
10056 * xselect.c (Fx_send_client_event): Doc fix.
10057
100582008-06-25 Kenichi Handa <handa@m17n.org>
10059
10060 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10061
10062 * font.c (font_parse_fcname): Remove unused variables.
10063 (font_sort_entites): Delete the arg SPEC. Caller changed.
10064 Fix for the case of ! best_only.
10065 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10066
10067 * lisp.h (Fstring_to_unibyte): EXFUN it.
10068
10069 * character.h (str_to_unibyte): Extern it.
10070
10071 * character.c (str_to_unibyte): New function.
10072
10073 * fns.c (Fstring_to_unibyte): New function.
10074 (syms_of_fns): Defsubr it.
10075
100762008-06-24 Kenichi Handa <handa@m17n.org>
10077
10078 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10079 DPI too.
10080 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10081
100822008-06-24 Andreas Schwab <schwab@suse.de>
10083
10084 * Makefile.in (${lispsource}loaddefs.el): Rename from
10085 ../lisp/loaddefs.el.
10086 (bootstrap-clean): Do what distclean does but don't remove
10087 Makefile.
10088 (distclean): Depend on bootstrap-clean and remove Makefile.
10089
100902008-06-24 Chong Yidong <cyd@stupidchicken.com>
10091
10092 * buffer.h (struct buffer): New member word_wrap.
10093
10094 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10095 word-wrap.
10096 (init_buffer_once): Initialize them.
10097
10098 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10099 line_wrap enum possessing three possible values.
10100
10101 * termopts.h: Replace truncate_partial_width_windows with
10102 Vtruncate_partial_width_windows.
10103
10104 * dispnew.c (direct_output_for_insert): Avoid direct output when
10105 inserting a space with word wrap on.
10106
10107 * indent.c (compute_motion): Obey integer values of
10108 truncate-partial-width-windows.
10109
10110 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10111 replacing truncate_partial_width_windows.
10112 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10113 truncate only if the window width is below that integer.
10114 (start_display, resize_mini_window, produce_stretch_glyph)
10115 (display_string, move_it_in_display_line_to): Use line_wrap.
10116 (back_to_previous_visible_line_start, reseat_1): Reset
10117 string_from_display_prop_p.
10118 (display_line): Extend default face to end of line when wrapping.
10119
101202008-06-24 Kim F. Storm <storm@cua.dk>
10121
10122 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10123 to wrap continued lines at word boundaries.
10124
101252008-06-24 Jason Rumney <jasonr@gnu.org>
10126
10127 * font.c (Ffont_face_attributes): Multiply pixel size before point
10128 conversion to avoid multiplying rounding error.
10129
101302008-06-23 Jason Rumney <jasonr@gnu.org>
10131
10132 * w32term.c (x_draw_glyph_string_background)
10133 (x_draw_glyph_string): Remove old bdf font code.
10134
10135 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10136
101372008-06-22 Kenichi Handa <handa@m17n.org>
10138
10139 * font.c (font_find_for_lface): Try the adstyle specified in
10140 the property of LFACE_FONT of LFACE (if any).
10141
101422008-06-21 Seiji Zenitani <zenitani@mac.com>
10143 Ryo Yoshitake <ryo@shiftmode.net>
10144
10145 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10146
101472008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10148
10149 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10150 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10151 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10152 (witness-emacs): Remove.
10153 (lisp, shortlisp): Move loaddefs.el earlier.
10154 (mostlyclean): Forget about witness-emacs.
10155
101562008-06-22 Glenn Morris <rgm@gnu.org>
10157
10158 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10159 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10160
101612008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10162
10163 * Makefile.in (PRECOMP): Remove.
10164 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10165 (witness-emacs): Run `compile-first'.
10166 (.el.elc): Use the new compile-onefile target.
10167
101682008-06-21 Kenichi Handa <handa@m17n.org>
10169
10170 * xftfont.c (xftfont_open): Handle QCembolden only when
10171 FC_EMBOLDEN is defined.
10172
101732008-06-21 Andreas Schwab <schwab@suse.de>
10174
10175 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10176 (.el.elc): Likewise.
10177
101782008-06-21 Miles Bader <miles@gnu.org>
10179
10180 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10181 build dir, not the lisp source dir.
10182
101832008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10184
10185 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10186 (bootstrapclean): Remove.
10187 (.el.elc): New rule.
10188 (PRECOMP): New var.
10189 (../lisp/subdirs.el): Remove.
10190 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10191 (witness-emacs): New target.
10192 (mostlyclean): Remove witness-emacs as well.
10193 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10194 Add witness-emacs dependency.
10195
101962008-06-20 Chong Yidong <cyd@stupidchicken.com>
10197
10198 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10199 defined by the font.
10200
102012008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10204 (bootstrap-clean): New target that keeps TAGS around.
10205 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10206 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10207
102082008-06-20 Jason Rumney <jasonr@gnu.org>
10209
10210 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10211 Remove obsolete font code.
10212
10213 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10214 to determine language support.
10215
102162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10217
10218 * sysdep.c (cfsetspeed): New fun extracted from the code.
10219 (cfmakeraw): Move before first use.
10220
102212008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10222
10223 * sysdep.c (cfmakeraw): Provide fallback implementation.
10224 (serial_configure): Provide fallback implementation of cfsetspeed.
10225
102262008-06-20 Kenichi Handa <handa@m17n.org>
10227
10228 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10229 the pattern.
10230
10231 * fontset.c (fontset_from_font): Copy font_spec before changing
10232 the elements.
10233
10234 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10235
102362008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10237
10238 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10239 for explicit `font' parameters.
10240
10241 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10242
102432008-06-19 Kenichi Handa <handa@m17n.org>
10244
10245 * frame.c: Include <ctype.h>.
10246 (x_set_font_backend): Allow spacing characters in the X resource
10247 for FontBackend.
10248
102492008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 * w32fns.c, xfns.c (Qfont_param): New var.
10252 (syms_of_w32fns): Initialize it.
10253 (x_default_font_parameter): Record explicit `font' into
10254 `font-parameter'.
10255
102562008-06-18 Kenichi Handa <handa@m17n.org>
10257
10258 * font.c (font_parse_xlfd): Fix previous change.
10259 (font_parse_fcname): Don't use :fc-unknown-spec.
10260 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10261 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10262 (font_add_log): Prepend the driver name to the resulting fonts.
10263
10264 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10265 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10266 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10267
10268 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10269 (QCembolden): New variables.
10270 (syms_of_xftfont): DEFSYM them.
10271 (xftfont_open): Call XftFontMatch. Don't trust the result of
10272 XftTextExtents8 if the pixel_size is less than 5.
10273
102742008-06-18 Andreas Schwab <schwab@suse.de>
10275
10276 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10277 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10278
102792008-06-18 Jason Rumney <jasonr@gnu.org>
10280
10281 * w32font.c (w32font_list, w32font_match): Add logging.
10282
10283 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10284
102852008-06-17 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * font.c (font_parse_fcname): Store divider characters for
10288 unknown-spec list. For known key symbols, intern using correct
10289 symbol name.
10290
102912008-06-17 Kenichi Handa <handa@m17n.org>
10292
10293 * xfaces.c (realize_default_face): If the frame is not on window
10294 system, set the fontset of face to nil.
10295
102962008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10297
10298 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10299
103002008-06-16 Juanma Barranquero <lekktu@gmail.com>
10301
10302 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10303 (build_font_name_from_vector): Delete externs.
10304
10305 * xfaces.c (struct font_name): Don't declare.
10306
103072008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10308
10309 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10310
103112008-06-16 Chong Yidong <cyd@stupidchicken.com>
10312
10313 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10314
103152008-06-16 Juanma Barranquero <lekktu@gmail.com>
10316
10317 * font.c (Ffont_spec): Fix usage in docstring.
10318 (Ffont_face_attributes): Doc fix.
10319
103202008-06-16 Andreas Schwab <schwab@suse.de>
10321
10322 * font.c (Ffont_face_attributes): Fix definition.
10323
103242008-06-16 Jason Rumney <jasonr@gnu.org>
10325
10326 * font.h (font_style_symbolic_from_value): Remove.
10327
10328 * font.c (font_style_symbolic_from_value): Remove.
10329 (font_style_symbolic): Revert to pre 2008-06-13 version.
10330
10331 * w32font.c (w32_to_fc_weight): New function.
10332 (w32font_full_name, logfont_to_fcname): Use it.
10333
103342008-06-16 Kenichi Handa <handa@m17n.org>
10335
10336 * font.c (font_check_object): Delete it.
10337 (font_clear_cache): Check if a font-object is alive.
10338 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10339 font-object to nil.
10340 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10341 (font_at): Don't call font_check_object.
10342 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10343
103442008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10345
10346 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10347
103482008-06-16 Chong Yidong <cyd@stupidchicken.com>
10349
10350 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10351
103522008-06-15 Chong Yidong <cyd@stupidchicken.com>
10353
10354 * font.c (font_parse_fcname): Only one decimal point.
10355 (font_unparse_fcname): Handle data in family and foundry indices
10356 as symbols, not strings.
10357 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10358
10359 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10360
10361 * font.h (font_unparse_gtkname): Add prototype.
10362
103632008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10364
10365 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10366
103672008-06-15 Andreas Schwab <schwab@suse.de>
10368
10369 * font.c (font_update_drivers): Fix crash when no drivers match.
10370
103712008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10372
10373 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10374 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10375
103762008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10377
10378 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10379
103802008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * process.c (Fserial_process_configure, Fprocess_send_eof):
10383 Use EQ to compare Lisp_Objects.
10384
103852008-06-13 Jason Rumney <jasonr@gnu.org>
10386
10387 * w32fns.c (Fw32_select_font): Remove old font API function.
10388
10389 * w32font.c (logfont_to_fcname): New function.
10390 (Fx_select_font): New font dialog function compatible with
10391 GTK/fontconfig version.
10392
10393 * font.c (font_style_symbolic_from_value): New function.
10394 (font_style_symbolic): Use it.
10395
10396 * font.h (font_style_symbolic_from_value): Declare new function.
10397
103982008-06-13 Juanma Barranquero <lekktu@gmail.com>
10399
10400 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10401 <font-width-table>: Fix typos in docstrings.
10402
104032008-06-13 Daniel Engeler <engeler@gmail.com>
10404
10405 These changes add serial port access.
10406 * process.c: Add HAVE_SERIAL.
10407 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10408 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10409 (list_processes_1, select_wrapper, Fstop_process)
10410 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10411 (status_notify): Modify to handle serial processes.
10412 [HAVE_SERIAL] (Fserial_process_configure)
10413 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10414 New functions.
10415 * process.h (struct Lisp_Process): Add `type'.
10416 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10417 New functions.
10418 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10419 serial ports.
b71ac3dd 10420 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10421 * w32.h: Add FILE_SERIAL.
10422 (struct _child_process): Add ovl_read, ovl_write.
10423
104242008-06-13 Kenichi Handa <handa@m17n.org>
10425
10426 * dispextern.h (enum lface_attribute_index): New member
10427 LFACE_FOUNDRY_INDEX.
10428
10429 * font.c (font_score): Delete arg alternate_families. Check only
10430 weight, slant, width, and size. Ignore the difference of alias
10431 style symbols.
10432 (font_sort_entites): Adjust for the above change. Reflect the
10433 order of font-driver to scores.
10434 (font_list_entities): Don't check alternate_familes here.
10435 (font_clear_prop): Handle foundry.
10436 (font_update_lface): Don't parse "foundry-family" form here.
10437 Handle FONT_FOUNDRY_INDEX.
10438 (font_find_for_lface): Likewise. Handle alternate families here.
10439 If registry is nil, try iso8859-1 and ascii-0.
10440 (font_open_for_lface): Pay attention to size in ENTITY.
10441 (font_open_by_name): Simplify by calling font_load_for_lface.
10442 (free_font_driver_list): Delete it.
10443 (font_update_drivers): Preserve the order of backends.
10444 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10445 of font_score and font_sort_entites.
10446 (font_update_sort_order): Likewise.
10447
10448 * xfaces.c (LFACE_FOUNDRY): New macro.
10449 (check_lface_attrs): Check foundry.
10450 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10451 (merge_face_vectors): Check foundry.
10452 (merge_face_ref): Likewise.
10453 (Finternal_set_lisp_face_attribute): Likewise.
10454 (x_update_menu_appearance): Likewise.
10455 (Finternal_get_lisp_face_attribute): Likewise.
10456 (lface_hash): Likewise.
10457 (lface_same_font_attributes_p): Likewise.
10458 (x_supports_face_attributes_p): Likewise.
10459 (tty_supports_face_attributes_p): Likewise.
10460 (Finternal_set_alternative_font_family_alist): Intern strings.
10461 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10462 (realize_default_face): Set LFACE_FOUNDRY (lface).
10463
10464 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10465 font-driver at first.
10466
10467 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10468
104692008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10470
10471 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10472
104732008-06-12 Jim Meyering <meyering@redhat.com>
10474
10475 Make unexec_free handle NULL the same way free does.
10476 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10477
104782008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10479
10480 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10481 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10482 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10483 (WEAK_ALIAS): Simplify.
10484 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10485 when searching a unibyte buffer.
10486
104872008-06-12 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10490
104912008-06-12 Juanma Barranquero <lekktu@gmail.com>
10492
10493 * w32font.c: Include ctype.h.
10494
104952008-06-11 Jason Rumney <jasonr@gnu.org>
10496
10497 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10498 misreported as space.
10499 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10500 as aliases for registry iso10646-1.
10501
105022008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10503
10504 * buffer.c (clone_per_buffer_values): Skip `name'.
10505
105062008-06-11 Chong Yidong <cyd@stupidchicken.com>
10507
10508 * font.c (font_parse_fcname): Fix last change; accept decimal
10509 points in font size.
10510
105112008-06-10 Jason Rumney <jasonr@gnu.org>
10512
10513 * w32uniscribe.c (add_opentype_font_name_to_list):
10514 Skip non unicode fonts.
10515
105162008-06-10 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * xfns.c (Fx_font_dialog): New function.
10519
10520 * gtkutil.c (xg_dialog_response_cb): Rename from
10521 xg_file_response_callback.
10522 (pop_down_dialog): Rename from pop_down_file_dialog.
10523 (xg_get_file_name): Callers changed.
10524 (xg_get_font_name): New function.
10525
10526 * gtkutil.h (xg_get_font_name): Insert prototype.
10527
105282008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10529
10530 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10531 x_underline_minimum_display_offset.
10532 (syms_of_xdisp): Declare it here rather than in xterm.c.
10533 * dispextern.h (underline_minimum_offset): Declare it.
10534 * w32term.c (x_draw_glyph_string): Use it.
10535 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10536 (syms_of_xterm): Don't declare it any more.
10537 (x_draw_glyph_string): Adjust to the new name.
10538
8719abec 105392008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10540
10541 * xterm.c (x_underline_minimum_display_offset): New var.
10542 (x_draw_glyph_string): Use it.
10543 (syms_of_xterm): Declare it.
10544
105452008-06-10 Chong Yidong <cyd@stupidchicken.com>
10546
10547 * font.c (font_parse_fcname): Accept GTK-style font names too.
10548
105492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10550
10551 * dired.c (file_name_completion): Don't return t if the match is exact
10552 but with different capitalization.
10553 * minibuf.c (Ftry_completion): Simplify.
10554
10555 * window.c (Vwindow_point_insertion_type): New var.
10556 (set_window_buffer): Use it.
10557 (syms_of_window): Init and export it to Lisp.
10558
105592008-06-10 Kenichi Handa <handa@m17n.org>
10560
10561 * font.h (font_intern_prop): Prototype adjusted.
10562
10563 * font.c (font_intern_prop): New arg force_symbol.
10564 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10565 Adjust for the change of font_intern_prop.
10566
10567 * ftfont.c (ftfont_pattern_entity):
10568 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10569 (w32_registry):
10570 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10571 the change of font_intern_prop.
10572
105732008-06-09 Juanma Barranquero <lekktu@gmail.com>
10574
10575 * w32menu.c (digest_single_submenu): Declare extern.
10576
105772008-06-09 Jason Rumney <jasonr@gnu.org>
10578
10579 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10580
10581 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10582 (parse_single_submenu): Remove.
10583 (digest_single_submenu): Remove.
10584 (syms_of_w32menu): Don't initialise variables that have moved
10585 to menu.c.
10586 (set_frame_menubar): Sync with version in xmenu.c.
10587 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10588
10589 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10590 Make static again.
10591
105922008-06-09 Jason Rumney <jasonr@gnu.org>
10593
10594 Changes to w32 files related to the move of common menu code
10595 to menu.c on 2008-06-08 by Chong Yidong.
10596
10597 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10598 defs to w32gui.h.
10599 (single_keymap_panes, push_menu_item, push_menu_pane):
10600 Make globally visible.
10601
10602 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10603 (local_free, malloc_widget_value, free_widget_value)
10604 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10605 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10606 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10607 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10608 (menu_items, menu_items_allocated, menu_items_used)
10609 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10610 (init_menu_items, finish_menu_items, discard_menu_items)
10611 (grow_menu_items, push_submenu_start, push_submenu_end)
10612 (push_left_right_boundary, push_menu_pane, push_menu_item)
10613 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10614 (free_menubar_widget_tree_value, parse_single_submenu)
10615 (update_submenu_strings): Remove functions.
10616 (xmalloc_widget_value): Remove and declare extern.
10617
10618 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10619 (OBJ1): Build it.
10620
10621 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10622 (local_heap, local_alloc, local_free, malloc_widget_value)
10623 (free_widget_value): Define here.
10624
106252008-06-09 Kenichi Handa <handa@m17n.org>
10626
10627 * font.h (Qascii_0): Extern it.
10628
10629 * font.c (Qascii_0): New variable.
10630 (syms_of_font): DEFSYM it.
10631 (font_open_by_name): If the registry "iso8859-1" fails, try also
10632 "ascii-0".
10633
10634 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10635
106362008-06-08 Kenichi Handa <handa@m17n.org>
10637
10638 * .gdbinit (xfont): New command.
10639
106402008-06-08 Andreas Schwab <schwab@suse.de>
10641
10642 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10643 * Makefile.in (menu.o): Update dependencies.
10644
10645 * Makefile.in (obj): Always add menu.o.
10646 * emacs.c (main): Always call syms_of_menu.
10647 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10648
106492008-06-08 Chong Yidong <cyd@stupidchicken.com>
10650
10651 * Makefile.in: Compile menu.c.
10652
10653 * lisp.h: Declare syms_of_menu.
10654
10655 * emacs.c (main): Call syms_of_menu.
10656
10657 * keyboard.h: Relocate platform-independent menu definitions from
10658 xmenu.c.
10659
10660 * menu.c: New file. Relocate platform-independent menu
10661 definitions from xmenu.c. Suggested by Adrian Robert.
10662
10663 * xmenu.c: Remove platform-independent menu definitions.
10664 (menu_items menu_items_inuse, menu_items_allocated)
10665 (menu_items_used, menu_items_n_panes)
10666 (menu_items_submenu_depth): Move to keyboard.h.
10667 (init_menu_items, finish_menu_items, unuse_menu_items)
10668 (discard_menu_items, restore_menu_items, save_menu_items)
10669 (grow_menu_items, push_submenu_start, push_submenu_end)
10670 (push_left_right_boundary, push_menu_pane, push_menu_item)
10671 (keymap_panes, single_keymap_panes, single_menu_item)
10672 (list_of_panes, list_of_items, find_and_call_menu_selection)
10673 (xmalloc_widget_value, free_menubar_widget_value_tree)
10674 (parse_single_submenu, digest_single_submenu)
10675 (update_submenu_strings): Move to menu.c.
10676
106772008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10678
10679 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10680
106812008-06-06 Miles Bader <miles@gnu.org>
10682
10683 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10684 face, not frame default.
10685
106862008-06-05 Martin Rudalics <rudalics@gmx.at>
10687
10688 * window.c (pop_up_windows, pop_up_frames)
10689 (display_buffer_reuse_frames, Vpop_up_frame_function)
10690 (Vdisplay_buffer_function, Veven_window_heights)
10691 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10692 (Vspecial_display_function, Vsame_window_buffer_names)
10693 (Vsame_window_regexps, split_height_threshold)
10694 (Vsplit_window_preferred_function): Move those vars to window.el.
10695 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10696 (Fdisplay_buffer): Move those functions to window.el.
10697 (syms_of_window): Remove corresponding declarations.
10698 (display_buffer): New function.
10699 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10700 * dispnew.c (Flast_nonminibuf_frame): New function.
10701 * buffer.c (Fpop_to_buffer): Move to window.el.
10702
107032008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10704
10705 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10706
107072008-06-05 Kenichi Handa <handa@m17n.org>
10708
10709 * coding.c (detect_coding): Fix previous change.
10710 (detect_coding_system): Likewise.
10711
107122008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10715
10716 * keymap.c (Vminibuffer_local_filename_must_match_map):
10717 Rename from Vminibuffer_local_must_match_filename_map.
10718 (syms_of_keymap):
10719 * minibuf.c (Fcompleting_read): Adjust accordingly.
10720 * commands.h: Rename declaration as well.
10721
107222008-06-05 Kenichi Handa <handa@m17n.org>
10723
10724 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10725 family name.
10726 (Ffont_put): Likewise.
10727
10728 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10729 current font-spec.
10730
10731 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10732 is unspecified.
10733
10734 * xfaces.c (realize_x_face): If the font-related face attributes
10735 are the same as those of default face, realize a new fontset from
10736 default->fontset.
10737 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10738
107392008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10740
10741 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10742 (move_it_in_display_line): New wrapper.
10743
10744 * window.c (window_scroll_pixel_based_preserve_x)
10745 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10746 (window_scroll_pixel_based, window_scroll_line_based):
10747 Use them to preserve column positions.
10748 (syms_of_window): Initialize them.
10749
10750 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10751 (HPOS . VPOS) pair.
10752
10753 * dispextern.h (move_it_in_display_line): Declare.
10754
107552008-06-05 Juanma Barranquero <lekktu@gmail.com>
10756
10757 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10758 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10759 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10760
107612008-06-04 Juanma Barranquero <lekktu@gmail.com>
10762
10763 * window.c (Fset_window_parameter): Doc fix.
10764 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10765
107662008-06-04 Joakim Verona <joakim@verona.se>
10767
10768 * window.h (struct window): Add new member window_parameters.
10769
10770 * window.c (Fwindow_parameters, Fwindow_parameter)
10771 (Fset_window_parameter): New defuns.
10772 (syms_of_window): Defsubr the new defuns.
10773 (make_window): Initialize window_parameters to nil.
10774
107752008-06-04 John Paul Wallington <jpw@pobox.com>
10776
10777 * eval.c (Fdefmacro): Doc fix.
10778
107792008-06-04 Kenichi Handa <handa@m17n.org>
10780
10781 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10782 Be sure to call setup_coding_system when we find a proper coding system.
10783 (detect_coding_system): Fix handling of coding->head_ascii.
10784
107852008-06-03 Andreas Schwab <schwab@suse.de>
10786
10787 * font.c (font_prop_validate_spacing): Fix last change.
10788
107892008-06-03 Kenichi Handa <handa@m17n.org>
10790
10791 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10792 (font_parse_fcname): Fix handling of unknown key.
10793
10794 * xfont.c (xfont_list): Try an alias.
10795
10796 * charset.c (char_charset): Return NULL if the arg charset_list is
10797 specified and C doesn't belong to any of them.
10798
107992008-06-02 Chip Coldwell <coldwell@redhat.com>
10800
10801 * font.c (font_pixel_size): Don't take cdr of an integer.
10802
108032008-06-02 Jim Meyering <meyering@redhat.com>
10804
10805 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10806 * alloc.c (xfree): Return right away for a NULL arg.
10807 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10808 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10809 * mac.c (create_apple_event_from_event_ref): Likewise.
10810 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10811 Likewise.
10812 * doprnt.c (doprnt1): Likewise.
10813 * frame.c (frame): Likewise.
10814 * keyboard.c (wipe_kboard): Likewise.
10815 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10816 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10817 * term.c (tty_default_color_capabilities, maybe_fatal)
10818 (delete_tty): Likewise.
10819 * w16select.c (string): Likewise.
10820 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10821 * w32bdf.c (w32_free_bdf_font): Likewise.
10822 * w32fns.c (w32_unload_font): Likewise.
10823 * w32font.c (w32font_close): Likewise.
10824 * window.c (size_window): Likewise.
10825 * xselect.c (receive_incremental_selection): Likewise.
10826 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10827 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10828 * w32.c (stat): Likewise.
10829
10830 Remove useless if-before-free tests.
10831 * editfns.c (Fset_time_zone_rule): Likewise.
10832 * lread.c (nosuffix): Likewise.
10833 * ralloc.c (get_bloc): Likewise.
10834 * regex.c (reg_free): Likewise.
10835 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10836 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10837 * xsmfns.c (smc_save_yourself_CB): Likewise.
10838
108392008-06-02 Kenichi Handa <handa@m17n.org>
10840
10841 * font.c (font_find_for_lface): Handle float font size.
10842 (font_open_for_lface): Likewise.
10843
10844 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10845 comparing the properties.
10846
108472008-06-01 Jason Rumney <jasonr@gnu.org>
10848
10849 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10850 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10851 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10852 Don't add empty script list.
10853 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10854
108552008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10856
10857 * Makefile.in (dot, dotdot): Remove, update users.
10858 ".." has been used elsewhere in the file for a long time.
10859 (LIBXT_STATIC): Remove conditional based on unused variable.
10860
108612008-06-01 Miles Bader <miles@gnu.org>
10862
10863 * xfaces.c (Vface_remapping_alist): New variable.
10864 (syms_of_xfaces): Initialize it.
10865 (enum named_merge_point_kind): New type.
10866 (struct named_merge_point): Add `named_merge_point_kind' field.
10867 (push_named_merge_point): Make cycle detection respect different
10868 named-merge-point kinds.
10869 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10870 Remove face-name alias resolution.
10871 (lface_from_face_name): New definition using
10872 `lface_from_face_name_no_resolve'.
10873 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10874 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10875 (get_lface_attributes): New definition that layers face-remapping on
10876 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10877 (lookup_basic_face): New function.
10878 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10879 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10880 `get_lface_attributes'.
10881 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10882 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10883 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10884
10885 * xdisp.c (init_iterator): Pass base_face_id through
10886 `lookup_basic_face' when we actually use it as a face-id.
10887 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10888 DEFAULT_FACE_ID.
10889
10890 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10891 lookup the initial face-id.
10892
10893 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10894
108952008-06-01 Juanma Barranquero <lekktu@gmail.com>
10896
10897 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10898 (Fremove_text_properties): Fix typos in docstrings.
10899
109002008-05-31 Kenichi Handa <handa@m17n.org>
10901
10902 * font.c (font_list_entities): Fix the car part of data to be
10903 stored in the cache.
10904
10905 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10906
109072008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10908
10909 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10910 Add a `test' argument so another predicate than `equal' can be used.
10911 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10912 (map_char_table): Remove unused vars `c' and `i'.
10913 * lisp.h (Foptimize_char_table): Adjust declaration.
10914 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10915
109162008-05-30 Kenichi Handa <handa@m17n.org>
10917
10918 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10919 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10920 defined.
10921
109222008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10923
10924 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10925 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10926 frame-local settings for the same variable.
10927
109282008-05-30 Kenichi Handa <handa@m17n.org>
10929
10930 * fontset.c (Ffont_info): Move to font.c.
10931 (syms_of_fontset): Delete defsubr of Sfont_info.
10932
10933 * font.c (font_style_to_value, font_score): Delete casting of the
10934 args to xstcasecmp.
10935 (register_font_driver): Increment num_font_drivers only when
10936 registering the driver globally.
10937 (Ffont_info): Move from fontset.c. Handle a font object too.
10938 (syms_of_font): Defsubr Sfont_info.
10939
109402008-05-29 Kenichi Handa <handa@m17n.org>
10941
10942 * coding.h (enum define_coding_utf8_arg_index): New enum.
10943 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10944 coding_attr_utf_bom.
10945 (enum utf_bom_type): Rename from utf_16_bom_type.
10946 (struct utf_16_spec): Adjust for the above change.
10947 (struct coding_system): Add utf_8_bom in `spec' union.
10948
10949 * coding.c (CODING_UTF_8_BOM): New macro.
10950 (enum coding_category): Delete coding_category_utf_8, add
10951 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10952 coding_category_utf_8_sig.
10953 (CATEGORY_MASK_UTF_8): Delete it.
10954 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10955 (CATEGORY_MASK_UTF_8_SIG): New macros.
10956 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10957 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10958 CATEGORY_MASK_UTF_8_SIG.
10959 (CATEGORY_MASK_UTF_8): New macro.
10960 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10961 (detect_coding_utf_8): Check BOM.
10962 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10963 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10964 (encode_coding_utf_16): Likewise.
10965 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10966 (detect_coding, detect_coding_system): Handle utf-8-auto.
10967 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10968 (syms_of_coding): Fix setting up of Vcoding_category_table.
10969
109702008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10971
10972 * process.c (Faccept_process_output): If `millisec' is non-nil,
10973 `seconds' default to 0.
10974 (wait_reading_process_output): Also return non-nil if we read output
10975 from a non-running process.
10976
109772008-05-29 Jason Rumney <jasonr@gnu.org>
10978
10979 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10980 `raster' specified.
10981 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10982 in the uniscribe backend, but disallow any font that has no
10983 unicode subrange support.
10984
109852008-05-29 Juanma Barranquero <lekktu@gmail.com>
10986
10987 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10988 Fix typos in docstrings.
10989
109902008-05-29 Kenichi Handa <handa@m17n.org>
10991
10992 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10993 (Fx_family_fonts): Set frame correctly.
10994
109952008-05-28 Jason Rumney <jasonr@gnu.org>
10996
10997 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10998
109992008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11000
11001 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11002 calling build_annotations.
11003
110042008-05-28 Juanma Barranquero <lekktu@gmail.com>
11005
11006 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11007 (Fencode_coding_string):
11008 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11009 <latin-extra-code-table>: Fix typos in docstrings.
11010 (syms_of_coding) <coding-system-alist>: Doc fix.
11011 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11012
110132008-05-28 Kenichi Handa <handa@m17n.org>
11014
11015 * fontset.c (Ffont_info): Don't call font_close_object.
11016
11017 * font.c (font_parse_family_registry): Use Ffont_put to validate
11018 foundry and family.
11019 (font_delete_unmatched): Don't check spacing.
11020 (font_list_entities): Add spacing to the spec to list fonts.
11021
11022 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11023 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11024
11025 * coding.c (encode_coding_raw_text): Fix previous change.
11026 (encode_coding_object): When the dst_object is a buffer and is
11027 different from src_object, move gap to PT.
11028
110292008-05-27 Chong Yidong <cyd@stupidchicken.com>
11030
11031 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11032
110332008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11036 all branches. Compute it differently.
11037
11038 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11039
110402008-05-27 Juanma Barranquero <lekktu@gmail.com>
11041
11042 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11043 into "else if () ... else ...".
11044
110452008-05-27 Jason Rumney <jasonr@gnu.org>
11046
11047 * w32font.c (w32font_open_internal): Determine if glyph indices
11048 are likely to work here.
11049
110502008-05-27 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11053 draw overlap glyphs with appropriate highlighting.
11054
110552008-05-27 Kenichi Handa <handa@m17n.org>
11056
11057 * xfont.c (xfont_open): Fix calculation of font->average_width.
11058
110592008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11060
11061 * casefiddle.c (casify_object): Try to guess better whether the
11062 argument is a byte or a char.
11063
110642008-05-26 Andreas Schwab <schwab@suse.de>
11065
11066 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11067 Always send multiples of format size.
11068
11069 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11070
110712008-05-26 Jason Rumney <jasonr@gnu.org>
11072
11073 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11074 (compute_metrics): Don't set failure if we just cleared the cache.
11075 (w32_weight_table): Remove unused variable.
11076 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11077 backwards compatibility.
11078
110792008-05-25 Kenichi Handa <handa@m17n.org>
11080
11081 * w32term.c (x_draw_glyph_string):
11082 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11083
11084 * xfaces.c: Delete unused function prototypes.
11085 (xstrlwr, font_frame): Delete them.
11086 (clear_face_cache): Delete unused variable.
11087
11088 * xftfont.c (xftfont_open): Delete unused variable.
11089 If underline_thickness is not 1, adjust underline_position.
11090
11091 * ftxfont.c (ftxfont_open): Delete unused variable.
11092
11093 * fontset.c (face_for_char): Optimize for the case of no charset
11094 property.
11095
11096 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11097 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11098 (otf_open, font_otf_capability, generate_otf_features)
11099 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11100 Comment out by surrounding "#if 0" and "#endif" for the moment.
11101 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11102 (syms_of_font): Codes for accessing above commented out.
11103
111042008-05-24 Eli Zaretskii <eliz@gnu.org>
11105
11106 * w32proc.c: Include dispextern.h.
11107
11108 * w32.c: Include dispextern.h.
11109
111102008-05-23 Juanma Barranquero <lekktu@gmail.com>
11111
11112 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11113 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11114 Fix typos in docstrings.
11115
111162008-05-23 Jason Rumney <jasonr@gnu.org>
11117
11118 * xsmfns.c: Remove includes that are already included by config.h.
11119
111202008-05-23 Kenichi Handa <handa@m17n.org>
11121
11122 * charset.c (Qemacs, charset_emacs): New variables.
11123 (char_charset): Fix for non-Unicode characters.
11124 (syms_of_charset): Define charset_emacs.
11125
11126 * w32term.c (x_draw_glyph_string): Be sure to update
11127 s->underline_thickness and s->underline_position. Be sure to draw
11128 underline within the current line area.
11129
11130 * xterm.c (x_draw_glyph_string): Be sure to update
11131 s->underline_thickness and s->underline_position. Be sure to draw
11132 underline within the current line area.
11133
11134 * fontset.c: Delete unused variables and add casting for char *
11135 throughout the file.
11136 (fontset_font): Try the fallback fonts of the current fontset
11137 before consulting the default fontset.
11138
11139 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11140
11141 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11142
111432008-05-22 Jason Rumney <jasonr@gnu.org>
11144
11145 * font.c: Don't include strings.h.
11146
11147 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11148
11149 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11150 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11151 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11152 to call xstrcasecmp.
11153
11154 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11155
11156 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11157
11158 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11159
11160 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11161
111622008-05-22 Kenichi Handa <handa@m17n.org>
11163
11164 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11165
11166 * font.c (font_prop_validate_style): Adjust for the format
11167 change of font_style_table.
11168
11169 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11170 two args.
11171
11172 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11173 two args.
11174
111752008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11176
11177 * minibuf.c (keys_of_minibuf): Delete.
11178 * lisp.h (keys_of_minibuf): Delete.
11179 * emacs.c (main): Don't call keys_of_minibuf.
11180
111812008-05-22 Kenichi Handa <handa@m17n.org>
11182
11183 * ftfont.c (ftfont_resolve_generic_family): Rename from
11184 ftfont_list_generic_family. Return a single family for each
11185 generic family.
11186 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11187 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11188 Call font_add_log.
11189 (ftfont_match): Call font_add_log.
11190
11191 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11192 (FONT_DEBUG): Define it.
11193 (font_add_log): Extern it.
11194 (font_assert): Rename from xassert.
11195
11196 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11197 (xfont_list_family): Call font_add_log.
11198 (xfont_match): Likewise.
11199 (memq_no_quit): Delete.
11200
11201 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11202 call of Ffont_xlfd_name.
11203
11204 * xfaces.c (struct table_entry, slant_table, weight_table)
11205 (swidth_table): Move to font.c.
11206
11207 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11208 xassert are changed to font_assert. Delete many unused variables.
11209 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11210 New variables.
11211 (struct table_entry): Move from xfaces.c and modified.
11212 (weight_table, slant_table, width_table): Move from xfaces.c and
11213 contents adjusted for the change of struct table_entry.
11214 (font_style_to_value, font_style_symbolic): Adjust for the
11215 format change of font_style_table.
11216 (font_parse_family_registry): Don't overwrite existing foundry and
11217 family of font_spec.
11218 (font_score): Fix calculation of diff for sizes.
11219 (font_sort_entites): Call font_add_log.
11220 (font_delete_unmatched): Return a newly created list.
11221 (font_list_entities): Fix previous change. Call font_add_log.
11222 (font_matching_entity, font_open_entity, font_close_entity):
11223 Call font_add_log.
11224 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11225 (Finternal_set_font_style_table): Delete.
11226 (BUILD_STYLE_TABLE): New macro.
11227 (build_style_table): New function.
11228 (Vfont_log, font_log_env_checked): New variables.
11229 (font_add_log): New function.
11230 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11231 Declare Lisp variables "font-weight-table", "font-slant-table",
11232 "font-width-table", and "font-log". Initialize font_style_table.
11233
112342008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11235
11236 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11237
112382008-05-21 Seiji Zenitani <zenitani@mac.com>
11239 Ryo Yoshitake <ryo@shiftmode.net>
11240
11241 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11242 (Vframe_alpha_lower_limit): New variable.
11243 (x_set_alpha): New function.
11244
11245 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11246
11247 * xfns.c (x-create-frame, Qalpha):
11248 Initialize the frame parameter `alpha'.
11249 * xterm.c (OPAQUE, OPACITY): New.
11250 (x_set_frame_alpha): New function.
11251 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11252
11253 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11254 * w32fns.c (w32_frame_parm_handlers): Likewise.
11255
112562008-05-20 Jason Rumney <jasonr@gnu.org>
11257
11258 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11259 truetype fonts to opentype list.
11260
112612008-05-20 Juanma Barranquero <lekktu@gmail.com>
11262
11263 * fontset.c (Ffontset_info): Doc fix.
11264 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11265 <ignore-relative-composition>: Fix typos in docstrings.
11266
11267 * font.c (syms-of-font) <font-encoding-alist>:
11268 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11269 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11270 (Ffont_otf_alternates): Doc fixes.
11271
112722008-05-20 Kenichi Handa <handa@m17n.org>
11273
11274 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11275 font.h through out the file.
11276 (FONT_DRIVERS): Rename from FONTOBJ.
11277 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11278 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11279
11280 * emacs.c (main): Call syms_of_font unconditionally.
11281
11282 * font.h (find_font_encoding): Extern it.
11283
11284 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11285 fontset.c.
194d44e7 11286 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11287 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11288 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11289 only when HAVE_WINDOW_SYSTEM is defined.
11290 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11291 when HAVE_WINDOW_SYSTEM is defined.
11292
11293 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11294 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11295
11296 * xfaces.c: Include font.h unconditionally.
11297 (merge_face_ref, merge_face_vectors)
11298 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11299
113002008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11301
11302 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11303 indirect_variable.
11304 * eval.c (lisp_indirect_variable): New fun.
11305 (Fuser_variable_p): Use it.
11306
113072008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11308
11309 * lisp.h (indirect_variable):
11310 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11311 Use Lisp_Symbol pointers rather than Lisp_Object.
11312 Adjust callers.
11313 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11314 To this end, change calling-convention.
11315
11316 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11317 if some non-hidden buffers are selected by string&pred.
11318
113192008-05-19 Chong Yidong <cyd@stupidchicken.com>
11320
11321 * process.c (wait_reading_process_output): Always check status
11322 when in batch mode.
11323
113242008-05-19 Kenichi Handa <handa@m17n.org>
11325
11326 * font.c (font_list_entities): Fix handling of cache.
11327 (font_matching_entity): Likewise.
11328
11329 * ftfont.c (cs_iso8859_1): Delete.
11330 (ft_face_cache): New variable.
11331 (struct ftfont_info): New member fc_charset_idx.
11332 (ftfont_build_basic_charsets): Delete.
11333 (fc_charset_table): New variable.
11334 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11335 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11336 Callers changed.
11337 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11338 (ftfont_spec_pattern): New argument fc_charset_idx.
11339 Check registry more rigidly. Change callers.
11340 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11341 change of :font-entity property of the font.
11342
11343 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11344 property of the font.
11345
113462008-05-18 Juanma Barranquero <lekktu@gmail.com>
11347
11348 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11349 (Funencodable_char_position, Fcheck_coding_systems_region)
11350 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11351 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11352 (Ffind_operation_coding_system, Fset_coding_system_priority)
11353 (Fcoding_system_eol_type): Doc fixes.
11354
113552008-05-17 Glenn Morris <rgm@gnu.org>
11356
11357 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11358
113592008-05-16 Eli Zaretskii <eliz@gnu.org>
11360
11361 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11362 and st_gid.
11363
11364 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11365 HAVE_WINDOW_SYSTEM is not defined.
11366
11367 * xfaces.c (merge_face_ref, merge_face_vectors)
11368 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11369 HAVE_WINDOW_SYSTEM is defined.
11370 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11371
113722008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11375
113762008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11377
11378 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11379
113802008-05-15 Kenichi Handa <handa@m17n.org>
11381
11382 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11383 preference.
11384
113852008-05-15 Glenn Morris <rgm@gnu.org>
11386
11387 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11388
113892008-05-15 Chong Yidong <cyd@stupidchicken.com>
11390
11391 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11392 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11393
11394 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11395
113962008-05-15 Kenichi Handa <handa@m17n.org>
11397
11398 * ftfont.c (ftfont_list): Downcase family name to check generic
11399 families.
11400
11401 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11402 font-spec for QCfont value.
11403
11404 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11405 buffer. Check the return value of it.
11406
114072008-05-14 Jason Rumney <jasonr@gnu.org>
11408
11409 * w32term.c (w32_get_glyph_overhangs): Remove.
11410 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11411
114122008-05-14 Kenichi Handa <handa@m17n.org>
11413
11414 * font.c (font_prop_validate): Make nil a valid value.
11415 (font_clear_cache): Check if the cached vector of entities is nil
11416 or not.
11417
114182008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11419
11420 * emacs.c (main_thread): Conditionalize on
11421 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11422 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11423
11424 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11425 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11426 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11427
114282008-05-14 Kenichi Handa <handa@m17n.org>
11429
11430 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11431 has no corresponding coding system.
11432
114332008-05-14 Jason Rumney <jasonr@gnu.org>
11434
11435 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11436
11437 * w32font.h (w32font_open_internal): Update declaration.
11438
11439 * w32font.c (w32font_open_internal): Change last argument from
11440 w32font_info struct to font object. Fill in font object from
11441 font_entity. Get Outline metrics if possible. Use them to
11442 calculate underline position and thickness. Use xlfd name as name
11443 property. Don't set codepage.
11444 (w32font_open): Pass font_object to w32font_open_internal. Don't
11445 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11446 (w32font_draw): Use s->font.
11447 (clear_cached_metrics): Don't clear non-existent blocks.
11448
11449 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11450 font was not found.
11451 (x_draw_glyph_string): Use underline position and thickness from font.
11452
11453 * w32uniscribe.c (uniscribe_open): Pass font_object to
11454 w32font_open_internal.
11455
114562008-05-14 Kenichi Handa <handa@m17n.org>
11457
11458 These changes are to delete all legacy font-handling codes, and
11459 make Emacs use only font-backends.
11460
11461 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11462 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11463
11464 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11465
11466 * charset.h (Vcharset_non_preferred_head)
11467 (Vcurrent_iso639_language): Extern them.
11468
11469 * charset.c (Vcharset_non_preferred_head): New variable.
11470 (Vcurrent_iso639_language): New variable.
11471 (syms_of_charset): Declare it as a Lisp variable.
11472 (char_charset): Don't check non preferred charsets. As a last
11473 resort, return charset_unicode.
11474 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11475
11476 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11477 conditionals. Don't check enable_font_backend. Delete all codes
11478 used only when USE_FONT_BACKEND is not defined.
11479
11480 * dispextern.h (struct glyph_string): Change type of `font' to
11481 `struct font *'.
11482 (struct glyph_string): New member underline_position and
11483 underline_thickness.
11484 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11485 (struct face): Change type of `font' to `struct font *'. Remove
11486 members `font_name', `font_info_id'.
11487 (per_char_metric, encode_char): Delete externs.
11488 (calc_pixel_width_or_height): Adjust the prototype.
11489
11490 * emacs.c (enable_font_backend): Delete extern.
11491 (main): Don't set enable_font_backend. Don't check the command
11492 line argument "-disable-font-backend".
11493
11494 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11495 (enum font_property_index): New members FONT_DPI_INDEX,
11496 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11497 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11498 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11499 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11500 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11501 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11502 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11503 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11504 (struct font_spec, struct font_entity): New structs.
11505 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11506 (struct font): Many members from old "struct font_info" moved to
11507 here. Members font and entity deleted.
11508 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11509 the new font-related objects.
11510 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11511 (CHECK_FONT_GET_OBJECT): Likewise.
11512 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11513 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11514 (struct font_driver): New members case_sensitive anc check. Type
11515 of the member list and open changed.
11516 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11517 (font_symbolic_width, font_find_object, font_get_spec)
11518 (font_set_lface_from_name): Delete extern.
11519 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11520
11521 * font.c: Include <strings.h>.
11522 (enable_font_backend): Delete it.
11523 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11524 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11525 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11526 (null_string): Delete it.
11527 (null_vector): Make it static.
11528 (font_family_alist): Delete it.
11529 (Qnormal): Extern it.
11530 (QCextra, QClanguage): Delete it.
11531 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11532 (font_make_spec, font_make_entity, font_make_object)
11533 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11534 the string. Callers changed.
11535 (font_pixel_size): Adjusted for the format change of font-related
11536 objects.
11537 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11538 (font_style_to_value, font_style_symbolic): New function.
11539 (build_font_family_alist): Delete it.
11540 (font_registry_charsets): Use Fassoc_string instead of
11541 assq_no_quit.
11542 (font_prop_validate_symbol): Don't return null_string.
11543 (font_prop_validate_style): Adjusted for the change of
11544 style-related values in a font vector.
11545 (font_property_table): Delete entries for QClanguage and
11546 QCantialias, add entries for QCavgwidth.
11547 (get_font_prop_index): Delete the 2nd argument FROM.
11548 (font_prop_validate): Arguments changed.
11549 (font_put_extra): Adjusted for the change of font-related objects.
11550 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11551 (font_parse_fcname, font_unparse_fcname)
11552 (font_prepare_composition): Likewise.
11553 (font_parse_family_registry): Renamed from font_merge_old_spec.
11554 (otf_open): Delete the 1st arg entity.
11555 (font_otf_capability): Adjusted for the above change.
11556 (font_score): New arg alternate_families. Adjusted for the change
11557 of font-related objects.
11558 (font_sort_entites): New arg best_only.
11559 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11560 Delete them.
11561 (font_match_p): Check alternate families.
11562 (font_find_object): Delete it.
11563 (font_check_object): New function.
11564 (font_clear_cache): Adjusted for the change of font-related objects.
11565 (font_delete_unmatched): New arg.
11566 (font_list_entities): Call font_driver->list with a spec that
11567 doesn't specify style-related properties.
11568 (font_matching_entity): Arguments changed. Caller changed.
11569 (font_open_entity): Adjusted for the change of font-related objects.
11570 (font_close_object, font_has_char, font_encode_char)
11571 (font_get_name, font_get_spec): Likewise.
11572 (font_spec_from_name, font_clear_prop, font_update_lface):
11573 New functions.
11574 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11575 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11576 (font_at): Adjusted for the change of font-related objects.
11577 (font_range): New function.
11578 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11579 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11580 (Fcopy_font_spec, Fmerge_font_spec): New function.
11581 (Ffont_family_list): Renamed from list-families.
11582 (Finternal_set_font_style_table): Arguments changed.
11583 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11584 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11585 change of font-related objects.
11586 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11587
11588 * fontset.h (struct font_info): Delete it. Most members go to
11589 struct font.
11590 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11591 (enum FONT_SPEC_INDEX): Delete it.
11592 (font_info, list_fonts_func, load_font_func, query_font_func)
11593 (set_frame_fontset_func, find_ccl_program_func)
11594 (get_font_repertory_func, new_fontset_from_font_name): Delete
11595 externs.
11596 (fontset_from_font_name): Extern it.
11597 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11598 (FONT_INFO_FROM_FACE): Deleted.
11599 (face_for_font): Adjust prototype.
11600
11601 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11602 conditionals. Don't check enable_font_backend. Delete all codes
11603 used only when USE_FONT_BACKEND is not defined.
11604 (get_font_info_func, list_font_func, load_font_func)
11605 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11606 (get_font_repertory_func): Delete them.
11607 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11608 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11609 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11610 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11611 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11612 (fontset_compare_rfontdef): New function.
11613 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11614 rfont-defs by qsort. Adjusted for the change of font-group vector.
11615 (load_font_get_repertory): Deleted.
11616 (fontset_find_font): Use new macros to ref/set elements of
11617 font-def and rfont-def.
11618 (fontset_font): Fix the timing of remembering that no font for C.
11619 (free_face_fontset): Do nothing if the face has no fontset.
11620 (face_suitable_for_char_p): Use new macros to ref/set elements of
11621 rfont-def.
11622 (face_for_char): Likewise. Call face_for_char with font_object.
11623 (fs_load_font): Delete. Delete #pragma surrounding it.
11624 (fs_query_fontset): Use strcasecmp instead of strcmp.
11625 (generate_ascii_font_name): Adjusted for the format change of
11626 font-spec.
11627 (Fset_fontset_font): Likewise. Use new macros to set elements of
11628 font-def.
11629 (Fnew_fontset): Use font_unparse_xlfd to generate
11630 FONTSET_ASCII (fontset).
11631 (new_fontset_from_font_name): Deleted.
11632 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11633 a fontset is already created for the font. FIx updating of
11634 Vfontset_alias_alist.
11635 (fontset_ascii_font): Deleted.
11636 (Ffont_info): Adjusted for the format change of font-spec.
11637 (Finternal_char_font): Likewise.
11638 (Ffontset_info): Likewise.
11639 (syms_of_fontset): Don't check load_font_func.
11640
11641 * fns.c (internal_equal): Handle PREV_FONT.
11642
11643 * frame.h: Delete USE_FONT_BACKEND conditional.
11644
11645 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11646 conditionals. Don't check enable_font_backend. Delete all codes
11647 used only when USE_FONT_BACKEND is not defined.
11648 (x_set_font): Call x_new_font, not x_new_fontset2.
11649 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11650 already set for the frame.
11651
11652 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11653 a font-entity by font_make_entity. Use font_intern_prop instead
11654 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11655 font property. If a font is scalable, set avgwidth property to 0.
11656 Set font-entity property by font_put_extra.
11657 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11658 (ffont_driver): Adjusted for the change of struct font_driver.
11659 (ftfont_spec_pattern): New function.
11660 (ftfont_list): Return a list, not vector.
11661 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11662 (ftfont_list_family): Don't downcase names.
11663 (ftfont_free_entity): Deleted.
11664 (ftfont_open): Return a font-object. Adjusted for the change of
11665 struct font. Get underline_thickness and underline_position from
11666 font property. Don't update dpyinfo->smallest_font_height and
11667 dpyinfo->smallest_char_width.
11668 (ftfont_close): Don't free `struct font'.
11669 (ftfont_has_char): Adjusted for the format change of font-entity.
11670 (ftfont_encode_char, ftfont_text_extents): Likewise.
11671
11672 * ftxfont.c (ftxfont_list): Return a list, not vector.
11673 (ftxfont_open): Return a font-object. Adjusted for the change of
11674 struct font. Get underline_thickness and underline_position from
11675 font property. Don't update dpyinfo->smallest_font_height and
11676 dpyinfo->smallest_char_width.
11677 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11678 (ftxfont_draw): Adjusted for the change of struct font.
11679
11680 * image.c (image_ascent): Don't include "charset.h". Include
11681 "character.h" and "font.h".
11682
11683 * lisp.h (enum pvec_type): New member PREV_FONT.
11684 (Fassoc_string): EXFUN it.
11685
11686 * print.c: Include font.h.
11687 (print_object): Handle font-related objects.
11688
11689 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11690 conditionals. Don't check enable_font_backend. Delete all codes
11691 used only when USE_FONT_BACKEND is not defined.
11692 (handle_auto_composed_prop): Do nothing if it->f is not on a
11693 window system. Check how many following characters can be
11694 displayed by the same font.
11695 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11696 'struct font *'.
11697 (get_char_face_and_encoding): Assign the whole encoding task to
11698 the `encode-char' method of a font driver.
11699 (fill_composite_glyph_string): Adjusted for the change of `struct
11700 face' and `struct glyph_string'.
11701 (fill_glyph_string): Likewise.
11702 (get_per_char_metric): Arguments changed.
11703 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11704 and `struct glyph_string'.
11705 (produce_stretch_glyph, calc_line_height_property)
11706 (x_produce_glyphs): Likewise.
11707
11708 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11709 conditionals. Don't check enable_font_backend. Delete all codes
11710 used only when USE_FONT_BACKEND is not defined. Use
11711 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11712 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11713 (Qp): Extern them.
11714 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11715 Deleted.
11716 (struct font_name): Deleted.
11717 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11718 (compare_fonts_by_sort_order): New function.
11719 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11720 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11721 Deleted.
11722 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11723 compare_fonts_by_sort_order.
11724 (Fx_font_family_list): Call Ffont_family_list.
11725 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11726 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11727 (face_symbolic_slant, face_symbolic_swidth)
11728 (split_font_name_into_vector, build_font_name_from_vector)
11729 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11730 (font_rescale_ratio, split_font_name, build_font_name)
11731 (free_font_names, sort_fonts, x_face_list_fonts)
11732 (face_font_available_p, sorted_font_list, cmp_font_names)
11733 (font_list_1, concat_font_list, font_list, remove_duplicates):
11734 Deleted.
11735 (Fx_list_fonts): Use Ffont_list.
11736 (LFACE_AVGWIDTH): Deleted.
11737 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11738 by FONTP.
11739 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11740 (set_lface_from_font_name): Delete it.
11741 (set_lface_from_font): Renamed from
11742 set_lface_from_font_and_fontset. Caller changed. Don't set
11743 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11744 for face.
11745 (merge_face_vectors): Copy font-spec if necessary.
11746 Clear properties of the font-spec if necessary.
11747 (merge_face_ref): Clear properties of the font-spec if necessary.
11748 (Finternal_set_lisp_face_attribute): Likewise.
11749 (set_font_frame_param): Use font_load_for_lface to load a
11750 font-object, and call Fmodify_frame_parameters with it.
11751 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11752 font name by Ffont_xlfd_name.
11753 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11754 QCslant, and QCwidth.
11755 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11756 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11757 Compare fonts by EQ.
11758 (lookup_non_ascii_face): Deleted.
11759 (face_for_font): The 2nd argument changed.
11760 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11761 Check atomic font properties by case insensitive.
11762 (realize_non_ascii_face): Set face->overstrike correctly.
11763 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11764 (dump_realized_face): Get font name from
11765 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11766
11767 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11768 conditionals. Don't check enable_font_backend. Delete all codes
11769 used only when USE_FONT_BACKEND is not defined.
11770 (xic_create_xfontset): Original code deleted and renamed from
11771 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11772 (x_make_gc): Don't set GCFont in GCs.
11773 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11774 opened by "fixed".
11775 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11776 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11777 get_font_repertory_func.
11778
11779 * xfont.c: Include <stdlib.h> and "ccl.h".
11780 (struct xfont_info): New structure.
11781 (xfont_query_font): Deleted.
11782 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11783 moved from xterm.c.
11784 (xfont_driver): Adjusted for the change of struct font_driver.
11785 (compare_font_names): New function.
11786 (xfont_list_pattern): Sort font names case insensitively. Make
11787 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11788 (xfont_list): Return a list, not vector.
11789 (xfont_match): If the font doesn't have QCname property, generate
11790 a name from the other font properties.
11791 (xfont_open): Return a font-object. Adjusted for the change of
11792 struct font. Get underline_thickness and underline_position from
11793 font property. Don't update dpyinfo->smallest_font_height and
11794 dpyinfo->smallest_char_width.
11795 (xfont_close): Don't free struct font.
11796 (xfont_prepare_face): Adjusted for the change of struct font.
11797 (xfont_done_face): Deleted.
11798 (xfont_has_char): Adjusted for the change of struct font.
11799 (xfont_encode_char, xfont_draw): Likewise.
11800 (xfont_check): New function.
11801
11802 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11803 callback function.
11804 (xftfont_match): Adjusted for the format change of font-entity.
11805 (xftfont_open): Adjusted for the format change of font-entity and
11806 font-object. Adjusted for the change of struct font. Return a
11807 font-object. Don't update dpyinfo->smallest_font_height and
11808 dpyinfo->smallest_char_width.
11809 (xftfont_close): Block input while calling XftFontClose.
11810 (xftfont_prepare_face): Don't block input while calling
11811 xftfont_get_colors. Adjusted for the change of struct font.
11812 (xftfont_shape): Return value of error case fixed.
11813
11814 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11815
11816 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11817 conditionals.
11818 (FONT_WIDTH): Return (f)->max_width.
11819 (struct x_display_info): Delete member `font'.
11820 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11821 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11822 (struct x_output): Change type of `font' to `struct font *'.
11823
11824 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11825 conditionals. Don't check enable_font_backend. Delete all codes
11826 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11827 (x_per_char_metric, x_encode_char): Deleted.
11828 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11829 (x_compute_glyph_string_overhangs): Adjusted for the change of
11830 `struct face'.
11831 (x_draw_glyph_string_foreground)
11832 (x_draw_composite_glyph_string_foreground): Likewise.
11833 (x_draw_glyph_string): Likewise. Use font->underline_position and
11834 font->underline_thickness.
11835 (x_new_font): Renamed from x_new_fontset2.
11836 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11837 (x_check_font): Call `check' method of a font driver.
11838 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11839 (x_query_font, x_get_font_repertory): Deleted.
11840 (x_find_ccl_program): Renamed and moved to xfont.c.
11841 (x_redisplay_interface): Adjusted for the change of `struct
11842 redisplay_interface'.
11843
11844 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11845 conditionals. Don't check enable_font_backend. Delete all codes
11846 used only when USE_FONT_BACKEND is not defined. Surround non-used
11847 code by "#ifdef OLD_FONT" and "endif".
11848 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11849
11850 * w32font.h (struct w32font_info): New member.
11851 (FONT_COMPAT): New macro.
11852 (w32font_open_internal): Prototype adjusted.
11853
11854 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11855 OLD_FONT" and "endif".
11856
11857 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11858 conditionals. Don't check enable_font_backend. Delete all codes
11859 used only when USE_FONT_BACKEND is not defined.
11860 (w32font_open): Return a font-object. Make a font-object by
11861 font_make_object. Adjusted for the change of struct w32font_info.
11862 (w32font_close): Don't free struct font. Adjusted for the change
11863 of struct w32font_info.
11864 (w32font_encode_char, w32font_text_extents, w32font_draw):
11865 Adjusted for the change of struct w32font_info.
11866 (w32font_draw): Likewise.
11867 (w32font_list_internal): Return a list, not vector.
11868 (w32font_open_internal): Change the 4th arg to font-object.
11869 Adjusted for the change of struct w32font_info and font-object format.
11870 (add_font_name_to_list): Don't downcase names.
11871 (w32_enumfont_pattern_entity): Make a font-entity by
11872 font_make_entity. Adjusted for the format change of font-entity.
11873 Use FONT_SET_STYLE to set a style-related font property. If a
11874 font is scalable, set avgwidth property to 0. Set font-entity
11875 property by font_put_extra.
11876 (font_matches_spec): Adjusted for the format change of font-entity.
11877 (w32_weight_table, w32_decode_weight): New variables.
11878 (w32_encode_weight): New function.
11879 (fill_in_logfont): Adjusted for the format change of font-spec.
11880 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11881 weight value.
11882 (w32font_driver): Adjusted for the change of struct font_driver.
11883
11884 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11885 conditionals. Don't check enable_font_backend. Surround non-used
11886 code by "#ifdef OLD_FONT" and "endif".
11887 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11888 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11889
11890 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11891 conditionals. Don't check enable_font_backend. Delete all codes
11892 used only when USE_FONT_BACKEND is not defined. Surround non-used
11893 code by "#ifdef OLD_FONT" and "endif".
11894
11895 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11896 (uniscribe_open): Return value changed to font-object.
11897 Adjusted for the format change of font-object.
11898 (uniscribe_otf_capability): Adjusted for the change of struct font.
11899 (add_opentype_font_name_to_list): Don't downcase names.
11900 (uniscribe_font_driver): Adjusted for the change of struct
11901 font_driver.
11902
119032008-05-13 Chong Yidong <cyd@stupidchicken.com>
11904
11905 * dispnew.c (update_frame_1): Check if tty output is still valid
11906 before flushing it.
11907
119082008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11909
11910 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11911 to Gtk+ menus.
11912
119132008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11914
11915 * dired.c (file_name_completion): Tweak the code so as to always do it
11916 in a single pass. Tighten the scope of some variables.
11917
11918 * dired.c (Qdefault_directory): New var.
11919 (file_name_completion): Use it instead of Fexpand_file_name.
11920 (syms_of_dired): Initialize it.
11921
119222008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11923
11924 * fileio.c (double_dollars): Remove dead code.
11925
119262008-05-10 Eli Zaretskii <eliz@gnu.org>
11927
11928 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11929 Mention w32-get-true-file-attributes in doc string.
11930
11931 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11932
119332008-05-09 Glenn Morris <rgm@gnu.org>
11934
11935 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11936 2008-04-23.
11937
119382008-05-09 Eli Zaretskii <eliz@gnu.org>
11939
11940 Support for reporting owner and group of each file on MS-Windows:
11941 * dired.c (stat_uname, stat_gname): New functions, with special
11942 implementation for w32.
11943 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11944
11945 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11946 (dflt_group_name): New static variable.
11947 (dflt_group): Rename from the_group.
11948 (init_user_info): Init dflt_group fields. Get user's group name
11949 from LookupAccountSid.
11950 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11951 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11952 New initialization states.
11953 (globals_of_w32): Initialize them to zero. Initialize the default
11954 group name to "None".
11955 (GetFileSecurity_Name): New global var, the name of the function
11956 to call for GetFileSecurity.
11957 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11958 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11959 (get_file_security, get_security_descriptor_owner)
11960 (get_security_descriptor_group, is_valid_sid)
11961 (get_file_security_desc, get_rid, get_name_and_id)
11962 (get_file_owner_and_group): New functions.
11963 (stat): Use get_file_security_desc and get_file_owner_and_group to
11964 report the owner and primary group of each file. Don't ignore the
11965 high 32 bits of file's size, now that st_size is 64-bit wide.
11966 Fix test when to get true file attributes.
11967 (init_user_info): Use get_rid instead of equivalent inline code.
11968 (fstat): Don't ignore the high 32 bits of file's size.
11969
119702008-05-09 Chong Yidong <cyd@stupidchicken.com>
11971
11972 * image.c (png_load): Use correct bit-depth for setting background
11973 color.
11974
119752008-05-08 Eli Zaretskii <eliz@gnu.org>
11976
11977 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11978 epa-hook.elc.
11979
119802008-05-08 Juanma Barranquero <lekktu@gmail.com>
11981
11982 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11983
119842008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11985
11986 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11987 because the original parameters are in pure storage now.
11988 (mac_window): Remove unused params. Update callers.
11989
119902008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11991
11992 * lread.c (substitute_object_recurse): Use lower-level primitives.
11993 Don't signal errors when traversing sub-char-tables.
11994 Don't loop over all the possible characters when traversing char-tables.
11995
11996 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11997 just like we do in print.c.
11998
119992008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12000
12001 * minibuf.c (Ftry_completion): Remove code left over from when we used
12002 scmp instead of Fcompare_strings.
12003
120042008-05-04 Juanma Barranquero <lekktu@gmail.com>
12005
12006 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12007
120082008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12009
12010 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12011 Create bitmap context in native byte order.
12012
12013 * macterm.c (XDrawLine)
12014 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12015 context in native byte order.
12016
120172008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12018
12019 * config.in: Regenerate.
12020
12021 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12022 New definitions for Image I/O support.
12023 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12024 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12025 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12026 (mac_data_provider_release_data, image_load_image_io)
12027 [USE_MAC_IMAGE_IO]: New functions.
12028 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12029 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12030 (init_image_func_pointer) [MAC_OSX]: Remove function.
12031 (image_load_quartz2d) [MAC_OSX]: Check availability of
12032 CGImageCreateWithPNGDataProvider at compile time.
12033 Use lowercase `false' for boolean constant.
12034 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12035 Use image_load_image_io.
12036 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12037 Don't check MyCGImageCreateWithPNGDataProvider.
12038 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12039 Don't call init_image_func_pointer.
12040
12041 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12042
12043 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12044 Make variable non-static.
12045 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12046 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12047
12048 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12049 (RED_FROM_ULONG): Mask off higher bits.
12050 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12051
12052 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12053 Include AvailabilityMacros.h.
12054 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12055 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12056
120572008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12058
12059 * chartab.c (Fset_char_table_range): If range is t, really set all
12060 chars to that value.
12061
120622008-05-03 Eli Zaretskii <eliz@gnu.org>
12063
12064 * dired.c (Ffile_attributes): Don't allow the device number become
12065 negative.
12066
120672008-05-02 Daiki Ueno <ueno@unixuser.org>
12068
12069 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12070
120712008-05-02 Juri Linkov <juri@jurta.org>
12072
12073 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12074 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12075 DEFAULT argument as a list of default values in docstrings.
12076
120772008-05-01 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12080
120812008-05-01 Martin Rudalics <rudalics@gmx.at>
12082
12083 * dispnew.c (change_frame_size_1): Preserve small windows when
12084 shrinking frames by calling set_window_height|width with third
12085 arg 2.
12086
12087 * window.h (struct window): Replace field too_small_ok by field
12088 resize_proportionally.
12089
12090 * window.c (make_window): Initialize resize_proportionally.
12091 (enlarge_window): Temporarily set resize_proportionally to make
12092 sure that shrink_windows does scale the window proportionally.
12093 (shrink_windows): When window has resize_proportionally set try
12094 to shrink it proportionally by stealing from other windows.
12095 (struct saved_window, Fset_window_configuration)
12096 (compare_window_configurations): Handle resize_proportionally.
12097 (WINDOW_TOTAL_SIZE): New macro.
12098 (window_min_size, shrink_windows, size_window): Use it.
12099 (check_min_window_sizes): Remove. Invalid values of
12100 window-min-height|width are handled by window_min_size_2 now.
12101 (size_window, Fsplit_window, enlarge_window)
12102 (adjust_window_trailing_edge, grow_mini_window): Don't call
12103 check_min_window_sizes.
12104 (window_min_size_2, window_min_size_1, window_min_size):
12105 New argument safe_p for retrieving "safe" minimum sizes.
12106 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12107 (adjust_window_trailing_edge, grow_mini_window):
12108 Adjust arguments of window_min_size... functions.
12109 (shrink_windows): Argument min_size removed. New argument
12110 safe_p allows shrinking windows to their safe minimum sizes.
12111 Calculate minimum size and decide whether a window shall be
12112 deleted for each window individually.
12113 (size_window): When nodelete_p equals 2, tell shrink_windows to
12114 delete windows only if their new minimum size is no more safe.
12115 (shrink_window_lowest_first): Call window_min_size_1 to make
12116 sure to preserve modeline of bottom-most window when resizing
12117 the minibuffer.
12118 (Fset_window_configuration, Fcurrent_window_configuration)
12119 (compare_window_configurations): Do not handle
12120 window-min-height|width any more.
12121 (syms_of_window): Clarify window-min-height|width doc-strings.
12122
121232008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12124
12125 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12126 some more. Copy some of the code from Ftry_completions.
12127 Remove special case code that dates back to initial revision when the
12128 slash was only added when necessary and that can't trigger nowadays.
12129
121302008-04-27 Kenichi Handa <handa@m17n.org>
12131
12132 * font.c (font_prop_validate): Signal `error' instead of `font'.
12133
121342008-04-29 Jason Rumney <jasonr@gnu.org>
12135
12136 * w32fns.c (Fw32_battery_status): New defun.
12137 (syms_of_w32fns): Defsubr it.
12138
121392008-04-28 Andreas Schwab <schwab@suse.de>
12140
12141 * dired.c (file_name_completion): Fix another mixing of encoded
12142 and decoded names.
12143
121442008-04-28 Juanma Barranquero <lekktu@gmail.com>
12145
12146 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12147
121482008-04-27 Juanma Barranquero <lekktu@gmail.com>
12149
12150 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12151
121522008-04-27 Andreas Schwab <schwab@suse.de>
12153
12154 * dired.c (file_name_completion): Fix inappropriate mixing of
12155 encoded and decoded names.
12156
12157 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12158
12159 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12160
121612008-04-26 Eli Zaretskii <eliz@gnu.org>
12162
12163 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12164 2008-03-31, it's not needed anymore with `struct stat' definition
12165 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12166 for the same reasons.
12167
121682008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12169
12170 * m/sparc.h: Additional redefinitions for GNU/Linux.
12171
121722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12173
12174 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12175 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12176 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12177 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12178 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12179 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12180 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12181 Likewise.
12182
12183 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12184 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12185 (mac_ax_number_of_characters): Add externs.
12186 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12187 [USE_MAC_TSM]: Likewise.
12188 (mac_handle_text_input_event) [MAC_OSX]:
12189 Handle kEventTextInputOffsetToPos for no active input area case.
12190 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12191 (mac_handle_document_access_event)
12192 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12193 (install_application_handler) [MAC_OSX]: Register handlers for
12194 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12195 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12196 Register mac_handle_document_access_event.
12197
12198 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12199 Make functions non-static.
12200
122012008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12202
12203 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12204 (read_file_name_completion_ignore_case, insert_default_directory)
12205 (Qdefault_directory): Move to minibuffer.el.
12206 (Fread_file_name): Call the new `read-file-name' instead.
12207
122082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12209
12210 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12211 Make function non-static.
12212 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12213 Remove function.
12214 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12215 Move to mactoolbox.c.
12216 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12217
12218 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12219 (mac_rect_make): New macro.
12220
12221 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12222 instead of float.
12223 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12224 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12225 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12226 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12227 CGRectMake.
12228 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12229 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12230 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12231 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12232 instead of WindowRef in argument type.
12233 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12234 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12235 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12236 instead of DISPLAY. All uses changed.
12237 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12238 (x_calc_absolute_position): Simplify so as not to use
12239 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12240
12241 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12242 instead of WindowRef in argument type.
12243 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12244 [TARGET_API_MAC_CARBON]: Remove externs.
12245 (create_apple_event, mac_event_parameters_to_lisp)
12246 [TARGET_API_MAC_CARBON]: Add externs.
12247
12248 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12249 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12250 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12251 is clicked.
12252 (x_activate_menubar): Remove extern for saved_menu_event_location.
12253 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12254 Move from mac.c.
12255
122562008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12257
12258 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12259 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12260
122612008-04-23 Jason Rumney <jasonr@gnu.org>
12262
12263 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12264 attributes only for local files.
12265
12266 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12267 default to Qlocal.
12268
122692008-04-22 Juri Linkov <juri@jurta.org>
12270
12271 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12272 read-buffer-to-switch instead of using the letter "B".
12273
122742008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12275
12276 * fileio.c (Qdefault_directory): New variable.
12277 (Fread_file_name): Use it to pass `dir' to the completion functions.
12278
122792008-04-20 Chong Yidong <cyd@stupidchicken.com>
12280
12281 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12282
122832008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12284
12285 * keyboard.c (Vpre_help_message): Remove.
12286 (show_help_echo): Remove default C code.
12287
12288 * dired.c (directory_files_internal, file_name_completion):
12289 Only call ENCODE_FILE if the string is indeed decoded.
12290
122912008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12292
12293 * Makefile.in (TOOLKIT_DEFINES): Remove.
12294 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12295
122962008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12297
12298 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12299 (mactoolbox.o): New target.
12300
12301 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12302 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12303
12304 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12305 Use mac_set_frame_window_background instead of XSetWindowBackground.
12306 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12307 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12308 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12309 instead of SetWindowTitleWithCFString.
12310 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12311 Move function to mactoolbox.c.
12312 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12313 Use mac_set_window_modified instead of SetWindowModified.
12314 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12315 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12316 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12317 FrontNonFloatingWindow. Use mac_activate_window instead of
12318 ActivateWindow. Use mac_active_non_floating_window instead of
12319 ActiveNonFloatingWindow.
12320 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12321 Use mac_show_hourglass and mac_hide_hourglass.
12322 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12323 instead of GetGlobalMouse.
12324 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12325 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12326 Use mac_bring_window_to_front instead of BringToFront.
12327 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12328 mactoolbox.c.
12329 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12330 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12331 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12332 mactoolbox.c.
12333
12334 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12335 (XtPointer): Move typedef from macmenu.c.
12336 (enum button_type): Move enum from macmenu.c.
12337 (widget_value): Move typedef from macmenu.c.
12338 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12339 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12340 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12341 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12342 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12343 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12344 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12345 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12346 (Selection): Move typedef from macselect.c.
12347 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12348 macterm.c.
12349 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12350 (mac_is_window_collapsed, mac_bring_window_to_front)
12351 (mac_send_window_behind, mac_hide_window, mac_show_window)
12352 (mac_collapse_window, mac_front_non_floating_window)
12353 (mac_active_non_floating_window, mac_activate_window)
12354 (mac_move_window_structure, mac_move_window, mac_size_window)
12355 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12356
12357 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12358 (enum mac_menu_kind): Move enum to mactoolbox.c.
12359 (min_menu_id): Move variable to mactoolbox.c.
12360 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12361 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12362 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12363 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12364 [TARGET_API_MAC_CARBON]: Likewise.
12365 (XtPointer): Move typedef to macgui.h.
12366 (enum button_type): Move enum to macgui.h.
12367 (widget_value): Move typedef to macgui.h.
12368 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12369 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12370 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12371 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12372 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12373 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12374 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12375 (popup_activated_flag): Make variable non-static.
12376 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12377 (add_menu_item, fill_menu, dispose_menus):
12378 Move functions to mactoolbox.c.
12379 (restore_show_help_function, menu_target_item_handler)
12380 (install_menu_target_item_handler, mac_handle_dialog_event)
12381 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12382 [TARGET_API_MAC_CARBON]: Likewise.
12383 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12384 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12385 (find_and_call_menu_selection, name_is_separator): Make function
12386 non-static.
12387 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12388 to mactoolbox.c.
12389 (set_frame_menubar): Don't call install_menu_quit_handler.
12390 (menu_item_selection): New variable.
12391 (mac_menu_show): Use create_and_show_popup_menu.
12392 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12393 selection but set variable menu_item_selection. All uses changed.
12394 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12395 Call install_menu_quit_handler. Move to mactoolbox.c.
12396
12397 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12398 (Selection): Move typedef to macgui.h.
12399 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12400 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12401 Make variables non-static.
12402 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12403 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12404 Make functions non-static.
12405 (Vmac_service_selection) [MAC_OSX]: Likewise.
12406 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12407 (mac_valid_selection_target_p, mac_clear_selection)
12408 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12409 (mac_put_selection_value, mac_selection_has_target_p)
12410 (mac_get_selection_value, mac_get_selection_target_list)
12411 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12412 Move functions to mactoolbox.c.
12413 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12414 Likewise.
12415 (copy_scrap_flavor_data, mac_handle_service_event)
12416 (install_service_handler) [MAC_OSX]: Likewise.
12417 (syms_of_macselect) <Vmac_dnd_known_types>:
12418 Use mac_dnd_default_known_types.
12419
12420 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12421 Move to mactoolbox.c.
12422 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12423 (Fx_selection_owner_p): Add EXFUN.
12424 (install_window_handler, remove_window_handler, XSetWindowBackground):
12425 Remove externs.
12426 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12427 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12428 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12429 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12430 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12431 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12432 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12433 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12434 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12435 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12436 (mac_valid_selection_target_p, mac_clear_selection)
12437 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12438 (mac_put_selection_value, mac_selection_has_target_p)
12439 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12440 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12441 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12442 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12443 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12444 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12445 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12446 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12447 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12448
12449 * mactoolbox.c: New file.
12450
124512008-04-18 Jason Rumney <jasonr@gnu.org>
12452
12453 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12454
124552008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12456
12457 * character.c (Fmultibyte_char_to_unibyte):
12458 Return latin1 chars unchanged.
12459
12460 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12461 relocated if it points to `name'.
12462
124632008-04-17 Kenichi Handa <handa@m17n.org>
12464
12465 * data.c (Faset): Allow setting a multibyte character in an
12466 ASCII-only unibyte string.
12467
12468 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12469
124702008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12471
12472 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12473 done in config.h.
12474
124752008-04-16 Juanma Barranquero <lekktu@gmail.com>
12476
12477 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12478 (Fchar_direction): Add usage in the docstring.
12479
124802008-04-15 Chong Yidong <cyd@stupidchicken.com>
12481
12482 * keyboard.c (read_key_sequence): Remove always-true checks.
12483
124842008-04-14 Jason Rumney <jasonr@gnu.org>
12485
12486 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12487 compatibility struct, for better underline positioning.
12488
124892008-04-13 David Hansen <david.hansen@gmx.net>
12490
12491 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12492 string.
12493
124942008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12495
12496 * m/hp800.h (XUINT, XSET): Remove.
12497
124982008-04-12 Juanma Barranquero <lekktu@gmail.com>
12499
12500 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12501 previous change.
12502
125032008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12504
12505 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12506 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12507
125082008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12509
12510 * keymap.h (map_keymap_canonical): Declare.
12511 * xmenu.c (single_keymap_panes): Use it.
12512
125132008-04-11 Glenn Morris <rgm@gnu.org>
12514
12515 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12516 set the target's value to that of the alias.
12517
125182008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12519
12520 * term.c (set_tty_color_mode): Left over typo.
12521
125222008-04-10 Michael Albinus <michael.albinus@gmx.de>
12523
12524 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12525 only after check for file name handler functions. Signal, when
12526 native functionality is not supported.
12527 (syms_of_fileio): Declare it unconditionally.
12528
125292008-04-10 Jason Rumney <jasonr@gnu.org>
12530
12531 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12532 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12533
12534 * w32.c (logon_network_drive): Also logon to remote drives that
12535 are mapped to drive letters.
12536
125372008-04-10 Glenn Morris <rgm@gnu.org>
12538
12539 * xdisp.c (truncate-partial-width-windows): Doc fix.
12540
125412008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12544 Move functions to minibuffer.el.
12545 (syms_of_fileio): Don't declare them.
12546
125472008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12548
12549 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12550 (syms_of_minibuf): Remove its initialization.
12551
12552 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12553
125542008-04-09 Juanma Barranquero <lekktu@gmail.com>
12555
12556 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12557
125582008-04-09 Jason Rumney <jasonr@gnu.org>
12559
12560 * makefile.w32-in (distclean): Delete makefile too.
12561 (maintainer-clean): New target.
12562
12563 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12564
12565 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12566 for new font backend and composite cases.
12567
125682008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12569
12570 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12571 Most of the code moved to run_timers.
12572 (do_pending_atimers): Call run_timers.
12573 (run_timers): New function.
12574
12575 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12576 run atimers.
12577
12578 * process.c (wait_reading_process_output): The same as above.
12579
125802008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12581
12582 * minibuf.c (last_exact_completion): Remove variable.
12583 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12584 (complete_and_exit_1, complete_and_exit_2)
12585 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12586 (Fdisplay_completion_list, display_completion_list_1)
12587 (Fminibuffer_completion_help, Fself_insert_and_exit)
12588 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12589 minibuffer.el.
12590 (syms_of_minibuf): Remove corresponding initializations.
12591
12592 * keyboard.c (Qdeactivate_mark): New var.
12593 (command_loop_1): Use it to call `deactivate-mark'.
12594 (syms_of_keyboard): Initialize it.
12595
12596 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12597 to another frame.
12598 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12599 Don't call set_tty_color_mode.
12600 (store_frame_param): Reset previous_frame rather than call
12601 set_tty_color_mode.
12602 * term.c (set_tty_color_mode): Rewrite.
12603 * dispextern.h (set_tty_color_mode): New type.
12604 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12605
126062008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12607
12608 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12609 for generic chars, which do not exist any more in emacs-unicode.
12610
126112008-04-08 Michael Albinus <michael.albinus@gmx.de>
12612
12613 * coding.c (detect_coding_emacs_mule)
12614 (Ffind_operation_coding_system): Fix typo.
12615
126162008-04-08 Jason Rumney <jasonr@gnu.org>
12617
12618 * w32uniscribe.c (SNAME): Extract only symbol name.
12619
12620 * w32font.h (struct w32_metric_cache): New struct.
12621 (w32font_info): Use it.
12622 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12623 (CACHE_BLOCKSIZE): New constants.
12624
12625 * w32font.c (Qja, Qko, Qzh): New symbols.
12626 (syms_of_w32font): Initialise them.
12627 (font_matches_spec): Use them to filter by language.
12628 (recompute_cached_metrics): Remove function.
12629 (compute_metrics, clear_cached_metrics): New functions.
12630 (w32font_encode_char): Use them to manage metric cache.
12631 (w32font_text_extents): Cache metrics for all glyphs on demand.
12632 Delay converting glyph indices to WORD until needed.
12633 (w32font_open_internal): Initialize metric cache to empty.
12634 (registry_to_w32_charset): Charset should always be a symbol.
12635 (fill_in_logfont, list_all_matching_fonts): Family should
12636 always be a symbol.
12637
126382008-04-06 Jason Rumney <jasonr@gnu.org>
12639
12640 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12641 Give up if glyph indices not supported. Use uniscribe obtained
12642 ABC widths for individual metrics. Map glyph clusters back to
12643 characters using fClusterStart flag. Return number of glyphs
12644 produced, not chars processed.
12645 (uniscribe_shape): Map char at FROM to current glyph.
12646
126472008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12648
12649 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12650 Use SetMenuItemHierarchicalMenu.
12651
126522008-04-05 Jason Rumney <jasonr@gnu.org>
12653
12654 * image.c (pbm_load): Allow color values up to 65535.
12655 Throw an error if max_color_idx is outside the supported range.
12656 Report an error when image size is invalid.
12657 Read two bytes at a time when raw images have max_color_idx above 255.
12658
126592008-04-05 Eli Zaretskii <eliz@gnu.org>
12660
12661 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12662 cFileName a file name that includes `?' characters, use the 8+3
12663 alias in cAlternateFileName instead.
12664
126652008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12666
12667 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12668 append "CCL: Quitted" when the CCL program is quitted.
12669 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12670
12671 * ccl.h (struct ccl_program): New member quit_silently.
12672
126732008-04-05 Chong Yidong <cyd@stupidchicken.com>
12674
12675 * search.c (compile_pattern_1): Treat non-nil and non-string of
12676 search-spaces-regexp as nil.
12677
12678 * minibuf.c (Fassoc_string): Tweak docstring.
12679
126802008-04-05 Eli Zaretskii <eliz@gnu.org>
12681
12682 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12683 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12684 2008-03-14 to force inode be positive.
12685
12686 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12687 _S_* ones, since we now use our own sys/stat.h.
12688 (stat, fstat): Don't mangle the inode number.
12689 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12690
126912008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12692
12693 * frame.h (struct frame): Give one more bit to `visible' since we use
12694 values larger than 1 to indicate obscured frames on ttys.
12695
12696 * keymap.c (Qkeymap_canonicalize): New var.
12697 (Fmap_keymap_internal): New fun.
12698 (describe_map): Use keymap-canonicalize.
12699
12700 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12701 (Fundo_boundary): Set them.
12702 (syms_of_undo): Initialize them.
12703 (record_point): Use them instead of last_point_position*.
12704 (last_undo_buffer): Change type.
12705
127062008-04-04 Jason Rumney <jasonr@gnu.org>
12707
12708 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12709 (recompute_cached_metrics): Don't set ascent and descent per char.
12710
12711 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12712 (uniscribe_check_otf): Add GC protection before consing.
12713 Rearrange loop for counting features.
12714
127152008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12716
12717 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12718 buffer with byte-size of source buffer.
12719
127202008-04-03 Chong Yidong <cyd@stupidchicken.com>
12721
12722 * callint.c (Fcall_interactively): Handle temporary region even
12723 when shift-select-mode is off.
12724
127252008-04-03 Jason Rumney <jasonr@gnu.org>
12726
12727 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12728
127292008-04-03 Kenichi Handa <handa@m17n.org>
12730
12731 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12732 (CATEGORY_MASK_UTF_16): Likewise.
12733 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12734 binary file.
12735 (detect_coding): Add null-byte detection for a binary file.
12736 (detect_coding_system): Likewise.
12737
127382008-04-03 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32uniscribe.c: New file.
12741
12742 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12743
12744 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12745
12746 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12747 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12748 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12749 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12750 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12751 (Qphonetic): New symbols.
12752 (syms_of_w32font): Initialize them.
12753 (font_supported_scripts): Use them.
12754 (w32font_list_family): List all charsets.
12755 (w32font_text_extents, recompute_cached_metrics): Fix metric
12756 calculations.
12757 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12758 Give opentype fonts their own format.
12759 (font_matches_spec): New arguments backend and logfont.
12760 Handle :otf spec for uniscribe backend.
12761 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12762 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12763
12764 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12765 font backend.
12766 (globals_of_w32fns): Initialize uniscribe font backend.
12767
12768 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12769 dependencies.
12770 (w32uniscribe.$(O)): New file to build.
12771 (FONT_OBJ): Include w32uniscribe.$(O).
12772 (LIBS): Add uniscribe libraries.
12773
12774 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12775
127762008-04-02 Chong Yidong <cyd@stupidchicken.com>
12777
12778 * callint.c (Vshift_select_mode): New var.
12779 (Finteractive): Document new ^ spec.
12780 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12781 is present.
12782
12783 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12784 (command_loop_1): Avoid running the direct display versions of
12785 forward-char and backward-char if shift-selection may occur.
12786 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12787 shift-translation takes place.
12788
12789 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12790 avoid clobbering by define-minor-mode.
12791
12792 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12793 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12794
12795 * syntax.c (Fforward_word): Add ^ interactive spec.
12796
12797 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12798 (Fscroll_right): Add ^ interactive spec.
12799
128002008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12801
12802 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12803
12804 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12805
12806 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12807
128082008-03-31 Juri Linkov <juri@jurta.org>
12809
12810 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12811
128122008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12813
12814 * gtkutil.c (xg_set_geometry): Fix indentation.
12815 (xg_resize_outer_widget): Remove.
12816 (x_wm_size_hint_off): Fix indentation.
12817 (xg_frame_set_char_size): Call flush_and_sync after
12818 gtk_window_resize.
12819 (x_wm_set_size_hint): Pass NULL as geometry window to
12820 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12821 Add menu bar and tool bar height to base height.
12822 (xg_update_frame_menubar, free_frame_menubar)
12823 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12824 (update_frame_tool_bar, free_frame_tool_bar):
12825 Change xg_resize_outer_widget to xg_frame_set_char_size.
12826
128272008-03-30 Michael Albinus <michael.albinus@gmx.de>
12828
12829 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12830 (Fdbus_call_method): New parameter TIMEOUT.
12831 (dbus-send-signal): Optimize UNGCPRO call.
12832
128332008-03-29 Juri Linkov <juri@jurta.org>
12834
12835 * window.c (Fdisplay_buffer): Move call to
12836 Vsplit_window_preferred_function out of conditions that check
12837 if window is eligible for vertical splitting.
12838 When Vsplit_window_preferred_function is non-nil, call it and use
12839 its non-nil return value as window. Otherwise, continue doing
12840 vertical splitting using Fsplit_window with arg horflag=nil.
12841 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12842 default value from `split-window' to nil.
12843
128442008-03-29 Juri Linkov <juri@jurta.org>
12845
12846 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12847 for interactive code letters 'b' and 'B'.
12848
128492008-03-29 Eli Zaretskii <eliz@gnu.org>
12850
12851 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12852 multibyte string.
12853
128542008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12855
12856 * keyboard.c (pending_funcalls): New var.
12857 (timer_check): Run it.
12858 (syms_of_keyboard): Initialize it.
12859 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12860 (Vdelete_terminal_functions): New vars.
12861 (syms_of_terminal): Initialize them.
12862 (Fdelete_terminal): Run delete-terminal-functions.
12863 * xdisp.c (safe_eval): Rewrite.
12864 (safe_call2): New fun.
12865 * frame.c (Qdelete_frame_functions): New var.
12866 (syms_of_frame): Initialize it.
12867 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12868 * lisp.h (safe_call2, pending_funcalls): Declare.
12869
128702008-03-28 Andreas Schwab <schwab@suse.de>
12871
12872 * indent.c (Fmove_to_column): Move declaration before statements.
12873
128742008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12875
12876 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12877 (struct frame): Use bit fields for boolean vars.
12878
12879 * process.c (server_accept_connection): Simplify naming.
12880 (emacs_get_tty_pgrp): Use SDATA.
12881
12882 * coding.c (decode_coding_object): Fix last change.
12883
128842008-03-27 Jason Rumney <jasonr@gnu.org>
12885
12886 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12887
128882008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12889
12890 * charset.c (Fdefine_charset_internal): Change the way of
12891 registering charsets in Vcharset_order_list.
12892 (syms_of_charset): Make the charset `eight-bit' supplementary.
12893
128942008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12895
12896 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12897 operations, to avoid having the difference between pointers
12898 overflow.
12899
129002008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12901
12902 * indent.c (check_display_width): New fun.
12903 (scan_for_column): Use it.
12904
12905 * data.c (syms_of_data): Mark most-positive-fixnum and
12906 most-negative-fixnum as constants.
12907
12908 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12909
12910 * indent.c (scan_for_column): Extract from current_column_1.
12911 Merge with the same code from Fmove_to_column.
12912 (current_column_1, Fmove_to_column): Use it.
12913
129142008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * keymap.c (map_keymap_internal): New fun.
12917 (map_keymap): Use it.
12918 (Fmap_keymap_internal): New fun.
12919 (Fmap_keymap): Remove left-out test from before make_save_value.
12920
12921 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12922
12923 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12924 Use XCAR/XCDR.
12925
12926 * process.h (struct Lisp_Process): Remove filter_multibyte.
12927 * process.c (QCfilter_multibyte): Remove.
12928 (setup_process_coding_systems): Don't use filter_multibyte.
12929 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12930 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12931 (Fset_process_filter_multibyte): Change the coding-system to
12932 approximate the previous behavior.
12933 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12934 coding-system.
12935
12936 * coding.c (decode_coding_object): When not decoding into a buffer,
12937 obey the coding system's preference of (uni|multi)byte.
12938
129392008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12940
12941 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12942 every char is changed and has a different byte-length.
12943 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12944 Fix int -> EMACS_INT.
12945
129462008-03-23 David Hansen <david.hansen@gmx.net>
12947
12948 * dbusbind.c (xd_read_message): Remove extra copying of message
12949 strings. Check for NULL `interface' or `member'.
12950
129512008-03-22 Eli Zaretskii <eliz@gnu.org>
12952
12953 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12954 cFileName a file name that includes `?' characters, use the 8+3
12955 alias in cAlternateFileName instead.
12956
129572008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12958
12959 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12960
129612008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12962
12963 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12964 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12965 work on current_buffer only instead (that was already the case
12966 for some of the code anyway).
12967 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12968 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12969 (SET_PT, SET_PT_BOTH): Adjust.
12970 * intervals.h (set_point, temp_set_point, set_point_both)
12971 (temp_set_point_both): Remove redundant declarations.
12972
129732008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * fileio.c (Finsert_file_contents):
12976 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12977 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12978 when buffer != current_buffer anyway.
12979
129802008-03-20 Andreas Schwab <schwab@suse.de>
12981
12982 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12983 as default.
12984
129852008-03-19 Jason Rumney <jasonr@gnu.org>
12986
12987 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12988 (syms_of_w32fns): Initialize them.
12989 (HOURGLASS_ID): New constant.
12990 (x_window_to_frame): Don't check hourglass_window.
12991 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12992 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12993 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12994 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12995 Only change the cursor if hourglass is not active.
12996 (Fx_create_frame): Initialize frame's current_cursor.
12997 (hourglass_atimer): Remove.
12998 (hourglass_started): New function.
12999 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13000 (show_hourglass): Adapt to w32, changing argument to frame.
13001
13002 * w32term.h (struct w32_output): Remove hourglass_window.
13003 Add current_cursor.
13004
13005 * eval.c (call_debugger, Fsignal):
13006 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13007 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13008 (Fexecute_extended_command, cancel_hourglass_unwind):
13009 * minibuf.c (read_minibuf):
13010 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13011
130122008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13013
13014 * window.c (run_funs): New fun.
13015 (run_window_configuration_change_hook): Use it to run the buffer-local
13016 and the global part of the hook.
13017
13018 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13019 (unwind_format_mode_line): Restore selected window.
13020 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13021
130222008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13023
13024 * editfns.c (Fchar_equal): Check they are valid characters.
13025
13026 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13027
130282008-03-17 Andreas Schwab <schwab@suse.de>
13029
13030 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13031 against a charset.
13032
13033 * lisp.h (Fbuffer_list): Declare.
13034
130352008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13036
aac0c6e3
MR
13037 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13038 handlebox_widget is != 0.
13039
130402008-03-16 Juri Linkov <juri@jurta.org>
13041
13042 * callint.c (Fcall_interactively): For interactive code letters
13043 'b' and 'B' put the buffer list into the list of default "future"
13044 values of the minibuffer.
13045
130462008-03-16 Andreas Schwab <schwab@suse.de>
13047
13048 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13049 modifiers.
13050
13051 * regex.c (re_match_2_internal): Correct matching of a charset
13052 against latin-1 characters.
13053
130542008-03-16 Kenichi Handa <handa@m17n.org>
13055
13056 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13057 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13058 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13059 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13060 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13061 CHAR_STRING_ADVANCE.
13062 (produce_chars): Fix for the case that the source and the
13063 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13064 instead of CHAR_STRING_ADVANCE.
13065 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13066 STRING_CHAR_ADVANCE.
13067
130682008-03-15 Andreas Schwab <schwab@suse.de>
13069
13070 * regex.c (re_match_2_internal): Correct matching of eight bit
13071 characters in unibyte strings.
13072
130732008-03-15 Martin Rudalics <rudalics@gmx.at>
13074
13075 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13076 at end of range when it coincides with the end of the buffer.
13077
130782008-03-14 Eli Zaretskii <eliz@gnu.org>
13079
13080 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13081
13082 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13083
130842008-03-14 Jason Rumney <jasonr@gnu.org>
13085
13086 * editfns.c (initial_tz): New variable.
13087 (syms_of_editfns): Initialize it.
13088 (Fset_time_zone_rule): Set it when first called.
13089 Use it when TZSTRING is nil.
13090
13091 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13092 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13093 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13094 (globals_of_w32fns): Initialize them.
13095 (compute_tip_xy): Use them to position tooltips.
13096
130972008-03-14 Glenn Morris <rgm@gnu.org>
13098
13099 * emacs.c (main): Revert previous change.
13100 (standard_args): Revert -internal-script back to -scriptload,
13101 and remove the long-option form.
13102
131032008-03-13 Glenn Morris <rgm@gnu.org>
13104
13105 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13106 Remove option -enable-font-backend.
13107
131082008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13109
13110 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13111
131122008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13113
13114 * xterm.c (x_connection_closed): For GTK: If this is the last
13115 terminal just exit without closing the display.
13116
131172008-03-11 Jason Rumney <jasonr@gnu.org>
13118
13119 * w32font.c (w32font_full_name): Use floor to round.
13120
f0131492 131212008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13122
13123 * sound.c (alsa_configure): Declare vol at beginning of block.
13124
13125 * fontset.c (Ffontset_info): Remove extra semicolon.
13126
131272008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13130 size of resulting string.
13131
131322008-03-10 Jason Rumney <jasonr@gnu.org>
13133
13134 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13135
131362008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13137
13138 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13139 Don't pretend as if characters with display property haven't been
13140 consumed for string-replacing-string case.
13141
131422008-03-08 Kim F. Storm <storm@cua.dk>
13143
13144 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13145 (get_next_display_element, next_element_from_string)
13146 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13147
131482008-03-08 Andreas Schwab <schwab@suse.de>
13149
13150 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13151
131522008-03-06 Jason Rumney <jasonr@gnu.org>
13153
13154 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13155 when charset not specified. Only translate ANSI to unicode when
13156 font_type is truetype.
13157 (w32font_coverage_ok): New function.
13158 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13159
131602008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13161
13162 * lread.c (Fread_char): Resolve modifiers.
13163 (Fread_char_exclusive): Likewise.
13164
13165 * character.c (char_resolve_modifier_mask): New function.
13166 (char_string): Use char_resolve_modifier_mask.
13167 (Fchar_resolve_modifiers): New function.
13168 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13169 function.
13170
131712008-03-04 Jason Rumney <jasonr@gnu.org>
13172
13173 * makefile.w32-in: Always include w32font.c in the build.
13174 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13175
131762008-03-04 Andreas Schwab <schwab@suse.de>
13177
13178 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13179 (versionclean): Likewise.
13180
131812008-03-04 Juanma Barranquero <lekktu@gmail.com>
13182
13183 * .cvsignore: Add oo.
13184
131852008-03-03 Andreas Schwab <schwab@suse.de>
13186
13187 * coding.c (decode_coding_object): Inhibit gap shrinking while
13188 decoding in place.
13189
131902008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13191
13192 * w32term.c: Remove unused include "gnu.h".
13193 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13194
13195 * gnu.h: Rename to ...
13196 * emacs-icon.h: ... this.
13197 * xterm.c: Use emacs-icon.h instead of gnu.h.
13198 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13199
132002008-03-03 Juanma Barranquero <lekktu@gmail.com>
13201
13202 * w32font.c: Include math.h.
13203
132042008-03-03 Jason Rumney <jasonr@gnu.org>
13205
13206 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13207 Compute options separately.
13208 (w32font_open_internal): Set glyph_idx before caching metrics.
13209
13210 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13211 Define if system headers don't.
13212 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13213 (w32font_encode_char): Don't declare here.
13214
13215 * w32font.c (Quniscribe, QCformat): New symbols.
13216 (syms_of_w32font): Define them.
13217 (w32font_has_char): Indicate uncertainty.
13218 (w32font_encode_char): Encode as glyph point. Make static.
13219 (recompute_cached_metrics): New function.
13220 (w32font_open_internal): Use it. Set font to use glyph points
13221 initially. Set format based on type of font.
13222 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13223 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13224 on it. Set format based on information available here.
13225 (add_font_entity_to_list): Identify backend based on opentype_only.
13226
132272008-03-02 Andreas Schwab <schwab@suse.de>
13228
13229 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13230
13231 * coding.c (decode_coding_big5, produce_chars):
13232 Fix typos in last change.
13233
132342008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13235
13236 * gnu.h: New icon.
13237
132382008-03-02 Kenichi Handa <handa@m17n.org>
13239
13240 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13241 `dos', don't decode '\r' if that is the last in the source.
13242 (decode_coding_utf_16, decode_coding_emacs_mule)
13243 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13244 (decode_coding_raw_text, decode_coding_charset): Likewise.
13245 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13246
132472008-03-01 Jason Rumney <jasonr@gnu.org>
13248
13249 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13250
132512008-03-01 Kim F. Storm <storm@cua.dk>
13252
13253 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13254
132552008-03-01 Jason Rumney <jasonr@gnu.org>
13256
13257 * w32font.c (w32font_full_name): New function.
13258 (w32font_open_internal): Use it.
13259
132602008-03-01 Kim F. Storm <storm@cua.dk>
13261
13262 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13263
132642008-03-01 Jason Rumney <jasonr@gnu.org>
13265
13266 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13267
132682008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13269
13270 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13271 xg_frame_resized when the event is for the edit widget.
13272
13273 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13274
13275 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13276 set_char_size.
13277 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13278 operations on widgets here. Just set frame size if needed.
13279 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13280 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13281 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13282 the whole frame.
13283 (xg_create_tool_bar): Move attachment of the tool bar to
13284 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13285 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13286
132872008-03-01 Jason Rumney <jasonr@gnu.org>
13288
13289 * w32fns.c (w32_msg_pump): Disable debug code.
13290
132912008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13292
13293 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13294
132952008-02-29 Chong Yidong <cyd@stupidchicken.com>
13296
13297 * xdisp.c (next_overlay_string): Don't set
13298 overlay_strings_at_end_processed_p if we're currently reading from
13299 a display string.
13300
133012008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13302
13303 * xdisp.c (get_overlay_strings_1): Fix typo.
13304
133052008-02-29 Chong Yidong <cyd@stupidchicken.com>
13306
13307 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13308
133092008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13310
13311 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13312
13313 * xdisp.c (display_mode_element): Cancel the previous change.
13314 (decode_mode_spec): Likewise.
13315 (handle_auto_composed_prop): Don't make composition if it->string
13316 is a string.
13317
133182008-02-27 Kim F. Storm <storm@cua.dk>
13319
13320 * lisp.h (GLYPH): Change type from int to struct with separate char
13321 and face_id members.
13322 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13323 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13324 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13325 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13326 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13327 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13328 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13329 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13330 handle new Lisp glyph code encoding, either an integer or a cons.
13331
13332 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13333 (GLYPH_ALIAS): Delete.
13334 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13335 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13336 (GLYPH_FROM_CHAR): Replace macro by ...
13337 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13338
13339 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13340 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13341 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13342 (GLYPH_INVALID_P): New macro.
13343 (spec_glyph_lookup_face): Update prototype.
13344
13345 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13346 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13347 new glyph code encoding.
13348 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13349 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13350
13351 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13352 Adapt to new glyph type and new glyph code encoding.
13353
13354 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13355
13356 * indent.c (current_column, current_column_1, Fmove_to_column)
13357 (compute_motion): Adapt to new glyph code encoding.
13358
13359 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13360
133612008-02-27 Chong Yidong <cyd@stupidchicken.com>
13362
13363 * process.c (wait_reading_process_output): Check for window
13364 changes caused by timers.
13365 Suggested by Johan Bockgård.
13366
133672008-02-27 Glenn Morris <rgm@gnu.org>
13368
13369 * emacs.c (USAGE1): Add `--disable-font-backend'.
13370
133712008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13372
13373 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13374 is made to the buffer.
13375
133762008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13377
13378 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13379 (face_at_string_position):
13380 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13381 (face_at_string_position):
13382 * xdisp.c (display_string, next_overlay_change):
13383 * buffer.h (overlays_at):
13384 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13385 Update callers.
13386
133872008-02-26 Chong Yidong <cyd@stupidchicken.com>
13388
13389 * editfns.c (Fformat): Doc fix.
13390
133912008-02-26 Juanma Barranquero <lekktu@gmail.com>
13392
13393 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13394 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13395 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13396
133972008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13398
13399 * buffer.c (Fbuffer_swap_text): New function.
13400 (syms_of_buffer): Defsubr it.
13401
134022008-02-25 Chong Yidong <cyd@stupidchicken.com>
13403
13404 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13405
134062008-02-25 Jason Rumney <jasonr@gnu.org>
13407
13408 * w32font.c (w32font_draw): Draw one character at a time when padding.
13409
134102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13411
13412 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13413 Handle a nil arg. Use run_window_configuration_change_hook.
13414 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13415 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13416 Use run_window_configuration_change_hook.
13417
134182008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13419
13420 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13421 1-pixel width.
13422
134232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13424
13425 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13426 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13427 if the glyph in the font is zero pixel with.
13428
13429 * dispextern.h (struct glyph_string): New member padding_p.
13430
13431 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13432
13433 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13434
13435 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13436
13437 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13438
13439 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13440
134412008-02-25 Jason Rumney <jasonr@gnu.org>
13442
13443 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13444
134452008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13446
13447 Allow fine-grained image-cache flushing.
13448 * dispextern.h (struct image): Add `dependencies' field.
13449 (clear_image_caches): Change arg to Lisp_Object.
13450 * image.c (make_image): Initialize `dependencies' field.
13451 (clear_image_cache): Change arg to allow fine-grained flushing.
13452 Perform the flush even if image-cache-eviction-delay is nil.
13453 (clear_image_caches): Change arg to Lisp_Object.
13454 (Fclear_image_cache): Expand meaning of the argument.
13455 (mark_image): Mark `dependencies' field.
13456 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13457 (lface_hash): Use XHASH rather than XFASTINT.
13458 (face_at_buffer_position): Fix int -> EMACS_INT position.
13459 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13460 (select_frame_for_redisplay): Remove code duplication.
13461 (redisplay_internal): Adapt arg to call to clear_image_caches.
13462
134632008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13464
13465 * s/vms4-0.h:
13466 * s/vms4-2.h:
13467 * s/vms4-4.h:
13468 * s/vms5-5.h: Remove, unused.
13469
13470 * s/irix5-2.h:
13471 * s/irix6-0.h:
13472 * s/riscos5.h:
13473 * s/mach-bsd4-3.h:
13474 * m/mips4.h: Remove files for obsolete systems.
13475
13476 * Makefile.in:
13477 * filelock.c:
13478 * unexmips.c:
13479 * m/hp9000s300.h:
13480 * m/iris4d.h:
13481 * s/aix3-1.h:
13482 * s/hpux.h:
13483 * s/msdos.h:
13484 * s/usg5-0.h:
13485 * s/usg5-2-2.h:
13486 * s/usg5-2.h:
13487 * s/usg5-3.h: Remove references to obsolete variables.
13488
13489 * s/irix5-0.h: Remove, move all the contents ...
13490 * s/irix6-5.h: ... here. Simplify.
13491 * config.in: Regenerate.
13492
134932008-02-24 Jason Rumney <jasonr@gnu.org>
13494
13495 * w32term.c (x_draw_glyph_string_background): Clear the background
13496 manually when cleartype is in use.
13497 (x_draw_glyph_string_foreground): Draw text transparently when
13498 cleartype is in use.
13499
13500 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13501 a font into it unless we have to.
13502
135032008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13504
13505 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13506 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13507
aac0c6e3
MR
135082008-02-18 Jason Rumney <jasonr@gnu.org>
13509
13510 * w32fns.c (Fw32_shell_execute): Encode parameters.
13511
135122008-02-09 Eli Zaretskii <eliz@gnu.org>
13513
13514 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13515
135162008-02-05 Juanma Barranquero <lekktu@gmail.com>
13517
13518 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13519
135202008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13521
13522 * xterm.c (x_set_offset): Don't change the gravity if
13523 CHANGE_GRAVITY is -1.
13524
135252008-02-23 Chong Yidong <cyd@stupidchicken.com>
13526
13527 * fileio.c (auto_save_error_occurred): New var.
13528 (auto_save_error): Set it.
13529 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13530 error occurred.
13531
135322008-02-23 Eli Zaretskii <eliz@gnu.org>
13533
13534 * w32.c (globals_of_w32): Add initializations for
13535 g_b_init_get_sid_sub_authority and
13536 g_b_init_get_sid_sub_authority_count.
13537
135382008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13539
13540 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13541 (font_parse_xlfd): Use them for sanity check.
13542 (Finternal_set_font_style_table): Make sure the table is bijective.
13543
13544 Consolidate the image_cache to the terminal struct.
13545 * termhooks.h (P_): Remove redundant def.
13546 (struct terminal): New field `image_cache'.
13547 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13548 of FRAME_X_IMAGE_CACHE.
13549 * xterm.h (struct x_display_info): Remove image_cache field.
13550 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13551 * w32term.h (struct w32_display_info): Remove image_cache field.
13552 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13553 * macterm.h (struct mac_display_info): Remove image_cache field.
13554 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13555 * xterm.c (x_term_init):
13556 * w32term.c (w32_term_init):
13557 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13558 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13559 Remove declarations.
13560 (clear_image_caches, mark_image_cache): New declarations.
13561 * xfaces.c (clear_face_cache):
13562 * xdisp.c (redisplay_internal): Use clear_image_caches.
13563 * image.c (clear_image_cache): Don't check that a frame is on
13564 a window-system before checking if it shares the same cache.
13565 (clear_image_caches): New function.
13566 (Fclear_image_cache): Use it.
13567 (mark_image): Move from allo.c.
13568 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13569 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13570 (mark_object): Don't call mark_image_cache for frames.
13571 (mark_terminals): Call mark_image_cache.
13572
13573 * lisp.h (Fdelete_terminal): Declare.
13574
13575 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13576 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13577 wrong_type_argument.
13578
135792008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13580
13581 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13582 malayalam.el, and tamil.el. Add sinhala.el.
13583
135842008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13585
13586 * xterm.c (x_connection_closed): Consolidate identical tests.
13587 (x_delete_terminal): Don't crash if called via x_connection_closed.
13588
135892008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13590
13591 * xdisp.c (decode_mode_spec): New arg string.
13592 (display_mode_element): Adjust for the above change.
13593
135942008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13595
13596 * callint.c (Fcall_interactively): Use AREF.
13597
135982008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13599
13600 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13601
136022008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13603
13604 * xfns.c (Fx_show_tip): Set string to " " if empty.
13605
136062008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13607
13608 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13609 with Qt.
13610
136112008-02-17 Kenichi Handa <handa@m17n.org>
13612
13613 * ftfont.c (ftfont_shape): Return Lispy number.
13614
13615 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13616 for GCs.
13617 (Finternal_set_font_selection_order): Call font_update_sort_order
13618 only when enable_font_backend is set.
13619 (realize_x_face): Set face->font_info to that of default face only
13620 when enable_font_backend is set.
13621
13622 * xdisp.c (handle_composition_prop): Set it->c to the fist
13623 character of the composed region.
13624 (fill_composite_glyph_string): Set base_face->font_info to
13625 s->font_info. Get a face for ascii from base_face->ascii_face.
13626 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13627 with a face already decided.
13628 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13629 non-negative.
13630 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13631 call font_prepare_composition unconditionally.
13632
13633 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13634
13635 * xterm.h (struct x_display_info): New member font.
13636
13637 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13638 (x_set_mouse_face_gc, x_new_font): Likewise.
13639 (x_term_init): Setup display_info->font.
13640 (x_delete_terminal): Free display_info->font.
13641
13642 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13643
13644 * ftxfont.c (ftxfont_default_fid): Delete it.
13645 (ftxfont_open): Set xfont->fid to 0.
13646 (ftxfont_end_for_frame): Clear data specific to the frame and the
13647 font-driver.
13648
13649 * xftfont.c (xftfont_default_fid): Delete it.
13650 (xftfont_open): Set xfont->fid to 0.
13651
13652 * fontset.c (FONTSET_OBJLIST): New macro.
13653 (fontset_find_font): Update font-object list of the fontset.
13654 (free_realized_fontset): New function.
13655 (free_face_fontset): Call free_realized_fontset.
13656 (Ffont_info): Call font_close_object only when enable_font_backend
13657 is set.
13658
13659 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13660 [HAVE_NTGUI]: Include w32term.h.
13661 [MAC_OS]: Include macterm.ch.
13662 (font_otf_ValueRecord): Use make_number.
13663 (font_finish_cache): Fix handling of reference count.
13664 (font_clear_cache): Update num_fonts.
13665 (font_open_entity): Update smallest_char_width and
13666 smallest_font_height of the frame.
13667 (font_close_object): Update num_fonts.
13668 (Fclear_font_cache): Fix finding the target cache data.
13669
136702008-02-16 Glenn Morris <rgm@gnu.org>
13671
13672 * fontset.c (Finternal_char_font): Fix compilation warning.
13673
136742008-02-16 Eli Zaretskii <eliz@gnu.org>
13675
13676 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13677 instead of char arrays. Enlarge the size of array passed to
13678 get_token_information.
13679
13680 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13681 warnings.
13682
136832008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13684
13685 * .gdbinit: Don't set `args', it breaks gdb --args.
13686
136872008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13688
13689 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13690 within a narrowed buffer.
13691
136922008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13693
13694 * coding.c (decode_coding_object, encode_coding_object):
13695 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13696
136972008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13698
13699 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13700 hardcoding 1.
13701 (detect_coding_system):
13702 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13703 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13704 * insdel.c (insert_from_gap):
13705 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13706 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13707 (string_to_multibyte):
13708 * character.c (chars_in_text, multibyte_chars_in_text):
13709 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13710
13711 * character.h (FETCH_STRING_CHAR_ADVANCE)
13712 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13713 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13714 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13715
13716 * casefiddle.c (casify_region): Only call after-change and composition
13717 functions on the part of the region that was changed.
13718
13719 * keyboard.c (read_avail_input):
13720 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13721
137222008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13723
13724 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13725 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13726
137272008-02-11 Juanma Barranquero <lekktu@gmail.com>
13728
13729 * w32menu.c (push_submenu_start, push_submenu_end)
13730 (push_left_right_boundary, push_menu_pane, push_menu_item):
13731 * keyboard.c (read_key_sequence): Don't pass args with side effects
13732 to AREF, it fails when compiling with -DENABLE_CHECKING.
13733
137342008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13735
13736 * Makefile.in (${lispsource}international/charprop.el):
13737 Delete this target.
13738
13739 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13740 emacs-unicode-2.
13741
137422008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13743
13744 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13745
137462008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13747
13748 * frame.c (Qnoelisp): New symbol.
13749 (syms_of_frame): Initialize it.
13750 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13751 harmless Elisp code, from a strong `force' from x_connection_closed.
13752 * frame.h (Qnoelisp): Declare.
13753 * xterm.c (x_connection_closed): Pass `noelisp'.
13754
13755 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13756 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13757 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13758 rather than `int' for the type of `type'.
13759
137602008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13761
13762 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13763
13764 * Makefile.in (GNUC): Remove support for gcc-1.x.
13765
137662008-02-10 Richard Stallman <rms@gnu.org>
13767
13768 * lisp.h (ASET): Use AREF, not ASLOT.
13769
137702008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13771
13772 * lisp.h (ASET): Check bounds.
13773
137742008-02-10 Glenn Morris <rgm@gnu.org>
13775
13776 * buffer.c (mode-name): Doc fix.
13777
137782008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13779
13780 * Makefile.in:
13781 * emacs.c:
13782 * gmalloc.c:
13783 * keyboard.c:
13784 * lisp.h:
13785 * m/ibm370aix.h:
13786 * process.c:
13787 * regex.c:
13788 * s/hpux.h:
13789 * sysdep.c:
13790 * sysselect.h:
13791 * systty.h:
13792 * unexec.c:
13793 * w32term.c:
13794 * xsmfns.c:
13795 * xterm.c: Remove code that deals with obsolete variables.
13796
13797 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13798
13799 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13800 nothing else needs it anymore.
13801
138022008-02-09 Eli Zaretskii <eliz@gnu.org>
13803
13804 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13805 instead of unibyte_char_to_multibyte.
13806
138072008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13808
13809 * s/gnu-linux.h: Remove commented out code.
13810
13811 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13812
13813 * Makefile.in: Update what RMS says about using autoconf.
13814 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13815 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13816 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13817 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13818
138192008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13820
13821 * keymap.c (Fkey_description): Move side effect outside of macro call.
13822
13823 * xfaces.c (Finternal_make_lisp_face):
13824 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13825
13826 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13827 (syms_of_fontset): Use ASET.
13828
13829 * fns.c (concat): Move side effect outside of macro call.
13830 (hash_clear): Use ASET.
13831
138322008-02-08 Richard Stallman <rms@gnu.org>
13833
13834 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13835 If FORCE, and frame has a surrogate minibuffer for another frame,
13836 delete the other frame first.
13837
138382008-02-07 Timo Savola <timo.savola@iki.fi>
13839
13840 * xterm.c (x_detect_focus_change): Handle embed client message.
13841 (handle_one_xevent): Ditto.
13842 (handle_one_xevent): If embedded and we get a button press/release,
13843 request focus.
13844 (xembed_set_info, xembed_send_message): New functions.
13845 (x_make_frame_visible): Call xembed_set_info if embedded.
13846 (x_make_frame_invisible): Call xembed_set_info if embedded.
13847 (x_term_init): Initialize Xatom_XEMBED.
13848 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13849 (x_iconify_frame): Ditto.
13850
13851 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13852 (enum xembed_info, enum xembed_message, enum xembed_focus)
13853 (enum xembed_modifier, enum xembed_accelerator): New.
13854 (xembed_set_info, xembed_send_message): Declare.
13855 (FRAME_X_EMBEDDED_P): New.
13856
13857 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13858 gtk_plug_new.
13859
13860 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13861 window ID of a frame.
13862 (x_window): Reparent frame if embedded.
13863 (Fx_create_frame): Don't set border width if embedded.
13864
13865 * emacs.c (USAGE3): Add --parent-id.
13866 (standard_args): Ditto.
13867
138682008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13869
13870 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13871
138722008-02-07 Jim Meyering <meyering@redhat.com>
13873
13874 Use "do...while (0)", not "if (1)...else" in macro definitions.
13875 The latter provokes a warning from gcc about the empty else, when
13876 followed by ";". Also, without that trailing semicolon, it would
13877 silently swallow up any following statement.
13878 * syntax.h (SETUP_SYNTAX_TABLE)
13879 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13880 * buffer.h (DECODE_POSITION): Likewise.
13881 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13882 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13883 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13884 (FETCH_CHAR_ADVANCE): Likewise.
13885 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13886
138872008-02-07 Jim Meyering <meyering@redhat.com>
13888
13889 * lread.c [lint]: Don't include <sys/inode.h>.
13890
138912008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13892
13893 * xselect.c (x_handle_dnd_message):
13894 * xmenu.c (digest_single_submenu, xmenu_show):
13895 * xdisp.c (with_echo_area_buffer_unwind_data)
13896 (format_mode_line_unwind_data, unwind_format_mode_line)
13897 (display_menu_bar):
13898 * eval.c (Ffetch_bytecode):
13899 * doc.c (store_function_docstring):
13900 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13901 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13902 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13903
139042008-02-07 Kenichi Handa <handa@m17n.org>
13905
13906 * ftxfont.c (ftxfont_open): Don't set
13907 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13908
13909 * ftfont.c (ftfont_open): Fix previous change.
13910
139112008-02-06 Jason Rumney <jasonr@gnu.org>
13912
13913 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13914 Use cached metrics for ASCII characters.
13915 (w32font_open_internal): Don't set font's owning_frame.
13916 Cache metrics for ASCII characters.
13917
13918 * w32font.h (struct w32font_info): Add ascii_metrics.
13919 Remove owning_frame.
13920
139212008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13922
13923 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13924 to negative value.
13925
13926 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13927
13928 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13929
13930 * charset.c (syms_of_charset): Set QCtest and Qeq.
13931
139322008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13933
13934 * process.c (Fstart_process):
13935 * callproc.c (Fcall_process): Handle the case where
13936 Funhandled_file_name_directory returns nil.
13937
13938 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13939 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13940 * font.c (check_gstring): Use them and AREF to access the vector before
13941 we know it's really a gstring.
13942 (Ffont_shape_text): Fix typo.
46e722a9 13943 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13944
13945 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13946 Declare.
13947
13948 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13949
139502008-02-05 Jason Rumney <jasonr@gnu.org>
13951
13952 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13953 Set smallest_font_height and smallest_char_width in display info.
13954
139552008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13956
13957 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13958
139592008-02-05 Miles Bader <miles@gnu.org>
13960
13961 * xfaces.c (get_lface_attributes, merge_named_face)
13962 (lookup_named_face, lookup_derived_face, realize_named_face):
13963 Revert 2008-02-01 change by cyd@stupidchicken.com.
13964
139652008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13966
13967 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13968 fallback fonts.
13969 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13970
139712008-02-04 Jason Rumney <jasonr@gnu.org>
13972
13973 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13974 set full_name.
13975 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13976
139772008-02-03 Jason Rumney <jasonr@gnu.org>
13978
13979 * makefile.w32-in (OBJ1): Include font.o here.
13980 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13981
139822008-02-02 Jason Rumney <jasonr@gnu.org>
13983
13984 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13985
139862008-02-01 Jason Rumney <jasonr@gnu.org>
13987
13988 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13989
13990 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13991
139922008-02-01 Andreas Schwab <schwab@suse.de>
13993
13994 * Makefile.in (shortlisp, lisp): Update for rename of
13995 ../lisp/language/myanmar.el.
13996
139972008-02-01 Chong Yidong <cyd@stupidchicken.com>
13998
13999 * xfaces.c (get_lface_attributes): Delete function.
14000 (merge_named_face, lookup_named_face, lookup_derived_face)
14001 (realize_named_face): Call lface_from_face_name directly, and use
14002 the fact that merge_face_vectors does not alter its FROM argument.
14003
140042008-02-01 Jason Rumney <jasonr@gnu.org>
14005
14006 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14007 input in the default locale. Handle non-Unicode multibyte input.
14008
140092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14010
14011 * fontset.c (reorder_font_vector): Exclude nil elements from the
14012 font group. Don't try multiple fonts.
14013 (fontset_font): Adjust for the above change.
14014 (Finternal_char_font): Return nil if the found font doesn't
14015 contain the character ch.
14016
14017 * Makefile.in (lisp, shortlisp): Add cham.el.
14018
140192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14020
14021 * font.h (FONTP): Make it return 1 also for a font-object.
14022
14023 * .gdbinit (xfontset): New function.
14024
14025 * font.c (font_find_for_lface): Check if the character C is
14026 supported or not only for the first font.
14027
14028 * fontset.c (reorder_font_vector): Fix typo.
14029 (fontset_find_font): Don't add a font-spec specifying a script.
14030 Use 0 (not Qt) for the indication of empty font-group. Change the
14031 format of RFONT-DEF. Return Qt if no font in the font-group
14032 support the character.
14033 (fontset_font): Adjust for the above change. If no font was
14034 found the character, remember that.
14035 (face_for_char): Adjust for the change of RFONT-DEF.
14036 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14037 no font for the target.
14038 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14039
140402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14041
14042 * font.c (font_load_for_face): Handle the case that the font in
14043 face->lface is a string.
14044
140452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14046
14047 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14048
140492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14050
14051 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14052 Fix previous change. If the frame is not on a window system,
14053 signal an error.
14054
140552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14056
14057 * coding.c (decode_coding_object, encode_coding_object): Adjust
14058 marker positions after conversion.
14059
14060 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14061
140622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14063
14064 * font.c (font_find_for_lface): Fix the handling of the return
14065 value of font_has_char.
14066 (Ffont_shape_text): Fix previous change.
14067
14068 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14069 (fontset_ref_and_range): Delete it.
14070 (fontset_find_font): Call char_table_ref_and_range instead of
14071 FONTSET_REF_AND_RANGE.
14072 (make_fontset): Don't setup font groups of Latin here.
14073 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14074 (new_fontset_from_font): Make the specified font the default for
14075 all Latin characters.
14076
140772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14078
14079 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14080 is on a window system before accessing the fontset of the frame.
14081
140822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14083
14084 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14085
14086 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14087 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14088
14089 * font.c (Ffont_shape_text): If the font driver doesn't have a
14090 shaper function, make zero-width glyphs to have at least one-pixel
14091 width. Fix setting of `to' field of glyphs.
14092
140932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14094
14095 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14096 glyphs.
14097
14098 * font.h (struct font_driver): Improve docstring of member `shape'.
14099
141002008-02-01 Kenichi Handa <handa@m17n.org>
14101
14102 * composite.c (syms_of_composite): Fix docstring of
14103 auto-composition-function.
14104
14105 * font.h (LGLYPH_SIZE): New macro.
14106
14107 * font.c (Ffont_fill_gstring): Stop filling when a character not
14108 supported by the font is found.
14109 (Ffont_shape_text): When a shape callback function returns nil,
14110 try at most two more times with larger gstring.
14111 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14112
14113 * xdisp.c (handle_auto_composed_prop): Change the argument to
14114 auto-composition-function.
14115
14116 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14117 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14118 Lispy glyph and store it in the lgstring.
14119
14120 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14121
14122 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14123
141242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14125
14126 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14127
14128 * fontset.c (Vfont_encoding_charset_alist): New variable.
14129 (syms_of_fontset): DEFVAR it.
14130 (reorder_font_vector, fontset_find_font): Optimize for the case of
14131 no need of reordering.
14132 (face_for_char): Map the charset property by
14133 Vfont_encoding_charset_alist.
14134
141352008-02-01 Jason Rumney <jasonr@gnu.org>
14136
14137 * w32font.c (logfonts_match): Don't check adstyle here.
14138 (font_matches_spec): Check here against physical font instead.
14139 (add_font_entity_to_list): Avoid some substitutions.
14140
14141 * font.c (font_parse_fcname): Default weight and slant to normal.
14142 (font_score): Prefer normal fonts if weight or slant unspecified.
14143 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14144 match freetype scores.
14145
141462008-02-01 Jason Rumney <jasonr@gnu.org>
14147
14148 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14149 font, as it may have been deleted.
14150 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14151 most common hyphenless variation.
14152 (logfonts_match): Check generic family.
14153 (font_matches_spec): Don't check generic family here.
14154 (fill_in_logfont): Set generic family based on adstyle.
14155
14156 * w32font.h (w32font_get_cache): Update declaration.
14157
141582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14159
14160 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14161
14162 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14163 If none of the new drivers are available, call font_update_drivers
14164 with the old drivers.
14165
14166 * w32font.c (w32font_get_cache): Adjust the argument type.
14167
14168 * xfont.c (xfont_get_cache): Adjust the argument type.
14169
14170 * font.h (struct font_driver): Change argument type of get_cache.
14171
14172 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14173
14174 * font.c (Ffont_get): Fix arguments to Fassoc.
14175 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14176 (font_clear_cache): New function.
14177 (font_list_entities, font_matching_entity): Use font_get_cache.
14178 (font_update_drivers): Call font_clear_cache when finishing a driver.
14179
14180 * fontset.c (fontset_find_font): Fix previous change.
14181
141822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14183
14184 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14185 dpyinfo->font_table.
14186 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14187 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14188
14189 * font.c (font_at): Handle the case that the arg C is negative.
14190 Handle the unibyte case.
14191 (Ffont_at): Call font_at with the arg C -1.
14192
14193 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14194 the position here, and call font_at with the arg C -1.
14195 Don't check the range of the existing composition at the point.
14196
141972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14198
14199 * fontset.c (fontset_add): New args charset_id and family.
14200 Change caller.
14201 (load_font_get_repertory, fontset_find_font): Assume that
14202 font_spec is always a font-spec object.
14203 (Fset_fontset_font): Always store a font-spec object in a fontset.
14204
14205 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14206 instead of get_property_and_range.
14207
142082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14209
14210 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14211 (xftfont_open): Don't keep locking face.
14212 (xftfont_close): Don't unlock face.
14213 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14214
14215 * fontset.c (fontset_find_font): Don't prefer a font of
14216 supplementary charset.
14217
142182008-02-01 Kenichi Handa <handa@m17n.org>
14219
14220 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14221 script, langsys_tag to langsys, new member script.
14222 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14223 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14224 listing to the script specified in that property. Fix arg to
14225 OTF_check_features.
14226
142272008-02-01 Jason Rumney <jasonr@gnu.org>
14228
14229 * w32font.h: New file.
14230
14231 * w32font.c: Include it.
14232 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14233 (w32font_open): Set owning_frame.
14234 (w32font_text_extents): Use owning_frame.
14235 (struct font_callback_data): Add opentype_only field.
14236 (add_font_entity_to_list): Use it to filter fonts.
14237 Don't check against full name.
14238 (w32font_list_internal): New function.
14239 (w32font_list): Use it.
14240 (w32font_match_internal): New function.
14241 (w32font_match): Use it.
14242 (w32font_open_internal): New function.
14243 (w32font_open): Use it.
14244 (w32font_get_cache, w32font_close, w32font_has_char)
14245 (w32font_encode_char, w32font_text_extents, w32font_draw):
14246 Make non-static.
14247
14248 * makefile.w32-in (w32font.o): Depend on w32font.h.
14249
142502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14251
14252 * charset.c (Fdefine_charset_internal): Record a supplementary
14253 charset at the tail of Vcharset_order_list.
14254
14255 * font.c (Ffont_shape_text): Fix the return value.
14256
14257 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14258
14259 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14260
142612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14262
14263 * ftfont.c (struct OpenTypeSpec): New struct.
14264 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14265 (ftfont_get_open_type_spec): New function.
14266 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14267
14268 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14269
142702008-02-01 Jason Rumney <jasonr@gnu.org>
14271
14272 * w32font.c (add_font_entity_to_list): Compare only the beginning
14273 of full name.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14278 Never return HANDLED_RECOMPUTE_PROPS.
14279
142802008-02-01 Kenichi Handa <handa@m17n.org>
14281
14282 * font.c (font_gstring_produce): Delete it.
14283
14284 * composite.h (COMPOSITION_METHOD):
14285 Handle COMPOSITION_WITH_GLYPH_STRING.
14286
142872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14288
14289 * xfont.c (Qx): Delete.
14290 (syms_of_xfont): Don't initialize Qx.
14291
14292 * composite.h (enum composition_method):
14293 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14294
142952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14296
14297 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14298 (choose_face_font): Accept new form of font-spec.
14299
14300 * frame.h (font_driver_list): Declare it unconditionally.
14301 (struct frame): Define members font_driver_list and font_data_list
14302 unconditionally.
14303
14304 * fontset.c: Include "font.h" unconditionally.
14305 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14306 (Fset_fontset_font): Accept a font-spec object.
14307
14308 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14309 PIXEL_SIZE part a wild card.
14310
14311 * dispextern.h (struct glyph_string): Define members clip and
14312 num_clips unconditionally.
14313 (struct face): Define members font_info and extra unconditionally.
14314
14315 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14316 ftfont_info only when HAVE_LIBOTF is defined.
14317
143182008-02-01 Andreas Schwab <schwab@suse.de>
14319
14320 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14321 and end.
14322
143232008-02-01 Jason Rumney <jasonr@gnu.org>
14324
14325 * w32font.c (w32font_driver): Add new fields.
14326
143272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14328
14329 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14330 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14331 (LIBES): Add @M17N_FLT_CFLAGS@.
14332
14333 * composite.c (compose_text): Don't treat the new style
14334 composition specially.
14335
14336 * emacs.c (main): Call syms_of_font unconditionally.
14337
14338 * font.h (FONT_ENTITY_NOT_LOADABLE)
14339 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14340 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14341 (struct font_driver): New member shape.
14342 (font_registry_charsets): Extern it.
14343 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14344 (font_otf_capability, font_drive_otf): Delete their externs.
14345
14346 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14347 (font_charset_alist, font_registry_charsets): Move from xfont.c
14348 and rename.
14349 (font_prop_validate_otf): New function.
14350 (font_property_table): Register it for QCotf.
14351 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14352 (font_drive_otf): Delete.
14353 (font_prepare_composition): New arg F. Adjust for the change of
14354 lispy gstring.
14355 (font_find_for_lface): New arg C.
14356 (font_load_for_face): Adjust for the change of font_find_for_lface.
14357 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14358 lispy gstring.
14359 (Ffont_shape_text): New function.
14360 (Fopen_font): If the font size is not given, use 12-pixel.
14361 (Ffont_at): New arg STRING.
14362 (syms_of_font): Initalize font_charset_alist.
14363 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14364 conditionally.
14365
14366 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14367 fonts of the same font-spec. Change the format of RFONT-DEF.
14368 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14369 Adjust for the change of RFONT-DEF.
14370 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14371
14372 * ftfont.h: New file.
14373
14374 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14375 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14376 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14377 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14378 font_otf_capability and font_drive_otf, set ftfont_shape.
14379 (ftfont_list): Adjust for the change of :otf property value.
14380 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14381 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14382 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14383 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14384 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14385 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14386
14387 * w32term.c (x_draw_composite_glyph_string_foreground):
14388 Adjust for the change of lispy gstring.
14389
14390 * xdisp.c (handle_composition_prop): Adjust for the change of
14391 lispy gstring. Call a function for auto-composition with the
14392 third arg it->window.
14393 (fill_composite_glyph_string): Adjust for the change of lispy string.
14394 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14395
14396 * xfaces.c (set_font_frame_param): Adjust for the change of
14397 font_find_for_lface.
14398
14399 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14400 (xfont_registry_charsets): Likewise. Change caller.
14401 (syms_of_xfont): Don't handle x_font_charset_alist.
14402
14403 * xftfont.c: Include "ftfont.h".
14404 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14405 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14406 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14407 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14408 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14409 Set xftfont_driver.shape to xftfont_shape.
14410
14411 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14412 the change of lispy gstring.
14413
144142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14415
14416 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14417
144182008-02-01 Jason Rumney <jasonr@gnu.org>
14419
14420 * w32font.c (w32font_draw): Fill background manually.
14421
144222008-02-01 Jason Rumney <jasonr@gnu.org>
14423
14424 * font.c (Qfontp): Remove unused symbol.
14425 (QCantialias): New symbol.
14426 (syms_of_font): Define it.
14427 (font_property_table): Set a validator for QCantialias.
14428
14429 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14430 Define if not already.
14431 (QCfamily): Share with xfaces.c.
14432 (Qstandard, Qsubpixel, Qnatural): New symbols.
14433 (syms_of_w32font): Define them. Don't define QCfamily here.
14434 (w32_antialias_type, lispy_antialias_type): New functions.
14435 (w32_enumfont_pattern_entity): New arg requested_font.
14436 Set antialias parameter if non-default was requested.
14437 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14438
144392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14440
14441 * lread.c (read1): Undo the previous change.
14442
144432008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14444
14445 * frame.c (Fdelete_frame): Call font_update_drivers only when
14446 USE_FONT_BACKEND is defined.
14447
144482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14449
14450 * font.h (struct font_bitmap): New member bits_per_pixel.
14451 (struct font_driver): New members start_for_frame and end_for_frame.
14452 (struct font_data_list): New struct.
14453 (font_put_frame_data, font_get_frame_data): Extern them.
14454
14455 * frame.h (struct frame): New member font_data_list.
14456
14457 * font.c (font_update_drivers): Call driver->start_for_frame and
14458 driver->end_for_frame at proper timings.
14459 (font_put_frame_data, font_get_frame_data): New functions.
14460 (Ffont_spec): Add usage in the docstring.
14461
14462 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14463 (Fdelete_frame): Call font_update_drivers.
14464
14465 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14466 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14467 (xftfont_get_xft_draw): New function.
14468 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14469 (xftfont_end_for_frame): New function.
14470 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14471
14472 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14473 Change argument. Cache GCs in the per-frame data.
14474 (struct ftxfont_frame_data): New struct.
14475 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14476 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14477 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14478 (ftxfont_end_for_frame): New function.
14479 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14480
14481 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * xselect.c (Vselection_coding_system)
14486 (Vnext_selection_coding_system): Delete them.
14487 (syms_of_xselect): Don't declare selection-coding-system and
14488 next-selection-coding-system. They are declared in select.el.
14489
144902008-02-01 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14493
14494 * w32fns.c: Include imm.h.
14495 (get_composition_string_fn, get_ime_context_fn): New optional
14496 system functions.
14497 (globals_of_w32fns): Load them from imm32.dll.
14498 (ignore_ime_char): New flag.
14499 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14500 WM_IME_ENDCOMPOSITION messages.
14501
14502 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14503 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14504
145052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14506
14507 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14508 (READCHAR_REPORT_MULTIBYTE): New macro.
14509 (readchar): New 2nd arg MULTIBYTE.
14510 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14511 Make symbol's name multibyte according to the multibyteness of the
14512 source.
14513
145142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14515
14516 * xfaces.c (face_for_overlay_string): Call lookup_face with
14517 correct arguments (fix of synching with the trunk).
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14522 (font_prop_validate_non_neg, font_prop_validate_spacing):
14523 Delete argument prop_index.
14524 (font_property_table): Change arguments to validater. Change Callers.
14525 (font_lispy_object): Delete.
14526 (font_at): Use font_find_object instead fo font_lispy_object.
14527
145282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14529
14530 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14531 and file names.
14532
145332008-02-01 Jason Rumney <jasonr@gnu.org>
14534
14535 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14536 (font_matches_spec): Remove debug output.
14537 (add_font_entity_to_list): Avoid using substituted fonts.
14538
145392008-02-01 Jason Rumney <jasonr@gnu.org>
14540
14541 * doc.c (Fsnarf_documentation):
14542 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14543
145442008-02-01 Miles Bader <miles@gnu.org>
14545
14546 * dispextern.h (struct glyph_row): Only define "clip" field if
14547 HAVE_WINDOW_SYSTEM is defined.
14548
145492008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14550
14551 Fix up multi-tty merge.
14552
14553 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14554 and indentation.
14555
14556 * xfaces.c (free_realized_face, clear_face_gcs):
14557 Include font_done_for_face in the input_blocked section, just in case.
14558
14559 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14560 (get_char_face_and_encoding): Undo last change and remove the *other*
14561 duplicate definition (i.e. keep the one that's better scoped and that
14562 includes code for the font-backend).
14563
14564 * terminal.c (create_terminal): Default keyboard_coding to
14565 `no-conversion' and terminal_coding to `undecided'.
14566
14567 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14568
14569 * fontset.c (free_realized_fontsets): Check that the table entry does
14570 contain a fontset before trying to compare it to `base'.
14571
14572 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14573 syms_of_charset, and syms_of_coding earlier because init_window_once
14574 now needs Vcoding_system_hash_table to be setup.
14575
14576 * coding.h (default_buffer_file_coding): Remove.
14577
14578 * coding.c (default_buffer_file_coding): Remove.
14579 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14580 than ->symbol, and use the terminal-local coding system.
14581 (syms_of_coding): Don't setup the coding-systems that are not
14582 terminal-local.
14583 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14584
14585 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14586 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14587
14588 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14589 in chartab.c and were re-added here by mistake.
14590 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14591
14592 * doc.c (Fsnarf_documentation):
14593 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14594 src to etc.
14595
14596 * ChangeLog.10: Add mistakenly removed entry.
14597
145982008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14599
14600 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14601
146022008-02-01 Miles Bader <miles@gnu.org>
14603
14604 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14605 Add extra args to FACE_FOR_CHAR.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14610 in sequence.
14611
14612 * chartab.c (map_sub_char_table, map_char_table): If the range
14613 contains just one character, call the function with that character
14614 even if the depth is not 3.
14615
146162008-02-01 Jason Rumney <jasonr@gnu.org>
14617
14618 * w32font.c (w32font_text_extents): Calculate metrics for the
14619 whole string.
14620
146212008-02-01 Jason Rumney <jasonr@gnu.org>
14622
14623 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14624
146252008-02-01 Jason Rumney <jasonr@gnu.org>
14626
14627 * w32term.c (x_set_glyph_string_clipping): Use
14628 get_glyph_string_clip_rects.
14629 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14630 Adjust for the change of struct glyph_string.
14631
14632 * w32font.c (w32font_draw): Do clipping here.
14633
146342008-02-01 Kenichi Handa <handa@m17n.org>
14635
14636 * xftfont.c (xftfont_draw): Adjust for the change of struct
14637 glyph_string.
14638
14639 * xterm.c (x_set_glyph_string_clipping): Use
14640 get_glyph_string_clip_rects.
14641 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14642 Adjust for the change of struct glyph_string.
14643
14644 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14645 the resulting clip(s}.
14646 (expose_overlaps): Add arg r. Change callers. Set it to
14647 row->clip temporarily.
14648 (expose_window): Redraw rows overlapping the exposed area.
14649
14650 * dispextern.h (struct glyph_row): New member clip.
14651 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14652 clip_height, new member clip, and num_clips.
14653
146542008-02-01 Kenichi Handa <handa@m17n.org>
14655
14656 * data.c (Fchar_or_string_p): Fix docstring.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14661 create a temporary XftDraw object.
14662
146632008-02-01 Kenichi Handa <handa@m17n.org>
14664
14665 * font.c (Ffontp): Fix docstring.
14666
14667 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14668 strong evidence of ISO-2022.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14673 SYNTAX_ENTRY_FOLLOW_PARENT.
14674
146752008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14676
14677 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14678 its type.
14679 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14680 Update to the new type of weak_hash_tables and next_weak.
14681
14682 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14683 a plain C pointer to Lisp_Hash_Table.
14684
14685 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14686 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14687 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14688 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14689 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14690 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14691 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14692 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14693 (GC_EQ): Remove since they've been identical to their non-GC_
14694 alter-egos ever since the markbit was eradicated.
14695
14696 * alloc.c:
14697 * buffer.c:
14698 * buffer.h:
14699 * data.c:
14700 * fileio.c:
14701 * filelock.c:
14702 * fns.c:
14703 * frame.h:
14704 * lisp.h:
14705 * macterm.c:
14706 * print.c:
14707 * process.c:
14708 * w32fns.c:
14709 * w32menu.c:
14710 * w32term.c:
14711 * xfns.c:
14712 * xmenu.c:
14713 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * chartab.c (map_sub_char_table): Make it work for the top-level
14718 char-table. Fix handling of parent char-table.
14719 (map_char_table): Adjust for the above change.
14720
147212008-02-01 Jason Rumney <jasonr@gnu.org>
14722
14723 * w32font.c (Qgdi): Rename from Qw32.
14724
147252008-02-01 Jason Rumney <jasonr@gnu.org>
14726
14727 * w32bdf.c (get_quoted_string): Make function static.
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14732 bigger ascent and descent than those of the font, use them as
14733 font's ascent and descent.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * Makefile.in (${lispsource}international/charprop.el): Move this
14738 target within "#ifdef HAVE_UNIDATA" and "#endif".
14739
147402008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14743 (shortlisp): Add ../lisp/language/tai-viet.el.
14744
147452008-02-01 Ulrich Mueller <ulm@gentoo.org>
14746
14747 * Makefile.in (${lispsource}international/charprop.el): Depend on
14748 temacs${EXEEXT}.
14749
147502008-02-01 Jason Rumney <jasonr@gnu.org>
14751
14752 * w32font.c (w32font_close): Delete the GDI font object.
14753
14754 * w32menu.c: Include character.h.
14755
14756 * w32proc.c: Likewise.
14757
14758 * w32select.c: Likewise.
14759
14760 * makefile.w32-in (w32proc.o): Depend on character.h.
14761
147622008-02-01 Jason Rumney <jasonr@gnu.org>
14763
14764 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14765
14766 * w32menu.c (syms_of_w32menu): Likewise.
14767
14768 * w32proc.c (syms_of_ntproc): Likewise.
14769
14770 * w32select.c (syms_of_w32select): Likewise.
14771
14772 * w32term.c (syms_of_w32term): Likewise.
14773
147742008-02-01 Jason Rumney <jasonr@gnu.org>
14775
14776 * w32font.c (w32font_draw): Delete brush after using it.
14777
147782008-02-01 Jason Rumney <jasonr@gnu.org>
14779
14780 * w32font.c (w32font_open): Don't set font_idx.
14781 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14782 to font settings.
14783 (w32font_draw): Fill background explicitly.
14784
147852008-02-01 Jason Rumney <jasonr@gnu.org>
14786
14787 * w32term.c (w32_initialize): Don't call w32font_initialize.
14788
14789 * w32font.c (w32font_info): Remove subranges.
14790 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14791 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14792 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14793 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14794 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14795 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14796 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14797 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14798 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14799 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14800 New symbols.
14801 (font_callback_data): New struct.
14802 (w32font_list, w32font_match): Use it.
14803 (w32font_open): Don't populate subranges.
14804 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14805 (w32font_encode_char): Always return unicode code-point as-is.
14806 (w32font_text_extents): Supply a transformation matrix to
14807 GetGlyphOutline. Never look up by glyph index. Avoid looping
14808 twice. Use unicode version of GetTexExtentPoint32 instead of
14809 glyph index version.
14810 (set_fonts_frame): Remove.
14811 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14812 set frame parameter. Use backward compatible fake foundries.
14813 Save generic family in extra slot under QCfamily. Make width slot
14814 constant. Save QCspacing value. Save list of scripts instead of
14815 binary subranges.
14816 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14817 (add_font_entity_to_list): Use font_callback_data struct. Filter
14818 unwanted fonts.
14819 (add_one_font_entity_to_list): Use font_callback_data struct.
14820 (w32_registry): Default to iso10646_1.
14821 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14822 string font registries. Don't fill in font name if it is a generic
14823 family name, fill family instead. Use spacing, family and script
14824 extra info to fill pitch, family and charset fields.
14825 (list_all_matching_fonts): Use font_callback_data struct.
14826 (unicode_range_for_char): Remove.
14827 (font_supported_scripts): New function.
14828 (w32font_initialize): Remove.
14829 (syms_of_w32font): Update which symbols are defined.
14830
148312008-02-01 Jason Rumney <jasonr@gnu.org>
14832
14833 * font.c (font_pixel_size): Reverse assq_no_quit args.
14834
14835 * w32term.h (FONT_WIDTH): Report max width, not average.
14836 (FONT_MAX_WIDTH): Remove.
14837 (FONT_AVG_WIDTH): New macro.
14838
14839 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14840 redefinition of FONT_WIDTH.
14841
14842 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14843 (w32_cache_char_metrics): Use FONT_WIDTH.
14844
14845 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14846
148472008-02-01 Jason Rumney <jasonr@gnu.org>
14848
14849 * w32font.c (w32font_open): Make lfHeight negative.
14850
14851 * w32fns.c (x_default_font_parameter): Use new style font name.
14852 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14853
148542008-02-01 Jason Rumney <jasonr@gnu.org>
14855
14856 * w32font.c (QCsubranges): New symbol.
14857 (w32font_open, w32font_has_char): Get subranges from subproperty
14858 of extra.
14859 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14860 (syms_of_w32font): Define :subranges symbol.
14861
14862 * font.c (font_put_extra): Expose externally.
14863
14864 * font.h (font_put_extra): Move declaration from font.c.
14865
14866 * font.c (Ffont_get): Use font driver to determine otf capability.
14867 (adjust_anchor): Check if driver defines anchor_point before using.
14868
14869 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14870 (w32font_draw): Use options.
14871 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14872 Fix detection of truetype fonts.
14873 (registry_to_w32_charset): Handle charsets other than iso8859-1
14874 expressed as lisp symbols.
14875 (w32_registry): Express charset as lisp symbol.
14876 (fill_in_logfont): Reverse pixel and point height logic.
14877 Don't set width here. Set quality to default.
14878
14879 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14880 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14881
14882 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14883 Remove redundant loop and allocation.
14884
14885 * makefile.w32-in (font.o, w32font.o): New objects.
14886 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14887 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14888
14889 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14890 STORE_XCHARB a valid l-value.
14891
14892 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14893 calculations for non-Truetype fonts.
14894 (x_draw_glyph_string): Sync with xterm.c.
14895 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14896 Remove redundant code.
14897 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14898
14899 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14900 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14901
14902 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14903 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14904
14905 * w32font.c: New file for w32 font backend.
14906
149072008-02-01 Kenichi Handa <handa@m17n.org>
14908
14909 * term.c: Don't include "buffer.h" twice.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * character.c (Funibyte_string): New function.
14914 (syms_of_character): Defsubr it.
14915
149162008-02-01 Jason Rumney <jasonr@gnu.org>
14917
14918 * w32term.c [USE_FONT_BACKEND]:
14919 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14920 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14921 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14922 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14923 (x_free_frame_resources): Sync with xterm.c.
14924
149252008-02-01 Andreas Schwab <schwab@suse.de>
14926
14927 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14928 char-table size.
14929
149302008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14933
149342008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14937 font_otf_gpos, add font_drive_otf.
14938
14939 * fontset.c (fontset_find_font): Pay attention to font size
14940 specified for a font.
14941 (reorder_font_vector): Check contents of font_def.
14942
14943 * font.c (struct otf_list): Delete it.
14944 (otf_list): Make it a lisp variable.
14945 (otf_open): Use lispy otf_list.
14946 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14947 (check_otf_features): New function.
14948 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14949 New functions.
14950 (font_drive_otf): New function merging font_otf_gsub and
14951 font_otf_gpos.
14952 (font_open_for_lface): New arg spec. Change argument order.
14953 (font_load_for_face): Adjust for the change of font_open_for_lface.
14954 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14955 Ffont_otf_gpos.
14956 (syms_of_font): Staticpro otf_list. Delete defsubr of
14957 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14958
14959 * xfaces.c (set_font_frame_param): Adjust for the change of
14960 font_open_for_lface.
14961
14962 * font.h (font_open_for_lface): Adjust prototype.
14963 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14964 member otf_drive.
14965 (font_otf_gsub, font_otf_gpos): Delete externs.
14966 (font_drive_otf): Extern it.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * font.c (font_at): If the window W is not on a window system,
14971 return Qnil.
14972
14973 * coding.c (produce_chars, encode_coding): Don't call
14974 insert_from_gap if no characters to produce.
14975
149762008-02-01 Kenichi Handa <handa@m17n.org>
14977
14978 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14979 Fclear_face_cache.
14980
14981 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14982
149832008-02-01 Miles Bader <miles@gnu.org>
14984
14985 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14986 Parse "--disable-font-backend" option.
14987 (standard_args): Add "--disable-font-backend" option.
14988
149892008-02-01 Kenichi Handa <handa@m17n.org>
14990
14991 * fontset.c (fontset_find_font): New function.
14992 (fontset_font): Use fontset_find_font.
14993 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14994 Register the specified font for all Latin characters.
14995 (new_fontset_from_font): Register the specified font for all Latin
14996 characters.
14997 (dump_fontset): For a realized fontset, include the base fontset
14998 name in the returned vector.
14999
150002008-02-01 Kenichi Handa <handa@m17n.org>
15001
15002 * character.h (CHAR_STRING): Cast C to unsigned on calling
15003 char_string.
15004
15005 * character.c (char_string): Type of arg C changed to unsigned.
15006 Signal an error if C is an invalid character code.
15007
15008 * editfns.c (general_insert_function, Fchar_to_string):
15009 Use CHARACTERP, not INTEGERP.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15014 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15015
15016 * regex.c (analyse_first): Fix for multibyte characters in "case
15017 charset:" and "case categoryspec:".
15018
150192008-02-01 Andreas Schwab <schwab@suse.de>
15020
15021 * Makefile.in (LIBES): Move standard libraries to the end.
15022
150232008-02-01 Kenichi Handa <handa@m17n.org>
15024
15025 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15026 nonzero, don't shrink the buffer nextb.
15027
15028 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15029
15030 * coding.c (coding_alloc_by_making_gap): New arg offset.
15031 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15032 offset.
15033 (decode_coding_iso_2022): Update coding->safe_charsets.
15034 (decode_coding_gap): Temporarily set
15035 current_buffer->text->inhibit_shrinking to 1.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15040 indexing into elements of s->cmp and s->char2b.
15041
150422008-02-01 Juanma Barranquero <lekktu@gmail.com>
15043
15044 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15045
150462008-02-01 Kenichi Handa <handa@m17n.org>
15047
15048 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15049 target_multibyte instead of multibyte.
15050 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15051 (bcmp_translate): Change the argument name from multibyte to
15052 target_multibyte.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 These changes are to compile a regexp into a pattern that can be
15057 used both for multibyte and unibyte targets.
15058
15059 * Makefile.in (search.o): Depend on charset.h.
15060
15061 * character.c (multibyte_char_to_unibyte_safe): New function.
15062
15063 * search.c: Include "charset.h".
15064 (compile_pattern_1): Delete argument multibyte. Don't set
15065 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15066 (compile_pattern): Don't compare cp->buf.target_multibyte.
15067 Compare cp->buf.charset_unibyte.
15068 (compile_pattern): Set cp->buf.target_multibyte.
15069
15070 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15071
15072 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15073
15074 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15075 multibyte. Change callers.
15076 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15077 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15078 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15079 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15080 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15081 (regex_compile): Make the compiled pattern usable both for
15082 multibyte and unibyte targets.
15083 (analyse_first): Make the fastmap usable both for multibyte and
15084 unibyte targets.
15085 (TRANSLATE_VIA_MULTIBYTE): Delete.
15086 (re_match_2_internal): Pay attention to the case that the
15087 multibyteness of bufp and target may be different.
15088
150892008-02-01 Kenichi Handa <handa@m17n.org>
15090
15091 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15092 empty box occupy at least one column width.
15093
150942008-02-01 Miles Bader <miles@gnu.org>
15095
15096 * Makefile.in: Remove redundant HAVE_XFT clause.
15097
150982008-02-01 Kenichi Handa <handa@m17n.org>
15099
15100 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15105 being nil.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15110
151112008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * search.c (simple_search): Fix previous change.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * xftfont.c (ftfont_font_format): Extern declaration.
15122
15123 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15124
15125 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15126 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15127
15128 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15129 (ftfont_font_format): Fix previous change.
15130
15131 * font.h (Ffont_xlfd_name): EXFUN it.
15132
15133 * font.c (font_parse_xlfd): Fix the array size of `f'.
15134 (register_font_driver): Use EQ to compare driver->type.
15135
15136 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15137 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15138 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15143 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * xfont.c (xfont_open): Set font->format.
15148
15149 * xftfont.c (xftfont_open): Set font->format.
15150
15151 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15152 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15153 (ftfont_open): Set font->format.
15154 (ftfont_font_format): New function.
15155
15156 * font.h (struct font): New member format.
15157
15158 * font.c (Qopentype): New variable.
15159 (syms_of_font): Defsym it.
15160 (Fquery_font): Change the format of the last element of the return
15161 value.
15162
151632008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15166 last resort.
15167
151682008-02-01 Kenichi Handa <handa@m17n.org>
15169
15170 * coding.c (detect_coding_charset): Fix detection of multi-byte
15171 charset.
15172
151732008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15174
15175 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * xdisp.c (get_next_display_element): Set it->face_id for the
15180 first component of a composition.
15181 (x_produce_glyphs): Check if the font is changed or not for composition.
15182
151832008-02-01 Kenichi Handa <handa@m17n.org>
15184
15185 * fontset.c (Qlatin): New variable.
15186 (syms_of_fontset): Define it as a lisp symbol.
15187 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * font.c (font_unparse_fcname): Pay attention to the case that
15192 some of font property is a null string.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * term.c: Include "composite.h".
15197 (encode_terminal_code): Output all components of composition.
15198 Check the size of encode_terminal_src.
15199 (produce_glyphs): For composition, call produce_composite_glyph.
15200 (append_composite_glyph, produce_composite_glyph): New functions.
15201
15202 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15203 is not found, get font_info from the current ascii face.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15208 buffer-file-name to Qnil before calling insert_from_buffer.
15209
15210 * font.c (font_unparse_fcname): Pay attention to the case that
15211 foundry is a null string.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15216
15217 * font.c (Qunicode_sip): New variable.
15218 (syms_of_font): Declare it as a Lisp symbol.
15219
15220 * font.h (Qunicode_sip): Extern it.
15221
152222008-02-01 Kenichi Handa <handa@m17n.org>
15223
15224 * composite.c (get_composition_id): Pay attention to TAB component.
15225
15226 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15227 TAB. Adjust for the change of s->char2b which always points to
15228 the first element of allocated memory.
15229
15230 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15231
15232 * xdisp.c (handle_composition_prop): Set it->c to the first
15233 non-TAB component.
15234 (fill_composite_glyph_string): Change argument.
15235 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15236 (x_produce_glyphs): Fix handling of left/right padding.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * coding.c (detect_coding_system): Fix for handling off
15241 inhibit_iso_escape_detection. Fix for the case that no coding
15242 system is defined for a specific coding category.
15243
152442008-02-01 Kenichi Handa <handa@m17n.org>
15245
15246 * font.c (font_matching_entity): Delete unused local var.
15247
15248 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15249 opening a font.
15250
15251 * fileio.c (Finsert_file_contents): On recovering a file, assume
15252 Unix-like eol.
15253 (choose_write_coding_system): On auto-saving a file, force
15254 Unix-like eol.
15255
15256 * coding.c (setup_coding_system): Fix setting of
15257 coding->common_flags based on eol_type.
15258 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15259 inherit from it.
15260
152612008-02-01 Kenichi Handa <handa@m17n.org>
15262
15263 * alloc.c (NSTATICS): Increas to 0x600.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15268 (ftfont_list): Don't check :name property.
15269 (ftfont_match): New function.
15270 (ftfont_pattern_entity): If the pattern doesn't contain
15271 FC_SPACING, don't assume FC_MONO.
15272
15273 * font.h (struct font_driver): New member `match'.
15274 (font_update_drivers): Adjust prototype.
15275
15276 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15277 property of FONT.
15278 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15279 them unconditionally.
15280 (font_matching_entity): New function.
15281 (font_open_by_name): Try font_matching_entity if exact match is
15282 not found.
15283 (font_update_drivers): Delete the arg FONT. Return a list of
15284 actually used backends. Don't free faces, font caches here.
15285 Don't store data in frame parameters. Don't call x_set_font.
15286 (Ffont_spec): Store :name property as is.
15287 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15288 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15289 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15290 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15291 Call font->driver->otf_gsub instead of font_otf_gsub.
15292
15293 * frame.c (x_set_font_backend): Do more works that were done in
15294 font_update_drivers before.
15295
15296 * xfont.c (xfont_match): New function.
15297 (xfont_driver): Set xfont_driver.match to xfont_match.
15298 (xfont_draw): Set font in GC if necessary.
15299
15300 * ftxfont.c (ftxfont_match): New function.
15301 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15302
15303 * xftfont.c (xftfont_match): New function.
15304 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 * font.h (struct font): New member scalable.
15309 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15310 (font_otf_gsub): Adjust prototype.
15311
15312 * font.c (font_otf_capability): Fix handling of the default langsys.
15313 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15314 Check the contents of SPEC.
15315 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15316 (check_gstring): New function.
15317 (REPLACEMENT_CHARACTER): New macro.
15318 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15319 glyph codes of GSTRING.
15320 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15321 (font_prepare_composition): Set cmp->glyph_len.
15322 (font_open_entity): Set font->scalable.
15323 (Ffont_get): Handle :otf property.
15324 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15325 functions.
15326 (Fquery_font): Use font->font.full_name.
15327 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15328 Sfont_otf_alternates.
15329
15330 * ftfont.c (ftfont_open): Set font->font.full_name and
15331 font->font.name properly. Fix calculation of font->font.height
15332 and font->min_width.
15333
15334 * ftxfont.c (ftxfont_create_gcs): New function.
15335 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15336 (ftxfont_draw_backgrond): Fix filling region.
15337 (ftxfont_default_fid): New function.
15338 (ftxfont_open): Set xfont->fid to the return value of
15339 ftxfont_default_fid.
15340 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15341 (ftxfont_done_face): Free only GCs that are created by
15342 ftxfont_create_gcs.
15343 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15344
15345 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15346 Clip to src->width, etc (not src->clip_XXX).
15347
15348 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15349 FontBackend frame parameter.
15350
153512008-02-01 Kenichi Handa <handa@m17n.org>
15352
15353 * font.h (struct font_driver_list): New member `on'.
15354 (Fclear_font_cache): EXFUN it.
15355 (font_update_drivers): Extern it.
15356
15357 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15358 (font_list_entities): Check driver_list->on.
15359 (register_font_driver): Initalize `on' member to 0.
15360 (font_update_drivers): New function.
15361 (Fclear_font_cache): Check driver_list->on.
15362
15363 * frame.h (Qfont_backend): Extern it.
15364 (x_set_font_backend): Extern it.
15365
15366 * frame.c (Qfont_backend): New variable.
15367 (frame_parms): New element for font-backend.
15368 (x_set_font_backend): New function.
15369
15370 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15371 FontBackend frame parameter.
15372 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15373 x_set_font_backend.
15374
15375 * xfont.c (xfont_list): Don't try listing by :name property if the
15376 name is not for XLFD.
15377
153782008-02-01 Kenichi Handa <handa@m17n.org>
15379
15380 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15381 (LGLYPH_SET_TO): New macros.
15382 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15383 element of G is vector or not.
15384 (font_at): Extern it.
15385
15386 * font.c: Include window.h.
15387 (font_lispy_object): New function.
15388 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15389 end of valid glyph.
15390 (font_close_object): Fix getting (struct font *).
15391 (font_at): New function.
15392 (Ffont_get): If FONT is a font-object, get entity from it.
15393 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15394 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15395 range check.
15396 (Ffont_at): New function.
15397 (syms_of_font): Defsubr Sfont_at.
15398
15399 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15400 before the entry for Qcomposition.
15401 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15402 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15403 the font in gstring.
15404 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15405 LGLYPH_FORM (g) to detect the end of valid glyph.
15406 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15407 we are composing with gstring.
15408
15409 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15410 Check if adjustment is vector or not.
15411
15412 * Makefile.in (font.o): Make it depends on window.h.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15417 adjustment is vector or not.
15418
154192008-02-01 Miles Bader <miles@gnu.org>
15420
15421 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15422
154232008-02-01 Kenichi Handa <handa@m17n.org>
15424
15425 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15426 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15427 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15428
15429 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15430 (DEVICE_DELTA): Fix typo.
15431 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15432 LGLYPH format.
15433
15434 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15435 the change of LGLYPH format.
15436
154372008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * ftfont.c (ftfont_list): Fix typo.
15440 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15441
154422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15443
15444 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15445
15446 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15447 xftface_info is non-NULL.
15448
154492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15450
15451 * ftfont.c (ftfont_list): Move misplaced #endif.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * ftfont.c (ftfont_list): Pay attention to the case that
15456 FC_CAPABILITY is not defined.
15457
154582008-02-01 Kenichi Handa <handa@m17n.org>
15459
15460 * xftfont.c (xftfont_open): Set charset related members to -1.
15461
15462 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15463 QCname.
15464 (ftfont_open): Set charset related members to -1.
15465
15466 * fontset.c (Votf_script_alist): New variable.
15467 (syms_of_fontset): Initialize it.
15468 (fontset_font): Delete unused variable.
15469
15470 * fontset.h (Votf_script_alist): Extern it.
15471
15472 * font.c (font_find_for_lface): Optimize code.
15473
15474 * font.h (font_close_object, font_merge_old_spec): Extern them.
15475
154762008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15479 (syms_of_font): Initialize them.
15480 (font_pixel_size): Allow float value in dpi.
15481 (font_prop_validate_type): Delete.
15482 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15483 Change caller.
15484 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15485 (font_prop_validate_extra): Delete.
15486 (font_prop_validate_spacing): New function.
15487 (font_property_table): Add elements for all known properties.
15488 (get_font_prop_index): Rename from check_font_prop_name. New
15489 argument FROM. Change caller.
15490 (font_prop_validate): Validate all known properties.
15491 (font_put_extra): Delete argument force. Change caller.
15492 (font_expand_wildcards): Make it static. Fix the way of shrinking
15493 the possible range.
15494 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15495 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15496 Change caller.
15497 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15498 (font_parse_fcname): Delete argument merge. Fix parsing of point
15499 size. Don't validate properties values here. Change caller.
15500 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15501 (font_open_by_name): Delete unused variable.
15502 (Ffont_spec): Likewise. Validate property values.
15503 (Ffont_match_p): New function.
15504
15505 * font.h (QCscalable): Extern it.
15506 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15507
15508 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15509
15510 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15511 (xfont_list_pattern): New function.
15512 (xfont_list): Use xfont_list_pattern.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * font.h (Flist_fonts): EXFUN it.
15517
155182008-02-01 Jason Rumney <jasonr@gnu.org>
15519
15520 * w32term.c (w32_initialize): Add back smoothing_type and
15521 smoothing_enabled definitions.
15522
155232008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15526 s->face->font on determining underline position.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15531 (font_has_char): Accept font-object too.
15532 (font_find_for_lface): Try at first with a size specified in face.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15537 font_open_by_name.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * font.h (QCspacing, QCdpi): Extern them.
15542 (enum font_spacing): New enum.
15543 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15544
15545 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15546 (QCspacing, QCdpi): New variables.
15547 (syms_of_font): Initialize them.
15548 (font_pixel_size): New function.
15549 (font_put_extra): New function.
15550 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15551 in FONT_EXTRA.
15552 (font_parse_fcname): Handle enumerated values (e.g. bold).
15553 Fix handling font size. Add QCname property that contains only
15554 unknown properties.
15555 (font_score): Change argument. Change caller. Pay attention to
15556 FONT_PIXEL_SIZE_QUANTUM.
15557 (font_sort_entites, font_list_entities, font_find_for_lface)
15558 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15559 (Ffont_spec): Add QCname property that contains only unknown properties.
15560
15561 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15562 include weight in listing pattern, instead check weight of each
15563 listed font. Don't include scalable in pattern. Pay attention to
15564 FONT_PIXEL_SIZE_QUANTUM.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * font.c (font_parse_fcname): Fix parsing of point-size.
15569 (font_unparse_fcname): Produce symbolic names for style properties.
15570 (font_list_entities): Handle float size correctly.
15571 (font_open_by_name): Prefer `normal' property values if the name
15572 doesn't specify them.
15573
15574 * fontset.c (Finternal_char_font): Use font_get_name, not
15575 Ffont_xlfd_name.
15576
15577 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15578 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15579 pattern. Don't force scalable.
15580
15581 * xftfont.c (xftfont_open): For generating a name, start from
15582 96-byte buffer.
15583
155842008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15585
15586 * frame.h (x_new_fontset2): Fix prototype.
15587
155882008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * font.h (struct font_driver): Delete member parse_name.
15591 (font_match_p, font_get_spec, font_parse_fcname)
15592 (font_unparse_fcname): Extern them.
15593 (font_get_name): Adjust prototype.
15594
15595 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15596 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15597 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15598 unnecessary checks for weight, slant, and swidth.
15599 (font_parse_fcname): New function.
15600 (font_unparse_fcname): New function.
15601 (font_parse_name): New function.
15602 (font_match_p): New function.
15603 (font_get_name): Change return value to Lisp string.
15604 (font_get_spec): New function.
15605 (Qunspecified, Qignore_defface): Don't extern them.
15606 (font_find_for_lface): Assume that LFACE is fully specified.
15607 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15608 object, use it for FACE.
15609 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15610 driver->parse_name.
15611 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15612
15613 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15614 prototype.
15615
15616 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15617 argument F. Don't call Fnew_fontset. Instead, directly call
15618 make_fontset.
15619
15620 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15621
15622 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15623 of x_new_fontset2.
15624
15625 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15626 (Qsans__serif): New variables.
15627 (ftfont_generic_family_list): New variable.
15628 (syms_of_ftfont): Initialize the above variables.
15629 (ftfont_pattern_entity): Delete argument NAME.
15630 (ftfont_list_generic_family): New function.
15631 (ftfont_parse_name): Delete this function.
15632 (ftfont_list): Try generic family only when FcFontList found no font.
15633 (ftfont_list_family): Fix args to FcObjectSetBuild.
15634
15635 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15636 object in attrs[LFACE_FONT_INDEX].
15637 (set_lface_from_font_name): Cancel all changes for font-backend.
15638 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15639 function.
15640 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15641 font object in QCfont attribute.
15642 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15643 (realize_default_face) [USE_FONT_BACKEND]: Call
15644 set_lface_from_font_and_fontset.
15645
15646 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15647 "fixed", and signal error here if no suitable font was found.
15648
15649 * xfont.c (xfont_parse_name): Delete this function.
15650
15651 * xftfont.c (xftfont_open): Change coding style of error
15652 handling. Generate fontconfig's fontname pattern.
15653
15654 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15655 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15656
15657 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15658 Both args FONTSET and FONT_OBJECT must be existing ones.
15659
156602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15661
15662 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15663
156642008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15667
15668 * font.h (struct font): Fix typo.
15669
15670 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15671 XLFD_XXX_INDEX.
15672 (enum xlfd_field_mask): New enum.
15673 (intern_font_field): Changed argument. Change caller. If digits
15674 are followed by non-digits, return a symbol.
15675 (font_expand_wildcards): New function.
15676 (font_parse_xlfd): Fix wildcard handling.
15677 (Ffont_spec): If :name is specified, reflect the info in the other
15678 properties.
15679
15680 * ftfont.c (ftfont_pattern_entity): Fix typo.
15681 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15682 locale.
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15687
15688 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15689 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15690 registry doesn't specify encoding part.
15691 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15692 (font_open_by_name): At first try parsing the name.
15693 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15694 as Lisp symbols.
15695
15696 * fontset.c (reorder_font_vector): Pay attention to the case that
15697 the 3rd element of font_def is nil.
15698 (fontset_font): For the default fontset, append one more fontset
15699 elements for a script-based font specification. Don't add script
15700 attribute on finding a font.
15701 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15702 font name.
15703 (fontset_ascii_font): If a font can't be opened, return nil.
15704
15705 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15706 (ftfont_pattern_entity): New function.
15707 (ftfont_get_cache): Assume that freetype_font_cache is already
15708 initialized.
15709 (ftfont_list): Handle the case that a file is specified in font
15710 name. Use ftfont_pattern_entity to generate entities.
15711 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15712 (syms_of_ftfont): Initialize freetype_font_cache.
15713
15714 * xftfont.c (xftfont_open): Make the font name fontconfig's
15715 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15716 (xftfont_close): Free font->font.name if not NULL.
15717
15718 * xfont.c (xfont_list): If script is specified for a font, return
15719 null_vector.
15720 (xfont_list_family): Declare argument type.
15721
15722 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15723 name, set LFACE_FONT (lface) to nil.
15724
15725 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15726 return Qnil.
15727
157282008-02-01 Kenichi Handa <handa@m17n.org>
15729
15730 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15731 (standard_args): Add "-enable-font-backend".
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15736 (struct xftdraw_list, xftdraw_list): Delete them.
15737 (register_xftdraw, check_xftdraw): Delete them.
15738 (xftfont_prepare_face): Don't call register_xftdraw.
15739 (xftfont_done_face): Don't call check_xftdraw.
15740 (xftfont_draw): Get background color only when with_background is
15741 nonzero.
15742
15743 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 These changes are for the new font handling codes.
15748
15749 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15750 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15751 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15752 (FONTSRC, FONTOBJ): New variables.
15753 (obj): Add $(FONTOBJ).
15754 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15755 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15756 @LIBOTF_LIBS@.
15757 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15758 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15759
15760 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15761
15762 * character.h (Vscript_representative_chars): Extern it.
15763
15764 * character.c (Vscript_representative_chars): New variable.
15765 (syms_of_character): Declare it as a Lisp variable.
15766
15767 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15768 enable_font_backend is nonzero, accept the composition method
15769 COMPOSITION_WITH_GLYPH_STRING.
15770
15771 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15772 enumeration COMPOSITION_WITH_GLYPH_STRING.
15773
15774 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15775 members clip_x, clip_y, clip_width, and clip_height.
15776 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15777
15778 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15779 --enable-font-backend. Call syms_of_font.
15780
15781 * fns.c (assoc_no_quit): New function.
15782
15783 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15784 (face_for_font, new_fontset_from_font)
15785 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15786
15787 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15788 (fontset_font, fontset_ascii, face_for_char)
15789 (make_fontset_for_ascii_face, Ffont_info)
15790 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15791 is nonzero, use font-backend mechanism.
15792 (find_font_encoding): Make it non-static.
15793 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15794 New functions.
15795
15796 * frame.h (struct frame): New members resx and resy.
15797 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15798 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15799
15800 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15801 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15802
15803 * lisp.h (assoc_no_quit): Extern it.
15804
15805 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15806 Through out the file, use FONT_INFO_FROM_FACE instead of
15807 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15808 rif->per_char_metric.
15809 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15810 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15811 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15812 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15813 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15814 nonzero, use font-backend mechanism.
15815 (get_per_char_metric): New function.
15816
15817 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15818 (set_lface_from_font_name)
15819 (set_font_frame_param, free_realized_face)
15820 (prepare_face_for_display, clear_face_gcs)
15821 (Finternal_set_font_selection_order, realize_x_face)
15822 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15823 font-backend mechanism.
15824 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15825 (load_face_font) [USE_FONT_BACKEND]: Abort.
15826 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15827 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15828
15829 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15830 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15831 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15832 nonzero, register all available font drivers. Call
15833 x_default_font_parameter for deciding a font.
15834 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15835
15836 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15837 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15838 (x_set_glyph_string_clipping_exactly)
15839 (x_compute_glyph_string_overhangs)
15840 (x_draw_glyph_string_foreground)
15841 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15842 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15843 enable_font_backend is nonzero, use font-backend mechanism.
15844 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15845
158462008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15849 system_eol_type.
15850 (syms_of_coding): Initialize system_eol_type.
15851
15852 * process.c (Fset_process_coding_system): Inherit system's eol
15853 format if necessary.
15854
158552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15856
15857 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15858
158592008-02-01 Kenichi Handa <handa@m17n.org>
15860
15861 * coding.c (decode_eol): Pay attention to buffer relocation in
15862 del_range_2.
15863 (decode_coding): Call decode_eol before restoring undo_list.
15864
158652008-02-01 Kenichi Handa <handa@m17n.org>
15866
15867 * charset.c (Fdefine_charset_internal): Fix setting of
15868 emacs_mule_bytes.
15869
158702008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * keyboard.c (read_char): Check if C is a character or not before
15873 looking up Vkeyboard_translate_table.
15874
158752008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15878 condition to terminate the loop.
15879
158802008-02-01 Kenichi Handa <handa@m17n.org>
15881
15882 * coding.c (produce_composition): Compare charbuf[i] instead of
15883 args[i] against 0.
15884 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15885
158862008-02-01 Kenichi Handa <handa@m17n.org>
15887
15888 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15889 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15890 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15891 detect_coding.
15892 (emacs_mule_char): Handle old style (Emacs 20) component character
15893 of a composition.
15894 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15895 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15896 composition rule.
15897 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 * coding.c (encode_coding_ccl): Allocate destination dynamically
15902 when necessary.
15903
159042008-02-01 Kenichi Handa <handa@m17n.org>
15905
15906 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15907 the loop. When quitted, show a proper error message.
15908
159092008-02-01 Kenichi Handa <handa@m17n.org>
15910
15911 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15912 src->clip_head and src->clip_tail temporarily instead of src->hl.
15913
15914 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15915 character sequence.
15916 (Fccl_execute_on_string): Use ASET, not XSET.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * coding.c (decode_coding): Fix the condition of terminating the
15925 decoding loop.
15926
159272008-02-01 Kenichi Handa <handa@m17n.org>
15928
15929 * data.c (Faset): On setting a character bigger than 255 in a
15930 unibyte string, signal an error instead of make the string multibyte.
15931
159322008-02-01 Kenichi Handa <handa@m17n.org>
15933
15934 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15935 made by a mapping table.
15936
159372008-02-01 Kenichi Handa <handa@m17n.org>
15938
15939 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15940 not.
15941 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15942 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15943
15944 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15945 s->face is NULL or not.
15946
159472008-02-01 Kenichi Handa <handa@m17n.org>
15948
15949 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15950 (x_draw_glyph_string): Fix drawing of right_overhang and
15951 left_overhang around/on cursor.
15952
15953 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15958
159592008-02-01 Kenichi Handa <handa@m17n.org>
15960
15961 * coding.c (Fdefine_coding_system_internal)
15962 (Fdefine_coding_system_alias): Avoid a duplicated element in
15963 Vcoding_system_alist.
15964
159652008-02-01 Kenichi Handa <handa@m17n.org>
15966
15967 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15968
15969 * coding.c (Qcoding_system_define_form): New variable.
15970 (syms_of_coding): Intern and staticpro it.
15971 (Fcoding_system_p): Check Qcoding_system_define_form.
15972 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15973
15974 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15975 Fcoding_system_p.
15976 (CHECK_CODING_SYSTEM): If ID is not available, call
15977 Fcheck_coding_system.
15978 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15979 Try also Fcheck_coding_system.
15980
159812008-02-01 Kenichi Handa <handa@m17n.org>
15982
15983 * coding.c (code_conversion_restore): GCPRO arg.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * character.c (lisp_string_width): Check multibyteness of STRING.
15988
159892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15990
15991 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15992 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15993 (decode_mac_font_name): Use decode_coding_c_string instead of
15994 decode_coding.
15995 (x_load_font): Initialize fontp->fontset to -1. Set
15996 fontp->encoding_type.
15997
159982008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * search.c (search_buffer): Give up BM search on case-fold-search
16001 if one of a target character has a case-equivalence of different
16002 byte length even if that target charcter is an ASCII.
16003 (simple_search): Fix calculation of byte length of matched text.
16004 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16005
160062008-02-01 Kenichi Handa <handa@m17n.org>
16007
16008 * coding.c (decode_coding): Fix handling of invalid bytes.
16009
160102008-02-01 Kenichi Handa <handa@m17n.org>
16011
16012 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16013 Unicode characters.
16014
160152008-02-01 Kenichi Handa <handa@m17n.org>
16016
16017 * coding.c (encode_coding_object): If a pre-write-conversion
16018 function makes a new buffer, kill it.
16019
160202008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * coding.c (QCascii_compatible_p): New variable.
16023 (syms_of_coding): Initialize it.
16024 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16025 calling string_char.
16026 (record_conversion_result): Add `default:' case.
16027 (coding_charset_list): Delete unused variable `coding_type'.
16028 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16029 property in the plist of the coding system.
16030 (Fcoding_system_put): Check QCascii_compatible_p.
16031
160322008-02-01 Miles Bader <miles@gnu.org>
16033
16034 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16035 removed calculation of frame `f', as it's now used.
16036
160372008-02-01 Kenichi Handa <handa@m17n.org>
16038
16039 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16040 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16041 (UNIDATA): New variable.
16042 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16043 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16044 $(RUN_TEMACS) unconditionally.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16049 (admindir): New variable.
16050 ($(lispsource)international/charprop.el): New target.
16051
160522008-02-01 Miles Bader <miles@gnu.org>
16053
16054 * character.c (chars-in-region): Remove obsolete function.
16055 (syms_of_character): Remove its initialization.
16056
160572008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16058
16059 * w32select.c (validate_coding_system)
16060 (setup_windows_coding_system): New functions.
16061 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16062 setup_windows_coding_system.
16063 (setup_config, Fw32_get_clipboard_data): Use
16064 validate_coding_system.
16065 (Fx_selection_exists): Move call to setup_config to a place
16066 where signals are allowed.
16067
16068 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16069 (Fcheck_coding_system): Add declarations.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16074
160752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16076
16077 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16078 string as the second argument for x_new_fontset.
16079
160802008-02-01 Kenichi Handa <handa@m17n.org>
16081
16082 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16083 (encode_coding_object): Use safe_call instead of call2.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16088
16089 * Makefile.in (lisp): Include charprop.el.
16090
160912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16092
16093 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16094 Not sure if it's unnecessary.
16095
160962008-02-01 Steven Tamm <steventamm@mac.com>
16097
16098 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16099 some possibly unnecessary fontset checking code that crashed
16100 when creating a new frame.
16101
161022008-02-01 Kenichi Handa <handa@m17n.org>
16103
16104 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16105 lookup_face.
16106
16107 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16108
16109 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16114 (coding_charset_list): New function.
16115
16116 * coding.h (coding_charset_list): Extern it.
16117
161182008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16121 concatenation of family and registry.
16122
161232008-02-01 Kenichi Handa <handa@m17n.org>
16124
16125 * character.h (BYTE8_STRING): Fix typo.
16126
16127 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16128 string to multibyte (sync to HEAD).
16129
16130 * casefiddle.c (casify_region): Handle changes in byte-length
16131 using replace_range_2 (sync to HEAD).
16132
161332008-02-01 Andreas Schwab <schwab@suse.de>
16134
16135 * chartab.c (map_char_table): GCPRO table and arg.
16136
161372008-02-01 Kenichi Handa <handa@m17n.org>
16138
16139 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16140 already at limit.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16145 instead of fast_c_string_match_ignore_case.
16146 (find_font_encoding): Change argument to Lisp_Object. Use
16147 fast_string_match_ignore_case instead of
16148 fast_c_string_match_ignore_case. Change caller.
16149
161502008-02-01 Kenichi Handa <handa@m17n.org>
16151
16152 * xdisp.c (get_next_display_element): In unibyte case, decide to
16153 display in octal form by checking a character by
16154 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16155
16156 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16157
16158 * character.c (unibyte_has_multibyte_table): New variable.
16159
16160 * character.h (unibyte_has_multibyte_table): Extern it.
16161 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16162
161632008-02-01 Kenichi Handa <handa@m17n.org>
16164
16165 * coding.c (encode_coding_iso_2022): Fix handling of charset
16166 annotation.
16167
161682008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * coding.c (setup_coding_system): If coding_system is nil, use
16171 Qundecided.
16172 (Fterminal_coding_system): Return nil if terminal coding system is
16173 `undecided'.
16174 (syms_of_coding): Define coding-system `undecided' here. Setup
16175 terminal_coding as `undecided'.
16176
161772008-02-01 Kenichi Handa <handa@m17n.org>
16178
16179 * xdisp.c (message_dolog, set_message_1): Call
16180 unibyte_char_to_multibyte with arg type int.
16181
16182 * lread.c (read1): Fix reading of a char-table.
16183
16184 * print.c (print_object): Include sub char-table in circularities
16185 detection.
16186
161872008-02-01 Kenichi Handa <handa@m17n.org>
16188
16189 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16190 Append the found sequences in car of ARGS instead of prepending.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * fileio.c (report_file_error): Make a unibyte string from
16195 strerror (errorno).
16196 (Fsubstitute_in_file_name): Fix the arg to
16197 unibyte_char_to_multibyte. It is evaluated twice.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16206 BOM is not found.
16207 (detect_coding, detect_coding_system): Optimization for ISO-2022
16208 when no 8-bit data is found.
16209
162102008-02-01 Jason Rumney <jasonr@gnu.org>
16211
16212 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16217 CHARS.
16218
162192008-02-01 Steven Tamm <steventamm@mac.com>
16220
16221 * macterm.c (mac_encode_char): Add charset argument and update
16222 to use encoding_type.
16223 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16224 switch to pure fontset.
16225 (decode_mac_font_name): Temporarily remove decoding.
16226 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16227 (x_load_font): Temporarily remove encoding.
16228
162292008-02-01 Kenichi Handa <handa@m17n.org>
16230
16231 * xfaces.c (Fface_font): If frame is not on a window system,
16232 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16233 refer to face->font.
16234 (split_font_name_into_vector, build_font_name_from_vector)
16235 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16236 when HAVE_WINDOW_SYSTEM is defined.
16237
162382008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16241 (x_produce_glyphs): Fix setting of members of cmp in case
16242 cmp->glyph_len is zero.
16243
16244 * fontset.c (Fset_fontset_font): Fix docstring.
16245 (Ffontset_info): Make it backward compatible. New arg ALL.
16246
162472008-02-01 Kim F. Storm <storm@cua.dk>
16248
16249 * process.c (read_process_output): Grow decoding_buf when needed;
16250 this could cause a crash in allocate_string and compact_small_strings.
16251
162522008-02-01 Kenichi Handa <handa@m17n.org>
16253
16254 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16255
162562008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * coding.c (setup_coding_system): Set coding->common_flags
16259 correctly for raw-text.
16260 (consume_chars): On encoding unibyte text by raw-text, don't check
16261 multibyte form.
16262 (encode_coding): On encoding by raw-text, never use translation tables.
16263
16264 * fileio.c (e_write): Short cut for the case of no encoding.
16265
162662008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * coding.c (detect_coding, detect_coding_system): Delete unused
16269 variables.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16274 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * coding.c (Ffind_coding_systems_region_internal): Include
16279 raw-text and no-conversion in the result.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16284 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16285 FONT_DEF.
16286 (font_def_arg, add_arg, from_arg, to_arg): New args.
16287 (set_fontset_font): Change argument.
16288 (Fset_fontset_font): Fix for the case that TARGET is a script
16289 name and charset name.
16290 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16291
162922008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * fontset.c (fontset_font): Rename from fontset_face. Change return
16295 value.
16296 (face_suitable_for_char_p, face_for_char): Adjust for the change
16297 of fontset_font.
16298 (make_fontset_for_ascii_face): Fix setting of the fontset element
16299 for ASCII.
16300 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16301 to get a font name.
16302 (Ffontset_info): Adjust for the change of fontset_font.
16303
16304 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16305
16306 * character.h (LEADING_CODE_LATIN_1_MIN)
16307 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16308
163092008-02-01 Kenichi Handa <handa@m17n.org>
16310
16311 * editfns.c (check_translation): New function.
16312 (Ftranslate_region_internal): Handle M:N mapping.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16321 goto invalid_code.
16322 (decode_coding_iso_2022): Fix handling of invalid designation.
16323
16324 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16325 after calling code_conversion_save.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16330
16331 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16332
16333 * fontset.c: Include "intervals.h".
16334 (fontset_face): Fix comparing of Lisp_Objects.
16335 (free_face_fontset, new_fontset_from_font_name): Fix
16336 Lisp_Object/int mixup.
16337
16338 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16339
16340 * coding.c: Add many prototypes for static functions.
16341 (get_translation_table): Allow max_lookup to be NULL.
16342 (decode_coding, Ffind_coding_systems_region_internal)
16343 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16344 get_translation_table with max_lookup NULL.
16345
163462008-02-01 Kenichi Handa <handa@m17n.org>
16347
16348 * coding.c (get_translation_table): Declare it as Lisp_Object.
16349 (LOOKUP_TRANSLATION_TABLE): New macro.
16350 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16351 instead of CHAR_TABLE_REF.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16356 annotation data format.
16357 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16358 Change arguments FROM and TO to single argument NCHARS. Change caller.
16359 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16360 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16361 (decode_coding_ccl, decode_coding_charset): Pay attention to
16362 coding->charbuf_used.
16363 (get_translation): New function.
16364 (produce_chars): New arguments translation_table and last_block.
16365 Translate characters here. Return number of carryover chars.
16366 Change caller.
16367 (produce_composition): New argument pos. Change caller.
16368 Adjust for the change of annotation data format.
16369 (produce_charset, produce_annotation): Likewise.
16370 (decode_coding, encode_coding): Don't call translate_chars.
16371 (consume_chars): New arg translation_table. Change caller.
16372 (translate_chars): Delete.
16373 (syms_of_coding): Make translation-table's number of extra slots 2.
16374
163752008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * search.c (simple_search): Fix setting this_pos_byte in backward
16378 search.
16379
16380 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16381 byte sequence.
16382 (detect_coding_ccl): Fix setting of the variable valids.
16383
163842008-02-01 Kenichi Handa <handa@m17n.org>
16385
16386 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16387
16388 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16389
16390 * editfns.c (Ftranslate_region_internal): Rename from
16391 Ftranslate_region. Accept a char-table in TABLE.
16392 (syms_of_editfns): Defsubr Stranslate_region_internal.
16393
16394 * xfaces.c (set_lface_from_font_name): If a font is specified for
16395 a frame, generate a fontset from the font.
16396 (build_scalable_font_name): If the scalable font is requested for
16397 a specific size, don't change that size.
16398 (try_font_list): Try a scalable font also in the case that a
16399 pattern string is specified.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * xfaces.c (Fface_font): New optional arg CHARACTER.
16404
164052008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * charset.h (CHARSET_OFFSET): New macro.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16412
16413 * fontset.c (fontset_face): Handle the case that repertory is a
16414 char-table.
16415 (find_font_encoding): Return nil for unknown encoding.
16416 (Fset_fontset_font): Ignore a font of unknown encoding.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * keymap.c (describe_vector): Handle default value of a char table.
16421
16422 * fontset.c (fontset_face): Handle fallback fonts correctly.
16423 (Ffontset_info): Return infomation about fallback fonts.
16424
164252008-02-01 Kenichi Handa <handa@m17n.org>
16426
16427 * fontset.c (FONTSET_DEFAULT): New macro.
16428 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16429 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16430 the case that it is nil.
16431 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16432 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16433
16434 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16435 subset or superset.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * emacs.c (main): Call init_charset after syms_of_XXX.
16440
16441 * charset.c (Vcharset_map_directory): Delete.
16442 (Vcharset_map_path): New variable.
16443 (load_charset_map_from_file): Use Vcharset_map_path instead.
16444 (init_charset): Initialize Vcharset_map_path.
16445 (syms_of_charset): Delete declaration of "charset-map-directory",
16446 add declaration of "charset-map-path".
16447
164482008-02-01 Kenichi Handa <handa@m17n.org>
16449
16450 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16451 ASCII only string.
16452
16453 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16454
16455 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16456 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16461
16462 * coding.c (QCmnemonic, QCdefalut_char)
16463 (QCdecode_translation_table, QCencode_translation_table)
16464 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16465 (get_translation_table): Return a list of translation tables if
16466 necessary.
16467 (decode_coding): Call get_translation_table with ENCODEP 0.
16468 (char_encodable_p): If translation_table is non-nil, always call
16469 translate_char.
16470 (Fdefine_coding_system_internal): Accept list of translation
16471 tables as :encode-translation-table and :decode-translation-table.
16472 (Fcoding_system_put): New function.
16473 (syms_of_coding): Declare new symbols. Defsubr
16474 Scoding_system_put.
16475 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16476 typically JISX0212.
16477
16478 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16479 when the charset is superset type.
16480
16481 * character.c (translate_char): Accept list of translation tables.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16486 (CODING_ATTR_TRANS_TBL): New macro.
16487
16488 * coding.c (get_translation_table): New function.
16489 (translate_chars): Fix the bug of skipping annotation data.
16490 (decode_coding, encode_coding): Utilize get_translation_table.
16491 (char_encodable_p, Funencodable_char_position): Translate char if
16492 necessary.
16493 (Ffind_coding_systems_region_internal)
16494 (Fcheck_coding_systems_region): Setup translation table for encode
16495 in a coding system attribute vector in advance.
16496 (Fdefine_coding_system_internal): Allow a symbol as translation
16497 table. For shift-jis type coding system, allow 4th charset.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16502
16503 * xdisp.c (get_next_display_element): Pass -1 as POS to
16504 FACE_FOR_CHAR if displaying a C-string.
16505
165062008-02-01 Kenichi Handa <handa@m17n.org>
16507
16508 * composite.c (get_composition_id): Handle xoff and yoff in a
16509 composition rule.
16510
16511 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16512 (struct composition): New member lbearing and rbearing.
16513
16514 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16515 (x_get_glyph_overhangs): Handle a composition glyph.
16516 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16517
16518 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16519 composition glyph.
16520
165212008-02-01 Kenichi Handa <handa@m17n.org>
16522
16523 * print.c: Include charset.h.
16524 (Vprint_charset_text_property): New variable.
16525 (Qdefault): Extern it.
16526 (PRINT_STRING_NON_CHARSET_FOUND)
16527 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16528 (print_check_string_result): New variable.
16529 (print_check_string_charset_prop): New function.
16530 (print_prune_charset_plist): New variable.
16531 (print_prune_string_charset): New function.
16532 (print_object): Call print_prune_string_charset if
16533 Vprint_charset_text_property is not t.
16534 (print_interval): Print nothing if interval->plist is nil.
16535 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16536 variable. Init and staticpro print_prune_charset_plist.
16537
165382008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * fontset.c (new_fontset_from_font_name): Use the specified font
16541 for all characters in the new fontset.
16542
16543 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16544 OBJECT args.
16545
16546 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16547 OBJECT args for composition too.
16548
16549 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16550 OBJECT args.
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16555
16556 * fontset.c (reorder_font_vector): Adjust for the change of
16557 FONT_DEF format.
16558 (fontset_face): New arg id. Change caller.
16559 (face_for_char): New args pos and object.
16560 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16561 (fs_query_fontset): Check NAME by Fassoc too.
16562 (Fset_fontset_font): Allow non-XLFD font name.
16563 (Ffontset_info): Adjust for the change of FONT_DEF format.
16564
16565 * fontset.h (face_for_char): Adjust prototype.
16566
16567 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16568 (append_space, extend_face_to_end_of_line)
16569 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16570 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16571
16572 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16573 POS and OBJECT args.
16574
16575 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16576 POS and OBJECT args.
16577
165782008-02-01 Jason Rumney <jasonr@gnu.org>
16579
16580 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16581 of GlobalAlloc'ed memory.
16582
165832008-02-01 Kenichi Handa <handa@m17n.org>
16584
16585 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16586
16587 * charset.h (charset_table_used): Delete extern.
16588
16589 * charset.c (charset_table_used): Make it static.
16590 (map_charset_chars): Fix args to c_function with.
16591
16592 * chartab.c (map_sub_char_table_for_charset): Fix args to
16593 c_function with.
16594
16595 * coding.h (enum coding_result_code): Delete
16596 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16597
16598 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16599 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16600 (Vlast_code_conversion_error): New variables.
16601 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16602 (ONE_MORE_BYTE): Record error if any instead of signaling an
16603 error. If non-ASCII multibyte char is found, return the negative
16604 value of the code. All callers changed to check it.
16605 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16606 (record_conversion_result): New function. Change all codes setting
16607 coding->result to call this function.
16608 (detect_coding_utf_8, decode_coding_utf_8)
16609 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16610 Don't use the local variable incomplete.
16611 (emacs_mule_char): Change the second arg to `const'.
16612 (decode_coding): Fix of flushing out unprocessed data.
16613 (make_conversion_work_buffer): Fix making of a work buffer.
16614 (decode_coding_object): Return coding->dst_object.
16615
16616 * fontset.c (set_fontset_font): Fix args.
16617
16618 * lisp.h (CHARACTERBITS): Define as 22.
16619
16620 * process.c (send_process): Be sure to set coding->src_multibyte.
16621
16622 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * xdisp.c (handle_auto_composed_prop): Give limit to
16627 Fnext_single_char_property_change.
16628
166292008-02-01 Kenichi Handa <handa@m17n.org>
16630
16631 * composite.c (syms_of_composite): Don't make the composition hash
16632 table weak.
16633
16634 * fontset.c (Fset_fontset_font): Fix docstring.
16635
16636 * lisp.h (detect_coding_system): Adjust prototype.
16637
16638 * fileio.c (kill_workbuf_unwind): Delete this function.
16639 (Finsert_file_contents): Adjust the call of detect_coding_system.
16640 Get conversion_buffer by code_conversion_save. Use the macro
16641 CODING_MAY_REQUIRE_DECODING. After decoding, update
16642 coding_system.
16643
16644 * coding.h (make_conversion_work_buffer): Delete extern.
16645 (code_conversion_save): Extern it.
16646
16647 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16648 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16649 (decode_coding_utf_8): Don't do eol converion.
16650 (detect_coding_utf_16): Check coding->src_chars, not
16651 coding->src_bytes. Add heuristics for those that have no signature.
16652 (decode_coding_emacs_mule, decode_coding_iso_2022)
16653 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16654 Don't do eol converion.
16655 (adjust_coding_eol_type): Return a new coding system.
16656 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16657 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16658 each change.
16659 (decode_coding): Pay attention to undo_list. Do eol conversion for
16660 all types of coding-systems (if necessary).
16661 (Vcode_conversion_work_buf_list): Delete it.
16662 (Vcode_conversion_reused_workbuf): Rename from
16663 Vcode_conversion_reused_work_buf.
16664 (Vcode_conversion_workbuf_name): New variable.
16665 (reused_workbuf_in_use): New variable.
16666 (make_conversion_work_buffer): Delete the arg DEPTH.
16667 (code_conversion_restore): Change argument to cons.
16668 (code_conversion_save): Delete the argument BUFFER. Change callers.
16669 (detect_coding_system): New argument src_chars. Change callers.
16670 Fix for utf-16 detection.
16671 (init_coding_once): Don't use ISO_carriage_return.
16672 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16673 reused_workbuf_in_use.
16674
166752008-02-01 Kenichi Handa <handa@m17n.org>
16676
16677 * keymap.c (store_in_keymap): Pay attention to the case that idx
16678 is a cons specifying a character range.
16679
166802008-02-01 Kenichi Handa <handa@m17n.org>
16681
16682 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16683 HANDLED_RECOMPUTE_PROPS.
16684
16685 * coding.c (Fdefine_coding_system_internal): Fix checking of
16686 ascii compatibility.
16687
166882008-02-01 Kenichi Handa <handa@m17n.org>
16689
16690 * charset.c (find_charsets_in_text): Delete unused locale variable.
16691 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16692
16693 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16694 Resync charset_list to Vemacs_mule_charset_list.
16695
16696 * keymap.c (store_in_keymap): Pay attention to the case that idx
16697 is a cons specifying a character range.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * composite.c (update_compositions): Bind inhibit-read-only, etc
16702 to t before calling remove-list-of-text-properties.
16703
16704 * print.c (print_object): Always print ASCII chars as is.
16705
167062008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16709
16710 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16711 is a char table.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16716
167172008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * xfaces.c (set_lface_from_font_name): Fix for the case that
16720 FONTNAME is not fontset name.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * fns.c (base64_encode_1): Fix previous change.
16725
167262008-02-01 Kenichi Handa <handa@m17n.org>
16727
16728 * fontset.c (set_fontset_font): New function.
16729 (Fset_fontset_font): If a font is specified for a charset, use
16730 map_charset_chars to store the font spec in a fontset.
16731
167322008-02-01 Kenichi Handa <handa@m17n.org>
16733
16734 * fontset.c (fontset_face): Create a fallback fontset on demand.
16735 (make_fontset): Don't create a fallback fontset here.
16736 (free_face_fontset): Free a fallback fontset (if any) too.
16737 (n_auto_fontsets): Delete this variable.
16738 (auto_fontset_alist): New variable.
16739 (new_fontset_from_font_name): Check auto_fontset_alist.
16740 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16741 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16742 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16743 Defsubr Sfontset_list_all.
16744
167452008-02-01 Kenichi Handa <handa@m17n.org>
16746
16747 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * editfns.c (Fgoto_char): Fix docstring.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * insdel.c (insert_from_gap): Adjust intervals correctly.
16760
167612008-02-01 Jason Rumney <jasonr@gnu.org>
16762
16763 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16764 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16765 (w32_initialize): Try to load it.
16766 (x_get_font_repertory): Use it if available.
16767 (w32_encode_char): Add shortcut for unicode output.
16768
16769 * w32fns.c (w32_load_system_font): Default charset to -1.
16770 (x_to_w32_charset): Match all fonts for unicode.
16771 (w32_to_x_charset): New parameter matching. Don't return partial
16772 or wildcard charsets.
16773 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16774 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16775 (w32_to_x_font): Match charset to real charset.
16776 (enum_font_cb2): Always list unicode versions.
16777
16778 * makefile.w32-in (temacs): Increase EMHEAP.
16779
167802008-02-01 Jason Rumney <jasonr@gnu.org>
16781
16782 * w32term.c (w32_encode_char): New charset parameter.
16783 font_info.encoding becomes encoding_type.
16784 (x_get_font_repertory): New function. Warning: stub only!
16785 (x_new_font): Return quickly if font already set.
16786 (x_new_fontset): fontsetname parameter is Lisp_Object.
16787 Use new fs_query_fontset. Try new_fontset_from_font_name.
16788 Use fontset_name for return value.
16789
16790 * w32term.h: Declare x_get_font_repertory.
16791
16792 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16793 place of find_charset_in_text. Use encode_coding_object in place
16794 of encode_coding.
16795 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16796 decode_coding.
16797
16798 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16799 of x_new_fontset.
16800 (w32_load_system_font): Initialize charset as unicode.
16801 font_info.encoding becomes encoding_type.
16802 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16803 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16804 (syms_of_w32fns): Set get_font_repertory_func.
16805
16806 * w32console.c: Include character.h. Use terminal_encode_buffer
16807 from term.c.
16808 (write_glyphs): Use new version of encode_terminal_code. Use
16809 encode_coding_object in place of encode_coding.
16810
16811 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16812 encoding becomes encoding_type.
16813
16814 * term.c (terminal_encode_buffer): Make externally visible.
16815
16816 * makefile.w32-in: Add character.h dependancies.
16817 (character.o, chartab.o): New targets.
16818
168192008-02-01 Kenichi Handa <handa@m17n.org>
16820
16821 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16822 CODING_ID_EOL_TYPE.
16823
168242008-02-01 Andreas Schwab <schwab@suse.de>
16825
16826 * coding.c (produce_chars): Revert last change.
16827
168282008-02-01 Kenichi Handa <handa@m17n.org>
16829
16830 * charset.h (charset_unicode): Extern it.
16831
16832 * charset.c (string_xstring_p): Check by (C >= 0x100).
16833 (find_charsets_in_text): Change format of the arc CHARSETS. New
16834 arg MULTIBYTE.
16835 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16836 change of find_charsets_in_text.
16837 (Fsplit_char): Fix doc. Never return unknown.
16838
16839 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16840
16841 * coding.c (Fdefine_coding_system_alias): Update
16842 Vcoding_system_list.
16843
16844 * fontset.c (load_font_get_repertory): Pay attention to the case
16845 that ENCODING of a font is specified by a char-table.
16846
16847 * xterm.c (x_get_font_repertory): Handle the case that the
16848 encoding of font is other than Unicode.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16853 if a character is encodable by the terminal coding system. If
16854 not, produces proper number of `?'s. Update
16855 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16856 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16861 variables.
16862 (encode_terminal_code): Change argument. Encode multiple
16863 characters at once. Store the result of encoding in
16864 terminal_encode_buffer.
16865 (write_glyphs, insert_glyphs): Adjust for the change of
16866 encode_terminal_code.
16867 (term_init): Initialize terminal_encode_buffer and
16868 terminal_encode_buf_size.
16869
16870 * coding.c (consume_chars): If coding->src_object is nil, don't
16871 check annotation.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * character.c (char_string): Use ASCII_CHAR_P instead of
16876 SINGLE_BYTE_CHAR_P.
16877
168782008-02-01 Kenichi Handa <handa@m17n.org>
16879
16880 * xdisp.c (handle_auto_composed_prop): Check if the last
16881 characters of auto-composed region is newly composed with the
16882 following characters.
16883 (handle_composition_prop): Fix checking of point being inside
16884 composition.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * fns.c (concat): Don't change multibyteness of the result by
16889 concatenating an 8-bit character.
16890
16891 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16892 multibyteness of the result when newelt is an 8-bit character.
16893
168942008-02-01 Dave Love <fx@gnu.org>
16895
16896 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16897 EMACS_INT.
16898
16899 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16900
16901 * xfaces.c (face_numeric_value): Declare dim size_t.
16902 (Finternal_lisp_face_equal_p): Remove unused f.
16903
16904 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16905 (MATRIX_ROW): Remove unused vars.
16906 (draw_glyphs, x_insert_glyphs, fast_find_position)
16907 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16908 byte/char counts.
16909
16910 * regex.c (regex_compile): Remove unused var.
16911
16912 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16913
16914 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16915 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16916
16917 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16918
16919 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16920
16921 * fileio.c (Fwrite_region): Remove unused var.
16922
16923 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16924 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16925
16926 * composite.c (Fremove_list_of_text_properties): Declare.
16927
16928 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16929 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16930 (coding_inherit_eol_type): Remove unused attrs.
16931 (detect_coding): Cast arg of detect_eol.
16932
16933 * charset.c (syms_of_charset): Remove unused var p.
16934 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16935 byte/char counts.
16936
16937 * casetab.c (set_case_table): Remove unused var.
16938
16939 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16940 unused vars.
16941
169422008-02-01 Dave Love <fx@gnu.org>
16943
16944 * xterm.c (x_bitmap_mask): Declare.
16945
169462008-02-01 Dave Love <fx@gnu.org>
16947
16948 * xterm.c (x_term_init): Fix type error.
16949
16950 * lisp.h: Add Funibyte_char_to_multibyte.
16951
16952 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16953 (Fset_coding_system_priority): Doc fix.
16954
16955 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16956
16957 * indent.c (check_composition): Make start and end EMACS_INT.
16958
16959 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16960
16961 * xdisp.c (handle_composition_prop, check_point_in_composition):
16962 Make buffer positions EMACS_INT.
16963
16964 * composite.c (find_composition, run_composition_function)
16965 (update_compositions, Ffind_composition_internal): Make buffer
16966 positions EMACS_INT.
16967
16968 * composite.h (find_composition, update_compositions): Make
16969 position args EMACS_INT.
16970
16971 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16972
16973 * intervals.c (get_property_and_range):
16974 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16975
16976 * unexalpha.c: Don't include varargs.h.
16977
169782008-02-01 Dave Love <fx@gnu.org>
16979
16980 * coding.h (ENCODE_UTF_8): New.
16981
16982 * Makefile.in (gtkutil.o): Depend on coding.h.
16983
16984 * coding.c (Fset_coding_system_priority): Doc fix.
16985
169862008-02-01 Kenichi Handa <handa@m17n.org>
16987
16988 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16989 the case of auto saving.
16990
169912008-02-01 Andreas Schwab <schwab@suse.de>
16992
16993 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16994 `range' from GC.
16995
169962008-02-01 Kenichi Handa <handa@m17n.org>
16997
16998 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16999
170002008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * fileio.c (choose_write_coding_system): Return a decided coding system.
17003 (Fwrite_region): Set Vlast_coding_system_used to the return value
17004 of choose_write_coding_system.
17005
170062008-02-01 Kenichi Handa <handa@m17n.org>
17007
17008 * charset.c (Fset_charset_priority): Pay attention to duplicated
17009 arguments.
17010
17011 * coding.c (QCcategory): New variable.
17012 (syms_of_coding): Defsym it. Set all elements of
17013 Vcoding_category_table and their symbol values.
17014 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17015 coding-category-XXX, and coding-category-list.
17016 (Fdefine_coding_system_internal): Add category in the plist.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * callproc.c (Fcall_process): Handle carryover correctly.
17021
17022 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17023 (raw_text_coding_system): Check NILP (coding_system).
17024 (coding_inherit_eol_type): Check NILP (coding_system) and
17025 NILP (parent).
17026 (consume_chars): Fix for the case of raw-text.
17027
17028 * process.c (read_process_output): Handle carryover correctly.
17029
170302008-02-01 Dave Love <fx@gnu.org>
17031
17032 * regex.c (re_search_2): Fix last change.
17033
170342008-02-01 Kenichi Handa <handa@m17n.org>
17035
17036 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17037 target_multibyte. Even in a unibyte case, return a converted
17038 multibyte char.
17039 (GET_CHAR_AFTER): New macro.
17040 (PATFETCH): Translate via multibyte char.
17041 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17042 (SETUP_MULTIBYTE_RANGE): New macro.
17043 (regex_compile): Setup compiled code so that its multibyteness
17044 matches that of a target. Fix the handling of "[X-YZ]" using
17045 SETUP_MULTIBYTE_RANGE.
17046 (analyse_first) <charset>: For filling fastmap for all multibyte
17047 characters, don't check by BASE_LEADING_CODE_P.
17048 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17049 the same as RE_MULTIBYTE_P (bufp) now.
17050 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17051 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17052 (TRANSLATE_VIA_MULTIBYTE): New macro.
17053 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17054 It is the same as RE_MULTIBYTE_P (bufp) now.
17055 <exactn>: Translate via multibyte.
17056 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17057 translate it.
17058 <charset, charset_not>: Fetch a character by
17059 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17060 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17061 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17062 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17063 by GET_CHAR_AFTER.
17064 (bcmp_translate): Likewise.
17065
17066 * search.c (compile_pattern): Check the member target_multibyte,
17067 not the member multibyte of buf.
17068
17069 * lread.c (read1): While reading a string, set force_singlebyte
17070 and force_multibyte correctly.
17071
17072 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17073 up of unibyte_to_multibyte_table.
17074
170752008-02-01 Kenichi Handa <handa@m17n.org>
17076
17077 * coding.c (setup_coding_system): If coding has
17078 post-read-conversion or pre-write-conversion, set
17079 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17080 respectively.
17081 (decode_coding_gap): Run post-read-conversion if any.
17082
17083 * fileio.c (Finsert_file_contents): Even if we read into a
17084 unibyte buffer, check if we must decode the result or not.
17085
170862008-02-01 Kenichi Handa <handa@m17n.org>
17087
17088 * coding.c (make_conversion_work_buffer): Change the work buffer
17089 name to the same one as that of Emacs 21.
17090
170912008-02-01 Kenichi Handa <handa@m17n.org>
17092
17093 * coding.h (make_conversion_work_buffer): Adjust prototype.
17094 (code_conversion_restore): Don't extern it.
17095
17096 * coding.c (detected_mask): Delete unused variable.
17097 (decode_coding_iso_2022): Pay attention to the byte sequence of
17098 CTEXT extended segment, and retain those bytes as is.
17099 (decode_coding_ccl): Delete unused variable `valids'.
17100 (setup_coding_system): Delete unused variable `category'.
17101 (consume_chars): Delete unused variable `category'. Make it work
17102 for non-multibyte case.
17103 (make_conversion_work_buffer): Change argument.
17104 (saved_coding): Delete unused variable.
17105 (code_conversion_restore): Don't check saved_coding->destination.
17106 (code_conversion_save): New function.
17107 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17108 instead of record_unwind_protect.
17109 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17110 (detect_coding_system): Delete unused variable `mask'.
17111 (Fdefine_coding_system_internal): Delete unused variable id.
17112
17113 * fileio.c (kill_workbuf_unwind): New function.
17114 (Finsert_file_contents): On replacing, call
17115 make_conversion_work_buffer with correct args, and call
17116 record_unwind_protect with the first arg kill_workbuf_unwind.
17117
17118 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17119
171202008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17123 (fontset_add): Fix for the case that TO is less than TO1.
17124 (Ffontset_info): Don't use fallback fontset on checking the
17125 default fontset.
17126 (dump_fontset): New function for debugging.
17127
17128 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17129 coding_type is Qcharset.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17134 (map_char_table): Don't inherit the value from the parent on
17135 initializing VAL. Adjust for the above change.
17136
171372008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 * coding.c (Qsignature, Qendian): Delete these variables.
17140 (syms_of_coding): Don't initialize them.
17141 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17142 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17143 detect_info->found.
17144 (decode_coding_utf_16): Don't detect BOM here.
17145 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17146 is NOT utf_16_without_bom.
17147 (setup_coding_system): For a coding system of type utf-16, check
17148 if the attribute :endian is Qbig or not (not nil or not), and set
17149 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17150 (detect_coding): If coding type is utf-16 and BOM detection is
17151 required, detect it.
17152 (Fdefine_coding_system_internal): For a coding system of type
17153 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17154
171552008-02-01 Kenichi Handa <handa@m17n.org>
17156
17157 * coding.c (coding_set_source): Fix for the case that the current
17158 buffer is different from coding->src_object.
17159 (decode_coding_object): Don't use the conversion work buffer if
17160 DST_OBJECT is a buffer.
17161
171622008-02-01 Dave Love <fx@gnu.org>
17163
17164 * lread.c (read_emacs_mule_char) [len==2]: Index
17165 emacs_mule_charset correctly.
17166
171672008-02-01 Dave Love <fx@gnu.org>
17168
17169 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17170 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17171 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17172 treated specially.)
17173 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17174 (detected_mask): Remove Big5 bits.
17175
171762008-02-01 Kenichi Handa <handa@m17n.org>
17177
17178 The following changes are to make the font rescaling facility
17179 compatible with Emacs 21.
17180
17181 * xfaces.c (Vface_font_rescale_alist): Rename from
17182 Vface_resizing_fonts.
17183 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17184 (font_rescale_ratio): Rename from font_resizing_ratio.
17185 (split_font_name): Set font->rescale_ratio.
17186 (better_font_p): Pay attention to font->rescale_ratio.
17187 (build_scalable_font_name): Likewise. Change RESX, and RESY
17188 fields.
17189 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17194 (Qutf_16_le): Remove these variables.
17195 (syms_of_coding): Don't DEFSYM them.
17196 (decode_coding_utf_16): Fix handling of BOM.
17197 (encode_coding_utf_16): Fix handling of BOM.
17198
171992008-02-01 Kenichi Handa <handa@m17n.org>
17200
17201 * fileio.c (Finsert_file_contents): On replacing, before decoding
17202 the file into the work buffer, set point of the work buffer to the end.
17203
172042008-02-01 Dave Love <fx@gnu.org>
17205
17206 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17207
172082008-02-01 Dave Love <fx@gnu.org>
17209
17210 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17211 and fix C types.
17212
172132008-02-01 Kenichi Handa <handa@m17n.org>
17214
17215 * xdisp.c (SKIP_GLYPHS): New macro.
17216 (set_cursor_from_row): Pay attention to string display properties.
17217
17218 * category.c (copy_category_entry): Fix for the case that RANGE
17219 is an integer.
17220
17221 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17222
17223 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * charset.c (Fcharset_id_internal): New function.
17228 (syms_of_charset): Defsubr it.
17229
17230 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17231 with the last arg charset_list acquired from coding.
17232 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17233 the attribute coding_attr_ccl_valids.
17234
17235 * coding.h (enum define_coding_ccl_arg_index): Set the first
17236 member coding_arg_ccl_decoder to coding_arg_max.
17237
17238 * ccl.h (ccl_driver): Adjust prototype.
17239
17240 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17241 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17242 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17243 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17244 last arg Qnil.
17245
172462008-02-01 Kenichi Handa <handa@m17n.org>
17247
17248 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17249 call encode_char.
17250
17251 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17252
172532008-02-01 Dave Love <fx@gnu.org>
17254
17255 * composite.c (syms_of_composite): Make composition_hash_table weak.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17260 (font_name_registry): Don't extern them.
17261 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17262
17263 * fontset.h (Qfontset): Don't extern it.
17264 (new_fontset_from_font_name): Extern it.
17265
17266 * fontset.c: Give 8 extra slots to fontset objects.
17267 (Qfontset_info): New variable.
17268 (syms_of_fontset): Defsym it.
17269 (FONTSET_FALLBACK): New macro.
17270 (fontset_face): Try also the default fontset.
17271 (make_fontset): Realize a fallback fontset from the default fontset.
17272 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17273 using split_font_name_into_vector and build_font_name_from_vector.
17274 (Fset_fontset_font): Access the elements of font_spec by enum
17275 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17276 name by using split_font_name_into_vector.
17277 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17278 generate a proper font name from the fontset name. Update
17279 Vfontset_alias_alist.
17280 (n_auto_fontsets): New variable.
17281 (new_fontset_from_font_name): New function.
17282 (Ffont_info): Store the information about fonts generated from the
17283 default fontset in the first extra slot of the returned char-table.
17284
17285 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17286 (font_name_registry): Delete function.
17287 (split_font_name_into_vector): New function.
17288 (build_font_name_from_vector): New function.
17289 (font_list): The argument REGISTRY is now a list of registry names.
17290 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17291 specifies an explicit font name, return the name as is. Make a
17292 list of registy names.
17293
17294 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17295 of x_new_fontset.
17296 (Fx_create_frame): Don't call x_new_fontset here. Just use
17297 x_list_fonts to check the existence of fonts.
17298
17299 * xterm.h (x_new_fontset): Adjust prototype.
17300
17301 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17302 string. Use new_fontset_from_font_name to create a fontset from a
17303 font name.
17304
173052008-02-01 Kenichi Handa <handa@m17n.org>
17306
17307 * syntax.c (Vfind_word_boundary_function_table): New name for
17308 Vnext_word_boundary_function_table.
17309 (find-word-boundary-function-table): New name for
17310 next-word-boundary-function-table.
17311
173122008-02-01 Dave Love <fx@gnu.org>
17313
17314 * Makefile.in: Fix some dependencies.
17315
17316 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17317 set it to nil before returning.
17318
17319 * composite.c (update_compositions): Fix type error.
17320
17321 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17322
173232008-02-01 Kenichi Handa <handa@m17n.org>
17324
17325 * xterm.c (x_new_font): Optimize for the case that the font is
17326 already set for the frame.
17327
173282008-02-01 Kenichi Handa <handa@m17n.org>
17329
17330 * chartab.c (char_table_ascii): Check if the char table contents
17331 is sub-char-table or not.
17332 (char_table_set, char_table_set_range): Fix argument to
17333 char_table_ascii.
17334
17335 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17336 (detect_coding_utf_8, detect_coding_utf_16)
17337 (detect_coding_emacs_mule, detect_coding_iso_2022)
17338 (detect_coding_sjis, detect_coding_big5)
17339 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17340 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17341 sequence is valid in this coding system. Change callers.
17342 (MAX_ANNOTATION_LENGTH): New macro.
17343 (ADD_ANNOTATION_DATA): New macro.
17344 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17345 ADD_ANNOTATION_DATA. Change the format of annotation data.
17346 (ADD_CHARSET_DATA): New macro.
17347 (emacs_mule_char): New argument ID. Change callers.
17348 (decode_coding_emacs_mule, decode_coding_iso_2022)
17349 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17350 Produce charset annotation data in coding->charbuf.
17351 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17352 to charset annotation data in coding->charbuf.
17353 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17354 coding->common_flags if the coding system is iso-2022 based and
17355 uses designation.
17356 (produce_composition): Adjust for the new annotation data format.
17357 (produce_charset): New function.
17358 (produce_annotation): Handle charset annotation.
17359 (handle_composition_annotation, handle_charset_annotation): New
17360 functions.
17361 (consume_chars): Handle charset annotation. Utilize the above two
17362 functions.
17363 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17364 buffer, get the deleted text as a string and set
17365 coding->src_object to that string.
17366 (detect_coding, detect_coding_system): Use the new struct
17367 coding_detection_info.
17368
17369 * coding.h (struct coding_detection_info): New structure.
17370 (struct coding_system): Adjust prototype of the member `detector'.
17371 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17372
173732008-02-01 Kenichi Handa <handa@m17n.org>
17374
17375 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17376
173772008-02-01 Dave Love <fx@gnu.org>
17378
17379 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17380 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17381 to new local and nullify apropos_accumulate before returning.
17382 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17383
173842008-02-01 Kenichi Handa <handa@m17n.org>
17385
17386 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17387 correctly.
e3eea1fc 17388
aac0c6e3
MR
173892008-02-01 Dave Love <fx@gnu.org>
17390
17391 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17392
173932008-02-01 Kenichi Handa <handa@m17n.org>
17394
17395 The following changes are to make character composition happen
17396 automatically on displaying.
17397
17398 * Makefile.in (lisp, shortlisp): Add composite.elc.
17399
17400 * composite.h (Qauto_composed, Vauto_composition_function)
17401 (Qauto_composition_function): Extern them.
17402
17403 * composite.c (Vcomposition_function_table)
17404 (Qcomposition_function_table): Delete variables.
17405 (Qauto_composed, Vauto_composition_function)
17406 (Qauto_composition_function): New variables.
17407 (run_composition_function): Don't call
17408 compose-chars-after-function.
17409 (update_compositions): Clear `auto-composed' text property.
17410 (compose_chars_in_text): Delete this function.
17411 (syms_of_composite): Staticpro Qauto_composed and
17412 Qauto_composition_function. Declare Vauto_composition_function as
17413 a Lisp variable.
17414
17415 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17416
17417 * xdisp.c (it_props): Add an entry for Qauto_composed.
17418 (handle_auto_composed_prop): New function.
17419
17420 * xselect.c (selection_data_to_lisp_data): Don't call
17421 compose_chars_in_text.
17422
174232008-02-01 Dave Love <fx@gnu.org>
17424
17425 * keyboard.c (read_char): Modify checking around use of
17426 Vkeyboard_translate_table.
17427
17428 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17429 and fix C types.
17430
174312008-02-01 Kenichi Handa <handa@m17n.org>
17432
17433 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17434 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17435 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17436 the case that the last byte is '\r' correctly.
17437 (decode_coding): Flush out the unprocessed data correctly.
17438 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17439
174402008-02-01 Dave Love <fx@gnu.org>
17441
17442 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17443 Add XK_ISO... case.
17444 (xaw_scroll_callback): Revert last change.
17445
174462008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * xfaces.c (Vface_resizing_fonts): New variable.
17453 (struct font_name): New member `resizing_ratio'.
17454 (font_resizing_ratio): New function.
17455 (split_font_name): Set font->resizing_ratio.
17456 (better_font_p): Pay attention to font->resizing_ratio.
17457 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17458 RESX, and RESY fields.
17459 (try_alternative_families): Try scalable fonts if
17460 Vscalable_fonts_allowed is not Qt.
17461 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17462
174632008-02-01 Dave Love <fx@gnu.org>
17464
17465 * xterm.c (xaw_scroll_callback): Cast correctly.
17466
174672008-02-01 Dave Love <fx@gnu.org>
17468
17469 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17470 (lispy_kana_keys): Comment out.
17471 (make_lispy_event) [XK_kana_A]: Comment out.
17472
17473 * xterm.c (xaw_scroll_callback): Cast call_data.
17474 (XTread_socket): Deal with ASCII keysyms.
17475 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17476
174772008-02-01 Dave Love <fx@gnu.org>
17478
17479 * xterm.c (Vx_keysym_table): New.
17480 (syms_of_xterm): Initialize it.
17481 (XTread_socket): Use it.
17482 From head: Eliminate incorrect optimization that tried to avoid
17483 decoding the output of X*LookupString.
17484 (x_get_font_repertory): Delete charset declaration.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17489 return 0.
17490 (Fdefine_coding_system_internal): Setup
17491 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17492
174932008-02-01 Dave Love <fx@gnu.org>
17494
17495 * coding.c (Fcheck_coding_system): Doc fix.
17496
17497 * editfns.c (Finsert_byte): Return a proper value.
17498
174992008-02-01 Kenichi Handa <handa@m17n.org>
17500
17501 * coding.c (decode_coding): Fix args to translate_chars. Pay
17502 attention to Vstandard_translation_table_for_decode.
17503 (encode_coding): Fix args to translate_chars. Pay attention to
17504 Vstandard_translation_table_for_encode.
17505
17506 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17507 SINGLE_BYTE_CHAR_P.
17508
17509 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17510 not by SINGLE_BYTE_CHAR_P.
17511
17512 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17513 SINGLE_BYTE_CHAR_P.
17514
17515 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17516 SINGLE_BYTE_CHAR_P.
17517
17518 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17519 by SINGLE_BYTE_CHAR_P.
17520
17521 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17522 SINGLE_BYTE_CHAR_P.
17523
175242008-02-01 Dave Love <fx@gnu.org>
17525
17526 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17527
175282008-02-01 Dave Love <fx@gnu.org>
17529
17530 * fns.c (Flanginfo): Fix typo.
17531
17532 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17533
175342008-02-01 Kenichi Handa <handa@m17n.org>
17535
17536 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17537 (detect_coding_emacs_mule, detect_coding_iso_2022)
17538 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17539 incomplete byte sequence. Don't update *mask when correctly detected.
17540 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17541 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17542 (detect_coding, detect_coding_system): Adjust for the changes above.
17543
175442008-02-01 Kenichi Handa <handa@m17n.org>
17545
17546 * character.c (char_string): Rename from
17547 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17548 (string_char): Rename from string_char.
17549
17550 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17551 if C is greater than MAX_3_BYTE_CHAR.
17552 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17553 string_char instead of string_char_with_unification.
17554
175552008-02-01 Dave Love <fx@gnu.org>
17556
17557 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17558
175592008-02-01 Kenichi Handa <handa@m17n.org>
17560
17561 * keymap.c (push_key_description): Pay attention to force_multibyte.
17562
17563 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17564
175652008-02-01 Dave Love <fx@gnu.org>
17566
17567 * charset.c (define_charset_internal): Rename `supprementary'.
17568
17569 * Makefile.in (lisp, shortlisp): Remove latin-N.
17570
175712008-02-01 Dave Love <fx@gnu.org>
17572
17573 * xfns.c (x_window, x_window): Use use_xim.
17574
17575 * xterm.c (use_xim): Initialize.
17576 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17577 (x_term_init): Maybe set use_xim.
17578
17579 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17580
175812008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * search.c (search_buffer): Fix case-fold-search of multibyte
17584 characters.
17585 (boyer_moore): Rename the last argument to char_high_bits.
17586
175872008-02-01 Kenichi Handa <handa@m17n.org>
17588
17589 * xdisp.c (display_string): Fix for the case of zero width glyph.
17590
17591 * xfns.c (x_set_font): Change the error message of the case that
17592 x_new_fontset returns Qt.
17593
17594 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17595 (Finternal_set_lisp_face_attribute): Use signal_error for the
17596 error of invalid fontset.
17597
17598 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17599 fontset, return Qt.
17600
176012008-02-01 Dave Love <fx@gnu.org>
17602
17603 * unexelf.c (unexec): Make .got handling not SGI-specific.
17604
17605 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17606
17607 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17608
17609 * keyboard.c (read_key_sequence): Fix type error.
17610
17611 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17612 type error.
17613
17614 * fontset.c (fontset_add): Return Lisp_Object.
17615
176162008-02-01 Dave Love <fx@gnu.org>
17617
17618 * charset.h (charset_ordered_list_tick): Declare extern.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 The following changes (and some of 2008-02-01 changes of mine) are
17623 for handling syntax, category, and case conversion for unibyte
17624 characters by converting them to multibyte on the fly. With these
17625 changes, we don't have to setup syntax and case tables for unibyte
17626 characters in each language environment.
17627
17628 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17629 multibyte if necessary.
17630
17631 * bytecode.c (Fbyte_code): Likewise.
17632
17633 * character.h (LEADING_CODE_LATIN_1_MIN)
17634 (LEADING_CODE_LATIN_1_MAX): New macros.
17635 (unibyte_to_multibyte_table): Extern it.
17636 (unibyte_char_to_multibyte): New macro.
17637 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17638 (CHAR_LEADING_CODE): New macro.
17639 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17640
17641 * character.c (unibyte_to_multibyte_table): New variable.
17642 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17643 (multibyte_char_to_unibyte): If C is an eight-bit character,
17644 convert it to the corresponding byte value.
17645
17646 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17647 not 1, signals an error. Update the elements of
17648 unibyte_to_multibyte_table.
17649 (init_charset_once): Initialize unibyte_to_multibyte_table.
17650 (syms_of_charset): Define the charset `iso-8859-1'.
17651
17652 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17653 as is without converting it to unibyte. In a unibyte buffer,
17654 convert C to multibyte before checking the syntax.
17655
17656 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17657
17658 * minibuf.c (Fminibuffer_complete_word): Use the macro
17659 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17660
17661 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17662
17663 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17664 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17665 that is zero, convert an eight-bit char to multibyte.
17666 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17667 non-emacs case.
17668 (PATFETCH): Convert an eight-bit char to multibyte.
17669 (HANDLE_UNIBYTE_RANGE): New macro.
17670 (regex_compile): Setup the compiled pattern for multibyte chars
17671 even if the given regex string is unibyte. Use PATFETCH_RAW
17672 instead of PATFETCH in many places. To handle `charset'
17673 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17674 only for ASCII chars.
17675 (analyse_first) <exactn>: Simplify because the compiled pattern
17676 is multibyte.
17677 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17678 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17679 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17680 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17681 multibyte always 1.
17682 (re_search_2): In emacs, set the locale variable multibyte to 1,
17683 otherwise to 0. New local variable target_multibyte. Check it
17684 to decide the multibyteness of STR1 and STR2. If
17685 target_multibyte is zero, convert unibyte chars to multibyte
17686 before translating and checking fastmap.
17687 (TARGET_CHAR_AND_LENGTH): New macro.
17688 (re_match_2_internal): In emacs, set the locale variable multibyte
17689 to 1, otherwise to 0. New local variable target_multibyte. Check
17690 it to decide the multibyteness of STR1 and STR2. Use
17691 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17692 <charset, charset_not>: If multibyte is nonzero, check fastmap
17693 only for ASCII chars. Call bcmp_translate with
17694 target_multibyte, not with multibyte.
17695 <begline>: Declare the local variable C as `unsigned'.
17696 (bcmp_translate): Change the last arg name to target_multibyte.
17697
17698 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17699 the regexp pattern and the matching target. Set cp->buf.multibyte
17700 to the multibyteness of the regexp pattern. Set
17701 cp->but.target_multibyte to the multibyteness of the matching target.
17702 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17703 FETCH_STRING_CHAR_ADVANCE.
17704 (Freplace_match): Convert unibyte chars to multibyte.
17705
17706 * syntax.c (char_quoted, back_comment, scan_words)
17707 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17708 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17709 unibyte chars to multibyte.
17710 (skip_chars): Delete the arg syntaxp, and move the code for
17711 handling syntaxes to skip_syntaxes. Change callers.
17712 Fix the case that the multibyteness of STRING and the current
17713 buffer doesn't match.
17714 (skip_syntaxes): New function.
17715 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17716 SINGLE_BYTE_CHAR_P.
17717
177182008-02-01 Kenichi Handa <handa@m17n.org>
17719
17720 * xfaces.c (QCfontset): New variable.
17721 (LFACE_FONTSET): New macro.
17722 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17723 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17724 (Finternal_set_lisp_face_attribute)
17725 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17726 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17727 check also LFACE_FONTSET_INDEX.
17728 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17729 attrs[LFACE_FONT_INDEX].
17730 (syms_of_xfaces): Intern and staticpro QCfontset.
17731
17732 * dispextern.h (enum lface_attribute_index): New member
17733 LFACE_FONTSET_INDEX.
17734
17735 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17736
177372008-02-01 Kenichi Handa <handa@m17n.org>
17738
17739 * coding.c (coding_set_destination): Fix coding->destination for
17740 the case converting a region.
17741 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17742 (encode_coding_object): Fix coding->dst_pos and
17743 coding->dst_pos_byte for the case converting a region.
17744
17745 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17746
17747 * character.h (BYTE8_STRING): New macro.
17748
17749 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17750
177512008-02-01 Kenichi Handa <handa@m17n.org>
17752
17753 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17754 characters by octal form.
17755
17756 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17757
17758 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17759 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17760 _fetch_multibyte_char_len.
17761 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17762
17763 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17764
17765 * casefiddle.c (casify_object): Simplify. Handle the case that
17766 the case conversion change the byte length.
17767 (casify_region): Likewise.
17768
17769 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17770
17771 * character.c (_fetch_multibyte_char_len): Delete this variable.
17772 (syms_of_character): Setup Vprintable_chars.
17773
17774 * editfns.c (Fchar_equal): Fix for the unibyte case.
17775 (Finsert_byte): New function.
17776 (syms_of_editfns): Defsubr it.
17777
17778 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17779 of direct code 0x3ffff.
17780
17781 * search.c (Freplace_match): Fix for the unibyte case.
17782
177832008-02-01 Kenichi Handa <handa@m17n.org>
17784
17785 * lread.c (safe_to_load_p): Fix the logic.
17786
17787 * syntax.c (scan_words): Don't treat characters belonging to
17788 different scripts as constituting a word.
17789
17790 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17791
17792 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17793
17794 * emacs.c (main): In the case of --unibyte, instead of aborting on
17795 finding non-empty buffer, make it unibyte.
17796
177972008-02-01 Kenichi Handa <handa@m17n.org>
17798
17799 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17800 to create a fontset.
17801
178022008-02-01 Dave Love <fx@gnu.org>
17803
17804 * character.c (Funibyte_char_to_multibyte): Doc fix.
17805
17806 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17807
178082008-02-01 Kenichi Handa <handa@m17n.org>
17809
17810 * fontset.c (fontset_add): Make the type `int'.
17811 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17812
17813 * character.c (unibyte_char_to_multibyte)
17814 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17815 charset_unibyte, not charset_primary.
17816
17817 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17818
17819 * charset.c (charset_unibyte): Rename from charset_primary.
17820 (Funibyte_charset): Rename from Fprimary_charset.
17821 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17822 (syms_of_charset): Adjust for the above changes.
17823
17824 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17825 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17826 it->multibyte_p is zero.
17827
17828 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17829 Delete extern.
17830
178312008-02-01 Kenichi Handa <handa@m17n.org>
17832
17833 * coding.c (Fdefine_coding_system_internal): Fix category setting
17834 for a coding system of type iso-2022.
17835
178362008-02-01 Kenichi Handa <handa@m17n.org>
17837
17838 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17839
178402008-02-01 Kenichi Handa <handa@m17n.org>
17841
17842 * syntax.c (Vnext_word_boundary_function_table): New variable.
17843 (next-word-boundary-function-table): Declare it as a Lisp variable
17844 in syms_of_syntax.
17845 (scan_words): Call functions in Vnext_word_boundary_function_table
17846 if any.
17847
17848 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17849
17850 * fontset.c (fs_load_font): If fontp->charset is not negative,
17851 return fontp without setting its members.
17852
178532008-02-01 Dave Love <fx@gnu.org>
17854
17855 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17856
17857 * m/sparc.h (HAVE_ALLOCA): Delete.
17858
17859 * s/irix6-5.h: Don't include strings.h.
17860 (bcopy, bzero, bcmp): Don't undef.
17861
17862 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17863
17864 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17865 (TIOCSIGSEND): Don't test IRIX6.
17866 (bcopy, bzero, bcmp): Define conditionally.
17867
178682008-02-01 Kenichi Handa <handa@m17n.org>
17869
17870 * buffer.c (Qas, Qmake, Qto): New variables.
17871 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17872 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17873
17874 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17875 we are inserting a process output into a multibyte buffer.
17876
17877 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17878 multibyte_char_to_unibyte.
17879
17880 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17881 by the primary charset, make it eight-bit char.
17882 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17883
17884 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17885 (charset_8_bit__control, charset_8_bit_graphic)
17886 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17887 (define_charset_internal): New function.
17888 (syms_of_charset): Call define_charset_internal for pre-defined
17889 charsets.
17890
17891 * charset.h (charset_8_bit): Extern it.
17892
17893 * coding.c (make_conversion_work_buffer): Adjust for the change
17894 of Fset_buffer_multibyte.
17895 (encode_coding_raw_text): Increment p0 in the loop.
17896
17897 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17898
17899 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17900 for the change of Fset_buffer_multibyte.
17901
17902 * fns.c (Fstring_to_multibyte): New function.
17903 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17904
179052008-02-01 Dave Love <fx@gnu.org>
17906
17907 * xfns.c (x_put_x_image): Declare args.
17908
17909 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17910 (try_font_list): Declare an arg.
17911
17912 * xdisp.c (message2_nolog, set_message): Declare an arg.
17913
17914 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17915
17916 * syntax.c (scan_sexps_forward): Declare an arg.
17917
17918 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17919 Declare an arg.
17920
17921 * lisp.h (Fnew_fontset): Declare.
17922
17923 * keymap.c (push_key_description): Call CHARACTERP correctly.
17924
17925 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17926 (face_for_char): Delete unused vars.
17927 (Fset_fontset_font): Doc fix. Delete unused vars.
17928
17929 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17930
17931 * composite.c (update_compositions): Declare arg.
17932
17933 * cm.c (calccost, cmgoto): Declare args.
17934
17935 * charset.c: Remove `emacs' conditional. Doc fixes.
17936 (map_char_table_for_charset): Declare.
17937
17938 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17939
17940 * ccl.c: Remove `emacs' conditional.
17941
179422008-02-01 Kenichi Handa <handa@m17n.org>
17943
17944 The following changes are to allow specifying multiple font
17945 patterns for a character range (specified by script or charset).
17946
17947 * Makefile.in (abbrev.o): Depend on syntax.h.
17948 (xfaces.o): Depend on charset.h.
17949
17950 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17951 SINGLE_BYTE_CHAR_P.
17952
17953 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17954
17955 * character.h (Vchar_script_table): Extern it.
17956
17957 * character.c (Vscript_alist): Delete.
17958 (Vchar_script_table, Qchar_script_table): New variable.
17959 (syms_of_character): Declare Vchar_script_table as a lisp variable
17960 and initialize it.
17961
17962 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17963 have property char-table-extra-slots, make no extra slot.
17964
17965 * dispextern.h (struct face): Delete member `charset'.
17966 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17967 SINGLE_BYTE_CHAR_P.
17968 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17969 Add prototypes.
17970 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17971 (generate_ascii_font_name): Rename from generate_ascii_font.
17972
17973 * fontset.h (get_font_repertory_func): New prototype.
17974 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17975 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17976
17977 * fontset.c (Qprepend, Qappend): New variables.
17978 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17979 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17980 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17981 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17982 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17983 (load_font_get_repertory): New functions.
17984 (fontset_set): Delete.
17985 (fontset_face): New arg FACE. Return face ID, not face.
17986 Complete re-write to handle new fontset structure. Change caller.
17987 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17988 (face_for_char): Don't call lookup_face.
17989 (make_fontset_for_ascii_face): New arg FACE.
17990 (fs_load_font): New arg CHARSET_ID. Don't check
17991 Vfont_encoding_alist here.
17992 (find_font_encoding): New function.
17993 (list_fontsets): Use STRINGP, not ! NILP.
17994 (accumulate_script_ranges): New function.
17995 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17996 re-written to handle new fontset structure.
17997 (Ffontset_font): Return a copy of element.
17998 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17999 docstring of font-encoding-alist.
18000
18001 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18002 (Fset_fotset_font): Fix arguments to 5.
18003
18004 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18005
18006 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18007 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18008 (highlight_trailing_whitespace): Adjust for the change of
18009 lookup_named_face.
18010
18011 * xfaces.c: Include charset.h.
18012 (load_face_font): Delete argument C. Change caller.
18013 (generate_ascii_font_name): Rename from generate_ascii_font.
18014 (font_name_registry): New function.
18015 (cache_face): Store ascii faces before non-ascii faces in buckets.
18016 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18017 Lookup only ascii faces.
18018 (lookup_non_ascii_face): New function.
18019 (lookup_named_face): Delete argument C. Change caller.
18020 (lookup_derived_face): Delete argument C. Change caller.
18021 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18022 a string, just call font_list with it.
18023 (choose_face_font): Delete arguments FACE and C. New arg
18024 FONT_SPEC. Change caller.
18025 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18026 Change caller.
18027 (realize_non_ascii_face): New function.
18028 (realize_x_face): Call load_face_font here.
18029 (realize_tty_face): Delete argument C. Change caller.
18030 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18031 get a face ID.
18032 (dump_realized_face): Don't print charset of FACE.
18033
18034 * xfns.c (x_set_font): Always call x_new_fontset and
18035 store_frame_parameter.
18036 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18037 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18038
18039 * xterm.h (x_get_font_repertory): Extern it.
18040
18041 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18042 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18043 it->multibyte_p is zero.
18044 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18045 (x_new_fontset): If FONTSETNAME doesn't match any existing
18046 fontsets, create a new one.
18047 (x_get_font_repertory): New function.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * coding.c (Ffind_coding_systems_region_internal): Detect an
18052 ASCII only string correctly.
18053
18054 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18055 version is 0.
18056
180572008-02-01 Kenichi Handa <handa@m17n.org>
18058
18059 * lread.c: Include "coding.h".
18060 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18061 (load_each_byte, unread_char): New variables.
18062 (readchar_backlog): Delete.
18063 (readchar): Return a character unless load_each_byte is nonzero.
18064 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18065 cons. If unread_char is not -1, simply return it.
18066 (unreadchar): Handle the case that readcharfun is
18067 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18068 (read_multibyte): Delete.
18069 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18070 (read_emacs_mule_char): New functions.
18071 (Fload): Even if the file doesn't have the extension ".elc", if
18072 safe_to_load_p returns a positive version number, assume that the
18073 file contains bytecompiled code. If the version is less than 22,
18074 load the file while decoding multibyte sequences by emacs-mule.
18075 (readevalloop): Don't use readchar_backlog.
18076 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18077 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18078 (read_escape): Delete the arg BYTEREP.
18079 (read1): Set load_each_byte to 1 temporarily while handling
18080 #@NUMBER. Don't call read_multibyte.
18081 (read_vector): Call Fread with a cons. If readcharfun is
18082 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18083 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18084 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18085 and Qload_force_doc_strings.
18086
180872008-02-01 Kenichi Handa <handa@m17n.org>
18088
18089 * xdisp.c (face_before_or_after_it_pos): Call
18090 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18091
180922008-02-01 Kenichi Handa <handa@m17n.org>
18093
18094 * character.h (TRAILING_CODE_P): New macro.
18095 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18096 (string_char_with_unification): Fix prototype.
18097 (Vscript_alist): Extern it.
18098
18099 * character.c (Vscript_alist): New variable.
18100 (string_char_with_unification, str_as_unibyte)
18101 (string_escape_byte8): Add `const' to local variables.
18102 (syms_of_character): Declare script-alist as a Lisp variable.
18103
18104 * charset.h (Vcharset_ordered_list): Extern it.
18105 (charset_ordered_list_tick): Extern it.
18106 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18107 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18108 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18109 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18110 (Funify_charset): Adjust for the change of Funify_charset.
18111
18112 * charset.c (charset_ordered_list_tick): New variable.
18113 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18114 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18115 deunify intead of unify a charset.
18116 (string_xstring_p): Add `const' to local variables.
18117 (find_charsets_in_text): Add `const' to arguments and local variables.
18118 (encode_char): Adjust for the change of Funify_charset. Fix
18119 detecting of invalid code.
18120 (Fset_charset_priority): Increment charset_ordered_list_tick.
18121 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18122 and TO_CODE.
18123
18124 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18125 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18126 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18127 (decode_coding_ccl, consume_chars)
18128 (Ffind_coding_systems_region_internal)
18129 (Fcheck_coding_systems_region): Add `const' to local variables.
18130
18131 * print.c (print_object): Use octal form for printing the
18132 contents of a bool vector.
18133
181342008-02-01 Dave Love <fx@gnu.org>
18135
18136 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18137 <version == 20>: Refuse to load.
18138
181392008-02-01 Dave Love <fx@gnu.org>
18140
18141 * fns.c: Move coding.h.
18142 (Qcodeset, Qdays, Qmonths): New.
18143 (concat): Use CHARACTERP instead of INTEGERP.
18144 (Flocale_codeset): Delete.
18145 (Flanginfo): New function.
18146 (syms_of_fns): Change accordingly.
18147
18148 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18149
181502008-02-01 Dave Love <fx@gnu.org>
18151
18152 * casetab.c (init_casetab_once, init_casetab_once): Fix
18153 CHAR_TABLE_SET call.
18154
18155 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18156
18157 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18158
18159 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18160 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18161 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18162
18163 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18164
18165 * coding.c (ENCODE_DESIGNATION, decode_eol)
18166 (make_conversion_work_buffer, code_conversion_restore)
18167 (Fdefine_coding_system_internal): Convert Lisp types.
18168 (code_conversion_restore): Use EQ, not ==.
18169 (Fencode_coding_string): Fix code_convert_string call.
18170
18171 * coding.h (code_convert_region): Fix prototype.
18172
18173 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18174
18175 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18176 (Ffontset_info): Convert Lisp types.
18177
18178 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18179
18180 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18181
18182 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18183
18184 * chartab.c: Include "...h", not <...h> in some cases.
18185
18186 * callproc.c (Fcall_process): Remove unused variables.
18187
181882008-02-01 Dave Love <fx@gnu.org>
18189
18190 * coding.c (Fset_coding_system_priority): Allow null arg list.
18191
181922008-02-01 Dave Love <fx@gnu.org>
18193
18194 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18195 (Fself_insert_and_exit): Use CHARACTERP.
18196
18197 * callproc.c (Fcall_process): Remove unused vars.
18198
18199 * xterm.c (XTread_socket): Add extra dead keysyms.
18200
18201 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18202
18203 * dispextern.h: Remove prototypes for redraw_frame,
18204 redraw_garbaged_frames.
18205
18206 * cmds.c (Fself_insert_command): Use CHARACTERP.
18207
18208 * chartab.c (make_sub_char_table): Remove unused var.
18209 (Fset_char_table_default, Fmap_char_table): Doc fix.
18210
18211 * keymap.c (access_keymap): Remove generic char code.
18212 (push_key_description): Use CHARACTERP.
18213
182142008-02-01 Dave Love <fx@gnu.org>
18215
18216 * charset.c: Doc fixes.
18217 (Funify_charset): Extra checking.
18218
182192008-02-01 Dave Love <fx@gnu.org>
18220
18221 * lread.c: Remove some unused variables.
18222 (safe_to_load_p): If safe, return the magic number version byte.
18223 (Fload): Maybe use load-with-code-conversion.
18224
182252008-02-01 Kenichi Handa <handa@m17n.org>
18226
18227 * category.c (Fmodify_category_entry): Don't modify the contents
18228 of category_set for characters out of the range. Avoid
18229 unnecessary modification.
18230
18231 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18232 Vchar_unify_table. The default value of the table is now nil.
18233
18234 * character.c (syms_of_character): Setup Vchar_width_table for
18235 eight-bit-control and raw-byte chars.
18236
18237 * charset.h (enum define_charset_arg_index): Delete
18238 charset_arg_parents and add charset_arg_subset and
18239 charset_arg_superset.
18240 (enum charset_attr_index): Delete charset_parents and add
18241 charset_subset and charset_superset.
18242 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18243 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18244 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18245 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18246 (CHARSET_SUPERSET): New macros.
18247 (charset_work): Extern it.
18248 (ENCODE_CHAR): Use charset_work.
18249 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18250 (map_charset_chars): Extern it.
18251
18252 * charset.c (load_charset_map): Set the default value of encoder
18253 and deunifier char-tables to nil.
18254 (map_charset_chars): Change argument. Change callers. Use
18255 map_char_table_for_charset instead of map_char_table.
18256 (Fmap_charset_chars): New optional args from_code and to_code.
18257 (Fdefine_charset_internal): Adjust for the change of
18258 `define-charset' (:parents -> :subset or :superset).
18259 (charset_work): New variable.
18260 (encode_char, syms_of_charset): Adjust for the change of
18261 Fdefine_charset_internal.
18262 (Ffind_charset_string): Setup the vector `charsets' correctly.
18263
18264 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18265 the previous change.
18266 (char_table_ref_and_range): Adjust for the above change.
18267 (map_sub_char_table_for_charset): New function.
18268 (map_char_table_for_charset): New function.
18269
18270 * keymap.c (describe_vector): Handle a char-table directly here.
18271 (describe_char_table): Delete.
18272
18273 * lisp.h (map_charset_chars): Delete.
18274
182752008-02-01 Dave Love <fx@gnu.org>
18276
18277 * fns.c (count_combining): Comment out (unused).
18278 (Flocale_codeset): New.
18279 (syms_of_fns): Defsubr it.
18280
18281 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18282 (size_t): Remove.
18283
182842008-02-01 Dave Love <fx@gnu.org>
18285
18286 * Makefile.in (chartab.o): Depend on charset.h.
18287
182882008-02-01 Kenichi Handa <handa@m17n.org>
18289
18290 * character.c (syms_of_character): Set the default value of
18291 Vprintable_chars to Qnil.
18292
182932008-02-01 Dave Love <fx@gnu.org>
18294
18295 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 * charset.c (load_charset_map): Handle the case that from < to
18300 correctly.
18301
18302 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18303 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18304 Pay attention to raw-8-bit chars.
18305
183062008-02-01 Kenichi Handa <handa@m17n.org>
18307
18308 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18309 It is not bytecompiled now.
18310
18311 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18312 (charset_jisx0208): New variables.
18313 (Fdefine_charset_internal): Setup them if appropriate.
18314 (init_charset_once): Initialize them to -1.
18315
18316 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18317 (charset_jisx0208): Extern them.
18318
18319 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18320 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18321 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18322 (setup_iso_safe_charsets): Fix arguments to Fassq.
18323 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18324 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18325 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18326 (encode_coding_iso_2022): Change the 1st arg to
18327 ENCODE_ISO_CHARACTER to a variable.
18328
183292008-02-01 Kenichi Handa <handa@m17n.org>
18330
18331 * charset.h (enum define_charset_arg_index): New enums
18332 charset_arg_min_code and charset_arg_max_code.
18333 (struct charset): New member char_index_offset.
18334
18335 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18336 Take charset->char_index_offset into account.
18337 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18338 args[charset_arg_max_code]. Setup charset.char_index_offset.
18339 (syms_of_charset): Fix args to Fdefine_charset_internal.
18340
183412008-02-01 Dave Love <fx@gnu.org>
18342
18343 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18344
183452008-02-01 Dave Love <fx@gnu.org>
18346
18347 * coding.c: Doc fixes.
18348 (Fcoding_system_aliases): Fix return value.
18349 (Qmac): Remove (duplicated) definition.
18350
183512008-02-01 Dave Love <fx@gnu.org>
18352
362654a6
JB
18353 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18354 New functions.
aac0c6e3
MR
18355
18356 * character.c (Fstring): Doc fix.
18357
18358 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18359
362654a6 18360 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18361 (font-encoding-alist): Doc fix.
18362
183632008-02-01 Dave Love <fx@gnu.org>
18364
18365 * term.c (costs_set): Declare static, non-initialized for pcc.
18366 (encode_terminal_code): Remove unused var.
18367
18368 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18369 for K&R.
18370
18371 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18372
18373 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18374 (suffixes): Move out of make_subsidiaries for K&R.
18375
18376 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18377
18378 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18379
183802008-02-01 Dave Love <fx@gnu.org>
18381
18382 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18383
18384 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18385
183862008-02-01 Yong Lu <lyongu@asia-infonet.com>
18387
18388 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18389
18390 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18391
183922008-02-01 Kenichi Handa <handa@m17n.org>
18393
18394 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18395 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18396
183972008-02-01 Kenichi Handa <handa@m17n.org>
18398
18399 * coding.c (decode_coding_charset): Adjust for the change of
18400 Fdefine_coding_system_internal.
18401 (Fdefine_coding_system_internal): For a coding system of
18402 `charset' type, store a list of charset IDs in
18403 `charset_attr_charset_valids' element of coding attributes.
18404
184052008-02-01 Kenichi Handa <handa@m17n.org>
18406
18407 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18408 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18409 caller. Handle 2-byte and 3-byte charsets correctly.
18410 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18411 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18412 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18413 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18414 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18415 sequence.
18416 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18417 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18418 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18419 and alt&rule composition.
18420 (decode_coding_iso_2022): Handle composition correctly.
18421 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18422
18423 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18424 re-defining a charset. If the charset has :emacs-mule-id, setup
18425 emacs_mule_bytes.
18426 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18431 (encode_coding_big5, encode_coding_charset): If coding requires safe
18432 encoding, produce a character specified by
18433 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18434
184352008-02-01 Dave Love <fx@gnu.org>
18436
18437 * xterm.c (XSetIMValues): Declare.
18438
18439 * process.c: Conditionally include sys/wait.h, pty.h.
18440
18441 * print.c (print_object): Fix print format for 64-bit systems.
18442
18443 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18444
18445 * buffer.c (emacs_strerror): Declare.
18446
18447 * fontset.c (Fclear_face_cache): Declare.
18448 (accumulate_font_info): Comment-out (unused).
18449 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18450 variables.
18451
18452 * character.h (string_escape_byte8): Declare.
18453
18454 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18455 unused vars.
18456 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18457 (Fmap_charset_chars): Doc fix.
18458
18459 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18460 (Fset_coding_system_priority, Fset_coding_system_priority)
18461 (Fdefine_coding_system_internal): Doc fix.
18462
184632008-02-01 Dave Love <fx@gnu.org>
18464
18465 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18466
184672008-02-01 Kenichi Handa <handa@m17n.org>
18468
18469 * character.c (string_escape_byte8): Make multibyte string with
18470 correct size.
18471
18472 * charset.c (Fmake_char): Delete unnecessary code.
18473
184742008-02-01 Kenichi Handa <handa@m17n.org>
18475
18476 * xfns.c (x_encode_text): Allocate coding.destination here, and
18477 call encode_coding_object with dst_object Qnil.
18478
18479 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18480 multibyte form correctly.
18481
18482 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18483 against Vfont_encoding_alist.
18484
18485 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18486 handling of charset list.
18487 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18488 (decode_coding_object): Move point to coding->dst_pos before
18489 calling post-read-conversion function.
18490 (encode_coding_object): Give correct arguments to
18491 pre-write-conversion. Ignore the return value of
18492 pre-write-conversion function. Pay attention to the case that
18493 pre-write-conversion changes the current buffer. If dst_object is
18494 Qt, even if coding->src_bytes is zero, allocate at least one byte
18495 to coding->destination.
18496
18497 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18498
18499 * charset.c (Fmake_char): Make it more backward compatible.
18500 (Fmap_charset_chars): Fix docstring.
18501
185022008-02-01 Dave Love <fx@gnu.org>
18503
18504 * coding.c: Doc fixes.
18505 (Fdefine_coding_system_alias): Use names, not symbols, in
18506 coding-system-alist.
18507
185082008-02-01 Kenichi Handa <handa@m17n.org>
18509
18510 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18511 of calling free_realized_face.
18512
185132008-02-01 Yong Lu <lyongu@asia-infonet.com>
18514
18515 * charset.c (read_hex): Don't treat SPC as a comment starter.
18516 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18517 (Fdecode_char): Fix typo.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * charset.h (struct charset): New member `code_space_mask'.
18522
18523 * coding.c (coding_set_source): Delete the local variable beg_byte.
18524 (encode_coding_charset, Fdefine_coding_system_internal):
18525 Delete the local variable charset.
18526 (Fdefine_coding_system_internal): Setup
18527 attrs[coding_attr_charset_valids] correctly.
18528
18529 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18530 member to check if CODE is valid or not.
18531 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18532 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18533 is within the range of charset->min_code and carset->max_code.
18534
185352008-02-01 Dave Love <fx@gnu.org>
18536
18537 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18538
18539 * dispextern.h (generate_ascii_font): Fix return type.
18540
18541 * xfaces.c (generate_ascii_font): Fix arg declaration.
18542
18543 * coding.c (coding_inherit_eol_type)
18544 (Fset_terminal_coding_system_internal)
18545 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18546
185472008-02-01 Kenichi Handa <handa@m17n.org>
18548
18549 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18550 multiple charsets correctly.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * search.c (boyer_moore): Fix handling of multibyte character
18555 translation.
18556
18557 * xdisp.c (display_mode_element): When the variable `elt' is
18558 changed, update `this' and `lisp_string'.
18559
185602008-02-01 Kenichi Handa <handa@m17n.org>
18561
18562 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18563
18564 * callproc.c (Fcall_process): Be sure to give the current buffer
18565 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18566
18567 * charset.c (struct charset_map_entries): New struct.
18568 (load_charset_map): Rename from parse_charset_map. New args
18569 entries and n_entries. Change caller.
18570 (load_charset_map_from_file): Rename from load_charset_map.
18571 Change caller. New arg control_flag. Call load_charset_map at
18572 the tail.
18573 (load_charset_map_from_vector): New function.
18574 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18575 (encode_char): If the charset is compact, change a character index
18576 to a code point.
18577
18578 * coding.c (coding_alloc_by_making_gap): Check the case that the
18579 source and destination are the same correctly.
18580 (decode_coding_raw_text): Set coding->consumed_char and
18581 coding->consumed to 0.
18582 (produce_chars): If coding->chars_at_source is nonzero, update
18583 coding->consumed_char and coding->consumed before calling
18584 alloc_destination.
18585 (Fdefine_coding_system_alias): Register ALIAS in
18586 Vcoding_system_alist.
18587 (syms_of_coding): Define `no-conversion' coding system at the tail.
18588
18589 * fileio.c (Finsert_file_contents): Set coding_system instead of
18590 val. If the current buffer is multibyte, always call
18591 decode_coding_gap.
18592
18593 * xfaces.c (try_font_list): Give higher priority to fontset's
18594 family than face's family.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 * callproc.c (Fcall_process): Be sure to give the current buffer
18599 to decode_coding_c_string.
18600
18601 * xfaces.c (try_font_list): Give a family specified in a fontset
18602 higher priority than a family specified in a face.
18603
186042008-02-01 Kenichi Handa <handa@m17n.org>
18605
18606 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18607 Fix arguments to insert_from_buffer.
18608
18609 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18610
186112008-02-01 Kenichi Handa <handa@m17n.org>
18612
18613 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18614 (decode_coding_gap): Set coding->dst_multibyte correctly.
18615
186162008-02-01 Kenichi Handa <handa@m17n.org>
18617
18618 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18619 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18620 (encode_coding_utf_16): Substitute coding->default_char for
18621 non-Unicode characters.
18622 (decode_coding): Don't call record_insert here.
18623 (setup_coding_system): Initialize `surrogate' of
18624 coding->spec.utf_16 to 0.
18625 (EMIT_ONE_BYTE): Fix for multibyte case.
18626
18627 * insdel.c (insert_from_gap): Call record_insert.
18628
186292008-02-01 Kenichi Handa <handa@m17n.org>
18630
18631 * casefiddle.c (casify_region): Fix multibyte case.
18632
18633 * character.c (c_string_width): Add return type `int'.
18634 (char_string_with_unification): Delete arg ADVANCED.
18635
18636 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18637 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18638 (CHAR_STRING_ADVANCE): Make it do-while statement.
18639
18640 * chartab.c (sub_char_table_set_range): Optimize for the case
18641 DEPTH == 3. Add workaround code for a GCC optimization bug.
18642
18643 * charset.c (parse_charset_map): Remove an unused variable.
18644
18645 * coding.c: Delete unused variables.
18646
18647 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18648 earlier. If inserted is zero and the coding system doesn't
18649 require flushing, don't call decode_coding_gap.
18650
18651 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 The following changes are for using Unicode as an internal
18656 character model, and use UTF-8 format for buffer/string
18657 representation.
18658
18659 * .gdbinit (xchartable): Adjust for the change of char table structure.
18660 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18661
18662 * Makefile.in (obj): Add character.o and chartab.o.
18663 (lisp, shortlisp): Remove utf-8.elc.
18664 (*.o): For many files, change dependency on charset.h to
18665 character.h, and add dependency on character.h.
18666 (character.o, chartab.o): New targets.
18667
18668 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18669 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18670 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18671 of "charset.h".
18672
18673 * dired.c, filelock.c: Include "character.h".
18674
18675 * alloc.c: Include "character.h" instead of "charset.h".
18676 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18677 (syms_of_alloc): Remove defsubr for Smake_char_table.
18678
18679 * buffer.c: Include "character.h" instead of "charset.h", don't
18680 include "coding.h".
18681 (Fset_buffer_multibyte): Adjust for UTF-8.
18682
18683 * buffer.h: EXFUN Fbuffer_live_p.
18684
18685 * callproc.c: Include "character.h" instead of "charset.h".
18686 (Fcall_process): Big change for the new code-conversion APIs.
18687
18688 * casetab.c: Include "character.h" instead of "charset.h".
18689 (set_canon, set_identity, shuffle): Adjust for the new
18690 map_char_table spec.
18691 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18692 accessing the char table structure.
18693
18694 * chartab.c: New file that implements char table.
18695
18696 * category.c: Include "character.h".
18697 (copy_category_entry): New function.
18698 (copy_category_table): Call map_char_table and copy_category_entry.
18699 (Fmake_category_table): Initialize all top-level slots.
18700 (char_category_set): New function.
18701 (modify_lower_category_set): Delete.
18702 (Fmodify_category_entry): Call char_table_ref_and_range.
18703
18704 * category.h (CATEGORY_SET): Just call char_category_set.
18705
18706 * ccl.c: Include "character.h".
18707 (Qccl, Qcclp): New variables.
18708 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18709 it's less than 256.
18710 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18711 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18712 and DST type.
18713 (ccl_driver): Change types of argument, adjust code accordingly.
18714 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18715 ccl_driver.
18716 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18717
18718 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18719 New members src_multibyte, dst_multibyte, consumed, and produced.
18720 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18721 (CODING_SPEC_CCL_PROGRAM): New macro.
18722 (ccl_driver): Update prototype.
18723 (Qccl, Qcclp, Fccl_program_p): Extern them.
18724 (CHECK_CCL_PROGRAM): New macro.
18725
18726 * character.c, character.h, chartab.c: New files.
18727
18728 * charset.c: Mostly re-written. Move character and multibyte sequence
18729 handling codes to character.c.
18730
18731 * charset.h: Mostly re-written. Move character and multibyte sequence
18732 handling codes to character.h.
18733
18734 * coding.c, coding.h: Mostly re-written.
18735
18736 * composite.c: Include "character.h" instead of "charset.h".
18737 (CHAR_WIDTH): Move to character.h.
18738 (HASH_KEY, HASH_VALUE): Delete.
18739
18740 * composite.h (enum composition_method): Change order of enumeration
18741 symbols.
18742
18743 * data.c: Include "character.h" instead of "charset.h".
18744 (Faref): Call CHAR_TABLE_REF for a char table.
18745 (Faset): Call CHAR_TABLE_SET for a char table.
18746
18747 * dispextern.h (free_realized_face, check_face_attribytes)
18748 (generate_ascii_font): Extern them.
18749 (free_realized_multibyte_face): Delete extern.
18750
18751 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18752 table structure.
18753
18754 * editfns.c: Include "character.h" instead of "charset.h".
18755 (Fchar_to_string): Always call CHAR_STRING.
18756
18757 * emacs.c (main): Call init_charset_once, init_charset,
18758 syms_of_chartab, and syms_of_character.
18759
18760 * fileio.c: Include "character.h" instead of "charset.h".
18761 (Finsert_file_contents): Big change for the new code-conversion API.
18762 (choose_write_coding_system, Fwrite_region): Likewise.
18763 (build_annotations_2): Delete.
18764 (e_write): Big change for the new code-conversion API.
18765
18766 * fns.c: Include "character.h" instead of "charset.h".
18767 (copy_sub_char_table): Move to chartab.c.
18768 (Fcopy_sequence): Call copy_char_table for a char table.
18769 (concat): Delete codes calling count_multibyte.
18770 (string_char_to_byte, string_byte_to_char): Adjust for the new
18771 multibyte form.
18772 (internal_equal): Adjust for the change of char table structure.
18773 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18774 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18775 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18776 (char_table_translate, optimize_sub_char_table)
18777 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18778 chartab.c.
18779 (char_table_ref_and_index): Delete.
18780 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18781 (Fmd5): Call preferred_coding_system instead of accessing
18782 Vcoding_category_list. Adjust for the new code-conversion API.
18783 (syms_of_fns): Move defsubr for char table related functions to
18784 chartab.c.
18785
18786 * fontset.c: Mostly re-written.
18787
18788 * fontset.h (struct font_info): Change type of the member encoding_type.
18789 (enum FONT_SPEC_INDEX): New enum.
18790 (fontset_font_pattern, fs_load_font): Update prototype.
18791 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18792
18793 * indent.c: Include "character.h" instead of "charset.h".
18794 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18795
18796 * insdel.c: Include "character.h" instead of "charset.h".
18797 (copy_text): Don't refer to Vnonascii_translation_table.
18798 (insert_from_gap): New function.
18799
18800 * keyboard.c: Include "character.h" instead of "charset.h".
18801 (command_loop_1): Never call direct_output_forward_char before
18802 a non-ASCII character.
18803 (read_char): If Vkeyboard_translate_table is a char table, always
18804 translate a character.
18805
18806 * keymap.c: Include "character.h".
18807 (store_in_keymap): Handle the case that IDX is a cons.
18808 (Fdefine_key): Handle the case that KEY is a cons and the car part
18809 is also a cons (range).
18810 (push_key_description): Adjust for the new character code.
18811 (describe_vector): Call describe_char_table for a char table.
18812 (describe_char_table): New function.
18813
18814 * keymap.h (describe_char_table): Extern it.
18815
18816 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18817 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18818 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18819 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18820 Delete.
18821 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18822 structure.
18823 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18824 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18825 (CHARTAB_SIZE_BITS_3): New macros.
18826 (chartab_size): Extern it.
18827 (struct Lisp_Char_Table): Re-design.
18828 (struct Lisp_Sub_Char_Table): New structure.
18829 (HASH_KEY, HASH_VALUE): Move from fns.c.
18830 (CHARACTERBITS): Define as 22.
18831 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18832 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18833 (GC_SUB_CHAR_TABLE_P): New macro.
18834 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18835 (code_convert_string_norecord): Deleted extern.
18836 (init_character_once, syms_of_character, init_charset)
18837 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18838
18839 * lread.c: Include "character.h".
18840 (read_multibyte): New arg NBYTES.
18841 (read_escape): Change the meaning of returned *BYTEREP.
18842 (to_multibyte): Delete.
18843 (read1): Adjust the handling of char table and string.
18844
18845 * print.c: Include "character.h" instead of "charset.h".
18846 (print_string): Convert 8-bit raw bytes to octal form by
18847 string_escape_byte8.
18848 (print_object): Adjust for the new multibyte form. Print 8-bit
18849 raw bytes always in octal form. Handle sub char table correctly.
18850
18851 * process.c: Include "character.h" instead of "charset.h".
18852 (read_process_output, send_process): Adjust for the new
18853 code-conversion API.
18854
18855 * puresize.h (BASE_PURESIZE): Increase.
18856
18857 * regex.c: Include "character.h" instead of "charset.h".
18858 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18859 (regex_compile): Accept a range whose starting and ending
18860 character have different leading bytes.
18861 (analyse_first): Adjust for the above change.
18862
18863 * search.c: Include "character.h" instead of "charset.h".
18864 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18865 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18866
18867 * syntax.c: Include "character.h" instead of "charset.h".
18868 (syntax_parent_lookup): Delete.
18869 (Fmodify_syntax_entry): Accept a cons as CHAR.
18870 (skip_chars): Adjust for the new multibyte form.
18871 (init_syntax_once): Call char_table_set_range instead of directly
18872 accessing the structure of a char table.
18873
18874 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18875 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18876 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18877 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18878
18879 * term.c: Include "buffer.h" and "character.h".
18880 (encode_terminal_code, write_glyphs): Adjust for the new
18881 code-conversion API.
18882 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18883
18884 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18885
18886 * xdisp.c: Include "character.h".
18887 (get_next_display_element): Adjust for the new multibyte form.
18888 (disp_char_vector): Adjust for the new char table structure.
18889 (decode_mode_spec_coding): Adjust for the new structure of
18890 coding system.
18891 (decode_mode_spec): Adjust for the new code-conversion API.
18892
18893 * xfaces.c: Include "character.h" instead of "charset.h".
18894 (load_face_font): Adjust for the change of choose_face_font and
18895 FS_LOAD_FONT.
18896 (generate_ascii_font): New function.
18897 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18898 (set_font_frame_param): Adjust for the change of choose_face_font.
18899 (free_realized_face): Make it public.
18900 (free_realized_faces_for_fontset): Rename from
18901 free_realized_multibyte_face. Free also faces realized for ASCII.
18902 (choose_face_font): Change arguments. Adjust for the change of
18903 fontset_font_pattern and FS_LOAD_FONT.
18904
18905 * xfns.c: Include "character.h".
18906 (x_encode_text): Adjust for the new code-conversion API.
18907
18908 * xselect.c: Don't include "charset.h".
18909 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18910
18911 * xterm.c: Include "character.h".
18912 (x_encode_char): New argument CHARSET. Change caller.
18913 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18914 Call ENCODE_CHAR instead of SPLIT_CHAR.
18915 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18916 CHAR_WIDTH instead of CHARSET_WIDTH.
18917 (XTread_socket): Adjust for the new code-conversion API.
18918 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18919 (x_load_font): Adjust for the change of struct font.
18920
189212008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18922
18923 * xfaces.c (face_at_buffer_position): Remove unused vars.
18924
189252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18926
18927 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18928 Fix overflow checking.
18929
189302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18931
18932 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18933 Cancel previous change.
18934
189352008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18936
18937 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18938 ccl->eight_bit_control. Fix check for buffer overflow.
18939 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18940 (ccl_driver): Initialize extra_bytes to 0.
18941
189422008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18943
18944 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18945 return it ORed with ctrl_modifier.
18946
189472008-01-29 Miles Bader <miles@gnu.org>
18948
18949 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18950
189512008-01-28 Jason Rumney <jasonr@gnu.org>
18952
18953 * w32.c (stat): Don't double check for networked drive.
18954
189552008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18956
18957 * window.c (run_window_configuration_change_hook): New function.
18958 Code extracted from set_window_buffer. Set the selected frame.
18959 (set_window_buffer): Use it.
18960 * window.h (run_window_configuration_change_hook): Declare.
18961 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18962
18963 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18964
189652008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18966
18967 * Makefile.in: Remove references to unused macros.
18968
189692008-01-26 Eli Zaretskii <eliz@gnu.org>
18970
18971 * w32.c (g_b_init_get_sid_sub_authority)
18972 (g_b_init_get_sid_sub_authority_count): New static variables.
18973 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18974 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18975 (init_user_info): Use them to retrieve uid and gid.
18976 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18977 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18978 st_uid and st_gid of the file.
18979
189802008-01-26 Jason Rumney <jasonr@gnu.org>
18981
18982 * w32.c (logon_network_drive): New function.
18983 (stat): Use it.
18984
189852008-01-26 Chong Yidong <cyd@stupidchicken.com>
18986
18987 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18988 invisible text covered with an ellipsis.
18989
189902008-01-25 Richard Stallman <rms@gnu.org>
18991
18992 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18993 jump back to beginning. Move some other initializations after that.
18994 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18995 New variables.
18996 (syms_of_xdisp): Init them.
18997
18998 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18999
19000 * buffer.c (reset_buffer_local_variables):
19001 Implement `permanent-local-hook'.
19002 (Qpermanent_local_hook): New variable.
19003 (syms_of_buffer): Init and staticpro it.
19004
190052008-01-25 Michael Albinus <michael.albinus@gmx.de>
19006
19007 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19008
190092008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19010
19011 * fns.c (Fclrhash): Return TABLE.
19012
190132008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19014
19015 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19016 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19017 is set even without positional changes.
19018 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19019
19020 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19021
190222008-01-23 Jason Rumney <jasonr@gnu.org>
19023
19024 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19025
19026 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19027 the unicode range available in MULE by locale-coding-system.
19028 Improve dbcs lead byte detection. Set event timestamp and modifiers
19029 earlier.
19030
190312008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19032
19033 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19034 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19035 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19036 when used on child processes.
19037
190382008-01-21 Michael Albinus <michael.albinus@gmx.de>
19039
19040 * dbusbind.c (Fdbus_method_return_internal): Rename from
19041 Fdbus_method_return.
19042 (Fdbus_unregister_object): Move to dbus.el.
19043 (Fdbus_call_method, Fdbus_method_return_internal)
19044 (Fdbus_send_signal): Improve debug messages.
19045
190462008-01-20 Martin Rudalics <rudalics@gmx.at>
19047
19048 * undo.c (undo_inhibit_record_point): New variable.
19049 (syms_of_undo): Initialize it.
19050 (record_point): Don't record point when undo_inhibit_record_point
19051 is set.
19052
190532008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19054
19055 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19056
19057 * xdisp.c (Qauto_hscroll_mode): New var.
19058 (syms_of_xdisp): Initialize it.
19059 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19060 window's buffer.
19061 (hscroll_windows): Don't check automatic_hscrolling_p here.
19062
19063 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19064 vscroll if we're setting window-buffer to the value it already has.
19065
190662008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19067
19068 * m/intel386.h: Remove references to XENIX.
19069
190702008-01-17 Andreas Schwab <schwab@suse.de>
19071
19072 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19073 instead of HAVE_X86_64_LIB64_DIR.
19074 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19075
190762008-01-17 Glenn Morris <rgm@gnu.org>
19077
19078 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19079 to HAVE_X86_64_LIB64_DIR.
19080
190812008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19082
19083 * s/irix3-3.h:
19084 * s/irix4-0.h:
19085 * s/386-ix.h:
19086 * s/domain.h:
19087 * s/hpux9-x11r4.h:
19088 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19089
19090 * sysdep.c: Remove code containing references to symbols defined
19091 by unsupported systems.
19092
190932008-01-16 Glenn Morris <rgm@gnu.org>
19094
19095 * coding.c (select-safe-coding-system-function): Doc fix.
19096
190972008-01-15 Glenn Morris <rgm@gnu.org>
19098
19099 * config.in: Revert 2008-01-13 change: this is a generated file.
19100
191012008-01-13 Tom Tromey <tromey@redhat.com>
19102
19103 * lisp.h: Fix typo.
19104
191052008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19106
19107 * m/sequent-ptx.h:
19108 * m/sequent.h:
19109 * s/ptx.h:
19110 * s/ptx4-2.h:
19111 * s/ptx4.h: Remove files for systems no longer supported.
19112
19113 * callproc.c (Fcall_process): Fix previous change.
19114
191152008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19116
19117 * unexsunos4.c: Remove file, system not supported anymore.
19118
19119 * m/mips.h:
19120 * m/intel386.h:
19121 * callproc.c:
19122 * config.in:
19123 * ecrt0.c:
19124 * emacs.c:
19125 * fileio.c:
19126 * frame.c:
19127 * getpagesize.h:
19128 * keyboard.c:
19129 * lread.c:
19130 * process.c:
19131 * puresize.h:
19132 * sysdep.c:
19133 * systty.h:
19134 * syswait.h:
19135 * unexec.c:
19136 * xdisp.c:
19137 * alloc.c: Remove code containing references to symbols defined by
19138 unsupported systems.
19139
191402008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19141
19142 * coding.c (detect_coding_mask): Fix previous change.
19143
191442008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19145
19146 * coding.c (detect_coding_iso2022): New arg
19147 latin_extra_code_state. Allow Latin extra codes only
19148 when *latin_extra_code_state is nonzero.
19149 (detect_coding_mask): If there is a NULL byte, detect the encoding
19150 as UTF-16 or binary. If Latin extra codes exist, detect the
19151 encoding as ISO-2022 only when there's no other proper encoding is
19152 found.
19153
191542008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19155
19156 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19157 #ifdef MAC_OS.
19158
191592008-01-08 Richard Stallman <rms@gnu.org>
19160
19161 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19162
191632008-01-06 Nick Roberts <nickrob@snap.net.nz>
19164
19165 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19166 menu bar in parentheses.
19167
191682008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19169
19170 * m/7300.h:
19171 * m/acorn.h:
19172 * m/alliant-2800.h:
19173 * m/alliant.h:
19174 * m/alliant1.h:
19175 * m/alliant4.h:
19176 * m/altos.h:
19177 * m/amdahl.h:
19178 * m/apollo.h:
19179 * m/att3b.h:
19180 * m/aviion-intel.h:
19181 * m/aviion.h:
19182 * m/celerity.h:
19183 * m/clipper.h:
19184 * m/cnvrgnt.h:
19185 * m/convex.h:
19186 * m/cydra5.h:
19187 * m/delta88k.h:
19188 * m/dpx2.h:
19189 * m/dual.h:
19190 * m/elxsi.h:
19191 * m/f301.h:
19192 * m/gould-np1.h:
19193 * m/gould.h:
19194 * m/i860.h:
19195 * m/ibmps2-aix.h:
19196 * m/ibmrt-aix.h:
19197 * m/ibmrt.h:
19198 * m/irist.h:
19199 * m/is386.h:
19200 * m/isi-ov.h:
19201 * m/mega68.h:
19202 * m/mg1.h:
19203 * m/news-r6.h:
19204 * m/news-risc.h:
19205 * m/news.h:
19206 * m/nh3000.h:
19207 * m/nh4000.h:
19208 * m/ns16000.h:
19209 * m/ns32000.h:
19210 * m/nu.h:
19211 * m/orion.h:
19212 * m/orion105.h:
19213 * m/paragon.h:
19214 * m/pfa50.h:
19215 * m/plexus.h:
19216 * m/pyramid.h:
19217 * m/pyrmips.h:
19218 * m/sh3el.h:
19219 * m/sps7.h:
19220 * m/sr2k.h:
19221 * m/stride.h:
19222 * m/sun1.h:
19223 * m/sun2.h:
19224 * m/sun3-68881.h:
19225 * m/sun3-fpa.h:
19226 * m/sun3-soft.h:
19227 * m/sun3.h:
19228 * m/sun386.h:
19229 * m/symmetry.h:
19230 * m/tad68k.h:
19231 * m/tahoe.h:
19232 * m/targon31.h:
19233 * m/tek4300.h:
19234 * m/tekxd88.h:
19235 * m/tower32.h:
19236 * m/tower32v3.h:
19237 * m/ustation.h:
19238 * m/wicat.h:
19239 * m/xps100.h:
19240 * s/cxux.h:
19241 * s/cxux7.h:
19242 * s/dgux.h:
19243 * s/dgux4.h:
19244 * s/dgux5-4-3.h:
19245 * s/dgux5-4r2.h:
19246 * s/esix.h:
19247 * s/esix5r4.h:
19248 * s/hiuxmpp.h:
19249 * s/hiuxwe2.h:
19250 * s/iris3-5.h:
19251 * s/iris3-6.h:
19252 * s/isc2-2.h:
19253 * s/isc3-0.h:
19254 * s/isc4-0.h:
19255 * s/isc4-1.h:
19256 * s/newsos5.h:
19257 * s/newsos6.h:
19258 * s/osf1.h:
19259 * s/osf5-0.h:
19260 * s/riscix1-1.h:
19261 * s/riscix12.h:
19262 * s/sco4.h:
19263 * s/sco5.h:
19264 * s/sunos4-0.h:
19265 * s/sunos4-1.h:
19266 * s/sunos413.h:
19267 * s/sunos4shr.h:
19268 * s/umax.h:
19269 * s/unipl5-2.h:
19270 * s/xenix.h:
19271 * cxux-crt0.s:
19272 * unexapollo.c:
19273 * unexconvex.c:
19274 * unexenix.c:
19275 * unexsni.c: Remove files for systems no longer supported.
19276
19277 * m/intel386.h: Remove references to unsupported systems.
19278
19279 * w32.c (get_emacs_configuration): Remove reference to i860.
19280
19281 * sysdep.c: Remove dead code.
19282
192832008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19284
19285 * s/rtu.h:
19286 * m/masscomp.h: Remove files. Platform is obsolete.
19287
192882008-01-04 Michael Albinus <michael.albinus@gmx.de>
19289
19290 * dbusbind.c (Fdbus_method_return): New function.
19291 (xd_read_message): Add the serial number to the event.
19292 (Fdbus_register_method): Activate the function.
19293
192942008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19295
19296 * keyboard.c (read_key_sequence): Fix typo.
19297
192982008-01-03 Michael Albinus <michael.albinus@gmx.de>
19299
19300 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19301 (xd_signature, xd_append_arg): Handle element type detection for
19302 empty arrays.
19303 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19304 SDATA () calls; this must be solved more general.
19305 (Fdbus_register_signal): Use SBYTES instead of strlen.
19306
193072008-01-03 Magnus Henoch <magnus@zemdatav>
19308
19309 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19310 unsigned int for byte values (necessary for big-endian platform).
19311 (Fdbus_call_method): Handle the case of no returned arguments.
19312
193132007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19314
19315 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19316
193172007-12-31 Magnus Henoch <mange@freemail.hu>
19318
19319 * dbusbind.c (xd_signature): Signature of variant is just "v".
19320
193212007-12-30 Michael Albinus <michael.albinus@gmx.de>
19322
19323 * dbusbind.c: Fix several errors and compiler warnings.
19324 Reported by Tom Tromey <tromey@redhat.com>.
19325 (XD_ERROR, XD_DEBUG_MESSAGE)
19326 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19327 (xd_append_arg): Part for basic D-Bus types rewritten.
19328 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19329 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19330 appropriate.
19331 (xd_read_message): Return Qnil. Don't signal an error; it is not
19332 useful during event reading.
19333 (Fdbus_register_signal): Signal an error if the check for
19334 FUNCTIONP fails.
19335 (Fdbus_register_method): New function. The implementation is not
19336 complete, the call of the function signals an error therefore.
19337 (Fdbus_unregister_object): New function, renamed from
19338 Fdbus_unregister_signal. The initial check signals an error, if
19339 the object is not well formed.
19340
193412007-12-30 Richard Stallman <rms@gnu.org>
19342
19343 * textprop.c (get_char_property_and_overlay):
19344 Signal error if POSITION is out of range in a buffer.
19345
193462007-12-29 Martin Rudalics <rudalics@gmx.at>
19347
19348 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19349 because the original parameters are in pure storage now.
19350
193512007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19352
19353 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19354
193552007-12-22 Eli Zaretskii <eliz@gnu.org>
19356
19357 * callint.c (syms_of_callint) <command-history>: Add reference to
19358 history-length in the doc string.
19359
193602007-12-17 Jason Rumney <jasonr@gnu.org>
19361
19362 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19363 before passing as wParam.
19364
193652007-12-22 Michael Albinus <michael.albinus@gmx.de>
19366
19367 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19368 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19369 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19370 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19371 as number.
19372 (Fdbus_call_method): Fix docstring.
19373
193742007-12-21 Michael Albinus <michael.albinus@gmx.de>
19375
19376 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19377 New macros.
19378 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19379 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19380 Simplify.
19381 (xd_signature): New function.
19382 (xd_append_arg): Compute also signatures. Major rewrite.
19383 (xd_retrieve_arg): Make debug messages friendly.
19384 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19385 Check for signatures of arguments.
19386
193872007-12-19 Michael Albinus <michael.albinus@gmx.de>
19388
19389 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19390 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19391 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19392 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19393 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19394 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19395 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19396 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19397 (xd_retrieve_value): Remove. Functionality included in ...
19398 (xd_append_arg): New function.
19399 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19400
194012007-12-16 Michael Albinus <michael.albinus@gmx.de>
19402
19403 * dbusbind.c (top): Include <stdio.h>.
19404 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19405 dbus_message_new_method_call and dbus_message_new_signal.
19406 (Fdbus_register_signal): Rename unique_name to uname.
19407 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19408 non-existing unique name. Fix typos in matching rule. Return an
19409 object which is useful in Fdbus_unregister_signal.
19410 (Fdbus_unregister_signal): Reimplementation, in order to remove
19411 only the corresponding entry.
19412 (Vdbus_registered_functions_table): Change the order of entries.
19413 Apply these changes in xd_read_message and Fdbus_register_signal.
19414
194152007-12-16 Andreas Schwab <schwab@suse.de>
19416
19417 * fileio.c (Finsert_file_contents): Fix overflow check to not
19418 depend on undefined integer overflow.
19419
194202007-12-14 Jason Rumney <jasonr@gnu.org>
19421
19422 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19423 for characters above 127.
19424
194252007-12-13 Jason Rumney <jasonr@gnu.org>
19426
19427 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19428 before dereferencing array.
19429 (lookup_vk_code): Remove zero comparison.
19430
194312007-12-14 Michael Albinus <michael.albinus@gmx.de>
19432
19433 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19434 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19435 Use `unsigned int' instead of `uint'.
19436 (xd_read_message, Fdbus_register_signal): Split expressions into
19437 multiple lines before operators "&&" and "||", according to the
19438 GNU Coding Standards.
19439
194402007-12-14 Eli Zaretskii <eliz@gnu.org>
19441
19442 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19443
194442007-12-12 Juri Linkov <juri@jurta.org>
19445
19446 * buffer.c (Frename_buffer): In interactive spec replace
19447 `read-buffer' with `read-string' that uses `buffer-name-history'
19448 as history, and the current buffer's name as default.
19449
194502007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19451
19452 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19453 manipulating the backtrace manually.
19454 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19455 (struct backtrace, backtrace_list): Remove.
19456 (command_loop_1): Remove dead var `no_direct'.
19457
19458 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19459 preserve non-built-in buffer-local variables.
19460 (Fkill_all_local_variables): Don't re-create&re-set permanent
19461 buffer-local variables.
19462
194632007-12-09 Juri Linkov <juri@jurta.org>
19464
19465 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19466 Lisp code that uses `read-buffer' with current buffer as default.
19467
194682007-12-08 Michael Albinus <michael.albinus@gmx.de>
19469
19470 * dbusbind.c (xd_read_message): Generate an event for every
19471 registered handler. There might be several handlers registered
19472 for the same signal.
19473 (Fdbus_register_signal): Don't overwrite a registration for the
19474 same signal. Add a new registration if handlers are different.
19475 (Vdbus_registered_functions_table): Rework doc string.
19476
194772007-12-07 Michael Albinus <michael.albinus@gmx.de>
19478
19479 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19480 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19481 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19482 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19483 Unify argument lists.
19484 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19485 arguments and hash table keys. Use unique name for service.
19486 (Fdbus_unregister_signal): Remove checks.
19487 (Vdbus_registered_functions_table): Fix doc string.
19488
194892007-12-05 Magnus Henoch <mange@freemail.hu>
19490
19491 * process.c (make_process): Initialize pty_flag to 0.
19492
194932007-12-05 Jason Rumney <jasonr@gnu.org>
19494
19495 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19496 specified XBMs.
19497
194982007-12-05 Richard Stallman <rms@gnu.org>
19499
19500 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19501
195022007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19503
19504 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19505 New variable.
19506 (mac_try_close_socket) [MAC_OSX]: New function.
19507 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19508 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19509
19510 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19511 Use mac_try_close_socket.
19512
195132007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19514
19515 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19516 reloc_base.
19517 (copy_dysymtab): Compute relocation base here.
19518 (rebase_reloc_address) [__ppc64__]: New function.
19519 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19520 changed.
19521
195222007-12-05 Jason Rumney <jasonr@gnu.org>
19523
19524 * w32proc.c (sys_spawnve): Quote args with wildcards.
19525
195262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19527
19528 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19529 __objc_* sections.
19530 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19531
195322007-12-05 Michael Albinus <michael.albinus@gmx.de>
19533
19534 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19535 Move check for Vdbus_registered_functions_table to
19536 xd_read_queued_messages.
19537 (xd_read_queued_messages): Protect xd_read_message calls by
19538 internal_condition_case_1.
19539
195402007-12-04 Michael Albinus <michael.albinus@gmx.de>
19541
19542 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19543 Qdbus_system_bus and Qdbus_session_bus, respectively.
19544 (Vdbus_intern_symbols): Remove.
19545 (Vdbus_registered_functions_table): New hash table.
19546 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19547 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19548 Rewrite in order to manage registered functions by hash table
19549 Vdbus_registered_functions_table.
19550
195512007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19552
19553 * xterm.c: Update URL to Window Manager Specification in comment.
19554
195552007-12-02 Michael Albinus <michael.albinus@gmx.de>
19556
19557 * config.in (HAVE_DBUS): Add.
19558
19559 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19560 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19561 (obj): Add $(DBUS_OBJ).
19562 (LIBES): Add $(DBUS_LIBS).
19563 (dbusbind.o): New target.
19564
19565 * dbusbind.c: New file.
19566
19567 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19568
19569 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19570 (Qdbus_event): New Lisp symbol.
19571 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19572 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19573 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19574
19575 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19576
195772007-12-01 Richard Stallman <rms@gnu.org>
19578
19579 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19580
195812007-11-30 Jason Rumney <jasonr@gnu.org>
19582
19583 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19584 (w32con_reset_terminal_modes): Clear screen buffer.
19585 (w32_face_attributes): Don't use color indexes that are out of range.
19586 Only reverse the default colors.
19587
19588 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19589 WINDOWSNT.
19590
19591 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19592
195932007-11-29 Jason Rumney <jasonr@gnu.org>
19594
19595 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19596 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19597 if the terminal colors are initialized.
19598 (unspecified_fg, unspecified_bg): Remove unused declarations.
19599
196002007-11-29 Andreas Schwab <schwab@suse.de>
19601
19602 * keyboard.c (apply_modifiers): Fix typo.
19603
196042007-11-29 Richard Stallman <rms@gnu.org>
19605
19606 * keymap.c (Fcurrent_local_map): Doc fix.
19607
196082007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19609
19610 * s/gnu-kfreebsd.h: New file.
19611
196122007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19613
19614 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19615 Don't cast redundantly.
19616
19617 * keyboard.c (KEY_TO_CHAR): New macro.
19618 (parse_modifiers, apply_modifiers): Accept integer arguments.
19619 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19620 for chars and symbol keys.
19621 After doing such remapping, apply function-key-map again.
19622
196232007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19624
19625 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19626 compiled anymore.
19627
196282007-11-26 Andreas Schwab <schwab@suse.de>
19629
19630 * process.c (list_processes_1): Fix indentation level of the
19631 command column.
19632
196332007-11-23 Andreas Schwab <schwab@suse.de>
19634
19635 * editfns.c (Fformat): Handle %c specially since it requires the
19636 argument to be of type int.
19637
196382007-11-23 Markus Triska <markus.triska@gmx.at>
19639
19640 * emacs.c (main): Call init_editfns before init_process, since
19641 init_process sets Vprocess_connection_type depending on OS release.
19642
196432007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19644
19645 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19646 (find_symbol_value): Use do_symval_forwarding.
19647
19648 * data.c (set_internal): Set the value in the `cons-cell' (for
19649 Buffer_Local_values) not only for frame-local variables.
19650
196512007-11-22 Andreas Schwab <schwab@suse.de>
19652
19653 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19654 values to sprintf.
19655 * keymap.c (Fsingle_key_description): Likewise.
19656 * print.c (print_object): Likewise.
19657
196582007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19659
19660 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19661 file for image is nil.
19662
196632007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19664
19665 * term.c: Include stdarg.h.
19666 (fatal): Implement using varargs.
19667 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19668
196692007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19670
19671 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19672 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19673 Update call to buffer_slot_type_mismatch.
19674 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19675 (buffer_slot_type_mismatch): Update.
19676 * buffer.c (buffer_local_types): Remove.
19677 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19678 (defvar_per_buffer): Set the type in the buffer_objfwd.
19679
196802007-11-21 Jason Rumney <jasonr@gnu.org>
19681
19682 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19683 CreateFileMapping returns NULL on failure.
19684
196852007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19686
19687 * search.c (Fset_match_data): Remove the `evaporate' feature.
19688 (unwind_set_match_data): Don't use the `evaporate' feature.
19689
196902007-11-21 Jason Rumney <jasonr@gnu.org>
19691
19692 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19693
19694 * w32console.c (w32con_write_glyphs): Remove unused variables.
19695
196962007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19697
19698 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19699
19700 * s/darwin.h (MULTI_KBOARD): Remove.
19701
19702 * macfns.c (x_create_tip_frame, Fx_create_frame)
19703 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19704
197052007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19706
19707 * buffer.c (Fbuffer_local_value): Remove redundant test.
19708 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19709 than in `current-buffer' to match the comment.
19710 Do the swap using swap_in_global_binding.
19711
19712 * data.c (store_symval_forwarding, set_internal):
19713 * eval.c (specbind): Remove dead code.
19714
19715 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19716 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19717 Since we do not want to see internal Lisp_*fwd objects here.
19718
197192007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19720
19721 * sysdep.c (init_system_name): Use getaddrinfo if available.
19722
19723 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19724 (x_scroll_bar_note_movement): start, end, with, height in struct
19725 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19726
197272007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19728
19729 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19730
197312007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19732
19733 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19734 This undoes Richard's change of 14-Oct-2002.
19735
19736 * alloc.c (allocate_other_vector):
19737 * lisp.h (allocate_other_vector): Remove.
19738
19739 * window.c (struct save_window_data): Move non-lisp data to the end
19740 and make it `int' rather than Lisp_Object.
19741 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19742 Done wrap/unwrap integer values.
19743 (Fset_window_configuration, compare_window_configurations):
19744 Update use of fields to their new types.
19745
19746 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19747 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19748 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19749 (SET_SCROLL_BAR_X_WINDOW): Remove.
19750 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19751 Access the new x_window field directly.
19752 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19753 Don't wrap/unwrap integers into Lisp_Objects.
19754 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19755 (x_scroll_bar_report_motion):
19756 Don't wrap/unwrap integers into Lisp_Objects.
19757 (x_term_init): Use SDATA.
19758 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19759 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19760 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19761 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19762 * xfns.c (x_set_background_color):
19763 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19764 Access the new x_window field directly.
19765
19766 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19767 (allocate_pseudovector): Make non-static.
19768
19769 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19770 (allocate_pseudovector): Declare.
19771 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19772
197732007-11-15 Andreas Schwab <schwab@suse.de>
19774
19775 * editfns.c (Fformat): Correctly format EMACS_INT values.
19776 Also take precision into account when formatting an integer.
19777
19778 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19779
197802007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19781
19782 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19783 (syms_of_keyboard): Defsubr it.
19784
19785 * data.c (swap_in_global_binding): Fix longstanding bug where
19786 store_symval_forwarding was not called with the right second argument,
19787 thus causing objfwd-ing from being dropped.
19788
197892007-11-14 Juanma Barranquero <lekktu@gmail.com>
19790
19791 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19792 (Fx_display_pixel_height, Fx_display_planes)
19793 (Fx_display_color_cells, Fx_server_max_request_size)
19794 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19795 (Fx_display_visual_class, Fx_display_save_under):
19796 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19797 (Fx_display_pixel_height, Fx_display_planes)
19798 (Fx_display_color_cells, Fx_server_max_request_size)
19799 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19800 (Fx_display_mm_height, Fx_display_mm_width)
19801 (Fx_display_backing_store, Fx_display_visual_class)
19802 (Fw32_select_font, Fx_display_save_under):
19803 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19804 (Fx_display_pixel_height, Fx_display_planes)
19805 (Fx_display_color_cells, Fx_server_max_request_size)
19806 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19807 (Fx_display_save_under): Fix typos in docstrings.
19808
198092007-11-14 Juanma Barranquero <lekktu@gmail.com>
19810
19811 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19812 corresponding to deleted entries; they are an implementation detail.
19813 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19814 Remove variables.
19815 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19816 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19817 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19818 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19819 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19820 (Fw32_define_rgb_color, Fw32_load_color_file)
19821 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19822 Fix typos in docstrings.
19823 (Fx_server_version): Reflow docstring.
19824 (Fw32_shell_execute): Doc fixes.
19825
198262007-11-13 Juanma Barranquero <lekktu@gmail.com>
19827
19828 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19829 if w32_parse_hot_key returned nil.
19830
198312007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19832
19833 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19834
198352007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19836
aac0c6e3
MR
19837 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19838
19839 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19840
19841 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19842 Remove W32_SCROLL_BAR_CLICK_EVENT.
19843
19844 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19845 Add MULTIMEDIA_KEY_EVENT.
19846
19847 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19848 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19849 (make_lispy_event) [WINDOWSNT]: Use it to translate
19850 MULTIMEDIA_KEY_EVENT.
19851
19852 * w32term.h (WM_APPCOMMAND): Define if not already.
19853 (GET_APPCOMMAND_LPARAM): Likewise.
19854
19855 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19856 WM_APPCOMMAND.
19857
19858 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19859 (syms_of_w32fns): Export and initialize it.
19860 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19861
198622007-11-09 Chong Yidong <cyd@stupidchicken.com>
19863
19864 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19865 twice.
19866
19867 * xdisp.c (handle_face_prop): Fix last change.
19868
198692007-11-09 Richard Stallman <rms@gnu.org>
19870
19871 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19872 not just for after-strings and before-strings.
19873 Call face_for_overlay_string and pass the overlay to it.
19874 (handle_display_prop): Determine whether property came from an overlay.
19875 Pass OVERLAY arg to handle_single_display_spec.
19876 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19877 (load_overlay_strings): Fill in it->string_overlays.
19878 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19879
19880 * xfaces.c (face_for_overlay_string): Function renamed from
19881 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19882
19883 * dispextern.h (struct it): New elt string_overlays.
19884 New elt from_overlay, also in stack.
19885 Rearrange a few elements.
19886 (face_for_overlay_string): Decl renamed from
19887 face_at_buffer_position_no_overlays, and add argument.
19888
198892007-11-09 Richard Stallman <rms@gnu.org>
19890
19891 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19892 to get the base face for an overlay string.
19893
19894 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19895
19896 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19897
19898 * xdisp.c (handle_stop): Move some code out of loop.
19899
199002007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19901
19902 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19903 Fix conversion from Lisp object to ATSUFontID.
19904
199052007-11-09 Jason Rumney <jasonr@gnu.org>
19906
19907 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19908
199092007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19910
19911 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19912 Don't assume regions are aligned to page boundary.
19913 (print_load_command_name): Add LC_UUID if defined.
19914
199152007-11-09 Richard Stallman <rms@gnu.org>
19916
19917 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19918
199192007-11-07 Jason Rumney <jasonr@gnu.org>
19920
19921 * s/windows95.h: Remove.
19922
199232007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19924
19925 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19926 abort with a message on unhandled store_type values.
19927
199282007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19929
19930 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19931 Remove HAVE_X11R5 and HAVE_X11R4.
19932
199332007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19934
19935 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19936
199372007-11-01 Johan Bockgård <bojohan@gnu.org>
19938
19939 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19940 Don't set s->stippled_p here, since it has already been set by
19941 x_set_glyph_string_gc from x_draw_glyph_string.
19942
199432007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19944
19945 * sunfns.c: Remove file.
19946
19947 * m/sun386.h:
19948 * m/sun2.h:
19949 * m/sparc.h: Remove Sun windows code.
19950
199512007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19952
19953 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19954 (init_keyboard): Set current_kboard's window-system to nil.
19955 (tty_read_avail_input): Typo.
19956 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19957
199582007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19959
19960 * s/usg5-4.h:
19961 * s/usg5-3.h:
19962 * s/ptx.h:
19963 * m/is386.h:
19964 * m/ibmps2-aix.h:
19965 * Makefile.in: Remove all mentions of X10.
19966
19967 * dispnew.c (syms_of_display): Don't mention version 10.
19968
199692007-10-28 Juanma Barranquero <lekktu@gmail.com>
19970
19971 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19972 ($(BLD)/abbrev.$(O)): Remove.
19973
199742007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19975
19976 Rewrite abbrev.c in Elisp.
19977 * image.c (Qcount): Don't declare as extern.
19978 (syms_of_image): Initialize and staticpro `Qcount'.
19979 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19980 * emacs.c (main): Don't call syms_of_abbrev.
19981 * Makefile.in (obj): Remove abbrev.o.
19982 (abbrev.o): Remove.
19983 * abbrev.c: Remove.
19984
199852007-10-26 Martin Rudalics <rudalics@gmx.at>
19986
19987 * window.c (window_min_size_2): Don't count header-line.
19988
199892007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19990
19991 * frame.h (struct frame): Move all bit fields after the first bit
19992 field to take advantage of the available space. Group all the
19993 chars together to reduce wasted space due to padding.
19994
199952007-10-26 Juanma Barranquero <lekktu@gmail.com>
19996
19997 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19998
19999 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20000 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20001 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20002 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20003 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20004 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20005 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20006 (last_marked, mark_object_loop_halt): Make static.
20007
20008 * frame.c (syms_of_frame) <delete-frame-functions>:
20009 Fix typo in docstring.
20010
200112007-10-25 Juanma Barranquero <lekktu@gmail.com>
20012
20013 * w32.c (init_environment): Fix tiny memory leak.
20014 (w32_get_resource): Remove unused variable `ok'.
20015
200162007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20017
20018 Make `window-system' into a keyboard-local variable (rather than
20019 frame-local as done originally by multi-tty).
20020
20021 * keyboard.h (struct kboard): Add Vwindow_system.
20022 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20023 (mark_kboards): Mark Vwindow_system.
20024
20025 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20026 (init_display): Don't set the obsolete `window-system' frame-param.
20027
20028 * xterm.c (x_term_init):
20029 * w32term.c (w32_create_terminal):
20030 * term.c (init_tty): Set Vwindow_system.
20031 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20032 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20033
20034 * xfns.c (Fx_create_frame, x_create_tip_frame):
20035 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20036 * macfns.c (Fx_create_frame):
20037 Don't set the obsolete `window-system' frame-param.
20038
20039 * frame.h (Qwindow_system): Remove.
20040 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20041 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20042
200432007-10-24 Richard Stallman <rms@gnu.org>
20044
20045 * frame.c (x_figure_window_size): For fullscreen case,
20046 set USPosition | PPosition without clobbering rest of window_prompting.
20047
20048 * keyboard.c (Fcurrent_idle_time): Doc fix.
20049
20050 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20051
200522007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20053
20054 * process.c (unwind_request_sigio): Only define if __ultrix__.
20055
20056 * callproc.c (child_setup): Remove spurious *.
20057
20058 * lisp.h (Fget_text_property): Declare.
20059 (have_menus_p): Declare it here rather than in sys-dep header files.
20060 * macterm.h (have_menus_p):
20061 * msdos.h (have_menus_p):
20062 * xterm.h (have_menus_p): Remove.
20063
20064 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20065 (Fmake_variable_frame_local): Just check the variable's const-ness
20066 rather than checking nil or t.
20067
200682007-10-22 Jason Rumney <jasonr@gnu.org>
20069
20070 * w32fns.c: Include math.h.
20071 (w32_abort): Declaration moved to nt/config.nt.
20072
20073 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20074 (abort): Redefinition moved to nt/config.nt.
20075
20076 * m/windowsnt.h: Remove.
20077
200782007-10-22 Juanma Barranquero <lekktu@gmail.com>
20079
20080 * emacs.c (Fdump_emacs): Fix typo in message.
20081 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20082 <installation-directory>: Reflow docstring.
20083
200842007-10-22 Juri Linkov <juri@jurta.org>
20085
20086 * minibuf.c: Allow minibuffer default to be a list of default values.
20087 With empty input use the first element of this list as returned default.
20088 (string_to_object)
20089 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20090 (read_minibuf): If defalt is cons, set histstring to its car.
20091 (Fread_string): If default_value is cons, set val to its car.
20092 (Fread_buffer): If def is cons, use its car.
20093 (Fcompleting_read): If defalt is cons, set val to its car.
20094
200952007-10-21 Michael Albinus <michael.albinus@gmx.de>
20096
20097 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20098
200992007-10-20 Juanma Barranquero <lekktu@gmail.com>
20100
20101 * doc.c (Fdocumentation): Check for advice in all cases.
20102
201032007-10-19 Chong Yidong <cyd@stupidchicken.com>
20104
20105 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20106
201072007-10-19 Richard Stallman <rms@gnu.org>
20108
20109 * doc.c (Fdocumentation): Check for and handle an advised function.
20110
201112007-10-19 Juanma Barranquero <lekktu@gmail.com>
20112
20113 * process.c (Fset_process_filter): Doc fix.
20114
201152007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20116
20117 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20118 which caused key-translation-map to applied repeatedly (thus breaking
20119 double-mode).
20120
201212007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20122
20123 * xselect.c (x_own_selection, x_handle_selection_clear)
20124 (x_clear_frame_selections):
20125 * w32menu.c (list_of_panes, list_of_items):
20126 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20127 * textprop.c (validate_plist, interval_has_all_properties)
20128 (interval_has_some_properties, interval_has_some_properties_list)
20129 (add_properties, text_property_list):
20130 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20131 * minibuf.c (Fassoc_string):
20132 * macselect.c (x_own_selection, x_clear_frame_selections)
20133 (Fx_disown_selection_internal):
20134 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20135 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20136
201372007-10-17 Chong Yidong <cyd@stupidchicken.com>
20138
20139 * process.c: Link to libs for calling res_init() if available.
20140 (Fmake_network_process): Call res_init() before getaddrinfo or
20141 gethostbyname, if possible.
20142
201432007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20144
20145 * lread.c (read1): Set pvectype for char_tables.
20146
20147 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20148 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20149 Add type checks.
20150 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20151
20152 * alloc.c (free_misc): Use XMISCTYPE.
20153 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20154
201552007-10-17 Glenn Morris <rgm@gnu.org>
20156
20157 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20158 (syms_of_minibuf): Add Qcompletion_ignore_case.
20159 * dired.c (Qcompletion_ignore_case): Change to external.
20160 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20161 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20162 (Fread_file_name): Use it rather than intern'ing.
20163
20164 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20165 (Fread_coding_system): Ignore case of user input.
20166
201672007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20168
20169 * xdisp.c (handle_display_prop): Ignore display specs after
20170 replacing one when string text is being replaced.
20171 (handle_single_display_spec): Pretend as if characters with display
20172 property haven't been consumed only when buffer text is being replaced.
20173
201742007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20175
20176 * xfns.c (Fx_create_frame, Fx_display_list):
20177 * window.c (window_fixed_size_p, enlarge_window)
20178 (shrink_window_lowest_first):
20179 * macterm.c (init_font_name_table):
20180 * macfns.c (Fx_create_frame, Fx_display_list):
20181 * lread.c (close_load_descs):
20182 * keyboard.c (read_char_x_menu_prompt):
20183 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20184 * coding.c (code_convert_region_unwind): Test the type of an object
20185 rather than just !NILP before extracting data from it.
20186
20187 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20188
20189 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20190 (XMISCANY): New macro.
20191 (XMISCTYPE): Use it.
20192 (struct Lisp_Misc_Any): New type.
20193 (union Lisp_Misc): Use it.
20194 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20195 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20196 (find_symbol_value, set_internal, default_value, Fset_default)
20197 (Fmake_variable_buffer_local, Fmake_local_variable)
20198 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20199 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20200 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20201 * alloc.c (allocate_buffer): Set the size and tag.
20202 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20203 Use XMISCANY.
20204 (die): Follow the GNU convention for error messages.
20205 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20206 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20207 tag any more.
20208 (set_buffer_internal_1):
20209 * frame.c (store_frame_param):
20210 * eval.c (specbind):
20211 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20212
20213 * doc.c (Fsnarf_documentation): Simplify.
20214
202152007-10-14 Juanma Barranquero <lekktu@gmail.com>
20216
20217 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20218 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20219
202202007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20221
20222 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20223
202242007-10-14 Juanma Barranquero <lekktu@gmail.com>
20225
20226 * eval.c (do_autoload): Don't save autoloads.
20227
20228 * data.c (Ffset): Save autoload of the function being set.
20229
202302007-10-07 John Paul Wallington <jpw@pobox.com>
20231
20232 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20233 parameter before setting up faces.
20234
202352007-10-13 Eli Zaretskii <eliz@gnu.org>
20236
20237 * ccl.c (Fregister_code_conversion_map):
20238 * keyboard.c (append_tool_bar_item): Reformat last change.
20239
20240 * lisp.h (eabs): Rename from `abs'. All callers changed.
20241
202422007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20243
20244 * buffer.c (add_overlay_mod_hooklist):
20245 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20246 * fontset.c (make_fontset):
20247 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20248 (append_tool_bar_item):
20249 * macmenu.c (grow_menu_items):
20250 * w32menu.c (grow_menu_items):
20251 * xmenu.c (grow_menu_items): Use larger_vector.
20252
202532007-10-13 Eli Zaretskii <eliz@gnu.org>
20254
20255 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20256 selected frame'' on MSDOS).
20257
202582007-10-12 Martin Rudalics <rudalics@gmx.at>
20259
20260 * frame.c (Qexplicit_name): New variable.
20261 (x_report_frame_params): Report it in parameter alist.
20262 (syms_of_frame): Intern and staticpro it.
20263
202642007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20265
20266 * macfns.c (x_create_tip_frame): Set terminal for frame.
20267
202682007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20269
20270 * frame.c (Qenvironment): Remove.
20271 (syms_of_frame) <Qenvironment>: Don't initialize.
20272 (Fdelete_frame): Don't treat the `environment' param specially.
20273 * frame.h (Qenvironment): Don't declare.
20274 * callproc.c (set_initial_environment): Don't set unused frame param.
20275
20276 * frame.c (Fframe_with_environment): Remove.
20277 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20278
20279 * lisp.h (Fframe_with_environment): Don't declare.
20280
202812007-10-10 Juanma Barranquero <lekktu@gmail.com>
20282
20283 * indent.c (indent_tabs_mode, last_known_column)
20284 (last_known_column_modified): Make static.
20285 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20286
202872007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20288
20289 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20290
202912007-10-09 Jason Rumney <jasonr@gnu.org>
20292
20293 * w32term.c (x_set_window_size): Disable code that attempts to tell
20294 Lisp code about a size change before it actually happens.
20295
202962007-10-09 Richard Stallman <rms@gnu.org>
20297
20298 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20299 return HANDLED_RETURN.
20300
203012007-10-08 Martin Rudalics <rudalics@gmx.at>
20302
20303 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20304 when there's an unread command event.
20305
20306 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20307 window autoselection act appropriately when leaving selected frame.
20308 (syms_of_frame): Initialize focus_follows_mouse.
20309 * frame.h (focus_follows_mouse): Extern it.
20310 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20311 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20312 * msdos.c (dos_rawgetc): Likewise.
20313 * w32term.c (w32_read_socket): Likewise.
20314 * xterm.c (handle_one_xevent): Likewise.
20315 * xdisp.c (syms_of_xdisp): In doc-string of
20316 mouse-autoselect-window mention focus-follows-mouse.
20317
203182007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20319
20320 * macterm.c (mac_load_query_font): Fix missing return value.
20321 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20322 Add BLOCK_INPUT.
20323
203242007-10-08 Richard Stallman <rms@gnu.org>
20325
20326 * xdisp.c (get_window_cursor_type): Implement documented behavior
20327 for cursor-in-non-selected-windows = t.
20328
203292007-10-08 Jason Rumney <jasonr@gnu.org>
20330
20331 * w32.c (w32_get_resource): Always close registry keys.
20332
203332007-10-08 Jason Rumney <jasonr@gnu.org>
20334
20335 * makefile.w32-in (LIBS): Add COMCTL32.
20336
20337 * w32fns.c (globals_of_w32fns): Init common controls.
20338
203392007-10-08 Richard Stallman <rms@gnu.org>
20340
20341 * image.c (our_memory_buffer): Rename from omfib_buffer.
20342
203432007-10-08 Richard Stallman <rms@gnu.org>
20344
20345 * buffer.c (Foverlays_at): Doc fix.
20346
203472007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20348
20349 * fns.c (Fplist_put): Preserve uneven tail data.
20350
203512007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20352
20353 * termhooks.h (enum event_kind): Remove trailing comma.
20354
20355 * frame.h (enum): Remove trailing comma.
20356
203572007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20358
20359 * w32proc.c (delete_child): Don't terminate threads of zombies.
20360
203612007-10-08 Martin Rudalics <rudalics@gmx.at>
20362
20363 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20364
20365 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20366 last-repeatable-command.
20367 (init_kboard): Initialize Vlast_repeatable_command.
20368 (command_loop_1): Set it to real_this_command unless that was
20369 bound to an input event.
20370 (mark_kboards): Mark it.
20371
203722007-10-08 Richard Stallman <rms@gnu.org>
20373
20374 * eval.c (condition-case): Doc fix.
20375
203762007-10-08 Masatake YAMATO <jet@gyve.org>
20377
20378 * xfaces.c (tty_supports_face_attributes_p): Fix code
20379 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20380 was copied and not edited.
20381
203822007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20383
20384 Add new `input-decode-map' keymap and use it for terminal
20385 escape sequences.
20386 * keyboard.h (struct kboard): Add Vinput_decode_map.
20387 Remove Vlocal_key_translation_map.
20388 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20389 (init_kboard): Init input-decode-map.
20390 Replace local-key-translation-map back with key-translation-map.
20391 (syms_of_keyboard): Declare input-decode-map.
20392 Remove local-key-translation-map. Update docstrings.
20393 (mark_kboards): Mark Vinput_decode_map.
20394 Don't mark Vlocal_key_translation_map.
20395 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20396 Replace local-key-translation-map back with key-translation-map.
20397 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20398 Bind in input-decode-map rather than function-key-map.
20399
20400 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20401 This was made redundant by the previous introduction of XSETPVECTYPE.
20402
204032007-10-09 Richard Stallman <rms@gnu.org>
20404
20405 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20406
204072007-09-29 Richard Stallman <rms@gnu.org>
20408
20409 * eval.c (internal_condition_case_2, internal_condition_case_1)
20410 (internal_condition_case): Reenable abort if x_catching_errors ()
20411 to see if that really happens and why.
20412
204132007-10-06 Andreas Schwab <schwab@suse.de>
20414
20415 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20416
204172007-10-04 Juanma Barranquero <lekktu@gmail.com>
20418
20419 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20420
204212007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20422
20423 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20424
204252007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * window.h (struct window):
20428 * window.c (struct save_window_data, struct saved_window):
20429 * termhooks.h (struct terminal):
20430 * process.h (struct Lisp_Process):
20431 * frame.h (struct frame):
20432 * buffer.h (struct buffer):
20433 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20434 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20435 The size field of (pseudo)vectors is now unsigned.
20436 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20437
20438 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20439 Turn `count' into an integer.
20440
20441 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20442 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20443 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20444 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20445 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20446
20447 * alloc.c (allocate_pseudovector): New fun.
20448 (ALLOCATE_PSEUDOVECTOR): New macro.
20449 (allocate_window, allocate_terminal, allocate_frame)
20450 (allocate_process): Use it.
20451 (mark_vectorlike): New function.
20452 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20453 (mark_terminals): Use it.
20454 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20455 (Fmake_byte_code): Use XSETPVECTYPE.
20456
20457 * frame.c (Fframe_parameters): Minor simplification.
20458
20459 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20460
20461 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20462
20463 * buffer.c (Fget_buffer_create, init_buffer_once):
20464 * lread.c (defsubr):
20465 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20466
20467 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20468 defined differently in the m/*.h files.
20469 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20470 (XSETPVECTYPE): New macro.
20471 (XSETPSEUDOVECTOR): Use it.
20472
20473 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20474 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20475
20476 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20477 * lread.c (defvar_per_buffer):
20478 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20479
20480 * window.c (candidate_window_p): Only consider as visible frames that
20481 are on the same terminal.
20482
20483 * m/ibms390x.h (MARKBIT): Remove unused macro.
20484
204852007-10-01 Juanma Barranquero <lekktu@gmail.com>
20486
20487 * lread.c (Fload): Fix typo in docstring.
20488
204892007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20490
20491 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20492 of a non-zero value can't yield zero.
20493
204942007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20495
20496 * term.c (term_clear_mouse_face, term_mouse_highlight)
20497 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20498
20499 * print.c (safe_debug_print): Use XHASH.
20500
20501 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20502 Lisp elements such as tags.
20503 (XHASH): New macro.
20504 (EQ): Use it.
20505 (SREF, SSET, STRING_COPYIN): Use SDATA.
20506 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20507
20508 * alloc.c (mark_terminal): Remove left-over declaration.
20509 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20510 (allocate_vectorlike): Remove type argument. Adjust callers.
20511 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20512 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20513
20514 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20515 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20516 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20517 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20518 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20519 Use them.
20520
20521 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20522 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20523 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20524
205252007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20526
20527 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20528 loaded by default.
20529
205302007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20533 on this tty.
20534 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20535
20536 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20537 Update all users.
20538 (handle_one_term_event): Use Gpm_DrawPointer.
20539 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20540 Signal errors instead of returning nil. Always return nil.
20541 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20542 Make it a noop if gpm-mouse was not activated.
20543 (syms_of_term): Update names.
20544
205452007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20546
20547 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20548 (init_sys_modes): Check that gpm_tty is the current tty.
20549
20550 * alloc.c (allocate_terminal): Set the vector size to only count the
20551 lisp fields. Initialize those to nil.
20552 (mark_object): Don't treat terminals specially.
20553 (mark_terminal): Remove.
20554 (mark_terminals): Use mark_object instead.
20555
20556 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20557 the GC to the beginning.
20558
20559 * indent.h:
20560 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20561
20562 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20563
205642007-09-25 Jason Rumney <jasonr@gnu.org>
20565
20566 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20567
20568 * w32console.c (create_w32cons_output): Remove.
20569
20570 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20571
20572 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20573 (reset_sys_modes): Use reset_terminal_modes_hook.
20574
205752007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20576
20577 * eval.c (do_autoload): Don't output any message.
20578
205792007-09-24 Juri Linkov <juri@jurta.org>
20580
20581 * emacs.c (standard_args): Change priority of "--no-splash"
20582 from 40 to 3. Add "--no-desktop" with the same priority.
20583
205842007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20585
20586 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20587 and optimize the case where they are all 1.
20588
205892007-09-23 Johannes Weiner <hannes@saeurebad.de>
20590
20591 * lisp.h (abs): Define if not defined.
20592 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20593 Don't define `abs', since it's defined in lisp.h.
20594
205952007-09-22 Eli Zaretskii <eliz@gnu.org>
20596
20597 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20598 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20599 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20600 (init_tty): Use DEV_TTY instead of "/dev/tty".
20601 [WINDOWSNT]: No need to protect from NAME arg being null.
20602
206032007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20604
20605 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20606 up the tty state.
20607
206082007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20609
20610 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20611 (gpm_tty): Change its type.
20612 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20613 (gpm_tty): Change its type and initialize it.
20614 (Fterm_open_connection): Check the frame is indeed a tty.
20615 Use the new gpm_tty.
20616 (Fterm_close_connection): Use the new gpm_tty.
20617 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20618 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20619
206202007-09-21 Juanma Barranquero <lekktu@gmail.com>
20621
20622 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20623 underline_color, to draw strike-through.
20624
206252007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20626
20627 * lisp.h (allocate_terminal): Declare.
20628
20629 * window.c (candidate_window_p): Consider frames that are being placed
20630 by the user as somewhere between visible and iconified.
20631 (window_loop): Prefer windows on the current frame.
20632 (Fselect_window): Move the use of select-frame to the beginning so we
20633 can just delegate all the work (it'll call us back anyway).
20634
20635 * frame.c (Qdisplay_environment_variable):
20636 * frame.h (Qdisplay_environment_variable): Delete.
20637
20638 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20639 of the first arg, since that value may be a union.
20640
20641 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20642 parameter rather than Qdisplay_environment_variable. If all else
20643 fails, look for DISPLAY in initial-environment.
20644
206452007-09-21 Glenn Morris <rgm@gnu.org>
20646
20647 * Makefile.in (emacstool): Remove target.
20648 (lisp, shortlisp): Remove termdev.elc.
20649
206502007-09-21 Markus Triska <markus.triska@gmx.at>
20651
20652 * xterm.c (x_delete_display): Compile session management conditionally.
20653
206542007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20655
20656 * callproc.c (getenv_internal_1): New function.
20657 (getenv_internal): Use it.
20658 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20659
20660 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20661 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20662 (Fset_terminal_parameter): Work with dead terminals as well.
20663 (Fmodify_terminal_parameters): Remove.
20664
20665 * terminal.c (get_terminal): Handle terminals.
20666 Make sure the terminal returned is live.
20667 (create_terminal): Use allocate_terminal.
20668 (mark_terminals): Move to alloc.c.
20669 (delete_terminal): Use terminal->name as liveness status.
20670 NULL out fields after freeing their contents.
20671 Don't deallocate the object.
20672 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20673 rather than an int.
20674 (Fterminal_live_p): Accept non-integer arguments.
20675 (Fterminal_list): Return terminal objects rather than an ints.
20676
20677 * alloc.c (enum mem_type): New member for `terminal' objects.
20678 (allocate_terminal): New function.
20679 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20680 Handle terminals.
20681 (mark_terminal): New fun.
20682 (mark_terminals): Move from terminal.c.
20683
20684 * term.c (get_tty_terminal): Don't treat output_initial specially.
20685 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20686 (delete_tty): Use terminal->name as liveness status.
20687
20688 * termhooks.h (struct terminal): Make it into a pseudovector.
20689 Remove `deleted' replaced by checking `name's nullness.
20690
20691 * print.c (print_object): Handle terminals.
20692
20693 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20694 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20695
20696 * frame.c (make_terminal_frame):
20697 * keyboard.c (tty_read_avail_input):
20698 * w32term.c (x_delete_terminal):
20699 * xfns.c (Fx_create_frame, x_create_tip_frame):
20700 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20701
207022007-09-20 Glenn Morris <rgm@gnu.org>
20703
20704 * process.c (Fmake_network_process): Doc fix.
20705
207062007-09-19 Jason Rumney <jasonr@gnu.org>
20707
20708 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20709
207102007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20711
20712 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20713 Fix a C warning regarding variable constness.
20714
20715 * xterm.c (handle_one_xevent): Fix a C warning.
20716
207172007-09-18 Jason Rumney <jasonr@gnu.org>
20718
20719 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20720
207212007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20722
20723 * gtkutil.c (gdpy_def): New variable.
20724 (xg_initialize): Initialize gdpy_def.
20725 (xg_display_close): If no other display exists, set gdpy_def to a
20726 new connection.
20727
207282007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20729
20730 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20731 when we have no file name for the icon.
20732 (xg_tool_bar_expose_callback): Remove.
20733 (xg_create_tool_bar): Don't connect expose signal to
20734 xg_tool_bar_expose_callback.
20735 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20736
207372007-09-16 Andreas Schwab <schwab@suse.de>
20738
20739 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20740 values instead of zapping them.
20741
207422007-09-14 Glenn Morris <rgm@gnu.org>
20743
20744 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20745 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20746 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20747 scope and rename to omfib_buffer for clarity.
20748 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20749
207502007-09-14 Kenichi Handa <handa@m17n.org>
20751
20752 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20753
207542007-09-13 Jason Rumney <jasonr@gnu.org>
20755
20756 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20757
20758 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20759
20760 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20761 (mac_term_init): Call here instead, passing rif.
20762
207632007-09-13 Glenn Morris <rgm@gnu.org>
20764
20765 * s/hpux.h: No longer define `static' as nothing.
20766
207672007-09-13 Johan Bockgård <bojohan@gnu.org>
20768
20769 * callint.c (Fcall_interactively): Remove unused var `fun'.
20770
207712007-09-12 Romain Francoise <romain@orebokech.com>
20772
20773 * window.c (prefer_window_split_horizontally, display_buffer):
20774 Revert 2007-09-08 change.
20775
207762007-09-12 Glenn Morris <rgm@gnu.org>
20777
20778 * alloca.c: Remove file.
20779 * Makefile.in (alloca): Do not undef.
20780 (allocaobj, alloca.o): Remove.
20781 (otherobj): Remove allocaobj.
20782 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20783 * regex.c (C_ALLOCA): Remove all references and code that was only
20784 used when this was defined.
20785 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20786 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20787 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20788
20789 * Makefile.in (SOURCES, unlock, relock): Delete.
20790
20791 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20792 (menu_grab_callback): All uses changed.
20793
20794 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20795 (x_reply_selection_request): All uses changed.
20796
207972007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20798
20799 * lread.c (load_warn_old_style_backquotes): Change message to look
20800 better when it appears in the middle of byte-compiler messages.
20801
208022007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20803
20804 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20805
20806 * xterm.c (x_create_terminal): Add comment.
20807
20808 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20809
208102007-09-10 Richard Stallman <rms@gnu.org>
20811
20812 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20813
208142007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20815
20816 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20817 (DEFUN): Document `intspec', use it instead of `prompt'.
20818
20819 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20820
20821 * data.c (Finteractive_form): If the interactive specification starts
20822 with a `(', use it as a Lisp form.
20823
20824 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20825 name and file modes.
20826
20827 * callint.c (Fcall_interactively): Comment fixes.
20828
208292007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20830
20831 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20832 and compiled functions.
20833
208342007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20835
20836 * window.c (prefer_window_split_horizontally): New variable.
20837 (display_buffer): Consider splitting window horizontally depending
20838 on prefer_window_split_horizontally.
20839
208402007-09-08 Eli Zaretskii <eliz@gnu.org>
20841
20842 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20843
208442007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20845
20846 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20847
20848 * frame.c (x_set_frame_parameters): Check number is positive before
20849 using XFASTINT.
20850
20851 * window.c (freeze_window_start): Don't presume selected_window holds
20852 a window object.
20853 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20854
208552007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20856
20857 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20858
208592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20860
20861 * window.c (Vsplit_window_preferred_function): New var.
20862 (Fdisplay_buffer): Use it.
20863 (syms_of_window): Export, and initialize it.
20864
208652007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20866
20867 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20868
208692007-09-06 Glenn Morris <rgm@gnu.org>
20870
20871 * gtkutil.c (menu_grab_callback) <cnt>:
20872 * xselect.c (x_reply_selection_request) <cnt>: Move static
20873 variable to file scope.
20874
208752007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20876
20877 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20878 consistent values of selected_frame and selected_window.
20879
208802007-09-04 Jason Rumney <jasonr@gnu.org>
20881
20882 * w32console.c (initialize_w32_display): Zero unused hooks.
20883
208842007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20885
20886 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20887 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20888
208892007-09-04 Jason Rumney <jasonr@gnu.org>
20890
20891 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20892 in w32console.c. Set up input. Remove XXX comments that have been
20893 confirmed as correct.
20894
20895 * s/ms-w32.h (MULTI_KBOARD): Define.
20896
20897 * w32console.c (one_and_only_w32cons): Remove.
20898 (initialize_w32_display): Take terminal argument.
20899
20900 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20901 initialize_w32_display.
20902 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20903
20904 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20905
20906 * keyboard.c (discard_mouse_events): Discard it.
20907 (make_lispy_event): Translate it to a lisp event.
20908 (lispy_wheel_names): Add wheel-left and right events.
20909 (syms_of_keyboard): Enlarge wheel_syms.
20910
20911 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20912 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20913
20914 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20915
20916 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20917 from WM_MOUSEHWHEEL.
20918 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20919
20920 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20921 terminal.
20922
20923 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20924 keyboard for the terminal.
20925
209262007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20927
20928 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20929 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20930 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20931 and resume-tty-function to resume-tty-hook.
20932 (Fsuspend_tty, Fresume_tty): Use new names.
20933
209342007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20935
20936 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20937 if it starts with "n:".
20938
209392007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20940
20941 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20942
209432007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20944
20945 * frame.h:
20946 * frame.c (Qterm_environment_variable): Remove.
20947 (syms_of_frame): Don't init and staticpro it.
20948
20949 * callproc.c (getenv_internal): Remove special case for $TERM.
20950
20951 * callproc.c (Vinitial_environment): New variable.
20952 (set_initial_environment): Initialize it.
20953 (syms_of_callproc): Declare it.
20954 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20955 TERM under which a process runs is never related to the TERM in which
20956 Emacs is running.
20957
209582007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20959
20960 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20961 * s/darwin.h: ... do it here.
20962
209632007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20964
20965 * lisp.h (set_initial_environment): Rename from set_global_environment.
20966
20967 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20968 removed by mistake on the multi-tty branch.
20969
20970 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20971 (Fmodify_frame_parameters): Return a value.
20972
20973 * image.c (png_load): Comment-out var only used in commented-out code.
20974
20975 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20976 before passing it to mark_object.
20977
20978 * xfaces.c (internal_resolve_face_name): Return a value.
20979 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20980
20981 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20982 (x_icon): Comment-out var only used in commented-out code.
20983
209842007-08-29 Romain Francoise <romain@orebokech.com>
20985
20986 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20987 QUIT hasn't been provided.
20988
209892007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20990
20991 * callproc.c (child_setup, getenv_internal): Use the
20992 display-environment-variable and term-environment-variable frame params.
20993 (set_initial_environment): Initialise Vprocess_environment.
20994
20995 * config.in: Disable multi-keyboard support on a mac.
20996
20997 * frame.c (Qterm_environment_variable)
20998 (Qdisplay_environment_variable): New variables.
20999 (syms_of_frame): Intern and staticpro them.
21000 (Fmake_terminal_frame): Disable output method test.
21001
21002 * frame.h: Declare them here.
21003
21004 * macfns.c (x_set_mouse_color): Get rif from the frame.
21005 (x_set_tool_bar_lines): Don't use updating_frame.
21006 (mac_window): Add 2 new parameters for consistency with other systems.
21007 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21008 frame parameters following what is done in X11 and w32. Don't use
21009 FRAME_MAC_DISPLAY_INFO.
21010 (Fx_open_connection, start_hourglass): Remove window-system check.
21011 (x_create_tip_frame): Get the keyboard from the terminal.
21012
21013 * macmenu.c: Reorder includes.
21014 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21015
21016 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21017 terminal parameter.
21018 (x_clear_frame): Add a frame parameter.
21019 (note_mouse_movement): Get rif from the frame.
21020 (mac_term_init): Initialize the terminal.
21021 (mac_initialize): Make static and move terminal initialization ...
21022 (mac_create_terminal): ... to this new function.
21023
21024 * macterm.h (struct mac_display_info): Add terminal.
21025 (mac_initialize): Delete declaration.
21026
21027 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21028
21029 * sysdep.c: Comment out text after #endif.
21030
21031 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21032 is defined. Better initialize ttys in windows. Use terminal
21033 specific mouse_position_hook.
21034
21035 * termhooks.h (union display_info): Add mac_display_info.
21036
21037 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21038 Set the default minibuffer frame, window_system and the rest of the
21039 frame parameters following what is done in X11.
21040
21041 * w32term.c (w32_initialize): Make static.
21042
21043 * xselect.c (x_handle_selection_clear): Only access
21044 terminal->kboard when MULTI_KBOARD is defined.
21045
21046 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21047 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21048
210492007-08-29 Jason Rumney <jasonr@gnu.org>
21050
21051 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21052 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21053
21054 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21055 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21056
21057 * keyboard.c (restore_kboard_configuration): Only define when
21058 MULTI_KBOARD defined.
21059
21060 * makefile.w32-in: Update dependancies from Makefile.in.
21061 (OBJ1): Add terminal.$(O)
21062
21063 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21064 Don't define function body.
21065 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21066
21067 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21068
21069 * w32.c (request_sigio, unrequest_sigio): Remove.
21070
21071 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21072 (w32con_clear_frame, w32con_clear_end_of_line)
21073 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21074 (w32con_delete_glyphs, w32con_set_terminal_window)
21075 (scroll_line, w32_sys_ring_bell): Add frame arg.
21076 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21077 Add terminal arg.
21078 (PICK_FRAME): Remove.
21079 (w32con_write_glyphs): Use frame specific terminal coding.
21080 (one_and_only_w32cons): New global variable.
21081 (initialize_w32_display): Use it for storing hooks.
21082 (create_w32cons_output): New function.
21083
21084 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21085 arg a frame.
21086
21087 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21088 Set window_system.
21089 (x_set_tool_bar_lines): Don't use updating_frame.
21090 (Fx_create_frame): Set terminal and ref count.
21091 (Fx_open_connection): Remove window-system check.
21092
21093 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21094
21095 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21096 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21097 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21098 Add frame arg.
21099 (x_delete_terminal, w32_create_terminal): New functions.
21100 (w32_term_init): Create a terminal.
21101 (w32_initialize): Move terminal specific initialization to
21102 w32_create_terminal.
21103
21104 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21105 (w32_clear_rect, w32_clear_area): Use background from frame.
21106 (w32_display_info): Add terminal.
21107 (w32_sys_ring_bell, x_delete_display): Declare here.
21108
21109 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21110
21111 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21112
211132007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21114
21115 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21116 Fix get_named_tty calls for the controlling tty.
21117
211182007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21119
194d44e7 21120 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21121
211222007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21123
21124 * term.c (tty_insert_glyphs): Add missing first parameter.
21125
211262007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21127
21128 * buffer.c (Fbuffer_list, Fbury_buffer):
21129 Take frame->buried_buffer_list into account.
21130
21131 * cm.c (current_tty): New variable, for cmputc().
21132 (cmputc): Use it.
21133 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21134 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21135 (cmgoto): Add tty parameter. Pass it on to calccost().
21136 Use emacs_tputs() instead of tputs().
21137
21138 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21139 tputs().
21140 (current_tty): New variable, for cmputc().
21141 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21142
21143 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21144 (internal_condition_case, internal_condition_case_1)
21145 (internal_condition_case_2): Don't abort when x_catching_errors.
21146
21147 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21148 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21149 prevent crashes caused by bogus longjmps in read_char.
21150
21151 * keymap.h (Fset_keymap_parent): Add EXFUN.
21152
21153 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21154 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21155 Remove redundant definition.
21156
21157 * macfns.c (x_set_mouse_color, x_make_gc):
21158 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21159
21160 * w32term.c (x_free_frame_resources):
21161 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21162 (w32_initialize): Use the accessor macros for terminal characteristics.
21163
21164 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21165 Use the accessor macros for terminal characteristics.
21166 * msdos.c (internal_terminal_init): Use the accessor macros for
21167 terminal characteristics.
21168 (ScreenVisualBell, internal_terminal_init):
21169 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21170
21171 * termopts.h (no_redraw_on_reenter): Declare.
21172
21173 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21174 (mark_terminals, mark_ttys): Declare.
21175 (Fgarbage_collect): Call them.
21176 (mark_object): Mark buried_buffer_list.
21177
21178 * prefix-args.c: Include stdlib.h for exit.
21179
21180 * syssignal.h: Add comment.
21181
21182 * indent.c: Include stdio.h.
21183
21184 * window.h (Vinitial_window_system): Declare.
21185 (Vwindow_system): Delete declaration.
21186
21187 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21188
21189 * image.c (lookup_image): Don't initialize `c' until the xasserts
21190 have been run.
21191
21192 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21193 FRAME_FOREGROUND_PIXEL.
21194
21195 * print.c (print_preprocess): Don't lose print_depth levels while
21196 iterating.
21197
21198 * widget.c (update_from_various_frame_slots):
21199 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21200
21201 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21202 frames.
21203 (window_internal_height): Remove bogus make_number call.
21204 (init_window_once): Call make_terminal_frame with two zero parameters.
21205
21206 * fileio.c (Fread_file_name): Update comment.
21207
21208 * callint.c (Fcall_interactively):
21209 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21210 Make sure it is correctly unwound.
21211
21212 * xsmfns.c (x_session_close): New function.
21213
21214 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21215 Delete declarations.
21216
21217 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21218 (x_output): Remove background_pixel and foreground_pixel fields.
21219 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21220 (x_delete_device, x_session_close): Declare.
21221
21222 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21223 (read_filtered_event): Call `read_char' with a local
21224 `wrong_kboard_jmpbuf'.
21225
21226 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21227 Don't call single_kboard_state. Use FRAME_RIF.
21228
21229 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21230 systems.
21231
21232 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21233 (Fframe_with_environment, Fset_input_meta_mode)
21234 (Fset_quit_char): EXFUN.
21235 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21236 (init_sys_modes, reset_sys_modes): Update prototypes.
21237 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21238
21239 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21240 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21241 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21242 Delete declarations.
21243 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21244 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21245 New declarations.
21246
21247 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21248 already does that during init_display(). Call syms_of_keymap
21249 before syms_of_keyboard. Call `syms_of_terminal'.
21250 Call set_initial_environment, not set_process_environment.
21251 (shut_down_emacs): Call reset_all_sys_modes() instead of
21252 reset_sys_modes().
21253
21254 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21255 (internal_resolve_face_name, resolve_face_name_error): New functions.
21256 (resolve_face_name): Protect against loops and errors thrown by Fget.
21257 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21258 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21259
21260 * scroll.c: Replace CURTTY() with local variables throughout the
21261 file (where applicable).
21262 (calculate_scrolling, calculate_direct_scrolling)
21263 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21264 characteristics.
21265
21266 * keymap.c (Vfunction_key_map): Remove.
21267 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21268 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21269 (Vkey_translation_map): Remove.
21270 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21271 (Fdescribe_buffer_bindings)
21272 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21273 Update for terminal-local key-translation-map.
21274
21275 * Makefile.in (callproc.o): Update dependencies.
21276 (lisp, shortlisp): Add termdev.elc.
21277 (obj): Add terminal.o.
21278 (terminal.o): Add dependencies.
21279 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21280 (data.o, fns.o): Add termhooks.h dependency.
21281 (SOME_MACHINE_LISP): Add dnd.elc.
21282 (minibuf.o): Fix typo.
21283 Update dependencies.
21284
21285 * data.c (do_symval_forwarding, store_symval_forwarding)
21286 (find_symbol_value): Use the selected frame's keyboard, not
21287 current_kboard.
21288
21289 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21290 Vwindow_system.
21291
21292 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21293 Fmenu_bar_open.
21294 (syms_of_xmenu): Update defsubr.
21295 (mouse_position_for_popup, Fx_popup_menu)
21296 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21297 (set_frame_menubar, free_frame_menubar)
b97439ce 21298 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21299 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21300 an X frame.
21301
21302 * xselect.c (x_own_selection): Abort if not an X frame.
21303 (some_frame_on_display): Check if it is an X frame.
21304 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21305
21306 * coding.c: Include frame.h and termhooks.h.
21307 (terminal_coding, keyboard_coding): Delete.
21308 (Fset_terminal_coding_system_internal)
21309 (Fset_keyboard_coding_system_internal)
21310 (Fkeyboard_coding_system)
21311 (Fterminal_coding_system): Add a terminal parameter.
21312 Get terminal_coding from the terminal.
21313 (init_coding_once): Don't call setup_coding_system here.
21314
21315 * dispextern.h (set_scroll_region, turn_off_insert)
21316 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21317 (tty_clear_end_of_line, tty_setup_colors)
21318 (delete_tty, updating_frame)
21319 (produce_special_glyphs, produce_glyphs, write_glyphs)
21320 (insert_glyphs): Remove.
21321 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21322 (tty_turn_off_highlight, get_tty_size): Add declaration.
21323 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21324
21325 * frame.h (enum output_method): Add output_initial.
21326 (struct x_output): Delete.
21327 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21328 Access foreground_pixel and background_pixel directly from the frame.
21329 (tty_display): Delete.
21330 (struct frame): Add buried_buffer_list, foreground_pixel,
21331 background_pixel and terminal. Delete kboard.
21332 (union output_data): Add tty.
21333 (FRAME_KBOARD): Get the kboard from the terminal.
21334 (FRAME_INITIAL_P): New macro.
21335 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21336 (Qterm_environment_variable, Qdisplay_environment_variable)
21337 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21338 New declarations.
21339
21340 * termchar.h (tty_output, tty_display_info): New structures.
21341 (tty_list): Declare.
21342 (FRAME_TTY, CURTTY): New macros.
21343 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21344 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21345 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21346 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21347
21348 * callproc.c: Include frame.h and termhooks.h, for terminal
21349 parameters.
21350 (add_env): New function.
21351 (child_setup): Use it.
21352 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21353 (getenv_internal): Fix get_terminal_param call.
21354 (Fgetenv_internal, egetenv): Update doc.
21355 (syms_of_callproc): Initialize Vprocess_environment to nil.
21356 Register and initialize them. Remove obsolete defvars. Update doc
21357 strings.
21358 (child_setup): Handle Vlocal_environment_variables.
21359 (getenv_internal): Add terminal parameter.
21360 Handle Vlocal_environment_variables.
21361 (Fgetenv_internal): Add terminal parameter.
21362 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21363 environment in a frame (not terminal) parameter. Update doc strings.
21364 (set_initial_environment): Rename from set_global_environment.
21365 Store Emacs environment in initial frame parameter.
21366
21367 * xdisp.c (redisplay_internal): Update references to
21368 `previous_terminal_frame'.
21369 (display_mode_line, Fformat_mode_line): Replace calls to
21370 `push_frame_kboard' with `push_kboard'.
21371 (get_glyph_string_clip_rects): Add extra parentheses and
21372 braces to prevent compiler warnings.
21373 (calc_pixel_width_or_height): Add xassert to check that the
21374 frame is alive. Don't call `lookup_image' on a termcap frame.
21375 (message2_nolog, message3_nolog, redisplay_internal)
21376 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21377 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21378 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21379 (Fx_display_pixel_width, Fx_display_pixel_height)
21380 (Fx_display_planes, Fx_display_color_cells)
21381 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21382 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21383 (Fx_display_backing_store, Fx_display_visual_class)
21384 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21385 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21386
21387 * xfns.c (x_set_foreground_color x_set_background_color)
21388 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21389 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21390 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21391 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21392 terminal that is being deleted.
21393 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21394 frame parameter, and make sure it overrides any user-supplied setting.
21395 (Fx_close_connection, Fx_synchronize): Unify argument names with
21396 the rest of the DEFUNs.
21397
21398 * dispnew.c (Fsend_string_to_terminal): Update call to
21399 `get_tty_terminal'.
21400 (Fredraw_frame, Fsend_string_to_terminal)
21401 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21402 FRAME_TERMCAP_P and FRAME_TTY.
21403 (window_change_signal): Don't believe width/height values that are
21404 impossibly small.
21405 (Vinitial_window_system): Rename from Vwindow_system.
21406 (termscript, Wcm, rif): Delete.
21407
21408 * termhooks.h (struct terminal): New struct containing the
21409 previously global text display hooks and new members NAME,
21410 DELETED and PARAM_ALIST.
21411 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21412 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21413 (FRAME_RIF): New macros.
21414 (get_terminal_param, get_device): New declarations.
21415 (termscript): Delete declaration.
21416
21417 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21418 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21419 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21420 FRAME_FOREGROUND_PIXEL.
21421 (x_fully_uncatch_errors): Disable definition.
21422 (x_scroll_bar_expose): Fix reference to foreground pixel.
21423 (XTread_socket): Disable loop on all X displays.
21424 (x_delete_terminal): Don't set terminal->deleted and let
21425 delete_terminal delete the frames on the terminal.
21426 (x_delete_display): Doc update to reflect changes in
21427 delete_terminal.
21428 (x_display_info) <terminal>: Move member earlier in the struct.
21429 (deleting_tty): Remove old variable.
21430 (Fsuspend_tty): Call clear_tty_hooks.
21431 (Fresume_tty, init_tty): Call set_tty_hooks.
21432 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21433 errors on X frames.
21434 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21435 (handle_one_xevent): Initialize `f' to NULL.
21436 (x_delete_terminal, x_create_terminal): New functions.
21437 (XTset_terminal_modes, XTreset_terminal_modes)
21438 (XTread_socket, x_connection_closed, x_term_init)
21439 (x_term_init, x_delete_display): Add terminal parameter.
21440 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21441 X connections.
21442
21443 * frame.c: Include termchar.h.
21444 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21445 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21446 (Qdisplay_environment_variable): New vars.
21447 (Fframep): Deal with output_initial.
21448 (Fframe-live-p): Doc fix.
21449 (Fwindow-system): New function.
21450 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21451 (make_terminal_frame): Don't create frames on a terminal that is
21452 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21453 (store_frame_param): Check for found_for_frame before calling XFRAME.
21454 (Fmake_terminal_frame): Handle NULL tty names correctly.
21455 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21456 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21457 frames to refer to a deleted frame in their 'environment parameter.
21458 (Fframe_with_environment): New function.
21459 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21460 (get_future_frame_param): New function.
21461 (Fmake_terminal_frame): Use it.
21462 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21463
21464 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21465 * sysdep.c (reset_sys_modes): Update for renames.
21466
21467 * keyboard.c (tty_read_avail_input): New function.
21468 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21469 (syms_of_keyboard): Defsubr them.
21470 (Fset_input_meta_mode, Fset_quit_char): New functions.
21471 (Fset_input_mode): Split to above functions.
21472 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21473 parameter. Use it in call to `read_char'.
21474 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21475 Set wrong_kboard_jmpbuf correctly in recursive calls.
21476 Use current_kboard to access Vkeyboard_translate_table.
21477 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21478 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21479 Update longjmp invocations. Remember the original current_kboard,
21480 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21481 changes it. Comment out unnecessary calls to
21482 `record_single_kboard_state' and `any_kboard_state'.
21483 Update recursive calls.
21484 (wrong_kboard_jmpbuf): Remove global variable.
21485 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21486 Handle deleted interrupted_kboards correctly; that is a legal
21487 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21488 and read_char calls. Abort if interrupted_kboard died in read_char.
21489 (any_kboard_state, single_kboard_state)
21490 (push_frame_kboard): Remove function.
21491 (pop_kboard): Switch out of single_kboard mode if the kboard has
21492 been deleted. Remove unused variable. Help debugging by not
21493 changing current_kboard unnecessarily. Set current_kboard to the
21494 kboard of the selected frame when the stored kboard object has
21495 been deleted before pop_kboard.
21496 (temporarily_switch_to_single_kboard): Change first parameter to a
21497 frame pointer. Throw an error when caller wants to change kboards
21498 while in single_kboard mode. Don't push_kboard if we weren't in
21499 single kboard state. Don't pop_kboard if we popped into any
21500 kboard state.
21501 (restore_kboard_configuration): Abort if pop_kboard changed the
21502 kboard in single_kboard mode. Call pop_kboard only after setting
21503 up single_kboard mode.
21504 (Frecursive_edit): Switch to single_kboard mode only in nested
21505 command loops.
21506 (cmd_error, command_loop, command_loop_1, timer_check):
21507 Comment out unnecessary call to `any_kboard_state' and
21508 `record_single_kboard_state'.
21509 (delete_kboard): Exit single_kboard mode if we have just deleted
21510 that kboard. Use FRAME_KBOARD.
21511 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21512 `fatal_error_signal'.
21513 (record_single_kboard_state): Don't push_kboard if we weren't in
21514 single kboard state. Don't pop_kboard if we popped into any
21515 kboard state.
21516 (push_frame_kboard): Rename to push_kboard.
21517 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21518 (read_avail_input): Read input from all terminals.
21519 (mark_kboards): Also mark Vkeyboard_translate_table.
21520 (kbd_buffer_store_event_hold): Simplify condition.
21521 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21522 (Vkeyboard_translate_table): Move to struct kboard.
21523 (init_kboard): Initialize Vkeyboard_translate_table.
21524 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21525 Vkeyboard_translate_table. Update doc strings. Update docs of
21526 local-function-key-map and function-key-map.
21527
21528 * terminal.c: New file.
21529
21530 * term.c: Include errno.h.
21531 (Vring_bell_function, device_list, initial_device)
21532 (next_device_id, ring_bell, update_begin, update_end)
21533 (set_terminal_window, cursor_to, raw_cursor_to)
21534 (clear_to_end, clear_frame, clear_end_of_line)
21535 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21536 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21537 (syms_of_term): Move their initialization to terminal.c.
21538 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21539 (Ftty_display_color_cells)
21540 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21541 (clear_tty_hooks, set_tty_hooks)
21542 (init_tty, maybe_fatal): New functions.
21543 (Ftty_type): Return nil if terminal is not on a tty instead of
21544 throwing an error. Doc update.
21545 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21546 Doc update. Initialize new subrs and variables.
21547 (delete_tty): Use terminal->deleted.
21548 (tty_set_terminal_modes): Rename from set_terminal_modes.
21549 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21550 (set_scroll_region): Rename to `tty_set_scroll_region'.
21551 (turn_on_insert): Rename to `tty_turn_on_insert'.
21552 (turn_off_insert): Rename to `tty_turn_off_insert'.
21553 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21554 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21555 (toggle_highligh): Rename to `tty_toggle_highlight'.
21556 (background_highlight): Rename to `tty_background_highlight'.
21557 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21558 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21559 (tty_set_scroll_region, tty_background_highlight)
21560 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21561 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21562 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21563 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21564 Add static modifier.
21565 (tty_reset_terminal_modes, tty_set_terminal_window)
21566 (tty_set_scroll_region, tty_background_highlight)
21567 (tty_highlight_if_desired, tty_cursor_to)
21568 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21569 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21570 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21571 renames.
21572
215732007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21574
21575 * keyboard.c: Qrtl is new.
21576 (parse_tool_bar_item): Handle :rtl keyword.
21577 (syms_of_keyboard): Intern :rtl keyword.
21578
21579 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21580
21581 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21582 so no Lisp code is executed.
21583 (file_for_image, find_rtl_image): New functions.
21584 (xg_get_image_for_pixmap): Use file_for_image.
21585 (update_frame_tool_bar): If direction is RTL, use RTL image if
21586 defined. Use Gtk stock images if defined.
21587
215882007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21589
21590 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21591 for nonexistent or zero-width glyph in composition glyph.
21592
215932007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21594
21595 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21596
21597 * xdisp.c (Finvisible_p): New function.
21598 (syms_of_xdisp): defsubr it.
21599
216002007-08-24 Juanma Barranquero <lekktu@gmail.com>
21601
21602 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21603 Doc fixes.
21604
216052007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21606
21607 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21608
216092007-08-24 Martin Rudalics <rudalics@gmx.at>
21610
21611 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21612 whether decoding has modified buffer contents.
21613
216142007-08-24 Jason Rumney <jasonr@gnu.org>
21615
21616 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21617 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21618 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21619 (init_svg_functions) [HAVE_NTGUI]: New function.
21620 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21621 (svg_load_image): Use them.
21622 (svg_load_image) [HAVE_NTGUI]: Implement background.
21623
216242007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21625
21626 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21627 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21628 (LIBX): Remove @RSVG_LIBS@.
21629 (LIBES): Add $(RSVG_LIBS).
21630
21631 * image.c (svg_load_image): Blend with specified background if exists.
21632 Use IMAGE_BACKGROUND. Add Mac OS Support.
21633
21634 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21635 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21636 Remove macros.
21637 [MAC_OSX] (socket_callback): Do nothing.
21638 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21639 ReceiveNextEvent.
21640 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21641 socket_callback.
21642 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21643
216442007-08-22 Glenn Morris <rgm@gnu.org>
21645
21646 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21647
216482007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21649
21650 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21651
21652 * image.c: Add support for SVG images. Some additional comments
21653 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21654 (svg_image_p): New function to test for SVG image.
21655 (svg_load): New function to load SVG image.
21656 (svg_load_image): New function, helper for svg_load.
21657 (Qsvg): New Lisp_object.
21658 (svg_keyword_index): New enum.
21659 (svg_format): New static `image_keyword' struct.
21660 (svg_type): New static `image_type' struct.
21661 (librsvg/rsvg.h): Include it.
21662
216632007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21664
21665 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21666
216672007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * lread.c (Qold_style_backquotes): New var.
21670 (syms_of_lread): Init and staticpro it.
21671 (load_warn_old_style_backquotes): New fun.
21672 (Fload): Use them to warn about old style backquotes.
21673 (end_of_file_error, Fload): Remove unused vars.
21674
21675 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21676
21677 * lread.c (Vold_style_backquotes): New var.
21678 (syms_of_lread): Init and export it to Elisp.
21679 (read1): Set it when we find an old-style (back)quote.
21680
216812007-08-22 Jason Rumney <jasonr@gnu.org>
21682
21683 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21684
216852007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21686
21687 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21688
216892007-08-19 Richard Stallman <rms@gnu.org>
21690
21691 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21692
216932007-08-19 Andreas Schwab <schwab@suse.de>
21694
21695 * alloc.c (pure): Round PURESIZE up.
21696
216972007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21698
21699 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21700 active frame.
21701
217022007-08-16 Richard Stallman <rms@gnu.org>
21703
21704 * eval.c (Fcommandp): Add parens to clarify.
21705
21706 * minibuf.c (Fall_completions): Use enum for type of table.
21707
21708 * emacs.c (USAGE2): Improve text.
21709
217102007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21711
21712 * term.c (tty_default_color_capabilities): Declare static
21713 variables in file scope, to avoid HPUX compiler problem.
21714
217152007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21716
21717 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21718 to gtk_toolbar_insert.
21719
217202007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21721
21722 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21723
21724 * insdel.c (reset_var_on_error): New fun.
21725 (signal_before_change, signal_after_change):
21726 Use it to reset (after|before)-change-functions to nil in case of error.
21727 Bind inhibit-modification-hooks to t.
21728 Don't bind (after|before)-change-functions to nil while they run.
21729
217302007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21731
21732 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21733 filling pixmap with stippled background.
21734
217352007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21736
21737 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21738 Don't use invisible frame as parent window for repositioning.
21739
217402007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21741
21742 * print.c (new_backquote_output): Rename from old_backquote_output.
21743 (print): Inverse its logic (according to its name) so as to match the
21744 behavior of new_backquote_flag in lread.c.
21745
217462007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21747
21748 * gmalloc.c (posix_memalign): New function.
21749
21750 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21751 ActivateControl/DeactivateControl here.
21752 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21753 frame-notice-user-settings is non-nil.
21754 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21755 for kEventParamFMFontStyle.
21756 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21757 mac_pass_command_to_system and mac_pass_control_to_system here.
21758 (XTread_socket): Call ActivateControl/DeactivateControl here.
21759 (XTread_socket) [TARGET_API_MAC_CARBON]:
21760 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21761 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21762 for window repositioning.
21763
217642007-08-08 Glenn Morris <rgm@gnu.org>
21765
21766 * Replace `iff' in doc-strings and comments.
21767
217682007-08-07 Chong Yidong <cyd@stupidchicken.com>
21769
21770 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21771
217722007-08-07 Martin Rudalics <rudalics@gmx.at>
21773
21774 * fileio.c (Finsert_file_contents): Run format-decode and
21775 after_insert_file_functions on entire buffer when REPLACE is
21776 non-nil and inhibit modification_hooks and point_motion_hooks.
21777 For consistency, run after_insert_file_functions iff something
21778 got inserted. Move signal_after_change and update_compositions
21779 after code running after_insert_file_functions. Make sure that
21780 undo_list doesn't record intermediate steps of the decoding process.
21781
217822007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21783
21784 * emacs.c (main)
21785 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21786 Call malloc_enable_thread on interactive startup.
21787
21788 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21789 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21790 [USE_PTHREAD]: Conditionalize with it.
21791 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21792 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21793 New functions.
21794
217952007-08-06 Chong Yidong <cyd@stupidchicken.com>
21796
21797 * xdisp.c (redisplay_window): When restoring original buffer
21798 position, make sure it is still valid.
21799
21800 * image.c (png_load): Ignore png-supplied background color.
21801
218022007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21803
21804 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21805 Use kCFAbsoluteTimeIntervalSince1970.
21806
21807 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21808 New variable.
21809 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21810 event loop should be quit.
21811 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21812 Quit dialog event loop if quit_dialog_event_loop is set.
21813
21814 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21815 (Selection): New typedef. Use instead of ScrapRef.
21816 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21817 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21818 (mac_clear_selection): Rename from clear_scrap.
21819 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21820 scrap_has_target_type. All uses changed.
21821 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21822 (mac_selection_has_target_p): New functions.
21823 (mac_put_selection_value): Rename from put_scrap_string.
21824 (mac_get_selection_value): Rename from get_scrap_string.
21825 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21826 (put_scrap_private_timestamp, scrap_has_target_type)
21827 (get_scrap_private_timestamp): Remove functions.
21828 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21829 (x_own_selection, x_get_local_selection):
21830 Use mac_valid_selection_value_p.
21831 (x_own_selection): Don't use put_scrap_private_timestamp.
21832 Record OWNERSHIP-INFO into Vselection_alist instead.
21833 (x_get_local_selection): Don't check type if request is local.
21834 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21835 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21836
218372007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21838
21839 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21840 add comment explaining why.
21841
218422007-08-03 Richard Stallman <rms@gnu.org>
21843
21844 * fileio.c (Fvisited_file_modtime): Use make_time.
21845
218462007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21847
21848 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21849 build.
21850
218512007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21852
21853 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21854
218552007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21856
21857 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21858
218592007-07-30 Richard Stallman <rms@gnu.org>
21860
21861 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21862
218632007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21864
21865 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21866
218672007-07-28 Nick Roberts <nickrob@snap.net.nz>
21868
21869 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21870 remote default-directory.
21871
21872 * buffer.c (mode-line-format): Update doc string.
21873
218742007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21875
21876 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21877 scroll bar gap.
21878 (x_scroll_bar_create): Set bar->fringe_extended_p.
21879 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21880 on frame edge. Check fringe background extension. Don't clear
21881 extended fringe background area.
21882
21883 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21884 (w32_fill_area): Enclose multiple statements with do ... while (0).
21885
21886 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21887 Extend fringe background to scroll bar gap.
21888 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21889 Set bar->fringe_extended_p.
21890 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21891 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21892 background extension. Don't clear extended fringe background area.
21893
21894 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21895 New member fringe_extended_p.
21896
218972007-07-25 Glenn Morris <rgm@gnu.org>
21898
21899 * Relicense all FSF files to GPLv3 or later.
21900
21901 * COPYING: Switch to GPLv3.
21902
219032007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21904
21905 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21906
21907 * data.c (Finteractive_form): Check for the presence of an
21908 `interactive-form' symbol property more thoroughly.
21909
21910 * data.c (Finteractive_form): Use an `interactive-form' property if
21911 present, analogous to the function-documentation property.
21912
219132007-07-24 Jason Rumney <jasonr@gnu.org>
21914
21915 * w32fns.c (x_real_positions): Get real position from OS instead of
21916 calculating it.
21917
219182007-07-23 Jason Rumney <jasonr@gnu.org>
21919
21920 * filelock.c (current_lock_owner): Allow for @ sign in username.
21921
219222007-07-22 Nick Roberts <nickrob@snap.net.nz>
21923
21924 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21925 remote default-directory.
21926
21927 * buffer.c (mode-line-format): Describe above case in doc string.
21928
219292007-07-20 Eli Zaretskii <eliz@gnu.org>
21930
21931 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21932 Define if not defined.
21933
219342007-07-18 Jason Rumney <jasonr@gnu.org>
21935
21936 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21937
219382007-07-18 Richard Stallman <rms@gnu.org>
21939
21940 * data.c (Fsetq_default): Doc fix.
21941
21942 * eval.c (Fsetq): Doc fix.
21943
219442007-07-18 Juanma Barranquero <lekktu@gmail.com>
21945
21946 * coding.c (Ffind_operation_coding_system):
21947 * eval.c (For, Fand): Doc fixes.
21948 Reported by Johan Bockgård.
21949
219502007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21951
21952 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21953
21954 * xterm.h: Declare x_ewmh_activate_frame.
21955
21956 * xterm.c (x_ewmh_activate_frame): New function.
21957 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21958
219592007-07-17 Martin Rudalics <rudalics@gmx.at>
21960
21961 * window.c (Fdisplay_buffer): If largest or LRU window is the
21962 only window, split it even if it is not eligible for splitting.
21963 This restores the original behavior broken by the 2007-07-15
21964 change.
21965
219662007-07-17 Glenn Morris <rgm@gnu.org>
21967
21968 * abbrev.c (abbrev_check_chars): New function.
21969 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21970 Call abbrev_check_chars to check abbrev characters are word
21971 constituents. Doc fix.
21972
219732007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21974
21975 * process.c (Fstart_process, Fmake_network_process)
21976 (read_process_output): Fix up last changes.
21977
219782007-07-16 Eli Zaretskii <eliz@gnu.org>
21979
21980 * makefile.w32-in (clean): Don't delete *~.
21981
219822007-07-16 Andreas Schwab <schwab@suse.de>
21983
21984 * window.c (Fdisplay_buffer): Use NILP.
21985 (Fset_window_scroll_bars): Likewise.
21986
219872007-07-15 Martin Rudalics <rudalics@gmx.at>
21988
21989 * window.c (window_min_size_2): New function.
21990 (window_min_size_1, size_window, Fdisplay_buffer)
21991 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21992 windows without mode- or header-lines when window-min-height is
21993 too small.
21994 (size_window): Reset nodelete_p after testing it, following an
21995 earlier note by Kim F. Storm.
21996 (display_buffer): Do not set split_height_threshold to twice the
21997 value of window_min_height to avoid changing the value of a
21998 customizable variable. Rather explicitly check whether the
21999 height of the window that shall be splitted is at least as large
22000 as split_height_threshold.
22001 (Fwindow_full_width_p): New defun.
22002 (syms_of_window): Defsubr it.
22003
22004 * window.h: Add EXFUN for Fwindow_full_width_p.
22005
220062007-07-14 Jason Rumney <jasonr@gnu.org>
22007
22008 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22009
220102007-07-14 Richard Stallman <rms@gnu.org>
22011
22012 * eval.c (maybe_call_debugger): New function.
22013 (find_handler_clause): Use maybe_call_debugger.
22014 Call it when the handler says `debug'.
22015 Eliminate DEBUGGER_VALUE_PTR.
22016 (Fsignal): Eliminate debugger_value.
22017 (Qdebug): New variable.
22018 (syms_of_eval): Initialize it.
22019
220202007-07-14 Juanma Barranquero <lekktu@gmail.com>
22021
22022 * eval.c (Fprogn):
22023 * keyboard.c (Ftrack_mouse):
22024 * print.c (Fwith_output_to_temp_buffer):
22025 * window.c (Fsave_window_excursion): Doc fix.
22026
220272007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22028
22029 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22030
220312007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22032
22033 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22034 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22035 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22036 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22037 Remove unused encoding_carryover.
22038 * process.c: Adjust all functions accordingly.
22039
220402007-07-12 Richard Stallman <rms@gnu.org>
22041
22042 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22043
220442007-07-11 Jason Rumney <jasonr@gnu.org>
22045
22046 * makefile.w32-in (LIBS): Include OLE32.
22047
22048 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22049 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22050
220512007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22052
22053 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22054 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22055 from a Lisp_Object into a bare pointer.
22056 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22057 Adjust the code correspondingly.
22058
22059 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22060
22061 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22062 (term_show_mouse_face): Remove unused var `j'.
22063 (handle_one_term_event): Remove unused vars `i' and `j'.
22064 Don't cast return value of ttyname since it's not necessary.
22065
220662007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22067
22068 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22069 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22070
22071 * fns.c (map_char_table): Use an array of int for `indices' rather than
22072 an array of Lisp_Objects (which are only ever integers anyway).
22073 (Fmap_char_table): Update caller.
22074 * lisp.h: Update prototype.
22075 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22076 * fontset.c (Ffontset_info):
22077 * casetab.c (set_case_table): Update callers.
22078
22079 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22080
22081 * keymap.c (struct accessible_keymaps_data)
22082 (struct where_is_internal_data): New structures.
22083 (accessible_keymaps_1, where_is_internal_1): Use them to change
22084 interface to adhere to the one used by map_keymap.
22085 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22086 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22087
22088 * keymap.h (map_keymap_function_t): More informative prototype.
22089
220902007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22091
22092 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22093 (looking_at_1): Don't change search_regs and last_thing_searched
22094 if `inhibit-changing-match-data' is non-nil.
22095 (string_match_1, search_buffer, set_search_regs): Likewise.
22096 (syms_of_search): Add Lisp level definition for
22097 `inhibit-changing-match-data' and set it to nil.
22098 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22099 start and end of the match, instead of using values in search_regs.
22100
221012007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22102
22103 * minibuf.c (Fcompleting_read): New value `confirm-only'
22104 for `require-match'.
22105
221062007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22107
22108 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22109 part of the 2007-06-27 change to syms_of_fileio.
22110
221112007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22112
22113 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22114 Check WINDOWP before using XWINDOW. Consolidate return statements.
22115
221162007-06-27 Richard Stallman <rms@gnu.org>
22117
22118 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22119
221202007-06-27 Juanma Barranquero <lekktu@gmail.com>
22121
22122 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22123
221242007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22125
22126 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22127 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22128 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22129 (_free_internal, memalign): Use them.
22130 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22131 Initialize to PTHREAD_MUTEX_INITIALIZER.
22132 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22133 (morecore_nolock): Rename from morecore. All uses changed.
22134 Use only nolock versions of internal allocation functions.
22135 (_malloc_internal_nolock, _realloc_internal_nolock)
22136 (_free_internal_nolock): New functions created from
22137 _malloc_internal, _realloc_internal, and _free_internal.
22138 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22139 Copy hook value to automatic variable before its use.
22140 (memalign): Copy hook value to automatic variable before its use.
22141
221422007-06-26 Kenichi Handa <handa@m17n.org>
22143
22144 * coding.c (Ffind_operation_coding_system): Docstring improved.
22145 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22146
221472007-06-25 David Kastrup <dak@gnu.org>
22148
22149 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22150 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22151 cater for additional parameter.
22152
22153 * keymap.h: Adjust number of parameters to `current-active-maps'.
22154
22155 * doc.c (Fsubstitute_command_keys): Adjust call of
22156 `current-active-maps'.
22157
221582007-06-25 David Kastrup <dak@gnu.org>
22159
22160 * callint.c (Fcall_interactively): Make the parsing of interactive
22161 specs somewhat more readable.
22162
221632007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22164
22165 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22166 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22167 if extended background has already been filled.
22168
221692007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22170
22171 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22172 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22173
22174 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22175 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22176 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22177 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22178 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22179 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22180 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22181 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22182 Run timers during dialog popup.
22183 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22184
221852007-06-21 Jason Rumney <jasonr@gnu.org>
22186
22187 * image.c (convert_mono_to_color_image): Swap fore and background.
22188
221892007-06-20 Jason Rumney <jasonr@gnu.org>
22190
22191 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22192 (w32_free_bdf_font): Unmap memory not handle.
22193
221942007-06-20 Sam Steingold <sds@gnu.org>
22195
22196 * gmalloc.c (__morecore): Fix the declaration to comply with the
22197 definition.
22198
221992007-06-20 Juanma Barranquero <lekktu@gmail.com>
22200
22201 * w32term.c (w32_delete_display): Remove leftover declaration.
22202 (w32_define_cursor, w32_initialize): Make static.
22203
22204 * w32.c (_wsa_errlist): Fix typo in error message.
22205 (init_environment): Ignore any environment variable from the
22206 registry having a null value.
22207
222082007-06-20 Glenn Morris <rgm@gnu.org>
22209
22210 * Makefile.in (LIBGIF): Default to -lgif.
22211
222122007-06-17 Jason Rumney <jasonr@gnu.org>
22213
22214 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22215 unicode strings.
22216
222172007-06-16 Juanma Barranquero <lekktu@gmail.com>
22218
22219 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22220 Fix typo in docstring.
22221
222222007-06-16 Eli Zaretskii <eliz@gnu.org>
22223
22224 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22225 and their keybindings.
22226
222272007-06-15 Chong Yidong <cyd@stupidchicken.com>
22228
22229 * composite.c (update_compositions): Fix last fix.
22230
222312007-06-14 Jason Rumney <jasonr@gnu.org>
22232
22233 * w32.c (get_process_times_fn): New function pointer.
22234 (globals_of_w32): Intialize it if present in kernel32.dll.
22235 (w32_get_internal_run_time): New function.
22236
22237 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22238
222392007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22240
22241 * composite.c (update_compositions): Check the validness of
22242 compositions.
22243
222442007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22245
22246 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22247 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22248
22249 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22250 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22251
22252 * macgui.h (USE_MAC_TOOLBAR): New define.
22253
22254 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22255 Return immediately unless popup is activated.
22256
22257 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22258 background to scroll bar gap.
22259 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22260 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22261 scroll bars on frame edge. Check fringe background extension.
22262 Don't clear extended fringe background area.
22263 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22264 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22265 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22266 [USE_MAC_TOOLBAR]: New macros.
22267 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22268 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22269 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22270 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22271 [USE_MAC_TOOLBAR]: New functions.
22272 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22273 manually if previous repositioning has failed.
22274 (mac_handle_keyboard_event): Use precomputed event kind.
22275 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22276 as tool bar item click. Handle mouse movement over tool bar items.
22277
22278 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22279 toolbar_win_gravity.
22280 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22281 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22282 Add externs.
22283
22284 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22285 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22286
222872007-06-14 Chong Yidong <cyd@stupidchicken.com>
22288
22289 * image.c (search_image_cache): Remove unused variable.
22290
222912007-06-13 Chong Yidong <cyd@stupidchicken.com>
22292
22293 * xfns.c, xmenu.c: Link to xaw3d if available.
22294
222952007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22296
22297 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22298 frame_foreground and frame_background.
22299
22300 * image.c (lookup_image): Save frame foreground and background colors.
22301 (search_image_cache): Check if saved and current frame colors match.
22302
223032007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22304
22305 * regex.c (regex_compile): Remove the `regnum' counter.
22306 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22307
223082007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22309
22310 * term.c: Include intervals.h to declare Fget_text_property.
22311
223122007-06-10 Jason Rumney <jasonr@gnu.org>
22313
22314 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22315
223162007-06-08 Juanma Barranquero <lekktu@gmail.com>
22317
22318 * callint.c (Fcall_interactively):
22319 * editfns.c (Fdelete_and_extract_region):
22320 * fileio.c (Fread_file_name):
22321 * fns.c (Fmapconcat):
22322 * keyboard.c (cmd_error_internal):
22323 * keymap.c (Fkey_description):
22324 * lread.c (openp):
22325 * minibuf.c (read_minibuf):
22326 * search.c (wordify):
22327 * sunfns.c (sel_read):
22328 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22329 * xfns.c (x_default_scroll_bar_color_parameter):
22330 * xmenu.c (menu_help_callback):
22331 * xselect.c (Fx_get_atom_name):
22332 * xterm.c (x_term_init): Use empty_unibyte_string.
22333
223342007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22335
22336 * alloc.c (init_strings): Initialize canonical empty strings.
22337 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22338 canonical empty string when the requested size is 0.
22339
22340 * emacs.c (empty_unibyte_string): Rename from empty_string.
22341 (empty_multibyte_string): New canonical empty string.
22342 (syms_of_emacs): Don't initialize empty_string.
22343
22344 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22345 string, if appropriate.
22346 (empty_unibyte_string, empty_multibyte_string): New externs.
22347 (empty_string): Remove extern.
22348
22349 * lread.c (syms_of_lread): Use empty_unibyte_string.
22350
223512007-06-07 Jason Rumney <jasonr@gnu.org>
22352
22353 * s/ms-w32.h: Don't define HAVE_TZNAME.
22354
22355 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22356
223572007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22358
22359 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22360
22361 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22362 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22363
22364 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22365 Don't call next handler.
22366 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22367 Remove argument. Install handler to application.
22368 (set_frame_menubar): Don't change deep_p.
22369 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22370 FRAME_OUTER_TO_INNER_DIFF_Y.
22371 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22372 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22373 [HAVE_DIALOGS]: New macros.
22374 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22375 Use them.
22376 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22377
22378 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22379 init_service_handler. All callers changed. Return OSStatus value.
22380
22381 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22382 All callers changed so as not to call SetPortWindowPort.
22383 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22384 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22385 mac_draw_string_common.
22386 (mac_draw_image_string_qd): Likewise.
22387 (mac_draw_string_common): Use them. Add INLINE.
22388 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22389 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22390 GetGlobalMouse.
22391 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22392 and FRAME_OUTER_TO_INNER_DIFF_Y.
22393 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22394 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22395 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22396 repositioning window to mac_handle_window_event.
22397 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22398 saving window location to mac_handle_window_event
22399 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22400 (install_menu_target_item_handler): Remove argument in extern.
22401 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22402 Also accept command events.
22403 (do_keystroke): New function created from XTread_socket.
22404 (init_command_handler): Remove functions.
22405 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22406 and save window location by kEventWindowShowing and kEventWindowHiding
22407 handlers here. Don't call next handler for window state change and
22408 focus events.
22409 (mac_handle_application_event, mac_handle_keyboard_event)
22410 [TARGET_API_MAC_CARBON]: New functions.
22411 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22412 kEventWindowShowing and kEventWindowHiding events. Move installation
22413 of mouse, font, text input and menu target item handlers to
22414 install_application_handler.
22415 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22416 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22417 New function.
22418 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22419 Register it.
22420 (XTread_socket) [TARGET_API_MAC_CARBON]:
22421 Consolidate SendEventToEventTarget calls.
22422 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22423 Move application activation handler to mac_handle_application_event.
22424 Move keyboard handler to mac_handle_keyboard_event.
22425 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22426 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22427 init_command_handler. Call install_application_handler.
22428
22429 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22430 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22431
224322007-06-07 Glenn Morris <rgm@gnu.org>
22433
22434 * emacs.c (main): Use `emacs-copyright' in --version output.
22435
224362007-06-06 Chong Yidong <cyd@stupidchicken.com>
22437
22438 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22439
224402007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22441
22442 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22443
22444 * macgui.h: Replace WindowPtr with WindowRef.
22445
22446 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22447 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22448 Replace ControlHandle with ControlRef.
22449 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22450
22451 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22452 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22453 Replace ControlHandle with ControlRef.
22454 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22455 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22456
22457 * macterm.h (struct scroll_bar): Rename member control_handle_low
22458 and control_handle_high to control_ref_low and control_ref_high.
22459 All uses changed.
22460 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22461 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22462 respectively. All uses changed.
22463 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22464 (install_window_handler, remove_window_handler): Replace WindowPtr
22465 with WindowRef in externs.
22466
224672007-06-05 Juanma Barranquero <lekktu@gmail.com>
22468
22469 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22470
224712007-06-03 Nick Roberts <nickrob@snap.net.nz>
22472
22473 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22474
22475 * frame.c (Fmouse_position, Fmouse_pixel_position):
22476 Condition on HAVE_GPM too.
22477
22478 * term.c (term_mouse_highlight): Remove unused variables.
22479 (Fterm_open_connection): Set gpm_zerobased to 1.
22480 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22481 Use zero based co-ordinates.
22482 (handle_one_term_event): Report a drag as mouse movement too.
22483
22484 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22485
224862007-06-03 Chong Yidong <cyd@stupidchicken.com>
22487
22488 * image.c (search_image_cache): New function. Require background
22489 color match if background color is unspecified in the image spec.
22490 (uncache_image, lookup_image): Use it.
22491
224922007-06-01 Juanma Barranquero <lekktu@gmail.com>
22493
22494 * window.c (Fshrink_window): Reflow docstring.
22495
224962007-06-02 Chong Yidong <cyd@stupidchicken.com>
22497
22498 * Version 22.1 released.
22499
225002007-06-01 Richard Stallman <rms@gnu.org>
22501
22502 * xfns.c (x_encode_text): Add GCPRO.
22503
225042007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22505
22506 * xfns.c (x_set_name_internal): Save encoded name before
22507 x_encode_text in case string data is relocated.
22508
225092007-05-31 Richard Stallman <rms@gnu.org>
22510
22511 * buffer.c (syms_of_buffer): Doc fix.
22512
225132007-05-30 Nick Roberts <nickrob@snap.net.nz>
22514
22515 * sysdep.c (init_sys_modes): Add rather than replace with
22516 O_NONBLOCK.
22517
22518 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22519 term_mouse_moveto.
22520
22521 * termhooks.h (term_mouse_moveto): New extern.
22522
22523 * term.c (mouse_face_window): Rename...
22524 (Qmouse_face_window): ...to this.
22525 (term_show_mouse_face, term_clear_mouse_face)
22526 (term_mouse_highlight): Use Qmouse_face_window.
22527 (term_mouse_moveto): New function.
22528 (term_mouse_position): Make it work.
22529 (syms_of_term): Uncomment assignment to mouse_position_hook.
22530 Staticpro Qmouse_face_window.
22531
225322007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22533
22534 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22535 around current_column call.
22536
225372007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22538
22539 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22540 * xdisp.c (next_element_from_buffer):
22541 * window.c (delete_window):
22542 * term.c (term_mouse_highlight):
22543 * msdos.c (getdefdir):
22544 * macterm.c (mac_create_bitmap_from_bitmap_data)
22545 (init_font_name_table):
22546 * fns.c (Fsxhash):
22547 * data.c (Fmake_local_variable):
22548 * ccl.c (ccl_driver): Likewise.
22549
225502007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22551
22552 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22553 Call mac_wakeup_from_rne on window size change.
22554
225552007-05-25 Chong Yidong <cyd@stupidchicken.com>
22556
22557 * image.c (uncache_image): Fix typo.
22558
225592007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22560
22561 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22562
225632007-05-22 Richard Stallman <rms@gnu.org>
22564
22565 * xterm.c (x_connection_closed): Remove NO_RETURN.
22566
225672007-05-22 Martin Rudalics <rudalics@gmx.at>
22568
22569 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22570
225712007-05-21 Chong Yidong <cyd@stupidchicken.com>
22572
22573 * image.c (uncache_image): New function.
22574 (Fimage_refresh): New function.
22575
225762007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22577
22578 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22579
225802007-05-20 Nick Roberts <nickrob@snap.net.nz>
22581
22582 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22583 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22584
225852007-05-20 Nick Roberts <nickrob@snap.net.nz>
22586
22587 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22588 conditional on [HAVE_GPM_H].
22589
225902007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22591
22592 * syntax.c (skip_chars): Update syntax-table only after we checked that
22593 the new location is valid.
22594
225952007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22596
22597 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22598 mac_get_window_bounds.
22599
226002007-05-20 Nick Roberts <nickrob@snap.net.nz>
22601
22602 * Makefile.in (LIBGPM): Allow it to be set from configure.
22603 If set then link Emacs with it.
22604
22605 * config.in: Regenerate.
22606
22607 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22608 New externs.
22609
22610 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22611 Include gpm.h.
22612 (handle_one_term_event, term_gpm): New externs.
22613
22614 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22615 and allow it to be interrupted by SIGIO.
22616
22617 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22618 (wait_reading_process_output): Wait on gpm_fd too.
22619 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22620 (add_gpm_wait_descriptor_called_flag): New variable.
22621 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22622
22623 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22624 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22625 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22626 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22627 (make_lispy_event): Add case GPM_CLICK_EVENT.
22628 (read_avail_input): Handle mouse input.
22629
22630 * term.c (write_glyphs_with_face): New function.
22631 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22632 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22633 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22634 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22635 (last_mouse_x, last_mouse_y): New variables.
22636 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22637 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22638 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22639 (Fterm_close_connection): New functions.
22640 (term_init): Initialise mouse_face_window.
22641
226422007-05-19 Chong Yidong <cyd@stupidchicken.com>
22643
22644 * xdisp.c (redisplay_window): If first window line is a
22645 continuation line, recompute the new window start instead of
22646 recentering.
22647
226482007-05-18 Glenn Morris <rgm@gnu.org>
22649
22650 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22651 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22652
226532007-05-17 Glenn Morris <rgm@gnu.org>
22654
22655 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22656
226572007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22658
22659 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22660 dead key repeat and up events.
22661
226622007-05-14 Chong Yidong <cyd@stupidchicken.com>
22663
22664 * image.c (pbm_load): Check image size for monochrome pbm.
22665
226662007-05-13 Chong Yidong <cyd@stupidchicken.com>
22667
22668 * xterm.c (XTread_socket): Revert last change.
22669
226702007-05-12 Chong Yidong <cyd@stupidchicken.com>
22671
22672 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22673
22674 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22675
226762007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22677
22678 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22679 mixup (YAILOM).
22680
226812007-05-07 Andreas Schwab <schwab@suse.de>
22682
22683 * keymap.c (Flookup_key): Fix typo in last change.
22684
226852007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22686
22687 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22688 mapping for unibyte strings.
22689
226902007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22691
22692 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22693 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22694
226952007-04-29 Richard Stallman <rms@gnu.org>
22696
22697 * insdel.c (replace_range): For undo, record insertion first.
22698
226992007-04-29 Andreas Schwab <schwab@suse.de>
22700
22701 * lisp.h (VECSIZE): Use OFFSETOF.
22702
227032007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22704
22705 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22706 disabled lines.
22707
227082007-04-28 Richard Stallman <rms@gnu.org>
22709
22710 * lread.c (read_escape): In a string, \s is always space.
22711
227122007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22713
22714 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22715
22716 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22717 submenu for menu bar items.
22718
22719See ChangeLog.10 for earlier changes.
22720
22721;; Local Variables:
22722;; coding: utf-8
22723;; add-log-time-zone-rule: t
aac0c6e3
MR
22724;; End:
22725
e3eb1dae 22726 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22727
22728 This file is part of GNU Emacs.
22729
22730 GNU Emacs is free software: you can redistribute it and/or modify
22731 it under the terms of the GNU General Public License as published by
22732 the Free Software Foundation, either version 3 of the License, or
22733 (at your option) any later version.
22734
22735 GNU Emacs is distributed in the hope that it will be useful,
22736 but WITHOUT ANY WARRANTY; without even the implied warranty of
22737 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22738 GNU General Public License for more details.
22739
22740 You should have received a copy of the GNU General Public License
22741 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22742
22743;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40