tetris.el: Use `define-derived-mode'; fix window selection; doc fixes.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2807228d
GM
12010-04-21 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4
574c05e2
KK
52010-04-21 Karel Klíč <kklic@redhat.com>
6
7 * Makefile.in (LIBSELINUX_LIBS): New.
8 (LIBES): Add $LIBSELINUX_LIBS.
9 * eval.c, lisp.h (call7): New function.
10 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
11 (Ffile_selinux_context, Fset_file_selinux_context):
12 New functions.
13 (Fcopy_file): New parameter preserve-selinux-context.
14 (Frename_file): Preserve selinux context when renaming by copy-file.
15
91eac4bb
JB
162010-04-21 Juanma Barranquero <lekktu@gmail.com>
17 Eli Zaretskii <eliz@gnu.org>
18
50426a04
JB
19 Don't depend on cm.c or termcap.c on Windows, use stubs.
20 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
21 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
22 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
23 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
24 (sys_tputs, sys_tgetstr): New stubs.
25 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
26 (tputs, tgetstr): New; define to sys_*.
91eac4bb 27
938efb77
JB
282010-04-20 Juanma Barranquero <lekktu@gmail.com>
29
30 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
31
b4bf28b7
SM
322010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
33
8b1e1112
SM
34 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
35 Just signal a warning rather than an error when inside a let.
36 (Fmake_variable_frame_local): Add the same test.
37
933ac235
SM
38 * font.c (syms_of_font): Make the style table vars read-only.
39
b4bf28b7
SM
40 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
41 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
42
43 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
44
93d68d0c
EZ
452010-04-20 Eli Zaretskii <eliz@gnu.org>
46
47 Fix R2L paragraph display on TTY.
48
49 * xdisp.c (unproduce_glyphs): New function.
50 (display_line): Use it when produced glyphs are discarded from R2L
51 glyph rows.
52 (append_composite_glyph): In R2L rows, prepend the glyph rather
53 than appending it.
54
55 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
56 rather than append it. Set up the resolved_level and bidi_type
57 attributes of the appended glyph.
283ccc18
EZ
58 (produce_special_glyphs): Mirror the backslash continuation
59 character in R2L lines.
93d68d0c 60
283ccc18 61 Implement display of R2L paragraphs in GUI sessions.
26cdf528 62
283ccc18
EZ
63 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
64 append_stretch_glyph.
65 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
66 off-by-one error in computing x at end of text in the row.
67 (append_stretch_glyph): In reversed row, prepend the glyph rather
68 than append it. Set resolved_level and bidi_type of the glyph.
69 (extend_face_to_end_of_line): If the row is reversed, prepend a
70 stretch glyph whose width is such that the rightmost glyph will be
71 drawn at the right margin of the window. Fix off-by-one error on
72 TTY frames in testing whether a line needs face extension. Fix
73 face extension at ZV. If this is the last glyph row, use
74 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
75 region face.
76 (set_cursor_from_row, display_line): Use
26cdf528
EZ
77 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
78 row->continuation_lines_width.
283ccc18
EZ
79 (next_element_from_buffer): Don't call bidi_paragraph_init if we
80 are at ZV. Fixes a crash when reseated to ZV by
81 try_window_reusing_current_matrix.
45903529
EZ
82 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
83 which happens with R2L glyph rows. Fixes a crash when inserting a
84 character at end of an R2L line.
283ccc18
EZ
85 (set_cursor_from_row): Don't be fooled by truncated rows: don't
86 treat them as having zero-width characters. Improve comments.
87 Don't reverse pos_before and pos_after for reversed glyph rows.
88 Set cursor.x to negative value when the cursor might be on the
89 left fringe.
90 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
91 left fringe, not the right one.
f951a506
EZ
92 (notice_overwritten_cursor, draw_phys_cursor_glyph)
93 (erase_phys_cursor): For reversed cursor_row, support cursor on
94 the left fringe.
95
283ccc18
EZ
96 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
97 of continuation indicators on the fringes.
98 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
99 left fringe.
100
f951a506
EZ
101 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
102 draw cursor on the left fringe.
103
104 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
105 cursor on the left fringe.
106
f951a506
EZ
107 * dispnew.c (update_text_area): Handle reversed desired rows when
108 the cursor is on the left fringe.
109 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
110 below, not by 0, for when the cursor is on the left fringe.
111
3bb49aaf
JD
1122010-04-20 Jan Djärv <jan.h.d@swipnet.se>
113
114 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
115 widget is a scrollbar.
116
c0be27fd
KH
1172010-04-20 Kenichi Handa <handa@m17n.org>
118
119 * charset.c (char_charset): Consider Vcharset_non_preferred_head
120 only when the arg CHARSET_LIST is nil.
121
ce5b453a
SM
1222010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
123
124 Make variable forwarding explicit rather the using special values.
125 Basically, this makes the structure of buffer-local values and object
126 forwarding explicit in the type of Lisp_Symbols rather than use
127 special Lisp_Objects for that. This tends to lead to slightly more
128 verbose code, but is more C-like, simpler, and makes it easier to make
129 sure we handled all cases, among other things by letting the compiler
130 help us check it.
131 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
132 Removing forwarding objects.
133 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
134 (struct Lisp_Symbol): Make the various forms of variable-forwarding
135 explicit rather than hiding them inside Lisp_Object "values".
136 (XFWDTYPE): New macro.
137 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
138 (XBUFFER_LOCAL_VALUE): Remove.
139 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
140 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
141 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
142 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
143 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
144 Remove the Lisp_Misc_* header.
145 (struct Lisp_Buffer_Local_Value): Redefine.
146 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
147 (struct Lisp_Misc_Any): Add filler to get the right size.
148 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
149 Lisp_Intfwd.
150 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
151 (DEFVAR_KBOARD): Allocate a forwarding object.
152 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
153 (let_shadows_global_binding_p): New function.
154 (union Lisp_Val_Fwd): New type.
155 (make_blv): New function.
156 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
157 (store_symval_forwarding, swap_in_global_binding, Fboundp)
158 (swap_in_symval_forwarding, find_symbol_value, Fset)
159 (let_shadows_buffer_binding_p, set_internal, default_value)
160 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
161 (Fkill_local_variable, Fmake_variable_frame_local)
162 (Flocal_variable_p, Flocal_variable_if_set_p)
163 (Fvariable_binding_locus):
164 * xdisp.c (select_frame_for_redisplay):
165 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
166 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
167 * frame.c (store_frame_param):
168 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
169 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
170 value structure.
171 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
172 (clone_per_buffer_values): Only adjust markers into the current buffer.
173 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
174 (Fbuffer_local_value, set_buffer_internal_1)
175 (swap_out_buffer_local_variables):
176 Adapt to the new symbol value structure.
177 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
178 (defvar_per_buffer): Take a new arg for the fwd object.
179 (buffer_lisp_local_variables): Return a proper alist (different fix
180 for bug#4138).
181 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
182 (Fgarbage_collect): Don't handle buffer_defaults specially.
183 (mark_object): Handle new symbol value structure rather than the old
184 special Lisp_Misc_* objects.
185 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
186 * term.c (set_tty_color_mode):
187 * bidi.c (bidi_initialize): Don't access the ->value field directly.
188 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
189 a buffer_local_flags.
190 * print.c (print_object): Get rid of impossible forwarding objects.
191
fd3998ff
EZ
1922010-04-19 Eli Zaretskii <eliz@gnu.org>
193
194 * bidi.c (bidi_get_type, bidi_get_category)
195 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
196 (bidi_type_of_next_char, bidi_level_of_next_char):
197 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 198
e42cd1a7
JB
1992010-04-19 Juanma Barranquero <lekktu@gmail.com>
200
201 * dired.c (Ffile_attributes): Fix typo in docstring.
202
6e104790 2032010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
204
205 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
206 NSInteger (Bug#5811).
207
6e104790 2082010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
209
210 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
211 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
212
6e104790 2132010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
214
215 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
216
6e104790
SM
2172010-04-19 Jan Djärv <jan.h.d@swipnet.se>
218
219 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
220 FRAME_LINE_TO_PIXEL_Y.
221
222 * xterm.c (x_set_window_size_1): Don't add border_width/height to
223 pixelwidth/height.
224
2252010-04-19 Chong Yidong <cyd@stupidchicken.com>
226
227 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
228 terminal frames (Bug#5837).
229
37dcfea0
EZ
2302010-04-19 Eli Zaretskii <eliz@gnu.org>
231
d1da276f
EZ
232 * .gdbinit (xsubchartable): New command.
233
37dcfea0
EZ
2342010-04-19 Eli Zaretskii <eliz@gnu.org>
235
236 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 237 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
238 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
239 and
240 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
241
e9515805
SM
2422010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
243
244 * alloc.c (Fpurecopy): Hash-cons if requested.
245 (syms_of_alloc): Update purify-flag docstring.
246
22aa44a8
JD
2472010-04-18 Jan Djärv <jan.h.d@swipnet.se>
248
249 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
250 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
251
ebb5722e
EZ
2522010-04-17 Eli Zaretskii <eliz@gnu.org>
253
254 Fix a crash when an NSM character is inserted at BEGV.
255
256 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
257 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
258 NEUTRAL_B or UNKNOWN_BT.
259
0f4442ef
EZ
2602010-04-16 Eli Zaretskii <eliz@gnu.org>
261
262 * xdisp.c (set_cursor_from_row): Don't consider possibility of
263 other rows with cursor unless they are different from this row and
264 this row is part of a continued line. (Bug#5943)
265
7d4e45f8
DN
2662010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
267
268 * s/freebsd.h: Restore osreldate.h include.
269 Suggested by Naohiro Aota.
270
5ba5ec85
J
2712010-04-16 Jan Djärv <jan.h.d@swipnet.se>
272
273 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
274
20af301d
CY
2752010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
276
277 * s/cygwin.h: Avoid linking against static libgcc.
278
a4b000fb
JL
2792010-04-15 Juri Linkov <juri@jurta.org>
280
281 * window.c: Add Qscroll_command.
282 Remove Vscroll_preserve_screen_position_commands.
283 (window_scroll_pixel_based, window_scroll_line_based): Check the
284 `scroll-command' property on the last command instead of searching
285 the last command in Vscroll_preserve_screen_position_commands.
286 (syms_of_window): Initialize and staticpro `Qscroll_command'.
287 Put Qscroll_command property on Qscroll_up and Qscroll_down.
288 (scroll-preserve-screen-position): Doc fix.
289 (Vscroll_preserve_screen_position_commands): Remove variable.
290
bc319ba4
DN
2912010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
292
6bb24457
DN
293 * xdisp.c (message): Do not use NO_ARG_ARRAY.
294
19d4c244
DN
2952010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
296
297 Reduce cpp use in Makefile.in.
298 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
299 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
300 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
301 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
302 (CRT0_COMPILE): Remove, inline it in the only user.
303
32129746
JL
3042010-04-14 Juri Linkov <juri@jurta.org>
305
306 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
307 `scroll-up-command' and `M-v' from `scroll-down' to
308 `scroll-down-command'.
309
9013a7f8
JL
3102010-04-14 Juri Linkov <juri@jurta.org>
311
312 * window.c (Vscroll_preserve_screen_position_commands): New variable
313 with the default value as the list of Qscroll_down and Qscroll_up.
314 (window_scroll_pixel_based, window_scroll_line_based): Search the
315 last command in the list Vscroll_preserve_screen_position_commands
316 instead of comparing with Qscroll_up and Qscroll_down.
317
4bef8d26
JD
3182010-04-13 Jan Djärv <jan.h.d@swipnet.se>
319
92848133
JD
320 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
321 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
322 does that.
323
4bef8d26
JD
324 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
325 to zero.
326
58b963f7
SM
3272010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
328
84164a0d
SM
329 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
330
2b0a91e7
SM
331 Try to solve the problem of spurious EOF chars in long lines of text
332 sent to interactive subprocesses.
333 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
334 (system_process_attributes): Remove unused var `ttotal'.
335 * process.c (send_process): Don't bother breaking long line with EOF
336 chars when talking to ttys any more.
337 (wait_reading_process_output): Output a warning when called in such
338 a way that it could block without being interruptible.
339
58b963f7
SM
340 Try to detect file modification within the same second.
341 * buffer.h (struct buffer): New field modtime_size.
342 * buffer.c (reset_buffer): Initialize it.
343 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
344 (Fverify_visited_file_modtime): Check it.
345 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
346 (Fset_visited_file_modtime): Set (or clear) it.
347
01f5787b
SM
3482010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * process.c (status_notify): Remove unused var `ro'.
351
83725342
JD
3522010-04-12 Jan Djärv <jan.h.d@swipnet.se>
353
354 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
355 more than one visual (Bug#5938).
356
b9465836
DN
3572010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
358
50426a04
JB
359 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
360 Undefine.
b9465836 361
8d9c8ece
DN
3622010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
363
b1f52161
DN
364 Remove C_SWITCH_SYSTEM_TEMACS.
365 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
366 (malloc, realloc, free): Use emacs, not temacs for conditional
367 definition.
368
369 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
370 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
371
8d9c8ece
DN
372 Use autoconf, not cpp for some variables.
373 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
374 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
375 (ALL_CFLAGS): Use them as make variables.
376 (really-lwlib, really-oldXMenu): Do not pass them.
377
1ecb2d3f
JD
3782010-04-11 Jan Djärv <jan.h.d@swipnet.se>
379
380 * xmenu.c (apply_systemfont_to_dialog): New.
381 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
382
3a4fa2f2
SM
3832010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
384
97e53006
SM
385 * process.c (exec_sentinel): Preserve current-buffer.
386
3a4fa2f2
SM
387 * process.c (read_process_output): Move the save-current-buffer to
388 apply to both the filter and the non-filter branches.
389
88df7221
DN
3902010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
391
392 * s/msdos.h (UNEXEC): New definition.
393
5634ff85
YM
3942010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
395
6eff5c3d
YM
396 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
397 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
398
399 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
400 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
401 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
402 TRY_WINDOW_CHECK_MARGINS.
403
404 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
405 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
406 width only when it is for padding.
5634ff85 407
b13aef54
J
4082010-04-09 Jan Djärv <jan.h.d@swipnet.se>
409
410 * xfns.c (Fx_show_tip): Call try_window in a loop until
411 fonts_changed_p is zero (Bug#2423).
412
21d28484
EZ
4132010-04-08 Eli Zaretskii <eliz@gnu.org>
414
415 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
416 the end of TEXT_AREA. (Bug#5856)
417
0269ef77
JD
4182010-04-08 Jan Djärv <jan.h.d@swipnet.se>
419
420 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
421 HAVE_GCONF.
422
5930fe97
EZ
4232010-04-08 Eli Zaretskii <eliz@gnu.org>
424
425 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
426 prev.orig_type, for resolving type of NSM. (Bug#5858)
427
99852628
JD
4282010-04-08 Jan Djärv <jan.h.d@swipnet.se>
429
430 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
431 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
432 in current_font.
433 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
434 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
435 New functions.
436 (syms_of_xsettings): Initialize current_font.
437 defsubr Sfont_get_system_normal_font.
99852628
JD
438
439 * xsettings.h (Ffont_get_system_normal_font,
440 xsettings_get_system_normal_font): Declare.
441
442 * xfns.c (extern xlwmenu_default_font): Remove.
443 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
444 to xlwmenu.c.
445
446 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
447 menu items in UTF-8.
448
449 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
450 (apply_systemfont_to_menu): New function.
451 (set_frame_menubar, create_and_show_popup_menu): Call
452 apply_systemfont_to_menu.
453
7fc874c4
J
4542010-04-07 Jan Djärv <jan.h.d@swipnet.se>
455
456 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
457 FRAME_LINE_TO_PIXEL_Y.
458
459 * xterm.c (x_set_window_size_1): Don't add border_width/height to
460 pixelwidth/height.
461
863bf481
DN
4622010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
463
5e5a3b92
DN
464 Simplify code for HP machines.
465 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
466 for GNU_LINUX, not needed.
467 (UNEXEC, NEED_BSDTTY): Move definitions...
468 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
469
863bf481
DN
470 * m/iris4d.h (UNEXEC): Move definition ...
471 * s/irix6-5.h (UNEXEC): ... here.
472
3e6bec3b
JD
4732010-04-04 Jan Djärv <jan.h.d@swipnet.se>
474
475 * xfns.c (set_machine_and_pid_properties): New function.
476 (Fx_create_frame): Call set_machine_and_pid_properties.
477
2912322b
SM
4782010-04-03 Eli Zaretskii <eliz@gnu.org>
479
1502b819
EZ
480 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
481 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
482 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
483
2912322b
SM
484 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
485 in this function. (Bug#5703)
486
4872010-04-03 Chong Yidong <cyd@stupidchicken.com>
488
489 * nsterm.h: Fix last change.
490
c435b432
DN
4912010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
492
a568f507
DN
493 * m/intel386.h (NO_REMAP): Move definition ...
494 * s/msdos.h (NO_REMAP): ... here.
495
4cd9f6c2
DN
496 * m/vax.h (CRT0_DUMMIES): Remove, unused.
497
c435b432
DN
498 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
499 used on those platforms.
500
42a2c622
DN
5012010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
502
503 Remove extern errno declarations.
504 * xterm.c:
505 * xrdb.c:
506 * w32term.c:
507 * unexec.c:
508 * unexaix.c:
509 * sysdep.c:
510 * process.c:
511 * lread.c:
512 * keyboard.c:
513 * floatfns.c:
514 * filelock.c:
515 * fileio.c:
516 * emacs.c (main):
517 * ecrt0.c:
518 * dispnew.c:
519 * callproc.c:
520 * buffer.c: Remove errno extern declarations.
521 * s/netbsd.h (NEED_ERRNO): Remove.
522
8224f93d
DN
5232010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
524
525 Remove all uses of LIBX11_SYSTEM.
526 * Makefile.in (LIBX11_SYSTEM): Remove.
527 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
528 instead.
529
814062c7
EZ
5302010-04-01 Eli Zaretskii <eliz@gnu.org>
531
ed68db4d
EZ
532 Remove support for DJGPP v1.x (bug#5813).
533
534 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
535 * s/msdos.h:
536 * unexec.c (make_hdr, copy_text_and_data):
537 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 538 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
539 (IT_set_terminal_modes, __write, _rename, gethostname)
540 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
541 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
542 the value of __DJGPP__.
ed68db4d
EZ
543 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
544 compatibility code.
8224f93d
DN
545 * lread.c:
546 * gmalloc.c (memalign):
547 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
548 * emacs.c (main):
549 * dosfns.c (init_dosfns):
ed68db4d
EZ
550 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
551
52f4d8d5
EZ
5522010-04-01 Eli Zaretskii <eliz@gnu.org>
553
814062c7
EZ
554 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
555 string with `cursor' property comes from an `after-string'
556 overlay. (Bug#5816)
557
0dc2e11d
GM
5582010-04-01 Glenn Morris <rgm@gnu.org>
559
560 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
561 Define as Makefile variables.
562 (LIBX): Use above variables rather than directly using autoconf.
563
1d29df59
DN
5642010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
565
566 Clean up BSD_SYSTEM use.
567 * xterm.c:
568 * process.c:
569 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
570 for including <sys/ioctl.h>.
571 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
572 code is only used for MSDOS.
573
1546c559
JL
5742010-03-31 Juri Linkov <juri@jurta.org>
575
576 * image.c: Add `Qextension_data'.
577 (syms_of_image): Initialize and staticpro `Qextension_data'.
578 (Fimage_metadata): Rename from `Fimage_extension_data'.
579 (gif_load): Put GIF extension data to the property
580 `Qextension_data'.
581
b8a1d5a1
CY
5822010-04-05 Chong Yidong <cyd@stupidchicken.com>
583
584 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
585 terminal frames (Bug#5837).
586
6521c534
CY
5872010-03-31 Chong Yidong <cyd@stupidchicken.com>
588
589 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
590 * nsterm.h: Fix prototype.
591
52c30783
EZ
5922010-03-31 Eli Zaretskii <eliz@gnu.org>
593
594 * xdisp.c (highlight_trailing_whitespace): Support highlight of
595 trailing whitespace in right-to-left rows.
596
855a0da7
SM
5972010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
598
599 Get rid of the direct_output optimizations.
600 * keyboard.c (nonundocount): Remove extern declaration.
601 (command_loop_1): Remove brittle optimisation for cheap and
602 common operations.
603 * xdisp.c (redisplay_internal): Don't bother checking
604 redisplay_performed_directly_p any more.
605 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
606 any more.
607 * dispnew.c (redisplay_performed_directly_p)
608 (direct_output_for_insert, direct_output_forward_char):
609 * dispextern.h (redisplay_performed_directly_p)
610 (direct_output_for_insert, direct_output_forward_char): Remove.
611 * cmds.c (nonundocount): Make it static.
612
85738751 6132010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
614
615 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
616
85738751 6172010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
618
619 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
620 invisible (Bug#5766).
621
85738751 6222010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 623
855a0da7
SM
624 * xdisp.c (x_consider_frame_title, update_window_cursor):
625 Remove HAVE_NS conditionals.
194d44e7 626 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
627
628 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
629 filename for the title.
630 (ns_set_doc_edited): Do nothing if the selected window is a
631 minibuffer window.
632
633 * nsterm.h: Add prototypes for ns_set_name_as_filename and
634 ns_set_doc_edited.
635
636 * nsterm.m: Remove unneeded prototype.
637
85738751 6382010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
639
640 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
641 in the DOC file. (Bug#5336)
642
85738751 6432010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
644
645 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
646
75d1428c
SM
6472010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
648
649 * window.c (keys_of_window): Remove redundant/overridden bindings.
650
82043cfb
EZ
6512010-03-30 Eli Zaretskii <eliz@gnu.org>
652
653 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
654 Restore original behavior when the iterator is not bidi_p.
655
b5dd0ae7
DN
6562010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
657
658 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
659
bd924a5d
EZ
6602010-03-30 Eli Zaretskii <eliz@gnu.org>
661
662 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
663 are outside the range of cached character positions.
664
3580374b
JB
6652010-03-30 Juanma Barranquero <lekktu@gmail.com>
666
667 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
668
a7b02820
EZ
6692010-03-30 Eli Zaretskii <eliz@gnu.org>
670
671 Initial support for bidirectional editing.
672
673 * Makefile.in (obj): Include bidi.o.
674 (bidi.o): New target.
675
676 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
677 ($(BLD)/bidi.$(O)): New target.
678
679 * bidi.c: New file.
680
681 * buffer.h (struct buffer): New members bidi_display_reordering
682 and bidi_paragraph_direction.
683
684 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
685 and bidi_paragraph_direction.
686 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
687 and bidi-paragraph-direction.
688 (Fbuffer_swap_text): Swap the values of
689 bidi_display_reordering and bidi_paragraph_direction.
690
691 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
692 (bidi_type_t, bidi_dir_t): New types.
693 (bidi_saved_info, bidi_stack, bidi_it): New structures.
694 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
695 prev_stop, base_level_stop, and eol_pos.
696 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
697 (IT_STACK_SIZE): Enlarge to 5.
698 (struct glyph_row): New member reversed_p.
699 <string_buffer_position>: Update prototype.
700 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
701 glyph_row if bidi_it.paragraph_dir == R2L.
702 (struct glyph): New members resolved_level and bidi_type.
703
704 * dispnew.c (direct_output_forward_char): Give up if we need bidi
705 processing or buffer's direction is right-to-left.
706 (prepare_desired_row): Preserve the reversed_p flag.
707 (row_equal_p): Compare the reversed_p attributes as well.
708
709 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
710 bidi_init_it and set it->paragraph_embedding from the current
711 buffer's value of bidi_paragraph_direction.
712 (reseat_1): Initialize bidi_it.first_elt.
713 (set_iterator_to_next, next_element_from_buffer): Use the value of
714 paragraph_embedding to determine the paragraph direction.
715 (set_iterator_to_next): Under bidi reordering, call
716 bidi_get_next_char_visually. Call bidi_paragraph_init if the
717 new_paragraph flag is set in the bidi iterator.
718 (next_element_from_buffer): If bidi_it.first_elt is set,
719 initialize paragraph direction and find the first character to
720 display in the visual order. If reseated to a middle of a line,
721 prime the bidi iterator starting at the line's beginning. Handle
722 the situation where we overstepped stop_charpos due to
723 non-linearity of the bidi iteration. Likewise for when we back up
724 beyond the previous stop_charpos. When moving across stop_charpos,
725 record it in prev_stop.
726 (display_line): Set row->end and it->start for the next row to the
727 next character in logical order. Always extend reversed_p rows to
728 the end of line, even if they end at ZV. Copy the reversed_p flag
729 to the next glyph row. Keep calling set_cursor_from_row for
730 bidi-reordered rows even if we already have a possible candidate
731 for cursor position. Set row_end after all the row's glyphs have
732 been produced, by looping over the glyphs. Record the position
733 after EOL in it->eol_pos, and use it to set end_pos of the last
734 row produced for a continued line.
735 <Qright_to_left, Qleft_to_right>: New variables.
736 (syms_of_xdisp): Initialize and staticpro them.
737 (string_buffer_position_lim): New function.
738 (string_buffer_position): Most of code moved to
739 string_buffer_position_lim. Last argument and return value are
740 now EMACS_INT; all callers changed.
741 (set_cursor_from_row): Rewritten to support bidirectional text and
742 reversed glyph rows.
743 (text_outside_line_unchanged_p, try_window_id): Disable
744 optimizations if we are reordering bidirectional text and the
745 paragraph direction can be affected by the change.
746 (append_glyph, append_composite_glyph)
747 (produce_image_glyph, append_stretch_glyph): Set the
748 resolved_level and bidi_type members of each glyph.
749 (append_glyph): If the glyph row is reversed, prepend the glyph
750 rather than appending it.
751 (handle_stop_backwards): New function.
752 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
753 (reseat): call handle_stop_backwards to recompute prev_stop and
754 base_level_stop for the new position.
755 (handle_invisible_prop): Under bidi iteration, skip invisible text
756 using bidi_get_next_char_visually. If we are `reseat'ed, init the
757 paragraph direction. Update IT->prev_stop after skipping
758 invisible text.
759 (move_it_in_display_line_to): New variables prev_method
760 and prev_pos. Compare for strict equality in
761 BUFFER_POS_REACHED_P.
762 (try_cursor_movement): Examine all the candidate rows that occlude
763 point, to return the best match. If rows are bidi-reordered
764 and point moved backwards, back up to the row that is not a
765 continuation line, and start looking for a suitable row from
766 there.
767
768 * term.c (append_glyph): Reverse glyphs by pre-pending them,
769 rather than appending, if the glyph_row's reversed_p flag is set.
770 Set the resolved_level and bidi_type members of each glyph.
771
772 * .gdbinit (pbiditype): New command.
773 (pgx): Use it to display bidi level and type of the glyph.
774 (pitx): Display some bidi information about the iterator.
775 (prowlims, pmtxrows): New commands.
776
32a8894e
DN
7772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
778
779 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
780 * s/usg5-4.h (LIBS_DEBUG):
781 * s/irix6-5.h (C_DEBUG_SWITCH):
782 * s/gnu-linux.h (LIBS_DEBUG):
783 * s/darwin.h (LIBS_DEBUG):
784 * s/bsd-common.h (LIBS_DEBUG):
785 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
786 * m/iris4d.h (LIBS_DEBUG):
787 * m/hp800.h (LIBS_DEBUG): Remove definitions.
788
789 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
790 (LIBS_DEBUG): Remove definition.
791
649dbf36
CY
7922010-03-27 Chong Yidong <cyd@stupidchicken.com>
793
794 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
795 Windows.
796
cad4261f
YM
7972010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
798
799 * process.c (Fmake_network_process): Don't call turn_on_atimers around
800 `connect' (Bug#5723).
801
cd591dbc
HE
8022010-03-25 Helmut Eller <eller.helmut@gmail.com>
803
804 * process.c (Fmake_network_process): Call `select' for interrupted
805 `connect' rather than creating new socket (Bug#5173).
806
e867cb5d 8072010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
808
809 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
810
811 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
812
813 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
814
e867cb5d 8152010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
816
817 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
818 XLoadQueryFont.
819
e867cb5d 8202010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
821
822 * coding.c (decode_coding_ccl): Fix previous change for the
823 multibyte case.
fb608df3
KH
824 (encode_coding_ccl): Don't setup ccl program here. Fix for the
825 case that the output buffer is fullfilled.
826 (encode_coding): Setup ccl program here.
fbdc1721 827
e867cb5d 8282010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
829
830 * editfns.c (Fformat): Account for string precision when computing
831 field width (Bug#5710).
832
5845f0ed
DN
8332010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
834
814fb708
DN
835 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
836
5845f0ed
DN
837 Simplify LIBS_MACHINE definitions.
838 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
839 * m/iris4d.h (LIBS_MACHINE): Likewise.
840 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
841 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 842 * s/netbsd.h: Remove commented out code.
5845f0ed 843
b7064064
DN
8442010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
845
df7734b2
DN
846 Remove dead code dealing with POSIX_SIGNALS.
847 * atimer.c (set_alarm): Remove dead code, all USG systems define
848 POSIX_SIGNALS.
849 * data.c (arith_error): Likewise.
850 * keyboard.c (input_available_signal, handle_user_signal)
851 (interrupt_signal): Likewise.
852 * process.c (sigchld_handler): Likewise.
853 (create_process): Remove if 0 code. Remove HPUX conditional when
854 !defined (POSIX_SIGNALS), it cannot be true.
855 * syssignal.h: Remove USG5_4 and USG conditionals when
856 !POSIX_SIGNALS, they cannot be true.
857
b7064064
DN
858 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
859 NO_SOCK_SIGIO, not used anymore.
860
55da5ee3
DN
8612010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
862
0be96e3a
DN
863 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
864 support vax on BSDs.
865
55da5ee3
DN
866 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
867 * s/aix4-2.h (ORDINARY_LINK): ... here.
868
c0282183
AS
8692010-03-21 Andreas Schwab <schwab@linux-m68k.org>
870
82c3d67a
AS
871 * Makefile.in (abs_builddir): Define.
872 (bootstrap_exe): Use it.
873 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 874
3613edce
SM
8752010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
876
877 * Makefile.in (bootstrap_exe): Use an absolute name.
878
7f110ddc
DN
8792010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
880
22e87574
DN
881 Remove support for old GNU/Linux using libc version 5.
882 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
883 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
884
05a670e6
DN
885 Consolidate redundant definitions in s/bsd-common.h.
886 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
887 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
888 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
889 doing it in all files that include this one.
890 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
891 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
892 (LDAV_SYMBOL, KERNEL_FILE): Remove.
893 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
894 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
895 (LDAV_SYMBOL, KERNEL_FILE): Remove.
896 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
897 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
898 (LDAV_SYMBOL, KERNEL_FILE): Remove.
899
2968f561
DN
900 Consolidate redundant definitions.
901 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
902 it's undefined in all files that include this one.
903 (POSIX_SIGNALS): Define here instead of doing it in all files that
904 include this one.
905 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
906 (POSIX_SIGNALS): Do not define.
907 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
908 (POSIX_SIGNALS): Do not define.
909 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
910 (POSIX_SIGNALS): Do not define.
911
15d25dc0
DN
912 Remove support for old UNIX System V systems.
913 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
914 * s/usg-5-4-2.h: Remove.
915
07e339e4
DN
916 Remove support for Solaris on PPC and for old versions.
917 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
918 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
919 that cancel each other.
920 * s/sol2-3.h:
921 * s/sol2-4.h:
922 * s/sol2-5.h: Remove.
923 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
924 (NO_REMAP): Remove, unused.
925 (UNEXEC): Move definition ...
926 * s/aix4-2.h (UNEXEC): ... here.
927
7f110ddc
DN
928 * s/openbsd.h: Remove support for non-ELF and for systems that do
929 not support shared libraries.
930 * s/netbsd.h:
931 * s/freebsd.h: Likewise.
932
605f35cd
DN
9332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
934
935 Remove non-working support for lynxos 3.0.
936 * s/lynxos.h: Remove file.
937
938 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
939 COFF_BSD_SYMBOLS, nothing defines it anymore.
940
aed71cf4
DN
9412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
942
943 Remove obsolete uses of HAVE_SHM.
944 * emacs.c (standard_args):
945 (Fdump_emacs):
946 (syms_of_emacs): Remove code depending on HAVE_SHM.
947
948 * alloc.c: Remove HAVE_SHM dependent definition.
949
950 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
951
aded53ff
GM
9522010-03-18 Glenn Morris <rgm@gnu.org>
953
17284745
GM
954 * emacs.c (USAGE4): Hard-code bug address.
955 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
956 (bug_reporting_address): Remove.
957 (main): Don't call bug_reporting_address.
958
aded53ff
GM
959 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
960 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
961
303500aa
CY
9622010-03-15 Chong Yidong <cyd@stupidchicken.com>
963
964 * xfns.c (Fx_create_frame):
965 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
966 on left.
967
cef3058f
CY
9682010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
969
970 * editfns.c (Fformat): Account for string precision when computing
971 field width (Bug#5710).
972
a647d59d
CY
9732010-03-12 Chong Yidong <cyd@stupidchicken.com>
974
4fa42018
CY
975 * xfns.c (Fx_create_frame): Set default to Qright.
976
a647d59d
CY
977 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
978 all window systems.
979
6da23aaa
EZ
9802010-03-12 Eli Zaretskii <eliz@gnu.org>
981
a96f6398 982 These changes remove termcap.c from the build on Posix platforms.
83d02def 983 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
984 (MSDOS_OBJ): ...to here.
985 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
986 now identical to when LIBS_TERMCAP is defined.
987
988 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
989
990 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
991
a96f6398 992 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 993
288f9fc0
CY
9942010-03-10 Chong Yidong <cyd@stupidchicken.com>
995
996 * Branch for 23.2.
997
d48cd3f4
SM
9982010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
999
1000 Cleanup setup of gl_state in various parts of the code.
1001 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1002 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1003 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1004 (skip_chars):
1005 * regex.c (regex_compile): Use it.
1006 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1007 it's now set in regex_compile when/if we need it.
1008
618db430
SM
10092010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1010
c0335e02
SM
1011 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1012 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1013 (QUIT): Use it to consolidate code and remove redundancy.
1014 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1015
254c06a8
SM
1016 * regex.c (regex_compile): Setup gl_state as well.
1017
618db430
SM
1018 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1019 (in_classes): Use CONSP before XCAR/XCDR.
1020
233f0c9f
CY
10212010-03-03 Chong Yidong <cyd@stupidchicken.com>
1022
1023 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1024 definitions, so that keyboard macros are correctly handled
1025 (Bug#5481).
1026
75f80e63
EZ
10272010-03-02 Eli Zaretskii <eliz@gnu.org>
1028
1029 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1030 text that could be relocated inside the call to emacs_mule_char.
1031 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1032 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1033
dcfb9bc4
KH
10342010-03-02 Kenichi Handa <handa@m17n.org>
1035
fc9a17bc
KH
1036 * character.c (parse_str_as_multibyte): Fix handling of the
1037 multibyte form of raw-bytes.
1038 (str_as_multibyte): Likewise.
1039
dcfb9bc4
KH
1040 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1041 form of raw-bytes.
1042
412c01b6
CY
10432010-02-28 Chong Yidong <cyd@stupidchicken.com>
1044
1045 * charset.c (load_charset_map_from_file)
1046 (load_charset_map_from_vector): Zero out allocated
1047 charset_map_entries before using them.
1048
df7e1ea0
AS
10492010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1050
1051 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1052
fe69a722
CY
10532010-02-27 Chong Yidong <cyd@stupidchicken.com>
1054
4ed28cf4
CY
1055 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1056 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1057
7379cfce
KH
10582010-02-26 Kenichi Handa <handa@m17n.org>
1059
f88cc4d6
KH
1060 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1061
7379cfce
KH
1062 * xdisp.c (reseat_to_string): Fix previous change.
1063
cf2fdcfb
CY
10642010-02-26 David Reitter <david.reitter@gmail.com>
1065
1066 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1067 Lisp_Object (Bug#4736).
1068
cc6c7c75
KH
10692010-02-25 Kenichi Handa <handa@m17n.org>
1070
1071 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1072
32e737d7
JD
10732010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1074
1075 * xterm.c (XTflash): Move declarations before statements.
1076
1077 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1078 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1079 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1080 (xg_create_tool_bar): Remove unused variables.
1081 (x_wm_set_size_hint): Move declarations before statements.
1082 (xg_create_frame_widgets): Remove variable grav,
1083
676cae9f
CY
10842010-02-21 Chong Yidong <cyd@stupidchicken.com>
1085
1086 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1087
886cc2b8
SM
10882010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * term.c (fatal): Add a final \n if needed (bug#5596).
1091
ddb2d8e2
CY
10922010-02-18 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1095
2a4f8d3d
GM
10962010-02-18 Glenn Morris <rgm@gnu.org>
1097
1098 * callint.c (Finteractive): Doc fix.
1099
ebaf11b6
KH
11002010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1101
886cc2b8
SM
1102 * coding.c (record_conversion_result):
1103 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1104 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1105 memory allocation error.
1106
d0396581
KH
11072010-02-17 Kenichi Handa <handa@m17n.org>
1108
886cc2b8
SM
1109 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1110 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1111 (decode_coding): Setup ccl program here. Keep looping when the
1112 decoder stopped because the output buffer is
1113 fullfilled (bug#5534).
1114
1115 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1116
98599f74
JD
11172010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1118
471e4f04 1119 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1120 bug #5571.
886cc2b8 1121 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1122 overdrawn.
98599f74 1123
182659ae
JD
11242010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1125
1126 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1127 doing_interact here.
1128 (ice_connection_closed): New function.
1129 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1130 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1131 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1132 returns I/O error.
1133 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1134 bug #5512.
1135
9be32c4e 11362010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1137
1138 * nsfont.m (nsfont_open): The system's value for the font descent
1139 is negative, so round it down to avoid clipping.
1140
a2f3eb19
CY
11412010-02-06 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * charset.c (load_charset_map_from_file)
1144 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1145 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1146
3088147c
CY
11472010-02-05 Chong Yidong <cyd@stupidchicken.com>
1148
1149 * charset.c (load_charset_map_from_file): Allocate large
1150 charset_map_entries structure on the heap rather than the stack.
1151 (Bug#5526).
1152
b57d9029
KH
11532010-01-31 Kenichi Handa <handa@m17n.org>
1154
1155 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1156 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1157
c67d885b
CY
11582010-01-31 Chong Yidong <cyd@stupidchicken.com>
1159
1160 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1161 <deactivated@gmail.com> (Bug#3605).
1162
8fab2362
CY
11632010-01-31 David De La Harpe Golden <david@harpegolden.net>
1164
1165 * fileio.c (Frename_file): Correctly rename symlinks to
1166 directories (Bug#5496).
1167
cb2a62f2
CY
11682010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1169
1170 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1171
944c7a26
AS
11722010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1173
1174 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1175
c024ac08
CY
11762010-01-29 Chong Yidong <cyd@stupidchicken.com>
1177
1178 * frame.c (DEFAULT_ROWS): Change default to 35.
1179
1180 * xfns.c (x_default_font_parameter): Change default XFT font to
1181 monospace-10 (Bug#3643).
1182
af93af83
EZ
11832010-01-29 Eli Zaretskii <eliz@gnu.org>
1184
1185 * w32inevt.c (key_event): Remove unnecessary comparison of
1186 event->uChar.AsciiChar with 128.
1187
ca0eb708
CY
11882010-01-28 Chong Yidong <cyd@stupidchicken.com>
1189
b242dbfc
CY
1190 * fileio.c (Frename_file): Fix last change (Bug#5487).
1191
ca0eb708
CY
1192 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1193
1194 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1195
45d45af5
JD
11962010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1197
1198 * xfns.c (Fx_create_frame): Remove window size matching code from
1199 2010-01-15.
1200 (x_get_current_desktop, x_get_desktop_workarea): Remove
1201
7e233730
JR
12022010-01-27 Jason Rumney <jasonr@gnu.org>
1203
1204 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1205 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1206
86e893e3
KH
12072010-01-27 Kenichi Handa <handa@m17n.org>
1208
1209 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1210 pattern string (Bug#4209).
86e893e3 1211
8719abec
CY
12122010-01-27 David De La Harpe Golden <david@harpegolden.net>
1213
1214 * fileio.c (Frename_file): Call copy-directory and
1215 delete-directory for directories, in order to handle cross-device
1216 renaming (Bug#3353).
1217
844794c8
JD
12182010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1219
aa3e13b5 1220 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1221 sizes 24 and 10. Bug #3643.
844794c8 1222
bd4b5750
SM
12232010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1224
8dc1adf6 1225 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1226 * keymap.c (shadow_lookup): Add `remap' arg.
1227 (describe_map, describe_vector): Update calls to shadow_lookup.
1228 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1229 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1230 perform remapping during shadow_lookup check of remapped_sequences.
1231
285d07e2
CY
12322010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1233
1234 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1235 png_check_sig, which has been removed in libpng 1.4.
1236
c6d09b8d
CY
12372010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1238
1239 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1240 lacks this header file).
1241
3d782998
YM
12422010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1243
1244 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1245 as in Emacs 22.
1246
2aff7c53
YM
12472010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1248
1249 * lisp.h (make_pure_string): String pointer arg now points to const.
1250
1251 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1252 args now point to const.
1253
74327f7a
EZ
12542010-01-22 Eli Zaretskii <eliz@gnu.org>
1255
1256 * lread.c (Fload): Don't treat files without .elc extension as
1257 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1258 them. (bug#5303)
1259
4d1e6632
KH
12602010-01-20 Kenichi Handa <handa@m17n.org>
1261
1262 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1263 treat the source as actual byte sequence.
1264
1fdede8f
AM
12652010-01-19 Alan Mackenzie <acm@muc.de>
1266
1267 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1268 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1269 `signal_after_change_p' to `coherent_change_p', and make the
1270 invocation of `modify_region' conditional on it.
1271
67477f30
JD
12722010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1273
1274 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1275 for debug purpose.
1276 (syms_of_xsettings): Declare xft-settings.
1277
244b023e
CY
12782010-01-18 Chong Yidong <cyd@stupidchicken.com>
1279
1280 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1281
617364fe
CY
12822010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1283
1284 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1285
4fe22cdf
CY
12862010-01-16 Chong Yidong <cyd@stupidchicken.com>
1287
1288 * emacs.c (standard_args): Adjust arg priorities to reflect how
1289 they are processed in startup.el.
1290
e118d2be
AS
12912010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1292
1293 * Makefile.in (lisp, shortlisp): Update.
1294
523ae620
SM
12952010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1296
1297 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1298 code, link the new kboard into all_kboard before running Lisp code,
1299 and protect the new terminal with GCPRO (Bug#5365).
1300 (x_term_init): Remove unused var `atom'.
1301 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1302
f0d13888
JD
13032010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1304
1305 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1306 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1307 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1308 this. Bug #3643.
f0d13888 1309
cc320f07
KH
13102010-01-15 Kenichi Handa <handa@m17n.org>
1311
1312 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1313
7ffdf101
CY
13142010-01-15 Chong Yidong <cyd@stupidchicken.com>
1315
1316 * nsterm.m (Qnone): Define.
1317
1318 * nsfns.m (Qnone): Move definition to nsterm.m.
1319
d12bd917
KH
13202010-01-14 Kenichi Handa <handa@m17n.org>
1321
1322 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1323 systems.
1324
d9a7c140
KH
13252010-01-14 Kenichi Handa <handa@m17n.org>
1326
1327 Make auto-composition work on all buffers even if they are
1328 fundamental mode.
1329
1330 * composite.c (Vauto_composition_mode): New variable.
1331 (composition_compute_stop_pos): Check Vauto_composition_mode
1332 instead of Vauto_composition_function.
1333 (composition_adjust_point, Ffind_composition_internal): Likewise.
1334 (syms_of_composite): Declare Lisp variable
1335 "auto-composition-mode" here.
1336
63286bb2
CY
13372010-01-13 Chong Yidong <cyd@stupidchicken.com>
1338
1339 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1340 during call to vendor-specific-keysyms (Bug#5365).
1341
c2623ee7
YM
13422010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1343
1344 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1345 Call SIGNAL_THREAD_CHECK (Bug#5333).
1346
1347 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1348 Call SIGNAL_THREAD_CHECK.
1349
0b5397c2
SM
13502010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1351
1352 Try to fix bug#5314. This is probably not the final word, tho.
1353 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1354 recent-auto-save-p as a side-effect.
1355 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1356 * buffer.c (Fkill_buffer, reset_buffer):
1357 * editfns.c (Fsubst_char_in_region):
1358 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1359 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1360
dc954cb2
KH
13612010-01-13 Kenichi Handa <handa@m17n.org>
1362
1363 Display buffer name, etc. in mode line by composing correctly.
1364
1365 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1366 STRING is not nil.
0b5397c2 1367 (display_mode_element): Adjust for the change of
dc954cb2
KH
1368 decode_mode_spec and display_line.
1369 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1370 (display_string): Handle the case that STRING is non-null and
1371 LISP_STRING is not nil.
1372
0b5397c2
SM
1373 * xterm.c (x_draw_composite_glyph_string_foreground):
1374 Pay attention to s->face->overstrike.
dc954cb2
KH
1375
1376 * composite.c (composition_reseat_it): Don't check PT if STRING is
1377 non nil.
1378
4a00eaca
YM
13792010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1380
1381 * keyboard.c (read_char): Don't apply previous change when current
1382 buffer is unchanged by command execution.
1383
60abb287
JD
13842010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1385
1386 * keyboard.c (read_char): Return after executing from special map.
1387
893db5bc
GM
13882010-01-12 Glenn Morris <rgm@gnu.org>
1389
1390 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1391 bug-gnu-emacs rather than emacs-pretest-bug.
1392
4d03ece0
CY
13932010-01-11 Chong Yidong <cyd@stupidchicken.com>
1394
1395 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1396 initializing the Lisp variables that depend on them.
1397
1df47e38
YM
13982010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1399
1400 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1401 Clear areas that will not be updated after change of menu bar lines.
1402 Clear the menu bar window's current matrix when the window gets empty.
1403
2f1c6384
CY
14042010-01-09 Chong Yidong <cyd@stupidchicken.com>
1405
e398c61c
CY
1406 * intervals.h, textprop.c (extend_property_ranges): Return value
1407 and args changed. Discard properties that begin at or after the
1408 new end (Bug#5306).
1409
1410 * editfns.c (Fformat): Caller changed.
1411
e5a29a10
CY
1412 * nsterm.m (ns_set_default_prefs): Delete function.
1413 (syms_of_nsterm): Initialize ns_command_modifier,
1414 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1415 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1416
2f1c6384
CY
1417 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1418 position (Bug#4040).
1419
d427a9fa
EZ
14202010-01-09 Eli Zaretskii <eliz@gnu.org>
1421
1422 * editfns.c (Ffloat_time): Doc fix.
1423
21b9df2f
JD
14242010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1425
1426 * xfns.c (Fx_create_frame): Don't create frame larger than display
1427 by default bug#3643.
1428
4b00d3b1
YM
14292010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1430
1431 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1432 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1433 windows above internal border.
1434
1435 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1436 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1437 windows above internal border.
1438
1439 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1440 tool bar windows specially.
1441
1442 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1443
1444 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1445 specially.
1446 (XTflash): Take account of menu bar height.
1447
1448 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1449 specially.
1450
5075d853
JD
14512010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1452
ac146f82 1453 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1454 also be true before we can return early (bug #5339).
1455
474217c8
CY
14562010-01-06 David Reitter <david.reitter@gmail.com>
1457
1458 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1459 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1460 (Bug#3233).
1461
c0e6d47d
JD
14622010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1463
d0cf45b7
JD
1464 * font.c (font_open_entity): Enable chache and call cached_font_ok
1465 for the driver if defined.
1466 (QCuser_spec): New symbol.
1467 (font_spec_from_name): Save name as user-spec.
1468 (font_load_for_lface): Keep user-spec instead of name.
1469 (font_open_by_name): Save name as user-spec.
1470 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1471 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1472
1473 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1474 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1475 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1476
1477 * font.h (struct font_driver): Add cached_font_ok.
1478
c0e6d47d
JD
1479 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1480
7c583cd8
JD
14812010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1482
1483 * xterm.c (x_new_font): Move code for setting rows/cols before
1484 resizing ...
ac146f82 1485 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1486
1487 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1488 (xg_frame_resized, xg_frame_set_char_size):
1489 Call xg_clear_under_internal_border.
7c583cd8 1490 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1491
03f77f0a
CY
14922010-01-05 Chong Yidong <cyd@stupidchicken.com>
1493
1494 * keyboard.c (read_key_sequence): Catch keyboard switch after
1495 making a new tty frame (Bug#5095).
1496
2a1ef5be
KH
14972010-01-05 Kenichi Handa <handa@m17n.org>
1498
1499 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1500
e3eb1dae
SM
15012010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1502
1503 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1504 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1505 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1506
777013f2
MA
15072010-01-03 Michael Albinus <michael.albinus@gmx.de>
1508
1509 * dbusbind.c (xd_add_watch): Improve debug message.
1510 (xd_remove_watch): Improve debug message. If DATA is the session
1511 bus, unset D-Bus session environment.
1512 (Fdbus_init_bus): Pass the bus as argument to
1513 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1514
8932b1c2
CY
15152010-01-01 Chong Yidong <cyd@stupidchicken.com>
1516
87231e2c
CY
1517 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1518
4801c5fa
CY
1519 * lread.c (syms_of_lread): Make it clearer that these are the
1520 names of loaded files (Bug#5068).
1521
8932b1c2
CY
1522 * eval.c (run_hook_with_args): Handle the case where the global
1523 value has the obsolete single-function form (Bug#5026).
1524
11e3c684
CY
15252009-12-27 Chong Yidong <cyd@stupidchicken.com>
1526
1527 * minibuf.c (Fall_completions): Minor optimization.
1528
5b28ce35
EZ
15292009-12-26 Eli Zaretskii <eliz@gnu.org>
1530
5ce6e4f4
JB
1531 * .gdbinit (pgx): Fix display of composite glyphs.
1532 Display cmp.from and cmp.to as well.
1533 (pitx): Fix last change.
5b28ce35 1534
bcffff46
KH
15352009-12-25 Kenichi Handa <handa@m17n.org>
1536
1537 * composite.h (composition_adjust_point): Update prototype.
1538
1539 * composite.c (composition_reseat_it): Don't make a composition
1540 spanning over point.
1541 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1542 composable characters.
1543 (composition_adjust_point): New arg NEW_PT. Callers changed.
1544
1545 * keyboard.c (command_loop_1): Force redisplay if the last point
1546 was within a composition.
1547 (adjust_point_for_property): Don't adjust point for automatic
1548 composition when called after buffer modification.
1549
3f670e9a
EZ
15502009-12-19 Eli Zaretskii <eliz@gnu.org>
1551
5ce6e4f4
JB
1552 * .gdbinit (pitx): Don't use enum names, use their values.
1553 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1554 (pgx): Don't use enum names, use their values.
1555 (pitmethod): New helper command.
1556 (pitx): Use it to display iteration method.
1557 (pgrowit): New command.
1558
ad903955
EZ
1559 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1560
3f670e9a
EZ
1561 Update dependencies in Makefile.in.
1562
1563 * Makefile.in (alloc.o): Depend on termhooks.h.
1564 (atimer.o): Depend on blockinput.h.
1565 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1566 and frame.h.
1567 (callint.o): Depend on systime.h, coding.h, and composite.h.
1568 (callproc.o): Depend on buffer.h.
1569 (casefiddle.o): Don't depend on charset.h.
1570 (casetab.o): Depend on character.h.
1571 (ccl.o): Depend on composite.h.
1572 (chartab.o): Depend on ccl.h.
1573 (cm.o): Depend on dispextern.h.
1574 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1575 (coding.o): Don't depend on $(INTERVALS_H).
1576 (composite.o): Don't depend on dispextern.h explicitly (it's in
1577 $(INTERVALS_H)). Depend on ccl.h.
1578 (data.o): Depend on systime.h, coding.h, composite.h,
1579 dispextern.h, font.h, and ccl.h.
1580 (dired.o): Depend on composite.h.
1581 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1582 composite.h (it's in $(INTERVALS_H)).
1583 (doc.o): Depend on systime.h, coding.h, and composite.h.
1584 (editfns.o): Don't depend explicitly on dispextern.h.
1585 (emacs.o): Depend on frame.h and coding.h.
1586 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1587 (fileio.o): Depend on frame.h and commands.h. Don't depend
1588 explicitly on dispextern.h.
1589 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1590 composite.h.
1591 (fns.o): Don't depend on termhooks.h.
1592 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1593 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1594 coding.h, $(INTERVALS_H), window.h, xterm.h.
1595 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1596 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1597 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1598 fontset.h, ccl.h, and ftfont.h.
1599 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1600 (gtkutil.o): Depend on dispextern.h and composite.h.
1601 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1602 termhooks.h, and ccl.h.
1603 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1604 (intervals.o): Depend on systime.h and coding.h.
1605 (keyboard.o): Depend on composite.h and coding.h.
1606 (keymap.o): Depend on coding.h and frame.h.
1607 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1608 (macros.o): Depend on systime.h, coding.h, and composite.h.
1609 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1610 and atimer.h.
1611 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1612 dispextern.h explicitly.
0b5397c2
SM
1613 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1614 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1615 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1616 (regex.o): Don't depend on charset.h.
1617 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1618 (search.o): Don't depend explicitly on composite.h.
1619 (sound.o): Depend on atimer.h and systime.h.
1620 (syntax.o): Don't depend explicitly on composite.h.
1621 (sysdep.o): Depend on coding.h and composite.h.
1622 (term.o): Depend on xterm.h and buffer.h.
1623 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1624 (textprop.o): Don't depend on dispextern.h explicitly.
1625 (undo.o): Depend on dispextern.h.
1626 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1627 dispextern.h and composite.h explicitly.
1628 (xdisp.o): Depend on ccl.h.
1629 (xfaces.o): Depend on coding.h and ccl.h.
1630 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1631 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1632 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1633 ftfont.h.
1634 (xgselect.o): New dependency.
1635 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1636 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1637 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1638 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1639 (xsmfns.o): Depend on frame.h and dispextern.h.
1640 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1641 sysselect.h.
1642
7a6f7fea
AS
16432009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1644
1645 * font.c (Fclear_font_cache): Pass correct cache argument to
1646 font_clear_cache.
1647
f4c21026
AS
16482009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1649
1650 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1651 twice.
1652
f7ab0997
CY
16532009-12-15 Chong Yidong <cyd@stupidchicken.com>
1654
1655 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1656 calling file-remote-p. Reported by Jim Meyering.
1657
fa8e045a
MA
16582009-12-15 Michael Albinus <michael.albinus@gmx.de>
1659
1660 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1661 avoid compiler warnings. (Bug #5217)
fa8e045a 1662
a63dba42
KH
16632009-12-14 Kenichi Handa <handa@m17n.org>
1664
1665 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1666 in 8-bit encoding.
1667
5ce6e4f4 16682009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1669
1670 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1671 tooltip windows.
1672
223e5fc6
JD
16732009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1674
36acb2a7
JD
1675 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1676 Xatom_net_window_type.
1677
1678 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1679 Xatom_net_window_type.
1680
b8f00677
JD
1681 * xterm.c (my_log_handler): New function.
1682 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1683 so we can filter out buggy messages. (Bug #5120).
b8f00677 1684
e5f0bc9a
JD
1685 * xterm.c (xg_scroll_callback): Parameter list changed,
1686 use parameter GtkScrollType to determine scroll/line/page.
1687 Only allow dragging if a button < 4 is grabbed (bug #5177).
1688 (xg_end_scroll_callback): New function.
1689 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1690 xg_create_scroll_bar.
1691
1692 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1693 (scroll_end_callback): Remove.
1694 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1695 button-release-event. Replace value-changed event with change-value,
1696 bug #5177,
1697 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1698 bug #5177.
1699
1700 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1701 (xg_create_scroll_bar): Add GCallback end_callback.
1702
223e5fc6
JD
1703 * xftfont.c (QClcdfilter): New variable.
1704 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1705 (syms_of_xftfont): Initialize QClcdfilter.
1706
3c055b77
JD
17072009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1708
1709 * xsettings.c (struct xsettings): Add member seen.
1710 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1711 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1712 (apply_xft_settings): Only update Xft settings with what member seen
1713 indicates as new.
1714
05fe33ff
EZ
17152009-12-12 Eli Zaretskii <eliz@gnu.org>
1716
1717 * dispextern.h (struct text_pos): Use EMACS_INT;
1718 (struct glyph): Use EMACS_INT for charpos.
1719 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1720 region_beg_charpos, region_end_charpos,
1721 redisplay_end_trigger_charpos, and also for
1722 iterator_stack_entry.end_charpos and
1723 iterator_stack_entry.stop_charpos.
1724
e8d7886a
JD
17252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1726
5ce6e4f4 1727 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1728 (xg_create_scroll_bar): Call scroll_end_callback on button release
1729 event (bug #5177).
1730 (xg_event_is_for_scrollbar): != replaced with ==.
1731
d0db2ec8
KH
17322009-12-12 Kenichi Handa <handa@m17n.org>
1733
1734 * ftfont.c (struct ftfont_info): New member matrix.
1735 (ftfont_open): Setup xftfont_info->matrix.
1736 (MFLTFontFT): New member matrix.
1737 (FLOOR, CEIL, ROUND): New macros.
1738 (ftfont_get_metrics): Handle matrix transformation.
1739 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1740
1741 * xftfont.c (struct xftfont_info): New member matrix.
1742 (xftfont_open): Setup xftfont_info->matrix.
1743
17442009-12-10 Kenichi Handa <handa@m17n.org>
1745
1746 * xdisp.c (append_space_for_newline): Consider face-remapping.
1747
2cc7b62f
AS
17482009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1749
b87dd913
AS
1750 * xsettings.c: Include "keyboard.h".
1751
eba5eb94
AS
1752 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1753
2cc7b62f
AS
1754 Fix implicit function declarations.
1755 * cmds.c: Include "frame.h".
1756 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1757 * frame.h: Move declaration of delete_frame outside of
1758 HAVE_WINDOW_SYSTEM.
1759
a4ef73c8
CY
17602009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1761
1762 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1763
1764 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1765 GTK builds.
1766
944a300c
AS
17672009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1768
1769 * unexelf.c (unexec): Don't search for .data twice.
1770
022eef62
CY
17712009-12-05 Chong Yidong <cyd@stupidchicken.com>
1772
426ac949
CY
1773 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1774 if push failed.
1775 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1776 of push_display_prop (Bug#5000).
1777
022eef62
CY
1778 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1779 value of font_list_entities (Bug#5085).
1780
be95bee9
JB
17812009-12-04 Juanma Barranquero <lekktu@gmail.com>
1782
1783 Fix `string-to-number' to deal consistently with integers and floats.
1784 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1785 trailing characters, not just whitespace.
1786 (read1): Pass new arg 0 to keep old behavior.
1787 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1788 trailing chars, as it is already done for integers. Doc fixes.
1789 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1790
24c2d7ce
EZ
17912009-12-04 Eli Zaretskii <eliz@gnu.org>
1792
0b5397c2
SM
1793 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1794 Delete unused enumeration value.
24c2d7ce 1795
7e694795
EZ
17962009-12-03 Eli Zaretskii <eliz@gnu.org>
1797
1798 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1799
84b31826
SM
18002009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1801
1802 * process.c (Fmake_network_process): Fix up the tests for
1803 "connectionless socket", so they DTRT for seqpacket sockets as well.
1804
f00c449b
SM
18052009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1806
1807 * process.c (Qseqpacket): New symbol.
1808 (HAVE_SEQPACKET): New macro.
1809 (Fmake_network_process): Accept new :type `seqpacket'.
1810 (init_process): Add `seqpacket' feature when applicable.
1811 (syms_of_process): Initialize Qseqpacket.
1812
8096a0ff
YM
18132009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1814
1815 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1816 if entity is Qnil.
1817
3e0de07f
SM
18182009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1819
1820 * print.c (print_preprocess): Preprocess the key_and_value table of
1821 hashtables, even tho they're "hidden" (bug#5082).
1822
abeafb2a
JD
18232009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1824
1825 * frame.c (frame_make_pointer_invisible)
1826 (frame_make_pointer_visible): Declare f before statements.
1827
4bf47195
EZ
18282009-11-28 Eli Zaretskii <eliz@gnu.org>
1829
1830 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1831 omitted dependencies on lisp.h.
1832
c525b3f2
JD
18332009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1834
ece2d4ed
JD
1835 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1836 is NULL.
1837
1838 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1839
1840 * frame.c (frame_make_pointer_invisible)
3e0de07f 1841 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1842 frame.
1843
c525b3f2
JD
1844 * search.c (simple_search): Remove warning by making *p const.
1845
2f00e299
DN
18462009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1847
1848 * xdisp.c (power_letter): Remove duplicate const.
1849
084b049b
JD
18502009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1851
a1fadc6f
JD
1852 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1853
5ce6e4f4 1854 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1855 defaults (bug #5025).
1856
28259cac
SM
18572009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1858
1859 * insdel.c (adjust_markers_for_delete): Move it in the
1860 right direction! (bug#4803)
1861
e8e14166
YM
18622009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1863
1864 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1865
1866 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1867
86677b58
GM
18682009-11-24 Glenn Morris <rgm@gnu.org>
1869
1870 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1871
581e51e8
JD
18722009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1873
cfc86c7a
JD
1874 * Makefile.in: Must create deps for ecrt0.o in its rule.
1875
581e51e8
JD
1876 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1877 because that is what Gtk+ font dialog understands.
1878
1879 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1880 of Fcopy_sequence.
1881 (font_open_by_name): Put name given into QCname for font-object returned.
1882
1883 * frame.c (x_set_font): Save original font name as frame parameter
1884 font-parameter.
1885
1886 * xsettings.c (set_default_xft_settings): New function.
1887 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1888 is found.
1889
8b264ecb
AS
18902009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1891
1892 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1893 searching backwards through multibyte buffer.
1894
872870b2
JD
18952009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1896
1897 * xterm.c: #include xgselect.h.
1898 (x_initialize): Call xgselect_initialize.
1899
1900 * xsettings.c (something_changedCB): C++ comments => C comments.
1901 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1902 does that now.
1903
1904 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1905 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1906 (scroll_bar_button_cb): Remove.
5ce6e4f4 1907 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1908 event.
1909 (xg_create_scroll_bar): Don't bind button-press-event and
1910 button-release-event.
1911
1912 * process.c: Include xgselect.h if defined (USE_GTK) ||
1913 defined (HAVE_GCONF).
1914 (wait_reading_process_output): Call xg_select for the same condition.
1915
1916 * xgselect.c (xg_select): New function to better integrate with
1917 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1918
1919 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1920
1921 * Makefile.in (XOBJ): Add xgselect.o.
1922
62a6e103
AS
19232009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1924
0b5397c2
SM
1925 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1926 Remove ignored second argument. All callers changed.
62a6e103
AS
1927 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1928 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1929 * xdisp.c (string_char_and_length): Likewise.
1930
b0ca0f33
DN
19312009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1932
1933 * xterm.c (x_new_font):
1934 * print.c (print_object):
1935 * cmds.c (Fself_insert_command): Move declarations before statements.
1936
dd5a6279
CY
19372009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1938
1939 * s/cygwin.h: Remove unneeded linker flags.
1940
4a8e097d
JD
19412009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1942
0d1d0d26
JD
1943 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1944
1945 * xsettings.h: Declare xsettings_get_system_font.
1946
1947 * xsettings.c (xsettings_get_system_font): New function.
1948 (init_gconf): No use initiating gconf unless we have Xft also.
1949 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1950 HAVE_GCONF.
1951
4a8e097d
JD
1952 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1953 add a blank entry so it doesn't collapse into nothing.
1954
8ab1650e
SM
19552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1956
1957 * lread.c (Funintern): Comment out last change.
1958
82c602f0
RS
19592009-11-19 Richard Stallman <rms@gnu.org>
1960
1961 * lread.c (Funintern): Error if symbol is t or nil.
1962
87e32266
SM
19632009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1964
1965 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1966 representation of Lisp integers.
1967 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1968
1b9ac145
AS
19692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1970
1971 * lisp.h: Remove declaration of Ffont_get_system_font.
1972 * xfns.c: Move include of "xsettings.h".
1973 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1974
dfb3c4c6
JD
19752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1976
87e32266
SM
1977 * xsettings.c (something_changedCB, Ffont_get_system_font):
1978 Check use_system_font.
dfb3c4c6
JD
1979 (syms_of_xsettings): DEFVAR font-use-system-font.
1980
9370c1d8
AS
19812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1982
25fe851a
AS
1983 * xfns.c (x_default_font_parameter): Remove dead assignment.
1984
9370c1d8
AS
1985 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1986
637fa988
JD
19872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1988
87e32266 1989 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1990 not have FC_LCD_*. #define them if not there.
a6eb20d8 1991
87e32266 1992 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1993
637fa988
JD
1994 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1995
1996 * xterm.c (handle_one_xevent): Call xft_settings_event for
1997 ClientMessage, PropertyNotify and DestroyNotify.
1998 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1999 Call xsettings_initialize.
2000
2001 * xftfont.c (xftfont_fix_match): New function.
2002 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2003 Call xftfont_fix_match after XftFontMatch.
2004
2005 * xfont.c (xfont_driver): Initialize all members.
2006
87e32266
SM
2007 * xfns.c (x_default_font_parameter):
2008 Try font from Ffont_get_system_font.
637fa988
JD
2009 Do not get font from x_default_parameter if we got one from
2010 Ffont_get_system_font.
87e32266 2011 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2012
2013 * w32font.c (w32font_driver): Initialize all members.
2014
2015 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2016
2017 * lisp.h: Declare syms_of_xsettings.
2018
87e32266
SM
2019 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2020 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2021
2022 * ftfont.c (ftfont_filter_properties): New function.
2023
2024 * frame.c (x_set_font): Remove unused variable lval.
2025
87e32266 2026 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2027
2028 * font.c (font_put_extra): Don't return if val is nil, it means
2029 boolean option is off.
2030 (font_parse_fcname): Collect all extra properties in extra_props
2031 and call filter_properties for all drivers with extra_props and
2032 font as parameter.
87e32266
SM
2033 (font_open_entity): Do not use cache, it does not pick up new
2034 fontconfig settings like hinting.
637fa988
JD
2035 (font_load_for_lface): If spec had a name in it, store it in entity.
2036
2037 * emacs.c (main): Call syms_of_xsettings
2038
2039 * config.in: HAVE_GCONF is new.
2040
2041 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2042 xsettings.o is new.
2043
5a942932
KH
20442009-11-17 Kenichi Handa <handa@m17n.org>
2045
2046 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2047 back to the default font in case that no suitable font is found.
2048
b7c7a4d1
SM
20492009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2050
2051 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2052 Suggested by Chad Brown <yandros@mit.edu>.
2053 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2054
072f1e39
JD
20552009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2056
2057 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2058
5d1e70a2
AS
20592009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2060
87e32266 2061 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2062
a53cfbe5
JD
20632009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2064
473a99b7
JD
2065 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2066 has a parent.
2067
a53cfbe5 2068 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2069 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2070
2071 * config.in: Generated (AUTO_DEPEND).
2072
f04bb9b2
MA
20732009-11-13 Michael Albinus <michael.albinus@gmx.de>
2074
b7c7a4d1 2075 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2076 Vdbus_registered_functions_table, because it contains also
2077 properties. Fix docstring.
b7c7a4d1 2078 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2079
8f11f7ec
SM
20802009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2081
2082 * alloc.c (mark_object): Don't reprocess marked strings.
2083 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2084 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2085
8a605fe8
KH
20862009-11-13 Kenichi Handa <handa@m17n.org>
2087
8f11f7ec 2088 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2089 semantics of Vword_combining_categories.
2090 (Vword_combining_categories): Describe the slight change of the
2091 semantics.
2092
241c4680
EZ
20932009-11-13 Eli Zaretskii <eliz@gnu.org>
2094
2095 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2096
2097 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2098
5d58e44c
SM
20992009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2100
2101 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2102
5e13f9d3
JB
21032009-11-12 Juanma Barranquero <lekktu@gmail.com>
2104
2105 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2106
cf54c754
DR
21072009-11-11 David Reitter <david.reitter@gmail.com>
2108
2109 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2110 variables to fix 2009-11-09 change.
2111
a4ada374
DN
21122009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2113
91433552
DN
2114 * process.c (ifflag_def): Make flag_sym constant.
2115 (Fnetwork_interface_info): Use a constant pointer.
2116 (ifflag_table):
2117 * xfns.c (cursor_bits):
2118 * xdisp.c (power_letter):
2119 * termcap.c (speeds, esctab):
2120 * sysdep.c (baud_convert):
2121 * keyboard.c (lispy_accent_codes, modifier_names):
2122 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2123 (jpeg_format, tiff_format, gif_format, svg_format)
2124 (interlace_start, interlace_increment, gs_format):
2125 * gtkutil.c (separator_names):
2126 * fringe.c (swap_nibble):
2127 * fns.c (base64_value_to_char, base64_char_to_value):
2128 * fileio.c (make_temp_name_tbl):
2129 * coding.c (suffixes): Make constant.
2130
f4265f6c
DN
2131 * frame.c (make_initial_frame):
2132 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2133 build_string.
2134 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2135
04420943
DN
2136 * s/freebsd.h:
2137 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2138
0a5d24ae
DN
2139 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2140 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2141
a4ada374
DN
2142 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2143 * xterm.c (syms_of_xterm):
2144 * xfaces.c (syms_of_xfaces):
2145 * xdisp.c (syms_of_xdisp):
2146 * lread.c (syms_of_lread):
2147 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2148 build_string.
91433552 2149
a4ada374
DN
2150 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2151
af98fc7f
SM
21522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2153
8ab1650e 2154 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2155
e90292a9
JD
21562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2157
2158 * keyboard.h: Declare timer_check.
2159
2160 * keyboard.c (timer_check_2): New function that does what the old
2161 timer_check did.
2162 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2163 returned, i.e. don't return -1 with timers pending.
2164
2165 * process.c: Remove extern declaration of timer_check.
2166
2167 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2168 even if timer_check returned -1.
2169
af98fc7f
SM
2170 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2171 xg_dialog_data.
e90292a9
JD
2172 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2173 the event loop.
2174 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2175 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2176 Destroy the dialog after xg_dialog_run.
2177
045b83c0
SM
21782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2179
2180 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2181
1fb99a3a
JD
21822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2183
2184 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2185
04e452cb
JB
21862009-11-09 Juanma Barranquero <lekktu@gmail.com>
2187
2188 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2189
ef7417fd
SM
21902009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2193 w32menu.c, and nsmenu.m.
2194 Simplify the obsolete case where position is nil.
2195 (cleanup_popup_menu): New function, moved from nsmenu.m.
2196 (struct skp): Remove slot `notreal'.
2197 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2198 adjust callers.
2199 (single_menu_item): Adjust call to parse_menu_item.
2200 (syms_of_menu): Defsubr x-popup-menu.
2201 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2202 (keymap_panes): Don't export any more.
2203 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2204 (xmenu_show): Declare.
2205 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2206 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2207 * keyboard.h (parse_menu_item): Update declaration.
2208 * xmenu.c (Fx_popup_menu): Remove.
2209 (syms_of_xmenu): Don't defsubr x-popup-menu.
2210 * w32menu.c (Fx_popup_menu): Remove.
2211 (syms_of_w32menu): Don't defsubr x-popup-menu.
2212 * nsmenu.m (cleanup_popup_menu): Remove.
2213 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2214 moved to menu.c's Fx_popup_menu.
2215 (Fx_popup_menu): Remove.
2216 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2217 menu_items (it's done in menu.c already).
2218
424d6179
SM
22192009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2220
2221 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2222 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2223
c0df13a6 22242009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2225
2226 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2227 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2228 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2229 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2230
2de9f71c
SM
22312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2232
2233 Let integers use up 2 tags to give them one extra bit and thus double
2234 their range.
2235 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2236 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2237 New macros.
2238 (enum Lisp_Type): Use them. Give explicit values.
2239 (Lisp_Type_Limit): Remove.
2240 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2241 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2242 Pay attention to USE_2_TAGS_FOR_INTS.
2243 (INTEGERP): Use LISP_INT_TAG_P.
2244 * fns.c (internal_equal): Simplify the default case.
2245 (sxhash): Use case_Lisp_Int.
2246 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2247 any more.
2248 (Ftype_of): Use case_Lisp_Int.
2249 (store_symval_forwarding): Take into account the fact that Ints can
2250 now have more than one tag.
2251 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2252 buffer_slot_type_mismatch):
2253 * xfaces.c (face_attr_equal_p):
2254 * print.c (print_object):
2255 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2256 Use case_Lisp_Int.
2257
323637a2
EZ
22582009-11-06 Eli Zaretskii <eliz@gnu.org>
2259
7ac65b38
EZ
2260 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2261
323637a2
EZ
2262 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2263 warning.
2264
e511451f
JD
22652009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2266
2267 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2268
2269 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2270
2271 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2272 ButtonPressRelease and MotionNotify (bug#4870).
2273
5e2327cf
DN
22742009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2275
5adc433e
DN
2276 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2277
d67b4f80
DN
2278 * xterm.c (syms_of_xterm):
2279 * xselect.c (syms_of_xselect):
2280 * xmenu.c (syms_of_xmenu):
2281 * xfns.c (syms_of_xfns):
2282 * xfaces.c (syms_of_xfaces):
2283 * xdisp.c (syms_of_xdisp):
2284 * window.c (syms_of_window):
2285 * w32fns.c (syms_of_w32fns):
2286 * undo.c (syms_of_undo):
2287 * textprop.c (syms_of_textprop):
2288 * terminal.c (syms_of_terminal):
2289 * syntax.c (syms_of_syntax):
2290 * sound.c (syms_of_sound):
2291 * search.c (syms_of_search):
2292 * print.c (syms_of_print):
2293 * minibuf.c (syms_of_minibuf):
2294 * macros.c (syms_of_macros):
2295 * keymap.c (syms_of_keymap, initial_define_key)
2296 (initial_define_lispy_key):
2297 * keyboard.c (syms_of_keyboard):
2298 * insdel.c (syms_of_insdel):
2299 * image.c (syms_of_image):
2300 * fringe.c (syms_of_fringe):
2301 * frame.c (syms_of_frame):
2302 * fontset.c (syms_of_fontset):
2303 * fns.c (syms_of_fns):
2304 * fns.c (syms_of_fns):
2305 * fileio.c (syms_of_fileio):
2306 * fileio.c (syms_of_fileio):
2307 * eval.c (syms_of_eval):
2308 * doc.c (syms_of_doc):
2309 * dispnew.c (syms_of_display):
2310 * dired.c (syms_of_dired):
2311 * dbusbind.c (syms_of_dbusbind):
2312 * data.c (syms_of_data):
2313 * composite.c (syms_of_composite):
2314 * coding.c (syms_of_coding):
2315 * cmds.c (syms_of_cmds):
2316 * charset.c (define_charset_internal, syms_of_character):
2317 * ccl.c (syms_of_ccl):
2318 * category.c (syms_of_category, init_category_once):
2319 * casetab.c (syms_of_casetab):
2320 * casefiddle.c (syms_of_casefiddle):
2321 * callint.c (syms_of_callint):
2322 * bytecode.c (syms_of_bytecode):
2323 * buffer.c (keys_of_buffer, syms_of_buffer):
2324 * alloc.c (syms_of_alloc):
2325 * process.c (syms_of_process, init_process):
2326 * lread.c (syms_of_lread, init_obarray):
2327 * font.c (build_style_table):
2328 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2329 intern_c_string, calls to make_pure_string with
2330 make_pure_c_string. Use pure_cons instead of Fcons.
2331
5e2327cf
DN
2332 * process.c (socket_options): Make it const.
2333 (set_socket_option, init_process): Use a const pointer.
2334
2335 * lread.c (intern_c_string): New function.
2336 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2337 (defvar_int): Uset it. Make the name const char*.
2338
2339 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2340 (defvar_int): Update prototypes.
2341 (DEFUN, EXFUN): Support for prototypes is now required.
2342 (intern_c_string): New prototype.
2343 (struct Lisp_Subr): Make symbol_name constant.
2344
2345 * font.c (struct table_entry): Remove unused member. Make NAMES
2346 constant.
2347 (weight_table, slant_table, width_table): Make constant.
2348
2349 * emacs.c (struct standard_args): Make name and longname constant.
2350
2351 * character.h (DEFSYM): Use intern_c_string.
2352
a56eaaef
DN
23532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2354
2355 * alloc.c (make_pure_c_string): New function.
2356
2357 * eval.c (Fautoload): Purecopy all arguments.
2358
f6a07420
KH
23592009-11-05 Kenichi Handa <handa@m17n.org>
2360
2361 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2362 the buffer in case of replace.
2363
5d28d4b1
DN
23642009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2365
2366 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2367
b349d111
SM
23682009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2369
d528b1ce
SM
2370 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2371 when applicable (bug#4851).
2372
b349d111
SM
2373 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2374 (P_): Support for prototypes is now required.
2375
c38eb027
CY
23762009-10-31 Chong Yidong <cyd@stupidchicken.com>
2377
2378 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2379 (Bug#4827).
2380
0405f8d9
EZ
23812009-10-30 Eli Zaretskii <eliz@gnu.org>
2382
d528b1ce 2383 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2384
ca0a881a
DN
23852009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2386
2387 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2388
d528b1ce
SM
2389 * lread.c (Fload): Purecopy the file name when building
2390 Vpreloaded_file_list.
ca0a881a 2391
47e0e0e4
JR
23922009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2393
2394 * w32fns.c (syms_of_w32fns): Change default value of
2395 w32-scroll-lock-modifier to nil. (Bug#2827)
2396
057bce6f
JB
23972009-10-26 Juanma Barranquero <lekktu@gmail.com>
2398
782a943e 2399 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2400
242bc74c
AS
24012009-10-26 Andreas Schwab <schwab@redhat.com>
2402
2403 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2404
522d013a
JB
24052009-10-26 Juanma Barranquero <lekktu@gmail.com>
2406
2407 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2408 For delta < 0, skip check that only makes sense when the mini-window
2409 is going to be enlarged. (Bug#4534)
2410
18060980
CY
24112009-10-25 Chong Yidong <cyd@stupidchicken.com>
2412
2413 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2414 string in menu maps (Bug#4471).
2415
fec8f0fe
CY
24162009-10-24 Chong Yidong <cyd@stupidchicken.com>
2417
2418 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2419 FRAME_NS_VIEW on terminal frames (Bug#4765).
2420
10d66ec0
AS
24212009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2422
1cae01f7
AS
2423 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2424 DBUS_TYPE_UINTnn separately to get proper sign extension.
2425
58a12889
AS
2426 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2427 can properly handle unsigned types.
d528b1ce 2428 (make_uid, make_gid): Remove.
58a12889 2429
987c9327
AS
2430 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2431 types again.
2432
522d013a 2433 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2434 (system_process_attributes): Likewise.
2435
905a9ed3
DN
24362009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2437
2438 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2439
2440 * eval.c (Fautoload): Purecopy the filename. Simplify.
2441
2442 * category.c (Fdefine_category): Purecopy docstring.
2443
a599b3e8
AS
24442009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2445
7b792fc9
AS
2446 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2447
a599b3e8
AS
2448 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2449
b35ac83e
CY
24502009-10-23 Chong Yidong <cyd@stupidchicken.com>
2451
2452 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2453 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2454 (Bug#4775).
2455
e8903e00
SM
24562009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2457
2458 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2459 (init_fileio_once):
2460 * lisp.h (init_fileio_once): Remove.
2461 * emacs.c (main): Don't call init_fileio_once.
2462
8f43cbf3
DN
24632009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2464
2465 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2466
26898943
AS
24672009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2468
2469 * doprnt.c (doprnt): Fix overflow check.
2470
5c646d5a
JD
24712009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2472
3132a7ea
JD
2473 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2474
5c646d5a
JD
2475 * xterm.h (x_wait_for_event): Declare it.
2476
2477 * xterm.c (pending_event_wait): New variable.
2478 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2479 see pending_event_wait.eventtype.
2480 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2481 (x_new_font): Call change_frame_size with new rows/columns before we
2482 try to resize the frame.
5c646d5a 2483 (x_wait_for_event): New function.
d528b1ce
SM
2484 (x_set_window_size_1): Don't change gravity unless change_gravity
2485 is set.
5c646d5a
JD
2486 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2487 don't change frame size, instead wait for the ConfigureNotify.
2488 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2489 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2490 (x_initialize): Initialize pending_event_wait.
2491
2492 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2493 size.
2494
2495 * widget.c (EmacsFrameSetValues): Add comment.
2496 (EmacsFrameSetCharSize): Just call x_set_window_size.
2497
2498 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2499 x_wait_for_event.
d528b1ce 2500 (flush_and_sync): Remove again.
5c646d5a
JD
2501 (xg_get_font_name): Suggest monospace if no previous font is known.
2502
e9c1637d
SM
25032009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2504
2505 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2506 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2507
5a72cccb
YM
25082009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2509
2510 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2511 processing pending events when event is filtered for input method.
ab04798f 2512 (Bug#3681)
5a72cccb 2513
2629aa37
JB
25142009-10-20 Juanma Barranquero <lekktu@gmail.com>
2515
2516 * fns.c: Add #endif accidentally removed in previous change.
2517
c3417a74
DN
25182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2519
2520 * fns.c: Remove code for unsupported system: MAC_OS.
2521 * image.c: Likewise. Include setjmp.h.
2522
9685cef2
JD
25232009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2524
2525 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2526 pixel -1 (bug #4742).
2527
d7306fe6
DN
25282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2529
019d2c4c
DN
2530 * process.c (create_pty): Remove conditionals for no longer
2531 supported systems: UNIPLUS and RTU.
2532
ee6bacd4
DN
2533 * xterm.c:
2534 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2535
d7306fe6
DN
2536 * alloc.c: Do not define struct catchtag.
2537 * eval.c: Move struct catchtag definition ...
2538 * lisp.h: ... here.
2539
2540 * image.c: Move png.h #include earlier to avoid warnings.
2541
2542 * xterm.c:
2543 * xsmfns.c:
2544 * xselect.c:
2545 * xrdb.c:
2546 * xmenu.c:
2547 * xftfont.c:
2548 * xfont.c:
2549 * xfns.c:
2550 * xfaces.c:
2551 * xdisp.c:
2552 * window.c:
2553 * widget.c:
2554 * w32xfns.c:
2555 * w32uniscribe.c:
2556 * w32term.c:
2557 * w32select.c:
2558 * w32reg.c:
2559 * w32proc.c:
2560 * w32menu.c:
2561 * w32inevt.c:
2562 * w32heap.c:
2563 * w32font.c:
2564 * w32fns.c:
2565 * w32console.c:
2566 * w32.c:
2567 * w16select.c:
2568 * vm-limit.c:
2569 * unexsol.c:
2570 * unexec.c:
2571 * unexcw.c:
2572 * unexaix.c:
2573 * undo.c:
2574 * tparam.c:
2575 * textprop.c:
2576 * terminfo.c:
2577 * terminal.c:
2578 * termcap.c:
2579 * term.c:
2580 * syntax.c:
2581 * sound.c:
2582 * sheap.c:
2583 * search.c:
2584 * scroll.c:
2585 * region-cache.c:
2586 * regex.c:
2587 * ralloc.c:
2588 * process.c:
2589 * print.c:
b024548b
DN
2590 * nsterm.m:
2591 * nsselect.m:
2592 * nsmenu.m:
2593 * nsimage.m:
2594 * nsfont.m:
2595 * nsfns.m:
d7306fe6
DN
2596 * msdos.c:
2597 * minibuf.c:
2598 * menu.c:
2599 * marker.c:
2600 * macros.c:
2601 * keymap.c:
2602 * keyboard.c:
2603 * intervals.c:
2604 * insdel.c:
2605 * indent.c:
2606 * gtkutil.c:
2607 * ftxfont.c:
2608 * ftfont.c:
2609 * fringe.c:
2610 * frame.c:
2611 * fontset.c:
2612 * font.c:
2613 * fns.c:
2614 * floatfns.c:
2615 * filelock.c:
2616 * fileio.c:
2617 * emacs.c:
2618 * editfns.c:
2619 * dosfns.c:
2620 * doprnt.c:
2621 * doc.c:
2622 * dispnew.c:
2623 * dired.c:
2624 * dbusbind.c:
2625 * data.c:
2626 * composite.c:
2627 * coding.c:
2628 * cmds.c:
2629 * cm.c:
2630 * chartab.c:
2631 * charset.c:
2632 * character.c:
2633 * ccl.c:
2634 * category.c:
2635 * casetab.c:
2636 * casefiddle.c:
2637 * callproc.c:
2638 * callint.c:
2639 * bytecode.c:
2640 * buffer.c:
2641 * atimer.c: Include setjmp.h. (Bug#4643)
2642
fd5f21e6
SM
26432009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2644
4c0354d7
SM
2645 Remove leftover table unibyte_to_multibyte_table.
2646 * character.c (unibyte_to_multibyte_table): Remove.
2647 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2648 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2649 * character.h (UNIBYTE_TO_CHAR): New macro.
2650 (MAKE_CHAR_MULTIBYTE): Use it.
2651 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2652 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2653 (message_dolog, set_message_1):
2654 * search.c (Freplace_match):
2655 * editfns.c (Fcompare_buffer_substrings):
2656 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2657 (concat):
2658 * insdel.c (copy_text, count_size_as_multibyte):
2659 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2660 * term.c (produce_glyphs):
2661 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2662 * regex.c (RE_CHAR_TO_MULTIBYTE):
2663 * cmds.c (internal_self_insert):
2664 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2665
fd5f21e6
SM
2666 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2667
4418646e
DN
26682009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2669
2670 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2671
35f5c1d2
JB
26722009-10-16 Juanma Barranquero <lekktu@gmail.com>
2673
2674 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2675
a0cd8f6b
AR
26762009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2677
2678 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2679 still needed under Tiger.
2680
2681 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2682
2683 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2684 __Apple__.
2685
2686 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2687
01a8d3fa
KH
26882009-10-15 Kenichi Handa <handa@m17n.org>
2689
2690 * print.c (print_object): Escape a symbol like "2E10" too.
2691
bf6c75c9 26922009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2693
2694 Cleanups and changes for 64-bit compile under Snow Leopard.
2695 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2696
2697 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2698
c5959062 2699 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2700 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2701 cast argument.
2702 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2703 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2704
2705 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2706
2707 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2708 where appropriate.
2709
2710 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2711 where appropriate.
6e4780c5
JB
2712 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2713 Use stringWithUTF8String.
bf6c75c9
AR
2714 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2715
6e4780c5
JB
2716 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2717 Add formal protocol mention to inheritance.
bf6c75c9
AR
2718 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2719
6e4780c5
JB
2720 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2721 Fix printf format.
bf6c75c9
AR
2722 (ns_query_color): Use CGFloat where appropriate.
2723 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2724 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2725 argument.
2726
3d87f118
AR
2727 * config.in (NS_HAVE_NSINTEGER): Drop.
2728
a95c8102
AR
2729 * dbusbind.c (dbus-method-return-internal)
2730 (dbus-method-error-internal): Use long format in printf, and cast
2731 argument.
2732
2733 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2734 in printf, and cast argument.
2735
6873acca 2736 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2737 cast argument.
2738
9ec6f100
GM
27392009-10-11 Glenn Morris <rgm@gnu.org>
2740
2741 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2742
5be883cd
JD
27432009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2744
2745 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2746 menu bar with a small width so it doesn't enlarge the frame.
2747
d7a39b51
JB
27482009-10-08 Juanma Barranquero <lekktu@gmail.com>
2749
2750 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2751
0c2b6f8e
GM
27522009-10-06 Glenn Morris <rgm@gnu.org>
2753
2754 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2755 SOME_MACHINE_LISP (this enters indirectly via DOC).
2756
e02131a2
EZ
27572009-10-05 Eli Zaretskii <eliz@gnu.org>
2758
2759 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2760
b4744254
EZ
27612009-10-04 Eli Zaretskii <eliz@gnu.org>
2762
2763 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2764 Doc fix.
2765
dbf64827
JB
27662009-10-03 Martin Rudalics <rudalics@gmx.at>
2767
2768 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2769
e9a0aef8
MA
27702009-10-02 Michael Albinus <michael.albinus@gmx.de>
2771
d528b1ce 2772 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2773 used anymore outside fileio.c.
2774
2775 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2776
64eb2b56
JB
27772009-10-01 Juanma Barranquero <lekktu@gmail.com>
2778
2779 * lisp.h (Qdelete_directory_internal):
2780 Declare, instead of Qdelete_directory.
2781
2782 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2783
9d28c33e
SM
27842009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2785
2786 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2787
9d8f3bd9
MA
27882009-10-01 Michael Albinus <michael.albinus@gmx.de>
2789
9d28c33e 2790 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2791 Fdelete_directory. It is not a command anymore. It has no file
2792 name handler.
2793
9694740b
SM
27942009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2795
2796 * xdisp.c (get_next_display_element): Use an enum in last change.
2797
748e162f
KH
27982009-09-28 Kenichi Handa <handa@m17n.org>
2799
9694740b 2800 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2801 unibyte_display_via_language_environment in handling
2802 Vnobreak_char_display.
2803
17efd58d
AR
28042009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2805
2806 * nsterm.h (ns_app_name): New extern variable.
2807
2808 * nsterm.m (ns_app_name): New variable.
2809 (ns_term_init): Set and use it.
2810 (ns_term_shutdown): Use it.
2811
2812 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2813 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2814
2815 * nsfns.m (ns_set_name_iconic, ns_set_name)
2816 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2817 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2818
9694740b
SM
2819 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2820 Remove double-casting in client_data comparison.
31c2d412 2821
3208cb35
YM
28222009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2823
2824 * keyboard.c (make_lispy_event): Remember last wheel direction.
2825 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2826
b7d552d6
GM
28272009-09-26 Glenn Morris <rgm@gnu.org>
2828
2829 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2830 internal.elc. Add term/pc-win.elc.
2831 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2832 term/x-win.elc.
2833 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2834 term/w32-win.elc.
2835 (NS_SUPPORT): New.
2836 (lisp): Add NS_SUPPORT.
2837 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2838
4ff670a8
DR
28392009-09-25 David Reitter <david.reitter@gmail.com>
2840
2841 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2842 on Mac OS X 10.6+ (bug#4513).
2843
feabfb6c
JB
28442009-09-24 Juanma Barranquero <lekktu@gmail.com>
2845
2846 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2847 some parts of Emacs code (like font selection) don't grok them.
2848 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2849
de59072a
AS
28502009-09-24 Andreas Schwab <schwab@redhat.com>
2851
2852 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2853
a489517b
JB
28542009-09-24 Juanma Barranquero <lekktu@gmail.com>
2855
2856 * dired.c (Fdirectory_files): Fix typo in docstring.
2857
0592970c
AR
28582009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2859
2860 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2861 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2862 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2863 under GNUstep.
2864 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2865
2866 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2867 glyph advancement.
2868
48e8a88b
AR
28692009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2870
2871 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2872 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2873
2874 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2875 deleted (bug #4492).
2876
e14f0a78
AR
2877 * nsfont.m (Vns_reg_to_script): New lisp variable.
2878 (syms_of_nsfont): Declare it.
2879 (ns_registry_to_script): New function.
2880 (ns_get_req_script): Call it.
2881 (ns_findfonts): Don't give up on non-unicode registry.
2882
2883 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2884
5b650faa
SM
28852009-09-20 Tom Tromey <tromey@redhat.com>
2886
2887 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2888 batch mode (bug#4228).
2889
a489517b 28902009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2891
2892 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2893 carefully. (Bug #4339)
0bae4e09 2894
fcfe06f3
CY
28952009-09-18 Chong Yidong <cyd@stupidchicken.com>
2896
d798ba87 2897 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2898
31642728
AR
28992009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2900
2901 * emacs.c (inhibit_x_resources): Update doc string for NS.
2902 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2903 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2904
2905 * nsterm.h (ns_no_defaults): Remove.
2906
2907 * nsterm.m (ns_no_defaults): Remove.
2908 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2909 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2910 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2911 don't update the NSWindow itself.
2912 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2913 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2914
2915 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2916 ns_use_qd_smoothing.
2917
2918 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2919 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2920 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2921 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2922
8686ac71
JB
29232009-09-17 Juanma Barranquero <lekktu@gmail.com>
2924
2925 * emacs.c (inhibit_x_resources): New variable.
2926 (main) [HAVE_NS]: Don't process --quick command line option.
2927 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2928
2929 * lisp.h (inhibit_x_resources): Declare it extern.
2930
2931 * w32reg.c (x_get_string_resource):
2932 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2933
e227ba05
EZ
29342009-09-17 Eli Zaretskii <eliz@gnu.org>
2935
362654a6
JB
2936 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2937 Add lisp/term/internal.elc.
e227ba05 2938
742d40e8
SM
29392009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2940
2941 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2942 (bug#4461).
2943
005bd5a2
DN
29442009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2945
2946 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2947
2948 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2949 (OBJECTS_MACHINE): Remove, unused.
2950
f9af9719
SM
29512009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2952
2953 * frame.c (x_get_resource_string): Remove unused.
2954
0307c7d2
JD
29552009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2956
2957 * xterm.c (x_new_font): Call change_frame_size before calling
2958 x_set_window_size, in case frame size won't change.
2959
2960 * frame.c (x_set_font): Remove dead code.
2961
428b13d6
SM
29622009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2963
2964 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2965
5766c380
SM
29662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2967
2968 * lread.c (Fload): Don't output a message after loading an obsolete
2969 package any more (done in Lisp now).
2970
2fd0161b
CY
29712009-09-12 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2974
bc5e75b6
SM
29752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2976
2977 * keymap.c (Fwhere_is_internal): Use nconc2.
2978
c31c985e
AM
29792009-09-11 Alan Mackenzie <acm@muc.de>
2980
2981 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2982 batch mode.
2983
78012bd2
AS
29842009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2985
2986 * xdisp.c (display_mode_element): Detect cycles.
2987
9d889332
SM
29882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2989
2990 * keymap.c (where_is_internal): Don't erroneously return nil right after
2991 filling the cache.
2992 (where_is_internal_1): Fix up typo.
2993
7ab5d780
GM
29942009-09-11 Glenn Morris <rgm@gnu.org>
2995
2996 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2997 share a common doc-string.
2998
5238a749
SM
29992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3000
66d77eda
SM
3001 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3002 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3003
5238a749
SM
3004 * keymap.c (QCadvertised_binding): New constant.
3005 (syms_of_keymap): Initialize it.
3006 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3007 if applicable.
3008
19f48442
SM
30092009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3010
50d4ba39
SM
3011 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3012 (parse_menu_item): Streamline since bindings are recomputed all the
3013 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3014 more and don't support lmenu's menu-alias any more either.
3015
a88a5372
SM
3016 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3017 (where_is_internal): Strip it down to only traverse the keymaps.
3018 Move the cache handling from Fwhere_is_internal to here.
3019 (Fwhere_is_internal): Move the handling of remapping and the choice of
3020 the best binding from where_is_internal to here.
3021 Unify the cached/noncached paths, so remapping is also handled
3022 correctly when the cache is used, and so the cache can be used to
3023 speed up remap-handling when applicable.
3024 Give preference to non-remapped bindings.
3025 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3026 non-remapped bindings.
3027 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3028 command remapping.
3029
19f48442
SM
3030 * xdisp.c (display_mode_element): Move list length limit from 50 to
3031 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3032
599498c3 30332009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3034
3035 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3036
f9b7b5ac
SM
30372009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3038
a53af587
JB
3039 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3040 (Bug#4334)
3041
f9b7b5ac
SM
3042 * keymap.c (where_is_internal): Filter out shadowed remappings.
3043 Assume that where_is_internal returns unshadowed bindings to simplify
3044 the code and get rid of the gotos. Use ASIZE.
3045
04f4b72d
JD
30462009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3047
4da146f2
JD
3048 * xterm.c (x_focus_changed): If we get a focusout and pointer
3049 is invisible, make it visible.
3050
04f4b72d
JD
3051 * xterm.h: Remove condition for declaration of
3052 x_*_window_to_frame.
3053
7cef7ce3
SM
30542009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3055
3056 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3057 initial terminal as well.
3058
a54fa5b7
JD
30592009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3060
3061 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3062 x_menubar_window_to_frame.
a54fa5b7 3063
50426a04 3064 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3065 (XTmouse_position): Do not return valid positions
3066 for clicks in the menubar and the toolbar for Gtk+.
3067
3068 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3069 if the widget for the event has the same top level as a frame,
3070 return the frame.
3071 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3072 internal windows, bug #4122.
3073 (x_non_menubar_window_to_frame): Remove.
3074
5a021dd0
GM
30752009-09-02 Glenn Morris <rgm@gnu.org>
3076
3077 * buffer.c (default-major-mode): Move most of the doc from here...
3078 (major-mode): ... to here.
3079
548fe2f3
NR
30802009-08-30 Nick Roberts <nickrob@snap.net.nz>
3081
3082 * process.c (wait_reading_process_output): Keep the descriptor
3083 when pty is used by a non-child process, e.g., in I/O buffer of
3084 GDB this allows inferior to be restarted.
3085
e0840eef
EZ
30862009-08-29 Eli Zaretskii <eliz@gnu.org>
3087
3088 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3089 both branches into one.
3090
82e98df4
SM
30912009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3092
3093 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3094 (main): Use enable-multibyte-characters rather than
3095 default-enable-multibyte-characters. Output a warning message when
3096 running a unibyte session.
3097
890617cb
YM
30982009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3099
3100 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3101 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3102 (copy_data_segment): Also copy __program_vars section.
3103 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3104 (dump_it) [LC_DYLD_INFO]: Use it.
3105
3106 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3107
e7adeadc
EZ
31082009-08-28 Eli Zaretskii <eliz@gnu.org>
3109
3110 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3111 $(SRC)/buildobj.h.
3112 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3113 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3114 $(SRC)/buildobj.h.
3115 (clean): Add buildobj.h.
3116
3ed8bbdc
TZ
31172009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3118
3119 * print.c (print_object): Set escapeflag to 1 when printing
3120 hashtable keys and values.
3121
155a6764
SM
31222009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3123
3124 * lread.c (read_integer): Use doubles (and potentially return a float
3125 number) as we do in string-to-number.
3126 (read1): Use strtol to read integers, signal errors on strtol's
3127 overflow and use floats if strtol's output is too large for
3128 Elisp integers.
3129
877610de
EZ
31302009-08-27 Eli Zaretskii <eliz@gnu.org>
3131
3132 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3133 (make-buildobj-SH): Fix last change.
3134 (SRC): Move to before where it's first used.
3135
ef73e7be
KH
31362009-08-27 Kenichi Handa <handa@m17n.org>
3137
550c8289
KH
3138 * process.c (send_process): Use encode_coding_object instead of
3139 encode_coding_string to perform eol-conversion even if the string
3140 is unibyte.
3141
60afa08d
KH
3142 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3143 character.
3144
ef73e7be 3145 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3146 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3147
7b3a82d7
DN
31482009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3149
5654bf63
DN
3150 * callproc.c (Fcall_process): Remove always true #if.
3151
7b3a82d7
DN
3152 * lisp.h: Replace #if 0 code for checking with text pointing to
3153 the --enable-checking configure flag.
3154
3155 * emacs.c (main): Mention the --enable-profiling configure flag
3156 instead of using CFLAGS.
3157
878bde49
KR
31582009-08-26 Ken Raeburn <raeburn@raeburn.org>
3159
3160 * Makefile.in (buildobj.h): New target.
3161 (doc.o): Depend on it.
3162 (temacs${EXEEXT}): Don't generate buildobj.lst.
3163 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3164 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3165 ($(BLD)/doc.$(O)): Depend on it.
3166 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3167 provided by Eli Zaretskii.)
3168 ($(TEMACS)): Don't generate buildobj.lst.
3169 * doc.c: Include buildobj.h.
3170 (buildobj): New static variable.
3171 (Fsnarf_documentation): Use it, instead of opening and reading
3172 buildobj.lst.
3173
1574224c
MA
31742009-08-25 Michael Albinus <michael.albinus@gmx.de>
3175
3176 * dbusbind.c (Fdbus_call_method)
3177 (Fdbus_call_method_asynchronously): Use English numeric format for
3178 timeout values in doc string.
3179
d9da2f45
KH
31802009-08-25 Kenichi Handa <handa@m17n.org>
3181
ef73e7be
KH
3182 * alloc.c (mark_char_table): New function.
3183 (mark_object): Use mark_char_table for a char-table.
3184
d9da2f45
KH
3185 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3186 (CHAR_TABLE_REF): Use it.
3187
c8edcc01
KR
31882009-08-23 Ken Raeburn <raeburn@raeburn.org>
3189
3190 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3191 before invoking the newly build emacs to check for load-path
3192 shadowing.
3193
7763401b
GM
31942009-08-22 Glenn Morris <rgm@gnu.org>
3195
3196 * Makefile.in (bootstrap_exe): New variable.
3197 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3198 Use ${bootstrap_exe}.
3199
729eadda
EZ
32002009-08-22 Eli Zaretskii <eliz@gnu.org>
3201
3202 * coding.h (encode_coding_string): Don't encode unibyte strings.
3203 (Bug#4047)
3204
eb4c6ace
MA
32052009-08-22 Michael Albinus <michael.albinus@gmx.de>
3206
3207 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3208
3209 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3210 intended as hotfix only.
3211 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3212
36e34d1b
AR
32132009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3214
3215 * nsterm.m (ns_get_color): Update documentation properly for last
3216 change, and clean up loose ends in the code left by it. Fix
3217 longstanding bug with 16-bit hex parsing, and add support for
3218 yet another X11 format (rgb:r/g/b) for compatibility.
3219 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3220 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3221
f983eb8a
SM
32222009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3223
3224 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3225
3f56d3c6
MA
32262009-08-20 Michael Albinus <michael.albinus@gmx.de>
3227
3228 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3229 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3230 (xd_initialize, xd_pending_messages): Check, whether
3231 $DBUS_SESSION_BUS_ADDRESS is set.
3232
fb641d68
YM
32332009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3234
3235 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3236
3237 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3238
cf59a374
GM
32392009-08-20 Glenn Morris <rgm@gnu.org>
3240
3241 * emacs.c (system-type): Doc fix.
3242
1373f3be
SM
32432009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3246 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3247
058ed861
MA
32482009-08-18 Michael Albinus <michael.albinus@gmx.de>
3249
1373f3be
SM
3250 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3251 New functions.
058ed861
MA
3252 (xd_initialize): Revert change from 2009-08-16.
3253
563a866e 32542009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3255
3256 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3257 font-group vector, return nil.
5fc05db0 3258
e42bdf01
CY
32592009-08-17 Chong Yidong <cyd@stupidchicken.com>
3260
3261 * process.c (status_notify): Don't perform redisplay.
3262 (Fdelete_process, list_processes_1, process_send_signal):
3263 Expliticly perform redisplay.
3264 (wait_reading_process_output): Always check process status, but
3265 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3266
4230ab74
KR
32672009-08-17 Ken Raeburn <raeburn@raeburn.org>
3268
1373f3be 3269 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3270 (XFLOAT_INIT): New macro for storing a float value.
3271 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3272 * fns.c (sxhash): Copy out the value of a float in order to
3273 examine its bytes.
3274 * dbusbind.c (xd_append_arg): Likewise.
3275
4230ab74
KR
3276 * emacs.c (main): Don't call syms_of_data twice.
3277
a0645cdd
MA
32782009-08-16 Michael Albinus <michael.albinus@gmx.de>
3279
3280 * dbusbind.c (xd_initialize): Add connection file descriptor to
3281 input_wait_mask, in order to let select() detect, whether a new
3282 message has been arrived.
ca4f31ea 3283 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3284
485db0ba
MA
32852009-08-15 Michael Albinus <michael.albinus@gmx.de>
3286
1373f3be
SM
3287 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3288 New functions.
485db0ba
MA
3289
3290 * lisp.h (xd_pending_messages): Declare.
3291
3292 * keyboard.c (readable_events): Call xd_pending_messages.
3293
b5b98ff4
CY
32942009-08-15 Chong Yidong <cyd@stupidchicken.com>
3295
1373f3be 3296 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3297
f8354c6e
CY
3298 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3299
b5b98ff4
CY
3300 * buffer.c (set_buffer_internal_1)
3301 (swap_out_buffer_local_variables): Check for unbound local
3302 variables (Bug#4138).
3303
8b9fc636
EZ
33042009-08-14 Eli Zaretskii <eliz@gnu.org>
3305
3306 * process.c (create_pty): Fix last change.
3307
ce959360
CY
33082009-08-13 Chong Yidong <cyd@stupidchicken.com>
3309
3310 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3311 (xbm_load_image): Caller changed.
64b807c9 3312 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3313
c7baf7e9
NR
33142009-08-13 Nick Roberts <nickrob@snap.net.nz>
3315
3316 * process.c (create_pty): New function.
3317 (Fstart_process): Use it to allow Emacs to just associate a pty
3318 with the buffer. See associated change in gdb-mi.el.
3319 (list_processes_1): Deal with no program name.
3320 (start_process_unwind): Use pid == -2 to mean no process.
3321
1ac9108a
SM
33222009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3323
3324 * cmds.c (nonundocount): New global variable.
3325 (keys_of_cmds): Initialize it.
3326 (Fself_insert_command): Use it to combine upto 20 sequential chars
3327 into a single undo entry, just like the Qself_insert_command code in
3328 keyboard.c does.
3329 Call frame_make_pointer_invisible, also like the Qself_insert_command
3330 code in keyboard.c does.
3331 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3332 than its own local replacement for it.
3333
e267324c
KR
33342009-08-10 Ken Raeburn <raeburn@raeburn.org>
3335
1ac9108a 3336 * fns.c (concat): Don't re-set string length to its current value.
77437343 3337
1ac9108a
SM
3338 * coding.h (decode_coding_string, encode_coding_string):
3339 Use SBYTES macro.
f0bed503 3340
1ac9108a 3341 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3342 (doprnt): Merge with doprnt1, discarding lispstrings code.
3343 * lisp.h (doprnt_lisp): Don't declare.
3344
416e006d
JL
33452009-08-07 Juri Linkov <juri@jurta.org>
3346
3347 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3348
6f7d5780
DN
33492009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3350
3351 * print.c (syms_of_print): Undo previous change.
3352
f19a0f5b
TZ
33532009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3354
3355 * lread.c (read1, syms_of_lread): Read hashtables back from the
3356 readable format.
3357
3358 * print.c (print_preprocess, print_object): Print hashtables fully
3359 and readably.
3360 (syms_of_print): Provide 'hashtable-print-readable.
3361
b9173dc2
AR
33622009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3363
3364 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3365 no family set.
3366 (nsfont_open): Handle case when entity has no family.
3367
1586503c
AR
33682009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3369
3370 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3371 element, not a list, for match case.
3372
087048cd
KH
33732009-07-28 Kenichi Handa <handa@m17n.org>
3374
3375 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3376 rigidly.
3377
3378 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3379 font_parse_xlfd. Check font properties more rigidly.
3380
780c2506
DN
33812009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3382
31fd7c5c
JB
3383 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3384 bsd-common.h.
780c2506 3385
a8c0cc18
KH
33862009-07-27 Kenichi Handa <handa@m17n.org>
3387
3388 * xfaces.c (face_with_height): Call font_clear_prop.
3389
4fbe2306
CY
33902009-07-26 Chong Yidong <cyd@stupidchicken.com>
3391
111d9af3
CY
3392 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3393
3394 * xterm.c (x_term_init): Use Qx.
3395
4fbe2306
CY
3396 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3397
1ac9108a 3398 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3399 (ns_get_color): Revert 2009-07-16 change.
3400
beb0b7f9
EZ
34012009-07-25 Eli Zaretskii <eliz@gnu.org>
3402
3403 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3404 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3405
2baf5e76
KR
34062009-07-25 Ken Raeburn <raeburn@raeburn.org>
3407
1ac9108a
SM
3408 * coding.h (decode_coding_string, encode_coding_string):
3409 Use SCHARS macro.
8890e5f5 3410
2baf5e76 3411 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3412 (load_depth): Delete.
2baf5e76
KR
3413 (Qload_in_progress): New variable.
3414 (load_unwind): Don't reference load_depth or load_in_progress.
3415 (Fload): Likewise; specbind Qload_in_progress instead.
3416 (init_lread): Don't initialize load_depth.
3417 (syms_of_lread): Initialize and protect Qload_in_progress.
3418
1395c6f5
AR
34192009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3420
3421 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3422
4e2f36cf
AR
34232009-07-23 Yavor Doganov <yavor@gnu.org>
3424
3425 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3426
5dd9a6f7
AR
34272009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3428
3429 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3430 Bugs 3792, 3720, 2402.
3431 (ns_lookup_indexed_color): Check for bad index.
3432 (ns_index_color): Init unused slot to 0.
3433 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3434 Bug 3714, possibly 3082.
5dd9a6f7 3435
c902b920
JR
34362009-07-22 Jason Rumney <jasonr@gnu.org>
3437
1ac9108a
SM
3438 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3439 Position IME window at cursor (Bug#2570).
c902b920
JR
3440 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3441 (globals_of_w32fns): Dynamically load functions required above.
3442
3443 * w32term.c (w32_draw_window_cursor): Send message to reposition
3444 any IME window.
3445
090101cf
CY
34462009-07-21 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * fileio.c: Revert 2009-07-16 changes.
3449 (Vauto_save_include_big_deletions): New variable.
3450 (Fdo_auto_save): Disable auto-save only if
3451 auto-save-include-big-deletions is nil.
3452
e6583e3d
CY
34532009-07-21 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3456 the overflowed pixels into account (Bug#3879).
3457
ece435a5
KR
34582009-07-21 Ken Raeburn <raeburn@raeburn.org>
3459
3460 * lread.c (load_depth): New variable.
3461 (Fload, load_unwind, init_lread): Set it to the load recursion
3462 depth; set load_in_progress as a simple boolean based on the
3463 current load_depth. (Bug#3892)
3464
40b2d973
AR
34652009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3466
3467 * nsfont.m (ns_has_attribute): Remove.
3468 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3469
10be7e0d
JL
34702009-07-18 Juri Linkov <juri@jurta.org>
3471
3472 * process.c (Fset_process_query_on_exit_flag): Mention killing
3473 a buffer in docstring.
3474
fa055055
KH
34752009-07-17 Kenichi Handa <handa@m17n.org>
3476
3477 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3478
042f7b69
YM
34792009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3480
3481 * nsfns.m (Fns_set_alpha): Remove function.
3482 (syms_of_nsfns): Don't defsubr it.
3483
3484 * nsterm.m (ns_get_color): Remove incompatible color formats.
3485 (ns_color_to_lisp): Generate #rrggbb color format string.
3486
4be941e3
RS
34872009-07-16 Richard Stallman <rms@gnu.org>
3488
3489 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3490 (Fset_buffer_auto_saved): Handle save_length = -2.
3491
4e6b227d
CY
34922009-07-16 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * xterm.c (Qx_gtk_map_stock): New var.
3495
3496 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3497 of calling intern each time.
3498
a1856973
YM
34992009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3500
3501 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3502 does tiling.
3503
3504 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3505
497e54d8
KH
35062009-07-14 Kenichi Handa <handa@m17n.org>
3507
72d36834
KH
3508 * font.c (font_vconcat_entity_vectors): New function.
3509 (struct font_sort_data): New member font_driver_preference.
3510 (font_compare): Check font_driver_preference.
3511 (font_sort_entities): The format of the first argument changed.
3512 (font_delete_unmatched): Likewise.
3513 (font_list_entities): The return type changed.
3514 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3515 (font_find_for_lface): Adjuste for the above changes.
3516 Don't suppress the checking of C even if the repertory supports it.
3517 (Flist_fonts): Adjust for the above changes.
72d36834 3518
1ac9108a
SM
3519 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3520 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3521 Reject a font who has adstyle property that is different from a
3522 langname derived from registry property.
1ac9108a 3523 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3524
b6046155
EZ
35252009-07-13 Eli Zaretskii <eliz@gnu.org>
3526
3527 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3528 local copy of dirfilename.
3529
fb6b6049
KH
35302009-07-13 Kenichi Handa <handa@m17n.org>
3531
e2402a5e
KH
3532 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3533 against max_char.
3534
fb6b6049
KH
3535 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3536 calling XSYMBOL (sym).
3537
65156807
EZ
35382009-07-11 Eli Zaretskii <eliz@gnu.org>
3539
1ac9108a
SM
3540 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3541 New function.
3542 (directory_files_internal) [WINDOWSNT]:
3543 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3544 the filesystem of the directory is fast or slow.
3545
3546 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3547 file name.
3548 (is_slow_fs): New function.
3549 (stat): Use it to determine whether to issue more system calls to
3550 get accurate file attributes, when w32-get-true-file-attributes is
3551 `local'.
3552
e0ab5fcf
JD
35532009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3554
3555 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3556 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3557 parameter font-parameter as default to the font dialog.
3558
784ceded
KH
35592009-07-10 Kenichi Handa <handa@m17n.org>
3560
3561 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3562
fb8edc0b
EZ
35632009-07-09 Eli Zaretskii <eliz@gnu.org>
3564
1ac9108a 3565 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3566
fb8edc0b
EZ
3567 * w32.c (stat): Treat UNC file names as residing on remote
3568 drives. (Bug#3542)
3569
635c75b1
KH
35702009-07-09 Kenichi Handa <handa@m17n.org>
3571
3572 * fontset.c (fontset_find_font): Fix previous change.
3573
c1d5ce94
MA
35742009-07-08 Michael Albinus <michael.albinus@gmx.de>
3575
3576 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3577 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3578 error flag.
3579
edb61b39
KH
35802009-07-08 Kenichi Handa <handa@m17n.org>
3581
374bf7e4
KH
3582 * fontset.c (fontset_find_font): Fix the logic of handling
3583 charset_matched.
3584 (font_for_char): Delete unused var.
3585 (generate_ascii_font_name): Delete it.
3586
edb61b39
KH
3587 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3588
3589 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3590 (encode_coding_sjis): Fix the code range check.
3591
0f3f018c
CY
35922009-07-07 Chong Yidong <cyd@stupidchicken.com>
3593
3594 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3595 (Fexpand_file_name): Copy string data properly (Bug#3772).
3596
fcaf6f3a
JD
35972009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3598
3599 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3600 first MapNotify.
3601
6809ca75
KH
36022009-07-07 Kenichi Handa <handa@m17n.org>
3603
3604 * character.h (unibyte_has_multibyte_table): Delete extern.
3605 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3606
3607 * charset.c (Fset_charset_priority): Update charset_unibyte.
3608 (syms_of_charset): Initialize charset_unibyte.
3609
3610 * character.c (unibyte_has_multibyte_table): Delete it.
3611 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3612 charset_unibyte.
3613 (multibyte_char_to_unibyte_safe): Likewise.
3614 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3615
1ac9108a 3616 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3617 (x_produce_glyphs): Likewise.
3618
3619 * .gdbinit (xcharset): Fix the treating $arg0.
3620
ad9e2d54
EZ
36212009-07-04 Eli Zaretskii <eliz@gnu.org>
3622
3623 Emulation of `getloadavg' on MS-Windows.
50426a04 3624 * w32.c: Include float.h.
ad9e2d54
EZ
3625 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3626 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3627 (get_native_system_info, get_system_times): New functions.
3628 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3629 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3630 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3631 g_b_init_get_system_times, and num_of_processors.
3632
0a3472c7
JR
36332009-07-03 Jason Rumney <jasonr@gnu.org>
3634
3635 * w32term.c (w32_initialize): Use standard types.
3636
80904120
EZ
36372009-07-03 Eli Zaretskii <eliz@gnu.org>
3638
3639 * dired.c (Ffile_attributes): Decode user and group names by the
3640 locale's encoding. (Bug#3443)
3641
6978862d
DN
36422009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3643
f8d23104
DN
3644 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3645 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3646
3647 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3648
3649 * term.c (init_tty): Remove spurious #ifdef.
3650
6978862d
DN
3651 * m/mips.h: Mention this file is also used for netbsd.
3652 * m/pmax.h: Remove file.
3653
e044e4fc
JD
36542009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3655
3656 * xterm.h (struct x_display_info): Add invisible_cursor.
3657 (struct x_output): Add current_cursor.
3658
3659 * xterm.c (XTtoggle_invisible_pointer): New function.
3660 (x_define_frame_cursor): Don't define cursor if invisible or the
3661 same as before. Set current_cursor.
3662 (x_create_terminal): Set toggle_invisible_pointer_hook.
3663
3664 * xfns.c (make_invisible_cursor): New function.
3665 (x_set_mouse_color): Call make_invisible_cursor.
3666 Set current_cursor.
3667 (x_window): Set current_cursor.
3668
3669 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3670
3671 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3672 inserting a character.
3673 (read_avail_input): Call frame_make_pointer_visible.
3674
3675 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3676 (frame_make_pointer_invisible, frame_make_pointer_visible):
3677 New functions.
e044e4fc
JD
3678 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3679
3680 * frame.h: Declare frame_make_pointer_invisible and
3681 frame_make_pointer_visible.
3682 (struct frame): Add pointer_invisible.
3683
574c8efa
JD
36842009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3685
7b507248
JD
3686 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3687 frame isn't visible.
3688 (xg_frame_resized): If width/height is -1, get size of window
3689 from X server.
3690
3691 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3692 for MapNotify.
3693
835bdaa7 3694 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3695 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3696 (flush_and_sync): Reintroduce.
574c8efa 3697
3f1c6666 36982009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3699
31fd7c5c 3700 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3701
3702 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3703 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3704
3705 * frame.h: Declare Qsticky.
3706
cad9ef74
JD
3707 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3708
3709 * nsfns.m (ns_frame_parm_handlers): Ditto.
3710
3711 * frame.c: Declare Qsticky.
3712 (frame_parms): Add sticky.
3713
3714 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3715
3716 * xterm.h: Declare x_set_sticky.
3717
3718 * xterm.c (x_set_sticky): New function.
3719
69b16610
JD
3720 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3721 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3722 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3723
3724 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3725
3726 * frame.c: Qmaximized is new.
3727 (x_set_frame_parameters): Do not handle fullscreen specially.
3728 Only set width and height if explicitly set.
3729 (x_set_fullscreen): Handle Qmaximized.
3730 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3731 (syms_of_frame): Initialize Qmaximized.
3732
1ac9108a
SM
3733 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3734 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3735
3736 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3737 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3738 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3739 set gravity to NorthWestGravity when USE_GTK.
3740 (set_wm_state): New function.
31fd7c5c 3741 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3742 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3743 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3744 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3745 to x_real_positions and x_fullscreen_adjust.
3746
3747 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3748 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3749 flush_and_sync.
3750 (xg_height_changed): New function.
3751 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3752 and gtk_window_set_policy. Set frame gravity after parsing the
3753 geometry string.
3f1c6666
JD
3754 (xg_update_frame_menubar, free_frame_menubar)
3755 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3756 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3757 Remove calls to xg_frame_set_char_size.
3758
fd503d99
KH
37592009-07-01 Kenichi Handa <handa@m17n.org>
3760
3761 * keyboard.c (decode_keyboard_code): New function.
3762 (tty_read_avail_input): Decode the input bytes if necessary.
3763
1ac9108a
SM
3764 * coding.c (setup_coding_system):
3765 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3766 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3767 use Qno_conversion.
3768
24ed93fb
YM
37692009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3770
3771 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3772
99061dfc
CY
37732009-06-30 Chong Yidong <cyd@stupidchicken.com>
3774
1ac9108a 3775 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3776
ff90fbde
JR
37772009-06-30 Jason Rumney <jasonr@gnu.org>
3778
3779 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3780 is already loaded.
3781 Set user model ID if supported (bug#1849).
3782
5f445726
JM
37832009-06-29 Jim Meyering <meyering@redhat.com>
3784
3785 Remove useless if-before-xfree test.
3786 * nsfont.m (nsfont_close): Remove useless test.
3787 * term.c (delete_tty): Likewise.
3788 * w32.c (system_process_attributes): Likewise.
3789 * w32font.c (w32font_close): Likewise.
3790 * xfaces.c (x_free_gc): Likewise.
3791 * xselect.c (buffer): Likewise.
3792
b9607587
AS
37932009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3794
3795 * process.c (send_process): Keep decoded string in a local
3796 variable and protect it from GC. (Bug#3521)
3797
89ba96f4
EZ
37982009-06-28 Eli Zaretskii <eliz@gnu.org>
3799
3800 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3801 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3802
098a1589
CY
38032009-06-28 Chong Yidong <cyd@stupidchicken.com>
3804
485422be
CY
3805 * xdisp.c (start_display, handle_face_prop)
3806 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3807 (redisplay_window, try_window_id, produce_image_glyph):
3808 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3809
098a1589
CY
3810 * xterm.c (x_update_window_begin, x_new_focus_frame)
3811 (x_scroll_bar_handle_click, handle_one_xevent)
3812 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3813 (x_make_frame_visible, x_make_frame_invisible)
3814 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3815 code chunks that are now obsolete.
3816
78c38319
MA
38172009-06-28 Michael Albinus <michael.albinus@gmx.de>
3818
3819 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3820 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3821 for hours, when optimzation is enabled.
3822 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3823 (xd_read_message): Make them static.
3824
4189ed40
CY
38252009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3826
3827 * term.c (turn_on_face): Allow simultaneously bold and dim
3828 terminal faces (Bug#3530).
3829
cd9b5e16
CY
38302009-06-27 Chong Yidong <cyd@stupidchicken.com>
3831
4e23bedb
CY
3832 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3833
cd9b5e16
CY
3834 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3835 truncation glyphs (Bug#3686).
3836
07cc3c35
GM
38372009-06-27 Glenn Morris <rgm@gnu.org>
3838
3839 * m/pmax.h: Restore file, with only netbsd portions.
3840
31fd7c5c 38412009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3842
cd9b5e16 3843 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3844
42d4a64f
KH
38452009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3846
3847 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3848 the arg FORCE_SYMBOL.
3849
930fe55b 38502009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3851
3852 * fontset.c (fontset_find_font): When a usable rfont_def is found
3853 in a fallback font-group, make it the first element of the group.
3854
57ebc3fd
CY
38552009-06-24 Chong Yidong <cyd@stupidchicken.com>
3856
3857 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3858
f084f942
KH
38592009-06-24 Kenichi Handa <handa@m17n.org>
3860
3861 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3862 set for C.
3863 (fontset_font): Record the availability of a font for C both in
3864 the realized fontsets of the current one and the default one.
3865
2f686c87
DN
38662009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3867
3868 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3869 conditional, it is always defined on AIX.
3870
666e158e
MB
38712009-06-23 Miles Bader <miles@gnu.org>
3872
3873 * window.c (Vrecenter_redisplay): New variable.
3874 (syms_of_window): Initialize it.
3875 (Qtty): New extern declaration.
3876 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3877
c6da7cd2
JM
38782009-06-23 Jim Meyering <meyering@redhat.com>
3879
1ac9108a
SM
3880 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3881 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3882 pointer dereferences are guaranteed to be valid.
c6da7cd2 3883
678dca3d
KH
38842009-06-23 Kenichi Handa <handa@m17n.org>
3885
74d75424
KH
3886 * emacs.c (main): Call init_font ().
3887
3888 * font.h (Vfont_log): Extern it.
3889 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3890
3891 * font.c (font_sort_entities, font_list_entities)
3892 (font_matching_entity, font_open_entity)
3893 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3894 (Vfont_log): Delete static.
3895 (font_log_env_checked): Delete this variable.
3896 (font_add_log): Don't check font_log_env_checked.
3897 (font_deferred_log): Check Vfont_log.
3898 (init_font): New function.
3899
678dca3d
KH
3900 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3901
3902 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3903
3904 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3905
3906 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3907
3908 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3909 (face_for_char): Don't call font_deferred_log here.
3910 (font_for_char): Likewise.
3911
8a668709
CY
39122009-06-22 Chong Yidong <cyd@stupidchicken.com>
3913
9a01ee33
CY
3914 * w32term.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).
3917
3918 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3919 rather than its background_width for drawing the overline and
3920 underline (Bug#489).
ec7c9926
CY
3921 (xg_default_icon_file): New variable.
3922 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3923 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3924
8a668709
CY
3925 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3926 (load_overlay_strings): Remove externs.
3927 (fast_find_position): Function deleted.
3928 (mouse_face_from_buffer_pos): New function, based on
3929 fast_find_position. Correctly handle before-strings,
3930 display-strings, and after-strings (Bug#1220).
3931 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3932
4d4c02d8
CY
39332009-06-21 Chong Yidong <cyd@stupidchicken.com>
3934
1ac9108a 3935 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3936 (move_it_in_display_line_to, move_it_in_display_line_to)
3937 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3938
70243478
CY
39392009-06-21 Chong Yidong <cyd@stupidchicken.com>
3940
3941 * Branch for 23.1.
3942
13087e59
JR
39432009-06-21 Jason Rumney <jasonr@gnu.org>
3944
3945 * w32term.c (keyboard_codepage): New static variable.
3946 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3947 (w32_read_socket) [WM_CHAR]: Use it to decode character
3948 input (bug#3237).
3949 (w32_initialize): Initialize it.
3950 (codepage_for_locale): New function.
3951
4735b74e
KR
39522009-06-20 Ken Raeburn <raeburn@raeburn.org>
3953
3954 * process.c (status_message): Pass Faset index argument as a lisp
3955 object, so as to work with USE_LISP_UNION_TYPE.
3956
0e727afa
YM
39572009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3958
3959 * coding.c (Ffind_coding_systems_region_internal):
3960 Cache checked characters.
3961
cf299835
KH
39622009-06-18 Kenichi Handa <handa@m17n.org>
3963
1ac9108a 3964 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3965
90f20d94
AS
39662009-06-18 Andreas Schwab <aschwab@redhat.com>
3967
3968 * xdisp.c (redisplay_internal): Check that the frame is still
3969 live after redisplay of its windows.
3970 (redisplay_windows): Check that the window is still live.
3971
7f1faf1c
KH
39722009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3973
3974 * coding.c (detect_coding_utf_16): Fix previous change.
3975
cc13543e
KH
39762009-06-16 Kenichi Handa <handa@m17n.org>
3977
3978 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3979 UTF-16 by checking the dispersion of Eth and Oth bytes.
3980
977b85f4
AS
39812009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3982
3983 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3984
66bd43d1
KH
39852009-06-15 Kenichi Handa <handa@m17n.org>
3986
3987 * process.c (status_message): Fix previous change. Be sure to
3988 decode a localized string.
3989
cb5ca9c5
YM
39902009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3991
3992 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3993 add comment explaining why.
3994
ec7709ba 39952009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3996
ec7709ba 3997 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3998
4b7f335c
AR
39992009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4000
4001 * nsfont.m (ns_attribute_value): Remove.
4002 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4003 (ns_has_attribute): Shrink the normal range.
4004 (ns_findfonts): Don't worry about requested spec in determining
4005 need for synthItal.
e41820ee 4006 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4007
73b26103
SZ
40082009-06-14 Seiji Zenitani <zenitani@mac.com>
4009
4010 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4011
5753e4da
KH
40122009-06-11 Kenichi Handa <handa@m17n.org>
4013
4014 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4015 overhang for the static composition case.
4016
3561b671
KH
40172009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4018
5753e4da
KH
4019 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4020 overhang for the automatic composition case.
4021
3561b671
KH
4022 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4023 composition case.
4024
852bbd41
CY
40252009-06-10 Chong Yidong <cyd@stupidchicken.com>
4026
4027 * xdisp.c (get_next_display_element): When handling wrap-prefix
4028 and line-prefix, treat \n as a control character (bug#3502).
4029
9903d1e6
KH
40302009-06-10 Kenichi Handa <handa@m17n.org>
4031
4032 * font.c (font_parse_family_registry): Fix for one-char foundry.
4033 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4034
0bcbaaaa
CY
40352009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4036
4037 * process.c (status_message): Fix handling of multibyte signal
4038 string (Bug#3499).
4039
40aa3f13
JM
40402009-06-09 Jim Meyering <meyering@redhat.com>
4041
1f80c7e2
CY
4042 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4043 color name is missing.
40aa3f13 4044
72d51285
KH
40452009-06-09 Kenichi Handa <handa@m17n.org>
4046
4047 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4048 FROM-CODE and TO-CODE are codepoints of CHARSET.
4049
c1d04d84
AR
40502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4051
4052 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4053
40542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4055
4056 Changes to support :script/:lang/:otf in NS font driver.
4057 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4058 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4059 indicate not part of font driver interface, and change callers.
4060 (ns_get_family): Remove pointless null check.
4061 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4062 ns_spec_to_descriptor, ns_descriptor_to_entity.
4063 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4064 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4065 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4066 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4067 (ns_get_req_script, ns_accumulate_script_ranges)
4068 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4069 New functions.
4070 (nsfont_list, nsfont_match): Use ns_findfonts.
4071 (nsfont_open): Use font descriptor instead of traits.
4072 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4073 (dump_glyphstring): Rename to ns_dump_glyphstring.
4074
c7eb9816
AR
4075 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4076
c1d04d84
AR
4077 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4078
4079 * fontset.c (fontset_from_font): Remove NS-specific code.
4080
ec7709ba 40812009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4082
4083 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4084 nonactive windows.
4085
31fd7c5c 40862009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4087
1ac9108a 4088 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4089
68852c13 40902009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4091
4092 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4093
6756cd1d
CY
40942009-06-07 Chong Yidong <cyd@stupidchicken.com>
4095
4096 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4097 account for the overflowing of newlines into the last glyph on the
4098 display line (Bug#3482).
4099
28bf482a
DR
41002009-06-05 David Reitter <david.reitter@gmail.com>
4101
ec7709ba
JB
4102 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4103 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4104 Fns_selection_exists_p, Fns_selection_owner_p.
4105
fdb55376
JR
41062009-06-03 Jason Rumney <jasonr@gnu.org>
4107
4108 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4109 available. (Bug#3379)
4110
05129fbe
KH
41112009-05-29 Kenichi Handa <handa@m17n.org>
4112
1ac9108a
SM
4113 * coding.c (get_translation_table):
4114 Check Venable_character_translation.
05129fbe 4115
ec7709ba 41162009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4117
ec7709ba
JB
4118 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4119 (x_make_frame_visible): Move frame to front rather than calling
15891144 4120 ns_raise_frame().
ec7709ba 4121 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4122 isn't key window.
ec7709ba 4123 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4124 drawRect may be called by NSView even if the frame is hidden.
4125
ec7709ba
JB
4126 * nsfns.m (Fx_create_frame): Follow other ports in
4127 determining visibility; default to t. Ensure async_visible is set.
15891144 4128
21f73755
EZ
41292009-05-23 Eli Zaretskii <eliz@gnu.org>
4130
4131 * dired.c (Ffile_attributes): Doc fix.
4132
34001e41
CY
41332009-05-22 Chong Yidong <cyd@stupidchicken.com>
4134
4135 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4136
46306a17
SM
41372009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4138
4139 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4140 and xfont_scratch_props.
4141 (syms_of_xfont): Do it here instead.
4142 (xfont_find_ccl_program): Delete, unused.
4143 (xfont_open): Delete unused var `i'.
4144
ef6e0694
KH
41452009-05-21 Kenichi Handa <handa@m17n.org>
4146
4147 * fontset.c (Qlatin): Don't make it static.
4148
46306a17
SM
4149 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4150 New functions.
ef6e0694
KH
4151 (xfont_scripts_cache, xfont_scratch_props): New variables.
4152 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4153 (xfont_list_pattern): Argument changed. Callers changed.
4154 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4155 (xfont_list): Don't reject a font spec with :script property.
4156 (xfont_has_char): Fix setting of encoding.
4157 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4158 xfont_scratch_props.
4159
41602009-05-19 Kenichi Handa <handa@m17n.org>
4161
46306a17 4162 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4163 Callers changed.
4164
41652009-05-18 Kenichi Handa <handa@m17n.org>
4166
4167 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4168
ac71ced7
SM
41692009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4170
4171 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4172 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4173
1c6d1051
YM
41742009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4175
4176 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4177 (x_delete_terminal): Dissociate resource database from display and
4178 then call XrmDestroyDatabase before closing display.
4179
9b9b779c
AR
41802009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4181
4182 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4183 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4184 whether selected frame is viable before raising it (based on patch
4185 by David Reitter), and improve commentary.
4186 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4187
cccd42d5
KH
41882009-05-15 Kenichi Handa <handa@m17n.org>
4189
4190 * font.c (Ffont_spec): Check arguments.
4191
337fbd17
CY
41922009-05-14 Chong Yidong <cyd@stupidchicken.com>
4193
4194 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4195 weight when testing attributes (Bug#3282).
4196
47a6002f
JD
41972009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4198
4199 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4200 what we expect to get in the next ConfigureNotify event.
4201
9cb363db
YM
4202 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4203 before Xft one (Bug#1696).
4204
b9126609
CY
42052009-05-07 David Reitter <david.reitter@gmail.com>
4206
4207 * nsfns.m (Fx_display_planes): Compute bitplanes using
4208 NSBitsPerPixelFromDepth (Bug#3207).
4209
27a69fd9
CY
42102009-05-10 Chong Yidong <cyd@stupidchicken.com>
4211
4212 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4213
00f37552
TTN
42142009-05-10 Ulrich Mueller <ulm@gentoo.org>
4215
4216 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4217
2d82a920
DR
42182009-05-07 David Reitter <david.reitter@gmail.com>
4219
ec7709ba
JB
4220 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4221 Respect mouse face background.
2d82a920 4222
46b0d52d
DR
42232009-05-07 David Reitter <david.reitter@gmail.com>
4224
ec7709ba
JB
4225 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4226 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4227 in ns_update_begin and ns_update_end.
4228
ce1b23bb
SM
42292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4230
5996e1b7
SM
4231 * nsfns.m (ns_get_screen): Rewrite.
4232 Don't presume selected-frame is of type `ns'.
4233
ba98e3a0
SM
4234 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4235 all drivers.
4236
ce1b23bb
SM
4237 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4238
bcda200f
YM
42392009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4240
4241 * keyboard.h (add_user_signal): Fix typo in extern.
4242
4243 * lisp.h (add_user_signal): Remove extern.
4244
4245 * unexelf.c (unexec): Consider a section to precede the .bss section
4246 if its addresses overlap that of .bss.
4247 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4248 instead of dumping process.
4249
864660a2
SM
42502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4251
4252 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4253
50da4e56
SM
42542009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4255
4256 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4257
51520a1a
DN
42582009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4259
4260 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4261 any statements.
4262
409ea3a1
AS
42632009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4264
59c4c60f
AS
4265 * process.c (read_process_output): Make sure the current buffer is
4266 always restored.
4267
409ea3a1
AS
4268 * coding.c (record_conversion_result): Don't modify
4269 Vlast_code_conversion_error for successful result.
4270 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4271
56f00ed2
KH
42722009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4273
4274 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4275 (load_charset_map): Remove unnecessary code.
56f00ed2 4276
4491c9d2
DR
42772009-04-30 David Reitter <david.reitter@gmail.com>
4278
35f5b128 4279 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4280 through f24.
4281
6970f632
CY
42822009-04-30 Chong Yidong <cyd@stupidchicken.com>
4283
4284 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4285
4286 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4287 face_at_buffer_position.
4288 (face_before_or_after_it_pos, get_next_display_element)
4289 (note_mouse_highlight): Update face_at_buffer_position call.
4290
4291 * term.c (term_mouse_highlight):
4292 * msdos.c (IT_note_mouse_highlight):
4293 * fontset.c (Finternal_char_font):
35f5b128 4294 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4295
4296 * dispextern.h (face_at_buffer_position): Update prototype.
4297
0c616f63
KH
42982009-04-30 Kenichi Handa <handa@m17n.org>
4299
35f5b128 4300 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4301
ad3aaf33
AS
43022009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4303
4304 * callproc.c (Fcall_process): Fix GC protection. Make sure
4305 current buffer is always restored.
4306
c3c963a0
YM
43072009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4308
4309 * atimer.c (init_atimer): Also clear stopped_atimers.
4310
4311 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4312
7e3386cb
YM
4313 * process.c (create_process): Clean up merger residues of
4314 2008-07-17 change.
4315
91f68422
CY
43162009-04-29 Ulrich Mueller <ulm@gentoo.org>
4317
4318 * lread.c (Vread_circle): New variable.
4319 (read1): Disable recursive read if Vread_circle is nil.
4320
24b34550
KH
43212009-04-29 Kenichi Handa <handa@m17n.org>
4322
4323 * fontset.h (set_default_ascii_font): Delete extern.
4324
4325 * fontset.c (set_default_ascii_font): Delete this unused function.
4326
4327 * frame.c (x_set_font): When ARG is a font-object, check if the
4328 font-object matches with the ASCII font-spec of the frame's
9c358bda 4329 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4330
77bf07e1
AS
43312009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4332
4333 * fns.c (Flocale_info): Protect vector from GC during decoding.
4334
4335 * process.c (Fstart_process): Protect argv strings from GC during
4336 encoding.
4337
2c55aacf
AS
43382009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4339
4340 * sysdep.c: Include <ctype.h>.
4341
b892d3c9
DR
43422009-04-27 David Reitter <david.reitter@gmail.com>
4343
35f5b128 4344 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4345 Remove commented-out code.
4346
9d0644c4
JB
43472009-04-26 Johan Bockgård <bojohan@gnu.org>
4348
4349 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4350
b7053016
JR
43512009-04-25 Jason Rumney <jasonr@gnu.org>
4352
4353 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4354
4e8231f3
YM
43552009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4356
4357 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4358 Swap bytes in short integer if fringe bitmap width > 8.
4359
493dcf2c
KH
43602009-04-23 Kenichi Handa <handa@m17n.org>
4361
4362 * xfaces.c (Fx_list_fonts): If a font size is specified in
4363 PATTERN, set it in returned scalable fonts.
4364
401e9e57
CY
43652009-04-22 Chong Yidong <cyd@stupidchicken.com>
4366
708e05dc
CY
4367 * keyboard.c (Fset_input_meta_mode): Doc fix.
4368
4369 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4370
1ac9108a 4371 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4372
4373 * coding.c (Fterminal_coding_system): Doc fix.
4374
4375 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4376 (Fx_display_pixel_height, Fx_display_planes)
4377 (Fx_display_color_cells, Fx_server_max_request_size)
4378 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4379 (Fx_display_mm_height, Fx_display_mm_width)
4380 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4381 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4382 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4383 (check_x_display_info): Handle terminal objects instead of
4384 terminal ids.
4385
401e9e57
CY
4386 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4387 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4388 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4389 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4390
df80c7f0
KH
43912009-04-21 Kenichi Handa <handa@m17n.org>
4392
5a8f12af 4393 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4394 (font_score): Check AVGWIDTH too.
908567ef 4395
df80c7f0
KH
4396 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4397 worst case.
1ac9108a
SM
4398 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4399 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4400
705af33f
JR
44012009-04-19 Jason Rumney <jasonr@gnu.org>
4402
4403 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4404 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4405
4406 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4407 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4408 get_phys_cursor_geometry.
4409
b71ac3dd 4410 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4411 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4412 using get_phys_cursor_geometry.
4413
4414 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4415 correctly calculated.
4416
dc2933eb
JD
44172009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4418
1ac9108a
SM
4419 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4420 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4421 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4422 is deprecated.
4423
973e7849
AS
44242009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4425
4426 * font.c (font_put_frame_data): Use xfree instead of free.
4427
314d66f4
JB
44282009-04-17 Juanma Barranquero <lekktu@gmail.com>
4429
4430 * w32font.c (Qja, Qko): Remove declarations.
4431 (syms_of_w32font): Don't DEFSYM them.
4432
cf702558
CY
44332009-04-17 Chong Yidong <cyd@stupidchicken.com>
4434
4435 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4436
4437 * font.h (Qja, Qko): Extern them.
4438
4439 * ftfont.c (Qja, Qko): Remove declarations.
4440
4441 * xfont.c (Qja, Qko): Remove declarations.
4442
b50504f5
KH
44432009-04-17 Kenichi Handa <handa@m17n.org>
4444
bde25748
KH
4445 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4446 string from a vector to handle Latin-1 characters correctly.
4447
b50504f5
KH
4448 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4449 entity even if the cache hits.
4450
f4646fff
AS
44512009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4452
4453 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4454 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4455
e7deaab0
AS
4456 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4457 * lisp.h: Adjust prototypes.
4458
0a0e7d49
CY
44592009-04-16 Chong Yidong <cyd@stupidchicken.com>
4460
4461 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4462 change (Bug#3003).
4463
3c908a57
KH
44642009-04-16 Kenichi Handa <handa@m17n.org>
4465
1ac9108a 4466 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4467
4468 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4469 adstyle.
4470
4471 * ftfont.c (Qja, Qko): Don't make them static.
4472 (enum ftfont_cache_for): New enum.
4473 (fc_charset_table): Undo the previous change.
4474 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4475 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4476 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4477 non-scarable font, try to get AVERAGE_WIDTH.
4478 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4479 Change ft_face_cache from a list of a hash-table. Don't check
4480 `ja' and `ko' adstyle here.
4481 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4482 FTFONT_CACHE_FOR_CHARET.
4483 (ftfont_get_charset): Undo the previous change.
1ac9108a 4484 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4485 (ftfont_close): Likewise.
4486 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4487
4488 * font.c (font_sort_entites): Change the meaning of the arg
4489 BEST-ONLY. Don't optimize for VEC of lenght 1.
4490 (font_select_entity): Just return the value of font_sort_entites.
4491
4492 * xfaces.c (merge_face_vectors): Reflect font properties in
4493 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4494 font_clear_prop if a face attribute doesn't change.
4495
3c908a57
KH
4496 * charset.h (charset_ksc5601): Extern it.
4497
4498 * charset.c (charset_ksc5601): New variable.
4499 (Fdefine_charset_internal): Set charset_ksc5601.
4500 (init_charset_once): Initialize charset_ksc5601 to -1.
4501
d65859c3
DN
45022009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4503
4504 * fileio.c (history_delete_duplicates): Remove unused declaration.
4505
4506 * callint.c (history_delete_duplicates): New declaration.
4507 (Fcall_interactively): Remove command history duplicates when
4508 history_delete_duplicates is true.
4509
3ba010e5
EZ
45102009-04-14 Eli Zaretskii <eliz@gnu.org>
4511
4512 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4513
06f19b91
KH
45142009-04-14 Kenichi Handa <handa@m17n.org>
4515
4516 * font.c (Ffont_info): Fix docstring. Fix the second element of
4517 the returned value (bug#2949).
4518
2cce8bfc
CY
45192009-04-14 Chong Yidong <cyd@stupidchicken.com>
4520
4521 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4522
d156542d
KH
45232009-04-14 Kenichi Handa <handa@m17n.org>
4524
4525 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4526 encoding charset is ascii_compatible.
4527
4528 * charset.c (Fdefine_charset_internal): Make charset
4529 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4530 code_offset is 0, and covers all ASCII characters.
4531
86fa089e
SM
45322009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4533
4534 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4535 (ns_string_to_pasteboard_internal):
4536 * nsmenu.m (process_dialog):
4537 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4538 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4539 * lisp.h (Fx_load_color_file): Declare.
4540
a8a3728b
KH
45412009-04-13 Kenichi Handa <handa@m17n.org>
4542
1ac9108a 4543 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4544 (font_select_entity): Suppress the code to optimize for the same
4545 kind of fonts.
4546 (font_load_for_lface): Get a font that supports at least ASCII
4547 characters.
4548
4549 * ftfont.c (Qja, Qko): New variables.
4550 (fc_charset_table): Delete uniquifier data for iso8859-1.
4551 (ftfont_get_latin1_charset): New function.
4552 (get_adstyle_property): New function.
4553 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4554 bitmap fonts.
4555 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4556 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4557 `ko' or `ja'.
4558 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4559 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4560 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4561 property.
4562 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4563 (syms_of_ftfont): DEFSYM Qja and Qko.
4564
483670b5
KH
45652009-04-09 Kenichi Handa <handa@m17n.org>
4566
12b55765
KH
4567 * charset.c (map_charset_chars): For a charset of `superset'
4568 method, fix calculation of code range.
4569
483670b5
KH
4570 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4571 from the list of extra properties.
4572 (font_clear_prop): Be sure to delete `:name' font property.
4573
57d3b93b
KH
45742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4575
b4b2c2ca
YM
4576 * dispnew.c (redraw_overlapping_rows): Fix detection of
4577 overlapping for topmost and bottommost rows.
4578
1ac9108a 4579 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4580
472c3609
JR
45812009-04-06 Jason Rumney <jasonr@gnu.org>
4582
4583 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4584
ab193662
KH
45852009-04-06 Kenichi Handa <handa@m17n.org>
4586
4587 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4588
4589 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4590
0c26f026
KH
45912009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4592
4593 * ftfont.c (ftfont_open): Fix checking of the return value of
4594 FT_Load_Char. Fix setting font->underline_thickness.
4595
e173bbce
CY
45962009-04-04 Chong Yidong <cyd@stupidchicken.com>
4597
4598 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4599 (Fterminal_parameters, Fterminal_parameter)
4600 (Fset_terminal_parameter): In doc string, refer to terminal
4601 objects rather than terminal ids.
4602
693a2698
EZ
46032009-04-04 Eli Zaretskii <eliz@gnu.org>
4604
4605 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4606 ret_lim_data. (Bug#2867)
4607
d5221487
CY
46082009-04-03 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4611 so they don't get wider than the window, matching 2006-01-23
4612 change to the partner function in xdisp.c (Bug#2800).
4613
223509a3
KH
46142009-04-03 Kenichi Handa <handa@m17n.org>
4615
4616 * print.c (print_object): Make each lowest sub_char_table start a
4617 new line (Bug#2866).
4618
74fcd0b1
KH
46192009-04-02 Kenichi Handa <handa@m17n.org>
4620
4621 * fontset.c (fontset_font): Record no-font when a fontset
4622 explicitly tells not to try another font-specs.
4623
c542407d
SM
46242009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4625
4626 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4627
e3869731
KH
46282009-03-30 Kenichi Handa <handa@m17n.org>
4629
d8d2f142
KH
4630 * fontset.c (fontset_from_font): Specify only registry in a
4631 font-spec for all characters supported by that registry.
4632
e3869731
KH
4633 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4634 even if HAVE_M17N_FLT is not defined.
4635
5da5f805
CY
46362009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4637
4638 * ftfont.c: Conditionalize prototyping and use of
4639 ftfont_variation_glyphs.
4640
ab226c50
SM
46412009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4642
9628fed7
SM
4643 * frame.c (delete_frame): Work around compiler bug.
4644
4645 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4646 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4647 Some more EMACS_INT.
4648 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4649
4650 * xdisp.c (dump_glyph): Fix typo.
4651
ae19ba7c
SM
4652 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4653 (adjust_markers_gap_motion, adjust_markers_for_delete)
4654 (adjust_markers_for_insert, adjust_point)
4655 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4656 (make_gap, copy_text, count_size_as_multibyte, insert)
4657 (insert_and_inherit, insert_before_markers)
4658 (insert_before_markers_and_inherit, insert_1)
4659 (count_combining_before, count_combining_after, insert_1_both)
4660 (insert_from_string, insert_from_string_before_markers)
4661 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4662 (insert_from_buffer_1, adjust_after_replace)
4663 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4664 (replace_range_2, del_range, del_range_1, del_range_byte)
4665 (del_range_both, del_range_2, modify_region)
4666 (prepare_to_modify_buffer, signal_before_change)
4667 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4668 for buffer positions and sizes.
4669 * lisp.h: Adjust prototypes accordingly.
4670
4671 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4672 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4673 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4674
ab226c50
SM
4675 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4676
46dfb8fb
JD
46772009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4678
4679 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4680 lines and columns so we keep the same pixel height and width.
4681
4682 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4683 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4684 (x_handle_net_wm_state): New function to update frame parameter
4685 fullscreen.
4686 (x_term_init): Initialize atoms for _NET_WM_STATE.
4687
4688 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4689
d347e494
SM
46902009-03-27 Kevin Ryde <user42@zip.com.au>
4691
4692 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4693 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4694 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4695 (Fgpm_mouse_stop): Pass that new parameter.
4696 * termhooks.h (close_gpm): Adjust prototype.
4697
84db11d6
SM
46982009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4699
c95a5008
SM
4700 * lisp.h (Fx_focus_frame): Declare.
4701
84db11d6
SM
4702 * callint.c (Fcall_interactively): For '^' just delegate the work to
4703 handle-shift-selection.
4704 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4705
0a1958d6
CY
47062009-03-24 Chong Yidong <cyd@stupidchicken.com>
4707
0bfdff23
CY
4708 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4709
0a1958d6
CY
4710 * data.c (Qinteractive_form): New variable.
4711 (Finteractive_form): Use it.
4712
4713 * eval.c (Fcommandp): Use Qinteractive_form.
4714
58aec0d6
JR
47152009-03-24 Jason Rumney <jasonr@gnu.org>
4716
4717 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4718 Calculate total size precisely. Decode environment variables
4719 before substituting. (Bug#38)
4720
553dd618
KH
47212009-03-24 Kenichi Handa <handa@m17n.org>
4722
4723 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4724 encoding (Bug#2722).
553dd618 4725
c39ea606
JD
47262009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4727
4728 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4729 that gdpy is set.
4730
bc9b2b5e
AM
47312009-03-22 Alan Mackenzie <acm@muc.de>
4732
4733 * callint.c (Finteractive): Clarify the doc string - even
4734 promptless elements need \n separators.
4735
9f995a76
JR
47362009-03-22 Jason Rumney <jasonr@gnu.org>
4737
4738 * w32term.c (syms_of_w32term): Doc fix for
4739 x-use-underline-position-properties.
4740
22749e9a
EZ
47412009-03-21 Eli Zaretskii <eliz@gnu.org>
4742
4743 * w32.c (getpwuid): Change argument type to unsigned.
4744 (struct w32_id): Change type of `rid' member to unsigned.
4745 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4746 argument ID to unsigned. All callers changed.
4747 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4748
e00553bf
EZ
47492009-03-20 Eli Zaretskii <eliz@gnu.org>
4750
4751 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4752 negative, produce a float value.
4753
4754 * dired.c (make_uid, make_gid): New functions.
4755 (Ffile_attributes): Use them to avoid negative UID and GID.
4756
f761d6b6
JB
47572009-03-20 Juanma Barranquero <lekktu@gmail.com>
4758
4759 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4760 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4761 Fix typos in docstrings.
4762
d507f8d7
KH
47632009-03-19 Kenichi Handa <handa@m17n.org>
4764
4765 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4766 changed, use font_load_for_lface to get a new font object.
4767 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4768
4769 * frame.c (x_set_font): Handle the case that ARG is a cons.
4770
c68845e0
GM
47712009-03-19 Glenn Morris <rgm@gnu.org>
4772
4773 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4774
bfa49dd1
CY
47752009-03-19 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4778
8458d4c1
KH
47792009-03-19 Kenichi Handa <handa@m17n.org>
4780
4781 * charset.c (load_charset_map_from_file): When a mapfile can't be
4782 loaded, signal an error.
4783
78e7d1fe
EZ
47842009-03-18 Eli Zaretskii <eliz@gnu.org>
4785
4786 * dired.c (Ffile_attributes): Make sure UID and GID are always
4787 positive, even if the value is too large for a positive EMACS_INT.
4788 Doc fix.
4789
4790 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4791
5da9fdfa
YM
47922009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4793
4794 * xmenu.c (xdialog_show): Move Fredisplay call ...
4795 (Fx_popup_dialog): ... here.
4796
7519c40d
SM
47972009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4798
4799 * dired.c (file_name_completion): Disable the first optimization just
4800 installed, since it is not implemented correctly.
4801
2cd298e2
SM
48022009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4803
4804 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4805 only if the entry can affect bestmatch.
2cd298e2
SM
4806 Stop the search early, as Ftry_completion already does.
4807
48d37adf
CY
48082009-03-17 Chong Yidong <cyd@stupidchicken.com>
4809
e10c9c93 4810 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4811
9286b16a
CY
48122009-03-15 Chong Yidong <cyd@stupidchicken.com>
4813
4814 * keyboard.c (parse_menu_item): Don't display remappings as menu
4815 equivalent bindings (Bug#788).
4816
f7b146dc
JR
48172009-03-15 Jason Rumney <jasonr@gnu.org>
4818
4819 * w32term.h (WM_EMACS_PAINT): New message.
4820 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4821 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4822 before passing to lisp thread. (Bug#950)
4823
f761d6b6 48242009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4825
d93f9575
CY
4826 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4827 variable as it was never reset.
4828 (ns_term_init): Remove initialization of Lisp-settable defaults
4829 and ns_expand_space.
4830 (-setPanelFromDefaultValues): Remove ns_expand_space.
4831 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4832 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4833 i.e. no additional spacing, similar to Carbon port.
4834
d93f9575
CY
4835 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4836 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4837
305018ec
JD
48382009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4839
4840 * sound.c (alsa_configure): Remove call to deprecated
4841 snd_pcm_sw_params_set_xfer_align.
4842
f761d6b6 48432009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4844
4845 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4846 after clicking in a detached tool bar.
4847 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4848
46e722a9
SM
48492009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4850
348db3dd
SM
4851 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4852 int/Lisp_Object mixup).
46e722a9 4853
a3d16f39
KH
48542009-03-13 Kenichi Handa <handa@m17n.org>
4855
4856 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4857 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4858 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4859 (set_fontset_font): Change ARG to a vector. Handle range_list in
4860 ARG correctly.
4861 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4862 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4863 the above change.
4864 (fontset_from_font): Fix previous change.
fe24f56a 4865 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4866 entry. If FONTSET is the default fontset, don't set the extra
4867 slot of the returning char-table.
4868
b066e6b6
JB
48692009-03-12 Juanma Barranquero <lekktu@gmail.com>
4870
4871 * nsfns.m (Fx_close_connection): Doc fix.
4872 (Fns_do_applescript): Reflow docstring.
4873 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4874 (Fx_display_pixel_width, Fx_display_pixel_height)
4875 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4876 Fix typos in docstrings.
4877 (Fns_set_alpha): Fix typos in error messages.
4878
d472514e 48792009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4880
d472514e 4881 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4882 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4883 were used for such events.
4884
d472514e
JB
4885 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4886 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4887
d472514e 4888 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4889 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4890
fb930676
KH
48912009-03-11 Kenichi Handa <handa@m17n.org>
4892
ff85581a
KH
4893 * font.h (font_open_by_spec): Extern it.
4894
c50b7e98
KH
4895 * font.c (font_open_by_spec): New function.
4896 (font_open_by_name): Use font_open_by_spec.
4897
fb930676
KH
4898 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4899 fontset of the frame.
4900
4901 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4902 modify the default font of frames that use this fontset.
4903 (num_auto_fontsets): New variable.
4904 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4905 name. Be sure to set FONTSET_ASCII to the correct font name.
4906 (update_auto_fontset_alist): New function.
4907
df4e8455
JB
49082009-03-11 Juanma Barranquero <lekktu@gmail.com>
4909
4910 * makefile.w32-in: Update dependencies.
4911
0a375797
AR
49122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4913
4914 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4915
61313fa3
SM
49162009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4917
4918 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4919
b55103fb
CY
49202009-03-10 Chong Yidong <cyd@stupidchicken.com>
4921
4922 * lread.c (Feval_buffer): Doc fix.
4923
dde2559c
KH
49242009-03-09 Kenichi Handa <handa@m17n.org>
4925
4926 * charset.c (Qfile_name_handler_alist): Extern it.
4927 (load_charset_map_from_file): Temporarily bind
4928 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4929
df4e8455 49302009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4931
47f588bb
GM
4932 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4933 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4934
4ddf94bd
AR
49352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4936
4c9bdfc2
AR
4937 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4938 (x_set_window_size): Change back to calculated method of setting
4939 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4940 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4941 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4942
fe41ae9e
AR
4943 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4944
4c9bdfc2
AR
4945 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4946 accelerator in parens under GNUstep.
4947
825d0875
KH
49482009-03-06 Kenichi Handa <handa@m17n.org>
4949
4950 These changes are to detect incorrect composition sequence without
f3b3be74 4951 looking ahead the source. (Bug#2370)
825d0875
KH
4952
4953 * coding.h: Include "composite.h".
4954 (enum compisition_state): New enum.
4955 (struct compisition_status): New struct.
4956 (struct iso_2022_spec): New member cmp_status.
4957 (struct emacs_mule_spec): New struct.
4958 (struct coding_system): New members ctext_extended_segment_len and
4959 embedded_utf_8. Change the union member
4960 spec.emacs_mule_full_support to spec.emacs_mule.
4961
4962 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4963 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4964 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4965 (ADD_COMPOSITION_DATA): New arg nbytes.
4966 (emacs_mule_char): New arg cmp_status.
4967 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4968 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4969 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4970 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4971 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4972 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4973 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4974 (EMACS_MULE_COMPOSITION_END): New macro.
4975 (emacs_mule_finish_composition): New function.
4976 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4977 (decode_coding_emacs_mule): Avoid long looking ahead while
4978 handling composition.
4979 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4980 (ENCODE_COMPOSITION_RULE): New macro.
4981 (finish_composition): New function.
4982 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4983 (DECODE_COMPOSITION_START): New implementation.
4984 (DECODE_COMPOSITION_END): Likewise.
4985 (STORE_COMPOSITION_RULE): New macro.
4986 (decode_coding_iso_2022): Avoid long looking ahead while handling
4987 composition, CTEXT extended segment, and embedded UTF-8.
4988 (setup_coding_system): For a coding of type iso-2022, reset
4989 CODING_ISO_EXTSEGMENT_LEN (coding) and
4990 CODING_ISO_EMBEDDED_UTF_8 (coding).
4991 (get_translation): Delete arguments last_block, from_nchars,
4992 to_nchars. Callers changed.
4993 (produce_chars): Don't modify charbuf. Adjusted for the change of
4994 get_translation.
98a326f7 4995 (produce_composition): Adjust for the new annotation sequence.
825d0875 4996 (handle_composition_annotation): Likewise.
98a326f7 4997 (consume_chars): Adjust for the change of get_translation.
825d0875 4998
ccbc4452
AR
49992009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5000
4ddf94bd 5001 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5002
988a7ddb
KH
50032009-03-05 Kenichi Handa <handa@m17n.org>
5004
5005 * font.c (font_select_entity): New function.
5006 (font_find_for_lface): Use font_select_entity to select a font.
5007
5008 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5009 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5010 font with C restriction.
5011
98a326f7 50122009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5013
be1bce46 5014 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5015
10ea2b82
JR
50162009-03-04 Jason Rumney <jasonr@gnu.org>
5017
2c93b248 5018 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5019 characters that have already been read. (Bug#2569)
2c93b248 5020
10ea2b82
JR
5021 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5022 Log an error message if check_image_size failed.
5023 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5024 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5025
71a0c011
EZ
50262009-03-02 Eli Zaretskii <eliz@gnu.org>
5027
5028 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5029 when decoding process output.
5030
2f63bba8
RS
50312009-03-01 Richard M Stallman <rms@gnu.org>
5032
5033 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5034
5035 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5036
0a9564cb
EZ
50372009-02-28 Eli Zaretskii <eliz@gnu.org>
5038
5039 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5040 (decode_coding_emacs_mule, decode_coding_iso_2022)
5041 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5042 (decode_coding_raw_text, decode_coding_charset)
5043 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5044 Honor inhibit-eol-conversion. (Bug #2186)
5045
449148b3
JR
50462009-02-28 Jason Rumney <jasonr@gnu.org>
5047
5048 * coding.c (detect_coding_charset): If not checking latin extra,
5049 fail on characters between 0x80 and 0xA0. (Bug#2354)
5050
a4aee864
EZ
50512009-02-28 Eli Zaretskii <eliz@gnu.org>
5052
5053 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5054 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5055
d88bee5a
GM
50562009-02-27 Glenn Morris <rgm@gnu.org>
5057
5058 * callint.c (Finteractive): Doc fix.
5059
a808f22d
KH
50602009-02-27 Kenichi Handa <handa@m17n.org>
5061
5062 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5063
caf8d60c
CY
50642009-02-27 Chong Yidong <cyd@stupidchicken.com>
5065
5066 * font.c (font_style_to_value): Set value for unknown symbols to
5067 100 instead of 255.
b61137ea
CY
5068 (weight_table, slant_table, width_table): Treat "unspecified" as
5069 the default value.
caf8d60c 5070
1a0de25c
JB
50712009-02-26 Juanma Barranquero <lekktu@gmail.com>
5072
5073 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5074
8fc45744
JB
50752009-02-25 Juanma Barranquero <lekktu@gmail.com>
5076
107bd7d1
JB
5077 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5078 error as soon as a recursive load is detected.
8fc45744 5079
f097e223
AR
50802009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5081
5082 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5083 before caching.
5084
8810a12f
KH
50852009-02-24 Kenichi Handa <handa@m17n.org>
5086
5087 * fontset.c (fontset_find_font): Fix the condition for checking
5088 unavailable font.
5089
2c7d1565
GM
50902009-02-24 Glenn Morris <rgm@gnu.org>
5091
5092 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5093 whitespace that confuses documentation.
5094
a20878b6
MB
50952009-02-23 Miles Bader <miles@gnu.org>
5096
5097 * process.c (Flist_system_processes, Fprocess_attributes)
5098 (syms_of_process): Rename `system-process-attributes' to
5099 `process-attributes'.
5100
b3b58c01
AS
51012009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5102
1b3b981b
AS
5103 * coding.h (struct coding_system): Make safe_charsets a pointer to
5104 unsigned char.
5105 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5106 being 255.
5107 (SAFE_CHARSET_P): Likewise.
5108 (setup_iso_safe_charsets): Properly setup safe_charsets.
5109 (Fdefine_coding_system_internal): Likewise.
5110 (setup_coding_system): Likewise. Remove unneeded casts.
5111 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5112 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5113 unneeded casts.
5114
b3b58c01
AS
5115 * insdel.c (del_range_2): Don't modify gap contents when called
5116 from decode_coding_object. (Bug#1809)
5117
0b6f228c
CY
51182009-02-21 Chong Yidong <cyd@stupidchicken.com>
5119
5120 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5121 Qfont_object.
5122 (Ftype_of): Recognize font objects.
5123
5124 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5125
5126 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5127 moved to data.c.
5128
52f8870b
AR
51292009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5130
5131 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5132 async_iconified. Based on a patch by Christian Lynbech
5133 <christian.lynbech@tieto.com>.
5134 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5135
7087d5e9
GM
51362009-02-20 Glenn Morris <rgm@gnu.org>
5137
5138 * syntax.c (Fskip_chars_forward): Fix doc typo.
5139
41d2ceef
CY
51402009-02-20 Chong Yidong <cyd@stupidchicken.com>
5141
5142 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5143
1a3b7ca6
CY
51442009-02-19 Chong Yidong <cyd@stupidchicken.com>
5145
5146 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5147
73cce38d
KH
51482009-02-19 Kenichi Handa <handa@m17n.org>
5149
5150 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5151 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5152
a51092ee
DN
51532009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5154
5155 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5156
c423ecca
KH
51572009-02-18 Kenichi Handa <handa@m17n.org>
5158
5159 * font.c (font_check_otf_features): Fix handling of `nil' element.
5160 (Ffont_spec): Describe :lang and :otf in the docstring.
5161
4c1958f4
AS
51622009-02-16 Andreas Schwab <schwab@suse.de>
5163
5164 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5165 string.
5166
5704f39a
KH
51672009-02-16 Kenichi Handa <handa@m17n.org>
5168
5169 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5170 (Bug#1723)
5704f39a 5171
8f0085aa
CY
51722009-02-14 Chong Yidong <cyd@stupidchicken.com>
5173
a057d86a 5174 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5175
5176 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5177 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5178
aff01dd9
EZ
51792009-02-14 Eli Zaretskii <eliz@gnu.org>
5180
5181 * msdos.c (MAX_SCREEN_BUF): New macro.
5182 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5183 Encode the entire run of glyphs sharing the same face, instead of
5184 doing that one glyph at a time (fixes a bug with displaying
5185 double-size characters).
5186
ba301db3
AR
51872009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5188
5189 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5190
5191 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5192 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5193 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5194
5195 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5196 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5197
51d861de
SM
51982009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5199
ac146f82 5200 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5201 invisible areas.
5202
7fed8996
JR
52032009-02-12 Jason Rumney <jasonr@gnu.org>
5204
631ea4fb
JR
5205 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5206 (add_font_entity_to_list): Call check_face_name even when family
5207 is unspecified.
5208
cb4a3e42
JR
5209 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5210 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5211 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5212
7fed8996 5213 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5214 raster fonts. (Bug#2219)
7fed8996 5215
895416e3
KH
52162009-02-12 Kenichi Handa <handa@m17n.org>
5217
5218 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5219 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5220 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5221 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5222 (find_automatic_composition): While looking forward and backward,
5223 check static composition. Fix where to stop looking forward.
5224 (composition_adjust_point): Fix checking of static composition.
5225 (Fcomposition_get_gstring): Pay attention to
1dacf998 5226 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5227
5228 * lisp.h (fast_looking_at): Extern it.
5229
5230 * search.c (fast_looking_at): New function.
5231
51d861de 5232 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5233 <struct glyph>.u.cmp.to.
5234 (append_composite_glyph): Likewise.
5235
51d861de 5236 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5237 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5238 composition.
51d861de 5239 (append_composite_glyph): Adjust for the change of
895416e3
KH
5240 <strcut glyph>.u.cmp.to.
5241
8510724d
JB
52422009-02-11 Juanma Barranquero <lekktu@gmail.com>
5243
5244 * casetab.c (init_casetab_once):
5245 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5246 * font.c (font_update_lface):
5247 * fontset.c (Fnew_fontset):
5248 * ftfont.c (ftfont_drive_otf):
5249 * xfont.c (xfont_open):
5250 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5251
294fa707
SM
52522009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5253
5254 * fileio.c (Fwrite_region): !NILP -> CONSP.
5255
b5bfebec
AS
52562009-02-10 Andreas Schwab <schwab@suse.de>
5257
5258 * process.c (send_process): Properly relocate pointer into data
adab88bd 5259 when using encoded data. (Bug#2272)
b5bfebec 5260
cb84a2be
KH
52612009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5262
5263 * coding.c (detect_coding_charset): Fix previous change.
5264
89e09428
JR
52652009-02-08 Jason Rumney <jasonr@gnu.org>
5266
5267 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5268 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5269
4470a277
AS
52702009-02-07 Andreas Schwab <schwab@suse.de>
5271
5272 * unexelf.c (unexec): Fix error message.
5273
3175b12a
AR
52742009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5275
5276 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5277 when modal window is active. (Bug #2152)
3175b12a
AR
5278 (applicationShouldTerminate:): Remove now-unneeded while loop
5279 around NSRunAlertPanel.
5280
5281 * nsmenu.m (popupSession): New file-global variable.
5282 (pop_down_menu): End the popupSession before closing dialog.
5283 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5284 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5285 don't query NSApp for events (just sleep instead).
5286
8434d0b8
EZ
52872009-02-07 Eli Zaretskii <eliz@gnu.org>
5288
51d861de
SM
5289 * coding.c (syms_of_coding) <translation-table-for-input>:
5290 Modify doc string to discourage use for character code unification.
8434d0b8 5291
aa82edfd
CY
52922009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5293
5294 * atimer.c (run_timers): Update pending_atimers.
5295
2d283c7c
CY
52962009-02-06 Chong Yidong <cyd@stupidchicken.com>
5297
eb306cab
CY
5298 * image.c (svg_load_image): Fix last change.
5299
2d283c7c
CY
5300 * xfns.c (Fx_create_frame): Signal an error if no font is
5301 found (Bug#2147).
5302
4d8e170e
JB
53032009-02-05 Juanma Barranquero <lekktu@gmail.com>
5304
5305 * character.c (syms_of_character) <script-representative-chars>:
5306 Fix typo in docstring.
5307
c96169a0
AR
53082009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5309
5310 * nsmenu.m (pop_down_menu): New function.
5311 (ns_popup_dialog): Call it on unwind.
5312 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5313 call timer_check() (Bug#2154).
5314 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5315 handling_signal is set.
5316 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5317
31fd7c5c 5318 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5319
5320 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5321
5322 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5323
51d861de
SM
5324 * keyboard.c (poll_for_input_1, handle_async_input):
5325 Set handling_signal under HAVE_NS.
c96169a0 5326
aacd8ba1
GM
53272009-02-04 Glenn Morris <rgm@gnu.org>
5328
5329 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5330
4cb75c4b
KH
53312009-02-04 Kenichi Handa <handa@m17n.org>
5332
5333 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5334
5335 * charset.c (Fchar_charset): New optional arg restriction.
5336
5337 * coding.h (coding_system_charset_list): Extern it.
5338
5339 * coding.c (coding_system_charset_list): New function.
5340
5341 * composite.c: Include coding.h and termhooks.h.
5342 (composition_gstring_p): Fix for the terminal case.
5343 (composition_gstring_width): Likewise.
5344 (fill_gstring_body): Likewise.
5345 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5346 the frame.
5347 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5348 is within a composition.
867d4bb3 5349 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5350
5351 * term.c (encode_terminal_code): Fix handling of composition.
5352 (produce_composite_glyph): For static composition, get pixel_width
5353 from struct composition.
5354
826ba17e
AS
53552009-02-02 Andreas Schwab <schwab@suse.de>
5356
5357 * unexelf.c (unexec): Handle unaligned bss offset.
5358
8ad093db
AR
53592009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5360
5361 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5362 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5363
8ad093db
AR
5364 * keyboard.c (handle_interrupt): Don't call
5365 quit_throw_to_read_char() under NS.
d0a76a6e 5366
8ad093db
AR
5367 * blockinput.h: Remove NS-specific code.
5368
4d18a7a2
DN
53692009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5370
db878925
DN
5371 * dispnew.c (window_change_signal): Don't try to get the size of a
5372 suspended tty frame.
5373 * term.c (Fresume_tty): Resize if the size has changed while the
5374 tty was suspended.
5375
4d18a7a2
DN
5376 * alloc.c (mark_stack): Properly conditionalize previous change.
5377
8984df7c
JB
53782009-01-30 Juanma Barranquero <lekktu@gmail.com>
5379
5380 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5381 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5382 Remove; this code is not used on Windows.
5383
75f4f1ac
EZ
53842009-01-30 Eli Zaretskii <eliz@gnu.org>
5385
5386 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5387 EOLs that also has stray ^M characters.
5388
07a1e794
JB
53892009-01-30 Juanma Barranquero <lekktu@gmail.com>
5390
5391 * atimer.c (run_timers, alarm_signal_handler):
5392 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5393 * w32inevt.c (w32_console_read_socket):
5394 * w32term.c (w32_read_socket):
5395 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5396
a8b11cc9
CY
53972009-01-30 Chong Yidong <cyd@stupidchicken.com>
5398
5399 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5400 Initialize it as a relative filename pattern.
5401 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5402 (Fcall_process_region): Simplify temp file creation using
5403 temporary-file-directory.
5404
c279587b
EZ
54052009-01-29 Eli Zaretskii <eliz@gnu.org>
5406
5407 * msdos.c: Rename pending_signals to msdos_pending_signals.
5408 (sig_suspender, sigprocmask): Adjust.
5409
a8fe3242
CY
54102009-01-29 Chong Yidong <cyd@stupidchicken.com>
5411
5412 * keyboard.c (pending_signals): New var.
5413 (poll_for_input, input_available_signal, init_keyboard): Set it.
5414 (process_pending_signals): New function.
5415
5416 * lisp.h (QUIT): Check pending_signals instead of
5417 interrupt_input_pending. Use process_pending_signals.
5418
51d861de 5419 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5420
51d861de 5421 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5422
5423 * sysdep.c (emacs_write): Use process_pending_signals.
5424
5425 * xterm.c (XTread_socket): Update pending_signals.
5426
5427 * w32term.c (w32_read_socket): Update pending_signals.
5428
5429 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5430
6570a1c4
KH
54312009-01-29 Kenichi Handa <handa@m17n.org>
5432
5433 * xftfont.c (xftfont_has_char): New function.
5434 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5435
d72a4afa
AR
54362009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5437
5438 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5439 under GNUstep.
5440 (ns_query_color): New declaration.
5441
5442 * nsterm.m (ns_confirm_quit): New variable.
5443 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5444 (EmacsApp-applicationShouldTerminate:): Use it.
5445 (EmacsPrefsController): Let user set it.
5446 (ns_query_color): New function.
5447 (ns_defined_color): Use it.
5448 (ns_initialize): Drop.
5449 (ns_term_init): Add two lines from ns_initialize(), and set
5450 input_interrupt_mode to nil.
5451
5452 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5453 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5454
9fe78804
KH
54552009-01-28 Kenichi Handa <handa@m17n.org>
5456
5457 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5458 (fontset_get_font_group): Remember that no font-group is specified
5459 for C.
9fe78804 5460
fa57de36
CY
54612009-01-27 Chong Yidong <cyd@stupidchicken.com>
5462
930600e9
CY
5463 * fns.c (concat): Check for string overflow (bug#1787).
5464
fa57de36
CY
5465 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5466 Quadruple undo limits (bug#1501).
5467
7179ce7b
KH
54682009-01-27 Kenichi Handa <handa@m17n.org>
5469
5470 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5471 directly use GT_Get_Char_index.
5472
5473 * xftfont.c (struct xftfont_info): New member `index'.
5474
5475 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5476 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5477
5be8fcc0
CY
54782009-01-26 Kenichi Handa <handa@m17n.org>
5479
5480 * fontset.c (fontset_find_font): Fix handling of non-cons return
5481 value of fontset_get_font_group.
5482 (fontset_font): Revert last change.
5483
19ae3e61
JR
54842009-01-26 Jason Rumney <jasonr@gnu.org>
5485
5486 * w32font.c (w32font_list_internal): Return quickly if registry is
5487 unknown. Simplify final return.
5488 (add_font_entity_to_list): Break complex logic down into more
5489 manageable chunks. Move unknown registry check to
5490 w32font_list_internal.
5491
8612b71a
AR
54922009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5493
5494 Changes to remove Feval calls from GUI under NS.
5495
d8038940
JB
5496 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5497 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5498 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5499
5500 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5501 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5502 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5503 instead of NON_ASCII_KEYSTROKE_EVENT.
5504 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5505 (EmacsApp-applicationShouldTerminate:): Query user.
5506 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5507 instead of Feval.
5508
5509 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5510
5511 * keyboard.c (kbd_buffer_get_event): Check for it.
5512 (keys_of_keyboard): Define lispy keys for
5513 ns-put/unput-working-text.
5514
5515 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5516 versions.
5517 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5518
6288ae55
CY
55192009-01-25 Chong Yidong <cyd@stupidchicken.com>
5520
5521 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5522 setting current_buffer directly. (Bug#2044)
6288ae55 5523
289e7f8f
CY
55242009-01-24 Chong Yidong <cyd@stupidchicken.com>
5525
5ce87308 5526 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5527 any work. (Bug#1952, bug#1990).
5ce87308 5528
64cc3cf6 5529 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5530
b3243e6f
AR
55312009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5532
5533 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5534 (ns_no_defaults): New declaration.
5535 (main): Use it.
e0d2e69a 5536
d900b2af 5537 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5538
d900b2af 5539 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5540
d900b2af
AR
5541 * nsterm.m (ns_no_defaults): New variable.
5542 (ns_initialize): Don't read defaults when ns_no_defaults.
5543 (EmacsView-readSelectionFromPasteboard:)
5544 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5545 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5546 (ns_dumpglyphs_stretch): New function.
5547 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5548 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5549
e0d2e69a
AR
5550 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5551
3ac71f5d
CY
55522009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5553
5554 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5555 call for Sparc64.
5556
3fe53a83
AR
55572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5558
5559 * nsfns.m:
5560 * nsgui.h:
5561 * nsmenu.m:
5562 * nsselect.m:
5563 * nsterm.h:
5564 * nsterm.m: Remove '23' comments that indicated code added during
5565 update from emacs-20 -> emacs-23.
5566
10f87c6f 55672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5568
5569 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5570 ns_alternate_modifier. (Bug#1217)
a3b53a85 5571
c7cef62d
AR
5572 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5573 Display all shortcuts, including those w/o super modifier.
5574
575fb8bd
AR
5575 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5576
918b848b
CY
55772009-01-22 Chong Yidong <cyd@stupidchicken.com>
5578
5579 * fileio.c (Vwrite_region_post_annotation_function)
5580 (Vwrite_region_annotation_buffers): New vars.
5581 (build_annotations_unwind): Just reset
5582 Vwrite_region_annotation_buffers.
5583 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5584 Call write-region-post-annotation-function.
5585 (build_annotations): Add to Vwrite_region_annotation_buffers if
5586 buffer changes.
5587
a39e2539
AR
55882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5589
5590 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5591 Tiger.
51d861de
SM
5592 * nsfns.m (ns_do_applescript):
5593 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5594
35ed44db
AR
55952009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5596
5597 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5598
cbe0b5bf
AR
55992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5600
5601 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5602
6049d3a0
AR
5603 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5604
5605 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5606 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5607 handle Ctrl-tab. (Bug#1841)
5608 (ns_get_color): Use unsigned long long for scanned hex string value.
5609 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5610 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5611 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5612 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5613 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5614 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5615 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5616
d3810c21 5617 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5618 DPI. (Bug#1316)
d3810c21
AR
5619 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5620 values in onTiger section.
4c7077c3 5621
e301e634
CY
56222009-01-19 Chong Yidong <cyd@stupidchicken.com>
5623
7f82490b
CY
5624 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5625 Check return value of font_spec_from_name.
64cc3cf6 5626 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5627
5628 * font.c (font_spec_from_name): Return Qnil if font name could not
5629 be parsed.
5630 (font_parse_name): Treat a `?' character as part of an XLFD.
5631
e301e634
CY
5632 * fns.c (Fsubstring): Doc fix.
5633
1c0db158
KH
56342009-01-19 Kenichi Handa <handa@m17n.org>
5635
51d861de 5636 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5637 (ftfont_list): Likewise.
5638
acf20901
JB
56392009-01-18 Juanma Barranquero <lekktu@gmail.com>
5640
fff4e459
JB
5641 * dbusbind.c (Fdbus_register_signal):
5642 * process.c (conv_sockaddr_to_lisp):
5643 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5644
acf20901
JB
5645 * callproc.c (Fgetenv_internal): Doc fix.
5646
e7abcdfb
CY
56472009-01-16 Chong Yidong <cyd@stupidchicken.com>
5648
5649 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5650 it is not even used.
5651
b60861e6
GM
56522009-01-16 Glenn Morris <rgm@gnu.org>
5653
5654 * font.c (Ffont_variation_glyphs): Silence compiler.
5655
8db52afe
JB
56562009-01-15 Juanma Barranquero <lekktu@gmail.com>
5657
5658 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5659 Reported by David Robinow <drobinow@gmail.com>.
5660
4cddb209
KH
56612009-01-15 Kenichi Handa <handa@m17n.org>
5662
51d861de 5663 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5664
f247f67b
JR
56652009-01-14 Jason Rumney <jasonr@gnu.org>
5666
5667 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5668 never a fontset. (Bug#1562)
f247f67b 5669
f56a4450
KH
56702009-01-14 Kenichi Handa <handa@m17n.org>
5671
5672 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5673 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5674
4e99855e
CY
56752009-01-13 Chong Yidong <cyd@stupidchicken.com>
5676
5677 * font.c (font_clear_prop): If clearing the family, clear the font
5678 width index too.
5679
fff4e459 5680 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5681
24f01470
JB
56822009-01-12 Juanma Barranquero <lekktu@gmail.com>
5683
5684 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5685 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5686 functions, use sizeof.
5687
a41240a3
MR
56882009-01-12 Martin Rudalics <rudalics@gmx.at>
5689
5690 * keyboard.c (read_char): Fix case where last_nonmenu_event
5691 returned a bad value with submenus. (Bug#447)
5692
944636b8
CY
56932009-01-12 Chong Yidong <cyd@stupidchicken.com>
5694
5695 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5696 family, clear the font width index too.
5697
0dad7c6f
JR
56982009-01-11 Jason Rumney <jasonr@gnu.org>
5699
5700 * keyboard.c (cmd_error_internal): Exit when errors occur before
5701 frame creation and not in daemon mode. (Bug#1836)
5702
7c2363af
CY
57032009-01-10 Chong Yidong <cyd@stupidchicken.com>
5704
5705 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5706 of a display vector, backtrack.
5707 (try_window_reusing_current_matrix): Check glyph type before
5708 referencing charpos member.
5709
97b1b294
EZ
57102009-01-10 Eli Zaretskii <eliz@gnu.org>
5711
5712 Fix Bug #876:
5713
5714 * coding.c (inhibit_null_byte_detection): New variable.
5715 (detect_coding, detect_coding_system): Don't pay attention to null
5716 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5717 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5718 <inhibit-iso-escape-detection>: Doc fix.
5719
4624b6e3
JR
57202009-01-09 Jason Rumney <jasonr@gnu.org>
5721
5722 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5723 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5724 Only report Unicode Plane 2 fonts as unicode-sip.
5725
323b840c
CY
57262009-01-09 Chong Yidong <cyd@stupidchicken.com>
5727
51d861de
SM
5728 * xfaces.c (Fx_font_family_list): Delete function.
5729 Move compatibility version to faces.el.
323b840c 5730
51d861de 5731 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5732
eba7400d
MR
57332009-01-09 Martin Rudalics <rudalics@gmx.at>
5734
5735 * frame.c (x_set_frame_parameters): Remember requested value for
5736 fullscreen before it's reset by the parameter handler.
5737
4b09796d
GM
57382009-01-09 Glenn Morris <rgm@gnu.org>
5739
5740 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5741 (last_command_event): ... and update all users.
4b09796d
GM
5742 (last_input_char): For clarity, rename to...
5743 (last_input_event): ... and update all users.
5744 (last-command-char, last-input-char): Move to subr.el as aliases.
5745 * cmds.c, commands.h: Update for last_command_char rename.
5746
14ccea62
CY
57472009-01-08 Chong Yidong <cyd@stupidchicken.com>
5748
51d861de 5749 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5750
5f004711
JR
57512009-01-08 Jason Rumney <jasonr@gnu.org>
5752
5753 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5754 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5755 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5756 Don't declare.
fff4e459 5757 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5758 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5759
b71f6f73
KH
57602009-01-07 Kenichi Handa <handa@m17n.org>
5761
50b06221 5762 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5763 remember the coding system used for decoding in
50b06221
KH
5764 coding_system (Bug#1039).
5765
b71f6f73 5766 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5767 breaking the loop. (Bug#870)
b71f6f73
KH
5768 (decode_coding_utf_16, decode_coding_emacs_mule)
5769 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5770 (decode_coding_charset): Likewise.
5771
56f668f7
MR
57722009-01-05 Martin Rudalics <rudalics@gmx.at>
5773
5774 * frame.c (x_set_frame_parameters): Make sure height (width) get
5775 applied when fullwidth (fullheight) is set. (Bug#1522)
5776
5da9424d
JB
57772009-01-04 Juanma Barranquero <lekktu@gmail.com>
5778
5779 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5780 (utc_base): Declare as ULONGLONG, not long double.
5781 (convert_time_raw): Delete.
5782 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5783 (initialize_utc_base): New function.
5784 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5785 (convert_from_time_t): Use initialize_utc_base; compute result with
5786 64-bit arithmetic.
5787 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5788
c4605e09
EZ
57892009-01-03 Eli Zaretskii <eliz@gnu.org>
5790
9acef61c 5791 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5792 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5793 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5794 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5795 [!subprocesses]: Define.
5796 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5797 (Flist_system_processes, Fsystem_process_attributes)
5798 [!subprocesses]: Call list_system_processes and
5799 system_process_attributes instead of returning Qnil.
5800
9acef61c
JB
5801 * dosfns.c (system_process_attributes, list_system_processes):
5802 New functions.
c4605e09
EZ
5803
5804 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5805
5806 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5807 Don't use the default (no-op) implementation.
5808
8b7d0a16
JR
58092009-01-03 Jason Rumney <jasonr@gnu.org>
5810
a6d46bc1
JR
5811 * keyboard.c (parse_modifiers_uncached): Wheel events are
5812 clicks (bug#687).
5813
8b7d0a16
JR
5814 * w32term.c (x_query_colors, x_query_color): New functions.
5815
5816 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5817 (svg_load_image): Cast returned pointers from dynamically loaded
5818 functions. Eliminate W32 specific code.
5819
bfe11752
DN
58202009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5821
89e2438a
DN
5822 * nsfns.m (x_set_foreground_color, x_set_background_color)
5823 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5824 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5825 x_ prefix instead of ns_. Update references.
5826 (syms_of_nsfns): Add a FIXME comment.
5827
5828 * nsterm.m (x_set_cursor_type): New prototype.
5829 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5830
bfe11752
DN
5831 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5832 for Solaris instead of incorrectly providing Qutime and Qcutime.
5833
031da700
EZ
58342009-01-02 Eli Zaretskii <eliz@gnu.org>
5835
5836 * w32.c (process_times): Compute sum of utime and stime.
5837 (system_process_attributes): Add Qtime to the alist.
5838
5839 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5840 and add them to the alist.
5841
5842 * process.c (top level) <Qtime, Qctime>: New variables.
5843 (syms_of_process): staticpro them.
5844 (Fsystem_process_attributes): Add their documentation to the doc
5845 string.
5846
5847 * process.h: Declare Qtime and Qctime.
5848
df23bf08
JR
58492009-01-02 Jason Rumney <jasonr@gnu.org>
5850
9acef61c 5851 * image.c (Qgobject): New symbol.
df23bf08
JR
5852 (syms_of_image): Initialize it.
5853 (init_svg_functions): Load some functions from gobject library.
5854
5bbdf7aa
DN
58552009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5856
5857 * frame.c (make_terminal_frame): Remove redundant code and useless
5858 block.
5859
63136da6
AS
58602009-01-01 Andreas Schwab <schwab@suse.de>
5861
5862 * process.c (conv_sockaddr_to_lisp): Add workaround for
5863 getsockname bug on BSD.
5864
9ef69046
CY
58652009-01-01 Chong Yidong <cyd@stupidchicken.com>
5866
d6fafbe0
CY
5867 * xfns.c (x_create_tip_frame): Set border width of the X window.
5868
51d861de 5869 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5870
f9c34147
JR
58712009-01-01 Jason Rumney <jasonr@gnu.org>
5872
9acef61c 5873 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5874 Don't block input, as per earlier xterm.c changes.
5875
f5497e45
AR
58762008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5877
5878 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5879 (ns_appkit_version_int): New function.
5880 (x-server-version): Use ns_appkit_version_int and follow 21+
5881 convention of returning 3 integers.
5882
c19cab20
KH
58832008-12-30 Kenichi Handa <handa@m17n.org>
5884
5885 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5886 (CHAR_SURROGATE_PAIR_P): New macro.
5887
5888 * font.h (struct font_driver): New member get_variation_glyphs.
5889
9acef61c 5890 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5891 (Ffont_variation_glyphs): New function.
5892 (syms_of_font): Defsubr it.
5893
5894 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5895 ftfont_variation_glyphs.
5896 (setup_otf_gstring): New function.
5897 (ftfont_drive_otf): Use it.
5898 (ftfont_shape_by_flt): Handle variation selector.
5899 (ftfont_variation_glyphs): New function.
5900
28cd591f
MR
59012008-12-30 Martin Rudalics <rudalics@gmx.at>
5902
5903 * frame.c (Vemacs_iconified): Remove.
5904
7f714baf
JR
59052008-12-30 Jason Rumney <jasonr@gnu.org>
5906
5907 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5908 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5909
9d2d22ab
CY
59102008-12-30 Chong Yidong <cyd@stupidchicken.com>
5911
5912 * indent.c (Fvertical_motion): Don't advance iterator if we have
5913 reseated to the desired position.
5914
5915 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5916 checking for pos match.
5917
545312c2
KH
59182008-12-30 Kenichi Handa <handa@m17n.org>
5919
1ede3eb6
KH
5920 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5921 just get the low 8-bit of the code.
5922
545312c2
KH
5923 * font.c (font_intern_prop): Validate str as multibyte.
5924
bd7bbf29
DN
59252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5926
31e0750e
DN
5927 * dispextern.h (struct face): Move lface and hash from the middle
5928 of bitfields.
5929
bd7bbf29
DN
5930 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5931
b5672e7c
DN
59322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5933
5934 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5935 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5936 instead of intervals.h.
5937
d704470f
AS
59382008-12-26 Andreas Schwab <schwab@suse.de>
5939
5940 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5941 cons.
5942
54b33868
MR
59432008-12-26 Martin Rudalics <rudalics@gmx.at>
5944
5945 * textprop.c (Qminibuffer_prompt): New variable.
5946 (syms_of_textprop): Initialize it.
5947 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5948 in minibuffer-prompt face. (Bug#1662)
5949
40b615d6
JR
59502008-12-25 Jason Rumney <jasonr@gnu.org>
5951
5952 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5953
baae5c2d
JR
59542008-12-24 Jason Rumney <jasonr@gnu.org>
5955
5956 * ralloc.c (r_alloc_reset_variable): New function.
5957
5958 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5959 record of what points where. (Bug#716)
baae5c2d 5960
a9051c88
DN
59612008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5962
5963 * minibuf.c (read_minibuf): Follow the non-interactive case when
5964 running as a daemon, before detaching.
5965
8b146312
AS
59662008-12-22 Andreas Schwab <schwab@suse.de>
5967
5968 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5969 * gtkutil.c (free_widget_value): Use xfree instead of free.
5970
56f2de10
MR
59712008-12-22 Martin Rudalics <rudalics@gmx.at>
5972
5973 * frame.c (delete_frame): New function derived from
5974 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5975 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5976 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5977 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5978 * frame.h: Extern delete_frame.
5979 * window.c (window_loop):
5980 * terminal.c (delete_terminal):
5981 * xterm.c (x_connection_closed):
5982 * xfns.c (Fx_hide_tip):
9acef61c 5983 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5984
1fc200d6
JR
59852008-12-21 Jason Rumney <jasonr@gnu.org>
5986
5987 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5988 when character maps to .notdef character.
5989
5e252df2
SM
59902008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5991
5992 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5993
99b72cc4
JR
59942008-12-20 Jason Rumney <jasonr@gnu.org>
5995
5996 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5997 a graphical frame on Windows. (Bug#1325)
99b72cc4 5998
acc49a52
JD
59992008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6000
6001 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6002
6ea15123
CY
60032008-12-20 Chong Yidong <cyd@stupidchicken.com>
6004
6005 * minibuf.c (Fread_buffer): Doc fix.
6006
b2dab6c8
JR
60072008-12-20 Jason Rumney <jasonr@gnu.org>
6008
54ea0c87 6009 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6010 server name in UNC paths. (Bug#719)
54ea0c87 6011
b2dab6c8 6012 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6013 charbuf. (Bug#1035)
b2dab6c8 6014
6d1921be
DN
60152008-12-19 Daniel Engeler <engeler@gmail.com>
6016
6017 * sysdep.c (serial_configure): Fix typo.
6018
53934c98
DN
60192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6020
6021 * sysdep.c: Include alloca.h.
f4f634e8
DN
6022 (system_process_attributes): Add implementation for Solaris.
6023
6024 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6025
06e111a6
DN
60262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6027
6028 Reorganize implementation of Flist_system_processes and
6029 Fsystem_process_attributes. No functional changes.
6030 * process.c: Don't #include pwd.h, grp.h and limits.h.
6031 (Flist_system_processes): Just call list_system_processes.
6032 (Fsystem_process_attributes): Just call system_process_attributes.
6033 (procfs_list_system_processes, time_from_jiffies)
6034 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6035 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6036
6037 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6038 (list_system_processes): Rename from
6039 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6040 Provide a do nothing implementation.
6041 (system_process_attributes): Rename from
6042 procfs_list_system_processes.
6043 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6044 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6045
6046 * w32.c (list_system_processes): Rename from
6047 w32_list_system_processes.
6048 (system_process_attributes): Rename from
6049 w32_system_process_attributes.
6050
6051 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6052
6053 * process.h (w32_list_system_processes)
6054 (w32_system_process_attributes): Remove.
362654a6
JB
6055 (list_system_processes, system_process_attributes):
6056 New prototypes.
06e111a6 6057
6a705b23
KH
60582008-12-19 Kenichi Handa <handa@m17n.org>
6059
6060 * xfont.c (xfont_decode_coding_xlfd): New function.
6061 (xfont_encode_coding_xlfd): New function.
6062 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6063 (xfont_list): Decode and encode XLFD by iso-8859-1.
6064 (xfont_match): Likewise.
6065 (xfont_list_family): Likewise.
6066 (xfont_open): Likewise.
6067
d66c0241 6068 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6069 names are utf-8.
6070
d66c0241 6071 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6072 names are utf-8.
6073
5a130941
JD
60742008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6075
6076 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6077 changed.
bfd20325
JD
6078 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6079 clicked on a detached tool bar button.
5a130941 6080
fd95644b
DN
60812008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6082
6083 * emacs.c (main): Print and error and exit when no data is read
6084 from the pipe.
6085
e6eee6ae
JR
60862008-12-17 Jason Rumney <jasonr@gnu.org>
6087
6088 * w32font.c (w32font_has_char): Always return -1.
6089
a35dd56b
KH
60902008-12-16 Kenichi Handa <handa@m17n.org>
6091
6092 * font.c (font_open_entity): Fix previous change.
6093
0e3635c2
DN
60942008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * process.c: Include <limits.h>.
6097
d4835507 60982008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6099
6100 * font.c (font_update_drivers): Fix mistake in reconstructing the
6101 driver list.
6102
61032008-12-16 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * font.c (font_clear_cache): Fix format of font cache data.
6106
e2cbc401
CY
61072008-12-15 Chong Yidong <cyd@stupidchicken.com>
6108
6109 * xftfont.c (xftfont_open): Free Xft font pattern if
6110 XftFontOpenPattern fails.
6111
6112 * xterm.c (x_free_frame_resources): Remove extraneous call to
6113 free_frame_faces.
6114
b131d535
CY
61152008-12-13 Chong Yidong <cyd@stupidchicken.com>
6116
6117 * xterm.c (x_delete_display): Move xim_close_dpy call to
6118 x_delete_terminal.
6119 (x_delete_terminal): Call xim_close_dpy.
6120
e6df5336
JR
61212008-12-13 Jason Rumney <jasonr@gnu.org>
6122
6123 * w32font.c (intern_font_name): New function.
6124 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6125 (w32font_open_internal, Fx_select_font): Decode font name.
6126 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6127
6128 * w32font.h (intern_font_name): Declare new function.
6129
6130 * w32uniscribe.c (add_opentype_font_name_to_list):
6131 Use intern_font_name.
6132
20d68145
CY
61332008-12-13 Chong Yidong <cyd@stupidchicken.com>
6134
9f2554de
CY
6135 * frame.c (Fdelete_frame): Call free_font_driver_list.
6136
3d9bec9a
CY
6137 * font.c (free_font_driver_list): Implement missing function.
6138
20d68145
CY
6139 * w32term.c (w32_term_init): Don't initialize the image cache
6140 here; it will be done in init_frame_faces.
6141
6142 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6143 (struct x_display_info): Remove unused member null_pixel. New
6144 member xim_callback_data.
6145
6146 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6147 (xim_initialize): Save pointer to callback function data.
6148 (xim_close_dpy): Free callback function data. Call XCloseIM,
6149 reverting 2008-11-04 change by David Smith.
6150 (x_term_init): Don't initialize the image cache here; it will be
6151 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6152 (x_delete_display): Free x_dnd_atoms member.
6153
96f9306b
KH
61542008-12-13 Kenichi Handa <handa@m17n.org>
6155
6dec9044
JB
6156 * font.c (font_rescale_ratio): Moved from xfaces.c.
6157 Argument type changed. Handle a font-spec too.
96f9306b 6158 (font_score): Check Vface_font_rescale_alist.
6dec9044 6159 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6160
6161 * xfaces.c (font_rescale_ratio): Moved to font.c.
6162
8d5b4964
CY
61632008-12-13 Chong Yidong <cyd@stupidchicken.com>
6164
6165 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6166
e6df5336
JR
61672008-12-12 Jason Rumney <jasonr@gnu.org>
6168
6169 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6170 Vwindow_system_version to the real w32 major version.
6171
97c6058a
DN
61722008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 * term.c (init_tty): Move setting the terminal name before the
6175 potential user: maybe_fatal.
6176
ec4e88d7
CY
61772008-12-11 Chong Yidong <cyd@stupidchicken.com>
6178
d4835507
JB
6179 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6180 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6181
b4233ec9
JR
61822008-12-11 Jason Rumney <jasonr@gnu.org>
6183
8ec71e23 6184 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6185 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6186
b4233ec9 6187 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6188 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6189
011a0143
JB
61902008-12-11 Juanma Barranquero <lekktu@gmail.com>
6191
6192 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6193
3c309f34
JB
61942008-12-11 Juanma Barranquero <lekktu@gmail.com>
6195
6196 * process.c (Fsystem_process_attributes, syms_of_process):
6197 Fix typo in name of Ssystem_process_attributes.
6198 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6199
fedc6ab5
JB
62002008-12-11 Juanma Barranquero <lekktu@gmail.com>
6201
6202 * syntax.c (Fmodify_syntax_entry): Doc fix.
6203
ba3de0e8
JB
62042008-12-10 Juanma Barranquero <lekktu@gmail.com>
6205
6206 * font.c (Ffont_spec): Move usage to end of docstring.
6207
174f1c74
JR
62082008-12-10 Jason Rumney <jasonr@gnu.org>
6209
6210 * w32font.c (Qcham): New symbol.
6211 (font_supported_scripts): Add cham, and comments for other new
6212 scripts in bitfield from OpenType spec.
9d32f818
JR
6213 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6214 contain characters beyond the bmp.
174f1c74 6215
7b649478
KH
62162008-12-10 Kenichi Handa <handa@m17n.org>
6217
6218 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6219 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6220 Qunicode_sip.
6221
2133e2d1
JB
62222008-12-10 Juanma Barranquero <lekktu@gmail.com>
6223
6224 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6225 (Fcoding_system_put): Use QCdefault_char.
6226 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6227
9af886ee
CY
62282008-12-09 Chong Yidong <cyd@stupidchicken.com>
6229
74d819eb
CY
6230 * xftfont.c (syms_of_xftfont): Fix typo.
6231
4ccfa1c0 6232 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6233
7c19d3ae
DN
62342008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6235
6236 * emacs.c (main): Close daemon_pipe on exec.
6237
567826bb
CY
62382008-12-08 Chong Yidong <cyd@stupidchicken.com>
6239
6240 * termchar.h (struct tty): New members termcap_term_buffer and
6241 termcap_strings_buffer.
6242
6243 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6244 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6245 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6246 All callers changed.
6247 (init_tty): Store termcap data and string buffers in new struct
6248 tty members termcap_term_buffer and termcap_strings_buffer.
6249 (delete_tty): Free them.
4ccfa1c0 6250 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6251
aa96c42b
SZ
62522008-12-07 Seiji Zenitani <zenitani@mac.com>
6253
6254 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6255 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6256
b7e1d896
CY
62572008-12-06 Chong Yidong <cyd@stupidchicken.com>
6258
6259 * coding.c (make_conversion_work_buffer): Disable buffer
6260 modification hooks in the work buffer.
6261
b5ec91a5
EZ
62622008-12-05 Eli Zaretskii <eliz@gnu.org>
6263
6264 * process.c (procfs_system_process_attributes): If `nread' has a
6265 negative value, assign zero to it.
6266
a5d2a52b
CY
62672008-12-05 Chong Yidong <cyd@stupidchicken.com>
6268
68c5540b 6269 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6270
7bf1bb21
KH
62712008-12-05 Kenichi Handa <handa@m17n.org>
6272
6273 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6274 second character is a combining character.
6275
2fdc7d00
EZ
62762008-12-05 Eli Zaretskii <eliz@gnu.org>
6277
6278 * process.c (procfs_system_process_attributes): Don't use cmd,
6279 cmdsize, and q without initializing them first.
6280
bf6bfba8
JR
62812008-12-04 Jason Rumney <jasonr@gnu.org>
6282
6283 * w32font.c (w32font_draw): Initialize orig_clip before getting
6284 it, and delete it when finished.
6285
a3b1a468
DN
62862008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6287
6288 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6289 case when running as a daemon before detaching.
6290
8b8be8eb
JB
62912008-12-03 Juanma Barranquero <lekktu@gmail.com>
6292
805f2638 6293 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6294
b1bde622
KH
62952008-12-03 Kenichi Handa <handa@m17n.org>
6296
e500c47d
KH
6297 * font.c (font_at): Set `multibyte' at first.
6298
ca516334
KH
6299 * coding.c (decode_coding_charset): Check type of an element of
6300 vector VALIDS.
7bf1bb21 6301 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6302
4ccfa1c0 6303 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6304 (font_for_char): Likewise.
6305
1e5ecd37
CY
63062008-12-03 Chong Yidong <cyd@stupidchicken.com>
6307
d5b01609 6308 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6309 (font_update_lface): Handle fonts with corrupted size specs,
6310 i.e. non-int and non-float.
d5b01609 6311
11e3a6e4 6312 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6313 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6314 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6315
ab06788b
CY
6316 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6317
1e5ecd37 6318 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6319 underline_minimum_offset for underline position.
1e5ecd37 6320
63c125ab
DN
63212008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6322
6323 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6324
6325 * character.c (c_string_width): Specify the type for LEN.
6326
3a8406e1
KH
63272008-12-03 Kenichi Handa <handa@m17n.org>
6328
4ccfa1c0 6329 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6330 (decode_coding_utf_8): Likewise.
4ccfa1c0 6331 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6332 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6333
651df7d9
CY
63342008-12-02 Chong Yidong <cyd@stupidchicken.com>
6335
6336 * keyboard.c (make_lispy_position): Only use PT if the selected
6337 window is current.
6338
1f625c6c
AS
63392008-12-02 Andreas Schwab <schwab@suse.de>
6340
f7741ce9
AS
6341 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6342
1f625c6c
AS
6343 * doprnt.c (doprnt1): Fix size of charbuf.
6344
92bc2678
CY
63452008-12-02 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * keyboard.c (timer_check): Revert last change.
6348
93b9e8cc
JB
63492008-12-02 Juanma Barranquero <lekktu@gmail.com>
6350
6351 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6352
fd7a37d5
JB
63532008-12-01 Juanma Barranquero <lekktu@gmail.com>
6354
6355 * makefile.w32-in: Update dependencies.
6356 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6357
c115043b
AS
63582008-12-01 Andreas Schwab <schwab@suse.de>
6359
6360 * font.c (register_font_driver): Use xmalloc.
6361 (font_put_frame_data): Likewise.
6362
f5668d2a
CY
63632008-12-01 Chong Yidong <cyd@stupidchicken.com>
6364
860d96be
CY
6365 * xfaces.c (realize_x_face): Make abort condition clearer.
6366
f5668d2a
CY
6367 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6368
379c17e7
CY
63692008-11-30 Chong Yidong <cyd@stupidchicken.com>
6370
6371 * keyboard.c (timer_check): After a timer runs, ensure that the
6372 selected window's buffer is current.
6373
35f36d65
JB
63742008-11-30 Juanma Barranquero <lekktu@gmail.com>
6375
f952c61c
JB
6376 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6377 It was accidentally restored by the Unicode merge.
6378
35f36d65
JB
6379 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6380
b23077df
JB
63812008-11-29 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * w32proc.c: Include "coding.h".
6384 (Fw32_short_file_name): Encode filename passed to Windows API.
6385 (Fw32_long_file_name): Encode filename passed to Windows API and
6386 decode back the result. (Bug#1433)
6387
b8ebe9dd
KH
63882008-11-29 Kenichi Handa <handa@m17n.org>
6389
8cc53f96
KH
6390 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6391 not before accessing it.
6392
b8ebe9dd
KH
6393 * charset.c (Fdefine_charset_internal): After calculating
6394 min_char, max_char, and fastmap, copy the charset structure again.
6395 (encode_char): Fix the previous change.
6396
59bc82c0
SZ
63972008-11-28 Seiji Zenitani <zenitani@mac.com>
6398
6399 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6400
6401 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6402
6403 * nsterm.m (x_set_frame_alpha): New function.
6404
32247e3d
EZ
64052008-11-27 Eli Zaretskii <eliz@gnu.org>
6406
6407 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6408
b003e5ff
JB
64092008-11-27 Juanma Barranquero <lekktu@gmail.com>
6410
6411 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6412 pointer to check_face_name.
6413
708550f5
KH
64142008-11-27 Kenichi Handa <handa@m17n.org>
6415
6416 * category.h (SET_CATEGORY_SET): Call set_category_set.
6417 (set_category_set): Extern it.
6418
6419 * category.c (hash_get_category_set): New function.
6420 (Fmodify_category_entry): Adjusted for the change of
6421 char_table_ref_and_range. Call hash_get_category_set to get a
6422 category set to store in the table.
6423
6424 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6425 Funify_charset.
6426
2ae37cf0 6427 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6428 (DECODE_CHAR): Check if the decoder vector is ready.
6429 (ENCODE_CHAR): Check if the encoder char-table is ready.
6430 (maybe_unify_char): Extern it.
6431
6432 * charset.c (Vchar_unified_charset_table): Delete it.
6433 (inhibit_load_charset_map): New variable.
6434 (temp_charset_work): New variable.
6435 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6436 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6437 New macros.
6438 (load_charset_map): Meaning of control_flag changed. If
6439 inhibit_load_charset_map is nonzero, setup a table in
6440 temp_charset_work.
6441 (load_charset): New argument control_flag.
6442 (map_charset_for_dump): New function.
6443 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6444 map_charset_for_dump.
6445 (Fdefine_charset_internal): If the charset method is MAP, load
6446 mapping tables by calling load_charset.
6447 (Funify_charset): Don't load a mapping table but directly set
6448 Vchar_unify_table.
6449 (maybe_unify_char): New function.
6450 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6451 Handle the case of inhibit_load_charset_map being nonzero.
6452 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6453 Handle the case of inhibit_load_charset_map being nonzero.
6454 (Fclear_charset_maps): Just free temp_charset_work.
6455 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6456 variable.
6457
6458 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6459 change of char_table_ref_and_range.
6460 (char_table_ref_and_range): Change the meaning of argument FROM
6461 and TO. Now the caller must provide initial values for *FROM
6462 and *TO.
6463
6464 * fontset.c (fontset_add): Adjusted for the change of
6465 char_table_ref_and_range.
6466 (fontset_get_font_group): Likewise.
6467 (Ffontset_info): Likewise.
6468
6469 * keymap.c (describe_vector): Adjusted for the change of
6470 char_table_ref_and_range. For char-table, put boundary between
6471 non-ASCII and 8-bit characters.
6472
6473 * print.c (print_object): For bool-vector, delete unnecessary
6474 check of ASCII_BYTE_P.
6475
9196133b
JR
64762008-11-26 Jason Rumney <jasonr@gnu.org>
6477
6478 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6479 leading in font height. (Bug#879)
9196133b 6480
9f688acf
GM
64812008-11-26 Glenn Morris <rgm@gnu.org>
6482
6483 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6484 redefinition with ifdef. (Bug#1383)
6485
90d19aff
AR
64862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6487
6488 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6489
4ccfa1c0 64902008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6491
6492 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6493 New EmacsView methods.
6494 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6495 Fixes bug #1048,1357,1414.
6496
64972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6498
6499 Fix bug #1362.
6500 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6501 is not an indexed color.
6502 * nsterm.m (free_indexed_color): Add argument checking.
6503 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6504
e7d5ecb3
CY
65052008-11-24 Chong Yidong <cyd@stupidchicken.com>
6506
6507 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6508 Document confirm-after-completion value for
6509 minibuffer-completion-confirm.
6510
c285743c
JR
65112008-11-24 Jason Rumney <jasonr@gnu.org>
6512
6513 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6514 warning.
6515
b0857706
JR
65162008-11-23 Jason Rumney <jasonr@gnu.org>
6517
6518 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6519 restored before returning.
6520
6521 * w32font.c (check_face_name): New function.
6522 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6523 fonts. (Bug#642)
b0857706 6524
ee50ff07
MR
65252008-11-22 Martin Rudalics <rudalics@gmx.at>
6526
6527 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6528 confirm-nonexistent-file-or-buffer in doc-string.
6529
b8ff72fa
SM
65302008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6531
6532 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6533 Fix copy/paste typo. Add checks.
6534
cee53ed4
KH
65352008-11-21 Kenichi Handa <handa@m17n.org>
6536
6537 * coding.c (detect_coding_iso_2022): Reject invalid composition
6538 sequence.
6539 (DECODE_COMPOSITION_START): If the current source is the last
6540 block, and the current composition doesn't end, regard this
6541 sequence as invalid.
6542 (decode_coding_iso_2022): Handle invalid composition sequence.
6543
f6ef1e65
MR
65442008-11-20 Martin Rudalics <rudalics@gmx.at>
6545
6546 * window.c (coordinates_in_window): Don't return
6547 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6548 line when the window is not the rightmost one. (Bug#1372)
6549
e08b1705
MR
65502008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6551
6552 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6553
ad98e89f
EZ
65542008-11-15 Eli Zaretskii <eliz@gnu.org>
6555
6556 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6557 and bright_bg if noninteractive is non-zero.
6558
fb098a4b
CY
65592008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6560
6561 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6562 x_draw_glyph_string_background.
6563
6564 * w32term.c (x_draw_glyph_string): Likewise.
6565
ce952b6e
CY
65662008-11-15 Chong Yidong <cyd@stupidchicken.com>
6567
6568 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6569 the next glyph string once past the overhang width.
6570
6571 * nsterm.m (ns_draw_glyph_string): Likewise.
6572
6573 * w32term.c (x_draw_glyph_string): Likewise.
6574
26ea7079
CY
65752008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6576
6577 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6578 double file close.
6579
1c33c906
MR
65802008-11-14 Martin Rudalics <rudalics@gmx.at>
6581
6582 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6583 dedicated status of window before attempting to display another
6584 buffer in it.
6585
8fc29035
JB
65862008-11-14 Juanma Barranquero <lekktu@gmail.com>
6587
6588 * msdos.c (Fmsdos_long_file_names):
6589 (syms_of_msdos) <dos-unsupported-char-glyph>:
6590 * dosfns.c (Fint86): Fix typos in docstrings.
6591
55fb4286
EZ
65922008-11-14 Eli Zaretskii <eliz@gnu.org>
6593
6594 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6595
3fda0315
KY
65962008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6597
6598 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6599
7e849c17
CY
66002008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6601
6602 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6603
6604 * frame.h: Negative alpha means "don't touch".
6605
6606 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6607
6608 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6609
b9fd67bd
DN
66102008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6611
6612 * hftctl.c:
6613 * chpdef.h:
6614 * acldef.h: Remove files used only for systems no longer supported.
6615
6616 * Makefile.in: Fix .o alphabetical ordering.
6617 (hftctl.o): Remove dependency, file removed.
6618 (keymap.o, print.o): Depend on charset.h.
6619
d5998e03
KH
66202008-11-10 Kenichi Handa <handa@m17n.org>
6621
2ae37cf0 6622 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6623
be70e183
CY
66242008-11-08 Chong Yidong <cyd@stupidchicken.com>
6625
6626 * dired.c (file_name_completion): If completion_ignore_case is
6627 enabled, ignore case when checking completion-regexp-list.
6628
7cf94eac
EZ
66292008-11-08 Eli Zaretskii <eliz@gnu.org>
6630
6631 * vm-limit.c (get_lim_data): Fix last change.
6632
ee107a89
KH
66332008-11-08 Kenichi Handa <handa@m17n.org>
6634
6635 * character.c (Fget_byte): New function.
6636 (syms_of_character): Defsubr Fget_byte.
6637
5fd15622
CY
66382008-11-07 Chong Yidong <cyd@stupidchicken.com>
6639
6640 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6641 cursor position is valid after scrolling.
6642
13d62fad
JB
66432008-11-06 Juanma Barranquero <lekktu@gmail.com>
6644
6645 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6646
a1dd2936
GM
66472008-11-06 Glenn Morris <rgm@gnu.org>
6648
6649 * xterm.c (handle_one_xevent): Don't let popup menus cause
6650 mouse-autoselect-window related window switching. (Bug#1261)
6651
860cd236
CY
66522008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6653
6654 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6655
653a3150
AS
66562008-11-04 Andreas Schwab <schwab@suse.de>
6657
6658 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6659
870f5cac
CY
66602008-11-03 Chong Yidong <cyd@stupidchicken.com>
6661
6662 * xfns.c (Fx_wm_set_size_hint): New function.
6663
1e02f3cb
MR
66642008-11-03 Martin Rudalics <rudalics@gmx.at>
6665
6666 * textprop.c (Fprevious_single_char_property_change): Return 0
6667 when there's no change in a string. (Bug#1301)
6668
e630dfc6
MR
66692008-11-02 Martin Rudalics <rudalics@gmx.at>
6670
6671 * frame.c (do_switch_frame): New argument NORECORD passed to
6672 Fselect_window.
6673 (Fselect_frame): New argument NORECORD passed to
6674 do_switch_frame.
6675 (Fset_frame_selected_window): New argument NORECORD passed to
6676 Fselect_frame.
6677 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6678 in call of do_switch_frame.
6679 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6680 Handle NORECORD argument in call of Fselect_frame.
6681 * lisp.h (do_switch_frame, Fselect_frame)
6682 (Fset_frame_selected_window): Adjust declarations.
6683 * window.c (select_frame_norecord): New function.
6684 (run_window_configuration_change_hook): Use it and call
6685 Fselect_frame with NORECORD set.
6686 (Fselect_window): Pass NORECORD to Fselect_frame.
6687 (Fset_window_configuration): Handle NORECORD argument in call of
6688 do_switch_frame.
6689 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6690 Fset_frame_selected_window.
6691 * keyboard.c (command_loop_1): Handle NORECORD in call of
6692 Fselect_frame (currently ifdefd).
6693
9020b223
GM
66942008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6695
6696 * emacs.c (USAGE2): Untabify.
6697
793ffee8
SM
66982008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6699
6700 * composite.c (fill_gstring_header): Fix copy/paste typo.
6701
ab6d1131
MR
67022008-10-31 Martin Rudalics <rudalics@gmx.at>
6703
6704 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6705 (Fother_window): Rename argument and rewrite doc-string.
6706 (select_window_norecord): Fix return value. (Bug#1276)
6707
601a9cf1
JB
67082008-10-30 Juanma Barranquero <lekktu@gmail.com>
6709
6710 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6711 new frames overriding foreground for tooltips. Based on similar patch
6712 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6713
813b0652
CY
67142008-10-29 Chong Yidong <cyd@stupidchicken.com>
6715
6716 * emacs.c (Fdaemon_initialized): Initialize nfd.
6717
4414f58f
MR
67182008-10-29 Martin Rudalics <rudalics@gmx.at>
6719
6720 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6721 (Fwindow_text_height): Clarify doc-strings.
6722 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6723 doc-string of window-scroll-functions.
6724
ecdcaa09
RS
67252008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6726
6727 * category.c (syms_of_category): Fix typo in docstring.
6728
23fe745a
JB
67292008-10-28 Juanma Barranquero <lekktu@gmail.com>
6730
6731 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6732 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6733 Fix typos in docstrings.
6734
ff808935
DN
67352008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6736
6737 * emacs.c (daemon_pipe): Make non-static.
6738 (IS_DAEMON): Move definition ...
6739 * lisp.h (IS_DAEMON): ... here.
6740 (daemon_pipe): Declare.
6741 (is_daemon): Remove.
6742 * dispnew.c (init_display): Use IS_DAEMON.
6743
fc012771
SM
67442008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6745
6746 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6747 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6748
6749 * emacs.c (is_daemon): Remove.
6750 (main): Don't set is_daemon.
6751 (IS_DAEMON): New macro.
6752 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6753 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6754 parent exits.
6755 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6756
d8bdbe6f
CY
67572008-10-27 Chong Yidong <cyd@stupidchicken.com>
6758
d1a072bf
CY
6759 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6760 over-sized glyph, draw it with the default glyph width.
6761
e2e325aa
CY
6762 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6763 glyph, draw it with the default glyph width.
6764
6765 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6766 glyph, draw it with the default glyph width.
6767
d8bdbe6f
CY
6768 * xdisp.c (try_scrolling): When computing the distance from the
6769 scroll margin to PT, try moving some distance past the window
6770 bottom before giving up.
6771
7bfac547
MR
67722008-10-27 Martin Rudalics <rudalics@gmx.at>
6773
6774 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6775 (Fset_window_buffer): Explain in doc-string that a window can be
6776 "strongly" dedicated to its buffer.
6777
4ff029f6
DN
67782008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6779
6780 * emacs.c (daemon_name): New variable.
6781 (main): Deal with --daemon=SERVER_NAME.
6782 (Fdaemonp): Return a name if one was passed to --daemon.
6783
5790ef40
DN
67842008-10-26 Romain Francoise <romain@orebokech.com>
6785
f9bd0df9 6786 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6787 (main): Create a pipe before forking, make the parent exit only after
6788 the child has closed its end of the pipe. Move closing the
6789 descriptors ...
6790 (Fdaemon_initialized): ... here. New function.
6791
f5385255
SM
67922008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6793
4d632321
SM
6794 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6795 the previous unoptimized table.
6796
f5385255
SM
6797 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6798 the distinction between non-nil and non-t value of `dedicated'.
6799
6c56a0f3
CY
68002008-10-25 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6803 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6804
fec89261
MR
68052008-10-25 Martin Rudalics <rudalics@gmx.at>
6806
6807 * window.c (Fget_buffer_window, Fdelete_windows_on)
6808 (Freplace_buffer_in_windows): Make buffer argument optional and
6809 rename to buffer_or_name.
6810
34fcddd0
CY
68112008-10-24 Chong Yidong <cyd@stupidchicken.com>
6812
f5385255
SM
6813 * xdisp.c (handle_single_display_spec, handle_display_prop):
6814 Undo 2005-05-16 change.
34fcddd0
CY
6815 (handle_stop): Pop iterator if it's loaded with an empty string.
6816 (get_overlay_strings_1): Don't save iterator if it's loaded with
6817 an empty string (bug#1201).
6818
064766f2
KH
68192008-10-24 Kenichi Handa <handa@m17n.org>
6820
6821 * ftfont.c (ftfont_otf_features): Fix previous change.
6822 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6823 calling ftfont_otf_features.
6824
f9bd0df9 68252008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6826
6827 * font.c (font_match_p): Fix for the case that a vector of
6828 characters is in script-representative-chars.
6829
1dae9197
MA
68302008-10-24 Michael Albinus <michael.albinus@gmx.de>
6831
6832 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6833 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6834 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6835 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6836 macro. (Bug#1186)
1dae9197 6837
f9bd0df9 68382008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6839
6840 * s/sol2-10.h: New file.
6841
878a4584
JB
68422008-10-23 Juanma Barranquero <lekktu@gmail.com>
6843
6844 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6845 poor beast has survived 9+ years and the jump from xterm.c!).
6846
cd265ca6
MR
68472008-10-23 Martin Rudalics <rudalics@gmx.at>
6848
6849 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6850 Reword doc-string.
f5385255 6851 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6852
472a4dc9
JB
68532008-10-23 Juanma Barranquero <lekktu@gmail.com>
6854
6855 * character.c (syms_of_character) <script-representative-chars>:
6856 <unicode-category-table>: Doc fixes.
6857
159bd5a2
NF
68582008-10-23 Noah Friedman <friedman@splode.com>
6859
6860 * coding.c (make_conversion_work_buffer): Check that
6861 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6862 Fget_buffer_create.
6863
49f9c344
KH
68642008-10-23 Kenichi Handa <handa@m17n.org>
6865
6866 * font.c (font_add_log): Check the values of extra properties.
6867
12bb3111
MR
68682008-10-22 Martin Rudalics <rudalics@gmx.at>
6869
6870 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6871 Reword doc-string.
6872 (Fset_window_parameter): Use NILP.
6873 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6874 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6875
bbeb4e99
JB
68762008-10-22 Juanma Barranquero <lekktu@gmail.com>
6877
6878 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6879
68802008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6881
6882 * nsfns.m (ns_appkit_version): New function.
6883 (x-server-version): Use it.
6884 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6885 (x-server-vendor): Don't check_ns().
6886
6887 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6888
a9b555d3
JB
68892008-10-22 Juanma Barranquero <lekktu@gmail.com>
6890
6891 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6892 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6893
4626499f
KH
68942008-10-22 Kenichi Handa <handa@m17n.org>
6895
e3681952
KH
6896 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6897 scripts.
6898
4626499f
KH
6899 * category.c (word_boundary_p): Check scripts instead of charset.
6900 Handle nil value in word-separating-categories and
6901 word-combining-categories.
6902 (syms_of_category): Fix docstrings of word-separating-categories
6903 and word-combining-categories.
6904
1560f91a
EZ
69052008-10-21 Eli Zaretskii <eliz@gnu.org>
6906
6907 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6908 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6909
f4668441
MR
69102008-10-21 Martin Rudalics <rudalics@gmx.at>
6911
6912 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6913 Rename arg "buffer" to "buffer_or_name".
6914 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6915 it optional.
6916 (no_switch_window): Remove since the return value is not used.
a9b555d3 6917 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6918 Consider window as dedicated when Fwindow_dedicated_p returns a
6919 non-nil value.
6920 * lisp.h: Remove prototype for no_switch_window.
6921
fd75ddb2
JD
69222008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6923
6924 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6925 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6926
07295713
KH
69272008-10-21 Kenichi Handa <handa@m17n.org>
6928
6929 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6930 check Vlatin_extra_code_table.
6931
712adc82
EZ
69322008-10-20 Eli Zaretskii <eliz@gnu.org>
6933
6934 * fileio.c (Fset_file_modes): Doc fix.
6935
f549eb0b
MA
69362008-10-19 Michael Albinus <michael.albinus@gmx.de>
6937
6938 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6939 in arrays.
6940
aac0c6e3
MR
69412008-10-19 Martin Rudalics <rudalics@gmx.at>
6942
6943 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6944 Mention kill-buffer in doc-string.
6945 (Fset_window_buffer): Reinsert tem check removed in last commit.
6946 (Fenlarge_window, Fshrink_window): Have argument names and
6947 doc-string follow Elisp manual more closely.
6948
69492008-10-18 Eli Zaretskii <eliz@gnu.org>
6950
6951 * fileio.c (Fset_file_modes): Doc fix.
6952
69532008-10-18 Martin Rudalics <rudalics@gmx.at>
6954
6955 * window.c (Fwindow_width, Fset_window_start)
6956 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6957 (Fdelete_windows_on, Freplace_buffer_in_windows):
6958 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6959 (Fwindow_dedicated_p): Make window argument optional.
6960 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6961 (Fset_window_buffer): Respect any non-nil dedicated value for
6962 window. Rename "buffer" argument to "buffer_or_name".
6963
69642008-10-18 Ulrich Mueller <ulm@gentoo.org>
6965
6966 * m/sh3.h: New file, machine description for SuperH.
6967
69682008-10-17 Martin Rudalics <rudalics@gmx.at>
6969
6970 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6971
69722008-10-17 Kenichi Handa <handa@m17n.org>
6973
6974 * ftfont.c (ftfont_otf_features): Fix indexing
6975 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6976
69772008-10-16 Magnus Henoch <mange@freemail.hu>
6978
6979 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6980 (Fdbus_call_method_asynchronously): Ditto.
6981 This change makes C-h f display the argument list.
6982
69832008-10-16 Chong Yidong <cyd@stupidchicken.com>
6984
6985 * fileio.c (Fexpand_file_name): Doc fix.
6986
6987 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6988 of :foreground and :background equivalent to unspecified (20.x
6989 compatibility).
6990
69912008-10-15 Eli Zaretskii <eliz@gnu.org>
6992
6993 * buffer.c (syms_of_buffer): Doc fix.
6994
69952008-10-14 Kenichi Handa <handa@m17n.org>
6996
6997 * font.c (font_clear_prop): When clearing font width, clear the
6998 average width field too.
6999
70002008-10-12 Andreas Schwab <schwab@suse.de>
7001
7002 * ftfont.c (ftfont_shape_by_flt): Make static.
7003 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7004
7005 * font.c: Don't include <m17n-flt.h>.
7006
70072008-10-10 Eli Zaretskii <eliz@gnu.org>
7008
7009 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7010
70112008-10-09 Eli Zaretskii <eliz@gnu.org>
7012
7013 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7014 away code.
7015
70162008-10-09 Chong Yidong <cyd@stupidchicken.com>
7017
7018 * dispnew.c (update_text_area): Avoid looping due to large glyph
7019 overhangs (bug#1070).
7020
70212008-10-09 Kenichi Handa <handa@m17n.org>
7022
7023 * fontset.c (face_for_char): If face->fontset is negative, just
7024 return ascii_face.
7025
f5385255
SM
7026 * font.c (font_delete_unmatched): Fix previous change.
7027 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7028
70292008-10-09 Martin Rudalics <rudalics@gmx.at>
7030
7031 * frame.c (Fraise_frame): On text-only terminals select frame in
7032 order to make it visible. (Bug#1061)
7033
70342008-10-08 Chong Yidong <cyd@stupidchicken.com>
7035
7036 * fontset.c (fontset_find_font): Check frame validity.
7037
70382008-10-07 Chong Yidong <cyd@stupidchicken.com>
7039
a9b555d3 7040 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7041 (xg_display_close): Allow Emacs to close all displays (bug#985).
7042
70432008-10-06 Andreas Schwab <schwab@suse.de>
7044
f5385255 7045 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7046
70472008-10-06 Chong Yidong <cyd@stupidchicken.com>
7048
f5385255 7049 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7050
a9b555d3 7051 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7052
7053 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7054 during initialization.
7055
70562008-10-04 Eli Zaretskii <eliz@gnu.org>
7057
7058 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7059 whole thing on MSDOS frames as well as on a TTY.
7060
7061 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7062 well as for TTY.
7063 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7064 well as on a TTY.
7065
7066 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7067 as well as for TTY.
7068
7069 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7070
7071 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7072 MSDOS frames as well.
7073
70742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7075
7076 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7077 correct arguments.
b71ac3dd 7078 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7079
70802008-10-03 Glenn Morris <rgm@gnu.org>
7081
7082 * emacs.c (USAGE1): Add --daemon.
7083
70842008-10-02 Eli Zaretskii <eliz@gnu.org>
7085
7086 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7087 100, so it's in percents as advertised.
7088
70892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7090
7091 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7092 (ns_output.current_cursor, ns_output.desired_cursor)
7093 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7094 (FRAME_NEW_CURSOR_COLOR): Remove.
7095
7096 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7097 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7098 enumeration (HOLLOW_BOX_CURSOR, etc.).
7099
7100 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7101 (draw_window_cursor): Simplify code.
f5385255
SM
7102 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7103 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7104 updates manually.
a9b555d3
JB
7105 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7106 Use core Emacs cursor types.
aac0c6e3 7107
b8ff72fa 7108 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7109
71102008-10-02 Martin Rudalics <rudalics@gmx.at>
7111
7112 * process.c (Faccept_process_output): Fix doc-string.
7113
71142008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * gmalloc.c (__sbrk): Also define for uClibc.
7117
7118 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7119 for uClibc.
7120
71212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7122
7123 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7124 styles.
7125 (nsfont_open): Reenable the cache.
7126
71272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7128
7129 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7130 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7131
71322008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7133
7134 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7135 a suspended terminal.
7136
71372008-09-30 Michael Albinus <michael.albinus@gmx.de>
7138
7139 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7140
71412008-09-30 Eli Zaretskii <eliz@gnu.org>
7142
7143 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7144
71452008-09-30 Chong Yidong <cyd@stupidchicken.com>
7146
7147 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7148 in a continued line coincides with a line beginning.
7149
71502008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7151
7152 * nsfont.m (nsfont_trait_distance): Fix bug.
7153 (nsfont_list): Return a list rather than a vector (syncs with Handa
7154 changes of 2008-05-14).
7155 (nsfont_open): Improve logging.
7156
71572008-09-29 Andreas Schwab <schwab@suse.de>
7158
7159 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7160
71612008-09-28 Martin Rudalics <rudalics@gmx.at>
7162
7163 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7164 name as char-resolve-modifiers.
7165 Reported by: Markus Triska <markus.triska@gmx.at>
7166
71672008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7168
7169 * dispnew.c (init_display): Return earlier when running as a daemon.
7170
71712008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7172
7173 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7174
71752008-09-27 Eli Zaretskii <eliz@gnu.org>
7176
7177 * composite.c (Fcomposition_get_gstring)
7178 (Fcompose_region_internal, Fcompose_string_internal)
7179 (Ffind_composition_internal): Doc fix.
7180 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7181 (syms_of_composite) <auto-composition-function>: Doc fix.
7182 (syms_of_composite) <composition-function-table>: Doc fix.
7183
71842008-09-25 Chong Yidong <cyd@stupidchicken.com>
7185
7186 * search.c (wordify): New argument for lax word-ends.
7187 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7188
71892008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7190
7191 * lisp.h (is_daemon): Declare.
7192 * dispnew.c (init_display): Do not try to initialize the terminal
7193 when running as a daemon.
7194
71952008-09-22 Chong Yidong <cyd@stupidchicken.com>
7196
7197 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7198 x_display_pixel_height.
7199
72002008-09-22 Martin Rudalics <rudalics@gmx.at>
7201
7202 * undo.c (record_point): Don't call Fundo_boundary for first
7203 change. (Bug#731)
7204
72052008-09-22 Juanma Barranquero <lekktu@gmail.com>
7206
7207 * emacs.c (Fdaemonp): Doc fix.
7208
72092008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7210
7211 * emacs.c (main): Place #ifdef in the proper place.
7212
72132008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7214
7215 * emacs.c (standard_args): Add --daemon.
7216 (main): Disconnect from the terminal when --daemon is passed.
7217 (is_daemon): New variable.
7218 (Fdaemonp): New function.
7219 (syms_of_emacs): Defsubr it.
7220
72212008-09-20 Chong Yidong <cyd@stupidchicken.com>
7222
7223 * xdisp.c (get_next_display_element): Handle string display
7224 correctly when checking for the end of a box run.
7225
72262008-09-20 Glenn Morris <rgm@gnu.org>
7227
7228 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7229 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7230 (Frename_file): Avoid copying to trash if a rename involves
7231 a delete. (Bug#964).
7232
72332008-09-20 Eli Zaretskii <eliz@gnu.org>
7234
7235 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7236 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7237 frames as well as termcap frames.
7238 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7239 get_named_tty.
7240
72412008-09-19 Eli Zaretskii <eliz@gnu.org>
7242
7243 * process.c (procfs_system_process_attributes): Fix cmdline in
7244 case /proc/PID/cmdline is empty.
7245
7246 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7247 x_display_pixel_height.
7248
72492008-09-19 Juanma Barranquero <lekktu@gmail.com>
7250
7251 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7252
7253 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7254 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7255
72562008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7257
7258 * dispextern.h (struct it): Move line_wrap away from the middle of
7259 bitfields. Move voffset in struct iterator_stack_entry after the
7260 bitfields. Move tab_width near after another short.
7261
72622008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7263
7264 * frame.h (struct frame): Move alpha from the middle of bitfields.
7265
7266 * window.h (struct window): Move frozen_window_start_p after the
7267 rest of the bitfields to reduce padding.
7268
72692008-09-18 Chong Yidong <cyd@stupidchicken.com>
7270
7271 * xterm.h (x_display_info): Remove `height' and `width' members.
7272
7273 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7274
7275 * w32term.h (w32_display_info): Remove `height', `width',
7276 `height_in', and `width_in' members.
7277
b8ff72fa
SM
7278 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7279 New functions.
aac0c6e3
MR
7280 (x_calc_absolute_position): Use them.
7281 (x_term_init): Omit removed `height' and `width' members.
7282
b8ff72fa
SM
7283 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7284 New functions.
aac0c6e3
MR
7285 (w32_read_socket, x_calc_absolute_position): Use them.
7286 (w32_initialize_display_info, w32_term_init): Omit removed members
7287 of w32_display_info.
7288
b8ff72fa
SM
7289 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7290 New functions.
7291 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7292
b8ff72fa
SM
7293 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7294 New functions.
aac0c6e3
MR
7295 (x_calc_absolute_position): Use them.
7296 (x_term_init): Omit removed `height' and `width' members.
7297
7298 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7299 (compute_tip_xy):
7300 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7301 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7302 x_display_pixel_width.
7303
73042008-09-18 Kenichi Handa <handa@m17n.org>
7305
7306 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7307 (composition_compute_stop_pos): Fix handling of static composition.
7308 (Fcomposition_get_gstring): Check FROM and TO at first.
7309
73102008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7311
46e722a9 7312 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7313 mixup (YAILOM).
7314
73152008-09-17 Chong Yidong <cyd@stupidchicken.com>
7316
7317 * indent.c (Fvertical_motion): Use position reported by iterator
7318 instead of PT for determining screen motion (bug#943).
7319
73202008-09-17 Romain Francoise <romain@orebokech.com>
7321
7322 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7323
73242008-09-17 Kenichi Handa <handa@m17n.org>
7325
7326 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7327
7328 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7329 if necessary.
7330
73312008-09-16 Kenichi Handa <handa@m17n.org>
7332
7333 * coding.c (make_conversion_work_buffer): Avoid calling
7334 Fget_buffer_create if it is not necessary.
7335
73362008-09-15 Martin Rudalics <rudalics@gmx.at>
7337
7338 * window.c (Fselect_window): Don't update window_select_count and
7339 use_time when norecord is not nil.
7340
73412008-09-14 Kenichi Handa <handa@m17n.org>
7342
7343 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7344 specpdl_ptr.
7345
73462008-09-12 Kenichi Handa <handa@m17n.org>
7347
7348 * indent.c (scan_for_column): Don't handle automatic composition
7349 if the current buffer is not associated with a window.
7350
7351 * composite.c (composition_reseat_it): If the current buffer is
7352 not associated with a window, ignore the automatic composition.
7353 (find_automatic_composition): Likewise.
7354
73552008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7356
7357 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7358 (Fgpm_mouse_stop): Use it.
7359 * termhooks.h (close_gpm): Declare.
7360 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7361 connection if Gpm_GetEvent fails.
7362
7363 * window.c (set_window_buffer): Always preserve current-buffer.
7364
73652008-09-12 Glenn Morris <rgm@gnu.org>
7366
7367 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7368
73692008-09-11 Glenn Morris <rgm@gnu.org>
7370
7371 * charset.c (charset-map-path): Doc fix.
7372
73732008-09-10 Kenichi Handa <handa@m17n.org>
7374
7375 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7376
7377 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7378 compose a grapheme cluster with the preceding base glyph.
7379
7380 * composite.c (composition_compute_stop_pos): Fix previous change.
7381 Reset cmp_it->id to -1 at first.
7382
73832008-09-10 Glenn Morris <rgm@gnu.org>
7384
7385 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7386
73872008-09-09 Chong Yidong <cyd@stupidchicken.com>
7388
7389 * keyboard.c (read_key_sequence): Reapply translation maps when
7390 switching keyboards.
7391
73922008-09-09 Kenichi Handa <handa@m17n.org>
7393
7394 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7395 characters.
7396
7397 * composite.c (FORWARD_CHAR): Fix calculation
7398 of (POSITION).pos_byte.
7399 (composition_compute_stop_pos): Limit the search of composition to
7400 at most 500 characters ahead. If we reach the limit or find a
7401 newline, set cmp_it->ch to -2 and return 0.
7402 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7403
74042008-09-08 Kenichi Handa <handa@m17n.org>
7405
7406 * indent.c (Fvertical_motion): Be sure to set
7407 it_overshoot_expected if it.cmp_it.id is non-negative.
7408
74092008-09-07 Andreas Schwab <schwab@suse.de>
7410
7411 * callproc.c (Fcall_process): Don't hold references to string data
7412 across garbage collection. Move initialisation of new_argv down
7413 to avoid compiler bug.
7414
74152008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7416
7417 * process.c (Fsystem_process_attributes): Doc fix.
7418
74192008-09-07 Chong Yidong <cyd@stupidchicken.com>
7420
7421 * callproc.c (Fcall_process): Canonicalize current directory name.
7422
7423 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7424 iterator advances to the next line if the current line ends in a
7425 continued tab.
7426
74272008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7428
7429 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7430 member to point to cmp_from.
7431
7432 * xdisp.c: Doc fix for references to gidx data member.
7433
74342008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7435
7436 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7437
74382008-09-07 Kenichi Handa <handa@m17n.org>
7439
7440 * composite.c (FORWARD_CHAR): Check STOP after
7441 incrementing (POSITION).pos.
7442
74432008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7444
7445 * process.c (Fsystem_process_attributes): Doc fix.
7446
74472008-09-06 Chong Yidong <cyd@stupidchicken.com>
7448
7449 * keyboard.c (Ftop_level): Doc fix.
7450
74512008-09-06 Eli Zaretskii <eliz@gnu.org>
7452
7453 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7454 minibuffer, don't let lower part of menu invade the echo area.
7455
7456 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7457 "char *q" to access menu text and advance through it. Revert the
7458 change that displayed ">" instead of ASCII character 0x10.
7459
74602008-09-05 Eli Zaretskii <eliz@gnu.org>
7461
7462 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7463 toggle boxes and radio buttons on MS-DOS as well.
7464
74652008-09-05 Kenichi Handa <handa@m17n.org>
7466
7467 * composite.c (autocmp_chars): Check lookback count.
7468 (composition_compute_stop_pos): Set cmp_it->lookback.
7469 (composition_reseat_it): Check lookback count.
7470 (struct position_record): New struct.
7471 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7472 (find_automatic_composition): New function.
7473 (composition_adjust_point): Use find_automatic_composition.
7474
7475 * dispextern.h (struct composition_it): New member lookback.
7476
74772008-09-02 Chong Yidong <cyd@stupidchicken.com>
7478
7479 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7480 if moving by a single line.
7481
74822008-09-02 Andreas Schwab <schwab@suse.de>
7483
7484 * xterm.c (x_delete_display): Fix merge error.
7485
7486 * fileio.c (Fexpand_file_name): Remove unused variables.
7487
74882008-09-02 Eli Zaretskii <eliz@gnu.org>
7489
7490 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7491 storage on all platforms, not just on DOS_NT.
7492
74932008-09-02 Jason Rumney <jasonr@gnu.org>
7494
b8ff72fa
SM
7495 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7496 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7497
74982008-09-01 Chong Yidong <cyd@stupidchicken.com>
7499
7500 * xfaces.c (Finternal_set_alternative_font_family_alist)
7501 (Finternal_set_alternative_font_registry_alist): Properly copy
7502 entire alist structure.
7503
75042008-09-01 Kenichi Handa <handa@m17n.org>
7505
d66c0241 7506 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7507 representative chars of the script is a vector.
d66c0241
JB
7508 (ftfont_list): Handle the case where the representative chars of
7509 the script is a vector.
aac0c6e3
MR
7510
7511 * character.c (syms_of_character): Docstring of
7512 script-representative-chars fixed.
7513
75142008-08-31 Eli Zaretskii <eliz@gnu.org>
7515
7516 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7517 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7518 the menu. Allocate larger buffer for `text', to account for
7519 possible ^C characters.
7520
75212008-08-31 Martin Rudalics <rudalics@gmx.at>
7522
7523 * xdisp.c (prepare_menu_bars): Don't call
7524 Vwindow_size_change_functions with arg Qt.
7525
75262008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7527
7528 * font.h (font_range):
7529 * fileio.c (report_file_error):
46e722a9
SM
7530 * composite.c (composition_update_it): Yet another int/Lisp_Object
7531 mixup (YAILOM).
aac0c6e3
MR
7532
75332008-08-30 Glenn Morris <rgm@gnu.org>
7534
7535 * data.c (Fmake_variable_frame_local): Doc fix.
7536
7537 * frame.c (Fmodify_frame_parameters): Doc fix.
7538
75392008-08-30 Eli Zaretskii <eliz@gnu.org>
7540
7541 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7542 needed by GetTokenInformation.
7543 (w32_system_process_attributes): Check return values of all system
7544 APIs.
7545
7546 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7547 only when the state changes.
7548 (IT_update_begin, IT_update_end): Add termscript trace.
7549
7550 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7551 clipboard is unavailable. Set dst to NULL if it doesn't point to
7552 malloc'ed data.
7553 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7554 passing random values to xfree.
7555
7556 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7557 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7558
75592008-08-29 Jason Rumney <jasonr@gnu.org>
7560
7561 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7562
75632008-08-29 Eli Zaretskii <eliz@gnu.org>
7564
7565 * composite.c (fill_gstring_body): Avoid compiler warnings.
7566
7567 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7568 LGLYPH_SET_CODE to avoid compiler warnings.
7569
2ae37cf0 7570 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7571
7572 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7573
7574 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7575 LGLYPH_SET_CODE.
7576
75772008-08-29 Kenichi Handa <handa@m17n.org>
7578
7579 * fileio.c (report_file_error): Don't downcase the first character
7580 of errstring if it is still unibyte.
7581
75822008-08-29 Kenichi Handa <handa@m17n.org>
7583
7584 These changes are to re-implement the automatic composition so
7585 that it doesn't use text properties.
7586
7587 * Makefile.in (ftfont.o): Depend on composite.h.
7588 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7589
7590 * character.h (Vunicode_category_table): Extern it.
7591
7592 * character.c (Vunicode_category_table): New variable.
7593 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7594
7595 * chartab.c (optimize_sub_char_table): Perform more greedy
7596 optimization.
7597
b8ff72fa
SM
7598 * composite.h (enum composition_method):
7599 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7600 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7601 (Vcomposition_function_table): Extern it.
7602 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7603 (composition_gstring_put_cache, composition_gstring_from_id)
7604 (composition_gstring_p, composition_gstring_width)
7605 (composition_compute_stop_pos, composition_reseat_it)
7606 (composition_update_it, composition_adjust_point): Extern them.
7607 (Fcomposition_get_gstring): EXFUN it.
7608
d66c0241 7609 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7610 (Vcomposition_function_table)
7611 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7612 (gstring_hash_table, gstring_work, gstring_work_headers):
7613 New variables.
aac0c6e3
MR
7614 (gstring_lookup_cache, composition_gstring_put_cache)
7615 (composition_gstring_from_id, composition_gstring_p)
7616 (composition_gstring_width, fill_gstring_header)
7617 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7618 (composition_reseat_it, composition_update_it)
b8ff72fa 7619 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7620 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7621 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7622 Defsubr compostion_get_gstring.
7623
7624 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7625 cmp_id.
7626 (struct glyph_string): Delete the member gidx. New members
7627 cmp_id, cmp_from, and cmp_to.
7628 (enum it_method): Delete GET_FROM_COMPOSITION.
7629 (struct composition_it): New struct.
7630 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7631 Delete c, len, cmp_id, cmp_len in u.comp.
7632
7633 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7634 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7635 (enum lglyph_indices): Likewise.
b8ff72fa 7636 (font_range): Adjust extern.
aac0c6e3
MR
7637 (font_fill_lglyph_metrics): Extern it.
7638
7639 * font.c (QCf): New variable.
7640 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7641 (font_prepare_composition): Delete this function.
7642 (font_range): Type and arguments changed.
7643 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7644 (font_fill_lglyph_metrics): New function.
b8ff72fa 7645 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7646 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7647 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7648 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7649
7650 * fontset.h (font_for_char): Extern it.
7651
7652 * fontset.c (font_for_char): New function.
7653
7654 * ftfont.c: Include composite.h.
7655 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7656 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7657
7658 * indent.c: Include composite.h and dispextern.h.
7659 (check_composition): Delete this function.
7660 (scan_for_column): Handle composition by
7661 composition_compute_stop_pos, composition_reseat_it, and
7662 composition_update_it.
7663 (compute_motion): Likewise.
7664 (Fvertical_motion): Fix checking of composition.
7665
7666 * keyboard.c (adjust_point_for_property): Check composition by
7667 composition_adjust_point.
7668
b8ff72fa 7669 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7670 struct glyph_string.
7671
b8ff72fa
SM
7672 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7673 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7674 struct glyph.
7675 (produce_composite_glyph): Likewise.
7676
b8ff72fa
SM
7677 * w32term.c (x_draw_composite_glyph_string_foreground):
7678 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7679 (x_draw_glyph_string): Likewise.
7680
7681 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7682 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7683
7684 * xdisp.c: Include font.h.
7685 (it_props): Delete the entry for Qauto_composed.
7686 (init_iterator): Initialize it->cmp_it.id to -1.
7687 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7688 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7689 (handle_auto_composed_prop): Delete it.
7690 (handle_composition_prop): Handle only static composition.
7691 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7692 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7693 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7694 (pop_it): Likewise.
7695 (get_next_element): Delete next_element_from_composition.
7696 (CHAR_COMPOSED_P): New macro.
7697 (get_next_display_element): For automatic composition, get a face
7698 from the font in the glyph-string.
7699 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7700 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7701 (next_element_from_string): Check if the character at the current
7702 position is composed by CHAR_COMPOSED_P.
7703 (next_element_from_buffer): Likewise.
d66c0241
JB
7704 (next_element_from_composition): Adjust for the change of struct it.
7705 Update it->cmp_it.
b8ff72fa
SM
7706 (dump_glyph): Adjust for the change of struct glyph.
7707 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7708 it and struct glyph. Don't handle automatic composition here.
7709 (fill_gstring_glyph_string): New function.
7710 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7711 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7712 (BUILD_GSTRING_GLYPH_STRING): New macro.
7713 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7714 automatic composition.
b8ff72fa 7715 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7716 struct glyph.
b8ff72fa 7717 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7718
b8ff72fa 7719 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7720 the change of struct glyph_string.
7721 (x_draw_glyph_string): Likewise.
7722
77232008-08-29 Glenn Morris <rgm@gnu.org>
7724
7725 * buffer.c (word-wrap): Doc fix.
7726 * xdisp.c (truncate-partial-width-windows): Doc fix.
7727 Increase default to 50.
7728
77292008-08-29 Chong Yidong <cyd@stupidchicken.com>
7730
7731 * xdisp.c (update_tool_bar_unwind): New function.
7732 (update_tool_bar): Temporarily set selected frame before building
7733 tool-bar items.
7734
77352008-08-28 Michael Albinus <michael.albinus@gmx.de>
7736
7737 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7738 snprintf, respectively.
7739 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7740
77412008-08-28 Chong Yidong <cyd@stupidchicken.com>
7742
7743 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7744 LDFLAGS to GNUstep CC invocation.
7745
77462008-08-27 Chong Yidong <cyd@stupidchicken.com>
7747
7748 * indent.c (Fvertical_motion): Revert last change. Handle the
7749 general case where we are moving forward, and PT spans multiple
7750 screen lines.
7751
7752 * eval.c (find_handler_clause): Temporarily increase
7753 max-lisp-eval-depth while printing the backtrace buffer, to
7754 guarantee that help-mode code can run.
7755
77562008-08-27 Eli Zaretskii <eliz@gnu.org>
7757
7758 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7759 colors under -rv.
7760 (IT_set_frame_parameters): Don't swap foreground and background
7761 colors if `(reverse . t)' is present in the frame properties.
7762 (internal_terminal_init): Call init_frame_faces only for the
7763 initial frame.
7764
77652008-08-27 Andreas Schwab <schwab@suse.de>
7766
7767 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7768
77692008-08-27 Andreas Schwab <schwab@suse.de>
7770
7771 * search.c (search_buffer): Set char_base to zero only at the end.
7772
77732008-08-27 Kenichi Handa <handa@m17n.org>
7774
b8ff72fa 7775 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7776
77772008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7778
7779 * xterm.c (x_term_init): Temporarily hide the partially
7780 initialized terminal while calling vendor-specific-keysyms.
7781
77822008-08-26 Eli Zaretskii <eliz@gnu.org>
7783
7784 * msdos.c (internal_terminal_init): Most initializations done only
7785 once, especially initial_screen_colors[] and termscript open.
7786
77872008-08-26 Chong Yidong <cyd@stupidchicken.com>
7788
7789 * eval.c (Fcondition_case): Doc fix.
7790
7791 * widgetprv.h (EmacsFramePart): Change font member to the new font
7792 struct.
7793
7794 * widget.c: Include character.h and font.h for XSETFONT.
7795 (setup_frame_gcs): Compute X font id from font struct, just once.
7796
77972008-08-26 Eli Zaretskii <eliz@gnu.org>
7798
7799 * term.c (get_named_tty): Fix last change.
7800
78012008-08-26 Chong Yidong <cyd@stupidchicken.com>
7802
7803 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7804 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7805
78062008-08-25 Eli Zaretskii <eliz@gnu.org>
7807
7808 * frame.c (do_switch_frame): Mark previously displayed frame as
7809 obscured for FRAME_MSDOS_P frames as well.
7810
78112008-08-24 Eli Zaretskii <eliz@gnu.org>
7812
7813 * frame.c (make_terminal_frame): Initialize f->terminal,
7814 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7815 Set the top frame to newly created frame.
7816 (Fmake_terminal_frame): Reuse the_only_display_info.
7817
7818 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7819 estimating available memory.
7820
b97439ce 78212008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7822
7823 * nsterm.m (ns_draw_window_cursor): Don't call
7824 NSDisableScreenUpdates and NSEnableScreenUpdates on
7825 non-NS_IMPL_COCOA systems.
7826
78272008-08-23 Andreas Schwab <schwab@suse.de>
7828
7829 * process.c (procfs_system_process_attributes): Fix use of
7830 uninitialized variables.
7831
78322008-08-23 Eli Zaretskii <eliz@gnu.org>
7833
7834 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7835
7836 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7837 calling tty-set-up-initial-frame-faces.
7838
b8ff72fa
SM
7839 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7840 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7841
7842 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7843 addition to output_termcap.
7844
7845 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7846
7847 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7848 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7849 highlight.
7850
7851 * process.c [!subprocesses]: Define QCname.
7852 (syms_of_process): Intern and staticpro it.
7853
7854 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7855 Adjust for changes in encoding/decoding routines.
7856 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7857 encode_coding and decode_coding.
7858
b8ff72fa 7859 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7860
7861 * dosfns.c: Include frame.h before termhooks.h.
7862 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7863 variable termscript.
7864
7865 * s/msdos.h (USER_FULL_NAME): Define.
7866 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7867
7868 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7869 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7870 pw->pw_gecos.
7871
7872 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7873 SELECTED_FRAME as additional (1st) argument.
7874 (tty_read_avail_input): Handle output_msdos_raw in
7875 addition to output_termcap.
7876
7877 * msdos.c: Include frame.h before termhooks.h.
7878 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7879 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7880 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7881 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7882 (IT_set_terminal_modes, IT_reset_terminal_modes)
7883 (IT_set_frame_parameters): Use tty->termscript instead of a global
7884 variable termscript.
7885 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7886 global variable terminal_coding. Don't refer to
7887 Vnonascii_translation_table.
7888 (internal_terminal_init): Set Vwindow_system in current_kboard.
7889 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7890 Announce date and time of session start, if termscript is open.
7891 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7892 term.c:init_tty). Open termscript only of not already open.
7893 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7894 here instead of dos_ttraw. Don't initialize display if this is an
7895 initial tty. Don't set FRAME_FONT.
7896 (Vwindow_system_version): Bump to 23.
7897 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7898 is available, set up mouse_position_hook.
7899 (dos_ttraw, IT_set_terminal_modes): If called with initial
7900 terminal, do nothing.
7901 (IT_set_frame_parameters): Handle the Qtty_type frame
7902 parameter by calling internal_terminal_init.
7903 (dos_set_window_size, show_mouse_face)
7904 (clear_mouse_face, IT_note_mode_line_highlight)
7905 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7906 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7907 (initialize_msdos_display): New function.
7908 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7909 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7910 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7911 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7912 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7913 (request_sigio, unrequest_sigio): Don't define, now defined on
7914 sysdep.c.
7915 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7916
7917 * term.c [MSDOS]: Include msdos.h.
7918 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7919 conditional to DOS_NT. Allow only one call to this function in a
7920 session. Don't allocate a new struct tty_display_info; instead,
7921 reuse the_only_display_info. Call get_tty_size to get screen
7922 dimensions. Call init_baud_rate to set bad_rate.
7923 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7924 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7925 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7926 (get_tty_terminal, get_named_tty, Ftty_type)
7927 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7928 output_termcap.
b8ff72fa
SM
7929 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7930 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7931 only when subprocesses are supported.
aac0c6e3
MR
7932
7933 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7934 f->output_data.x.
7935 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7936 terminal devices.
7937
5582fbc7 7938 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7939 x_output.
7940 (FRAME_FONT): Use output_data.tty.
7941 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7942 (struct x_display_info): Rename from display_info. Update all users in
7943 msdos.c.
aac0c6e3 7944 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7945 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7946 (dos_ttraw): Update prototype.
7947
7948 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7949 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7950
79512008-08-23 Jason Rumney <jasonr@gnu.org>
7952
7953 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7954 (fn_TIFFSetDirectory): New library function used.
7955 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7956 (tiff_load): Use :index to select among multiple images. Set count
7957 property when multiple images exist.
7958 (gif_format): Use :index, not :image.
7959
79602008-08-23 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * xdisp.c (try_scrolling): Check INT_MAX instead of
7963 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7964 to obtain INT_MAX.
7965
79662008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7967
7968 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7969
79702008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7971
7972 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7973 GNUstep library location.
7974
79752008-08-21 Chong Yidong <cyd@stupidchicken.com>
7976
7977 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7978 before using it.
7979
7980 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7981
79822008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7983
7984 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7985 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7986 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7987 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7988 (EmacsApp-cursor_blink_handler): Remove declaration.
7989 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7990 match 01 Feb 2008 changes in xterm.c.
7991 (ns_read_socket): Add cast to avoid warning.
7992 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7993 GNUstep.
7994
79952008-08-20 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * xselect.c (x_get_foreign_selection): Return nil if desired
7998 selection could not be obtained, instead of signalling an error.
7999
80002008-08-20 David Reitter <david.reitter@gmail.com>
8001
8002 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8003 * nsterm.m: Remove ns-specific code for cursor blinking.
8004 (ns_draw_window_cursor): Clear cursor properly rather than
8005 redrawing the area. Respect width of bar cursors.
8006 These changes enable the use of generic blink-cursor-mode and
8007 generic cursor types in NS and support smooth cursor movements (do
8008 not blink off after command).
8009 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8010 Nextstep, too.
8011
80122008-08-19 Kenichi Handa <handa@m17n.org>
8013
8014 * font.c (Vfont_log_deferred): New variable.
8015 (font_add_log): Check Vfont_log_deferred.
8016 (font_deferred_log): New function.
8017
8018 * font.h (font_deferred_log): Extern it.
8019
8020 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8021 for sorting.
8022 (face_for_char): Use deferred log.
8023
80242008-08-18 Kenichi Handa <handa@m17n.org>
8025
8026 * fontset.c (face_for_char): Add font log.
8027
8028 * font.c (font_add_log): Add the font properties :script, :lang,
8029 and :otf in the log.
8030
80312008-08-17 Chong Yidong <cyd@stupidchicken.com>
8032
8033 * xdisp.c: Remove dead code.
8034 (handle_invisible_prop, next_overlay_string): Defer call to
8035 setup_for_ellipsis.
8036 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8037
80382008-08-15 Chong Yidong <cyd@stupidchicken.com>
8039
8040 * xfaces.c (lookup_derived_face): Properly handle possible zero
8041 return value of get_lface_attributes.
8042 (merge_faces): Don't tell lookup_derived_face to signal an error
8043 if face is not found.
8044
8045 * dired.c (Fdirectory_files): Doc fix.
8046
8047 * process.c (make_process): Initialize kill_without_query struct
8048 member.
8049
80502008-08-15 Eli Zaretskii <eliz@gnu.org>
8051
8052 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8053 Alternative calculation of totphys for Visual Studio 6.
8054
8055 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8056
8057 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8058 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8059 All users changed.
8060 (stat): Only root directory passed to GetDriveType. Allow RAM
8061 disk as well as local fixed disk when w32-get-true-file-attributes
8062 is set to `local'.
8063 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8064 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8065 (w32_cached_id, w32_add_to_cache): New functions.
8066 (get_name_and_id): Look account names in the cache before calling
8067 lookup_account_sid.
8068 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8069 New initialization flags.
8070 (globals_of_w32): Initialize them to zero.
8071 (w32_system_process_attributes): Use w32_cached_id and
8072 w32_add_to_cache.
8073
80742008-08-14 Lawrence Mitchell <wence@gmx.li>
8075
8076 * lread.c (Fread_char, Fread_char_exclusive): If no character
8077 event is read before timeout is reached, return nil, rather than
8078 converting to a number.
8079
80802008-08-14 Chong Yidong <cyd@stupidchicken.com>
8081
8082 * fns.c (use_dialog_box): Doc fix.
8083
8084 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8085 on OS X.
8086
80872008-08-13 Chong Yidong <cyd@stupidchicken.com>
8088
8089 * frame.c (Qns_parse_geometry): New var.
8090 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8091
80922008-08-11 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8095 space character in calculating tabs.
8096
80972008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8098
8099 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8100
81012008-08-10 Glenn Morris <rgm@gnu.org>
8102
8103 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8104 silence gcc "limited range of data type" warnings in some
8105 make_fixnum_or_float calls.
8106
81072008-08-09 Eli Zaretskii <eliz@gnu.org>
8108
8109 * w32.c (w32_system_process_attributes): If the process does not
8110 exist, return nil.
8111
8112 * w32.c: Include thelp32.h, psapi.h and coding.h.
8113 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8114 declarations.
8115 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8116 (Process32Next_Proc): New typedefs.
8117 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8118 (g_b_init_process32_next, g_b_init_open_thread_token)
8119 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8120 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8121 (g_b_init_get_process_working_set_size)
8122 (g_b_init_global_memory_status_ex): New static variables.
8123 (globals_of_w32): Initialize them.
8124 (create_toolhelp32_snapshot, process32_first, process32_next)
8125 (open_thread_token, impersonate_self, revert_to_self)
8126 (get_process_memory_info, get_process_working_set_size)
8127 (global_memory_status, global_memory_status_ex): New wrapper
8128 functions.
8129 (w32_list_system_processes, w32_system_process_attributes)
8130 (enable_privilege, restore_privilege, ltime, process_times):
8131 New functions.
8132 (convert_time_raw): New function.
8133 (convert_time): Remove conversion of FILETIME into time in 100
8134 nsec units, call convert_time_raw instead.
8135
8136 * process.h (w32_list_system_processes, w32_system_process_attributes):
8137 Add prototypes.
8138 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8139 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8140 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8141 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8142
8143 * process.c (Fsystem_process_attributes): Doc fix.
8144
81452008-08-08 Chong Yidong <cyd@stupidchicken.com>
8146
8147 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8148 a continued multi-char glyph; if so, advance to the actual glyph.
8149
81502008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8151
8152 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8153
8154 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8155 (.m.o): Use it.
8156 * config.in: Regenerate.
8157
81582008-08-07 Chong Yidong <cyd@stupidchicken.com>
8159
8160 * xdisp.c (redisplay_window): Revert last change.
8161 (try_window): Check bottom scroll margin too.
8162
81632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8164
8165 * config.in: Regenerate.
8166
8167 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8168 -list-load-path-shadows'.
8169 (nsgui.h): Reduce number of things depending on it.
8170
81712008-08-06 Chong Yidong <cyd@stupidchicken.com>
8172
8173 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8174 instead of window-end which does the wrong thing at eob.
8175 (try_cursor_movement): Minor optimization.
8176 (redisplay_window): If scroll margin is defined, don't assume
8177 window doesn't need scrolling.
8178
81792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8180
8181 * config.in: Regenerate.
8182
8183 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8184 (mostlyclean): Don't delete *.d under NS.
8185
8186 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8187
81882008-08-06 Kenichi Handa <handa@m17n.org>
8189
8190 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8191
81922008-08-06 Andreas Schwab <schwab@suse.de>
8193
8194 * config.in: Regenerate.
8195
81962008-08-05 Chong Yidong <cyd@stupidchicken.com>
8197
8198 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8199 forcing a window start.
8200
8201 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8202 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8203
82042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8205
8206 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8207 argument.
8208
82092008-08-05 Juanma Barranquero <lekktu@gmail.com>
8210
8211 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8212 <scroll-down-aggressively, before-change-functions>:
8213 <after-change-functions>: Reflow docstrings.
8214
82152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8216 Ken Raeburn <raeburn@gnu.org>
8217
8218 Dock menu customization, based on a patch by Ken Raeburn, plus some
8219 other fixes.
8220 * nsmenu.m (dockMenu): New variable.
8221 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8222
8223 * nsterm.h (dockMenu): Declare.
8224
8225 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8226 (ns_term_init): Initialize dockMenu.
8227 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8228 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8229 left.
8230
8231 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8232
82332008-08-04 Chong Yidong <cyd@stupidchicken.com>
8234
8235 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8236
8237 * config.in: Regenerate.
8238
82392008-08-04 Seiji Zenitani <zenitani@mac.com>
8240
8241 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8242
82432008-08-04 Chong Yidong <cyd@stupidchicken.com>
8244
8245 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8246
82472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8248
8249 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8250
8251 * keyboard.h: Comment an #endif.
8252
8253 * lisp.h (have_menus_p): Adjust comment.
8254
8255 * menu.c (find_and_return_menu_selection): Fix comparison with
8256 client_data.
8257
8258 * nsmenu.m (popup_activated_flag): New variable.
8259 (popup_activated): New function.
8260 (menu-or-popup-active-p): New exported lisp definition.
8261 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8262 when popup done.
8263 (ns_popup_dialog): Set popup_activated_flag.
8264
8265 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8266 version for GNUstep (handled by conditional typedef in nsterm.m).
8267 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8268 in rgb.txt).
8269
8270 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8271
8272 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8273
8274 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8275
8276 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8277 shortcircuit if popup_activated like GTK and X toolkit.
8278
8279 * m/inter386.h: Change DARWIN to DARWIN_OS.
8280
8281 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8282 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8283 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8284 comment on NO_SOCK_SIGIO.
8285
82862008-08-03 Chong Yidong <cyd@stupidchicken.com>
8287
8288 * nsterm.m (windowDidResize): Remove stopModal call.
8289
82902008-08-03 Andreas Schwab <schwab@suse.de>
8291
8292 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8293 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8294
82952008-08-02 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8298 Don't use uninitialized pointer variable when using getrlimit.
8299
83002008-08-02 Jason Rumney <jasonr@gnu.org>
8301
8302 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8303
83042008-08-02 Eli Zaretskii <eliz@gnu.org>
8305
8306 * alloc.c (NSTATICS): Bump to 0x640.
8307
8308 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8309
8310 * lisp.h: Add prototype for directory_files_internal.
8311
8312 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8313 New functions.
8314 (syms_of_process): Defsubr them. Add initializations for various
8315 Q* symbols used in procfs_system_process_attributes.
8316 (procfs_list_system_processes, procfs_system_process_attributes)
8317 [HAVE_PROCFS]: New functions.
8318 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8319 (procfs_get_total_memory): New functions.
8320
83212008-08-01 Juanma Barranquero <lekktu@gmail.com>
8322
8323 * xfaces.c (Fx_load_color_file): Fix previous change;
8324 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8325
83262008-08-01 Michael Albinus <michael.albinus@gmx.de>
8327
8328 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8329
83302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8331
8332 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8333
83342008-08-01 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8337
8338 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8339 define NSApplicationDelegateReplySuccess.
8340 (EmacsView -converstationIdentifier): Use long instead of
8341 NSInteger for GNUstep, since it doesn't have NSInteger.
8342
8343 * xmenu.c: Revert last change.
8344
8345 * keyboard.h: Fix last change.
8346
83472008-08-01 Juanma Barranquero <lekktu@gmail.com>
8348
8349 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8350 on Windows.
8351
83522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8353
8354 Warning clearing and clean-up in NS port.
8355 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8356 Add prototypes.
8357 * nsgui.h (FACE_DEFAULT): Remove, unused.
8358 (XGCValues): Change colors to unsigned long.
8359 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8360 nsterm.m.
8361 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8362 (ns_list_fonts): Remove, unused.
8363 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8364 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8365 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8366 (nsfont_draw): Compare face colors to 0, not nil.
8367 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8368 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8369 (-addSubmenuWithTitle:): Use NSMenuItem class.
8370 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8371 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8372 (ns_clip_to_row): Make gc arg a BOOL.
8373 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8374 ns_clip_to_row() call.
8375 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8376 used). Cast FRAME_FONT assignments.
8377 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8378 (ns_string_to_lispmod): Change arg to const char.
8379 (ns_term_init): Use NSMenuItem class.
8380 (EmacsApp -openFile:): Move to different section of file.
8381 (EmacsApp -application:openFiles:): Don't return a value, call
8382 -replyToOpenOrPrint:.
8383 (EmacsView -keyDown:): Fix up cast.
8384 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8385 (EmacsView -menuDown:): Cast tag in call to
8386 find_and_call_menu_selection().
8387 (ns_list_fonts): Remove, unused.
8388 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8389 (ns_fontname_to_xlfd): Make static.
8390 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8391 Remove prototypes (now in keyboard.h).
8392 (next_menubar_widget_id): Remove, unused.
8393 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8394 Remove prototypes (now in keyboard.h).
8395 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8396
83972008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8400 (floatfns.o): Depend on syssignal.h.
8401 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8402
8403 * systty.h: Fix previous change that removed BSD_TERMIOS.
8404 Add comments to #ifdefs.
8405
84062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8407
8408 * w32fns.c (w32-load-color-file): Remove.
8409 (x-open-connection): Use renamed Fx_load_color_file.
8410 * xfaces.c (x-load-color-file): Add.
8411 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8412 Emacs.clr.
8413 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8414
84152008-07-31 Michael Albinus <michael.albinus@gmx.de>
8416
8417 * dbusbind.c (Fdbus_call_method_asynchronously)
8418 (Fdbus_method_error_internal): New defuns.
8419 (xd_read_message): Handle also reply messages.
8420 (Vdbus_registered_functions_table): Extend docstring.
8421
84222008-07-31 Juanma Barranquero <lekktu@gmail.com>
8423
8424 * keyboard.c (gobble_input): Fix previous change.
8425
84262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8427
8428 * bitmaps/README:
8429 * xfns.c:
8430 * termcap.c:
8431 * term.c:
8432 * syswait.h:
8433 * systty.h:
8434 * systime.h:
8435 * syssignal.h:
8436 * sysdep.c:
8437 * process.h:
8438 * process.c:
8439 * print.c:
8440 * ndir.h:
8441 * lread.c:
8442 * keyboard.c:
8443 * getpagesize.h:
8444 * floatfns.c:
8445 * fileio.c:
8446 * emacs.c:
8447 * doc.c:
8448 * dispnew.c:
8449 * dired.c:
8450 * data.c:
8451 * callproc.c:
8452 * buffer.c:
8453 * README:
8454 * Makefile.in:
8455 * s/template.h:
8456 * s/msdos.h:
8457 * m/vax.h: Remove VMS support.
8458 * s/vms.h:
8459 * vlimit.h:
8460 * uaf.h:
8461 * temacs.opt:
8462 * param.h:
8463 * ioctl.h: Remove file.
8464
84652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8466
8467 * s/ms-w32.h (MULTI_KBOARD): Remove.
8468 * xterm.c:
8469 * xselect.c:
8470 * xfns.c:
8471 * window.c:
8472 * w32term.c:
8473 * w32fns.c:
8474 * terminal.c:
8475 * termhooks.h:
8476 * term.c:
8477 * sysdep.c:
8478 * keyboard.h:
8479 * keyboard.c:
8480 * frame.h:
8481 * frame.c:
8482 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8483 * config.in: Regenerate.
8484
84852008-07-30 Jason Rumney <jasonr@gnu.org>
8486
8487 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8488
8489 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8490 (w32font_open_internal): Get unicode version of textmetrics.
8491 Don't enable or disable glyph indices here.
8492 (w32font_open): Disable use of glyph indices.
8493
8494 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8495
84962008-07-30 Chong Yidong <cyd@stupidchicken.com>
8497
8498 * minibuf.c (Vread_buffer_function): Doc fix.
8499
85002008-07-30 John Paul Wallington <jpw@pobox.com>
8501
8502 * minibuf.c (read_buffer_completion_ignore_case): New var.
8503 (Fread_buffer): Use it.
8504
85052008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8506
8507 * systty.h (sensemode): Remove empty #if. Remove reference to
8508 BSD_TERMIOS, unused.
8509
8510 * sysdep.c: Remove reference to DGUX.
8511 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8512
8513 * config.in: Regenerate.
8514
85152008-07-30 Jason Rumney <jasonr@gnu.org>
8516
8517 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8518
85192008-07-29 Jason Rumney <jasonr@gnu.org>
8520
8521 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8522 is populated.
8523 (uniscribe_encode_char): Always use uniscribe.
8524 Avoid using context if cache is populated.
8525
85262008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8527
8528 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8529 open menu.
8530
8531 * gtkutil.c (menu_nav_ended): Remove.
8532 (create_menus): Remove signal connect for menu_nav_ended.
8533
85342008-07-28 Chong Yidong <cyd@stupidchicken.com>
8535
8536 * xdisp.c (redisplay_window): Check return value of
8537 compute_window_start_on_continuation_line before forcing a window
8538 start.
8539
85402008-07-28 Jason Rumney <jasonr@gnu.org>
8541
8542 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8543
8544 * w32term.c (w32_enable_unicode_output, cleartype_active):
8545 Remove obsolete display options.
8546 (x_draw_glyph_string_background): Don't use old cleartype_active
8547 workaround.
8548 (w32_initialize): Remove cleartype_active initialization.
8549 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8550
85512008-07-28 Andreas Schwab <schwab@suse.de>
8552
8553 * lisp.h (init_weak_hash_tables, syms_of_font)
8554 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8555 (remove_hash_entry): Don't declare.
8556 * eval.c (maybe_call_debugger): Make static and move before use.
8557 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8558 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8559 * xterm.h (x_set_frame_alpha): Declare.
8560
85612008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8562
8563 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8564 (create_menus): Connect selection-done to menu_nav_ended.
8565
85662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8567
8568 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8569 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8570 parameter with read of 'alpha' one.
8571 (Qns_frame_parameter): Remove.
5582fbc7 8572 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8573 (next-selection-coding-system, Vselection_coding_system)
8574 (Vnext_selection_coding_system): Drop.
8575
85762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8577
8578 * nsfns.m (do-applescript, do_applescript): Rename to
8579 ns-do-applescript, ns_do_applescript, and move within file.
8580
85812008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8582
8583 Remove support for Mac Carbon.
8584 * mactoolbox.c:
8585 * macterm.h:
8586 * macterm.c:
8587 * macselect.c:
8588 * macmenu.c:
8589 * macgui.h:
8590 * macfns.c:
8591 * mac.c: Remove file.
8592 * s/darwin.h:
8593 * m/intel386.h:
8594 * xfaces.c:
8595 * xdisp.c:
8596 * window.c:
8597 * tparam.c:
8598 * termhooks.h:
8599 * termcap.c:
8600 * term.c:
8601 * syssignal.h:
8602 * sysselect.h:
8603 * sysdep.c:
8604 * process.c:
8605 * lread.c:
8606 * lisp.h:
8607 * keyboard.c:
8608 * image.c:
8609 * fringe.c:
8610 * frame.h:
8611 * frame.c:
8612 * fontset.c:
8613 * font.h:
8614 * font.c:
8615 * fns.c:
8616 * fileio.c:
8617 * emacs.c:
8618 * dispnew.c:
8619 * dispextern.h:
8620 * config.in:
8621 * atimer.c:
2ae37cf0 8622 * Makefile.in: Remove code for Carbon.
aac0c6e3 8623
f0131492 86242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8625
8626 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8627
86282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8629
8630 * macterm.h (kCGBitmapByteOrder32Host): New define for
8631 non-universal SDKs.
8632
8633 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8634 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8635
8636 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8637 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8638
86392008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8640
8641 * w32inevt.c: Include dispextern.h.
8642
86432008-07-26 Andreas Schwab <schwab@suse.de>
8644
8645 * print.c (print_object): Fix off-by-one in last change.
8646
86472008-07-25 Juanma Barranquero <lekktu@gmail.com>
8648
8649 * term.c (syms_of_term): Don't initialize default_orig_pair,
8650 default_set_foreground and default_set_background on Windows.
8651
86522008-07-25 Jason Rumney <jasonr@gnu.org>
8653
8654 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8655 ScriptItemize. Clean up return value checking. Remove unused
8656 variables.
8657 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8658 shaping engine.
8659
8660 * w32font.c (w32font_has_char): Handle the case where we can't
8661 determine the script for a character.
8662
86632008-07-25 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * term.c (syms_of_term): Initialize default_orig_pair,
8666 default_set_foreground, and default_set_background.
8667
8668 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8669 clash (bug#86).
8670 (getloadavg): Callers changed.
8671
8672 * image.c (svg_load_image): Fix last change.
8673 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8674 image size is valid. Use g_object_unref instead of deprecated
8675 rsvg_handle_free to free rsvg handle.
8676 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8677
86782008-07-25 Jason Rumney <jasonr@gnu.org>
8679
8680 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8681 surrogates before looking up glyph index.
8682 (w32font_text_extents): Encode as surrogates if falling back to
8683 functions that need UTF-16 wide chars.
8684
8685 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8686 BMP as surrogates before looking up glyph index.
8687
86882008-07-25 Chong Yidong <cyd@stupidchicken.com>
8689
8690 * image.c (svg_load_image): Check for failure in return value of
8691 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8692
86932008-07-25 Jason Rumney <jasonr@gnu.org>
8694
8695 * w32font.c (Fx_select_font): Reverse sense of second arg.
8696
86972008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8698
8699 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8700 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8701
8702 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8703 (PURESIZE): Use it.
8704
87052008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8706
8707 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8708 * m/alpha.h (TEXT_END):
8709 * m/ibmrs6000.h (TEXT_END):
8710 * m/macppc.h (TEXT_END):
8711 * s/darwin.h (TEXT_END):
8712 * s/msdos.h (TEXT_END): Remove, unused.
8713 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8714 * s/cygwin.h: Remove comment.
8715
8716 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8717 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8718 * m/intel386.h (DOT_GLOBAL_START):
8719 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8720 (USG): Remove, file not used on USG platforms.
8721
8722 * Makefile.in (HAVE_X11): Remove empty #else.
8723
87242008-07-24 Andreas Schwab <schwab@suse.de>
8725
8726 * fileio.c (Finsert_file_contents): Properly adjust undo list
8727 after format conversion.
8728
87292008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8730
8731 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8732 (menu_nav_ended): Remove.
8733 (create_menus): Remove signal connect for menu_nav_ended.
8734 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8735 create_menus.
8736 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8737
87382008-07-23 Jason Rumney <jasonr@gnu.org>
8739
8740 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8741 with opened font.
8742 (w32font_open): Set font type to gdi.
8743
8744 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8745
87462008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8747
8748 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8749 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8750 defines it.
8751 * unexec.c (ADDR_CORRECT): Define unconditionally.
8752
8753 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8754
8755 * unexec.c: Remove code depending on !COFF and USG, the file is
8756 not used for such systems.
8757
8758 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8759 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8760 (LD_SWITCH_SYSTEM_1): Remove, update users.
8761
8762 * s/darwin.h (DATA_END):
8763 * m/intel386.h (DATA_END):
8764 * m/ibmrs6000.h (DATA_END):
8765 * m/alpha.h (DATA_END): Remove, unused.
8766
8767 * config.in: Regenerate.
8768 * s/ms-w32.h (subprocesses): Define unconditionally.
8769 * s/template.h (subprocesses): Update comment.
8770 * s/vms.h (subprocesses):
8771 * s/usg5-4.h (subprocesses):
8772 * s/hpux10-20.h (subprocesses):
8773 * s/gnu-linux.h (subprocesses):
8774 * s/cygwin.h (subprocesses):
8775 * s/bsd-common.h (subprocesses):
8776 * s/aix4-2.h (subprocesses):
8777 * s/darwin.h (subprocesses): Do not define, defined by default now.
8778
8779 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8780 Remove all references.
8781 (temacs): Add GNUstep specific ld flags.
8782
8783 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8784 similarly to what X does.
8785
87862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8787
8788 * nsfns.m (x-list-fonts): Remove.
8789 (syms_of_nsfns): Drop the x-list-fonts declaration.
8790 * nsterm.m: Get rid of remaining "//" comments.
8791
87922008-07-22 Chong Yidong <cyd@stupidchicken.com>
8793
8794 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8795
8796 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8797 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8798 (Fns_own_selection_internal, Fx_disown_selection_internal)
8799 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8800
8801 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8802 ... */' style of docstrings. Doc fixes.
8803
88042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8805
8806 * terminfo.c (UP, BC, PC): Undo previous change.
8807
8808 * nsfns.m: Rename ns prefixed functions/variables to the
8809 corresponding x versions. Update references.
8810
88112008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8812
8813 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8814
88152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8816
8817 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8818 Remove forwarding functions.
8819 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8820 non-static.
8821 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8822 non-static.
8823 (ns_frame_parm_handlers): Use the new names.
8824 (syms_of_nsfns): Move to the end of file.
8825
8826 * nsterm.m (syms_of_nsterm): Move to the end of file.
8827
8828 * dispnew.c (init_display): Remove code for X10.
8829
88302008-07-22 Jason Rumney <jasonr@gnu.org>
8831
8832 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8833 bare drive.
8834
88352008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8836
8837 * nsterm.m (syms_of_nsterm): Remove debugging println.
8838
88392008-07-22 David Reitter <david.reitter@gmail.com>
8840
8841 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8842 Carbon implementation of the same functionality: execute arbitrary
8843 AppleScript code.
8844
88452008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8846
8847 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8848 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8849 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8850 (Fx_display_mm_height, Fx_display_mm_width)
8851 (Fx_display_backing_store, Fx_display_visual_class)
8852 (Fx_display_save_under, Fx_open_connection)
8853 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8854 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8855 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8856 (Fx_display_pixel_width, Fx_display_pixel_height)
8857 (Fx_display_usable_bounds, Fx_display_planes)
8858 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8859 ... */' style of docstrings.
8860
88612008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8862
8863 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8864 on this platform.
8865 (mips):
8866 * m/iris4d.h (mips): Do not define.
8867 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8868
8869 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8870
8871 * image.c:
8872 * nsfns.m:
8873 * nsselect.m:
8874 * nsterm.h:
8875 * nsterm.m: Rename ns prefixed functions/variables to the
8876 corresponding x versions. Update references.
8877
8878 * m/ibms390x.h (NO_REMAP): Do not undefine.
8879
8880 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8881
88822008-07-21 Chong Yidong <cyd@stupidchicken.com>
8883
8884 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8885 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8886 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8887 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8888 (Fns_display_mm_height, Fns_display_mm_width)
8889 (Fns_display_backing_store, Fns_display_visual_class)
8890 (Fns_display_save_under, Fns_open_connection)
8891 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8892 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8893 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8894 (Fns_display_pixel_width, Fns_display_pixel_height)
8895 (Fns_display_usable_bounds, Fx_display_planes)
8896 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8897
88982008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8899
8900 * print.c (print_object): Check print_depth before searching for
8901 circularities.
8902
89032008-07-21 Michael Albinus <michael.albinus@gmx.de>
8904
8905 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8906 only sprintf.
8907
89082008-07-21 Kenichi Handa <handa@m17n.org>
8909
8910 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8911
89122008-07-20 Andreas Schwab <schwab@suse.de>
8913
8914 * syntax.c (find_start_pos, find_start_value)
8915 (find_start_value_byte, find_start_begv, find_defun_start)
8916 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8917
89182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8919
8920 * s/sol2-3.h: Insert contents of s/sol2.h.
8921 (LD_SWITCH_SYSTEM): Remove redundant definition.
8922 * s/sol2.h: Remove, unused.
8923
89242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8925
8926 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8927
89282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8929
8930 * Makefile.in (ns_appdir): Fix typo in find command.
8931
89322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8933
8934 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8935
8936 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8937 added not supported anymore.
8938
8939 * s/usg5-4-2.h (LIBS_SYSTEM):
8940 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8941
8942 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8943 * s/lynxos.h (GETPGRP_NO_ARG):
8944 * s/hpux10-20.h (NO_SIOCTL_H):
8945 * s/gnu.h (GETPGRP_NO_ARG):
8946 * s/gnu-linux.h (NO_SIOCTL_H):
8947 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8948 * s/cygwin.h (GETPGRP_NO_ARG):
8949 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8950 (C_DEBUG_SWITCH): Remove duplicate definition.
8951
8952 * m/ibms390.h: Remove boilerplate comments.
8953
8954 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8955
8956 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8957 (wait_reading_process_output): Remove code for SunOS, platform not
8958 supported anymore. Use SOLARIS2 instead of sun.
8959
89602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8961
8962 * font.c (font_open_by_name): Under NS, default lface height to zero.
8963 (font_open_for_lface): Under NS, set size based on frame fontsize.
8964 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8965 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8966
89672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8968
8969 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8970 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8971 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8972 YES/NO.
8973 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8974 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8975 * Makefile.in (clean): Clear out build destination dir.
8976
89772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8978
8979 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8980 xterm, xselect.
8981 * lisp.h: Remove declaration of hash_remove.
8982 * nsgui.h: Remove redefinitions of hash_remove.
8983 * fns.c (hash_remove): Rename to hash_remove_from_table.
8984
89852008-07-19 Seiji Zenitani <zenitani@mac.com>
8986
8987 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8988 strdup() the family UTF8String before modifying it.
8989
89902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8991
8992 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8993 NS_FACE_BACKGROUND with 0 instead of nil.
8994 * nsfont.m (nsfont_draw): Same.
8995
89962008-07-19 Chong Yidong <cyd@stupidchicken.com>
8997
8998 * nsfns.m (ns_set_background_color): Fix crash.
8999
90002008-07-18 Chong Yidong <cyd@stupidchicken.com>
9001
9002 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9003
90042008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9005
9006 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9007
90082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9009
9010 * gtkutil.c: Include <config.h> instead of "config.h".
9011
9012 * lisp.h (Foverlay_buffer): Add EXFUN.
9013
9014 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9015 child process to complete child_setup. Undo 2005-09-21 change.
9016
9017 * s/darwin.h: Mention setsid after vfork.
9018
90192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9020
9021 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9022 Depend on macgui.h.
9023
9024 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9025 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9026
9027 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9028 and f19.
9029 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9030
9031 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9032 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9033 Remove enumerators.
9034
9035 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9036 Check if FACE_FROM_ID returns NULL.
9037
90382008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9039
9040 * w32inevt.c (change_frame_size): Remove extern declaration.
9041 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9042 change_frame_size.
9043
90442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9045
9046 * getloadavg.c: Revert last change (2008-07-15).
9047
90482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9049
9050 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9051 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9052 from configure.
9053
90542008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9055
9056 * s/sol2.h:
9057 * s/sol2-4.h: Reorganize conditionals.
9058
9059 * ecrt0.c: Remove code depending on m68000, not used anymore.
9060
9061 * fns.c (hash_remove): Make static.
9062 * lisp.h (hash_remove): Don't prototype.
9063
9064 * m/ibmrs6000.h:
9065 * m/ibms390x.h:
9066 * m/macppc.h: Remove boilerplate comments.
9067
9068 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9069 Solaris, which does not need them.
9070
9071 * m/vax.h: Remove comments about unsupported systems.
9072
9073 * s/darwin.h: Reorganize ifdefs.
9074
90752008-07-17 Andreas Schwab <schwab@suse.de>
9076
9077 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9078
90792008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9080
9081 Use SDATA. Follow coding convention of placing operators at
9082 beginning of next line rather than end of previous line, and placing
9083 spaces around infix operators.
9084
9085 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9086 in case it was defined already.
9087 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9088 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9089 ns_default.
9090 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9091 Lisp_Objects.
9092 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9093 (ns_defined_color, ns_color_to_lisp): Declare.
9094 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9095 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9096 it's accepted even with USE_LISP_UNION_TYPE.
9097 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9098 (update_frame_tool_bar): Remove apparently obsolete tests for
9099 non-integerness of f->tool_bar_lines.
9100 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9101 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9102 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9103 (nsfont_open): Don't confuse NULL for Qnil.
9104 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9105 * menu.h (find_and_call_menu_selection):
9106 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9107 (find_and_return_menu_selection): Always return something.
9108 * frame.h: Include dispextern.h for Display_Info.
9109 (display_x_get_resource): Declare.
9110
91112008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9112
9113 * syntax.c: Remove stdio.h include accidentally introduced in
9114 Emacs.app commit.
9115 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9116 NS_IMPL_COCOA.
9117 * keyboard.c (handle_async_input, input_available_signal): Remove
9118 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9119
91202008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9121
9122 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9123 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9124 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9125 Use SDATA.
9126
9127 * keymap.c: Remove all NS-specific code.
9128 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9129 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9130 where_is_preferred_modifier, return a different value depending on how
9131 preferred is the binding.
9132 (where_is_internal): Adjust accordingly.
9133 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9134 Adjust to new preferred_sequence_p.
9135 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9136 * keyboard.c (parse_solitary_modifier): Not static any more.
9137 * keyboard.h (parse_solitary_modifier): Declare.
9138
91392008-07-16 Andreas Schwab <schwab@suse.de>
9140
9141 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9142 of easymenu.
9143
91442008-07-16 Chong Yidong <cyd@stupidchicken.com>
9145
9146 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9147 that we don't move off the line.
9148
91492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9150
9151 * keyboard.c (Qsuper): Remove.
9152 (parse_menu_item): Don't call where_is_internal specially for NS.
9153
91542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9155
9156 * s/gnu-linux.h: Remove boilerplate comments.
9157
9158 * m/alpha.h (__ELF__): Consolidate conditions.
9159
9160 * m/m68k.h (linux): Use GNU_LINUX instead.
9161 Remove boilerplate comments.
9162
9163 * m/intel386.h: Undo refactoring from previous change.
9164 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9165 too, remove dead code.
9166 (linux): Use GNU_LINUX instead.
9167
91682008-07-16 Jason Rumney <jasonr@gnu.org>
9169
9170 * w32gui.h: Repeat 26 June changes lost by last change.
9171
91722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9173
9174 * systty.h: Remove code for Aix on 386, unsupported platform.
9175
9176 * s/ms-w32.h: Remove boilerplate comments.
9177 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9178
9179 * s/gnu-linux.h (TERM): Remove support.
9180 (HAVE_SYSVIPC): Remove, unused.
9181 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9182 for this system.
9183
9184 * process.c: Remove support for IRIS, unused.
9185 Remove support for TERM, not relevant anymore.
9186
9187 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9188 used with the definition.
9189
9190 * s/aix4-2.h (static): Do not undef.
9191
9192 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9193 only used on Aix.
9194 (HAVE_SYSVIPC): Remove, unused.
9195
9196 * m/hp800.h (CANNOT_DUMP): Do not undef.
9197
9198 * m/alpha.h: Fix comment.
9199
9200 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9201 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9202 used by this configuration.
9203 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9204 * unexec.c: Remove code depending on HPUX and
9205 USG_SHARED_LIBRARIES, not used with this file. Remove code
9206 depending on IRIS, unused. Remove if 0-ed code.
9207
9208 * s/template.h: Remove comments about static.
9209
9210 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9211 Remove if 0-ed code.
9212 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9213 were the same as the default.
9214 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9215 Remove boilerplate comments.
9216 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9217 (HAVE_SYSVIPC): Remove, unused.
9218 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9219
9220 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9221 Remove boilerplate comments.
9222 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9223 Remove boilerplate comments.
9224 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9225 Remove boilerplate comments.
9226 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9227
9228 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9229 USG systems which do not use DATA_SEG_BITS.
9230 Refactor code. Remove boilerplate comments.
9231
9232 * m/ibms390.h:
9233 * m/m68k.h:
9234 * s/bsd-common.h:
9235 * s/cygwin.h:
9236 * s/darwin.h:
9237 * s/freebsd.h:
9238 * s/gnu.h:
9239 * s/msdos.h: Remove boilerplate comments.
9240
9241 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9242 do not use this file.
aac0c6e3
MR
9243 (IRIS_4D): Remove, unused.
9244
9245 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9246 do not use this file.
aac0c6e3
MR
9247 (SIGN_EXTEND_CHAR):
9248 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9249 * unexmips.c: Remove file, unused.
9250
9251 * editfns.c (Fuser_full_name): Replace the only use of
9252 USER_FULL_NAME with its value.
9253 * config.in: Regenerate.
9254
92552008-07-16 David Reitter <david.reitter@gmail.com>
9256
9257 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9258 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9259
92602008-07-16 Glenn Morris <rgm@gnu.org>
9261
9262 * emacs.c (system-type): Doc fix.
9263
92642008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9265
9266 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9267 If the cache doesn't work, let's fix it, rather than work around it.
9268
92692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9270
9271 * Makefile.in: Correct additions for nsfont.o in last commit.
9272 * nsfont.m: New file (forgot last commit).
9273
92742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9275
9276 * callproc.c (set_initial_environment): Initialize
9277 Vprocess_environment under CANNOT_DUMP (fixes crash when
9278 batch-compiling for bootstrap).
9279
92802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9281 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9282
9283 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9284 fix crash due to different init order.
9285
92862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9287
9288 Changes and additions for NeXTstep windowing system (Cocoa and
9289 GNUstep) support.
9290
9291 * Makefile.in:
9292 * config.in: Support defines and build commands for NS port.
9293 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9294 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9295 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9296 windowing.
9297 (struct face): Add synth_ital field.
9298 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9299 (init_display): Initialize Vinitial_window_system to "ns" when so
9300 compiled.
9301 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9302 (display_arg): Use under NS.
9303 (main): Under NS, allocate autorelease pool and handle command line
9304 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9305 (standard_args): Add NS-specific args.
9306 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9307 * font.c (DEFAULT_ENCODING): New variable.
9308 (font_find_for_lface): Use it.
9309 (syms_of_font): Load syms_of_nsfont under NS.
9310 * font.h: Declare nsfont_driver when compiled under NS.
9311 * fontset.c: When compiling under NS, include nsterm.h.
9312 (fontset_from_font): Autoconstruct fontset under NS.
9313 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9314 symbol, document and use it.
9315 (do_switch_frame): When for_deletion under Cocoa, add
9316 Fraise_frame(Qnil).
9317 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9318 (x_get_arg): Allow "yes" and "no" as boolean values.
9319 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9320 Qright under Cocoa.
9321 (focus-follows-mouse): Default to 0 under NS.
9322 * frame.h (enum output_method): Add output_ns.
9323 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9324 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9325 (FRAME_WINDOW_P): NS-specific definition.
9326 * fringe.c (max_used_fringe_bitmap): Make public.
9327 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9328 (getloadavg): Use NeXT code under descendant OS's.
9329 * image.c (includes and header section, x_create_bitmap_from_data)
9330 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9331 (image_background_transparent, x_clear_image_1)
9332 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9333 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9334 (x_to_xcolors, x_from_xcolors, x_disable_image)
9335 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9336 other GUIs, including XPM support using code originally written for
9337 Carbon GUI.
9338 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9339 using NS API.
9340 (image_ascent): Use font metrics macros instead of direct struct field
9341 access.
9342 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9343 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9344 Also, handle NS as GTK for menu bar purposes.
9345 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9346 toolkit where they differ.
9347 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9348 use cachelist, still needed under NS.
9349 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9350 (struct widget_value): Define it here for menu.c.
9351 * keymap.c (includes): Include modifier internals.
9352 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9353 NS.
9354 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9355 support for preferring sequences using certain modifiers, specified by
9356 the FIRSTONLY argument.
9357 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9358 under NS GNUstep implementation.
9359 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9360 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9361 * menu.c: Include nsterm.h under NS.
9362 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9363 (free_menubar_widget_tree_value, update_submenu_strings)
9364 (find_and_call_menu_selection): Treat NS as X and NT.
9365 (find_and_return_menu_selection): New function, used for popup menus.
9366 * nsgui.h:
9367 * nsterm.h:
9368 * nsfns.m:
9369 * nsimage.m:
9370 * nsmenu.m:
9371 * nsselect.m:
9372 * nsterm.m: New files.
9373 * process.c (wait_reading_process_output): Under NS, call ns_select()
9374 instead of plain select().
9375 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9376 beginning of buffer.
9377 * sysselect.h (init_process): Rename when compiling under Cocoa to
9378 avoid name conflict.
9379 * termhooks.h (display_info): Add ns_display_info to union.
9380 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9381 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9382 COCOA environment.
9383 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9384 unexec() signature. (Note, this will dump, but the resulting file
9385 crashes; unexosx is used instead; keeping around for reference and
9386 possible aid in getting dump working under GNUstep.)
9387 * w32gui.h (button_type, widget_value): Remove definitions (now in
9388 keyboard.h).
9389 * window.c: Include nsterm.h when compiling under NS.
9390 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9391 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9392 other GUI windowing systems.
9393 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9394 GTK.
9395 (x_consider_frame_title): Under NS, set icon type and frame
9396 modified-state indicator; use ns_set_name_as_filename() when using
9397 formatted title.
9398 (update_window_cursor): Make public when compiling under NS.
9399 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9400 (hourglass_atimer, Vhourglass_delay
9401 * xfaces.c (header section, init_frame_faces, clear_font_table)
9402 (defined_color, unload_color, x_face_list_fonts)
9403 (prepare_face_for_display): Add NS support parallel to other GUIs.
9404 Emulate GCs like other non-X GUIs.
9405 (split_font_name): Don't lowercase font name under NS.
9406 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9407 under NS.
9408 * s/darwin.h: Add support for compilation under NS.
9409
94102008-07-15 Jason Rumney <jasonr@gnu.org>
9411
9412 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9413 (w32_show_hourglass): Rename from show_hourglass.
9414 (w32_hide_hourglass): Rename from hide_hourglass.
9415 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9416 (Vhourglass_delay): Declare extern.
9417 (hourglass_started): Remove.
9418
9419 * xdisp.c (Vhourglass_delay): Remove static.
9420 (hourglass_started, start_hourglass, cancel_hourglass):
9421 Don't include these versions on WINDOWSNT.
9422
94232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9424
9425 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9426 variables (formerly in xfns.c).
9427 (show_hourglass, hide_hourglass): New prototypes (same).
9428 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9429 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9430 in xfns.c).
9431 (syms_of_xdisp): Declare/initialize display-hourglass,
9432 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9433 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9434 formerly in xfns.c.
9435 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9436 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9437 (start_hourglass, cancel_hourglass): Remove.
9438 (show_hourglass, hide_hourglass): Remove prototypes and static
9439 modifiers.
9440 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9441 hourglass_atimer, hourglass_shown_p declaration/initialization.
9442 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9443 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9444 (start_hourglass, cancel_hourglass): Remove.
9445 (show_hourglass, hide_hourglass): Remove prototypes and static
9446 modifiers.
9447 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9448 hourglass_atimer, hourglass_shown_p declaration/initialization.
9449 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9450 (DEFAULT_HOURGLASS_DELAY): Remove.
9451 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9452 hourglass_shown_p declaration/initialization.
9453
94542008-07-14 Jason Rumney <jasonr@gnu.org>
9455
9456 * w32fns.c (w32_get_arg): Remove wrapper function.
9457 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9458 directly.
9459 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9460
94612008-07-14 Kenichi Handa <handa@m17n.org>
9462
9463 * xfont.c (xfont_open): Add workaround for X's bug.
9464
94652008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9466
9467 * fontset.c: Include <stdio.h> unconditionally.
9468
94692008-07-13 Michael Albinus <michael.albinus@gmx.de>
9470
9471 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9472 for filtering.
9473
94742008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9475
9476 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9477
9478 * m/macppc.h:
9479 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9480
9481 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9482 (SPECIAL_EMACS_INT):
9483 * m/ia64.h (SPECIAL_EMACS_INT):
9484 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9485 * s/gnu.h (NLIST_STRUCT):
9486 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9487 * s/gnu-linux.h (LINUX):
9488 * s/msdos.h (HAVE_FACES):
9489 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9490
9491 * systty.h:
9492 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9493 anymore.
9494
94952008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9496
9497 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9498 always defined as int.
9499
9500 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9501 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9502 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9503 * s/freebsd.h (HAVE_WAIT_HEADER):
9504 * s/bsd-common.h (HAVE_UNION_WAIT):
9505 * s/aix4-2.h (HAVE_WAIT_HEADER):
9506 * m/mips.h (HAVE_UNION_WAIT):
9507 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9508 (COFF, static): Do not define, they are undefined later in the file.
9509
9510 * process.c (update_status): Don't use a union.
9511 (status_convert):
9512 (sigchld_handler): Use int instead of WAITTYPE.
9513
95142008-07-12 Chong Yidong <cyd@stupidchicken.com>
9515
9516 * indent.c (Fvertical_motion): Restore hscroll before moving to
9517 goal column.
9518
95192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9520
9521 * lisp.h: Remove left over code.
9522
95232008-07-11 Andreas Schwab <schwab@suse.de>
9524
9525 * lisp.h: Fix logic in last change.
9526
9527 * menu.h: New file.
9528 * menu.c: Include it.
9529 * xmenu.c: Likewise.
9530 * Makefile.in: Update dependencies.
9531
95322008-07-11 Kenichi Handa <handa@m17n.org>
9533
9534 * fontset.c (fontset_from_font): Cancel the previous change.
9535
95362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9537
9538 * lisp.h:
9539 * w32heap.c:
9540 * emacs.c:
9541 * alloc.c: Replace all references of NO_UNION_TYPE with
9542 USE_LISP_UNION_TYPE.
9543
9544 * m/xtensa.h (NO_UNION_TYPE):
9545 * m/vax.h (NO_UNION_TYPE):
9546 * m/template.h (NO_UNION_TYPE):
9547 * m/sparc.h (NO_UNION_TYPE):
9548 * m/mips.h (NO_UNION_TYPE):
9549 * m/macppc.h (NO_UNION_TYPE):
9550 * m/m68k.h (NO_UNION_TYPE):
9551 * m/iris4d.h (NO_UNION_TYPE):
9552 * m/intel386.h (NO_UNION_TYPE):
9553 * m/ibms390x.h (NO_UNION_TYPE):
9554 * m/ibms390.h (NO_UNION_TYPE):
9555 * m/ibmrs6000.h (NO_UNION_TYPE):
9556 * m/ia64.h (NO_UNION_TYPE):
9557 * m/hp800.h (NO_UNION_TYPE):
9558 * m/arm.h (NO_UNION_TYPE):
9559 * m/amdx86-64.h (NO_UNION_TYPE):
9560 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9561 defining it the same.
9562
95632008-07-10 Chong Yidong <cyd@stupidchicken.com>
9564
9565 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9566
95672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9568
9569 * fileio.c:
50426a04 9570 * sysdep.c:
aac0c6e3
MR
9571 * systty.h:
9572 * m/ibmrs6000.h:
9573 * m/iris4d.h:
9574 * s/aix4-2.h:
9575 * s/freebsd.h:
9576 * s/gnu-linux.h:
9577 * s/hpux10-20.h:
9578 * s/hpux11.h:
9579 * s/netbsd.h:
9580 * s/sol2-3.h:
9581 * s/sol2-4.h:
9582 * s/sol2.h:
9583 * s/usg5-4.h:
9584 * s/vms.h: Remove references to unused variables.
9585
95862008-07-10 Andreas Schwab <schwab@suse.de>
9587
9588 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9589 pattern before matching the generic family.
9590
95912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9592
9593 * unexec.c:
9594 * s/vms.h:
9595 * s/usg5-4-2.h:
9596 * s/sol2-5.h:
9597 * s/freebsd.h:
9598 * s/darwin.h: Remove dead code.
9599
9600 * m/template.h:
9601 * m/sparc.h:
9602 * m/mips.h:
9603 * m/m68k.h:
9604 * m/iris4d.h:
9605 * m/intel386.h:
9606 * m/ibms390x.h:
9607 * m/ibms390.h:
9608 * m/ia64.h:
9609 * m/hp800.h:
9610 * m/arm.h:
9611 * m/amdx86-64.h: Remove dead code and references to unused
9612 and compiler defined symbols.
9613
9614 * unexmips.c:
9615 * unexelf.c: Remove references to desupported systems.
9616
9617 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9618
9619 * m/powermac.h: Remove boilerplate comments.
9620 (NO_REMAP): Remove unused definition.
9621
9622 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9623 define them.
9624
96252008-07-10 Kenichi Handa <handa@m17n.org>
9626
9627 * xfont.c (xfont_open): Log the reason of failure.
9628
96292008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * fontset.c (fontset_get_font_group):
9632 * font.c (font_check_otf): Specify argument types.
9633
96342008-07-09 Kenichi Handa <handa@m17n.org>
9635
9636 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9637 non-ASCII char is found.
9638
9639 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9640 (reorder_font_vector): Change the arg preferred_family to font.
9641 Prefer the spec matching with font.
9642 (fontset_get_font_group): New function.
9643 (fontset_find_font): Change the format of an element of a realized
9644 fontset. Use fontset_get_font_group.
9645 (fontset_font): Try the current fontset, the default fontset, the
9646 fallbacks of the current fontset, and the fallbacks of the default
9647 fontset in this order.
9648 (face_for_char): Delete the shortcut to use the current font.
9649 (fontset_from_font): Don't set fonts for Latin in the fontset.
9650
9651 * font.h (font_make_object, font_match_p): Adjust prototypes.
9652
9653 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9654
9655 * font.c (font_make_object): New arg entity and pixelsize.
9656 (font_check_otf_features, font_check_otf): New functions.
9657 (font_match_p): Check :lang, :script, and :otf properties.
9658
9659 * xfont.c (xfont_open): Adjust it for the change of
9660 font_make_object.
9661 (xfont_text_extents): Fix initial setting of metrics.
9662
9663 * ftfont.c (struct ftfont_info): New member index, delete member
9664 fc_charset_idx. Make the member order compatible with struct
9665 xftfont_info.
9666 (fc_charset_table): Change charset names to registry names.
9667 (ftfont_pattern_entity): Delete the args registry and
9668 fc_charset_idx. Change the value of :font-entity property
9669 to (FONTNAME . INDEX). Always set :registry property to
9670 `iso10646-1'.
9671 (struct ftfont_cache_data): New struct.
9672 (ftfont_lookup_cache): New arg for_face.
9673 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9674 (ftfont_driver): Set the member otf_capability.
9675 (ftfont_get_charset): Adjust it for the change of
9676 fc_charset_table.
9677 (OTF_TAG_SYM): New macro.
9678 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9679 for the change of fc_charset_table.
9680 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9681 ftfont_pattern_entity. Add FC_INDEX to objset.
9682 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9683 and ftfont_pattern_entity.
9684 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9685 font_make_object, struct ftfont_info.
9686 (ftfont_has_char): Use ftfont_get_fc_charset.
9687 (ftfont_otf_features, ftfont_otf_capability): New functions.
9688 (ftfont_shape): Use ftfont_get_otf.
9689 (ftfont_text_extents): Fix initial setting of metrics.
9690
9691 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9692 member order compatible with struct ftfont_info.
9693 (xftfont_open): Add FC_CHARSET to the pattern. Set
9694 xftfont_info->ft_size. Don't unlock the face. Check BDF
9695 properties if appropriate.
9696 (xftfont_close): Unlock the face.
9697 (xftfont_anchor_point, xftfont_shape): Deleted.
9698 (syms_of_xftfont): Don't set members anchor_point and shape of
9699 xftfont_driver.
9700
9701 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9702 font_make_object.
9703
9704 * w32font.c (w32font_open): Adjust it for the change of
9705 font_make_object.
9706 (w32font_open_internal): Don't set properties of font_object here.
9707
97082008-07-08 Chong Yidong <cyd@stupidchicken.com>
9709
9710 * macfns.c (x_create_tip_frame):
9711 * w32fns.c (x_create_tip_frame):
9712 * xfns.c (x_create_tip_frame): Pass parameter argument to
9713 face-set-after-frame-default.
9714
9715 * xfaces.c (Finternal_merge_in_global_face): Save merged
9716 attributes for the default face back into the face vector.
9717
97182008-07-08 Andreas Schwab <schwab@suse.de>
9719
9720 * fontset.h: Declare fontset_from_font. Don't declare
9721 new_fontset_from_font and fontset_from_font_name.
9722 * xterm.c: Include "fontset.h".
9723 * Makefile.in (xterm.o): Update dependencies.
9724
97252008-07-08 Glenn Morris <rgm@gnu.org>
9726
9727 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9728 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9729
97302008-07-07 Chong Yidong <cyd@stupidchicken.com>
9731
9732 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9733 (x_set_frame_parameters): Don't bind it.
9734
97352008-07-07 Juanma Barranquero <lekktu@gmail.com>
9736
9737 * w32fns.c (map_w32_filename): Declare extern.
9738
97392008-07-07 Jason Rumney <jasonr@gnu.org>
9740
9741 * w32term.c (WS_EX_LAYERED): Define if not already.
9742
97432008-07-06 Chong Yidong <cyd@stupidchicken.com>
9744
9745 * xfaces.c (set_font_frame_param): Don't try to set the font
9746 parameter if it is still unspecified in the lface.
9747
97482008-07-05 Chong Yidong <cyd@stupidchicken.com>
9749
9750 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9751 face if it didn't already exist.
9752
9753 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9754
97552008-07-05 Andreas Schwab <schwab@suse.de>
9756
9757 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9758
97592008-07-05 Chong Yidong <cyd@stupidchicken.com>
9760
9761 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9762 word-wrapping.
9763 (IT_DISPLAYING_WHITESPACE): New macro.
9764 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9765 when word-wrapping. Simplify word-wrapping logic. Use correct
9766 pixel positions when saving copies of the iterator.
9767 (display_line): Use proper wrap point if the last character on a
9768 line was preceded by whitespace.
9769
97702008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9771
9772 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9773
97742008-07-04 Kenichi Handa <handa@m17n.org>
9775
9776 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9777
9778 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9779
97802008-07-02 Jason Rumney <jasonr@gnu.org>
9781
9782 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9783 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9784
9785 * xdisp.c (next_element_from_display_vector): Move assignment out
9786 of if statement.
9787
97882008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9789
9790 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9791
9792 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9793 (syms_of_fileio): Initialize and export them.
9794 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9795
9796 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9797 (Fsystem_move_file_to_trash): New function.
9798 (syms_of_w32fns): Export it to lisp.
9799
98002008-07-01 Jason Rumney <jasonr@gnu.org>
9801
9802 * w32font.c (w32font_text_extents): Don't count overhang as part
9803 of width.
9804
98052008-06-30 Miles Bader <miles@gnu.org>
9806
9807 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9808 Add `avoid_cursor_p' field.
9809
9810 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9811 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9812 (append_glyph, append_composite_glyph, produce_image_glyph)
9813 (append_stretch_glyph): Initialize avoid_cursor_p.
9814 (get_it_property): Rename from `get_line_height_property'.
9815 (x_produce_glyphs): Use get_it_property.
9816 (handle_line_prefix, push_display_prop): New functions.
9817 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9818 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9819 New variables.
9820 (syms_of_xdisp): Initialize them.
9821
98222008-06-30 Kenichi Handa <handa@m17n.org>
9823
9824 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9825 XftDefaultSubstitute (they are called in XftFontMatch).
9826 (xftfont_open): Fix args to ftfont_font_format.
9827
9828 * ftfont.c (fc_charset_table): New member lang.
9829 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9830 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9831 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9832 (ftfont_open): Fix args to ftfont_font_format.
9833 (ftfont_font_format): New arg filename.
9834
98352008-06-30 Chong Yidong <cyd@stupidchicken.com>
9836
9837 * xfaces.c (Finternal_merge_in_global_face): If default face was
9838 modified, realize it again. Update the font face attribute.
9839
98402008-06-29 Jason Rumney <jasonr@gnu.org>
9841
9842 * w32term.c (x_set_frame_alpha): Fix logic.
9843
98442008-06-29 Kenichi Handa <handa@m17n.org>
9845
9846 * fontset.c (Finternal_char_font): Return font-object instead of
9847 font-name.
9848
9849 * composite.c (get_composition_id): Fix the width calculation for TAB.
9850
98512008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9852
9853 * indent.c (Fvertical_motion): Properly handle float column arg.
9854
98552008-06-28 Jason Rumney <jasonr@gnu.org>
9856
9857 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9858 (pfnSetLayeredWindowAttributes): New function pointer.
9859 (w32_initialize): Initialize it when supported.
9860 (x_set_frame_alpha): New function.
9861
9862 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9863 (w32_frame_parm_handlers): Set alpha handler.
9864
9865 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9866
98672008-06-27 Jason Rumney <jasonr@gnu.org>
9868
9869 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9870 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9871 (w32_to_x_charset, x_to_w32_charset)
9872 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9873 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9874 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9875 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9876 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9877 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9878 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9879 (Qw32_charset_unicode): Remove.
9880 (syms_of_w32fns): Update for above changes.
9881
9882 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9883 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9884 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9885 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9886 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9887 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9888 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9889 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9890 (syms_of_w32font): Update for above changes.
9891
98922008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9893
9894 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9895 removed #if.
9896 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9897
98982008-06-26 Juanma Barranquero <lekktu@gmail.com>
9899 Eli Zaretskii <eliz@gnu.org>
9900
9901 * makefile.w32-in (LOCAL_FLAGS):
9902 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9903
9904 * sysdep.c (_spawnlp, _getpid):
9905 Declare with explicit _cdecl instead of _CRTAPI1.
9906
9907 * editfns.c (Fget_internal_run_time):
9908 Check for WINDOWSNT with #ifdef, not #if.
9909
99102008-06-26 Jason Rumney <jasonr@gnu.org>
9911
9912 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9913
9914 * w32term.c (x_draw_glyph_string_foreground)
9915 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9916 Use FONT_HANDLE macro.
9917 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9918
9919 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9920 (uniscribe_encode_char): Use FONT_HANDLE macro.
9921
9922 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9923 (w32font_text_extents): Use precast w32_font.
9924 (w32font_close): Free cached metrics.
9925 (w32font_open_internal): Allocate space for name on stack.
9926
99272008-06-26 Chong Yidong <cyd@stupidchicken.com>
9928
9929 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9930
99312008-06-26 Jason Rumney <jasonr@gnu.org>
9932
9933 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9934 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9935
99362008-06-26 Juanma Barranquero <lekktu@gmail.com>
9937
9938 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9939
99402008-06-26 Jason Rumney <jasonr@gnu.org>
9941
9942 * w32bdf.c, w32bdf.h: Remove obsolete files.
9943
9944 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9945
9946 * w32gui.h: Don't include w32bdf.h.
9947 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9948 Remove obsolete font support.
9949
9950 * w32font.h (struct w32font_info): Remove compat_w32_font.
9951 Add hfont member.
9952 (FONT_COMPAT): Remove obsolete macro.
9953
9954 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9955 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9956 (w32font_open_internal): Remove compat code. Set new hfont member.
9957 (Fx_select_font): Use new hfont member.
9958
9959 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9960 (uniscribe_encode_char): Use new hfont member.
9961
9962 * w32term.c (x_draw_glyph_string_foreground)
9963 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9964 (x_draw_glyph_string): Use metrics in w32font_info.
9965
99662008-06-26 Kenichi Handa <handa@m17n.org>
9967
9968 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9969
99702008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9971
9972 * unexnext.c:
9973 * m/ews4800.h:
9974 * m/hp9000s300.h:
9975 * m/ibm370aix.h:
9976 * m/mips-siemens.h:
9977 * m/ncr386.h:
9978 * m/next.h:
9979 * m/pmax.h:
9980 * m/powerpcle.h:
9981 * m/tandem-s2.h:
9982 * s/386bsd.h:
9983 * s/bsd386.h:
9984 * s/bsd4-1.h:
9985 * s/bsd4-2.h:
9986 * s/bsdos2-1.h:
9987 * s/bsdos2.h:
9988 * s/bsdos3.h:
9989 * s/bsdos4.h:
9990 * s/nextstep.h:
9991 * s/ultrix4-3.h:
9992 * s/usg5-0.h:
9993 * s/usg5-2-2.h:
9994 * s/usg5-2.h:
9995 * s/usg5-4-3.h:
9996 * s/ux4800.h:
9997 * s/uxpds.h:
9998 * s/uxpv.h: Remove support for obsolete systems.
9999 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10000 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10001 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10002 Remove, insert contents in s/aix4-2.h.
10003 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10004 * s/bsd4-3.h: Rename to ...
10005 * s/bsd-common.h: ... this.
10006 * data.c:
10007 * doc.c:
10008 * ecrt0.c:
10009 * emacs.c:
10010 * fileio.c:
10011 * floatfns.c:
10012 * keyboard.c:
10013 * mem-limits.h:
10014 * print.c:
10015 * process.c:
10016 * sysdep.c:
10017 * syssignal.h:
10018 * systty.h:
10019 * syswait.h:
10020 * term.c:
10021 * unexec.c:
10022 * unexelf.c:
10023 * unexhp9k800.c:
10024 * m/hp800.h:
10025 * m/ibmrs6000.h:
10026 * m/mips.h:
10027 * m/vax.h:
10028 * s/darwin.h:
10029 * s/freebsd.h:
10030 * s/gnu.h:
10031 * s/ms-w32.h:
10032 * s/msdos.h:
10033 * s/netbsd.h:
10034 * s/template.h: Remove references to obsolete variables.
10035
10036 * Makefile.in: Add dependencies for all unexec files.
10037 (admindir): Remove unused variable.
10038 (UNEXEC_SRC): Remove references.
10039
100402008-06-25 Chong Yidong <cyd@stupidchicken.com>
10041
10042 * xfns.c (x_default_font_parameter): If Xft is available, first
10043 try Monospace-12 for the default font.
10044
100452008-06-25 Jason Rumney <jasonr@gnu.org>
10046
10047 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10048
100492008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10050
10051 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10052
10053 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10054
100552008-06-25 Juanma Barranquero <lekktu@gmail.com>
10056
10057 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10058 <scroll-conservatively>: Fix typo in docstring.
10059
10060 * xselect.c (Fx_send_client_event): Doc fix.
10061
100622008-06-25 Kenichi Handa <handa@m17n.org>
10063
10064 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10065
10066 * font.c (font_parse_fcname): Remove unused variables.
10067 (font_sort_entites): Delete the arg SPEC. Caller changed.
10068 Fix for the case of ! best_only.
10069 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10070
10071 * lisp.h (Fstring_to_unibyte): EXFUN it.
10072
10073 * character.h (str_to_unibyte): Extern it.
10074
10075 * character.c (str_to_unibyte): New function.
10076
10077 * fns.c (Fstring_to_unibyte): New function.
10078 (syms_of_fns): Defsubr it.
10079
100802008-06-24 Kenichi Handa <handa@m17n.org>
10081
10082 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10083 DPI too.
10084 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10085
100862008-06-24 Andreas Schwab <schwab@suse.de>
10087
10088 * Makefile.in (${lispsource}loaddefs.el): Rename from
10089 ../lisp/loaddefs.el.
10090 (bootstrap-clean): Do what distclean does but don't remove
10091 Makefile.
10092 (distclean): Depend on bootstrap-clean and remove Makefile.
10093
100942008-06-24 Chong Yidong <cyd@stupidchicken.com>
10095
10096 * buffer.h (struct buffer): New member word_wrap.
10097
10098 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10099 word-wrap.
10100 (init_buffer_once): Initialize them.
10101
10102 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10103 line_wrap enum possessing three possible values.
10104
10105 * termopts.h: Replace truncate_partial_width_windows with
10106 Vtruncate_partial_width_windows.
10107
10108 * dispnew.c (direct_output_for_insert): Avoid direct output when
10109 inserting a space with word wrap on.
10110
10111 * indent.c (compute_motion): Obey integer values of
10112 truncate-partial-width-windows.
10113
10114 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10115 replacing truncate_partial_width_windows.
10116 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10117 truncate only if the window width is below that integer.
10118 (start_display, resize_mini_window, produce_stretch_glyph)
10119 (display_string, move_it_in_display_line_to): Use line_wrap.
10120 (back_to_previous_visible_line_start, reseat_1): Reset
10121 string_from_display_prop_p.
10122 (display_line): Extend default face to end of line when wrapping.
10123
101242008-06-24 Kim F. Storm <storm@cua.dk>
10125
10126 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10127 to wrap continued lines at word boundaries.
10128
101292008-06-24 Jason Rumney <jasonr@gnu.org>
10130
10131 * font.c (Ffont_face_attributes): Multiply pixel size before point
10132 conversion to avoid multiplying rounding error.
10133
101342008-06-23 Jason Rumney <jasonr@gnu.org>
10135
10136 * w32term.c (x_draw_glyph_string_background)
10137 (x_draw_glyph_string): Remove old bdf font code.
10138
10139 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10140
101412008-06-22 Kenichi Handa <handa@m17n.org>
10142
10143 * font.c (font_find_for_lface): Try the adstyle specified in
10144 the property of LFACE_FONT of LFACE (if any).
10145
101462008-06-21 Seiji Zenitani <zenitani@mac.com>
10147 Ryo Yoshitake <ryo@shiftmode.net>
10148
10149 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10150
101512008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10152
10153 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10154 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10155 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10156 (witness-emacs): Remove.
10157 (lisp, shortlisp): Move loaddefs.el earlier.
10158 (mostlyclean): Forget about witness-emacs.
10159
101602008-06-22 Glenn Morris <rgm@gnu.org>
10161
10162 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10163 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10164
101652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10166
10167 * Makefile.in (PRECOMP): Remove.
10168 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10169 (witness-emacs): Run `compile-first'.
10170 (.el.elc): Use the new compile-onefile target.
10171
101722008-06-21 Kenichi Handa <handa@m17n.org>
10173
10174 * xftfont.c (xftfont_open): Handle QCembolden only when
10175 FC_EMBOLDEN is defined.
10176
101772008-06-21 Andreas Schwab <schwab@suse.de>
10178
10179 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10180 (.el.elc): Likewise.
10181
101822008-06-21 Miles Bader <miles@gnu.org>
10183
10184 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10185 build dir, not the lisp source dir.
10186
101872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10190 (bootstrapclean): Remove.
10191 (.el.elc): New rule.
10192 (PRECOMP): New var.
10193 (../lisp/subdirs.el): Remove.
10194 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10195 (witness-emacs): New target.
10196 (mostlyclean): Remove witness-emacs as well.
10197 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10198 Add witness-emacs dependency.
10199
102002008-06-20 Chong Yidong <cyd@stupidchicken.com>
10201
10202 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10203 defined by the font.
10204
102052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10206
10207 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10208 (bootstrap-clean): New target that keeps TAGS around.
10209 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10210 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10211
102122008-06-20 Jason Rumney <jasonr@gnu.org>
10213
10214 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10215 Remove obsolete font code.
10216
10217 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10218 to determine language support.
10219
102202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * sysdep.c (cfsetspeed): New fun extracted from the code.
10223 (cfmakeraw): Move before first use.
10224
102252008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10226
10227 * sysdep.c (cfmakeraw): Provide fallback implementation.
10228 (serial_configure): Provide fallback implementation of cfsetspeed.
10229
102302008-06-20 Kenichi Handa <handa@m17n.org>
10231
10232 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10233 the pattern.
10234
10235 * fontset.c (fontset_from_font): Copy font_spec before changing
10236 the elements.
10237
10238 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10239
102402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10241
10242 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10243 for explicit `font' parameters.
10244
10245 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10246
102472008-06-19 Kenichi Handa <handa@m17n.org>
10248
10249 * frame.c: Include <ctype.h>.
10250 (x_set_font_backend): Allow spacing characters in the X resource
10251 for FontBackend.
10252
102532008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10254
10255 * w32fns.c, xfns.c (Qfont_param): New var.
10256 (syms_of_w32fns): Initialize it.
10257 (x_default_font_parameter): Record explicit `font' into
10258 `font-parameter'.
10259
102602008-06-18 Kenichi Handa <handa@m17n.org>
10261
10262 * font.c (font_parse_xlfd): Fix previous change.
10263 (font_parse_fcname): Don't use :fc-unknown-spec.
10264 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10265 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10266 (font_add_log): Prepend the driver name to the resulting fonts.
10267
10268 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10269 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10270 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10271
10272 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10273 (QCembolden): New variables.
10274 (syms_of_xftfont): DEFSYM them.
10275 (xftfont_open): Call XftFontMatch. Don't trust the result of
10276 XftTextExtents8 if the pixel_size is less than 5.
10277
102782008-06-18 Andreas Schwab <schwab@suse.de>
10279
10280 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10281 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10282
102832008-06-18 Jason Rumney <jasonr@gnu.org>
10284
10285 * w32font.c (w32font_list, w32font_match): Add logging.
10286
10287 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10288
102892008-06-17 Chong Yidong <cyd@stupidchicken.com>
10290
10291 * font.c (font_parse_fcname): Store divider characters for
10292 unknown-spec list. For known key symbols, intern using correct
10293 symbol name.
10294
102952008-06-17 Kenichi Handa <handa@m17n.org>
10296
10297 * xfaces.c (realize_default_face): If the frame is not on window
10298 system, set the fontset of face to nil.
10299
103002008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10301
10302 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10303
103042008-06-16 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10307 (build_font_name_from_vector): Delete externs.
10308
10309 * xfaces.c (struct font_name): Don't declare.
10310
103112008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10312
10313 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10314
103152008-06-16 Chong Yidong <cyd@stupidchicken.com>
10316
10317 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10318
103192008-06-16 Juanma Barranquero <lekktu@gmail.com>
10320
10321 * font.c (Ffont_spec): Fix usage in docstring.
10322 (Ffont_face_attributes): Doc fix.
10323
103242008-06-16 Andreas Schwab <schwab@suse.de>
10325
10326 * font.c (Ffont_face_attributes): Fix definition.
10327
103282008-06-16 Jason Rumney <jasonr@gnu.org>
10329
10330 * font.h (font_style_symbolic_from_value): Remove.
10331
10332 * font.c (font_style_symbolic_from_value): Remove.
10333 (font_style_symbolic): Revert to pre 2008-06-13 version.
10334
10335 * w32font.c (w32_to_fc_weight): New function.
10336 (w32font_full_name, logfont_to_fcname): Use it.
10337
103382008-06-16 Kenichi Handa <handa@m17n.org>
10339
10340 * font.c (font_check_object): Delete it.
10341 (font_clear_cache): Check if a font-object is alive.
10342 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10343 font-object to nil.
10344 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10345 (font_at): Don't call font_check_object.
10346 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10347
103482008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10349
10350 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10351
103522008-06-16 Chong Yidong <cyd@stupidchicken.com>
10353
10354 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10355
103562008-06-15 Chong Yidong <cyd@stupidchicken.com>
10357
10358 * font.c (font_parse_fcname): Only one decimal point.
10359 (font_unparse_fcname): Handle data in family and foundry indices
10360 as symbols, not strings.
10361 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10362
10363 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10364
10365 * font.h (font_unparse_gtkname): Add prototype.
10366
103672008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10368
10369 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10370
103712008-06-15 Andreas Schwab <schwab@suse.de>
10372
10373 * font.c (font_update_drivers): Fix crash when no drivers match.
10374
103752008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10376
10377 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10378 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10379
103802008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10383
103842008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10385
10386 * process.c (Fserial_process_configure, Fprocess_send_eof):
10387 Use EQ to compare Lisp_Objects.
10388
103892008-06-13 Jason Rumney <jasonr@gnu.org>
10390
10391 * w32fns.c (Fw32_select_font): Remove old font API function.
10392
10393 * w32font.c (logfont_to_fcname): New function.
10394 (Fx_select_font): New font dialog function compatible with
10395 GTK/fontconfig version.
10396
10397 * font.c (font_style_symbolic_from_value): New function.
10398 (font_style_symbolic): Use it.
10399
10400 * font.h (font_style_symbolic_from_value): Declare new function.
10401
104022008-06-13 Juanma Barranquero <lekktu@gmail.com>
10403
10404 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10405 <font-width-table>: Fix typos in docstrings.
10406
104072008-06-13 Daniel Engeler <engeler@gmail.com>
10408
10409 These changes add serial port access.
10410 * process.c: Add HAVE_SERIAL.
10411 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10412 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10413 (list_processes_1, select_wrapper, Fstop_process)
10414 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10415 (status_notify): Modify to handle serial processes.
10416 [HAVE_SERIAL] (Fserial_process_configure)
10417 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10418 New functions.
10419 * process.h (struct Lisp_Process): Add `type'.
10420 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10421 New functions.
10422 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10423 serial ports.
b71ac3dd 10424 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10425 * w32.h: Add FILE_SERIAL.
10426 (struct _child_process): Add ovl_read, ovl_write.
10427
104282008-06-13 Kenichi Handa <handa@m17n.org>
10429
10430 * dispextern.h (enum lface_attribute_index): New member
10431 LFACE_FOUNDRY_INDEX.
10432
10433 * font.c (font_score): Delete arg alternate_families. Check only
10434 weight, slant, width, and size. Ignore the difference of alias
10435 style symbols.
10436 (font_sort_entites): Adjust for the above change. Reflect the
10437 order of font-driver to scores.
10438 (font_list_entities): Don't check alternate_familes here.
10439 (font_clear_prop): Handle foundry.
10440 (font_update_lface): Don't parse "foundry-family" form here.
10441 Handle FONT_FOUNDRY_INDEX.
10442 (font_find_for_lface): Likewise. Handle alternate families here.
10443 If registry is nil, try iso8859-1 and ascii-0.
10444 (font_open_for_lface): Pay attention to size in ENTITY.
10445 (font_open_by_name): Simplify by calling font_load_for_lface.
10446 (free_font_driver_list): Delete it.
10447 (font_update_drivers): Preserve the order of backends.
10448 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10449 of font_score and font_sort_entites.
10450 (font_update_sort_order): Likewise.
10451
10452 * xfaces.c (LFACE_FOUNDRY): New macro.
10453 (check_lface_attrs): Check foundry.
10454 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10455 (merge_face_vectors): Check foundry.
10456 (merge_face_ref): Likewise.
10457 (Finternal_set_lisp_face_attribute): Likewise.
10458 (x_update_menu_appearance): Likewise.
10459 (Finternal_get_lisp_face_attribute): Likewise.
10460 (lface_hash): Likewise.
10461 (lface_same_font_attributes_p): Likewise.
10462 (x_supports_face_attributes_p): Likewise.
10463 (tty_supports_face_attributes_p): Likewise.
10464 (Finternal_set_alternative_font_family_alist): Intern strings.
10465 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10466 (realize_default_face): Set LFACE_FOUNDRY (lface).
10467
10468 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10469 font-driver at first.
10470
10471 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10472
104732008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10474
10475 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10476
104772008-06-12 Jim Meyering <meyering@redhat.com>
10478
10479 Make unexec_free handle NULL the same way free does.
10480 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10481
104822008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10483
10484 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10485 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10486 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10487 (WEAK_ALIAS): Simplify.
10488 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10489 when searching a unibyte buffer.
10490
104912008-06-12 Chong Yidong <cyd@stupidchicken.com>
10492
10493 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10494
104952008-06-12 Juanma Barranquero <lekktu@gmail.com>
10496
10497 * w32font.c: Include ctype.h.
10498
104992008-06-11 Jason Rumney <jasonr@gnu.org>
10500
10501 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10502 misreported as space.
10503 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10504 as aliases for registry iso10646-1.
10505
105062008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10507
10508 * buffer.c (clone_per_buffer_values): Skip `name'.
10509
105102008-06-11 Chong Yidong <cyd@stupidchicken.com>
10511
10512 * font.c (font_parse_fcname): Fix last change; accept decimal
10513 points in font size.
10514
105152008-06-10 Jason Rumney <jasonr@gnu.org>
10516
10517 * w32uniscribe.c (add_opentype_font_name_to_list):
10518 Skip non unicode fonts.
10519
105202008-06-10 Chong Yidong <cyd@stupidchicken.com>
10521
10522 * xfns.c (Fx_font_dialog): New function.
10523
10524 * gtkutil.c (xg_dialog_response_cb): Rename from
10525 xg_file_response_callback.
10526 (pop_down_dialog): Rename from pop_down_file_dialog.
10527 (xg_get_file_name): Callers changed.
10528 (xg_get_font_name): New function.
10529
10530 * gtkutil.h (xg_get_font_name): Insert prototype.
10531
105322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10535 x_underline_minimum_display_offset.
10536 (syms_of_xdisp): Declare it here rather than in xterm.c.
10537 * dispextern.h (underline_minimum_offset): Declare it.
10538 * w32term.c (x_draw_glyph_string): Use it.
10539 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10540 (syms_of_xterm): Don't declare it any more.
10541 (x_draw_glyph_string): Adjust to the new name.
10542
8719abec 105432008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10544
10545 * xterm.c (x_underline_minimum_display_offset): New var.
10546 (x_draw_glyph_string): Use it.
10547 (syms_of_xterm): Declare it.
10548
105492008-06-10 Chong Yidong <cyd@stupidchicken.com>
10550
10551 * font.c (font_parse_fcname): Accept GTK-style font names too.
10552
105532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10554
10555 * dired.c (file_name_completion): Don't return t if the match is exact
10556 but with different capitalization.
10557 * minibuf.c (Ftry_completion): Simplify.
10558
10559 * window.c (Vwindow_point_insertion_type): New var.
10560 (set_window_buffer): Use it.
10561 (syms_of_window): Init and export it to Lisp.
10562
105632008-06-10 Kenichi Handa <handa@m17n.org>
10564
10565 * font.h (font_intern_prop): Prototype adjusted.
10566
10567 * font.c (font_intern_prop): New arg force_symbol.
10568 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10569 Adjust for the change of font_intern_prop.
10570
10571 * ftfont.c (ftfont_pattern_entity):
10572 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10573 (w32_registry):
10574 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10575 the change of font_intern_prop.
10576
105772008-06-09 Juanma Barranquero <lekktu@gmail.com>
10578
10579 * w32menu.c (digest_single_submenu): Declare extern.
10580
105812008-06-09 Jason Rumney <jasonr@gnu.org>
10582
10583 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10584
10585 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10586 (parse_single_submenu): Remove.
10587 (digest_single_submenu): Remove.
10588 (syms_of_w32menu): Don't initialise variables that have moved
10589 to menu.c.
10590 (set_frame_menubar): Sync with version in xmenu.c.
10591 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10592
10593 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10594 Make static again.
10595
105962008-06-09 Jason Rumney <jasonr@gnu.org>
10597
10598 Changes to w32 files related to the move of common menu code
10599 to menu.c on 2008-06-08 by Chong Yidong.
10600
10601 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10602 defs to w32gui.h.
10603 (single_keymap_panes, push_menu_item, push_menu_pane):
10604 Make globally visible.
10605
10606 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10607 (local_free, malloc_widget_value, free_widget_value)
10608 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10609 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10610 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10611 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10612 (menu_items, menu_items_allocated, menu_items_used)
10613 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10614 (init_menu_items, finish_menu_items, discard_menu_items)
10615 (grow_menu_items, push_submenu_start, push_submenu_end)
10616 (push_left_right_boundary, push_menu_pane, push_menu_item)
10617 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10618 (free_menubar_widget_tree_value, parse_single_submenu)
10619 (update_submenu_strings): Remove functions.
10620 (xmalloc_widget_value): Remove and declare extern.
10621
10622 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10623 (OBJ1): Build it.
10624
10625 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10626 (local_heap, local_alloc, local_free, malloc_widget_value)
10627 (free_widget_value): Define here.
10628
106292008-06-09 Kenichi Handa <handa@m17n.org>
10630
10631 * font.h (Qascii_0): Extern it.
10632
10633 * font.c (Qascii_0): New variable.
10634 (syms_of_font): DEFSYM it.
10635 (font_open_by_name): If the registry "iso8859-1" fails, try also
10636 "ascii-0".
10637
10638 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10639
106402008-06-08 Kenichi Handa <handa@m17n.org>
10641
10642 * .gdbinit (xfont): New command.
10643
106442008-06-08 Andreas Schwab <schwab@suse.de>
10645
10646 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10647 * Makefile.in (menu.o): Update dependencies.
10648
10649 * Makefile.in (obj): Always add menu.o.
10650 * emacs.c (main): Always call syms_of_menu.
10651 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10652
106532008-06-08 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * Makefile.in: Compile menu.c.
10656
10657 * lisp.h: Declare syms_of_menu.
10658
10659 * emacs.c (main): Call syms_of_menu.
10660
10661 * keyboard.h: Relocate platform-independent menu definitions from
10662 xmenu.c.
10663
10664 * menu.c: New file. Relocate platform-independent menu
10665 definitions from xmenu.c. Suggested by Adrian Robert.
10666
10667 * xmenu.c: Remove platform-independent menu definitions.
10668 (menu_items menu_items_inuse, menu_items_allocated)
10669 (menu_items_used, menu_items_n_panes)
10670 (menu_items_submenu_depth): Move to keyboard.h.
10671 (init_menu_items, finish_menu_items, unuse_menu_items)
10672 (discard_menu_items, restore_menu_items, save_menu_items)
10673 (grow_menu_items, push_submenu_start, push_submenu_end)
10674 (push_left_right_boundary, push_menu_pane, push_menu_item)
10675 (keymap_panes, single_keymap_panes, single_menu_item)
10676 (list_of_panes, list_of_items, find_and_call_menu_selection)
10677 (xmalloc_widget_value, free_menubar_widget_value_tree)
10678 (parse_single_submenu, digest_single_submenu)
10679 (update_submenu_strings): Move to menu.c.
10680
106812008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10682
10683 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10684
106852008-06-06 Miles Bader <miles@gnu.org>
10686
10687 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10688 face, not frame default.
10689
106902008-06-05 Martin Rudalics <rudalics@gmx.at>
10691
10692 * window.c (pop_up_windows, pop_up_frames)
10693 (display_buffer_reuse_frames, Vpop_up_frame_function)
10694 (Vdisplay_buffer_function, Veven_window_heights)
10695 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10696 (Vspecial_display_function, Vsame_window_buffer_names)
10697 (Vsame_window_regexps, split_height_threshold)
10698 (Vsplit_window_preferred_function): Move those vars to window.el.
10699 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10700 (Fdisplay_buffer): Move those functions to window.el.
10701 (syms_of_window): Remove corresponding declarations.
10702 (display_buffer): New function.
10703 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10704 * dispnew.c (Flast_nonminibuf_frame): New function.
10705 * buffer.c (Fpop_to_buffer): Move to window.el.
10706
107072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10708
10709 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10710
107112008-06-05 Kenichi Handa <handa@m17n.org>
10712
10713 * coding.c (detect_coding): Fix previous change.
10714 (detect_coding_system): Likewise.
10715
107162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10717
10718 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10719
10720 * keymap.c (Vminibuffer_local_filename_must_match_map):
10721 Rename from Vminibuffer_local_must_match_filename_map.
10722 (syms_of_keymap):
10723 * minibuf.c (Fcompleting_read): Adjust accordingly.
10724 * commands.h: Rename declaration as well.
10725
107262008-06-05 Kenichi Handa <handa@m17n.org>
10727
10728 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10729 family name.
10730 (Ffont_put): Likewise.
10731
10732 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10733 current font-spec.
10734
10735 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10736 is unspecified.
10737
10738 * xfaces.c (realize_x_face): If the font-related face attributes
10739 are the same as those of default face, realize a new fontset from
10740 default->fontset.
10741 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10742
107432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10744
10745 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10746 (move_it_in_display_line): New wrapper.
10747
10748 * window.c (window_scroll_pixel_based_preserve_x)
10749 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10750 (window_scroll_pixel_based, window_scroll_line_based):
10751 Use them to preserve column positions.
10752 (syms_of_window): Initialize them.
10753
10754 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10755 (HPOS . VPOS) pair.
10756
10757 * dispextern.h (move_it_in_display_line): Declare.
10758
107592008-06-05 Juanma Barranquero <lekktu@gmail.com>
10760
10761 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10762 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10763 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10764
107652008-06-04 Juanma Barranquero <lekktu@gmail.com>
10766
10767 * window.c (Fset_window_parameter): Doc fix.
10768 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10769
107702008-06-04 Joakim Verona <joakim@verona.se>
10771
10772 * window.h (struct window): Add new member window_parameters.
10773
10774 * window.c (Fwindow_parameters, Fwindow_parameter)
10775 (Fset_window_parameter): New defuns.
10776 (syms_of_window): Defsubr the new defuns.
10777 (make_window): Initialize window_parameters to nil.
10778
107792008-06-04 John Paul Wallington <jpw@pobox.com>
10780
10781 * eval.c (Fdefmacro): Doc fix.
10782
107832008-06-04 Kenichi Handa <handa@m17n.org>
10784
10785 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10786 Be sure to call setup_coding_system when we find a proper coding system.
10787 (detect_coding_system): Fix handling of coding->head_ascii.
10788
107892008-06-03 Andreas Schwab <schwab@suse.de>
10790
10791 * font.c (font_prop_validate_spacing): Fix last change.
10792
107932008-06-03 Kenichi Handa <handa@m17n.org>
10794
10795 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10796 (font_parse_fcname): Fix handling of unknown key.
10797
10798 * xfont.c (xfont_list): Try an alias.
10799
10800 * charset.c (char_charset): Return NULL if the arg charset_list is
10801 specified and C doesn't belong to any of them.
10802
108032008-06-02 Chip Coldwell <coldwell@redhat.com>
10804
10805 * font.c (font_pixel_size): Don't take cdr of an integer.
10806
108072008-06-02 Jim Meyering <meyering@redhat.com>
10808
10809 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10810 * alloc.c (xfree): Return right away for a NULL arg.
10811 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10812 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10813 * mac.c (create_apple_event_from_event_ref): Likewise.
10814 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10815 Likewise.
10816 * doprnt.c (doprnt1): Likewise.
10817 * frame.c (frame): Likewise.
10818 * keyboard.c (wipe_kboard): Likewise.
10819 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10820 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10821 * term.c (tty_default_color_capabilities, maybe_fatal)
10822 (delete_tty): Likewise.
10823 * w16select.c (string): Likewise.
10824 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10825 * w32bdf.c (w32_free_bdf_font): Likewise.
10826 * w32fns.c (w32_unload_font): Likewise.
10827 * w32font.c (w32font_close): Likewise.
10828 * window.c (size_window): Likewise.
10829 * xselect.c (receive_incremental_selection): Likewise.
10830 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10831 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10832 * w32.c (stat): Likewise.
10833
10834 Remove useless if-before-free tests.
10835 * editfns.c (Fset_time_zone_rule): Likewise.
10836 * lread.c (nosuffix): Likewise.
10837 * ralloc.c (get_bloc): Likewise.
10838 * regex.c (reg_free): Likewise.
10839 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10840 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10841 * xsmfns.c (smc_save_yourself_CB): Likewise.
10842
108432008-06-02 Kenichi Handa <handa@m17n.org>
10844
10845 * font.c (font_find_for_lface): Handle float font size.
10846 (font_open_for_lface): Likewise.
10847
10848 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10849 comparing the properties.
10850
108512008-06-01 Jason Rumney <jasonr@gnu.org>
10852
10853 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10854 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10855 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10856 Don't add empty script list.
10857 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10858
108592008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10860
10861 * Makefile.in (dot, dotdot): Remove, update users.
10862 ".." has been used elsewhere in the file for a long time.
10863 (LIBXT_STATIC): Remove conditional based on unused variable.
10864
108652008-06-01 Miles Bader <miles@gnu.org>
10866
10867 * xfaces.c (Vface_remapping_alist): New variable.
10868 (syms_of_xfaces): Initialize it.
10869 (enum named_merge_point_kind): New type.
10870 (struct named_merge_point): Add `named_merge_point_kind' field.
10871 (push_named_merge_point): Make cycle detection respect different
10872 named-merge-point kinds.
10873 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10874 Remove face-name alias resolution.
10875 (lface_from_face_name): New definition using
10876 `lface_from_face_name_no_resolve'.
10877 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10878 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10879 (get_lface_attributes): New definition that layers face-remapping on
10880 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10881 (lookup_basic_face): New function.
10882 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10883 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10884 `get_lface_attributes'.
10885 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10886 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10887 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10888
10889 * xdisp.c (init_iterator): Pass base_face_id through
10890 `lookup_basic_face' when we actually use it as a face-id.
10891 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10892 DEFAULT_FACE_ID.
10893
10894 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10895 lookup the initial face-id.
10896
10897 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10898
108992008-06-01 Juanma Barranquero <lekktu@gmail.com>
10900
10901 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10902 (Fremove_text_properties): Fix typos in docstrings.
10903
109042008-05-31 Kenichi Handa <handa@m17n.org>
10905
10906 * font.c (font_list_entities): Fix the car part of data to be
10907 stored in the cache.
10908
10909 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10910
109112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10912
10913 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10914 Add a `test' argument so another predicate than `equal' can be used.
10915 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10916 (map_char_table): Remove unused vars `c' and `i'.
10917 * lisp.h (Foptimize_char_table): Adjust declaration.
10918 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10919
109202008-05-30 Kenichi Handa <handa@m17n.org>
10921
10922 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10923 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10924 defined.
10925
109262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10927
10928 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10929 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10930 frame-local settings for the same variable.
10931
109322008-05-30 Kenichi Handa <handa@m17n.org>
10933
10934 * fontset.c (Ffont_info): Move to font.c.
10935 (syms_of_fontset): Delete defsubr of Sfont_info.
10936
10937 * font.c (font_style_to_value, font_score): Delete casting of the
10938 args to xstcasecmp.
10939 (register_font_driver): Increment num_font_drivers only when
10940 registering the driver globally.
10941 (Ffont_info): Move from fontset.c. Handle a font object too.
10942 (syms_of_font): Defsubr Sfont_info.
10943
109442008-05-29 Kenichi Handa <handa@m17n.org>
10945
10946 * coding.h (enum define_coding_utf8_arg_index): New enum.
10947 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10948 coding_attr_utf_bom.
10949 (enum utf_bom_type): Rename from utf_16_bom_type.
10950 (struct utf_16_spec): Adjust for the above change.
10951 (struct coding_system): Add utf_8_bom in `spec' union.
10952
10953 * coding.c (CODING_UTF_8_BOM): New macro.
10954 (enum coding_category): Delete coding_category_utf_8, add
10955 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10956 coding_category_utf_8_sig.
10957 (CATEGORY_MASK_UTF_8): Delete it.
10958 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10959 (CATEGORY_MASK_UTF_8_SIG): New macros.
10960 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10961 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10962 CATEGORY_MASK_UTF_8_SIG.
10963 (CATEGORY_MASK_UTF_8): New macro.
10964 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10965 (detect_coding_utf_8): Check BOM.
10966 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10967 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10968 (encode_coding_utf_16): Likewise.
10969 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10970 (detect_coding, detect_coding_system): Handle utf-8-auto.
10971 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10972 (syms_of_coding): Fix setting up of Vcoding_category_table.
10973
109742008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10975
10976 * process.c (Faccept_process_output): If `millisec' is non-nil,
10977 `seconds' default to 0.
10978 (wait_reading_process_output): Also return non-nil if we read output
10979 from a non-running process.
10980
109812008-05-29 Jason Rumney <jasonr@gnu.org>
10982
10983 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10984 `raster' specified.
10985 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10986 in the uniscribe backend, but disallow any font that has no
10987 unicode subrange support.
10988
109892008-05-29 Juanma Barranquero <lekktu@gmail.com>
10990
10991 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10992 Fix typos in docstrings.
10993
109942008-05-29 Kenichi Handa <handa@m17n.org>
10995
10996 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10997 (Fx_family_fonts): Set frame correctly.
10998
109992008-05-28 Jason Rumney <jasonr@gnu.org>
11000
11001 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11002
110032008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11006 calling build_annotations.
11007
110082008-05-28 Juanma Barranquero <lekktu@gmail.com>
11009
11010 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11011 (Fencode_coding_string):
11012 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11013 <latin-extra-code-table>: Fix typos in docstrings.
11014 (syms_of_coding) <coding-system-alist>: Doc fix.
11015 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11016
110172008-05-28 Kenichi Handa <handa@m17n.org>
11018
11019 * fontset.c (Ffont_info): Don't call font_close_object.
11020
11021 * font.c (font_parse_family_registry): Use Ffont_put to validate
11022 foundry and family.
11023 (font_delete_unmatched): Don't check spacing.
11024 (font_list_entities): Add spacing to the spec to list fonts.
11025
11026 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11027 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11028
11029 * coding.c (encode_coding_raw_text): Fix previous change.
11030 (encode_coding_object): When the dst_object is a buffer and is
11031 different from src_object, move gap to PT.
11032
110332008-05-27 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11036
110372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11038
11039 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11040 all branches. Compute it differently.
11041
11042 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11043
110442008-05-27 Juanma Barranquero <lekktu@gmail.com>
11045
11046 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11047 into "else if () ... else ...".
11048
110492008-05-27 Jason Rumney <jasonr@gnu.org>
11050
11051 * w32font.c (w32font_open_internal): Determine if glyph indices
11052 are likely to work here.
11053
110542008-05-27 Chong Yidong <cyd@stupidchicken.com>
11055
11056 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11057 draw overlap glyphs with appropriate highlighting.
11058
110592008-05-27 Kenichi Handa <handa@m17n.org>
11060
11061 * xfont.c (xfont_open): Fix calculation of font->average_width.
11062
110632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11064
11065 * casefiddle.c (casify_object): Try to guess better whether the
11066 argument is a byte or a char.
11067
110682008-05-26 Andreas Schwab <schwab@suse.de>
11069
11070 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11071 Always send multiples of format size.
11072
11073 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11074
110752008-05-26 Jason Rumney <jasonr@gnu.org>
11076
11077 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11078 (compute_metrics): Don't set failure if we just cleared the cache.
11079 (w32_weight_table): Remove unused variable.
11080 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11081 backwards compatibility.
11082
110832008-05-25 Kenichi Handa <handa@m17n.org>
11084
11085 * w32term.c (x_draw_glyph_string):
11086 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11087
11088 * xfaces.c: Delete unused function prototypes.
11089 (xstrlwr, font_frame): Delete them.
11090 (clear_face_cache): Delete unused variable.
11091
11092 * xftfont.c (xftfont_open): Delete unused variable.
11093 If underline_thickness is not 1, adjust underline_position.
11094
11095 * ftxfont.c (ftxfont_open): Delete unused variable.
11096
11097 * fontset.c (face_for_char): Optimize for the case of no charset
11098 property.
11099
11100 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11101 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11102 (otf_open, font_otf_capability, generate_otf_features)
11103 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11104 Comment out by surrounding "#if 0" and "#endif" for the moment.
11105 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11106 (syms_of_font): Codes for accessing above commented out.
11107
111082008-05-24 Eli Zaretskii <eliz@gnu.org>
11109
11110 * w32proc.c: Include dispextern.h.
11111
11112 * w32.c: Include dispextern.h.
11113
111142008-05-23 Juanma Barranquero <lekktu@gmail.com>
11115
11116 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11117 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11118 Fix typos in docstrings.
11119
111202008-05-23 Jason Rumney <jasonr@gnu.org>
11121
11122 * xsmfns.c: Remove includes that are already included by config.h.
11123
111242008-05-23 Kenichi Handa <handa@m17n.org>
11125
11126 * charset.c (Qemacs, charset_emacs): New variables.
11127 (char_charset): Fix for non-Unicode characters.
11128 (syms_of_charset): Define charset_emacs.
11129
11130 * w32term.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 * xterm.c (x_draw_glyph_string): Be sure to update
11135 s->underline_thickness and s->underline_position. Be sure to draw
11136 underline within the current line area.
11137
11138 * fontset.c: Delete unused variables and add casting for char *
11139 throughout the file.
11140 (fontset_font): Try the fallback fonts of the current fontset
11141 before consulting the default fontset.
11142
11143 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11144
11145 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11146
111472008-05-22 Jason Rumney <jasonr@gnu.org>
11148
11149 * font.c: Don't include strings.h.
11150
11151 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11152
11153 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11154 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11155 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11156 to call xstrcasecmp.
11157
11158 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11159
11160 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11161
11162 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11163
11164 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11165
111662008-05-22 Kenichi Handa <handa@m17n.org>
11167
11168 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11169
11170 * font.c (font_prop_validate_style): Adjust for the format
11171 change of font_style_table.
11172
11173 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11174 two args.
11175
11176 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11177 two args.
11178
111792008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11180
11181 * minibuf.c (keys_of_minibuf): Delete.
11182 * lisp.h (keys_of_minibuf): Delete.
11183 * emacs.c (main): Don't call keys_of_minibuf.
11184
111852008-05-22 Kenichi Handa <handa@m17n.org>
11186
11187 * ftfont.c (ftfont_resolve_generic_family): Rename from
11188 ftfont_list_generic_family. Return a single family for each
11189 generic family.
11190 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11191 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11192 Call font_add_log.
11193 (ftfont_match): Call font_add_log.
11194
11195 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11196 (FONT_DEBUG): Define it.
11197 (font_add_log): Extern it.
11198 (font_assert): Rename from xassert.
11199
11200 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11201 (xfont_list_family): Call font_add_log.
11202 (xfont_match): Likewise.
11203 (memq_no_quit): Delete.
11204
11205 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11206 call of Ffont_xlfd_name.
11207
11208 * xfaces.c (struct table_entry, slant_table, weight_table)
11209 (swidth_table): Move to font.c.
11210
11211 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11212 xassert are changed to font_assert. Delete many unused variables.
11213 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11214 New variables.
11215 (struct table_entry): Move from xfaces.c and modified.
11216 (weight_table, slant_table, width_table): Move from xfaces.c and
11217 contents adjusted for the change of struct table_entry.
11218 (font_style_to_value, font_style_symbolic): Adjust for the
11219 format change of font_style_table.
11220 (font_parse_family_registry): Don't overwrite existing foundry and
11221 family of font_spec.
11222 (font_score): Fix calculation of diff for sizes.
11223 (font_sort_entites): Call font_add_log.
11224 (font_delete_unmatched): Return a newly created list.
11225 (font_list_entities): Fix previous change. Call font_add_log.
11226 (font_matching_entity, font_open_entity, font_close_entity):
11227 Call font_add_log.
11228 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11229 (Finternal_set_font_style_table): Delete.
11230 (BUILD_STYLE_TABLE): New macro.
11231 (build_style_table): New function.
11232 (Vfont_log, font_log_env_checked): New variables.
11233 (font_add_log): New function.
11234 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11235 Declare Lisp variables "font-weight-table", "font-slant-table",
11236 "font-width-table", and "font-log". Initialize font_style_table.
11237
112382008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11239
11240 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11241
112422008-05-21 Seiji Zenitani <zenitani@mac.com>
11243 Ryo Yoshitake <ryo@shiftmode.net>
11244
11245 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11246 (Vframe_alpha_lower_limit): New variable.
11247 (x_set_alpha): New function.
11248
11249 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11250
11251 * xfns.c (x-create-frame, Qalpha):
11252 Initialize the frame parameter `alpha'.
11253 * xterm.c (OPAQUE, OPACITY): New.
11254 (x_set_frame_alpha): New function.
11255 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11256
11257 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11258 * w32fns.c (w32_frame_parm_handlers): Likewise.
11259
112602008-05-20 Jason Rumney <jasonr@gnu.org>
11261
11262 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11263 truetype fonts to opentype list.
11264
112652008-05-20 Juanma Barranquero <lekktu@gmail.com>
11266
11267 * fontset.c (Ffontset_info): Doc fix.
11268 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11269 <ignore-relative-composition>: Fix typos in docstrings.
11270
11271 * font.c (syms-of-font) <font-encoding-alist>:
11272 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11273 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11274 (Ffont_otf_alternates): Doc fixes.
11275
112762008-05-20 Kenichi Handa <handa@m17n.org>
11277
11278 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11279 font.h through out the file.
11280 (FONT_DRIVERS): Rename from FONTOBJ.
11281 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11282 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11283
11284 * emacs.c (main): Call syms_of_font unconditionally.
11285
11286 * font.h (find_font_encoding): Extern it.
11287
11288 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11289 fontset.c.
194d44e7 11290 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11291 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11292 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11293 only when HAVE_WINDOW_SYSTEM is defined.
11294 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11295 when HAVE_WINDOW_SYSTEM is defined.
11296
11297 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11298 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11299
11300 * xfaces.c: Include font.h unconditionally.
11301 (merge_face_ref, merge_face_vectors)
11302 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11303
113042008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11305
11306 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11307 indirect_variable.
11308 * eval.c (lisp_indirect_variable): New fun.
11309 (Fuser_variable_p): Use it.
11310
113112008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11312
11313 * lisp.h (indirect_variable):
11314 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11315 Use Lisp_Symbol pointers rather than Lisp_Object.
11316 Adjust callers.
11317 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11318 To this end, change calling-convention.
11319
11320 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11321 if some non-hidden buffers are selected by string&pred.
11322
113232008-05-19 Chong Yidong <cyd@stupidchicken.com>
11324
11325 * process.c (wait_reading_process_output): Always check status
11326 when in batch mode.
11327
113282008-05-19 Kenichi Handa <handa@m17n.org>
11329
11330 * font.c (font_list_entities): Fix handling of cache.
11331 (font_matching_entity): Likewise.
11332
11333 * ftfont.c (cs_iso8859_1): Delete.
11334 (ft_face_cache): New variable.
11335 (struct ftfont_info): New member fc_charset_idx.
11336 (ftfont_build_basic_charsets): Delete.
11337 (fc_charset_table): New variable.
11338 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11339 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11340 Callers changed.
11341 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11342 (ftfont_spec_pattern): New argument fc_charset_idx.
11343 Check registry more rigidly. Change callers.
11344 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11345 change of :font-entity property of the font.
11346
11347 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11348 property of the font.
11349
113502008-05-18 Juanma Barranquero <lekktu@gmail.com>
11351
11352 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11353 (Funencodable_char_position, Fcheck_coding_systems_region)
11354 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11355 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11356 (Ffind_operation_coding_system, Fset_coding_system_priority)
11357 (Fcoding_system_eol_type): Doc fixes.
11358
113592008-05-17 Glenn Morris <rgm@gnu.org>
11360
11361 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11362
113632008-05-16 Eli Zaretskii <eliz@gnu.org>
11364
11365 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11366 and st_gid.
11367
11368 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11369 HAVE_WINDOW_SYSTEM is not defined.
11370
11371 * xfaces.c (merge_face_ref, merge_face_vectors)
11372 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11373 HAVE_WINDOW_SYSTEM is defined.
11374 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11375
113762008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11377
11378 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11379
113802008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11381
11382 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11383
113842008-05-15 Kenichi Handa <handa@m17n.org>
11385
11386 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11387 preference.
11388
113892008-05-15 Glenn Morris <rgm@gnu.org>
11390
11391 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11392
113932008-05-15 Chong Yidong <cyd@stupidchicken.com>
11394
11395 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11396 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11397
11398 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11399
114002008-05-15 Kenichi Handa <handa@m17n.org>
11401
11402 * ftfont.c (ftfont_list): Downcase family name to check generic
11403 families.
11404
11405 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11406 font-spec for QCfont value.
11407
11408 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11409 buffer. Check the return value of it.
11410
114112008-05-14 Jason Rumney <jasonr@gnu.org>
11412
11413 * w32term.c (w32_get_glyph_overhangs): Remove.
11414 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11415
114162008-05-14 Kenichi Handa <handa@m17n.org>
11417
11418 * font.c (font_prop_validate): Make nil a valid value.
11419 (font_clear_cache): Check if the cached vector of entities is nil
11420 or not.
11421
114222008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11423
11424 * emacs.c (main_thread): Conditionalize on
11425 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11426 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11427
11428 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11429 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11430 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11431
114322008-05-14 Kenichi Handa <handa@m17n.org>
11433
11434 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11435 has no corresponding coding system.
11436
114372008-05-14 Jason Rumney <jasonr@gnu.org>
11438
11439 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11440
11441 * w32font.h (w32font_open_internal): Update declaration.
11442
11443 * w32font.c (w32font_open_internal): Change last argument from
11444 w32font_info struct to font object. Fill in font object from
11445 font_entity. Get Outline metrics if possible. Use them to
11446 calculate underline position and thickness. Use xlfd name as name
11447 property. Don't set codepage.
11448 (w32font_open): Pass font_object to w32font_open_internal. Don't
11449 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11450 (w32font_draw): Use s->font.
11451 (clear_cached_metrics): Don't clear non-existent blocks.
11452
11453 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11454 font was not found.
11455 (x_draw_glyph_string): Use underline position and thickness from font.
11456
11457 * w32uniscribe.c (uniscribe_open): Pass font_object to
11458 w32font_open_internal.
11459
114602008-05-14 Kenichi Handa <handa@m17n.org>
11461
11462 These changes are to delete all legacy font-handling codes, and
11463 make Emacs use only font-backends.
11464
11465 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11466 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11467
11468 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11469
11470 * charset.h (Vcharset_non_preferred_head)
11471 (Vcurrent_iso639_language): Extern them.
11472
11473 * charset.c (Vcharset_non_preferred_head): New variable.
11474 (Vcurrent_iso639_language): New variable.
11475 (syms_of_charset): Declare it as a Lisp variable.
11476 (char_charset): Don't check non preferred charsets. As a last
11477 resort, return charset_unicode.
11478 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11479
11480 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11481 conditionals. Don't check enable_font_backend. Delete all codes
11482 used only when USE_FONT_BACKEND is not defined.
11483
11484 * dispextern.h (struct glyph_string): Change type of `font' to
11485 `struct font *'.
11486 (struct glyph_string): New member underline_position and
11487 underline_thickness.
11488 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11489 (struct face): Change type of `font' to `struct font *'. Remove
11490 members `font_name', `font_info_id'.
11491 (per_char_metric, encode_char): Delete externs.
11492 (calc_pixel_width_or_height): Adjust the prototype.
11493
11494 * emacs.c (enable_font_backend): Delete extern.
11495 (main): Don't set enable_font_backend. Don't check the command
11496 line argument "-disable-font-backend".
11497
11498 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11499 (enum font_property_index): New members FONT_DPI_INDEX,
11500 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11501 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11502 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11503 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11504 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11505 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11506 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11507 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11508 (struct font_spec, struct font_entity): New structs.
11509 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11510 (struct font): Many members from old "struct font_info" moved to
11511 here. Members font and entity deleted.
11512 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11513 the new font-related objects.
11514 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11515 (CHECK_FONT_GET_OBJECT): Likewise.
11516 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11517 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11518 (struct font_driver): New members case_sensitive anc check. Type
11519 of the member list and open changed.
11520 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11521 (font_symbolic_width, font_find_object, font_get_spec)
11522 (font_set_lface_from_name): Delete extern.
11523 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11524
11525 * font.c: Include <strings.h>.
11526 (enable_font_backend): Delete it.
11527 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11528 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11529 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11530 (null_string): Delete it.
11531 (null_vector): Make it static.
11532 (font_family_alist): Delete it.
11533 (Qnormal): Extern it.
11534 (QCextra, QClanguage): Delete it.
11535 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11536 (font_make_spec, font_make_entity, font_make_object)
11537 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11538 the string. Callers changed.
11539 (font_pixel_size): Adjusted for the format change of font-related
11540 objects.
11541 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11542 (font_style_to_value, font_style_symbolic): New function.
11543 (build_font_family_alist): Delete it.
11544 (font_registry_charsets): Use Fassoc_string instead of
11545 assq_no_quit.
11546 (font_prop_validate_symbol): Don't return null_string.
11547 (font_prop_validate_style): Adjusted for the change of
11548 style-related values in a font vector.
11549 (font_property_table): Delete entries for QClanguage and
11550 QCantialias, add entries for QCavgwidth.
11551 (get_font_prop_index): Delete the 2nd argument FROM.
11552 (font_prop_validate): Arguments changed.
11553 (font_put_extra): Adjusted for the change of font-related objects.
11554 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11555 (font_parse_fcname, font_unparse_fcname)
11556 (font_prepare_composition): Likewise.
11557 (font_parse_family_registry): Renamed from font_merge_old_spec.
11558 (otf_open): Delete the 1st arg entity.
11559 (font_otf_capability): Adjusted for the above change.
11560 (font_score): New arg alternate_families. Adjusted for the change
11561 of font-related objects.
11562 (font_sort_entites): New arg best_only.
11563 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11564 Delete them.
11565 (font_match_p): Check alternate families.
11566 (font_find_object): Delete it.
11567 (font_check_object): New function.
11568 (font_clear_cache): Adjusted for the change of font-related objects.
11569 (font_delete_unmatched): New arg.
11570 (font_list_entities): Call font_driver->list with a spec that
11571 doesn't specify style-related properties.
11572 (font_matching_entity): Arguments changed. Caller changed.
11573 (font_open_entity): Adjusted for the change of font-related objects.
11574 (font_close_object, font_has_char, font_encode_char)
11575 (font_get_name, font_get_spec): Likewise.
11576 (font_spec_from_name, font_clear_prop, font_update_lface):
11577 New functions.
11578 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11579 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11580 (font_at): Adjusted for the change of font-related objects.
11581 (font_range): New function.
11582 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11583 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11584 (Fcopy_font_spec, Fmerge_font_spec): New function.
11585 (Ffont_family_list): Renamed from list-families.
11586 (Finternal_set_font_style_table): Arguments changed.
11587 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11588 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11589 change of font-related objects.
11590 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11591
11592 * fontset.h (struct font_info): Delete it. Most members go to
11593 struct font.
11594 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11595 (enum FONT_SPEC_INDEX): Delete it.
11596 (font_info, list_fonts_func, load_font_func, query_font_func)
11597 (set_frame_fontset_func, find_ccl_program_func)
11598 (get_font_repertory_func, new_fontset_from_font_name): Delete
11599 externs.
11600 (fontset_from_font_name): Extern it.
11601 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11602 (FONT_INFO_FROM_FACE): Deleted.
11603 (face_for_font): Adjust prototype.
11604
11605 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11606 conditionals. Don't check enable_font_backend. Delete all codes
11607 used only when USE_FONT_BACKEND is not defined.
11608 (get_font_info_func, list_font_func, load_font_func)
11609 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11610 (get_font_repertory_func): Delete them.
11611 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11612 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11613 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11614 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11615 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11616 (fontset_compare_rfontdef): New function.
11617 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11618 rfont-defs by qsort. Adjusted for the change of font-group vector.
11619 (load_font_get_repertory): Deleted.
11620 (fontset_find_font): Use new macros to ref/set elements of
11621 font-def and rfont-def.
11622 (fontset_font): Fix the timing of remembering that no font for C.
11623 (free_face_fontset): Do nothing if the face has no fontset.
11624 (face_suitable_for_char_p): Use new macros to ref/set elements of
11625 rfont-def.
11626 (face_for_char): Likewise. Call face_for_char with font_object.
11627 (fs_load_font): Delete. Delete #pragma surrounding it.
11628 (fs_query_fontset): Use strcasecmp instead of strcmp.
11629 (generate_ascii_font_name): Adjusted for the format change of
11630 font-spec.
11631 (Fset_fontset_font): Likewise. Use new macros to set elements of
11632 font-def.
11633 (Fnew_fontset): Use font_unparse_xlfd to generate
11634 FONTSET_ASCII (fontset).
11635 (new_fontset_from_font_name): Deleted.
11636 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11637 a fontset is already created for the font. FIx updating of
11638 Vfontset_alias_alist.
11639 (fontset_ascii_font): Deleted.
11640 (Ffont_info): Adjusted for the format change of font-spec.
11641 (Finternal_char_font): Likewise.
11642 (Ffontset_info): Likewise.
11643 (syms_of_fontset): Don't check load_font_func.
11644
11645 * fns.c (internal_equal): Handle PREV_FONT.
11646
11647 * frame.h: Delete USE_FONT_BACKEND conditional.
11648
11649 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11650 conditionals. Don't check enable_font_backend. Delete all codes
11651 used only when USE_FONT_BACKEND is not defined.
11652 (x_set_font): Call x_new_font, not x_new_fontset2.
11653 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11654 already set for the frame.
11655
11656 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11657 a font-entity by font_make_entity. Use font_intern_prop instead
11658 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11659 font property. If a font is scalable, set avgwidth property to 0.
11660 Set font-entity property by font_put_extra.
11661 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11662 (ffont_driver): Adjusted for the change of struct font_driver.
11663 (ftfont_spec_pattern): New function.
11664 (ftfont_list): Return a list, not vector.
11665 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11666 (ftfont_list_family): Don't downcase names.
11667 (ftfont_free_entity): Deleted.
11668 (ftfont_open): Return a font-object. Adjusted for the change of
11669 struct font. Get underline_thickness and underline_position from
11670 font property. Don't update dpyinfo->smallest_font_height and
11671 dpyinfo->smallest_char_width.
11672 (ftfont_close): Don't free `struct font'.
11673 (ftfont_has_char): Adjusted for the format change of font-entity.
11674 (ftfont_encode_char, ftfont_text_extents): Likewise.
11675
11676 * ftxfont.c (ftxfont_list): Return a list, not vector.
11677 (ftxfont_open): Return a font-object. Adjusted for the change of
11678 struct font. Get underline_thickness and underline_position from
11679 font property. Don't update dpyinfo->smallest_font_height and
11680 dpyinfo->smallest_char_width.
11681 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11682 (ftxfont_draw): Adjusted for the change of struct font.
11683
11684 * image.c (image_ascent): Don't include "charset.h". Include
11685 "character.h" and "font.h".
11686
11687 * lisp.h (enum pvec_type): New member PREV_FONT.
11688 (Fassoc_string): EXFUN it.
11689
11690 * print.c: Include font.h.
11691 (print_object): Handle font-related objects.
11692
11693 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11694 conditionals. Don't check enable_font_backend. Delete all codes
11695 used only when USE_FONT_BACKEND is not defined.
11696 (handle_auto_composed_prop): Do nothing if it->f is not on a
11697 window system. Check how many following characters can be
11698 displayed by the same font.
11699 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11700 'struct font *'.
11701 (get_char_face_and_encoding): Assign the whole encoding task to
11702 the `encode-char' method of a font driver.
11703 (fill_composite_glyph_string): Adjusted for the change of `struct
11704 face' and `struct glyph_string'.
11705 (fill_glyph_string): Likewise.
11706 (get_per_char_metric): Arguments changed.
11707 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11708 and `struct glyph_string'.
11709 (produce_stretch_glyph, calc_line_height_property)
11710 (x_produce_glyphs): Likewise.
11711
11712 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11713 conditionals. Don't check enable_font_backend. Delete all codes
11714 used only when USE_FONT_BACKEND is not defined. Use
11715 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11716 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11717 (Qp): Extern them.
11718 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11719 Deleted.
11720 (struct font_name): Deleted.
11721 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11722 (compare_fonts_by_sort_order): New function.
11723 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11724 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11725 Deleted.
11726 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11727 compare_fonts_by_sort_order.
11728 (Fx_font_family_list): Call Ffont_family_list.
11729 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11730 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11731 (face_symbolic_slant, face_symbolic_swidth)
11732 (split_font_name_into_vector, build_font_name_from_vector)
11733 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11734 (font_rescale_ratio, split_font_name, build_font_name)
11735 (free_font_names, sort_fonts, x_face_list_fonts)
11736 (face_font_available_p, sorted_font_list, cmp_font_names)
11737 (font_list_1, concat_font_list, font_list, remove_duplicates):
11738 Deleted.
11739 (Fx_list_fonts): Use Ffont_list.
11740 (LFACE_AVGWIDTH): Deleted.
11741 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11742 by FONTP.
11743 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11744 (set_lface_from_font_name): Delete it.
11745 (set_lface_from_font): Renamed from
11746 set_lface_from_font_and_fontset. Caller changed. Don't set
11747 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11748 for face.
11749 (merge_face_vectors): Copy font-spec if necessary.
11750 Clear properties of the font-spec if necessary.
11751 (merge_face_ref): Clear properties of the font-spec if necessary.
11752 (Finternal_set_lisp_face_attribute): Likewise.
11753 (set_font_frame_param): Use font_load_for_lface to load a
11754 font-object, and call Fmodify_frame_parameters with it.
11755 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11756 font name by Ffont_xlfd_name.
11757 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11758 QCslant, and QCwidth.
11759 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11760 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11761 Compare fonts by EQ.
11762 (lookup_non_ascii_face): Deleted.
11763 (face_for_font): The 2nd argument changed.
11764 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11765 Check atomic font properties by case insensitive.
11766 (realize_non_ascii_face): Set face->overstrike correctly.
11767 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11768 (dump_realized_face): Get font name from
11769 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11770
11771 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11772 conditionals. Don't check enable_font_backend. Delete all codes
11773 used only when USE_FONT_BACKEND is not defined.
11774 (xic_create_xfontset): Original code deleted and renamed from
11775 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11776 (x_make_gc): Don't set GCFont in GCs.
11777 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11778 opened by "fixed".
11779 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11780 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11781 get_font_repertory_func.
11782
11783 * xfont.c: Include <stdlib.h> and "ccl.h".
11784 (struct xfont_info): New structure.
11785 (xfont_query_font): Deleted.
11786 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11787 moved from xterm.c.
11788 (xfont_driver): Adjusted for the change of struct font_driver.
11789 (compare_font_names): New function.
11790 (xfont_list_pattern): Sort font names case insensitively. Make
11791 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11792 (xfont_list): Return a list, not vector.
11793 (xfont_match): If the font doesn't have QCname property, generate
11794 a name from the other font properties.
11795 (xfont_open): Return a font-object. Adjusted for the change of
11796 struct font. Get underline_thickness and underline_position from
11797 font property. Don't update dpyinfo->smallest_font_height and
11798 dpyinfo->smallest_char_width.
11799 (xfont_close): Don't free struct font.
11800 (xfont_prepare_face): Adjusted for the change of struct font.
11801 (xfont_done_face): Deleted.
11802 (xfont_has_char): Adjusted for the change of struct font.
11803 (xfont_encode_char, xfont_draw): Likewise.
11804 (xfont_check): New function.
11805
11806 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11807 callback function.
11808 (xftfont_match): Adjusted for the format change of font-entity.
11809 (xftfont_open): Adjusted for the format change of font-entity and
11810 font-object. Adjusted for the change of struct font. Return a
11811 font-object. Don't update dpyinfo->smallest_font_height and
11812 dpyinfo->smallest_char_width.
11813 (xftfont_close): Block input while calling XftFontClose.
11814 (xftfont_prepare_face): Don't block input while calling
11815 xftfont_get_colors. Adjusted for the change of struct font.
11816 (xftfont_shape): Return value of error case fixed.
11817
11818 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11819
11820 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11821 conditionals.
11822 (FONT_WIDTH): Return (f)->max_width.
11823 (struct x_display_info): Delete member `font'.
11824 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11825 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11826 (struct x_output): Change type of `font' to `struct font *'.
11827
11828 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11829 conditionals. Don't check enable_font_backend. Delete all codes
11830 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11831 (x_per_char_metric, x_encode_char): Deleted.
11832 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11833 (x_compute_glyph_string_overhangs): Adjusted for the change of
11834 `struct face'.
11835 (x_draw_glyph_string_foreground)
11836 (x_draw_composite_glyph_string_foreground): Likewise.
11837 (x_draw_glyph_string): Likewise. Use font->underline_position and
11838 font->underline_thickness.
11839 (x_new_font): Renamed from x_new_fontset2.
11840 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11841 (x_check_font): Call `check' method of a font driver.
11842 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11843 (x_query_font, x_get_font_repertory): Deleted.
11844 (x_find_ccl_program): Renamed and moved to xfont.c.
11845 (x_redisplay_interface): Adjusted for the change of `struct
11846 redisplay_interface'.
11847
11848 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11849 conditionals. Don't check enable_font_backend. Delete all codes
11850 used only when USE_FONT_BACKEND is not defined. Surround non-used
11851 code by "#ifdef OLD_FONT" and "endif".
11852 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11853
11854 * w32font.h (struct w32font_info): New member.
11855 (FONT_COMPAT): New macro.
11856 (w32font_open_internal): Prototype adjusted.
11857
11858 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11859 OLD_FONT" and "endif".
11860
11861 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11862 conditionals. Don't check enable_font_backend. Delete all codes
11863 used only when USE_FONT_BACKEND is not defined.
11864 (w32font_open): Return a font-object. Make a font-object by
11865 font_make_object. Adjusted for the change of struct w32font_info.
11866 (w32font_close): Don't free struct font. Adjusted for the change
11867 of struct w32font_info.
11868 (w32font_encode_char, w32font_text_extents, w32font_draw):
11869 Adjusted for the change of struct w32font_info.
11870 (w32font_draw): Likewise.
11871 (w32font_list_internal): Return a list, not vector.
11872 (w32font_open_internal): Change the 4th arg to font-object.
11873 Adjusted for the change of struct w32font_info and font-object format.
11874 (add_font_name_to_list): Don't downcase names.
11875 (w32_enumfont_pattern_entity): Make a font-entity by
11876 font_make_entity. Adjusted for the format change of font-entity.
11877 Use FONT_SET_STYLE to set a style-related font property. If a
11878 font is scalable, set avgwidth property to 0. Set font-entity
11879 property by font_put_extra.
11880 (font_matches_spec): Adjusted for the format change of font-entity.
11881 (w32_weight_table, w32_decode_weight): New variables.
11882 (w32_encode_weight): New function.
11883 (fill_in_logfont): Adjusted for the format change of font-spec.
11884 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11885 weight value.
11886 (w32font_driver): Adjusted for the change of struct font_driver.
11887
11888 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11889 conditionals. Don't check enable_font_backend. Surround non-used
11890 code by "#ifdef OLD_FONT" and "endif".
11891 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11892 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11893
11894 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11895 conditionals. Don't check enable_font_backend. Delete all codes
11896 used only when USE_FONT_BACKEND is not defined. Surround non-used
11897 code by "#ifdef OLD_FONT" and "endif".
11898
11899 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11900 (uniscribe_open): Return value changed to font-object.
11901 Adjusted for the format change of font-object.
11902 (uniscribe_otf_capability): Adjusted for the change of struct font.
11903 (add_opentype_font_name_to_list): Don't downcase names.
11904 (uniscribe_font_driver): Adjusted for the change of struct
11905 font_driver.
11906
119072008-05-13 Chong Yidong <cyd@stupidchicken.com>
11908
11909 * dispnew.c (update_frame_1): Check if tty output is still valid
11910 before flushing it.
11911
119122008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11913
11914 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11915 to Gtk+ menus.
11916
119172008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11918
11919 * dired.c (file_name_completion): Tweak the code so as to always do it
11920 in a single pass. Tighten the scope of some variables.
11921
11922 * dired.c (Qdefault_directory): New var.
11923 (file_name_completion): Use it instead of Fexpand_file_name.
11924 (syms_of_dired): Initialize it.
11925
119262008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11927
11928 * fileio.c (double_dollars): Remove dead code.
11929
119302008-05-10 Eli Zaretskii <eliz@gnu.org>
11931
11932 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11933 Mention w32-get-true-file-attributes in doc string.
11934
11935 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11936
119372008-05-09 Glenn Morris <rgm@gnu.org>
11938
11939 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11940 2008-04-23.
11941
119422008-05-09 Eli Zaretskii <eliz@gnu.org>
11943
11944 Support for reporting owner and group of each file on MS-Windows:
11945 * dired.c (stat_uname, stat_gname): New functions, with special
11946 implementation for w32.
11947 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11948
11949 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11950 (dflt_group_name): New static variable.
11951 (dflt_group): Rename from the_group.
11952 (init_user_info): Init dflt_group fields. Get user's group name
11953 from LookupAccountSid.
11954 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11955 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11956 New initialization states.
11957 (globals_of_w32): Initialize them to zero. Initialize the default
11958 group name to "None".
11959 (GetFileSecurity_Name): New global var, the name of the function
11960 to call for GetFileSecurity.
11961 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11962 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11963 (get_file_security, get_security_descriptor_owner)
11964 (get_security_descriptor_group, is_valid_sid)
11965 (get_file_security_desc, get_rid, get_name_and_id)
11966 (get_file_owner_and_group): New functions.
11967 (stat): Use get_file_security_desc and get_file_owner_and_group to
11968 report the owner and primary group of each file. Don't ignore the
11969 high 32 bits of file's size, now that st_size is 64-bit wide.
11970 Fix test when to get true file attributes.
11971 (init_user_info): Use get_rid instead of equivalent inline code.
11972 (fstat): Don't ignore the high 32 bits of file's size.
11973
119742008-05-09 Chong Yidong <cyd@stupidchicken.com>
11975
11976 * image.c (png_load): Use correct bit-depth for setting background
11977 color.
11978
119792008-05-08 Eli Zaretskii <eliz@gnu.org>
11980
11981 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11982 epa-hook.elc.
11983
119842008-05-08 Juanma Barranquero <lekktu@gmail.com>
11985
11986 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11987
119882008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11989
11990 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11991 because the original parameters are in pure storage now.
11992 (mac_window): Remove unused params. Update callers.
11993
119942008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11995
11996 * lread.c (substitute_object_recurse): Use lower-level primitives.
11997 Don't signal errors when traversing sub-char-tables.
11998 Don't loop over all the possible characters when traversing char-tables.
11999
12000 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12001 just like we do in print.c.
12002
120032008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * minibuf.c (Ftry_completion): Remove code left over from when we used
12006 scmp instead of Fcompare_strings.
12007
120082008-05-04 Juanma Barranquero <lekktu@gmail.com>
12009
12010 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12011
120122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12013
12014 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12015 Create bitmap context in native byte order.
12016
12017 * macterm.c (XDrawLine)
12018 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12019 context in native byte order.
12020
120212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12022
12023 * config.in: Regenerate.
12024
12025 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12026 New definitions for Image I/O support.
12027 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12028 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12029 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12030 (mac_data_provider_release_data, image_load_image_io)
12031 [USE_MAC_IMAGE_IO]: New functions.
12032 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12033 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12034 (init_image_func_pointer) [MAC_OSX]: Remove function.
12035 (image_load_quartz2d) [MAC_OSX]: Check availability of
12036 CGImageCreateWithPNGDataProvider at compile time.
12037 Use lowercase `false' for boolean constant.
12038 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12039 Use image_load_image_io.
12040 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12041 Don't check MyCGImageCreateWithPNGDataProvider.
12042 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12043 Don't call init_image_func_pointer.
12044
12045 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12046
12047 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12048 Make variable non-static.
12049 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12050 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12051
12052 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12053 (RED_FROM_ULONG): Mask off higher bits.
12054 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12055
12056 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12057 Include AvailabilityMacros.h.
12058 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12059 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12060
120612008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12062
12063 * chartab.c (Fset_char_table_range): If range is t, really set all
12064 chars to that value.
12065
120662008-05-03 Eli Zaretskii <eliz@gnu.org>
12067
12068 * dired.c (Ffile_attributes): Don't allow the device number become
12069 negative.
12070
120712008-05-02 Daiki Ueno <ueno@unixuser.org>
12072
12073 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12074
120752008-05-02 Juri Linkov <juri@jurta.org>
12076
12077 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12078 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12079 DEFAULT argument as a list of default values in docstrings.
12080
120812008-05-01 Chong Yidong <cyd@stupidchicken.com>
12082
12083 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12084
120852008-05-01 Martin Rudalics <rudalics@gmx.at>
12086
12087 * dispnew.c (change_frame_size_1): Preserve small windows when
12088 shrinking frames by calling set_window_height|width with third
12089 arg 2.
12090
12091 * window.h (struct window): Replace field too_small_ok by field
12092 resize_proportionally.
12093
12094 * window.c (make_window): Initialize resize_proportionally.
12095 (enlarge_window): Temporarily set resize_proportionally to make
12096 sure that shrink_windows does scale the window proportionally.
12097 (shrink_windows): When window has resize_proportionally set try
12098 to shrink it proportionally by stealing from other windows.
12099 (struct saved_window, Fset_window_configuration)
12100 (compare_window_configurations): Handle resize_proportionally.
12101 (WINDOW_TOTAL_SIZE): New macro.
12102 (window_min_size, shrink_windows, size_window): Use it.
12103 (check_min_window_sizes): Remove. Invalid values of
12104 window-min-height|width are handled by window_min_size_2 now.
12105 (size_window, Fsplit_window, enlarge_window)
12106 (adjust_window_trailing_edge, grow_mini_window): Don't call
12107 check_min_window_sizes.
12108 (window_min_size_2, window_min_size_1, window_min_size):
12109 New argument safe_p for retrieving "safe" minimum sizes.
12110 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12111 (adjust_window_trailing_edge, grow_mini_window):
12112 Adjust arguments of window_min_size... functions.
12113 (shrink_windows): Argument min_size removed. New argument
12114 safe_p allows shrinking windows to their safe minimum sizes.
12115 Calculate minimum size and decide whether a window shall be
12116 deleted for each window individually.
12117 (size_window): When nodelete_p equals 2, tell shrink_windows to
12118 delete windows only if their new minimum size is no more safe.
12119 (shrink_window_lowest_first): Call window_min_size_1 to make
12120 sure to preserve modeline of bottom-most window when resizing
12121 the minibuffer.
12122 (Fset_window_configuration, Fcurrent_window_configuration)
12123 (compare_window_configurations): Do not handle
12124 window-min-height|width any more.
12125 (syms_of_window): Clarify window-min-height|width doc-strings.
12126
121272008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12128
12129 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12130 some more. Copy some of the code from Ftry_completions.
12131 Remove special case code that dates back to initial revision when the
12132 slash was only added when necessary and that can't trigger nowadays.
12133
121342008-04-27 Kenichi Handa <handa@m17n.org>
12135
12136 * font.c (font_prop_validate): Signal `error' instead of `font'.
12137
121382008-04-29 Jason Rumney <jasonr@gnu.org>
12139
12140 * w32fns.c (Fw32_battery_status): New defun.
12141 (syms_of_w32fns): Defsubr it.
12142
121432008-04-28 Andreas Schwab <schwab@suse.de>
12144
12145 * dired.c (file_name_completion): Fix another mixing of encoded
12146 and decoded names.
12147
121482008-04-28 Juanma Barranquero <lekktu@gmail.com>
12149
12150 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12151
121522008-04-27 Juanma Barranquero <lekktu@gmail.com>
12153
12154 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12155
121562008-04-27 Andreas Schwab <schwab@suse.de>
12157
12158 * dired.c (file_name_completion): Fix inappropriate mixing of
12159 encoded and decoded names.
12160
12161 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12162
12163 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12164
121652008-04-26 Eli Zaretskii <eliz@gnu.org>
12166
12167 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12168 2008-03-31, it's not needed anymore with `struct stat' definition
12169 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12170 for the same reasons.
12171
121722008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12173
12174 * m/sparc.h: Additional redefinitions for GNU/Linux.
12175
121762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12177
12178 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12179 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12180 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12181 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12182 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12183 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12184 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12185 Likewise.
12186
12187 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12188 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12189 (mac_ax_number_of_characters): Add externs.
12190 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12191 [USE_MAC_TSM]: Likewise.
12192 (mac_handle_text_input_event) [MAC_OSX]:
12193 Handle kEventTextInputOffsetToPos for no active input area case.
12194 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12195 (mac_handle_document_access_event)
12196 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12197 (install_application_handler) [MAC_OSX]: Register handlers for
12198 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12199 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12200 Register mac_handle_document_access_event.
12201
12202 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12203 Make functions non-static.
12204
122052008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12206
12207 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12208 (read_file_name_completion_ignore_case, insert_default_directory)
12209 (Qdefault_directory): Move to minibuffer.el.
12210 (Fread_file_name): Call the new `read-file-name' instead.
12211
122122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12213
12214 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12215 Make function non-static.
12216 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12217 Remove function.
12218 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12219 Move to mactoolbox.c.
12220 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12221
12222 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12223 (mac_rect_make): New macro.
12224
12225 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12226 instead of float.
12227 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12228 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12229 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12230 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12231 CGRectMake.
12232 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12233 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12234 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12235 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12236 instead of WindowRef in argument type.
12237 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12238 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12239 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12240 instead of DISPLAY. All uses changed.
12241 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12242 (x_calc_absolute_position): Simplify so as not to use
12243 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12244
12245 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12246 instead of WindowRef in argument type.
12247 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12248 [TARGET_API_MAC_CARBON]: Remove externs.
12249 (create_apple_event, mac_event_parameters_to_lisp)
12250 [TARGET_API_MAC_CARBON]: Add externs.
12251
12252 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12253 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12254 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12255 is clicked.
12256 (x_activate_menubar): Remove extern for saved_menu_event_location.
12257 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12258 Move from mac.c.
12259
122602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12261
12262 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12263 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12264
122652008-04-23 Jason Rumney <jasonr@gnu.org>
12266
12267 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12268 attributes only for local files.
12269
12270 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12271 default to Qlocal.
12272
122732008-04-22 Juri Linkov <juri@jurta.org>
12274
12275 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12276 read-buffer-to-switch instead of using the letter "B".
12277
122782008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12279
12280 * fileio.c (Qdefault_directory): New variable.
12281 (Fread_file_name): Use it to pass `dir' to the completion functions.
12282
122832008-04-20 Chong Yidong <cyd@stupidchicken.com>
12284
12285 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12286
122872008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12288
12289 * keyboard.c (Vpre_help_message): Remove.
12290 (show_help_echo): Remove default C code.
12291
12292 * dired.c (directory_files_internal, file_name_completion):
12293 Only call ENCODE_FILE if the string is indeed decoded.
12294
122952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * Makefile.in (TOOLKIT_DEFINES): Remove.
12298 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12299
123002008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12301
12302 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12303 (mactoolbox.o): New target.
12304
12305 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12306 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12307
12308 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12309 Use mac_set_frame_window_background instead of XSetWindowBackground.
12310 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12311 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12312 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12313 instead of SetWindowTitleWithCFString.
12314 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12315 Move function to mactoolbox.c.
12316 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12317 Use mac_set_window_modified instead of SetWindowModified.
12318 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12319 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12320 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12321 FrontNonFloatingWindow. Use mac_activate_window instead of
12322 ActivateWindow. Use mac_active_non_floating_window instead of
12323 ActiveNonFloatingWindow.
12324 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12325 Use mac_show_hourglass and mac_hide_hourglass.
12326 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12327 instead of GetGlobalMouse.
12328 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12329 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12330 Use mac_bring_window_to_front instead of BringToFront.
12331 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12332 mactoolbox.c.
12333 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12334 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12335 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12336 mactoolbox.c.
12337
12338 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12339 (XtPointer): Move typedef from macmenu.c.
12340 (enum button_type): Move enum from macmenu.c.
12341 (widget_value): Move typedef from macmenu.c.
12342 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12343 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12344 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12345 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12346 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12347 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12348 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12349 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12350 (Selection): Move typedef from macselect.c.
12351 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12352 macterm.c.
12353 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12354 (mac_is_window_collapsed, mac_bring_window_to_front)
12355 (mac_send_window_behind, mac_hide_window, mac_show_window)
12356 (mac_collapse_window, mac_front_non_floating_window)
12357 (mac_active_non_floating_window, mac_activate_window)
12358 (mac_move_window_structure, mac_move_window, mac_size_window)
12359 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12360
12361 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12362 (enum mac_menu_kind): Move enum to mactoolbox.c.
12363 (min_menu_id): Move variable to mactoolbox.c.
12364 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12365 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12366 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12367 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12368 [TARGET_API_MAC_CARBON]: Likewise.
12369 (XtPointer): Move typedef to macgui.h.
12370 (enum button_type): Move enum to macgui.h.
12371 (widget_value): Move typedef to macgui.h.
12372 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12373 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12374 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12375 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12376 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12377 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12378 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12379 (popup_activated_flag): Make variable non-static.
12380 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12381 (add_menu_item, fill_menu, dispose_menus):
12382 Move functions to mactoolbox.c.
12383 (restore_show_help_function, menu_target_item_handler)
12384 (install_menu_target_item_handler, mac_handle_dialog_event)
12385 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12386 [TARGET_API_MAC_CARBON]: Likewise.
12387 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12388 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12389 (find_and_call_menu_selection, name_is_separator): Make function
12390 non-static.
12391 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12392 to mactoolbox.c.
12393 (set_frame_menubar): Don't call install_menu_quit_handler.
12394 (menu_item_selection): New variable.
12395 (mac_menu_show): Use create_and_show_popup_menu.
12396 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12397 selection but set variable menu_item_selection. All uses changed.
12398 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12399 Call install_menu_quit_handler. Move to mactoolbox.c.
12400
12401 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12402 (Selection): Move typedef to macgui.h.
12403 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12404 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12405 Make variables non-static.
12406 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12407 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12408 Make functions non-static.
12409 (Vmac_service_selection) [MAC_OSX]: Likewise.
12410 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12411 (mac_valid_selection_target_p, mac_clear_selection)
12412 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12413 (mac_put_selection_value, mac_selection_has_target_p)
12414 (mac_get_selection_value, mac_get_selection_target_list)
12415 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12416 Move functions to mactoolbox.c.
12417 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12418 Likewise.
12419 (copy_scrap_flavor_data, mac_handle_service_event)
12420 (install_service_handler) [MAC_OSX]: Likewise.
12421 (syms_of_macselect) <Vmac_dnd_known_types>:
12422 Use mac_dnd_default_known_types.
12423
12424 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12425 Move to mactoolbox.c.
12426 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12427 (Fx_selection_owner_p): Add EXFUN.
12428 (install_window_handler, remove_window_handler, XSetWindowBackground):
12429 Remove externs.
12430 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12431 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12432 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12433 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12434 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12435 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12436 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12437 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12438 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12439 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12440 (mac_valid_selection_target_p, mac_clear_selection)
12441 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12442 (mac_put_selection_value, mac_selection_has_target_p)
12443 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12444 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12445 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12446 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12447 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12448 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12449 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12450 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12451 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12452
12453 * mactoolbox.c: New file.
12454
124552008-04-18 Jason Rumney <jasonr@gnu.org>
12456
12457 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12458
124592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * character.c (Fmultibyte_char_to_unibyte):
12462 Return latin1 chars unchanged.
12463
12464 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12465 relocated if it points to `name'.
12466
124672008-04-17 Kenichi Handa <handa@m17n.org>
12468
12469 * data.c (Faset): Allow setting a multibyte character in an
12470 ASCII-only unibyte string.
12471
12472 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12473
124742008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12475
12476 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12477 done in config.h.
12478
124792008-04-16 Juanma Barranquero <lekktu@gmail.com>
12480
12481 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12482 (Fchar_direction): Add usage in the docstring.
12483
124842008-04-15 Chong Yidong <cyd@stupidchicken.com>
12485
12486 * keyboard.c (read_key_sequence): Remove always-true checks.
12487
124882008-04-14 Jason Rumney <jasonr@gnu.org>
12489
12490 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12491 compatibility struct, for better underline positioning.
12492
124932008-04-13 David Hansen <david.hansen@gmx.net>
12494
12495 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12496 string.
12497
124982008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12499
12500 * m/hp800.h (XUINT, XSET): Remove.
12501
125022008-04-12 Juanma Barranquero <lekktu@gmail.com>
12503
12504 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12505 previous change.
12506
125072008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12508
12509 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12510 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12511
125122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12513
12514 * keymap.h (map_keymap_canonical): Declare.
12515 * xmenu.c (single_keymap_panes): Use it.
12516
125172008-04-11 Glenn Morris <rgm@gnu.org>
12518
12519 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12520 set the target's value to that of the alias.
12521
125222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12523
12524 * term.c (set_tty_color_mode): Left over typo.
12525
125262008-04-10 Michael Albinus <michael.albinus@gmx.de>
12527
12528 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12529 only after check for file name handler functions. Signal, when
12530 native functionality is not supported.
12531 (syms_of_fileio): Declare it unconditionally.
12532
125332008-04-10 Jason Rumney <jasonr@gnu.org>
12534
12535 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12536 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12537
12538 * w32.c (logon_network_drive): Also logon to remote drives that
12539 are mapped to drive letters.
12540
125412008-04-10 Glenn Morris <rgm@gnu.org>
12542
12543 * xdisp.c (truncate-partial-width-windows): Doc fix.
12544
125452008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12546
12547 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12548 Move functions to minibuffer.el.
12549 (syms_of_fileio): Don't declare them.
12550
125512008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12552
12553 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12554 (syms_of_minibuf): Remove its initialization.
12555
12556 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12557
125582008-04-09 Juanma Barranquero <lekktu@gmail.com>
12559
12560 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12561
125622008-04-09 Jason Rumney <jasonr@gnu.org>
12563
12564 * makefile.w32-in (distclean): Delete makefile too.
12565 (maintainer-clean): New target.
12566
12567 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12568
12569 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12570 for new font backend and composite cases.
12571
125722008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12573
12574 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12575 Most of the code moved to run_timers.
12576 (do_pending_atimers): Call run_timers.
12577 (run_timers): New function.
12578
12579 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12580 run atimers.
12581
12582 * process.c (wait_reading_process_output): The same as above.
12583
125842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12585
12586 * minibuf.c (last_exact_completion): Remove variable.
12587 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12588 (complete_and_exit_1, complete_and_exit_2)
12589 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12590 (Fdisplay_completion_list, display_completion_list_1)
12591 (Fminibuffer_completion_help, Fself_insert_and_exit)
12592 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12593 minibuffer.el.
12594 (syms_of_minibuf): Remove corresponding initializations.
12595
12596 * keyboard.c (Qdeactivate_mark): New var.
12597 (command_loop_1): Use it to call `deactivate-mark'.
12598 (syms_of_keyboard): Initialize it.
12599
12600 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12601 to another frame.
12602 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12603 Don't call set_tty_color_mode.
12604 (store_frame_param): Reset previous_frame rather than call
12605 set_tty_color_mode.
12606 * term.c (set_tty_color_mode): Rewrite.
12607 * dispextern.h (set_tty_color_mode): New type.
12608 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12609
126102008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12611
12612 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12613 for generic chars, which do not exist any more in emacs-unicode.
12614
126152008-04-08 Michael Albinus <michael.albinus@gmx.de>
12616
12617 * coding.c (detect_coding_emacs_mule)
12618 (Ffind_operation_coding_system): Fix typo.
12619
126202008-04-08 Jason Rumney <jasonr@gnu.org>
12621
12622 * w32uniscribe.c (SNAME): Extract only symbol name.
12623
12624 * w32font.h (struct w32_metric_cache): New struct.
12625 (w32font_info): Use it.
12626 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12627 (CACHE_BLOCKSIZE): New constants.
12628
12629 * w32font.c (Qja, Qko, Qzh): New symbols.
12630 (syms_of_w32font): Initialise them.
12631 (font_matches_spec): Use them to filter by language.
12632 (recompute_cached_metrics): Remove function.
12633 (compute_metrics, clear_cached_metrics): New functions.
12634 (w32font_encode_char): Use them to manage metric cache.
12635 (w32font_text_extents): Cache metrics for all glyphs on demand.
12636 Delay converting glyph indices to WORD until needed.
12637 (w32font_open_internal): Initialize metric cache to empty.
12638 (registry_to_w32_charset): Charset should always be a symbol.
12639 (fill_in_logfont, list_all_matching_fonts): Family should
12640 always be a symbol.
12641
126422008-04-06 Jason Rumney <jasonr@gnu.org>
12643
12644 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12645 Give up if glyph indices not supported. Use uniscribe obtained
12646 ABC widths for individual metrics. Map glyph clusters back to
12647 characters using fClusterStart flag. Return number of glyphs
12648 produced, not chars processed.
12649 (uniscribe_shape): Map char at FROM to current glyph.
12650
126512008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12652
12653 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12654 Use SetMenuItemHierarchicalMenu.
12655
126562008-04-05 Jason Rumney <jasonr@gnu.org>
12657
12658 * image.c (pbm_load): Allow color values up to 65535.
12659 Throw an error if max_color_idx is outside the supported range.
12660 Report an error when image size is invalid.
12661 Read two bytes at a time when raw images have max_color_idx above 255.
12662
126632008-04-05 Eli Zaretskii <eliz@gnu.org>
12664
12665 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12666 cFileName a file name that includes `?' characters, use the 8+3
12667 alias in cAlternateFileName instead.
12668
126692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12670
12671 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12672 append "CCL: Quitted" when the CCL program is quitted.
12673 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12674
12675 * ccl.h (struct ccl_program): New member quit_silently.
12676
126772008-04-05 Chong Yidong <cyd@stupidchicken.com>
12678
12679 * search.c (compile_pattern_1): Treat non-nil and non-string of
12680 search-spaces-regexp as nil.
12681
12682 * minibuf.c (Fassoc_string): Tweak docstring.
12683
126842008-04-05 Eli Zaretskii <eliz@gnu.org>
12685
12686 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12687 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12688 2008-03-14 to force inode be positive.
12689
12690 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12691 _S_* ones, since we now use our own sys/stat.h.
12692 (stat, fstat): Don't mangle the inode number.
12693 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12694
126952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12696
12697 * frame.h (struct frame): Give one more bit to `visible' since we use
12698 values larger than 1 to indicate obscured frames on ttys.
12699
12700 * keymap.c (Qkeymap_canonicalize): New var.
12701 (Fmap_keymap_internal): New fun.
12702 (describe_map): Use keymap-canonicalize.
12703
12704 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12705 (Fundo_boundary): Set them.
12706 (syms_of_undo): Initialize them.
12707 (record_point): Use them instead of last_point_position*.
12708 (last_undo_buffer): Change type.
12709
127102008-04-04 Jason Rumney <jasonr@gnu.org>
12711
12712 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12713 (recompute_cached_metrics): Don't set ascent and descent per char.
12714
12715 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12716 (uniscribe_check_otf): Add GC protection before consing.
12717 Rearrange loop for counting features.
12718
127192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12720
12721 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12722 buffer with byte-size of source buffer.
12723
127242008-04-03 Chong Yidong <cyd@stupidchicken.com>
12725
12726 * callint.c (Fcall_interactively): Handle temporary region even
12727 when shift-select-mode is off.
12728
127292008-04-03 Jason Rumney <jasonr@gnu.org>
12730
12731 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12732
127332008-04-03 Kenichi Handa <handa@m17n.org>
12734
12735 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12736 (CATEGORY_MASK_UTF_16): Likewise.
12737 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12738 binary file.
12739 (detect_coding): Add null-byte detection for a binary file.
12740 (detect_coding_system): Likewise.
12741
127422008-04-03 Jason Rumney <jasonr@gnu.org>
12743
12744 * w32uniscribe.c: New file.
12745
12746 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12747
12748 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12749
12750 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12751 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12752 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12753 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12754 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12755 (Qphonetic): New symbols.
12756 (syms_of_w32font): Initialize them.
12757 (font_supported_scripts): Use them.
12758 (w32font_list_family): List all charsets.
12759 (w32font_text_extents, recompute_cached_metrics): Fix metric
12760 calculations.
12761 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12762 Give opentype fonts their own format.
12763 (font_matches_spec): New arguments backend and logfont.
12764 Handle :otf spec for uniscribe backend.
12765 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12766 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12767
12768 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12769 font backend.
12770 (globals_of_w32fns): Initialize uniscribe font backend.
12771
12772 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12773 dependencies.
12774 (w32uniscribe.$(O)): New file to build.
12775 (FONT_OBJ): Include w32uniscribe.$(O).
12776 (LIBS): Add uniscribe libraries.
12777
12778 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12779
127802008-04-02 Chong Yidong <cyd@stupidchicken.com>
12781
12782 * callint.c (Vshift_select_mode): New var.
12783 (Finteractive): Document new ^ spec.
12784 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12785 is present.
12786
12787 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12788 (command_loop_1): Avoid running the direct display versions of
12789 forward-char and backward-char if shift-selection may occur.
12790 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12791 shift-translation takes place.
12792
12793 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12794 avoid clobbering by define-minor-mode.
12795
12796 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12797 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12798
12799 * syntax.c (Fforward_word): Add ^ interactive spec.
12800
12801 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12802 (Fscroll_right): Add ^ interactive spec.
12803
128042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12805
12806 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12807
12808 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12809
12810 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12811
128122008-03-31 Juri Linkov <juri@jurta.org>
12813
12814 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12815
128162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12817
12818 * gtkutil.c (xg_set_geometry): Fix indentation.
12819 (xg_resize_outer_widget): Remove.
12820 (x_wm_size_hint_off): Fix indentation.
12821 (xg_frame_set_char_size): Call flush_and_sync after
12822 gtk_window_resize.
12823 (x_wm_set_size_hint): Pass NULL as geometry window to
12824 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12825 Add menu bar and tool bar height to base height.
12826 (xg_update_frame_menubar, free_frame_menubar)
12827 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12828 (update_frame_tool_bar, free_frame_tool_bar):
12829 Change xg_resize_outer_widget to xg_frame_set_char_size.
12830
128312008-03-30 Michael Albinus <michael.albinus@gmx.de>
12832
12833 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12834 (Fdbus_call_method): New parameter TIMEOUT.
12835 (dbus-send-signal): Optimize UNGCPRO call.
12836
128372008-03-29 Juri Linkov <juri@jurta.org>
12838
12839 * window.c (Fdisplay_buffer): Move call to
12840 Vsplit_window_preferred_function out of conditions that check
12841 if window is eligible for vertical splitting.
12842 When Vsplit_window_preferred_function is non-nil, call it and use
12843 its non-nil return value as window. Otherwise, continue doing
12844 vertical splitting using Fsplit_window with arg horflag=nil.
12845 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12846 default value from `split-window' to nil.
12847
128482008-03-29 Juri Linkov <juri@jurta.org>
12849
12850 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12851 for interactive code letters 'b' and 'B'.
12852
128532008-03-29 Eli Zaretskii <eliz@gnu.org>
12854
12855 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12856 multibyte string.
12857
128582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12859
12860 * keyboard.c (pending_funcalls): New var.
12861 (timer_check): Run it.
12862 (syms_of_keyboard): Initialize it.
12863 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12864 (Vdelete_terminal_functions): New vars.
12865 (syms_of_terminal): Initialize them.
12866 (Fdelete_terminal): Run delete-terminal-functions.
12867 * xdisp.c (safe_eval): Rewrite.
12868 (safe_call2): New fun.
12869 * frame.c (Qdelete_frame_functions): New var.
12870 (syms_of_frame): Initialize it.
12871 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12872 * lisp.h (safe_call2, pending_funcalls): Declare.
12873
128742008-03-28 Andreas Schwab <schwab@suse.de>
12875
12876 * indent.c (Fmove_to_column): Move declaration before statements.
12877
128782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12879
12880 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12881 (struct frame): Use bit fields for boolean vars.
12882
12883 * process.c (server_accept_connection): Simplify naming.
12884 (emacs_get_tty_pgrp): Use SDATA.
12885
12886 * coding.c (decode_coding_object): Fix last change.
12887
128882008-03-27 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12891
128922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12893
12894 * charset.c (Fdefine_charset_internal): Change the way of
12895 registering charsets in Vcharset_order_list.
12896 (syms_of_charset): Make the charset `eight-bit' supplementary.
12897
128982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12899
12900 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12901 operations, to avoid having the difference between pointers
12902 overflow.
12903
129042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12905
12906 * indent.c (check_display_width): New fun.
12907 (scan_for_column): Use it.
12908
12909 * data.c (syms_of_data): Mark most-positive-fixnum and
12910 most-negative-fixnum as constants.
12911
12912 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12913
12914 * indent.c (scan_for_column): Extract from current_column_1.
12915 Merge with the same code from Fmove_to_column.
12916 (current_column_1, Fmove_to_column): Use it.
12917
129182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12919
12920 * keymap.c (map_keymap_internal): New fun.
12921 (map_keymap): Use it.
12922 (Fmap_keymap_internal): New fun.
12923 (Fmap_keymap): Remove left-out test from before make_save_value.
12924
12925 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12926
12927 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12928 Use XCAR/XCDR.
12929
12930 * process.h (struct Lisp_Process): Remove filter_multibyte.
12931 * process.c (QCfilter_multibyte): Remove.
12932 (setup_process_coding_systems): Don't use filter_multibyte.
12933 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12934 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12935 (Fset_process_filter_multibyte): Change the coding-system to
12936 approximate the previous behavior.
12937 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12938 coding-system.
12939
12940 * coding.c (decode_coding_object): When not decoding into a buffer,
12941 obey the coding system's preference of (uni|multi)byte.
12942
129432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12944
12945 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12946 every char is changed and has a different byte-length.
12947 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12948 Fix int -> EMACS_INT.
12949
129502008-03-23 David Hansen <david.hansen@gmx.net>
12951
12952 * dbusbind.c (xd_read_message): Remove extra copying of message
12953 strings. Check for NULL `interface' or `member'.
12954
129552008-03-22 Eli Zaretskii <eliz@gnu.org>
12956
12957 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12958 cFileName a file name that includes `?' characters, use the 8+3
12959 alias in cAlternateFileName instead.
12960
129612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12962
12963 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12964
129652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12966
12967 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12968 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12969 work on current_buffer only instead (that was already the case
12970 for some of the code anyway).
12971 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12972 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12973 (SET_PT, SET_PT_BOTH): Adjust.
12974 * intervals.h (set_point, temp_set_point, set_point_both)
12975 (temp_set_point_both): Remove redundant declarations.
12976
129772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * fileio.c (Finsert_file_contents):
12980 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12981 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12982 when buffer != current_buffer anyway.
12983
129842008-03-20 Andreas Schwab <schwab@suse.de>
12985
12986 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12987 as default.
12988
129892008-03-19 Jason Rumney <jasonr@gnu.org>
12990
12991 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12992 (syms_of_w32fns): Initialize them.
12993 (HOURGLASS_ID): New constant.
12994 (x_window_to_frame): Don't check hourglass_window.
12995 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12996 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12997 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12998 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12999 Only change the cursor if hourglass is not active.
13000 (Fx_create_frame): Initialize frame's current_cursor.
13001 (hourglass_atimer): Remove.
13002 (hourglass_started): New function.
13003 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13004 (show_hourglass): Adapt to w32, changing argument to frame.
13005
13006 * w32term.h (struct w32_output): Remove hourglass_window.
13007 Add current_cursor.
13008
13009 * eval.c (call_debugger, Fsignal):
13010 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13011 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13012 (Fexecute_extended_command, cancel_hourglass_unwind):
13013 * minibuf.c (read_minibuf):
13014 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13015
130162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13017
13018 * window.c (run_funs): New fun.
13019 (run_window_configuration_change_hook): Use it to run the buffer-local
13020 and the global part of the hook.
13021
13022 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13023 (unwind_format_mode_line): Restore selected window.
13024 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13025
130262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13027
13028 * editfns.c (Fchar_equal): Check they are valid characters.
13029
13030 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13031
130322008-03-17 Andreas Schwab <schwab@suse.de>
13033
13034 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13035 against a charset.
13036
13037 * lisp.h (Fbuffer_list): Declare.
13038
130392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13040
aac0c6e3
MR
13041 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13042 handlebox_widget is != 0.
13043
130442008-03-16 Juri Linkov <juri@jurta.org>
13045
13046 * callint.c (Fcall_interactively): For interactive code letters
13047 'b' and 'B' put the buffer list into the list of default "future"
13048 values of the minibuffer.
13049
130502008-03-16 Andreas Schwab <schwab@suse.de>
13051
13052 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13053 modifiers.
13054
13055 * regex.c (re_match_2_internal): Correct matching of a charset
13056 against latin-1 characters.
13057
130582008-03-16 Kenichi Handa <handa@m17n.org>
13059
13060 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13061 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13062 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13063 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13064 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13065 CHAR_STRING_ADVANCE.
13066 (produce_chars): Fix for the case that the source and the
13067 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13068 instead of CHAR_STRING_ADVANCE.
13069 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13070 STRING_CHAR_ADVANCE.
13071
130722008-03-15 Andreas Schwab <schwab@suse.de>
13073
13074 * regex.c (re_match_2_internal): Correct matching of eight bit
13075 characters in unibyte strings.
13076
130772008-03-15 Martin Rudalics <rudalics@gmx.at>
13078
13079 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13080 at end of range when it coincides with the end of the buffer.
13081
130822008-03-14 Eli Zaretskii <eliz@gnu.org>
13083
13084 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13085
13086 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13087
130882008-03-14 Jason Rumney <jasonr@gnu.org>
13089
13090 * editfns.c (initial_tz): New variable.
13091 (syms_of_editfns): Initialize it.
13092 (Fset_time_zone_rule): Set it when first called.
13093 Use it when TZSTRING is nil.
13094
13095 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13096 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13097 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13098 (globals_of_w32fns): Initialize them.
13099 (compute_tip_xy): Use them to position tooltips.
13100
131012008-03-14 Glenn Morris <rgm@gnu.org>
13102
13103 * emacs.c (main): Revert previous change.
13104 (standard_args): Revert -internal-script back to -scriptload,
13105 and remove the long-option form.
13106
131072008-03-13 Glenn Morris <rgm@gnu.org>
13108
13109 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13110 Remove option -enable-font-backend.
13111
131122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13113
13114 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13115
131162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13117
13118 * xterm.c (x_connection_closed): For GTK: If this is the last
13119 terminal just exit without closing the display.
13120
131212008-03-11 Jason Rumney <jasonr@gnu.org>
13122
13123 * w32font.c (w32font_full_name): Use floor to round.
13124
f0131492 131252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13126
13127 * sound.c (alsa_configure): Declare vol at beginning of block.
13128
13129 * fontset.c (Ffontset_info): Remove extra semicolon.
13130
131312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13132
13133 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13134 size of resulting string.
13135
131362008-03-10 Jason Rumney <jasonr@gnu.org>
13137
13138 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13139
131402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13141
13142 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13143 Don't pretend as if characters with display property haven't been
13144 consumed for string-replacing-string case.
13145
131462008-03-08 Kim F. Storm <storm@cua.dk>
13147
13148 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13149 (get_next_display_element, next_element_from_string)
13150 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13151
131522008-03-08 Andreas Schwab <schwab@suse.de>
13153
13154 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13155
131562008-03-06 Jason Rumney <jasonr@gnu.org>
13157
13158 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13159 when charset not specified. Only translate ANSI to unicode when
13160 font_type is truetype.
13161 (w32font_coverage_ok): New function.
13162 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13163
131642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13165
13166 * lread.c (Fread_char): Resolve modifiers.
13167 (Fread_char_exclusive): Likewise.
13168
13169 * character.c (char_resolve_modifier_mask): New function.
13170 (char_string): Use char_resolve_modifier_mask.
13171 (Fchar_resolve_modifiers): New function.
13172 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13173 function.
13174
131752008-03-04 Jason Rumney <jasonr@gnu.org>
13176
13177 * makefile.w32-in: Always include w32font.c in the build.
13178 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13179
131802008-03-04 Andreas Schwab <schwab@suse.de>
13181
13182 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13183 (versionclean): Likewise.
13184
131852008-03-04 Juanma Barranquero <lekktu@gmail.com>
13186
13187 * .cvsignore: Add oo.
13188
131892008-03-03 Andreas Schwab <schwab@suse.de>
13190
13191 * coding.c (decode_coding_object): Inhibit gap shrinking while
13192 decoding in place.
13193
131942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13195
13196 * w32term.c: Remove unused include "gnu.h".
13197 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13198
13199 * gnu.h: Rename to ...
13200 * emacs-icon.h: ... this.
13201 * xterm.c: Use emacs-icon.h instead of gnu.h.
13202 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13203
132042008-03-03 Juanma Barranquero <lekktu@gmail.com>
13205
13206 * w32font.c: Include math.h.
13207
132082008-03-03 Jason Rumney <jasonr@gnu.org>
13209
13210 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13211 Compute options separately.
13212 (w32font_open_internal): Set glyph_idx before caching metrics.
13213
13214 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13215 Define if system headers don't.
13216 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13217 (w32font_encode_char): Don't declare here.
13218
13219 * w32font.c (Quniscribe, QCformat): New symbols.
13220 (syms_of_w32font): Define them.
13221 (w32font_has_char): Indicate uncertainty.
13222 (w32font_encode_char): Encode as glyph point. Make static.
13223 (recompute_cached_metrics): New function.
13224 (w32font_open_internal): Use it. Set font to use glyph points
13225 initially. Set format based on type of font.
13226 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13227 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13228 on it. Set format based on information available here.
13229 (add_font_entity_to_list): Identify backend based on opentype_only.
13230
132312008-03-02 Andreas Schwab <schwab@suse.de>
13232
13233 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13234
13235 * coding.c (decode_coding_big5, produce_chars):
13236 Fix typos in last change.
13237
132382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13239
13240 * gnu.h: New icon.
13241
132422008-03-02 Kenichi Handa <handa@m17n.org>
13243
13244 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13245 `dos', don't decode '\r' if that is the last in the source.
13246 (decode_coding_utf_16, decode_coding_emacs_mule)
13247 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13248 (decode_coding_raw_text, decode_coding_charset): Likewise.
13249 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13250
132512008-03-01 Jason Rumney <jasonr@gnu.org>
13252
13253 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13254
132552008-03-01 Kim F. Storm <storm@cua.dk>
13256
13257 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13258
132592008-03-01 Jason Rumney <jasonr@gnu.org>
13260
13261 * w32font.c (w32font_full_name): New function.
13262 (w32font_open_internal): Use it.
13263
132642008-03-01 Kim F. Storm <storm@cua.dk>
13265
13266 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13267
132682008-03-01 Jason Rumney <jasonr@gnu.org>
13269
13270 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13271
132722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13273
13274 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13275 xg_frame_resized when the event is for the edit widget.
13276
13277 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13278
13279 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13280 set_char_size.
13281 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13282 operations on widgets here. Just set frame size if needed.
13283 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13284 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13285 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13286 the whole frame.
13287 (xg_create_tool_bar): Move attachment of the tool bar to
13288 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13289 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13290
132912008-03-01 Jason Rumney <jasonr@gnu.org>
13292
13293 * w32fns.c (w32_msg_pump): Disable debug code.
13294
132952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13296
13297 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13298
132992008-02-29 Chong Yidong <cyd@stupidchicken.com>
13300
13301 * xdisp.c (next_overlay_string): Don't set
13302 overlay_strings_at_end_processed_p if we're currently reading from
13303 a display string.
13304
133052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13306
13307 * xdisp.c (get_overlay_strings_1): Fix typo.
13308
133092008-02-29 Chong Yidong <cyd@stupidchicken.com>
13310
13311 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13312
133132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13314
13315 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13316
13317 * xdisp.c (display_mode_element): Cancel the previous change.
13318 (decode_mode_spec): Likewise.
13319 (handle_auto_composed_prop): Don't make composition if it->string
13320 is a string.
13321
133222008-02-27 Kim F. Storm <storm@cua.dk>
13323
13324 * lisp.h (GLYPH): Change type from int to struct with separate char
13325 and face_id members.
13326 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13327 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13328 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13329 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13330 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13331 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13332 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13333 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13334 handle new Lisp glyph code encoding, either an integer or a cons.
13335
13336 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13337 (GLYPH_ALIAS): Delete.
13338 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13339 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13340 (GLYPH_FROM_CHAR): Replace macro by ...
13341 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13342
13343 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13344 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13345 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13346 (GLYPH_INVALID_P): New macro.
13347 (spec_glyph_lookup_face): Update prototype.
13348
13349 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13350 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13351 new glyph code encoding.
13352 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13353 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13354
13355 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13356 Adapt to new glyph type and new glyph code encoding.
13357
13358 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13359
13360 * indent.c (current_column, current_column_1, Fmove_to_column)
13361 (compute_motion): Adapt to new glyph code encoding.
13362
13363 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13364
133652008-02-27 Chong Yidong <cyd@stupidchicken.com>
13366
13367 * process.c (wait_reading_process_output): Check for window
13368 changes caused by timers.
13369 Suggested by Johan Bockgård.
13370
133712008-02-27 Glenn Morris <rgm@gnu.org>
13372
13373 * emacs.c (USAGE1): Add `--disable-font-backend'.
13374
133752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13376
13377 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13378 is made to the buffer.
13379
133802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13381
13382 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13383 (face_at_string_position):
13384 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13385 (face_at_string_position):
13386 * xdisp.c (display_string, next_overlay_change):
13387 * buffer.h (overlays_at):
13388 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13389 Update callers.
13390
133912008-02-26 Chong Yidong <cyd@stupidchicken.com>
13392
13393 * editfns.c (Fformat): Doc fix.
13394
133952008-02-26 Juanma Barranquero <lekktu@gmail.com>
13396
13397 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13398 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13399 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13400
134012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13402
13403 * buffer.c (Fbuffer_swap_text): New function.
13404 (syms_of_buffer): Defsubr it.
13405
134062008-02-25 Chong Yidong <cyd@stupidchicken.com>
13407
13408 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13409
134102008-02-25 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32font.c (w32font_draw): Draw one character at a time when padding.
13413
134142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13415
13416 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13417 Handle a nil arg. Use run_window_configuration_change_hook.
13418 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13419 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13420 Use run_window_configuration_change_hook.
13421
134222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13423
13424 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13425 1-pixel width.
13426
134272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13428
13429 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13430 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13431 if the glyph in the font is zero pixel with.
13432
13433 * dispextern.h (struct glyph_string): New member padding_p.
13434
13435 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13436
13437 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13438
13439 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13440
13441 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13442
13443 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13444
134452008-02-25 Jason Rumney <jasonr@gnu.org>
13446
13447 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13448
134492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13450
13451 Allow fine-grained image-cache flushing.
13452 * dispextern.h (struct image): Add `dependencies' field.
13453 (clear_image_caches): Change arg to Lisp_Object.
13454 * image.c (make_image): Initialize `dependencies' field.
13455 (clear_image_cache): Change arg to allow fine-grained flushing.
13456 Perform the flush even if image-cache-eviction-delay is nil.
13457 (clear_image_caches): Change arg to Lisp_Object.
13458 (Fclear_image_cache): Expand meaning of the argument.
13459 (mark_image): Mark `dependencies' field.
13460 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13461 (lface_hash): Use XHASH rather than XFASTINT.
13462 (face_at_buffer_position): Fix int -> EMACS_INT position.
13463 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13464 (select_frame_for_redisplay): Remove code duplication.
13465 (redisplay_internal): Adapt arg to call to clear_image_caches.
13466
134672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13468
13469 * s/vms4-0.h:
13470 * s/vms4-2.h:
13471 * s/vms4-4.h:
13472 * s/vms5-5.h: Remove, unused.
13473
13474 * s/irix5-2.h:
13475 * s/irix6-0.h:
13476 * s/riscos5.h:
13477 * s/mach-bsd4-3.h:
13478 * m/mips4.h: Remove files for obsolete systems.
13479
13480 * Makefile.in:
13481 * filelock.c:
13482 * unexmips.c:
13483 * m/hp9000s300.h:
13484 * m/iris4d.h:
13485 * s/aix3-1.h:
13486 * s/hpux.h:
13487 * s/msdos.h:
13488 * s/usg5-0.h:
13489 * s/usg5-2-2.h:
13490 * s/usg5-2.h:
13491 * s/usg5-3.h: Remove references to obsolete variables.
13492
13493 * s/irix5-0.h: Remove, move all the contents ...
13494 * s/irix6-5.h: ... here. Simplify.
13495 * config.in: Regenerate.
13496
134972008-02-24 Jason Rumney <jasonr@gnu.org>
13498
13499 * w32term.c (x_draw_glyph_string_background): Clear the background
13500 manually when cleartype is in use.
13501 (x_draw_glyph_string_foreground): Draw text transparently when
13502 cleartype is in use.
13503
13504 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13505 a font into it unless we have to.
13506
135072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13508
13509 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13510 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13511
aac0c6e3
MR
135122008-02-18 Jason Rumney <jasonr@gnu.org>
13513
13514 * w32fns.c (Fw32_shell_execute): Encode parameters.
13515
135162008-02-09 Eli Zaretskii <eliz@gnu.org>
13517
13518 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13519
135202008-02-05 Juanma Barranquero <lekktu@gmail.com>
13521
13522 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13523
135242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13525
13526 * xterm.c (x_set_offset): Don't change the gravity if
13527 CHANGE_GRAVITY is -1.
13528
135292008-02-23 Chong Yidong <cyd@stupidchicken.com>
13530
13531 * fileio.c (auto_save_error_occurred): New var.
13532 (auto_save_error): Set it.
13533 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13534 error occurred.
13535
135362008-02-23 Eli Zaretskii <eliz@gnu.org>
13537
13538 * w32.c (globals_of_w32): Add initializations for
13539 g_b_init_get_sid_sub_authority and
13540 g_b_init_get_sid_sub_authority_count.
13541
135422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13545 (font_parse_xlfd): Use them for sanity check.
13546 (Finternal_set_font_style_table): Make sure the table is bijective.
13547
13548 Consolidate the image_cache to the terminal struct.
13549 * termhooks.h (P_): Remove redundant def.
13550 (struct terminal): New field `image_cache'.
13551 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13552 of FRAME_X_IMAGE_CACHE.
13553 * xterm.h (struct x_display_info): Remove image_cache field.
13554 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13555 * w32term.h (struct w32_display_info): Remove image_cache field.
13556 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13557 * macterm.h (struct mac_display_info): Remove image_cache field.
13558 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13559 * xterm.c (x_term_init):
13560 * w32term.c (w32_term_init):
13561 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13562 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13563 Remove declarations.
13564 (clear_image_caches, mark_image_cache): New declarations.
13565 * xfaces.c (clear_face_cache):
13566 * xdisp.c (redisplay_internal): Use clear_image_caches.
13567 * image.c (clear_image_cache): Don't check that a frame is on
13568 a window-system before checking if it shares the same cache.
13569 (clear_image_caches): New function.
13570 (Fclear_image_cache): Use it.
13571 (mark_image): Move from allo.c.
13572 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13573 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13574 (mark_object): Don't call mark_image_cache for frames.
13575 (mark_terminals): Call mark_image_cache.
13576
13577 * lisp.h (Fdelete_terminal): Declare.
13578
13579 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13580 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13581 wrong_type_argument.
13582
135832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13584
13585 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13586 malayalam.el, and tamil.el. Add sinhala.el.
13587
135882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13589
13590 * xterm.c (x_connection_closed): Consolidate identical tests.
13591 (x_delete_terminal): Don't crash if called via x_connection_closed.
13592
135932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13594
13595 * xdisp.c (decode_mode_spec): New arg string.
13596 (display_mode_element): Adjust for the above change.
13597
135982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13599
13600 * callint.c (Fcall_interactively): Use AREF.
13601
136022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13603
13604 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13605
136062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13607
13608 * xfns.c (Fx_show_tip): Set string to " " if empty.
13609
136102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13611
13612 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13613 with Qt.
13614
136152008-02-17 Kenichi Handa <handa@m17n.org>
13616
13617 * ftfont.c (ftfont_shape): Return Lispy number.
13618
13619 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13620 for GCs.
13621 (Finternal_set_font_selection_order): Call font_update_sort_order
13622 only when enable_font_backend is set.
13623 (realize_x_face): Set face->font_info to that of default face only
13624 when enable_font_backend is set.
13625
13626 * xdisp.c (handle_composition_prop): Set it->c to the fist
13627 character of the composed region.
13628 (fill_composite_glyph_string): Set base_face->font_info to
13629 s->font_info. Get a face for ascii from base_face->ascii_face.
13630 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13631 with a face already decided.
13632 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13633 non-negative.
13634 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13635 call font_prepare_composition unconditionally.
13636
13637 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13638
13639 * xterm.h (struct x_display_info): New member font.
13640
13641 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13642 (x_set_mouse_face_gc, x_new_font): Likewise.
13643 (x_term_init): Setup display_info->font.
13644 (x_delete_terminal): Free display_info->font.
13645
13646 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13647
13648 * ftxfont.c (ftxfont_default_fid): Delete it.
13649 (ftxfont_open): Set xfont->fid to 0.
13650 (ftxfont_end_for_frame): Clear data specific to the frame and the
13651 font-driver.
13652
13653 * xftfont.c (xftfont_default_fid): Delete it.
13654 (xftfont_open): Set xfont->fid to 0.
13655
13656 * fontset.c (FONTSET_OBJLIST): New macro.
13657 (fontset_find_font): Update font-object list of the fontset.
13658 (free_realized_fontset): New function.
13659 (free_face_fontset): Call free_realized_fontset.
13660 (Ffont_info): Call font_close_object only when enable_font_backend
13661 is set.
13662
13663 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13664 [HAVE_NTGUI]: Include w32term.h.
13665 [MAC_OS]: Include macterm.ch.
13666 (font_otf_ValueRecord): Use make_number.
13667 (font_finish_cache): Fix handling of reference count.
13668 (font_clear_cache): Update num_fonts.
13669 (font_open_entity): Update smallest_char_width and
13670 smallest_font_height of the frame.
13671 (font_close_object): Update num_fonts.
13672 (Fclear_font_cache): Fix finding the target cache data.
13673
136742008-02-16 Glenn Morris <rgm@gnu.org>
13675
13676 * fontset.c (Finternal_char_font): Fix compilation warning.
13677
136782008-02-16 Eli Zaretskii <eliz@gnu.org>
13679
13680 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13681 instead of char arrays. Enlarge the size of array passed to
13682 get_token_information.
13683
13684 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13685 warnings.
13686
136872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13688
13689 * .gdbinit: Don't set `args', it breaks gdb --args.
13690
136912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13692
13693 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13694 within a narrowed buffer.
13695
136962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13697
13698 * coding.c (decode_coding_object, encode_coding_object):
13699 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13700
137012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13702
13703 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13704 hardcoding 1.
13705 (detect_coding_system):
13706 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13707 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13708 * insdel.c (insert_from_gap):
13709 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13710 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13711 (string_to_multibyte):
13712 * character.c (chars_in_text, multibyte_chars_in_text):
13713 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13714
13715 * character.h (FETCH_STRING_CHAR_ADVANCE)
13716 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13717 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13718 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13719
13720 * casefiddle.c (casify_region): Only call after-change and composition
13721 functions on the part of the region that was changed.
13722
13723 * keyboard.c (read_avail_input):
13724 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13725
137262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13727
13728 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13729 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13730
137312008-02-11 Juanma Barranquero <lekktu@gmail.com>
13732
13733 * w32menu.c (push_submenu_start, push_submenu_end)
13734 (push_left_right_boundary, push_menu_pane, push_menu_item):
13735 * keyboard.c (read_key_sequence): Don't pass args with side effects
13736 to AREF, it fails when compiling with -DENABLE_CHECKING.
13737
137382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13739
13740 * Makefile.in (${lispsource}international/charprop.el):
13741 Delete this target.
13742
13743 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13744 emacs-unicode-2.
13745
137462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13747
13748 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13749
137502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13751
13752 * frame.c (Qnoelisp): New symbol.
13753 (syms_of_frame): Initialize it.
13754 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13755 harmless Elisp code, from a strong `force' from x_connection_closed.
13756 * frame.h (Qnoelisp): Declare.
13757 * xterm.c (x_connection_closed): Pass `noelisp'.
13758
13759 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13760 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13761 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13762 rather than `int' for the type of `type'.
13763
137642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13765
13766 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13767
13768 * Makefile.in (GNUC): Remove support for gcc-1.x.
13769
137702008-02-10 Richard Stallman <rms@gnu.org>
13771
13772 * lisp.h (ASET): Use AREF, not ASLOT.
13773
137742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13775
13776 * lisp.h (ASET): Check bounds.
13777
137782008-02-10 Glenn Morris <rgm@gnu.org>
13779
13780 * buffer.c (mode-name): Doc fix.
13781
137822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13783
13784 * Makefile.in:
13785 * emacs.c:
13786 * gmalloc.c:
13787 * keyboard.c:
13788 * lisp.h:
13789 * m/ibm370aix.h:
13790 * process.c:
13791 * regex.c:
13792 * s/hpux.h:
13793 * sysdep.c:
13794 * sysselect.h:
13795 * systty.h:
13796 * unexec.c:
13797 * w32term.c:
13798 * xsmfns.c:
13799 * xterm.c: Remove code that deals with obsolete variables.
13800
13801 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13802
13803 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13804 nothing else needs it anymore.
13805
138062008-02-09 Eli Zaretskii <eliz@gnu.org>
13807
13808 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13809 instead of unibyte_char_to_multibyte.
13810
138112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13812
13813 * s/gnu-linux.h: Remove commented out code.
13814
13815 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13816
13817 * Makefile.in: Update what RMS says about using autoconf.
13818 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13819 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13820 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13821 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13822
138232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13824
13825 * keymap.c (Fkey_description): Move side effect outside of macro call.
13826
13827 * xfaces.c (Finternal_make_lisp_face):
13828 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13829
13830 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13831 (syms_of_fontset): Use ASET.
13832
13833 * fns.c (concat): Move side effect outside of macro call.
13834 (hash_clear): Use ASET.
13835
138362008-02-08 Richard Stallman <rms@gnu.org>
13837
13838 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13839 If FORCE, and frame has a surrogate minibuffer for another frame,
13840 delete the other frame first.
13841
138422008-02-07 Timo Savola <timo.savola@iki.fi>
13843
13844 * xterm.c (x_detect_focus_change): Handle embed client message.
13845 (handle_one_xevent): Ditto.
13846 (handle_one_xevent): If embedded and we get a button press/release,
13847 request focus.
13848 (xembed_set_info, xembed_send_message): New functions.
13849 (x_make_frame_visible): Call xembed_set_info if embedded.
13850 (x_make_frame_invisible): Call xembed_set_info if embedded.
13851 (x_term_init): Initialize Xatom_XEMBED.
13852 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13853 (x_iconify_frame): Ditto.
13854
13855 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13856 (enum xembed_info, enum xembed_message, enum xembed_focus)
13857 (enum xembed_modifier, enum xembed_accelerator): New.
13858 (xembed_set_info, xembed_send_message): Declare.
13859 (FRAME_X_EMBEDDED_P): New.
13860
13861 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13862 gtk_plug_new.
13863
13864 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13865 window ID of a frame.
13866 (x_window): Reparent frame if embedded.
13867 (Fx_create_frame): Don't set border width if embedded.
13868
13869 * emacs.c (USAGE3): Add --parent-id.
13870 (standard_args): Ditto.
13871
138722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13873
13874 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13875
138762008-02-07 Jim Meyering <meyering@redhat.com>
13877
13878 Use "do...while (0)", not "if (1)...else" in macro definitions.
13879 The latter provokes a warning from gcc about the empty else, when
13880 followed by ";". Also, without that trailing semicolon, it would
13881 silently swallow up any following statement.
13882 * syntax.h (SETUP_SYNTAX_TABLE)
13883 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13884 * buffer.h (DECODE_POSITION): Likewise.
13885 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13886 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13887 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13888 (FETCH_CHAR_ADVANCE): Likewise.
13889 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13890
138912008-02-07 Jim Meyering <meyering@redhat.com>
13892
13893 * lread.c [lint]: Don't include <sys/inode.h>.
13894
138952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13896
13897 * xselect.c (x_handle_dnd_message):
13898 * xmenu.c (digest_single_submenu, xmenu_show):
13899 * xdisp.c (with_echo_area_buffer_unwind_data)
13900 (format_mode_line_unwind_data, unwind_format_mode_line)
13901 (display_menu_bar):
13902 * eval.c (Ffetch_bytecode):
13903 * doc.c (store_function_docstring):
13904 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13905 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13906 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13907
139082008-02-07 Kenichi Handa <handa@m17n.org>
13909
13910 * ftxfont.c (ftxfont_open): Don't set
13911 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13912
13913 * ftfont.c (ftfont_open): Fix previous change.
13914
139152008-02-06 Jason Rumney <jasonr@gnu.org>
13916
13917 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13918 Use cached metrics for ASCII characters.
13919 (w32font_open_internal): Don't set font's owning_frame.
13920 Cache metrics for ASCII characters.
13921
13922 * w32font.h (struct w32font_info): Add ascii_metrics.
13923 Remove owning_frame.
13924
139252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13926
13927 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13928 to negative value.
13929
13930 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13931
13932 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13933
13934 * charset.c (syms_of_charset): Set QCtest and Qeq.
13935
139362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13937
13938 * process.c (Fstart_process):
13939 * callproc.c (Fcall_process): Handle the case where
13940 Funhandled_file_name_directory returns nil.
13941
13942 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13943 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13944 * font.c (check_gstring): Use them and AREF to access the vector before
13945 we know it's really a gstring.
13946 (Ffont_shape_text): Fix typo.
46e722a9 13947 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13948
13949 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13950 Declare.
13951
13952 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13953
139542008-02-05 Jason Rumney <jasonr@gnu.org>
13955
13956 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13957 Set smallest_font_height and smallest_char_width in display info.
13958
139592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13960
13961 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13962
139632008-02-05 Miles Bader <miles@gnu.org>
13964
13965 * xfaces.c (get_lface_attributes, merge_named_face)
13966 (lookup_named_face, lookup_derived_face, realize_named_face):
13967 Revert 2008-02-01 change by cyd@stupidchicken.com.
13968
139692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13970
13971 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13972 fallback fonts.
13973 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13974
139752008-02-04 Jason Rumney <jasonr@gnu.org>
13976
13977 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13978 set full_name.
13979 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13980
139812008-02-03 Jason Rumney <jasonr@gnu.org>
13982
13983 * makefile.w32-in (OBJ1): Include font.o here.
13984 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13985
139862008-02-02 Jason Rumney <jasonr@gnu.org>
13987
13988 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13989
139902008-02-01 Jason Rumney <jasonr@gnu.org>
13991
13992 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13993
13994 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13995
139962008-02-01 Andreas Schwab <schwab@suse.de>
13997
13998 * Makefile.in (shortlisp, lisp): Update for rename of
13999 ../lisp/language/myanmar.el.
14000
140012008-02-01 Chong Yidong <cyd@stupidchicken.com>
14002
14003 * xfaces.c (get_lface_attributes): Delete function.
14004 (merge_named_face, lookup_named_face, lookup_derived_face)
14005 (realize_named_face): Call lface_from_face_name directly, and use
14006 the fact that merge_face_vectors does not alter its FROM argument.
14007
140082008-02-01 Jason Rumney <jasonr@gnu.org>
14009
14010 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14011 input in the default locale. Handle non-Unicode multibyte input.
14012
140132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14014
14015 * fontset.c (reorder_font_vector): Exclude nil elements from the
14016 font group. Don't try multiple fonts.
14017 (fontset_font): Adjust for the above change.
14018 (Finternal_char_font): Return nil if the found font doesn't
14019 contain the character ch.
14020
14021 * Makefile.in (lisp, shortlisp): Add cham.el.
14022
140232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14024
14025 * font.h (FONTP): Make it return 1 also for a font-object.
14026
14027 * .gdbinit (xfontset): New function.
14028
14029 * font.c (font_find_for_lface): Check if the character C is
14030 supported or not only for the first font.
14031
14032 * fontset.c (reorder_font_vector): Fix typo.
14033 (fontset_find_font): Don't add a font-spec specifying a script.
14034 Use 0 (not Qt) for the indication of empty font-group. Change the
14035 format of RFONT-DEF. Return Qt if no font in the font-group
14036 support the character.
14037 (fontset_font): Adjust for the above change. If no font was
14038 found the character, remember that.
14039 (face_for_char): Adjust for the change of RFONT-DEF.
14040 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14041 no font for the target.
14042 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14043
140442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14045
14046 * font.c (font_load_for_face): Handle the case that the font in
14047 face->lface is a string.
14048
140492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14050
14051 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14052
140532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14054
14055 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14056 Fix previous change. If the frame is not on a window system,
14057 signal an error.
14058
140592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14060
14061 * coding.c (decode_coding_object, encode_coding_object): Adjust
14062 marker positions after conversion.
14063
14064 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14065
140662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14067
14068 * font.c (font_find_for_lface): Fix the handling of the return
14069 value of font_has_char.
14070 (Ffont_shape_text): Fix previous change.
14071
14072 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14073 (fontset_ref_and_range): Delete it.
14074 (fontset_find_font): Call char_table_ref_and_range instead of
14075 FONTSET_REF_AND_RANGE.
14076 (make_fontset): Don't setup font groups of Latin here.
14077 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14078 (new_fontset_from_font): Make the specified font the default for
14079 all Latin characters.
14080
140812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14082
14083 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14084 is on a window system before accessing the fontset of the frame.
14085
140862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14087
14088 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14089
14090 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14091 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14092
14093 * font.c (Ffont_shape_text): If the font driver doesn't have a
14094 shaper function, make zero-width glyphs to have at least one-pixel
14095 width. Fix setting of `to' field of glyphs.
14096
140972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14098
14099 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14100 glyphs.
14101
14102 * font.h (struct font_driver): Improve docstring of member `shape'.
14103
141042008-02-01 Kenichi Handa <handa@m17n.org>
14105
14106 * composite.c (syms_of_composite): Fix docstring of
14107 auto-composition-function.
14108
14109 * font.h (LGLYPH_SIZE): New macro.
14110
14111 * font.c (Ffont_fill_gstring): Stop filling when a character not
14112 supported by the font is found.
14113 (Ffont_shape_text): When a shape callback function returns nil,
14114 try at most two more times with larger gstring.
14115 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14116
14117 * xdisp.c (handle_auto_composed_prop): Change the argument to
14118 auto-composition-function.
14119
14120 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14121 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14122 Lispy glyph and store it in the lgstring.
14123
14124 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14125
14126 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14127
141282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14129
14130 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14131
14132 * fontset.c (Vfont_encoding_charset_alist): New variable.
14133 (syms_of_fontset): DEFVAR it.
14134 (reorder_font_vector, fontset_find_font): Optimize for the case of
14135 no need of reordering.
14136 (face_for_char): Map the charset property by
14137 Vfont_encoding_charset_alist.
14138
141392008-02-01 Jason Rumney <jasonr@gnu.org>
14140
14141 * w32font.c (logfonts_match): Don't check adstyle here.
14142 (font_matches_spec): Check here against physical font instead.
14143 (add_font_entity_to_list): Avoid some substitutions.
14144
14145 * font.c (font_parse_fcname): Default weight and slant to normal.
14146 (font_score): Prefer normal fonts if weight or slant unspecified.
14147 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14148 match freetype scores.
14149
141502008-02-01 Jason Rumney <jasonr@gnu.org>
14151
14152 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14153 font, as it may have been deleted.
14154 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14155 most common hyphenless variation.
14156 (logfonts_match): Check generic family.
14157 (font_matches_spec): Don't check generic family here.
14158 (fill_in_logfont): Set generic family based on adstyle.
14159
14160 * w32font.h (w32font_get_cache): Update declaration.
14161
141622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14163
14164 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14165
14166 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14167 If none of the new drivers are available, call font_update_drivers
14168 with the old drivers.
14169
14170 * w32font.c (w32font_get_cache): Adjust the argument type.
14171
14172 * xfont.c (xfont_get_cache): Adjust the argument type.
14173
14174 * font.h (struct font_driver): Change argument type of get_cache.
14175
14176 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14177
14178 * font.c (Ffont_get): Fix arguments to Fassoc.
14179 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14180 (font_clear_cache): New function.
14181 (font_list_entities, font_matching_entity): Use font_get_cache.
14182 (font_update_drivers): Call font_clear_cache when finishing a driver.
14183
14184 * fontset.c (fontset_find_font): Fix previous change.
14185
141862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14187
14188 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14189 dpyinfo->font_table.
14190 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14191 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14192
14193 * font.c (font_at): Handle the case that the arg C is negative.
14194 Handle the unibyte case.
14195 (Ffont_at): Call font_at with the arg C -1.
14196
14197 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14198 the position here, and call font_at with the arg C -1.
14199 Don't check the range of the existing composition at the point.
14200
142012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14202
14203 * fontset.c (fontset_add): New args charset_id and family.
14204 Change caller.
14205 (load_font_get_repertory, fontset_find_font): Assume that
14206 font_spec is always a font-spec object.
14207 (Fset_fontset_font): Always store a font-spec object in a fontset.
14208
14209 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14210 instead of get_property_and_range.
14211
142122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14213
14214 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14215 (xftfont_open): Don't keep locking face.
14216 (xftfont_close): Don't unlock face.
14217 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14218
14219 * fontset.c (fontset_find_font): Don't prefer a font of
14220 supplementary charset.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14225 script, langsys_tag to langsys, new member script.
14226 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14227 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14228 listing to the script specified in that property. Fix arg to
14229 OTF_check_features.
14230
142312008-02-01 Jason Rumney <jasonr@gnu.org>
14232
14233 * w32font.h: New file.
14234
14235 * w32font.c: Include it.
14236 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14237 (w32font_open): Set owning_frame.
14238 (w32font_text_extents): Use owning_frame.
14239 (struct font_callback_data): Add opentype_only field.
14240 (add_font_entity_to_list): Use it to filter fonts.
14241 Don't check against full name.
14242 (w32font_list_internal): New function.
14243 (w32font_list): Use it.
14244 (w32font_match_internal): New function.
14245 (w32font_match): Use it.
14246 (w32font_open_internal): New function.
14247 (w32font_open): Use it.
14248 (w32font_get_cache, w32font_close, w32font_has_char)
14249 (w32font_encode_char, w32font_text_extents, w32font_draw):
14250 Make non-static.
14251
14252 * makefile.w32-in (w32font.o): Depend on w32font.h.
14253
142542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14255
14256 * charset.c (Fdefine_charset_internal): Record a supplementary
14257 charset at the tail of Vcharset_order_list.
14258
14259 * font.c (Ffont_shape_text): Fix the return value.
14260
14261 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14262
14263 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14264
142652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14266
14267 * ftfont.c (struct OpenTypeSpec): New struct.
14268 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14269 (ftfont_get_open_type_spec): New function.
14270 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14271
14272 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14273
142742008-02-01 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32font.c (add_font_entity_to_list): Compare only the beginning
14277 of full name.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14282 Never return HANDLED_RECOMPUTE_PROPS.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * font.c (font_gstring_produce): Delete it.
14287
14288 * composite.h (COMPOSITION_METHOD):
14289 Handle COMPOSITION_WITH_GLYPH_STRING.
14290
142912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14292
14293 * xfont.c (Qx): Delete.
14294 (syms_of_xfont): Don't initialize Qx.
14295
14296 * composite.h (enum composition_method):
14297 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14298
142992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14300
14301 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14302 (choose_face_font): Accept new form of font-spec.
14303
14304 * frame.h (font_driver_list): Declare it unconditionally.
14305 (struct frame): Define members font_driver_list and font_data_list
14306 unconditionally.
14307
14308 * fontset.c: Include "font.h" unconditionally.
14309 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14310 (Fset_fontset_font): Accept a font-spec object.
14311
14312 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14313 PIXEL_SIZE part a wild card.
14314
14315 * dispextern.h (struct glyph_string): Define members clip and
14316 num_clips unconditionally.
14317 (struct face): Define members font_info and extra unconditionally.
14318
14319 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14320 ftfont_info only when HAVE_LIBOTF is defined.
14321
143222008-02-01 Andreas Schwab <schwab@suse.de>
14323
14324 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14325 and end.
14326
143272008-02-01 Jason Rumney <jasonr@gnu.org>
14328
14329 * w32font.c (w32font_driver): Add new fields.
14330
143312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14332
14333 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14334 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14335 (LIBES): Add @M17N_FLT_CFLAGS@.
14336
14337 * composite.c (compose_text): Don't treat the new style
14338 composition specially.
14339
14340 * emacs.c (main): Call syms_of_font unconditionally.
14341
14342 * font.h (FONT_ENTITY_NOT_LOADABLE)
14343 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14344 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14345 (struct font_driver): New member shape.
14346 (font_registry_charsets): Extern it.
14347 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14348 (font_otf_capability, font_drive_otf): Delete their externs.
14349
14350 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14351 (font_charset_alist, font_registry_charsets): Move from xfont.c
14352 and rename.
14353 (font_prop_validate_otf): New function.
14354 (font_property_table): Register it for QCotf.
14355 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14356 (font_drive_otf): Delete.
14357 (font_prepare_composition): New arg F. Adjust for the change of
14358 lispy gstring.
14359 (font_find_for_lface): New arg C.
14360 (font_load_for_face): Adjust for the change of font_find_for_lface.
14361 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14362 lispy gstring.
14363 (Ffont_shape_text): New function.
14364 (Fopen_font): If the font size is not given, use 12-pixel.
14365 (Ffont_at): New arg STRING.
14366 (syms_of_font): Initalize font_charset_alist.
14367 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14368 conditionally.
14369
14370 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14371 fonts of the same font-spec. Change the format of RFONT-DEF.
14372 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14373 Adjust for the change of RFONT-DEF.
14374 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14375
14376 * ftfont.h: New file.
14377
14378 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14379 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14380 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14381 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14382 font_otf_capability and font_drive_otf, set ftfont_shape.
14383 (ftfont_list): Adjust for the change of :otf property value.
14384 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14385 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14386 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14387 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14388 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14389 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14390
14391 * w32term.c (x_draw_composite_glyph_string_foreground):
14392 Adjust for the change of lispy gstring.
14393
14394 * xdisp.c (handle_composition_prop): Adjust for the change of
14395 lispy gstring. Call a function for auto-composition with the
14396 third arg it->window.
14397 (fill_composite_glyph_string): Adjust for the change of lispy string.
14398 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14399
14400 * xfaces.c (set_font_frame_param): Adjust for the change of
14401 font_find_for_lface.
14402
14403 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14404 (xfont_registry_charsets): Likewise. Change caller.
14405 (syms_of_xfont): Don't handle x_font_charset_alist.
14406
14407 * xftfont.c: Include "ftfont.h".
14408 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14409 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14410 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14411 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14412 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14413 Set xftfont_driver.shape to xftfont_shape.
14414
14415 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14416 the change of lispy gstring.
14417
144182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14419
14420 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14421
144222008-02-01 Jason Rumney <jasonr@gnu.org>
14423
14424 * w32font.c (w32font_draw): Fill background manually.
14425
144262008-02-01 Jason Rumney <jasonr@gnu.org>
14427
14428 * font.c (Qfontp): Remove unused symbol.
14429 (QCantialias): New symbol.
14430 (syms_of_font): Define it.
14431 (font_property_table): Set a validator for QCantialias.
14432
14433 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14434 Define if not already.
14435 (QCfamily): Share with xfaces.c.
14436 (Qstandard, Qsubpixel, Qnatural): New symbols.
14437 (syms_of_w32font): Define them. Don't define QCfamily here.
14438 (w32_antialias_type, lispy_antialias_type): New functions.
14439 (w32_enumfont_pattern_entity): New arg requested_font.
14440 Set antialias parameter if non-default was requested.
14441 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14442
144432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14444
14445 * lread.c (read1): Undo the previous change.
14446
144472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14448
14449 * frame.c (Fdelete_frame): Call font_update_drivers only when
14450 USE_FONT_BACKEND is defined.
14451
144522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14453
14454 * font.h (struct font_bitmap): New member bits_per_pixel.
14455 (struct font_driver): New members start_for_frame and end_for_frame.
14456 (struct font_data_list): New struct.
14457 (font_put_frame_data, font_get_frame_data): Extern them.
14458
14459 * frame.h (struct frame): New member font_data_list.
14460
14461 * font.c (font_update_drivers): Call driver->start_for_frame and
14462 driver->end_for_frame at proper timings.
14463 (font_put_frame_data, font_get_frame_data): New functions.
14464 (Ffont_spec): Add usage in the docstring.
14465
14466 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14467 (Fdelete_frame): Call font_update_drivers.
14468
14469 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14470 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14471 (xftfont_get_xft_draw): New function.
14472 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14473 (xftfont_end_for_frame): New function.
14474 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14475
14476 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14477 Change argument. Cache GCs in the per-frame data.
14478 (struct ftxfont_frame_data): New struct.
14479 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14480 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14481 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14482 (ftxfont_end_for_frame): New function.
14483 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14484
14485 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14486
144872008-02-01 Kenichi Handa <handa@m17n.org>
14488
14489 * xselect.c (Vselection_coding_system)
14490 (Vnext_selection_coding_system): Delete them.
14491 (syms_of_xselect): Don't declare selection-coding-system and
14492 next-selection-coding-system. They are declared in select.el.
14493
144942008-02-01 Jason Rumney <jasonr@gnu.org>
14495
14496 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14497
14498 * w32fns.c: Include imm.h.
14499 (get_composition_string_fn, get_ime_context_fn): New optional
14500 system functions.
14501 (globals_of_w32fns): Load them from imm32.dll.
14502 (ignore_ime_char): New flag.
14503 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14504 WM_IME_ENDCOMPOSITION messages.
14505
14506 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14507 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14508
145092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14510
14511 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14512 (READCHAR_REPORT_MULTIBYTE): New macro.
14513 (readchar): New 2nd arg MULTIBYTE.
14514 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14515 Make symbol's name multibyte according to the multibyteness of the
14516 source.
14517
145182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14519
14520 * xfaces.c (face_for_overlay_string): Call lookup_face with
14521 correct arguments (fix of synching with the trunk).
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14526 (font_prop_validate_non_neg, font_prop_validate_spacing):
14527 Delete argument prop_index.
14528 (font_property_table): Change arguments to validater. Change Callers.
14529 (font_lispy_object): Delete.
14530 (font_at): Use font_find_object instead fo font_lispy_object.
14531
145322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14533
14534 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14535 and file names.
14536
145372008-02-01 Jason Rumney <jasonr@gnu.org>
14538
14539 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14540 (font_matches_spec): Remove debug output.
14541 (add_font_entity_to_list): Avoid using substituted fonts.
14542
145432008-02-01 Jason Rumney <jasonr@gnu.org>
14544
14545 * doc.c (Fsnarf_documentation):
14546 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14547
145482008-02-01 Miles Bader <miles@gnu.org>
14549
14550 * dispextern.h (struct glyph_row): Only define "clip" field if
14551 HAVE_WINDOW_SYSTEM is defined.
14552
145532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14554
14555 Fix up multi-tty merge.
14556
14557 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14558 and indentation.
14559
14560 * xfaces.c (free_realized_face, clear_face_gcs):
14561 Include font_done_for_face in the input_blocked section, just in case.
14562
14563 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14564 (get_char_face_and_encoding): Undo last change and remove the *other*
14565 duplicate definition (i.e. keep the one that's better scoped and that
14566 includes code for the font-backend).
14567
14568 * terminal.c (create_terminal): Default keyboard_coding to
14569 `no-conversion' and terminal_coding to `undecided'.
14570
14571 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14572
14573 * fontset.c (free_realized_fontsets): Check that the table entry does
14574 contain a fontset before trying to compare it to `base'.
14575
14576 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14577 syms_of_charset, and syms_of_coding earlier because init_window_once
14578 now needs Vcoding_system_hash_table to be setup.
14579
14580 * coding.h (default_buffer_file_coding): Remove.
14581
14582 * coding.c (default_buffer_file_coding): Remove.
14583 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14584 than ->symbol, and use the terminal-local coding system.
14585 (syms_of_coding): Don't setup the coding-systems that are not
14586 terminal-local.
14587 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14588
14589 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14590 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14591
14592 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14593 in chartab.c and were re-added here by mistake.
14594 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14595
14596 * doc.c (Fsnarf_documentation):
14597 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14598 src to etc.
14599
14600 * ChangeLog.10: Add mistakenly removed entry.
14601
146022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14603
14604 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14605
146062008-02-01 Miles Bader <miles@gnu.org>
14607
14608 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14609 Add extra args to FACE_FOR_CHAR.
14610
146112008-02-01 Kenichi Handa <handa@m17n.org>
14612
14613 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14614 in sequence.
14615
14616 * chartab.c (map_sub_char_table, map_char_table): If the range
14617 contains just one character, call the function with that character
14618 even if the depth is not 3.
14619
146202008-02-01 Jason Rumney <jasonr@gnu.org>
14621
14622 * w32font.c (w32font_text_extents): Calculate metrics for the
14623 whole string.
14624
146252008-02-01 Jason Rumney <jasonr@gnu.org>
14626
14627 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14628
146292008-02-01 Jason Rumney <jasonr@gnu.org>
14630
14631 * w32term.c (x_set_glyph_string_clipping): Use
14632 get_glyph_string_clip_rects.
14633 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14634 Adjust for the change of struct glyph_string.
14635
14636 * w32font.c (w32font_draw): Do clipping here.
14637
146382008-02-01 Kenichi Handa <handa@m17n.org>
14639
14640 * xftfont.c (xftfont_draw): Adjust for the change of struct
14641 glyph_string.
14642
14643 * xterm.c (x_set_glyph_string_clipping): Use
14644 get_glyph_string_clip_rects.
14645 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14646 Adjust for the change of struct glyph_string.
14647
14648 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14649 the resulting clip(s}.
14650 (expose_overlaps): Add arg r. Change callers. Set it to
14651 row->clip temporarily.
14652 (expose_window): Redraw rows overlapping the exposed area.
14653
14654 * dispextern.h (struct glyph_row): New member clip.
14655 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14656 clip_height, new member clip, and num_clips.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * data.c (Fchar_or_string_p): Fix docstring.
14661
146622008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14665 create a temporary XftDraw object.
14666
146672008-02-01 Kenichi Handa <handa@m17n.org>
14668
14669 * font.c (Ffontp): Fix docstring.
14670
14671 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14672 strong evidence of ISO-2022.
14673
146742008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14677 SYNTAX_ENTRY_FOLLOW_PARENT.
14678
146792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14682 its type.
14683 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14684 Update to the new type of weak_hash_tables and next_weak.
14685
14686 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14687 a plain C pointer to Lisp_Hash_Table.
14688
14689 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14690 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14691 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14692 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14693 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14694 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14695 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14696 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14697 (GC_EQ): Remove since they've been identical to their non-GC_
14698 alter-egos ever since the markbit was eradicated.
14699
14700 * alloc.c:
14701 * buffer.c:
14702 * buffer.h:
14703 * data.c:
14704 * fileio.c:
14705 * filelock.c:
14706 * fns.c:
14707 * frame.h:
14708 * lisp.h:
14709 * macterm.c:
14710 * print.c:
14711 * process.c:
14712 * w32fns.c:
14713 * w32menu.c:
14714 * w32term.c:
14715 * xfns.c:
14716 * xmenu.c:
14717 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14718
147192008-02-01 Kenichi Handa <handa@m17n.org>
14720
14721 * chartab.c (map_sub_char_table): Make it work for the top-level
14722 char-table. Fix handling of parent char-table.
14723 (map_char_table): Adjust for the above change.
14724
147252008-02-01 Jason Rumney <jasonr@gnu.org>
14726
14727 * w32font.c (Qgdi): Rename from Qw32.
14728
147292008-02-01 Jason Rumney <jasonr@gnu.org>
14730
14731 * w32bdf.c (get_quoted_string): Make function static.
14732
147332008-02-01 Kenichi Handa <handa@m17n.org>
14734
14735 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14736 bigger ascent and descent than those of the font, use them as
14737 font's ascent and descent.
14738
147392008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * Makefile.in (${lispsource}international/charprop.el): Move this
14742 target within "#ifdef HAVE_UNIDATA" and "#endif".
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14747 (shortlisp): Add ../lisp/language/tai-viet.el.
14748
147492008-02-01 Ulrich Mueller <ulm@gentoo.org>
14750
14751 * Makefile.in (${lispsource}international/charprop.el): Depend on
14752 temacs${EXEEXT}.
14753
147542008-02-01 Jason Rumney <jasonr@gnu.org>
14755
14756 * w32font.c (w32font_close): Delete the GDI font object.
14757
14758 * w32menu.c: Include character.h.
14759
14760 * w32proc.c: Likewise.
14761
14762 * w32select.c: Likewise.
14763
14764 * makefile.w32-in (w32proc.o): Depend on character.h.
14765
147662008-02-01 Jason Rumney <jasonr@gnu.org>
14767
14768 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14769
14770 * w32menu.c (syms_of_w32menu): Likewise.
14771
14772 * w32proc.c (syms_of_ntproc): Likewise.
14773
14774 * w32select.c (syms_of_w32select): Likewise.
14775
14776 * w32term.c (syms_of_w32term): Likewise.
14777
147782008-02-01 Jason Rumney <jasonr@gnu.org>
14779
14780 * w32font.c (w32font_draw): Delete brush after using it.
14781
147822008-02-01 Jason Rumney <jasonr@gnu.org>
14783
14784 * w32font.c (w32font_open): Don't set font_idx.
14785 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14786 to font settings.
14787 (w32font_draw): Fill background explicitly.
14788
147892008-02-01 Jason Rumney <jasonr@gnu.org>
14790
14791 * w32term.c (w32_initialize): Don't call w32font_initialize.
14792
14793 * w32font.c (w32font_info): Remove subranges.
14794 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14795 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14796 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14797 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14798 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14799 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14800 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14801 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14802 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14803 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14804 New symbols.
14805 (font_callback_data): New struct.
14806 (w32font_list, w32font_match): Use it.
14807 (w32font_open): Don't populate subranges.
14808 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14809 (w32font_encode_char): Always return unicode code-point as-is.
14810 (w32font_text_extents): Supply a transformation matrix to
14811 GetGlyphOutline. Never look up by glyph index. Avoid looping
14812 twice. Use unicode version of GetTexExtentPoint32 instead of
14813 glyph index version.
14814 (set_fonts_frame): Remove.
14815 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14816 set frame parameter. Use backward compatible fake foundries.
14817 Save generic family in extra slot under QCfamily. Make width slot
14818 constant. Save QCspacing value. Save list of scripts instead of
14819 binary subranges.
14820 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14821 (add_font_entity_to_list): Use font_callback_data struct. Filter
14822 unwanted fonts.
14823 (add_one_font_entity_to_list): Use font_callback_data struct.
14824 (w32_registry): Default to iso10646_1.
14825 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14826 string font registries. Don't fill in font name if it is a generic
14827 family name, fill family instead. Use spacing, family and script
14828 extra info to fill pitch, family and charset fields.
14829 (list_all_matching_fonts): Use font_callback_data struct.
14830 (unicode_range_for_char): Remove.
14831 (font_supported_scripts): New function.
14832 (w32font_initialize): Remove.
14833 (syms_of_w32font): Update which symbols are defined.
14834
148352008-02-01 Jason Rumney <jasonr@gnu.org>
14836
14837 * font.c (font_pixel_size): Reverse assq_no_quit args.
14838
14839 * w32term.h (FONT_WIDTH): Report max width, not average.
14840 (FONT_MAX_WIDTH): Remove.
14841 (FONT_AVG_WIDTH): New macro.
14842
14843 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14844 redefinition of FONT_WIDTH.
14845
14846 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14847 (w32_cache_char_metrics): Use FONT_WIDTH.
14848
14849 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14850
148512008-02-01 Jason Rumney <jasonr@gnu.org>
14852
14853 * w32font.c (w32font_open): Make lfHeight negative.
14854
14855 * w32fns.c (x_default_font_parameter): Use new style font name.
14856 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14857
148582008-02-01 Jason Rumney <jasonr@gnu.org>
14859
14860 * w32font.c (QCsubranges): New symbol.
14861 (w32font_open, w32font_has_char): Get subranges from subproperty
14862 of extra.
14863 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14864 (syms_of_w32font): Define :subranges symbol.
14865
14866 * font.c (font_put_extra): Expose externally.
14867
14868 * font.h (font_put_extra): Move declaration from font.c.
14869
14870 * font.c (Ffont_get): Use font driver to determine otf capability.
14871 (adjust_anchor): Check if driver defines anchor_point before using.
14872
14873 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14874 (w32font_draw): Use options.
14875 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14876 Fix detection of truetype fonts.
14877 (registry_to_w32_charset): Handle charsets other than iso8859-1
14878 expressed as lisp symbols.
14879 (w32_registry): Express charset as lisp symbol.
14880 (fill_in_logfont): Reverse pixel and point height logic.
14881 Don't set width here. Set quality to default.
14882
14883 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14884 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14885
14886 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14887 Remove redundant loop and allocation.
14888
14889 * makefile.w32-in (font.o, w32font.o): New objects.
14890 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14891 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14892
14893 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14894 STORE_XCHARB a valid l-value.
14895
14896 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14897 calculations for non-Truetype fonts.
14898 (x_draw_glyph_string): Sync with xterm.c.
14899 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14900 Remove redundant code.
14901 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14902
14903 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14904 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14905
14906 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14907 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14908
14909 * w32font.c: New file for w32 font backend.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * term.c: Don't include "buffer.h" twice.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * character.c (Funibyte_string): New function.
14918 (syms_of_character): Defsubr it.
14919
149202008-02-01 Jason Rumney <jasonr@gnu.org>
14921
14922 * w32term.c [USE_FONT_BACKEND]:
14923 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14924 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14925 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14926 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14927 (x_free_frame_resources): Sync with xterm.c.
14928
149292008-02-01 Andreas Schwab <schwab@suse.de>
14930
14931 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14932 char-table size.
14933
149342008-02-01 Kenichi Handa <handa@m17n.org>
14935
14936 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14937
149382008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14941 font_otf_gpos, add font_drive_otf.
14942
14943 * fontset.c (fontset_find_font): Pay attention to font size
14944 specified for a font.
14945 (reorder_font_vector): Check contents of font_def.
14946
14947 * font.c (struct otf_list): Delete it.
14948 (otf_list): Make it a lisp variable.
14949 (otf_open): Use lispy otf_list.
14950 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14951 (check_otf_features): New function.
14952 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14953 New functions.
14954 (font_drive_otf): New function merging font_otf_gsub and
14955 font_otf_gpos.
14956 (font_open_for_lface): New arg spec. Change argument order.
14957 (font_load_for_face): Adjust for the change of font_open_for_lface.
14958 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14959 Ffont_otf_gpos.
14960 (syms_of_font): Staticpro otf_list. Delete defsubr of
14961 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14962
14963 * xfaces.c (set_font_frame_param): Adjust for the change of
14964 font_open_for_lface.
14965
14966 * font.h (font_open_for_lface): Adjust prototype.
14967 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14968 member otf_drive.
14969 (font_otf_gsub, font_otf_gpos): Delete externs.
14970 (font_drive_otf): Extern it.
14971
149722008-02-01 Kenichi Handa <handa@m17n.org>
14973
14974 * font.c (font_at): If the window W is not on a window system,
14975 return Qnil.
14976
14977 * coding.c (produce_chars, encode_coding): Don't call
14978 insert_from_gap if no characters to produce.
14979
149802008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14983 Fclear_face_cache.
14984
14985 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14986
149872008-02-01 Miles Bader <miles@gnu.org>
14988
14989 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14990 Parse "--disable-font-backend" option.
14991 (standard_args): Add "--disable-font-backend" option.
14992
149932008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * fontset.c (fontset_find_font): New function.
14996 (fontset_font): Use fontset_find_font.
14997 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14998 Register the specified font for all Latin characters.
14999 (new_fontset_from_font): Register the specified font for all Latin
15000 characters.
15001 (dump_fontset): For a realized fontset, include the base fontset
15002 name in the returned vector.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * character.h (CHAR_STRING): Cast C to unsigned on calling
15007 char_string.
15008
15009 * character.c (char_string): Type of arg C changed to unsigned.
15010 Signal an error if C is an invalid character code.
15011
15012 * editfns.c (general_insert_function, Fchar_to_string):
15013 Use CHARACTERP, not INTEGERP.
15014
150152008-02-01 Kenichi Handa <handa@m17n.org>
15016
15017 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15018 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15019
15020 * regex.c (analyse_first): Fix for multibyte characters in "case
15021 charset:" and "case categoryspec:".
15022
150232008-02-01 Andreas Schwab <schwab@suse.de>
15024
15025 * Makefile.in (LIBES): Move standard libraries to the end.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15030 nonzero, don't shrink the buffer nextb.
15031
15032 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15033
15034 * coding.c (coding_alloc_by_making_gap): New arg offset.
15035 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15036 offset.
15037 (decode_coding_iso_2022): Update coding->safe_charsets.
15038 (decode_coding_gap): Temporarily set
15039 current_buffer->text->inhibit_shrinking to 1.
15040
150412008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15044 indexing into elements of s->cmp and s->char2b.
15045
150462008-02-01 Juanma Barranquero <lekktu@gmail.com>
15047
15048 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15049
150502008-02-01 Kenichi Handa <handa@m17n.org>
15051
15052 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15053 target_multibyte instead of multibyte.
15054 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15055 (bcmp_translate): Change the argument name from multibyte to
15056 target_multibyte.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 These changes are to compile a regexp into a pattern that can be
15061 used both for multibyte and unibyte targets.
15062
15063 * Makefile.in (search.o): Depend on charset.h.
15064
15065 * character.c (multibyte_char_to_unibyte_safe): New function.
15066
15067 * search.c: Include "charset.h".
15068 (compile_pattern_1): Delete argument multibyte. Don't set
15069 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15070 (compile_pattern): Don't compare cp->buf.target_multibyte.
15071 Compare cp->buf.charset_unibyte.
15072 (compile_pattern): Set cp->buf.target_multibyte.
15073
15074 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15075
15076 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15077
15078 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15079 multibyte. Change callers.
15080 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15081 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15082 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15083 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15084 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15085 (regex_compile): Make the compiled pattern usable both for
15086 multibyte and unibyte targets.
15087 (analyse_first): Make the fastmap usable both for multibyte and
15088 unibyte targets.
15089 (TRANSLATE_VIA_MULTIBYTE): Delete.
15090 (re_match_2_internal): Pay attention to the case that the
15091 multibyteness of bufp and target may be different.
15092
150932008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15096 empty box occupy at least one column width.
15097
150982008-02-01 Miles Bader <miles@gnu.org>
15099
15100 * Makefile.in: Remove redundant HAVE_XFT clause.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15105
151062008-02-01 Kenichi Handa <handa@m17n.org>
15107
15108 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15109 being nil.
15110
151112008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * search.c (simple_search): Fix previous change.
15122
151232008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * xftfont.c (ftfont_font_format): Extern declaration.
15126
15127 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15128
15129 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15130 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15131
15132 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15133 (ftfont_font_format): Fix previous change.
15134
15135 * font.h (Ffont_xlfd_name): EXFUN it.
15136
15137 * font.c (font_parse_xlfd): Fix the array size of `f'.
15138 (register_font_driver): Use EQ to compare driver->type.
15139
15140 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15141 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15142 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15143
151442008-02-01 Kenichi Handa <handa@m17n.org>
15145
15146 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15147 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15148
151492008-02-01 Kenichi Handa <handa@m17n.org>
15150
15151 * xfont.c (xfont_open): Set font->format.
15152
15153 * xftfont.c (xftfont_open): Set font->format.
15154
15155 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15156 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15157 (ftfont_open): Set font->format.
15158 (ftfont_font_format): New function.
15159
15160 * font.h (struct font): New member format.
15161
15162 * font.c (Qopentype): New variable.
15163 (syms_of_font): Defsym it.
15164 (Fquery_font): Change the format of the last element of the return
15165 value.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15170 last resort.
15171
151722008-02-01 Kenichi Handa <handa@m17n.org>
15173
15174 * coding.c (detect_coding_charset): Fix detection of multi-byte
15175 charset.
15176
151772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15178
15179 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15180
151812008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * xdisp.c (get_next_display_element): Set it->face_id for the
15184 first component of a composition.
15185 (x_produce_glyphs): Check if the font is changed or not for composition.
15186
151872008-02-01 Kenichi Handa <handa@m17n.org>
15188
15189 * fontset.c (Qlatin): New variable.
15190 (syms_of_fontset): Define it as a lisp symbol.
15191 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * font.c (font_unparse_fcname): Pay attention to the case that
15196 some of font property is a null string.
15197
151982008-02-01 Kenichi Handa <handa@m17n.org>
15199
15200 * term.c: Include "composite.h".
15201 (encode_terminal_code): Output all components of composition.
15202 Check the size of encode_terminal_src.
15203 (produce_glyphs): For composition, call produce_composite_glyph.
15204 (append_composite_glyph, produce_composite_glyph): New functions.
15205
15206 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15207 is not found, get font_info from the current ascii face.
15208
152092008-02-01 Kenichi Handa <handa@m17n.org>
15210
15211 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15212 buffer-file-name to Qnil before calling insert_from_buffer.
15213
15214 * font.c (font_unparse_fcname): Pay attention to the case that
15215 foundry is a null string.
15216
152172008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15220
15221 * font.c (Qunicode_sip): New variable.
15222 (syms_of_font): Declare it as a Lisp symbol.
15223
15224 * font.h (Qunicode_sip): Extern it.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * composite.c (get_composition_id): Pay attention to TAB component.
15229
15230 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15231 TAB. Adjust for the change of s->char2b which always points to
15232 the first element of allocated memory.
15233
15234 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15235
15236 * xdisp.c (handle_composition_prop): Set it->c to the first
15237 non-TAB component.
15238 (fill_composite_glyph_string): Change argument.
15239 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15240 (x_produce_glyphs): Fix handling of left/right padding.
15241
152422008-02-01 Kenichi Handa <handa@m17n.org>
15243
15244 * coding.c (detect_coding_system): Fix for handling off
15245 inhibit_iso_escape_detection. Fix for the case that no coding
15246 system is defined for a specific coding category.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * font.c (font_matching_entity): Delete unused local var.
15251
15252 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15253 opening a font.
15254
15255 * fileio.c (Finsert_file_contents): On recovering a file, assume
15256 Unix-like eol.
15257 (choose_write_coding_system): On auto-saving a file, force
15258 Unix-like eol.
15259
15260 * coding.c (setup_coding_system): Fix setting of
15261 coding->common_flags based on eol_type.
15262 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15263 inherit from it.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * alloc.c (NSTATICS): Increas to 0x600.
15268
152692008-02-01 Kenichi Handa <handa@m17n.org>
15270
15271 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15272 (ftfont_list): Don't check :name property.
15273 (ftfont_match): New function.
15274 (ftfont_pattern_entity): If the pattern doesn't contain
15275 FC_SPACING, don't assume FC_MONO.
15276
15277 * font.h (struct font_driver): New member `match'.
15278 (font_update_drivers): Adjust prototype.
15279
15280 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15281 property of FONT.
15282 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15283 them unconditionally.
15284 (font_matching_entity): New function.
15285 (font_open_by_name): Try font_matching_entity if exact match is
15286 not found.
15287 (font_update_drivers): Delete the arg FONT. Return a list of
15288 actually used backends. Don't free faces, font caches here.
15289 Don't store data in frame parameters. Don't call x_set_font.
15290 (Ffont_spec): Store :name property as is.
15291 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15292 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15293 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15294 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15295 Call font->driver->otf_gsub instead of font_otf_gsub.
15296
15297 * frame.c (x_set_font_backend): Do more works that were done in
15298 font_update_drivers before.
15299
15300 * xfont.c (xfont_match): New function.
15301 (xfont_driver): Set xfont_driver.match to xfont_match.
15302 (xfont_draw): Set font in GC if necessary.
15303
15304 * ftxfont.c (ftxfont_match): New function.
15305 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15306
15307 * xftfont.c (xftfont_match): New function.
15308 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15309
153102008-02-01 Kenichi Handa <handa@m17n.org>
15311
15312 * font.h (struct font): New member scalable.
15313 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15314 (font_otf_gsub): Adjust prototype.
15315
15316 * font.c (font_otf_capability): Fix handling of the default langsys.
15317 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15318 Check the contents of SPEC.
15319 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15320 (check_gstring): New function.
15321 (REPLACEMENT_CHARACTER): New macro.
15322 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15323 glyph codes of GSTRING.
15324 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15325 (font_prepare_composition): Set cmp->glyph_len.
15326 (font_open_entity): Set font->scalable.
15327 (Ffont_get): Handle :otf property.
15328 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15329 functions.
15330 (Fquery_font): Use font->font.full_name.
15331 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15332 Sfont_otf_alternates.
15333
15334 * ftfont.c (ftfont_open): Set font->font.full_name and
15335 font->font.name properly. Fix calculation of font->font.height
15336 and font->min_width.
15337
15338 * ftxfont.c (ftxfont_create_gcs): New function.
15339 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15340 (ftxfont_draw_backgrond): Fix filling region.
15341 (ftxfont_default_fid): New function.
15342 (ftxfont_open): Set xfont->fid to the return value of
15343 ftxfont_default_fid.
15344 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15345 (ftxfont_done_face): Free only GCs that are created by
15346 ftxfont_create_gcs.
15347 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15348
15349 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15350 Clip to src->width, etc (not src->clip_XXX).
15351
15352 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15353 FontBackend frame parameter.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * font.h (struct font_driver_list): New member `on'.
15358 (Fclear_font_cache): EXFUN it.
15359 (font_update_drivers): Extern it.
15360
15361 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15362 (font_list_entities): Check driver_list->on.
15363 (register_font_driver): Initalize `on' member to 0.
15364 (font_update_drivers): New function.
15365 (Fclear_font_cache): Check driver_list->on.
15366
15367 * frame.h (Qfont_backend): Extern it.
15368 (x_set_font_backend): Extern it.
15369
15370 * frame.c (Qfont_backend): New variable.
15371 (frame_parms): New element for font-backend.
15372 (x_set_font_backend): New function.
15373
15374 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15375 FontBackend frame parameter.
15376 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15377 x_set_font_backend.
15378
15379 * xfont.c (xfont_list): Don't try listing by :name property if the
15380 name is not for XLFD.
15381
153822008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15385 (LGLYPH_SET_TO): New macros.
15386 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15387 element of G is vector or not.
15388 (font_at): Extern it.
15389
15390 * font.c: Include window.h.
15391 (font_lispy_object): New function.
15392 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15393 end of valid glyph.
15394 (font_close_object): Fix getting (struct font *).
15395 (font_at): New function.
15396 (Ffont_get): If FONT is a font-object, get entity from it.
15397 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15398 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15399 range check.
15400 (Ffont_at): New function.
15401 (syms_of_font): Defsubr Sfont_at.
15402
15403 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15404 before the entry for Qcomposition.
15405 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15406 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15407 the font in gstring.
15408 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15409 LGLYPH_FORM (g) to detect the end of valid glyph.
15410 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15411 we are composing with gstring.
15412
15413 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15414 Check if adjustment is vector or not.
15415
15416 * Makefile.in (font.o): Make it depends on window.h.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15421 adjustment is vector or not.
15422
154232008-02-01 Miles Bader <miles@gnu.org>
15424
15425 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15430 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15431 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15432
15433 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15434 (DEVICE_DELTA): Fix typo.
15435 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15436 LGLYPH format.
15437
15438 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15439 the change of LGLYPH format.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * ftfont.c (ftfont_list): Fix typo.
15444 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15445
154462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15447
15448 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15449
15450 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15451 xftface_info is non-NULL.
15452
154532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15454
15455 * ftfont.c (ftfont_list): Move misplaced #endif.
15456
154572008-02-01 Kenichi Handa <handa@m17n.org>
15458
15459 * ftfont.c (ftfont_list): Pay attention to the case that
15460 FC_CAPABILITY is not defined.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * xftfont.c (xftfont_open): Set charset related members to -1.
15465
15466 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15467 QCname.
15468 (ftfont_open): Set charset related members to -1.
15469
15470 * fontset.c (Votf_script_alist): New variable.
15471 (syms_of_fontset): Initialize it.
15472 (fontset_font): Delete unused variable.
15473
15474 * fontset.h (Votf_script_alist): Extern it.
15475
15476 * font.c (font_find_for_lface): Optimize code.
15477
15478 * font.h (font_close_object, font_merge_old_spec): Extern them.
15479
154802008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15483 (syms_of_font): Initialize them.
15484 (font_pixel_size): Allow float value in dpi.
15485 (font_prop_validate_type): Delete.
15486 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15487 Change caller.
15488 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15489 (font_prop_validate_extra): Delete.
15490 (font_prop_validate_spacing): New function.
15491 (font_property_table): Add elements for all known properties.
15492 (get_font_prop_index): Rename from check_font_prop_name. New
15493 argument FROM. Change caller.
15494 (font_prop_validate): Validate all known properties.
15495 (font_put_extra): Delete argument force. Change caller.
15496 (font_expand_wildcards): Make it static. Fix the way of shrinking
15497 the possible range.
15498 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15499 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15500 Change caller.
15501 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15502 (font_parse_fcname): Delete argument merge. Fix parsing of point
15503 size. Don't validate properties values here. Change caller.
15504 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15505 (font_open_by_name): Delete unused variable.
15506 (Ffont_spec): Likewise. Validate property values.
15507 (Ffont_match_p): New function.
15508
15509 * font.h (QCscalable): Extern it.
15510 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15511
15512 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15513
15514 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15515 (xfont_list_pattern): New function.
15516 (xfont_list): Use xfont_list_pattern.
15517
155182008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * font.h (Flist_fonts): EXFUN it.
15521
155222008-02-01 Jason Rumney <jasonr@gnu.org>
15523
15524 * w32term.c (w32_initialize): Add back smoothing_type and
15525 smoothing_enabled definitions.
15526
155272008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15530 s->face->font on determining underline position.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15535 (font_has_char): Accept font-object too.
15536 (font_find_for_lface): Try at first with a size specified in face.
15537
155382008-02-01 Kenichi Handa <handa@m17n.org>
15539
15540 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15541 font_open_by_name.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * font.h (QCspacing, QCdpi): Extern them.
15546 (enum font_spacing): New enum.
15547 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15548
15549 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15550 (QCspacing, QCdpi): New variables.
15551 (syms_of_font): Initialize them.
15552 (font_pixel_size): New function.
15553 (font_put_extra): New function.
15554 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15555 in FONT_EXTRA.
15556 (font_parse_fcname): Handle enumerated values (e.g. bold).
15557 Fix handling font size. Add QCname property that contains only
15558 unknown properties.
15559 (font_score): Change argument. Change caller. Pay attention to
15560 FONT_PIXEL_SIZE_QUANTUM.
15561 (font_sort_entites, font_list_entities, font_find_for_lface)
15562 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15563 (Ffont_spec): Add QCname property that contains only unknown properties.
15564
15565 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15566 include weight in listing pattern, instead check weight of each
15567 listed font. Don't include scalable in pattern. Pay attention to
15568 FONT_PIXEL_SIZE_QUANTUM.
15569
155702008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * font.c (font_parse_fcname): Fix parsing of point-size.
15573 (font_unparse_fcname): Produce symbolic names for style properties.
15574 (font_list_entities): Handle float size correctly.
15575 (font_open_by_name): Prefer `normal' property values if the name
15576 doesn't specify them.
15577
15578 * fontset.c (Finternal_char_font): Use font_get_name, not
15579 Ffont_xlfd_name.
15580
15581 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15582 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15583 pattern. Don't force scalable.
15584
15585 * xftfont.c (xftfont_open): For generating a name, start from
15586 96-byte buffer.
15587
155882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15589
15590 * frame.h (x_new_fontset2): Fix prototype.
15591
155922008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * font.h (struct font_driver): Delete member parse_name.
15595 (font_match_p, font_get_spec, font_parse_fcname)
15596 (font_unparse_fcname): Extern them.
15597 (font_get_name): Adjust prototype.
15598
15599 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15600 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15601 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15602 unnecessary checks for weight, slant, and swidth.
15603 (font_parse_fcname): New function.
15604 (font_unparse_fcname): New function.
15605 (font_parse_name): New function.
15606 (font_match_p): New function.
15607 (font_get_name): Change return value to Lisp string.
15608 (font_get_spec): New function.
15609 (Qunspecified, Qignore_defface): Don't extern them.
15610 (font_find_for_lface): Assume that LFACE is fully specified.
15611 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15612 object, use it for FACE.
15613 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15614 driver->parse_name.
15615 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15616
15617 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15618 prototype.
15619
15620 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15621 argument F. Don't call Fnew_fontset. Instead, directly call
15622 make_fontset.
15623
15624 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15625
15626 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15627 of x_new_fontset2.
15628
15629 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15630 (Qsans__serif): New variables.
15631 (ftfont_generic_family_list): New variable.
15632 (syms_of_ftfont): Initialize the above variables.
15633 (ftfont_pattern_entity): Delete argument NAME.
15634 (ftfont_list_generic_family): New function.
15635 (ftfont_parse_name): Delete this function.
15636 (ftfont_list): Try generic family only when FcFontList found no font.
15637 (ftfont_list_family): Fix args to FcObjectSetBuild.
15638
15639 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15640 object in attrs[LFACE_FONT_INDEX].
15641 (set_lface_from_font_name): Cancel all changes for font-backend.
15642 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15643 function.
15644 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15645 font object in QCfont attribute.
15646 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15647 (realize_default_face) [USE_FONT_BACKEND]: Call
15648 set_lface_from_font_and_fontset.
15649
15650 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15651 "fixed", and signal error here if no suitable font was found.
15652
15653 * xfont.c (xfont_parse_name): Delete this function.
15654
15655 * xftfont.c (xftfont_open): Change coding style of error
15656 handling. Generate fontconfig's fontname pattern.
15657
15658 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15659 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15660
15661 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15662 Both args FONTSET and FONT_OBJECT must be existing ones.
15663
156642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15665
15666 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15667
156682008-02-01 Kenichi Handa <handa@m17n.org>
15669
15670 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15671
15672 * font.h (struct font): Fix typo.
15673
15674 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15675 XLFD_XXX_INDEX.
15676 (enum xlfd_field_mask): New enum.
15677 (intern_font_field): Changed argument. Change caller. If digits
15678 are followed by non-digits, return a symbol.
15679 (font_expand_wildcards): New function.
15680 (font_parse_xlfd): Fix wildcard handling.
15681 (Ffont_spec): If :name is specified, reflect the info in the other
15682 properties.
15683
15684 * ftfont.c (ftfont_pattern_entity): Fix typo.
15685 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15686 locale.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15691
15692 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15693 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15694 registry doesn't specify encoding part.
15695 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15696 (font_open_by_name): At first try parsing the name.
15697 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15698 as Lisp symbols.
15699
15700 * fontset.c (reorder_font_vector): Pay attention to the case that
15701 the 3rd element of font_def is nil.
15702 (fontset_font): For the default fontset, append one more fontset
15703 elements for a script-based font specification. Don't add script
15704 attribute on finding a font.
15705 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15706 font name.
15707 (fontset_ascii_font): If a font can't be opened, return nil.
15708
15709 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15710 (ftfont_pattern_entity): New function.
15711 (ftfont_get_cache): Assume that freetype_font_cache is already
15712 initialized.
15713 (ftfont_list): Handle the case that a file is specified in font
15714 name. Use ftfont_pattern_entity to generate entities.
15715 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15716 (syms_of_ftfont): Initialize freetype_font_cache.
15717
15718 * xftfont.c (xftfont_open): Make the font name fontconfig's
15719 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15720 (xftfont_close): Free font->font.name if not NULL.
15721
15722 * xfont.c (xfont_list): If script is specified for a font, return
15723 null_vector.
15724 (xfont_list_family): Declare argument type.
15725
15726 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15727 name, set LFACE_FONT (lface) to nil.
15728
15729 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15730 return Qnil.
15731
157322008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15735 (standard_args): Add "-enable-font-backend".
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15740 (struct xftdraw_list, xftdraw_list): Delete them.
15741 (register_xftdraw, check_xftdraw): Delete them.
15742 (xftfont_prepare_face): Don't call register_xftdraw.
15743 (xftfont_done_face): Don't call check_xftdraw.
15744 (xftfont_draw): Get background color only when with_background is
15745 nonzero.
15746
15747 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 These changes are for the new font handling codes.
15752
15753 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15754 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15755 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15756 (FONTSRC, FONTOBJ): New variables.
15757 (obj): Add $(FONTOBJ).
15758 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15759 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15760 @LIBOTF_LIBS@.
15761 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15762 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15763
15764 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15765
15766 * character.h (Vscript_representative_chars): Extern it.
15767
15768 * character.c (Vscript_representative_chars): New variable.
15769 (syms_of_character): Declare it as a Lisp variable.
15770
15771 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15772 enable_font_backend is nonzero, accept the composition method
15773 COMPOSITION_WITH_GLYPH_STRING.
15774
15775 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15776 enumeration COMPOSITION_WITH_GLYPH_STRING.
15777
15778 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15779 members clip_x, clip_y, clip_width, and clip_height.
15780 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15781
15782 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15783 --enable-font-backend. Call syms_of_font.
15784
15785 * fns.c (assoc_no_quit): New function.
15786
15787 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15788 (face_for_font, new_fontset_from_font)
15789 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15790
15791 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15792 (fontset_font, fontset_ascii, face_for_char)
15793 (make_fontset_for_ascii_face, Ffont_info)
15794 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15795 is nonzero, use font-backend mechanism.
15796 (find_font_encoding): Make it non-static.
15797 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15798 New functions.
15799
15800 * frame.h (struct frame): New members resx and resy.
15801 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15802 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15803
15804 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15805 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15806
15807 * lisp.h (assoc_no_quit): Extern it.
15808
15809 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15810 Through out the file, use FONT_INFO_FROM_FACE instead of
15811 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15812 rif->per_char_metric.
15813 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15814 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15815 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15816 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15817 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15818 nonzero, use font-backend mechanism.
15819 (get_per_char_metric): New function.
15820
15821 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15822 (set_lface_from_font_name)
15823 (set_font_frame_param, free_realized_face)
15824 (prepare_face_for_display, clear_face_gcs)
15825 (Finternal_set_font_selection_order, realize_x_face)
15826 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15827 font-backend mechanism.
15828 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15829 (load_face_font) [USE_FONT_BACKEND]: Abort.
15830 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15831 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15832
15833 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15834 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15835 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15836 nonzero, register all available font drivers. Call
15837 x_default_font_parameter for deciding a font.
15838 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15839
15840 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15841 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15842 (x_set_glyph_string_clipping_exactly)
15843 (x_compute_glyph_string_overhangs)
15844 (x_draw_glyph_string_foreground)
15845 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15846 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15847 enable_font_backend is nonzero, use font-backend mechanism.
15848 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15853 system_eol_type.
15854 (syms_of_coding): Initialize system_eol_type.
15855
15856 * process.c (Fset_process_coding_system): Inherit system's eol
15857 format if necessary.
15858
158592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15860
15861 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * coding.c (decode_eol): Pay attention to buffer relocation in
15866 del_range_2.
15867 (decode_coding): Call decode_eol before restoring undo_list.
15868
158692008-02-01 Kenichi Handa <handa@m17n.org>
15870
15871 * charset.c (Fdefine_charset_internal): Fix setting of
15872 emacs_mule_bytes.
15873
158742008-02-01 Kenichi Handa <handa@m17n.org>
15875
15876 * keyboard.c (read_char): Check if C is a character or not before
15877 looking up Vkeyboard_translate_table.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15882 condition to terminate the loop.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * coding.c (produce_composition): Compare charbuf[i] instead of
15887 args[i] against 0.
15888 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15889
158902008-02-01 Kenichi Handa <handa@m17n.org>
15891
15892 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15893 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15894 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15895 detect_coding.
15896 (emacs_mule_char): Handle old style (Emacs 20) component character
15897 of a composition.
15898 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15899 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15900 composition rule.
15901 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15902
159032008-02-01 Kenichi Handa <handa@m17n.org>
15904
15905 * coding.c (encode_coding_ccl): Allocate destination dynamically
15906 when necessary.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15911 the loop. When quitted, show a proper error message.
15912
159132008-02-01 Kenichi Handa <handa@m17n.org>
15914
15915 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15916 src->clip_head and src->clip_tail temporarily instead of src->hl.
15917
15918 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15919 character sequence.
15920 (Fccl_execute_on_string): Use ASET, not XSET.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15925
159262008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * coding.c (decode_coding): Fix the condition of terminating the
15929 decoding loop.
15930
159312008-02-01 Kenichi Handa <handa@m17n.org>
15932
15933 * data.c (Faset): On setting a character bigger than 255 in a
15934 unibyte string, signal an error instead of make the string multibyte.
15935
159362008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15939 made by a mapping table.
15940
159412008-02-01 Kenichi Handa <handa@m17n.org>
15942
15943 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15944 not.
15945 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15946 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15947
15948 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15949 s->face is NULL or not.
15950
159512008-02-01 Kenichi Handa <handa@m17n.org>
15952
15953 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15954 (x_draw_glyph_string): Fix drawing of right_overhang and
15955 left_overhang around/on cursor.
15956
15957 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15958
159592008-02-01 Kenichi Handa <handa@m17n.org>
15960
15961 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * coding.c (Fdefine_coding_system_internal)
15966 (Fdefine_coding_system_alias): Avoid a duplicated element in
15967 Vcoding_system_alist.
15968
159692008-02-01 Kenichi Handa <handa@m17n.org>
15970
15971 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15972
15973 * coding.c (Qcoding_system_define_form): New variable.
15974 (syms_of_coding): Intern and staticpro it.
15975 (Fcoding_system_p): Check Qcoding_system_define_form.
15976 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15977
15978 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15979 Fcoding_system_p.
15980 (CHECK_CODING_SYSTEM): If ID is not available, call
15981 Fcheck_coding_system.
15982 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15983 Try also Fcheck_coding_system.
15984
159852008-02-01 Kenichi Handa <handa@m17n.org>
15986
15987 * coding.c (code_conversion_restore): GCPRO arg.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * character.c (lisp_string_width): Check multibyteness of STRING.
15992
159932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15994
15995 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15996 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15997 (decode_mac_font_name): Use decode_coding_c_string instead of
15998 decode_coding.
15999 (x_load_font): Initialize fontp->fontset to -1. Set
16000 fontp->encoding_type.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * search.c (search_buffer): Give up BM search on case-fold-search
16005 if one of a target character has a case-equivalence of different
16006 byte length even if that target charcter is an ASCII.
16007 (simple_search): Fix calculation of byte length of matched text.
16008 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16009
160102008-02-01 Kenichi Handa <handa@m17n.org>
16011
16012 * coding.c (decode_coding): Fix handling of invalid bytes.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16017 Unicode characters.
16018
160192008-02-01 Kenichi Handa <handa@m17n.org>
16020
16021 * coding.c (encode_coding_object): If a pre-write-conversion
16022 function makes a new buffer, kill it.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * coding.c (QCascii_compatible_p): New variable.
16027 (syms_of_coding): Initialize it.
16028 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16029 calling string_char.
16030 (record_conversion_result): Add `default:' case.
16031 (coding_charset_list): Delete unused variable `coding_type'.
16032 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16033 property in the plist of the coding system.
16034 (Fcoding_system_put): Check QCascii_compatible_p.
16035
160362008-02-01 Miles Bader <miles@gnu.org>
16037
16038 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16039 removed calculation of frame `f', as it's now used.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16044 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16045 (UNIDATA): New variable.
16046 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16047 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16048 $(RUN_TEMACS) unconditionally.
16049
160502008-02-01 Kenichi Handa <handa@m17n.org>
16051
16052 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16053 (admindir): New variable.
16054 ($(lispsource)international/charprop.el): New target.
16055
160562008-02-01 Miles Bader <miles@gnu.org>
16057
16058 * character.c (chars-in-region): Remove obsolete function.
16059 (syms_of_character): Remove its initialization.
16060
160612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16062
16063 * w32select.c (validate_coding_system)
16064 (setup_windows_coding_system): New functions.
16065 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16066 setup_windows_coding_system.
16067 (setup_config, Fw32_get_clipboard_data): Use
16068 validate_coding_system.
16069 (Fx_selection_exists): Move call to setup_config to a place
16070 where signals are allowed.
16071
16072 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16073 (Fcheck_coding_system): Add declarations.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16078
160792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16080
16081 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16082 string as the second argument for x_new_fontset.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16087 (encode_coding_object): Use safe_call instead of call2.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16092
16093 * Makefile.in (lisp): Include charprop.el.
16094
160952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16096
16097 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16098 Not sure if it's unnecessary.
16099
161002008-02-01 Steven Tamm <steventamm@mac.com>
16101
16102 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16103 some possibly unnecessary fontset checking code that crashed
16104 when creating a new frame.
16105
161062008-02-01 Kenichi Handa <handa@m17n.org>
16107
16108 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16109 lookup_face.
16110
16111 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16112
16113 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16118 (coding_charset_list): New function.
16119
16120 * coding.h (coding_charset_list): Extern it.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16125 concatenation of family and registry.
16126
161272008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * character.h (BYTE8_STRING): Fix typo.
16130
16131 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16132 string to multibyte (sync to HEAD).
16133
16134 * casefiddle.c (casify_region): Handle changes in byte-length
16135 using replace_range_2 (sync to HEAD).
16136
161372008-02-01 Andreas Schwab <schwab@suse.de>
16138
16139 * chartab.c (map_char_table): GCPRO table and arg.
16140
161412008-02-01 Kenichi Handa <handa@m17n.org>
16142
16143 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16144 already at limit.
16145
161462008-02-01 Kenichi Handa <handa@m17n.org>
16147
16148 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16149 instead of fast_c_string_match_ignore_case.
16150 (find_font_encoding): Change argument to Lisp_Object. Use
16151 fast_string_match_ignore_case instead of
16152 fast_c_string_match_ignore_case. Change caller.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * xdisp.c (get_next_display_element): In unibyte case, decide to
16157 display in octal form by checking a character by
16158 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16159
16160 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16161
16162 * character.c (unibyte_has_multibyte_table): New variable.
16163
16164 * character.h (unibyte_has_multibyte_table): Extern it.
16165 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16166
161672008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * coding.c (encode_coding_iso_2022): Fix handling of charset
16170 annotation.
16171
161722008-02-01 Kenichi Handa <handa@m17n.org>
16173
16174 * coding.c (setup_coding_system): If coding_system is nil, use
16175 Qundecided.
16176 (Fterminal_coding_system): Return nil if terminal coding system is
16177 `undecided'.
16178 (syms_of_coding): Define coding-system `undecided' here. Setup
16179 terminal_coding as `undecided'.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * xdisp.c (message_dolog, set_message_1): Call
16184 unibyte_char_to_multibyte with arg type int.
16185
16186 * lread.c (read1): Fix reading of a char-table.
16187
16188 * print.c (print_object): Include sub char-table in circularities
16189 detection.
16190
161912008-02-01 Kenichi Handa <handa@m17n.org>
16192
16193 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16194 Append the found sequences in car of ARGS instead of prepending.
16195
161962008-02-01 Kenichi Handa <handa@m17n.org>
16197
16198 * fileio.c (report_file_error): Make a unibyte string from
16199 strerror (errorno).
16200 (Fsubstitute_in_file_name): Fix the arg to
16201 unibyte_char_to_multibyte. It is evaluated twice.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16206
162072008-02-01 Kenichi Handa <handa@m17n.org>
16208
16209 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16210 BOM is not found.
16211 (detect_coding, detect_coding_system): Optimization for ISO-2022
16212 when no 8-bit data is found.
16213
162142008-02-01 Jason Rumney <jasonr@gnu.org>
16215
16216 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16217
162182008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16221 CHARS.
16222
162232008-02-01 Steven Tamm <steventamm@mac.com>
16224
16225 * macterm.c (mac_encode_char): Add charset argument and update
16226 to use encoding_type.
16227 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16228 switch to pure fontset.
16229 (decode_mac_font_name): Temporarily remove decoding.
16230 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16231 (x_load_font): Temporarily remove encoding.
16232
162332008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * xfaces.c (Fface_font): If frame is not on a window system,
16236 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16237 refer to face->font.
16238 (split_font_name_into_vector, build_font_name_from_vector)
16239 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16240 when HAVE_WINDOW_SYSTEM is defined.
16241
162422008-02-01 Kenichi Handa <handa@m17n.org>
16243
16244 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16245 (x_produce_glyphs): Fix setting of members of cmp in case
16246 cmp->glyph_len is zero.
16247
16248 * fontset.c (Fset_fontset_font): Fix docstring.
16249 (Ffontset_info): Make it backward compatible. New arg ALL.
16250
162512008-02-01 Kim F. Storm <storm@cua.dk>
16252
16253 * process.c (read_process_output): Grow decoding_buf when needed;
16254 this could cause a crash in allocate_string and compact_small_strings.
16255
162562008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16259
162602008-02-01 Kenichi Handa <handa@m17n.org>
16261
16262 * coding.c (setup_coding_system): Set coding->common_flags
16263 correctly for raw-text.
16264 (consume_chars): On encoding unibyte text by raw-text, don't check
16265 multibyte form.
16266 (encode_coding): On encoding by raw-text, never use translation tables.
16267
16268 * fileio.c (e_write): Short cut for the case of no encoding.
16269
162702008-02-01 Kenichi Handa <handa@m17n.org>
16271
16272 * coding.c (detect_coding, detect_coding_system): Delete unused
16273 variables.
16274
162752008-02-01 Kenichi Handa <handa@m17n.org>
16276
16277 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16278 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16279
162802008-02-01 Kenichi Handa <handa@m17n.org>
16281
16282 * coding.c (Ffind_coding_systems_region_internal): Include
16283 raw-text and no-conversion in the result.
16284
162852008-02-01 Kenichi Handa <handa@m17n.org>
16286
16287 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16288 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16289 FONT_DEF.
16290 (font_def_arg, add_arg, from_arg, to_arg): New args.
16291 (set_fontset_font): Change argument.
16292 (Fset_fontset_font): Fix for the case that TARGET is a script
16293 name and charset name.
16294 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16295
162962008-02-01 Kenichi Handa <handa@m17n.org>
16297
16298 * fontset.c (fontset_font): Rename from fontset_face. Change return
16299 value.
16300 (face_suitable_for_char_p, face_for_char): Adjust for the change
16301 of fontset_font.
16302 (make_fontset_for_ascii_face): Fix setting of the fontset element
16303 for ASCII.
16304 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16305 to get a font name.
16306 (Ffontset_info): Adjust for the change of fontset_font.
16307
16308 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16309
16310 * character.h (LEADING_CODE_LATIN_1_MIN)
16311 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16312
163132008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * editfns.c (check_translation): New function.
16316 (Ftranslate_region_internal): Handle M:N mapping.
16317
163182008-02-01 Kenichi Handa <handa@m17n.org>
16319
16320 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16321
163222008-02-01 Kenichi Handa <handa@m17n.org>
16323
16324 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16325 goto invalid_code.
16326 (decode_coding_iso_2022): Fix handling of invalid designation.
16327
16328 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16329 after calling code_conversion_save.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16334
16335 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16336
16337 * fontset.c: Include "intervals.h".
16338 (fontset_face): Fix comparing of Lisp_Objects.
16339 (free_face_fontset, new_fontset_from_font_name): Fix
16340 Lisp_Object/int mixup.
16341
16342 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16343
16344 * coding.c: Add many prototypes for static functions.
16345 (get_translation_table): Allow max_lookup to be NULL.
16346 (decode_coding, Ffind_coding_systems_region_internal)
16347 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16348 get_translation_table with max_lookup NULL.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * coding.c (get_translation_table): Declare it as Lisp_Object.
16353 (LOOKUP_TRANSLATION_TABLE): New macro.
16354 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16355 instead of CHAR_TABLE_REF.
16356
163572008-02-01 Kenichi Handa <handa@m17n.org>
16358
16359 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16360 annotation data format.
16361 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16362 Change arguments FROM and TO to single argument NCHARS. Change caller.
16363 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16364 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16365 (decode_coding_ccl, decode_coding_charset): Pay attention to
16366 coding->charbuf_used.
16367 (get_translation): New function.
16368 (produce_chars): New arguments translation_table and last_block.
16369 Translate characters here. Return number of carryover chars.
16370 Change caller.
16371 (produce_composition): New argument pos. Change caller.
16372 Adjust for the change of annotation data format.
16373 (produce_charset, produce_annotation): Likewise.
16374 (decode_coding, encode_coding): Don't call translate_chars.
16375 (consume_chars): New arg translation_table. Change caller.
16376 (translate_chars): Delete.
16377 (syms_of_coding): Make translation-table's number of extra slots 2.
16378
163792008-02-01 Kenichi Handa <handa@m17n.org>
16380
16381 * search.c (simple_search): Fix setting this_pos_byte in backward
16382 search.
16383
16384 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16385 byte sequence.
16386 (detect_coding_ccl): Fix setting of the variable valids.
16387
163882008-02-01 Kenichi Handa <handa@m17n.org>
16389
16390 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16391
16392 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16393
16394 * editfns.c (Ftranslate_region_internal): Rename from
16395 Ftranslate_region. Accept a char-table in TABLE.
16396 (syms_of_editfns): Defsubr Stranslate_region_internal.
16397
16398 * xfaces.c (set_lface_from_font_name): If a font is specified for
16399 a frame, generate a fontset from the font.
16400 (build_scalable_font_name): If the scalable font is requested for
16401 a specific size, don't change that size.
16402 (try_font_list): Try a scalable font also in the case that a
16403 pattern string is specified.
16404
164052008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * xfaces.c (Fface_font): New optional arg CHARACTER.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * charset.h (CHARSET_OFFSET): New macro.
16412
164132008-02-01 Kenichi Handa <handa@m17n.org>
16414
16415 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16416
16417 * fontset.c (fontset_face): Handle the case that repertory is a
16418 char-table.
16419 (find_font_encoding): Return nil for unknown encoding.
16420 (Fset_fontset_font): Ignore a font of unknown encoding.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * keymap.c (describe_vector): Handle default value of a char table.
16425
16426 * fontset.c (fontset_face): Handle fallback fonts correctly.
16427 (Ffontset_info): Return infomation about fallback fonts.
16428
164292008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * fontset.c (FONTSET_DEFAULT): New macro.
16432 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16433 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16434 the case that it is nil.
16435 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16436 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16437
16438 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16439 subset or superset.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * emacs.c (main): Call init_charset after syms_of_XXX.
16444
16445 * charset.c (Vcharset_map_directory): Delete.
16446 (Vcharset_map_path): New variable.
16447 (load_charset_map_from_file): Use Vcharset_map_path instead.
16448 (init_charset): Initialize Vcharset_map_path.
16449 (syms_of_charset): Delete declaration of "charset-map-directory",
16450 add declaration of "charset-map-path".
16451
164522008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16455 ASCII only string.
16456
16457 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16458
16459 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16460 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16461
164622008-02-01 Kenichi Handa <handa@m17n.org>
16463
16464 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16465
16466 * coding.c (QCmnemonic, QCdefalut_char)
16467 (QCdecode_translation_table, QCencode_translation_table)
16468 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16469 (get_translation_table): Return a list of translation tables if
16470 necessary.
16471 (decode_coding): Call get_translation_table with ENCODEP 0.
16472 (char_encodable_p): If translation_table is non-nil, always call
16473 translate_char.
16474 (Fdefine_coding_system_internal): Accept list of translation
16475 tables as :encode-translation-table and :decode-translation-table.
16476 (Fcoding_system_put): New function.
16477 (syms_of_coding): Declare new symbols. Defsubr
16478 Scoding_system_put.
16479 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16480 typically JISX0212.
16481
16482 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16483 when the charset is superset type.
16484
16485 * character.c (translate_char): Accept list of translation tables.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16490 (CODING_ATTR_TRANS_TBL): New macro.
16491
16492 * coding.c (get_translation_table): New function.
16493 (translate_chars): Fix the bug of skipping annotation data.
16494 (decode_coding, encode_coding): Utilize get_translation_table.
16495 (char_encodable_p, Funencodable_char_position): Translate char if
16496 necessary.
16497 (Ffind_coding_systems_region_internal)
16498 (Fcheck_coding_systems_region): Setup translation table for encode
16499 in a coding system attribute vector in advance.
16500 (Fdefine_coding_system_internal): Allow a symbol as translation
16501 table. For shift-jis type coding system, allow 4th charset.
16502
165032008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16506
16507 * xdisp.c (get_next_display_element): Pass -1 as POS to
16508 FACE_FOR_CHAR if displaying a C-string.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * composite.c (get_composition_id): Handle xoff and yoff in a
16513 composition rule.
16514
16515 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16516 (struct composition): New member lbearing and rbearing.
16517
16518 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16519 (x_get_glyph_overhangs): Handle a composition glyph.
16520 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16521
16522 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16523 composition glyph.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * print.c: Include charset.h.
16528 (Vprint_charset_text_property): New variable.
16529 (Qdefault): Extern it.
16530 (PRINT_STRING_NON_CHARSET_FOUND)
16531 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16532 (print_check_string_result): New variable.
16533 (print_check_string_charset_prop): New function.
16534 (print_prune_charset_plist): New variable.
16535 (print_prune_string_charset): New function.
16536 (print_object): Call print_prune_string_charset if
16537 Vprint_charset_text_property is not t.
16538 (print_interval): Print nothing if interval->plist is nil.
16539 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16540 variable. Init and staticpro print_prune_charset_plist.
16541
165422008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * fontset.c (new_fontset_from_font_name): Use the specified font
16545 for all characters in the new fontset.
16546
16547 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16548 OBJECT args.
16549
16550 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16551 OBJECT args for composition too.
16552
16553 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16554 OBJECT args.
16555
165562008-02-01 Kenichi Handa <handa@m17n.org>
16557
16558 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16559
16560 * fontset.c (reorder_font_vector): Adjust for the change of
16561 FONT_DEF format.
16562 (fontset_face): New arg id. Change caller.
16563 (face_for_char): New args pos and object.
16564 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16565 (fs_query_fontset): Check NAME by Fassoc too.
16566 (Fset_fontset_font): Allow non-XLFD font name.
16567 (Ffontset_info): Adjust for the change of FONT_DEF format.
16568
16569 * fontset.h (face_for_char): Adjust prototype.
16570
16571 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16572 (append_space, extend_face_to_end_of_line)
16573 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16574 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16575
16576 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16577 POS and OBJECT args.
16578
16579 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16580 POS and OBJECT args.
16581
165822008-02-01 Jason Rumney <jasonr@gnu.org>
16583
16584 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16585 of GlobalAlloc'ed memory.
16586
165872008-02-01 Kenichi Handa <handa@m17n.org>
16588
16589 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16590
16591 * charset.h (charset_table_used): Delete extern.
16592
16593 * charset.c (charset_table_used): Make it static.
16594 (map_charset_chars): Fix args to c_function with.
16595
16596 * chartab.c (map_sub_char_table_for_charset): Fix args to
16597 c_function with.
16598
16599 * coding.h (enum coding_result_code): Delete
16600 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16601
16602 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16603 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16604 (Vlast_code_conversion_error): New variables.
16605 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16606 (ONE_MORE_BYTE): Record error if any instead of signaling an
16607 error. If non-ASCII multibyte char is found, return the negative
16608 value of the code. All callers changed to check it.
16609 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16610 (record_conversion_result): New function. Change all codes setting
16611 coding->result to call this function.
16612 (detect_coding_utf_8, decode_coding_utf_8)
16613 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16614 Don't use the local variable incomplete.
16615 (emacs_mule_char): Change the second arg to `const'.
16616 (decode_coding): Fix of flushing out unprocessed data.
16617 (make_conversion_work_buffer): Fix making of a work buffer.
16618 (decode_coding_object): Return coding->dst_object.
16619
16620 * fontset.c (set_fontset_font): Fix args.
16621
16622 * lisp.h (CHARACTERBITS): Define as 22.
16623
16624 * process.c (send_process): Be sure to set coding->src_multibyte.
16625
16626 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * xdisp.c (handle_auto_composed_prop): Give limit to
16631 Fnext_single_char_property_change.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * composite.c (syms_of_composite): Don't make the composition hash
16636 table weak.
16637
16638 * fontset.c (Fset_fontset_font): Fix docstring.
16639
16640 * lisp.h (detect_coding_system): Adjust prototype.
16641
16642 * fileio.c (kill_workbuf_unwind): Delete this function.
16643 (Finsert_file_contents): Adjust the call of detect_coding_system.
16644 Get conversion_buffer by code_conversion_save. Use the macro
16645 CODING_MAY_REQUIRE_DECODING. After decoding, update
16646 coding_system.
16647
16648 * coding.h (make_conversion_work_buffer): Delete extern.
16649 (code_conversion_save): Extern it.
16650
16651 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16652 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16653 (decode_coding_utf_8): Don't do eol converion.
16654 (detect_coding_utf_16): Check coding->src_chars, not
16655 coding->src_bytes. Add heuristics for those that have no signature.
16656 (decode_coding_emacs_mule, decode_coding_iso_2022)
16657 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16658 Don't do eol converion.
16659 (adjust_coding_eol_type): Return a new coding system.
16660 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16661 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16662 each change.
16663 (decode_coding): Pay attention to undo_list. Do eol conversion for
16664 all types of coding-systems (if necessary).
16665 (Vcode_conversion_work_buf_list): Delete it.
16666 (Vcode_conversion_reused_workbuf): Rename from
16667 Vcode_conversion_reused_work_buf.
16668 (Vcode_conversion_workbuf_name): New variable.
16669 (reused_workbuf_in_use): New variable.
16670 (make_conversion_work_buffer): Delete the arg DEPTH.
16671 (code_conversion_restore): Change argument to cons.
16672 (code_conversion_save): Delete the argument BUFFER. Change callers.
16673 (detect_coding_system): New argument src_chars. Change callers.
16674 Fix for utf-16 detection.
16675 (init_coding_once): Don't use ISO_carriage_return.
16676 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16677 reused_workbuf_in_use.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * keymap.c (store_in_keymap): Pay attention to the case that idx
16682 is a cons specifying a character range.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16687 HANDLED_RECOMPUTE_PROPS.
16688
16689 * coding.c (Fdefine_coding_system_internal): Fix checking of
16690 ascii compatibility.
16691
166922008-02-01 Kenichi Handa <handa@m17n.org>
16693
16694 * charset.c (find_charsets_in_text): Delete unused locale variable.
16695 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16696
16697 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16698 Resync charset_list to Vemacs_mule_charset_list.
16699
16700 * keymap.c (store_in_keymap): Pay attention to the case that idx
16701 is a cons specifying a character range.
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * composite.c (update_compositions): Bind inhibit-read-only, etc
16706 to t before calling remove-list-of-text-properties.
16707
16708 * print.c (print_object): Always print ASCII chars as is.
16709
167102008-02-01 Kenichi Handa <handa@m17n.org>
16711
16712 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16713
16714 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16715 is a char table.
16716
167172008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * xfaces.c (set_lface_from_font_name): Fix for the case that
16724 FONTNAME is not fontset name.
16725
167262008-02-01 Kenichi Handa <handa@m17n.org>
16727
16728 * fns.c (base64_encode_1): Fix previous change.
16729
167302008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * fontset.c (set_fontset_font): New function.
16733 (Fset_fontset_font): If a font is specified for a charset, use
16734 map_charset_chars to store the font spec in a fontset.
16735
167362008-02-01 Kenichi Handa <handa@m17n.org>
16737
16738 * fontset.c (fontset_face): Create a fallback fontset on demand.
16739 (make_fontset): Don't create a fallback fontset here.
16740 (free_face_fontset): Free a fallback fontset (if any) too.
16741 (n_auto_fontsets): Delete this variable.
16742 (auto_fontset_alist): New variable.
16743 (new_fontset_from_font_name): Check auto_fontset_alist.
16744 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16745 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16746 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16747 Defsubr Sfontset_list_all.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * editfns.c (Fgoto_char): Fix docstring.
16760
167612008-02-01 Kenichi Handa <handa@m17n.org>
16762
16763 * insdel.c (insert_from_gap): Adjust intervals correctly.
16764
167652008-02-01 Jason Rumney <jasonr@gnu.org>
16766
16767 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16768 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16769 (w32_initialize): Try to load it.
16770 (x_get_font_repertory): Use it if available.
16771 (w32_encode_char): Add shortcut for unicode output.
16772
16773 * w32fns.c (w32_load_system_font): Default charset to -1.
16774 (x_to_w32_charset): Match all fonts for unicode.
16775 (w32_to_x_charset): New parameter matching. Don't return partial
16776 or wildcard charsets.
16777 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16778 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16779 (w32_to_x_font): Match charset to real charset.
16780 (enum_font_cb2): Always list unicode versions.
16781
16782 * makefile.w32-in (temacs): Increase EMHEAP.
16783
167842008-02-01 Jason Rumney <jasonr@gnu.org>
16785
16786 * w32term.c (w32_encode_char): New charset parameter.
16787 font_info.encoding becomes encoding_type.
16788 (x_get_font_repertory): New function. Warning: stub only!
16789 (x_new_font): Return quickly if font already set.
16790 (x_new_fontset): fontsetname parameter is Lisp_Object.
16791 Use new fs_query_fontset. Try new_fontset_from_font_name.
16792 Use fontset_name for return value.
16793
16794 * w32term.h: Declare x_get_font_repertory.
16795
16796 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16797 place of find_charset_in_text. Use encode_coding_object in place
16798 of encode_coding.
16799 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16800 decode_coding.
16801
16802 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16803 of x_new_fontset.
16804 (w32_load_system_font): Initialize charset as unicode.
16805 font_info.encoding becomes encoding_type.
16806 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16807 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16808 (syms_of_w32fns): Set get_font_repertory_func.
16809
16810 * w32console.c: Include character.h. Use terminal_encode_buffer
16811 from term.c.
16812 (write_glyphs): Use new version of encode_terminal_code. Use
16813 encode_coding_object in place of encode_coding.
16814
16815 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16816 encoding becomes encoding_type.
16817
16818 * term.c (terminal_encode_buffer): Make externally visible.
16819
16820 * makefile.w32-in: Add character.h dependancies.
16821 (character.o, chartab.o): New targets.
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16826 CODING_ID_EOL_TYPE.
16827
168282008-02-01 Andreas Schwab <schwab@suse.de>
16829
16830 * coding.c (produce_chars): Revert last change.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * charset.h (charset_unicode): Extern it.
16835
16836 * charset.c (string_xstring_p): Check by (C >= 0x100).
16837 (find_charsets_in_text): Change format of the arc CHARSETS. New
16838 arg MULTIBYTE.
16839 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16840 change of find_charsets_in_text.
16841 (Fsplit_char): Fix doc. Never return unknown.
16842
16843 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16844
16845 * coding.c (Fdefine_coding_system_alias): Update
16846 Vcoding_system_list.
16847
16848 * fontset.c (load_font_get_repertory): Pay attention to the case
16849 that ENCODING of a font is specified by a char-table.
16850
16851 * xterm.c (x_get_font_repertory): Handle the case that the
16852 encoding of font is other than Unicode.
16853
168542008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16857 if a character is encodable by the terminal coding system. If
16858 not, produces proper number of `?'s. Update
16859 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16860 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16865 variables.
16866 (encode_terminal_code): Change argument. Encode multiple
16867 characters at once. Store the result of encoding in
16868 terminal_encode_buffer.
16869 (write_glyphs, insert_glyphs): Adjust for the change of
16870 encode_terminal_code.
16871 (term_init): Initialize terminal_encode_buffer and
16872 terminal_encode_buf_size.
16873
16874 * coding.c (consume_chars): If coding->src_object is nil, don't
16875 check annotation.
16876
168772008-02-01 Kenichi Handa <handa@m17n.org>
16878
16879 * character.c (char_string): Use ASCII_CHAR_P instead of
16880 SINGLE_BYTE_CHAR_P.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * xdisp.c (handle_auto_composed_prop): Check if the last
16885 characters of auto-composed region is newly composed with the
16886 following characters.
16887 (handle_composition_prop): Fix checking of point being inside
16888 composition.
16889
168902008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * fns.c (concat): Don't change multibyteness of the result by
16893 concatenating an 8-bit character.
16894
16895 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16896 multibyteness of the result when newelt is an 8-bit character.
16897
168982008-02-01 Dave Love <fx@gnu.org>
16899
16900 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16901 EMACS_INT.
16902
16903 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16904
16905 * xfaces.c (face_numeric_value): Declare dim size_t.
16906 (Finternal_lisp_face_equal_p): Remove unused f.
16907
16908 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16909 (MATRIX_ROW): Remove unused vars.
16910 (draw_glyphs, x_insert_glyphs, fast_find_position)
16911 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16912 byte/char counts.
16913
16914 * regex.c (regex_compile): Remove unused var.
16915
16916 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16917
16918 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16919 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16920
16921 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16922
16923 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16924
16925 * fileio.c (Fwrite_region): Remove unused var.
16926
16927 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16928 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16929
16930 * composite.c (Fremove_list_of_text_properties): Declare.
16931
16932 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16933 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16934 (coding_inherit_eol_type): Remove unused attrs.
16935 (detect_coding): Cast arg of detect_eol.
16936
16937 * charset.c (syms_of_charset): Remove unused var p.
16938 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16939 byte/char counts.
16940
16941 * casetab.c (set_case_table): Remove unused var.
16942
16943 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16944 unused vars.
16945
169462008-02-01 Dave Love <fx@gnu.org>
16947
16948 * xterm.c (x_bitmap_mask): Declare.
16949
169502008-02-01 Dave Love <fx@gnu.org>
16951
16952 * xterm.c (x_term_init): Fix type error.
16953
16954 * lisp.h: Add Funibyte_char_to_multibyte.
16955
16956 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16957 (Fset_coding_system_priority): Doc fix.
16958
16959 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16960
16961 * indent.c (check_composition): Make start and end EMACS_INT.
16962
16963 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16964
16965 * xdisp.c (handle_composition_prop, check_point_in_composition):
16966 Make buffer positions EMACS_INT.
16967
16968 * composite.c (find_composition, run_composition_function)
16969 (update_compositions, Ffind_composition_internal): Make buffer
16970 positions EMACS_INT.
16971
16972 * composite.h (find_composition, update_compositions): Make
16973 position args EMACS_INT.
16974
16975 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16976
16977 * intervals.c (get_property_and_range):
16978 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16979
16980 * unexalpha.c: Don't include varargs.h.
16981
169822008-02-01 Dave Love <fx@gnu.org>
16983
16984 * coding.h (ENCODE_UTF_8): New.
16985
16986 * Makefile.in (gtkutil.o): Depend on coding.h.
16987
16988 * coding.c (Fset_coding_system_priority): Doc fix.
16989
169902008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16993 the case of auto saving.
16994
169952008-02-01 Andreas Schwab <schwab@suse.de>
16996
16997 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16998 `range' from GC.
16999
170002008-02-01 Kenichi Handa <handa@m17n.org>
17001
17002 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * fileio.c (choose_write_coding_system): Return a decided coding system.
17007 (Fwrite_region): Set Vlast_coding_system_used to the return value
17008 of choose_write_coding_system.
17009
170102008-02-01 Kenichi Handa <handa@m17n.org>
17011
17012 * charset.c (Fset_charset_priority): Pay attention to duplicated
17013 arguments.
17014
17015 * coding.c (QCcategory): New variable.
17016 (syms_of_coding): Defsym it. Set all elements of
17017 Vcoding_category_table and their symbol values.
17018 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17019 coding-category-XXX, and coding-category-list.
17020 (Fdefine_coding_system_internal): Add category in the plist.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * callproc.c (Fcall_process): Handle carryover correctly.
17025
17026 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17027 (raw_text_coding_system): Check NILP (coding_system).
17028 (coding_inherit_eol_type): Check NILP (coding_system) and
17029 NILP (parent).
17030 (consume_chars): Fix for the case of raw-text.
17031
17032 * process.c (read_process_output): Handle carryover correctly.
17033
170342008-02-01 Dave Love <fx@gnu.org>
17035
17036 * regex.c (re_search_2): Fix last change.
17037
170382008-02-01 Kenichi Handa <handa@m17n.org>
17039
17040 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17041 target_multibyte. Even in a unibyte case, return a converted
17042 multibyte char.
17043 (GET_CHAR_AFTER): New macro.
17044 (PATFETCH): Translate via multibyte char.
17045 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17046 (SETUP_MULTIBYTE_RANGE): New macro.
17047 (regex_compile): Setup compiled code so that its multibyteness
17048 matches that of a target. Fix the handling of "[X-YZ]" using
17049 SETUP_MULTIBYTE_RANGE.
17050 (analyse_first) <charset>: For filling fastmap for all multibyte
17051 characters, don't check by BASE_LEADING_CODE_P.
17052 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17053 the same as RE_MULTIBYTE_P (bufp) now.
17054 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17055 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17056 (TRANSLATE_VIA_MULTIBYTE): New macro.
17057 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17058 It is the same as RE_MULTIBYTE_P (bufp) now.
17059 <exactn>: Translate via multibyte.
17060 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17061 translate it.
17062 <charset, charset_not>: Fetch a character by
17063 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17064 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17065 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17066 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17067 by GET_CHAR_AFTER.
17068 (bcmp_translate): Likewise.
17069
17070 * search.c (compile_pattern): Check the member target_multibyte,
17071 not the member multibyte of buf.
17072
17073 * lread.c (read1): While reading a string, set force_singlebyte
17074 and force_multibyte correctly.
17075
17076 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17077 up of unibyte_to_multibyte_table.
17078
170792008-02-01 Kenichi Handa <handa@m17n.org>
17080
17081 * coding.c (setup_coding_system): If coding has
17082 post-read-conversion or pre-write-conversion, set
17083 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17084 respectively.
17085 (decode_coding_gap): Run post-read-conversion if any.
17086
17087 * fileio.c (Finsert_file_contents): Even if we read into a
17088 unibyte buffer, check if we must decode the result or not.
17089
170902008-02-01 Kenichi Handa <handa@m17n.org>
17091
17092 * coding.c (make_conversion_work_buffer): Change the work buffer
17093 name to the same one as that of Emacs 21.
17094
170952008-02-01 Kenichi Handa <handa@m17n.org>
17096
17097 * coding.h (make_conversion_work_buffer): Adjust prototype.
17098 (code_conversion_restore): Don't extern it.
17099
17100 * coding.c (detected_mask): Delete unused variable.
17101 (decode_coding_iso_2022): Pay attention to the byte sequence of
17102 CTEXT extended segment, and retain those bytes as is.
17103 (decode_coding_ccl): Delete unused variable `valids'.
17104 (setup_coding_system): Delete unused variable `category'.
17105 (consume_chars): Delete unused variable `category'. Make it work
17106 for non-multibyte case.
17107 (make_conversion_work_buffer): Change argument.
17108 (saved_coding): Delete unused variable.
17109 (code_conversion_restore): Don't check saved_coding->destination.
17110 (code_conversion_save): New function.
17111 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17112 instead of record_unwind_protect.
17113 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17114 (detect_coding_system): Delete unused variable `mask'.
17115 (Fdefine_coding_system_internal): Delete unused variable id.
17116
17117 * fileio.c (kill_workbuf_unwind): New function.
17118 (Finsert_file_contents): On replacing, call
17119 make_conversion_work_buffer with correct args, and call
17120 record_unwind_protect with the first arg kill_workbuf_unwind.
17121
17122 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17127 (fontset_add): Fix for the case that TO is less than TO1.
17128 (Ffontset_info): Don't use fallback fontset on checking the
17129 default fontset.
17130 (dump_fontset): New function for debugging.
17131
17132 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17133 coding_type is Qcharset.
17134
171352008-02-01 Kenichi Handa <handa@m17n.org>
17136
17137 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17138 (map_char_table): Don't inherit the value from the parent on
17139 initializing VAL. Adjust for the above change.
17140
171412008-02-01 Kenichi Handa <handa@m17n.org>
17142
17143 * coding.c (Qsignature, Qendian): Delete these variables.
17144 (syms_of_coding): Don't initialize them.
17145 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17146 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17147 detect_info->found.
17148 (decode_coding_utf_16): Don't detect BOM here.
17149 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17150 is NOT utf_16_without_bom.
17151 (setup_coding_system): For a coding system of type utf-16, check
17152 if the attribute :endian is Qbig or not (not nil or not), and set
17153 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17154 (detect_coding): If coding type is utf-16 and BOM detection is
17155 required, detect it.
17156 (Fdefine_coding_system_internal): For a coding system of type
17157 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * coding.c (coding_set_source): Fix for the case that the current
17162 buffer is different from coding->src_object.
17163 (decode_coding_object): Don't use the conversion work buffer if
17164 DST_OBJECT is a buffer.
17165
171662008-02-01 Dave Love <fx@gnu.org>
17167
17168 * lread.c (read_emacs_mule_char) [len==2]: Index
17169 emacs_mule_charset correctly.
17170
171712008-02-01 Dave Love <fx@gnu.org>
17172
17173 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17174 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17175 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17176 treated specially.)
17177 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17178 (detected_mask): Remove Big5 bits.
17179
171802008-02-01 Kenichi Handa <handa@m17n.org>
17181
17182 The following changes are to make the font rescaling facility
17183 compatible with Emacs 21.
17184
17185 * xfaces.c (Vface_font_rescale_alist): Rename from
17186 Vface_resizing_fonts.
17187 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17188 (font_rescale_ratio): Rename from font_resizing_ratio.
17189 (split_font_name): Set font->rescale_ratio.
17190 (better_font_p): Pay attention to font->rescale_ratio.
17191 (build_scalable_font_name): Likewise. Change RESX, and RESY
17192 fields.
17193 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17194
171952008-02-01 Kenichi Handa <handa@m17n.org>
17196
17197 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17198 (Qutf_16_le): Remove these variables.
17199 (syms_of_coding): Don't DEFSYM them.
17200 (decode_coding_utf_16): Fix handling of BOM.
17201 (encode_coding_utf_16): Fix handling of BOM.
17202
172032008-02-01 Kenichi Handa <handa@m17n.org>
17204
17205 * fileio.c (Finsert_file_contents): On replacing, before decoding
17206 the file into the work buffer, set point of the work buffer to the end.
17207
172082008-02-01 Dave Love <fx@gnu.org>
17209
17210 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17211
172122008-02-01 Dave Love <fx@gnu.org>
17213
17214 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17215 and fix C types.
17216
172172008-02-01 Kenichi Handa <handa@m17n.org>
17218
17219 * xdisp.c (SKIP_GLYPHS): New macro.
17220 (set_cursor_from_row): Pay attention to string display properties.
17221
17222 * category.c (copy_category_entry): Fix for the case that RANGE
17223 is an integer.
17224
17225 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17226
17227 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * charset.c (Fcharset_id_internal): New function.
17232 (syms_of_charset): Defsubr it.
17233
17234 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17235 with the last arg charset_list acquired from coding.
17236 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17237 the attribute coding_attr_ccl_valids.
17238
17239 * coding.h (enum define_coding_ccl_arg_index): Set the first
17240 member coding_arg_ccl_decoder to coding_arg_max.
17241
17242 * ccl.h (ccl_driver): Adjust prototype.
17243
17244 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17245 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17246 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17247 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17248 last arg Qnil.
17249
172502008-02-01 Kenichi Handa <handa@m17n.org>
17251
17252 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17253 call encode_char.
17254
17255 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17256
172572008-02-01 Dave Love <fx@gnu.org>
17258
17259 * composite.c (syms_of_composite): Make composition_hash_table weak.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17264 (font_name_registry): Don't extern them.
17265 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17266
17267 * fontset.h (Qfontset): Don't extern it.
17268 (new_fontset_from_font_name): Extern it.
17269
17270 * fontset.c: Give 8 extra slots to fontset objects.
17271 (Qfontset_info): New variable.
17272 (syms_of_fontset): Defsym it.
17273 (FONTSET_FALLBACK): New macro.
17274 (fontset_face): Try also the default fontset.
17275 (make_fontset): Realize a fallback fontset from the default fontset.
17276 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17277 using split_font_name_into_vector and build_font_name_from_vector.
17278 (Fset_fontset_font): Access the elements of font_spec by enum
17279 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17280 name by using split_font_name_into_vector.
17281 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17282 generate a proper font name from the fontset name. Update
17283 Vfontset_alias_alist.
17284 (n_auto_fontsets): New variable.
17285 (new_fontset_from_font_name): New function.
17286 (Ffont_info): Store the information about fonts generated from the
17287 default fontset in the first extra slot of the returned char-table.
17288
17289 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17290 (font_name_registry): Delete function.
17291 (split_font_name_into_vector): New function.
17292 (build_font_name_from_vector): New function.
17293 (font_list): The argument REGISTRY is now a list of registry names.
17294 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17295 specifies an explicit font name, return the name as is. Make a
17296 list of registy names.
17297
17298 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17299 of x_new_fontset.
17300 (Fx_create_frame): Don't call x_new_fontset here. Just use
17301 x_list_fonts to check the existence of fonts.
17302
17303 * xterm.h (x_new_fontset): Adjust prototype.
17304
17305 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17306 string. Use new_fontset_from_font_name to create a fontset from a
17307 font name.
17308
173092008-02-01 Kenichi Handa <handa@m17n.org>
17310
17311 * syntax.c (Vfind_word_boundary_function_table): New name for
17312 Vnext_word_boundary_function_table.
17313 (find-word-boundary-function-table): New name for
17314 next-word-boundary-function-table.
17315
173162008-02-01 Dave Love <fx@gnu.org>
17317
17318 * Makefile.in: Fix some dependencies.
17319
17320 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17321 set it to nil before returning.
17322
17323 * composite.c (update_compositions): Fix type error.
17324
17325 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17326
173272008-02-01 Kenichi Handa <handa@m17n.org>
17328
17329 * xterm.c (x_new_font): Optimize for the case that the font is
17330 already set for the frame.
17331
173322008-02-01 Kenichi Handa <handa@m17n.org>
17333
17334 * chartab.c (char_table_ascii): Check if the char table contents
17335 is sub-char-table or not.
17336 (char_table_set, char_table_set_range): Fix argument to
17337 char_table_ascii.
17338
17339 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17340 (detect_coding_utf_8, detect_coding_utf_16)
17341 (detect_coding_emacs_mule, detect_coding_iso_2022)
17342 (detect_coding_sjis, detect_coding_big5)
17343 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17344 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17345 sequence is valid in this coding system. Change callers.
17346 (MAX_ANNOTATION_LENGTH): New macro.
17347 (ADD_ANNOTATION_DATA): New macro.
17348 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17349 ADD_ANNOTATION_DATA. Change the format of annotation data.
17350 (ADD_CHARSET_DATA): New macro.
17351 (emacs_mule_char): New argument ID. Change callers.
17352 (decode_coding_emacs_mule, decode_coding_iso_2022)
17353 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17354 Produce charset annotation data in coding->charbuf.
17355 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17356 to charset annotation data in coding->charbuf.
17357 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17358 coding->common_flags if the coding system is iso-2022 based and
17359 uses designation.
17360 (produce_composition): Adjust for the new annotation data format.
17361 (produce_charset): New function.
17362 (produce_annotation): Handle charset annotation.
17363 (handle_composition_annotation, handle_charset_annotation): New
17364 functions.
17365 (consume_chars): Handle charset annotation. Utilize the above two
17366 functions.
17367 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17368 buffer, get the deleted text as a string and set
17369 coding->src_object to that string.
17370 (detect_coding, detect_coding_system): Use the new struct
17371 coding_detection_info.
17372
17373 * coding.h (struct coding_detection_info): New structure.
17374 (struct coding_system): Adjust prototype of the member `detector'.
17375 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17376
173772008-02-01 Kenichi Handa <handa@m17n.org>
17378
17379 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17380
173812008-02-01 Dave Love <fx@gnu.org>
17382
17383 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17384 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17385 to new local and nullify apropos_accumulate before returning.
17386 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17391 correctly.
e3eea1fc 17392
aac0c6e3
MR
173932008-02-01 Dave Love <fx@gnu.org>
17394
17395 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17396
173972008-02-01 Kenichi Handa <handa@m17n.org>
17398
17399 The following changes are to make character composition happen
17400 automatically on displaying.
17401
17402 * Makefile.in (lisp, shortlisp): Add composite.elc.
17403
17404 * composite.h (Qauto_composed, Vauto_composition_function)
17405 (Qauto_composition_function): Extern them.
17406
17407 * composite.c (Vcomposition_function_table)
17408 (Qcomposition_function_table): Delete variables.
17409 (Qauto_composed, Vauto_composition_function)
17410 (Qauto_composition_function): New variables.
17411 (run_composition_function): Don't call
17412 compose-chars-after-function.
17413 (update_compositions): Clear `auto-composed' text property.
17414 (compose_chars_in_text): Delete this function.
17415 (syms_of_composite): Staticpro Qauto_composed and
17416 Qauto_composition_function. Declare Vauto_composition_function as
17417 a Lisp variable.
17418
17419 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17420
17421 * xdisp.c (it_props): Add an entry for Qauto_composed.
17422 (handle_auto_composed_prop): New function.
17423
17424 * xselect.c (selection_data_to_lisp_data): Don't call
17425 compose_chars_in_text.
17426
174272008-02-01 Dave Love <fx@gnu.org>
17428
17429 * keyboard.c (read_char): Modify checking around use of
17430 Vkeyboard_translate_table.
17431
17432 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17433 and fix C types.
17434
174352008-02-01 Kenichi Handa <handa@m17n.org>
17436
17437 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17438 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17439 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17440 the case that the last byte is '\r' correctly.
17441 (decode_coding): Flush out the unprocessed data correctly.
17442 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17443
174442008-02-01 Dave Love <fx@gnu.org>
17445
17446 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17447 Add XK_ISO... case.
17448 (xaw_scroll_callback): Revert last change.
17449
174502008-02-01 Kenichi Handa <handa@m17n.org>
17451
17452 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17453
174542008-02-01 Kenichi Handa <handa@m17n.org>
17455
17456 * xfaces.c (Vface_resizing_fonts): New variable.
17457 (struct font_name): New member `resizing_ratio'.
17458 (font_resizing_ratio): New function.
17459 (split_font_name): Set font->resizing_ratio.
17460 (better_font_p): Pay attention to font->resizing_ratio.
17461 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17462 RESX, and RESY fields.
17463 (try_alternative_families): Try scalable fonts if
17464 Vscalable_fonts_allowed is not Qt.
17465 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17466
174672008-02-01 Dave Love <fx@gnu.org>
17468
17469 * xterm.c (xaw_scroll_callback): Cast correctly.
17470
174712008-02-01 Dave Love <fx@gnu.org>
17472
17473 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17474 (lispy_kana_keys): Comment out.
17475 (make_lispy_event) [XK_kana_A]: Comment out.
17476
17477 * xterm.c (xaw_scroll_callback): Cast call_data.
17478 (XTread_socket): Deal with ASCII keysyms.
17479 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17480
174812008-02-01 Dave Love <fx@gnu.org>
17482
17483 * xterm.c (Vx_keysym_table): New.
17484 (syms_of_xterm): Initialize it.
17485 (XTread_socket): Use it.
17486 From head: Eliminate incorrect optimization that tried to avoid
17487 decoding the output of X*LookupString.
17488 (x_get_font_repertory): Delete charset declaration.
17489
174902008-02-01 Kenichi Handa <handa@m17n.org>
17491
17492 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17493 return 0.
17494 (Fdefine_coding_system_internal): Setup
17495 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17496
174972008-02-01 Dave Love <fx@gnu.org>
17498
17499 * coding.c (Fcheck_coding_system): Doc fix.
17500
17501 * editfns.c (Finsert_byte): Return a proper value.
17502
175032008-02-01 Kenichi Handa <handa@m17n.org>
17504
17505 * coding.c (decode_coding): Fix args to translate_chars. Pay
17506 attention to Vstandard_translation_table_for_decode.
17507 (encode_coding): Fix args to translate_chars. Pay attention to
17508 Vstandard_translation_table_for_encode.
17509
17510 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17511 SINGLE_BYTE_CHAR_P.
17512
17513 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17514 not by SINGLE_BYTE_CHAR_P.
17515
17516 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17517 SINGLE_BYTE_CHAR_P.
17518
17519 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17520 SINGLE_BYTE_CHAR_P.
17521
17522 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17523 by SINGLE_BYTE_CHAR_P.
17524
17525 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17526 SINGLE_BYTE_CHAR_P.
17527
175282008-02-01 Dave Love <fx@gnu.org>
17529
17530 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17531
175322008-02-01 Dave Love <fx@gnu.org>
17533
17534 * fns.c (Flanginfo): Fix typo.
17535
17536 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17541 (detect_coding_emacs_mule, detect_coding_iso_2022)
17542 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17543 incomplete byte sequence. Don't update *mask when correctly detected.
17544 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17545 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17546 (detect_coding, detect_coding_system): Adjust for the changes above.
17547
175482008-02-01 Kenichi Handa <handa@m17n.org>
17549
17550 * character.c (char_string): Rename from
17551 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17552 (string_char): Rename from string_char.
17553
17554 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17555 if C is greater than MAX_3_BYTE_CHAR.
17556 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17557 string_char instead of string_char_with_unification.
17558
175592008-02-01 Dave Love <fx@gnu.org>
17560
17561 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17562
175632008-02-01 Kenichi Handa <handa@m17n.org>
17564
17565 * keymap.c (push_key_description): Pay attention to force_multibyte.
17566
17567 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17568
175692008-02-01 Dave Love <fx@gnu.org>
17570
17571 * charset.c (define_charset_internal): Rename `supprementary'.
17572
17573 * Makefile.in (lisp, shortlisp): Remove latin-N.
17574
175752008-02-01 Dave Love <fx@gnu.org>
17576
17577 * xfns.c (x_window, x_window): Use use_xim.
17578
17579 * xterm.c (use_xim): Initialize.
17580 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17581 (x_term_init): Maybe set use_xim.
17582
17583 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17584
175852008-02-01 Kenichi Handa <handa@m17n.org>
17586
17587 * search.c (search_buffer): Fix case-fold-search of multibyte
17588 characters.
17589 (boyer_moore): Rename the last argument to char_high_bits.
17590
175912008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * xdisp.c (display_string): Fix for the case of zero width glyph.
17594
17595 * xfns.c (x_set_font): Change the error message of the case that
17596 x_new_fontset returns Qt.
17597
17598 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17599 (Finternal_set_lisp_face_attribute): Use signal_error for the
17600 error of invalid fontset.
17601
17602 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17603 fontset, return Qt.
17604
176052008-02-01 Dave Love <fx@gnu.org>
17606
17607 * unexelf.c (unexec): Make .got handling not SGI-specific.
17608
17609 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17610
17611 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17612
17613 * keyboard.c (read_key_sequence): Fix type error.
17614
17615 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17616 type error.
17617
17618 * fontset.c (fontset_add): Return Lisp_Object.
17619
176202008-02-01 Dave Love <fx@gnu.org>
17621
17622 * charset.h (charset_ordered_list_tick): Declare extern.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 The following changes (and some of 2008-02-01 changes of mine) are
17627 for handling syntax, category, and case conversion for unibyte
17628 characters by converting them to multibyte on the fly. With these
17629 changes, we don't have to setup syntax and case tables for unibyte
17630 characters in each language environment.
17631
17632 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17633 multibyte if necessary.
17634
17635 * bytecode.c (Fbyte_code): Likewise.
17636
17637 * character.h (LEADING_CODE_LATIN_1_MIN)
17638 (LEADING_CODE_LATIN_1_MAX): New macros.
17639 (unibyte_to_multibyte_table): Extern it.
17640 (unibyte_char_to_multibyte): New macro.
17641 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17642 (CHAR_LEADING_CODE): New macro.
17643 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17644
17645 * character.c (unibyte_to_multibyte_table): New variable.
17646 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17647 (multibyte_char_to_unibyte): If C is an eight-bit character,
17648 convert it to the corresponding byte value.
17649
17650 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17651 not 1, signals an error. Update the elements of
17652 unibyte_to_multibyte_table.
17653 (init_charset_once): Initialize unibyte_to_multibyte_table.
17654 (syms_of_charset): Define the charset `iso-8859-1'.
17655
17656 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17657 as is without converting it to unibyte. In a unibyte buffer,
17658 convert C to multibyte before checking the syntax.
17659
17660 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17661
17662 * minibuf.c (Fminibuffer_complete_word): Use the macro
17663 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17664
17665 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17666
17667 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17668 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17669 that is zero, convert an eight-bit char to multibyte.
17670 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17671 non-emacs case.
17672 (PATFETCH): Convert an eight-bit char to multibyte.
17673 (HANDLE_UNIBYTE_RANGE): New macro.
17674 (regex_compile): Setup the compiled pattern for multibyte chars
17675 even if the given regex string is unibyte. Use PATFETCH_RAW
17676 instead of PATFETCH in many places. To handle `charset'
17677 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17678 only for ASCII chars.
17679 (analyse_first) <exactn>: Simplify because the compiled pattern
17680 is multibyte.
17681 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17682 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17683 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17684 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17685 multibyte always 1.
17686 (re_search_2): In emacs, set the locale variable multibyte to 1,
17687 otherwise to 0. New local variable target_multibyte. Check it
17688 to decide the multibyteness of STR1 and STR2. If
17689 target_multibyte is zero, convert unibyte chars to multibyte
17690 before translating and checking fastmap.
17691 (TARGET_CHAR_AND_LENGTH): New macro.
17692 (re_match_2_internal): In emacs, set the locale variable multibyte
17693 to 1, otherwise to 0. New local variable target_multibyte. Check
17694 it to decide the multibyteness of STR1 and STR2. Use
17695 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17696 <charset, charset_not>: If multibyte is nonzero, check fastmap
17697 only for ASCII chars. Call bcmp_translate with
17698 target_multibyte, not with multibyte.
17699 <begline>: Declare the local variable C as `unsigned'.
17700 (bcmp_translate): Change the last arg name to target_multibyte.
17701
17702 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17703 the regexp pattern and the matching target. Set cp->buf.multibyte
17704 to the multibyteness of the regexp pattern. Set
17705 cp->but.target_multibyte to the multibyteness of the matching target.
17706 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17707 FETCH_STRING_CHAR_ADVANCE.
17708 (Freplace_match): Convert unibyte chars to multibyte.
17709
17710 * syntax.c (char_quoted, back_comment, scan_words)
17711 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17712 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17713 unibyte chars to multibyte.
17714 (skip_chars): Delete the arg syntaxp, and move the code for
17715 handling syntaxes to skip_syntaxes. Change callers.
17716 Fix the case that the multibyteness of STRING and the current
17717 buffer doesn't match.
17718 (skip_syntaxes): New function.
17719 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17720 SINGLE_BYTE_CHAR_P.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * xfaces.c (QCfontset): New variable.
17725 (LFACE_FONTSET): New macro.
17726 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17727 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17728 (Finternal_set_lisp_face_attribute)
17729 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17730 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17731 check also LFACE_FONTSET_INDEX.
17732 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17733 attrs[LFACE_FONT_INDEX].
17734 (syms_of_xfaces): Intern and staticpro QCfontset.
17735
17736 * dispextern.h (enum lface_attribute_index): New member
17737 LFACE_FONTSET_INDEX.
17738
17739 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17740
177412008-02-01 Kenichi Handa <handa@m17n.org>
17742
17743 * coding.c (coding_set_destination): Fix coding->destination for
17744 the case converting a region.
17745 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17746 (encode_coding_object): Fix coding->dst_pos and
17747 coding->dst_pos_byte for the case converting a region.
17748
17749 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17750
17751 * character.h (BYTE8_STRING): New macro.
17752
17753 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17754
177552008-02-01 Kenichi Handa <handa@m17n.org>
17756
17757 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17758 characters by octal form.
17759
17760 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17761
17762 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17763 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17764 _fetch_multibyte_char_len.
17765 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17766
17767 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17768
17769 * casefiddle.c (casify_object): Simplify. Handle the case that
17770 the case conversion change the byte length.
17771 (casify_region): Likewise.
17772
17773 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17774
17775 * character.c (_fetch_multibyte_char_len): Delete this variable.
17776 (syms_of_character): Setup Vprintable_chars.
17777
17778 * editfns.c (Fchar_equal): Fix for the unibyte case.
17779 (Finsert_byte): New function.
17780 (syms_of_editfns): Defsubr it.
17781
17782 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17783 of direct code 0x3ffff.
17784
17785 * search.c (Freplace_match): Fix for the unibyte case.
17786
177872008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * lread.c (safe_to_load_p): Fix the logic.
17790
17791 * syntax.c (scan_words): Don't treat characters belonging to
17792 different scripts as constituting a word.
17793
17794 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17795
17796 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17797
17798 * emacs.c (main): In the case of --unibyte, instead of aborting on
17799 finding non-empty buffer, make it unibyte.
17800
178012008-02-01 Kenichi Handa <handa@m17n.org>
17802
17803 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17804 to create a fontset.
17805
178062008-02-01 Dave Love <fx@gnu.org>
17807
17808 * character.c (Funibyte_char_to_multibyte): Doc fix.
17809
17810 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17811
178122008-02-01 Kenichi Handa <handa@m17n.org>
17813
17814 * fontset.c (fontset_add): Make the type `int'.
17815 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17816
17817 * character.c (unibyte_char_to_multibyte)
17818 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17819 charset_unibyte, not charset_primary.
17820
17821 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17822
17823 * charset.c (charset_unibyte): Rename from charset_primary.
17824 (Funibyte_charset): Rename from Fprimary_charset.
17825 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17826 (syms_of_charset): Adjust for the above changes.
17827
17828 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17829 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17830 it->multibyte_p is zero.
17831
17832 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17833 Delete extern.
17834
178352008-02-01 Kenichi Handa <handa@m17n.org>
17836
17837 * coding.c (Fdefine_coding_system_internal): Fix category setting
17838 for a coding system of type iso-2022.
17839
178402008-02-01 Kenichi Handa <handa@m17n.org>
17841
17842 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * syntax.c (Vnext_word_boundary_function_table): New variable.
17847 (next-word-boundary-function-table): Declare it as a Lisp variable
17848 in syms_of_syntax.
17849 (scan_words): Call functions in Vnext_word_boundary_function_table
17850 if any.
17851
17852 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17853
17854 * fontset.c (fs_load_font): If fontp->charset is not negative,
17855 return fontp without setting its members.
17856
178572008-02-01 Dave Love <fx@gnu.org>
17858
17859 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17860
17861 * m/sparc.h (HAVE_ALLOCA): Delete.
17862
17863 * s/irix6-5.h: Don't include strings.h.
17864 (bcopy, bzero, bcmp): Don't undef.
17865
17866 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17867
17868 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17869 (TIOCSIGSEND): Don't test IRIX6.
17870 (bcopy, bzero, bcmp): Define conditionally.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * buffer.c (Qas, Qmake, Qto): New variables.
17875 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17876 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17877
17878 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17879 we are inserting a process output into a multibyte buffer.
17880
17881 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17882 multibyte_char_to_unibyte.
17883
17884 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17885 by the primary charset, make it eight-bit char.
17886 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17887
17888 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17889 (charset_8_bit__control, charset_8_bit_graphic)
17890 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17891 (define_charset_internal): New function.
17892 (syms_of_charset): Call define_charset_internal for pre-defined
17893 charsets.
17894
17895 * charset.h (charset_8_bit): Extern it.
17896
17897 * coding.c (make_conversion_work_buffer): Adjust for the change
17898 of Fset_buffer_multibyte.
17899 (encode_coding_raw_text): Increment p0 in the loop.
17900
17901 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17902
17903 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17904 for the change of Fset_buffer_multibyte.
17905
17906 * fns.c (Fstring_to_multibyte): New function.
17907 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17908
179092008-02-01 Dave Love <fx@gnu.org>
17910
17911 * xfns.c (x_put_x_image): Declare args.
17912
17913 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17914 (try_font_list): Declare an arg.
17915
17916 * xdisp.c (message2_nolog, set_message): Declare an arg.
17917
17918 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17919
17920 * syntax.c (scan_sexps_forward): Declare an arg.
17921
17922 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17923 Declare an arg.
17924
17925 * lisp.h (Fnew_fontset): Declare.
17926
17927 * keymap.c (push_key_description): Call CHARACTERP correctly.
17928
17929 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17930 (face_for_char): Delete unused vars.
17931 (Fset_fontset_font): Doc fix. Delete unused vars.
17932
17933 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17934
17935 * composite.c (update_compositions): Declare arg.
17936
17937 * cm.c (calccost, cmgoto): Declare args.
17938
17939 * charset.c: Remove `emacs' conditional. Doc fixes.
17940 (map_char_table_for_charset): Declare.
17941
17942 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17943
17944 * ccl.c: Remove `emacs' conditional.
17945
179462008-02-01 Kenichi Handa <handa@m17n.org>
17947
17948 The following changes are to allow specifying multiple font
17949 patterns for a character range (specified by script or charset).
17950
17951 * Makefile.in (abbrev.o): Depend on syntax.h.
17952 (xfaces.o): Depend on charset.h.
17953
17954 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17955 SINGLE_BYTE_CHAR_P.
17956
17957 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17958
17959 * character.h (Vchar_script_table): Extern it.
17960
17961 * character.c (Vscript_alist): Delete.
17962 (Vchar_script_table, Qchar_script_table): New variable.
17963 (syms_of_character): Declare Vchar_script_table as a lisp variable
17964 and initialize it.
17965
17966 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17967 have property char-table-extra-slots, make no extra slot.
17968
17969 * dispextern.h (struct face): Delete member `charset'.
17970 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17971 SINGLE_BYTE_CHAR_P.
17972 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17973 Add prototypes.
17974 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17975 (generate_ascii_font_name): Rename from generate_ascii_font.
17976
17977 * fontset.h (get_font_repertory_func): New prototype.
17978 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17979 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17980
17981 * fontset.c (Qprepend, Qappend): New variables.
17982 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17983 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17984 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17985 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17986 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17987 (load_font_get_repertory): New functions.
17988 (fontset_set): Delete.
17989 (fontset_face): New arg FACE. Return face ID, not face.
17990 Complete re-write to handle new fontset structure. Change caller.
17991 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17992 (face_for_char): Don't call lookup_face.
17993 (make_fontset_for_ascii_face): New arg FACE.
17994 (fs_load_font): New arg CHARSET_ID. Don't check
17995 Vfont_encoding_alist here.
17996 (find_font_encoding): New function.
17997 (list_fontsets): Use STRINGP, not ! NILP.
17998 (accumulate_script_ranges): New function.
17999 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18000 re-written to handle new fontset structure.
18001 (Ffontset_font): Return a copy of element.
18002 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18003 docstring of font-encoding-alist.
18004
18005 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18006 (Fset_fotset_font): Fix arguments to 5.
18007
18008 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18009
18010 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18011 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18012 (highlight_trailing_whitespace): Adjust for the change of
18013 lookup_named_face.
18014
18015 * xfaces.c: Include charset.h.
18016 (load_face_font): Delete argument C. Change caller.
18017 (generate_ascii_font_name): Rename from generate_ascii_font.
18018 (font_name_registry): New function.
18019 (cache_face): Store ascii faces before non-ascii faces in buckets.
18020 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18021 Lookup only ascii faces.
18022 (lookup_non_ascii_face): New function.
18023 (lookup_named_face): Delete argument C. Change caller.
18024 (lookup_derived_face): Delete argument C. Change caller.
18025 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18026 a string, just call font_list with it.
18027 (choose_face_font): Delete arguments FACE and C. New arg
18028 FONT_SPEC. Change caller.
18029 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18030 Change caller.
18031 (realize_non_ascii_face): New function.
18032 (realize_x_face): Call load_face_font here.
18033 (realize_tty_face): Delete argument C. Change caller.
18034 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18035 get a face ID.
18036 (dump_realized_face): Don't print charset of FACE.
18037
18038 * xfns.c (x_set_font): Always call x_new_fontset and
18039 store_frame_parameter.
18040 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18041 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18042
18043 * xterm.h (x_get_font_repertory): Extern it.
18044
18045 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18046 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18047 it->multibyte_p is zero.
18048 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18049 (x_new_fontset): If FONTSETNAME doesn't match any existing
18050 fontsets, create a new one.
18051 (x_get_font_repertory): New function.
18052
180532008-02-01 Kenichi Handa <handa@m17n.org>
18054
18055 * coding.c (Ffind_coding_systems_region_internal): Detect an
18056 ASCII only string correctly.
18057
18058 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18059 version is 0.
18060
180612008-02-01 Kenichi Handa <handa@m17n.org>
18062
18063 * lread.c: Include "coding.h".
18064 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18065 (load_each_byte, unread_char): New variables.
18066 (readchar_backlog): Delete.
18067 (readchar): Return a character unless load_each_byte is nonzero.
18068 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18069 cons. If unread_char is not -1, simply return it.
18070 (unreadchar): Handle the case that readcharfun is
18071 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18072 (read_multibyte): Delete.
18073 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18074 (read_emacs_mule_char): New functions.
18075 (Fload): Even if the file doesn't have the extension ".elc", if
18076 safe_to_load_p returns a positive version number, assume that the
18077 file contains bytecompiled code. If the version is less than 22,
18078 load the file while decoding multibyte sequences by emacs-mule.
18079 (readevalloop): Don't use readchar_backlog.
18080 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18081 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18082 (read_escape): Delete the arg BYTEREP.
18083 (read1): Set load_each_byte to 1 temporarily while handling
18084 #@NUMBER. Don't call read_multibyte.
18085 (read_vector): Call Fread with a cons. If readcharfun is
18086 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18087 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18088 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18089 and Qload_force_doc_strings.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * xdisp.c (face_before_or_after_it_pos): Call
18094 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18095
180962008-02-01 Kenichi Handa <handa@m17n.org>
18097
18098 * character.h (TRAILING_CODE_P): New macro.
18099 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18100 (string_char_with_unification): Fix prototype.
18101 (Vscript_alist): Extern it.
18102
18103 * character.c (Vscript_alist): New variable.
18104 (string_char_with_unification, str_as_unibyte)
18105 (string_escape_byte8): Add `const' to local variables.
18106 (syms_of_character): Declare script-alist as a Lisp variable.
18107
18108 * charset.h (Vcharset_ordered_list): Extern it.
18109 (charset_ordered_list_tick): Extern it.
18110 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18111 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18112 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18113 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18114 (Funify_charset): Adjust for the change of Funify_charset.
18115
18116 * charset.c (charset_ordered_list_tick): New variable.
18117 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18118 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18119 deunify intead of unify a charset.
18120 (string_xstring_p): Add `const' to local variables.
18121 (find_charsets_in_text): Add `const' to arguments and local variables.
18122 (encode_char): Adjust for the change of Funify_charset. Fix
18123 detecting of invalid code.
18124 (Fset_charset_priority): Increment charset_ordered_list_tick.
18125 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18126 and TO_CODE.
18127
18128 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18129 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18130 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18131 (decode_coding_ccl, consume_chars)
18132 (Ffind_coding_systems_region_internal)
18133 (Fcheck_coding_systems_region): Add `const' to local variables.
18134
18135 * print.c (print_object): Use octal form for printing the
18136 contents of a bool vector.
18137
181382008-02-01 Dave Love <fx@gnu.org>
18139
18140 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18141 <version == 20>: Refuse to load.
18142
181432008-02-01 Dave Love <fx@gnu.org>
18144
18145 * fns.c: Move coding.h.
18146 (Qcodeset, Qdays, Qmonths): New.
18147 (concat): Use CHARACTERP instead of INTEGERP.
18148 (Flocale_codeset): Delete.
18149 (Flanginfo): New function.
18150 (syms_of_fns): Change accordingly.
18151
18152 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18153
181542008-02-01 Dave Love <fx@gnu.org>
18155
18156 * casetab.c (init_casetab_once, init_casetab_once): Fix
18157 CHAR_TABLE_SET call.
18158
18159 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18160
18161 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18162
18163 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18164 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18165 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18166
18167 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18168
18169 * coding.c (ENCODE_DESIGNATION, decode_eol)
18170 (make_conversion_work_buffer, code_conversion_restore)
18171 (Fdefine_coding_system_internal): Convert Lisp types.
18172 (code_conversion_restore): Use EQ, not ==.
18173 (Fencode_coding_string): Fix code_convert_string call.
18174
18175 * coding.h (code_convert_region): Fix prototype.
18176
18177 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18178
18179 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18180 (Ffontset_info): Convert Lisp types.
18181
18182 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18183
18184 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18185
18186 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18187
18188 * chartab.c: Include "...h", not <...h> in some cases.
18189
18190 * callproc.c (Fcall_process): Remove unused variables.
18191
181922008-02-01 Dave Love <fx@gnu.org>
18193
18194 * coding.c (Fset_coding_system_priority): Allow null arg list.
18195
181962008-02-01 Dave Love <fx@gnu.org>
18197
18198 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18199 (Fself_insert_and_exit): Use CHARACTERP.
18200
18201 * callproc.c (Fcall_process): Remove unused vars.
18202
18203 * xterm.c (XTread_socket): Add extra dead keysyms.
18204
18205 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18206
18207 * dispextern.h: Remove prototypes for redraw_frame,
18208 redraw_garbaged_frames.
18209
18210 * cmds.c (Fself_insert_command): Use CHARACTERP.
18211
18212 * chartab.c (make_sub_char_table): Remove unused var.
18213 (Fset_char_table_default, Fmap_char_table): Doc fix.
18214
18215 * keymap.c (access_keymap): Remove generic char code.
18216 (push_key_description): Use CHARACTERP.
18217
182182008-02-01 Dave Love <fx@gnu.org>
18219
18220 * charset.c: Doc fixes.
18221 (Funify_charset): Extra checking.
18222
182232008-02-01 Dave Love <fx@gnu.org>
18224
18225 * lread.c: Remove some unused variables.
18226 (safe_to_load_p): If safe, return the magic number version byte.
18227 (Fload): Maybe use load-with-code-conversion.
18228
182292008-02-01 Kenichi Handa <handa@m17n.org>
18230
18231 * category.c (Fmodify_category_entry): Don't modify the contents
18232 of category_set for characters out of the range. Avoid
18233 unnecessary modification.
18234
18235 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18236 Vchar_unify_table. The default value of the table is now nil.
18237
18238 * character.c (syms_of_character): Setup Vchar_width_table for
18239 eight-bit-control and raw-byte chars.
18240
18241 * charset.h (enum define_charset_arg_index): Delete
18242 charset_arg_parents and add charset_arg_subset and
18243 charset_arg_superset.
18244 (enum charset_attr_index): Delete charset_parents and add
18245 charset_subset and charset_superset.
18246 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18247 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18248 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18249 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18250 (CHARSET_SUPERSET): New macros.
18251 (charset_work): Extern it.
18252 (ENCODE_CHAR): Use charset_work.
18253 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18254 (map_charset_chars): Extern it.
18255
18256 * charset.c (load_charset_map): Set the default value of encoder
18257 and deunifier char-tables to nil.
18258 (map_charset_chars): Change argument. Change callers. Use
18259 map_char_table_for_charset instead of map_char_table.
18260 (Fmap_charset_chars): New optional args from_code and to_code.
18261 (Fdefine_charset_internal): Adjust for the change of
18262 `define-charset' (:parents -> :subset or :superset).
18263 (charset_work): New variable.
18264 (encode_char, syms_of_charset): Adjust for the change of
18265 Fdefine_charset_internal.
18266 (Ffind_charset_string): Setup the vector `charsets' correctly.
18267
18268 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18269 the previous change.
18270 (char_table_ref_and_range): Adjust for the above change.
18271 (map_sub_char_table_for_charset): New function.
18272 (map_char_table_for_charset): New function.
18273
18274 * keymap.c (describe_vector): Handle a char-table directly here.
18275 (describe_char_table): Delete.
18276
18277 * lisp.h (map_charset_chars): Delete.
18278
182792008-02-01 Dave Love <fx@gnu.org>
18280
18281 * fns.c (count_combining): Comment out (unused).
18282 (Flocale_codeset): New.
18283 (syms_of_fns): Defsubr it.
18284
18285 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18286 (size_t): Remove.
18287
182882008-02-01 Dave Love <fx@gnu.org>
18289
18290 * Makefile.in (chartab.o): Depend on charset.h.
18291
182922008-02-01 Kenichi Handa <handa@m17n.org>
18293
18294 * character.c (syms_of_character): Set the default value of
18295 Vprintable_chars to Qnil.
18296
182972008-02-01 Dave Love <fx@gnu.org>
18298
18299 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18300
183012008-02-01 Kenichi Handa <handa@m17n.org>
18302
18303 * charset.c (load_charset_map): Handle the case that from < to
18304 correctly.
18305
18306 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18307 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18308 Pay attention to raw-8-bit chars.
18309
183102008-02-01 Kenichi Handa <handa@m17n.org>
18311
18312 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18313 It is not bytecompiled now.
18314
18315 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18316 (charset_jisx0208): New variables.
18317 (Fdefine_charset_internal): Setup them if appropriate.
18318 (init_charset_once): Initialize them to -1.
18319
18320 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18321 (charset_jisx0208): Extern them.
18322
18323 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18324 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18325 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18326 (setup_iso_safe_charsets): Fix arguments to Fassq.
18327 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18328 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18329 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18330 (encode_coding_iso_2022): Change the 1st arg to
18331 ENCODE_ISO_CHARACTER to a variable.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * charset.h (enum define_charset_arg_index): New enums
18336 charset_arg_min_code and charset_arg_max_code.
18337 (struct charset): New member char_index_offset.
18338
18339 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18340 Take charset->char_index_offset into account.
18341 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18342 args[charset_arg_max_code]. Setup charset.char_index_offset.
18343 (syms_of_charset): Fix args to Fdefine_charset_internal.
18344
183452008-02-01 Dave Love <fx@gnu.org>
18346
18347 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18348
183492008-02-01 Dave Love <fx@gnu.org>
18350
18351 * coding.c: Doc fixes.
18352 (Fcoding_system_aliases): Fix return value.
18353 (Qmac): Remove (duplicated) definition.
18354
183552008-02-01 Dave Love <fx@gnu.org>
18356
362654a6
JB
18357 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18358 New functions.
aac0c6e3
MR
18359
18360 * character.c (Fstring): Doc fix.
18361
18362 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18363
362654a6 18364 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18365 (font-encoding-alist): Doc fix.
18366
183672008-02-01 Dave Love <fx@gnu.org>
18368
18369 * term.c (costs_set): Declare static, non-initialized for pcc.
18370 (encode_terminal_code): Remove unused var.
18371
18372 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18373 for K&R.
18374
18375 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18376
18377 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18378 (suffixes): Move out of make_subsidiaries for K&R.
18379
18380 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18381
18382 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18383
183842008-02-01 Dave Love <fx@gnu.org>
18385
18386 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18387
18388 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18389
183902008-02-01 Yong Lu <lyongu@asia-infonet.com>
18391
18392 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18393
18394 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18395
183962008-02-01 Kenichi Handa <handa@m17n.org>
18397
18398 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18399 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18400
184012008-02-01 Kenichi Handa <handa@m17n.org>
18402
18403 * coding.c (decode_coding_charset): Adjust for the change of
18404 Fdefine_coding_system_internal.
18405 (Fdefine_coding_system_internal): For a coding system of
18406 `charset' type, store a list of charset IDs in
18407 `charset_attr_charset_valids' element of coding attributes.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18412 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18413 caller. Handle 2-byte and 3-byte charsets correctly.
18414 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18415 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18416 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18417 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18418 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18419 sequence.
18420 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18421 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18422 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18423 and alt&rule composition.
18424 (decode_coding_iso_2022): Handle composition correctly.
18425 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18426
18427 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18428 re-defining a charset. If the charset has :emacs-mule-id, setup
18429 emacs_mule_bytes.
18430 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18431
184322008-02-01 Kenichi Handa <handa@m17n.org>
18433
18434 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18435 (encode_coding_big5, encode_coding_charset): If coding requires safe
18436 encoding, produce a character specified by
18437 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18438
184392008-02-01 Dave Love <fx@gnu.org>
18440
18441 * xterm.c (XSetIMValues): Declare.
18442
18443 * process.c: Conditionally include sys/wait.h, pty.h.
18444
18445 * print.c (print_object): Fix print format for 64-bit systems.
18446
18447 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18448
18449 * buffer.c (emacs_strerror): Declare.
18450
18451 * fontset.c (Fclear_face_cache): Declare.
18452 (accumulate_font_info): Comment-out (unused).
18453 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18454 variables.
18455
18456 * character.h (string_escape_byte8): Declare.
18457
18458 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18459 unused vars.
18460 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18461 (Fmap_charset_chars): Doc fix.
18462
18463 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18464 (Fset_coding_system_priority, Fset_coding_system_priority)
18465 (Fdefine_coding_system_internal): Doc fix.
18466
184672008-02-01 Dave Love <fx@gnu.org>
18468
18469 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * character.c (string_escape_byte8): Make multibyte string with
18474 correct size.
18475
18476 * charset.c (Fmake_char): Delete unnecessary code.
18477
184782008-02-01 Kenichi Handa <handa@m17n.org>
18479
18480 * xfns.c (x_encode_text): Allocate coding.destination here, and
18481 call encode_coding_object with dst_object Qnil.
18482
18483 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18484 multibyte form correctly.
18485
18486 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18487 against Vfont_encoding_alist.
18488
18489 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18490 handling of charset list.
18491 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18492 (decode_coding_object): Move point to coding->dst_pos before
18493 calling post-read-conversion function.
18494 (encode_coding_object): Give correct arguments to
18495 pre-write-conversion. Ignore the return value of
18496 pre-write-conversion function. Pay attention to the case that
18497 pre-write-conversion changes the current buffer. If dst_object is
18498 Qt, even if coding->src_bytes is zero, allocate at least one byte
18499 to coding->destination.
18500
18501 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18502
18503 * charset.c (Fmake_char): Make it more backward compatible.
18504 (Fmap_charset_chars): Fix docstring.
18505
185062008-02-01 Dave Love <fx@gnu.org>
18507
18508 * coding.c: Doc fixes.
18509 (Fdefine_coding_system_alias): Use names, not symbols, in
18510 coding-system-alist.
18511
185122008-02-01 Kenichi Handa <handa@m17n.org>
18513
18514 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18515 of calling free_realized_face.
18516
185172008-02-01 Yong Lu <lyongu@asia-infonet.com>
18518
18519 * charset.c (read_hex): Don't treat SPC as a comment starter.
18520 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18521 (Fdecode_char): Fix typo.
18522
185232008-02-01 Kenichi Handa <handa@m17n.org>
18524
18525 * charset.h (struct charset): New member `code_space_mask'.
18526
18527 * coding.c (coding_set_source): Delete the local variable beg_byte.
18528 (encode_coding_charset, Fdefine_coding_system_internal):
18529 Delete the local variable charset.
18530 (Fdefine_coding_system_internal): Setup
18531 attrs[coding_attr_charset_valids] correctly.
18532
18533 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18534 member to check if CODE is valid or not.
18535 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18536 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18537 is within the range of charset->min_code and carset->max_code.
18538
185392008-02-01 Dave Love <fx@gnu.org>
18540
18541 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18542
18543 * dispextern.h (generate_ascii_font): Fix return type.
18544
18545 * xfaces.c (generate_ascii_font): Fix arg declaration.
18546
18547 * coding.c (coding_inherit_eol_type)
18548 (Fset_terminal_coding_system_internal)
18549 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18550
185512008-02-01 Kenichi Handa <handa@m17n.org>
18552
18553 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18554 multiple charsets correctly.
18555
185562008-02-01 Kenichi Handa <handa@m17n.org>
18557
18558 * search.c (boyer_moore): Fix handling of multibyte character
18559 translation.
18560
18561 * xdisp.c (display_mode_element): When the variable `elt' is
18562 changed, update `this' and `lisp_string'.
18563
185642008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18567
18568 * callproc.c (Fcall_process): Be sure to give the current buffer
18569 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18570
18571 * charset.c (struct charset_map_entries): New struct.
18572 (load_charset_map): Rename from parse_charset_map. New args
18573 entries and n_entries. Change caller.
18574 (load_charset_map_from_file): Rename from load_charset_map.
18575 Change caller. New arg control_flag. Call load_charset_map at
18576 the tail.
18577 (load_charset_map_from_vector): New function.
18578 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18579 (encode_char): If the charset is compact, change a character index
18580 to a code point.
18581
18582 * coding.c (coding_alloc_by_making_gap): Check the case that the
18583 source and destination are the same correctly.
18584 (decode_coding_raw_text): Set coding->consumed_char and
18585 coding->consumed to 0.
18586 (produce_chars): If coding->chars_at_source is nonzero, update
18587 coding->consumed_char and coding->consumed before calling
18588 alloc_destination.
18589 (Fdefine_coding_system_alias): Register ALIAS in
18590 Vcoding_system_alist.
18591 (syms_of_coding): Define `no-conversion' coding system at the tail.
18592
18593 * fileio.c (Finsert_file_contents): Set coding_system instead of
18594 val. If the current buffer is multibyte, always call
18595 decode_coding_gap.
18596
18597 * xfaces.c (try_font_list): Give higher priority to fontset's
18598 family than face's family.
18599
186002008-02-01 Kenichi Handa <handa@m17n.org>
18601
18602 * callproc.c (Fcall_process): Be sure to give the current buffer
18603 to decode_coding_c_string.
18604
18605 * xfaces.c (try_font_list): Give a family specified in a fontset
18606 higher priority than a family specified in a face.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18611 Fix arguments to insert_from_buffer.
18612
18613 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18614
186152008-02-01 Kenichi Handa <handa@m17n.org>
18616
18617 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18618 (decode_coding_gap): Set coding->dst_multibyte correctly.
18619
186202008-02-01 Kenichi Handa <handa@m17n.org>
18621
18622 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18623 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18624 (encode_coding_utf_16): Substitute coding->default_char for
18625 non-Unicode characters.
18626 (decode_coding): Don't call record_insert here.
18627 (setup_coding_system): Initialize `surrogate' of
18628 coding->spec.utf_16 to 0.
18629 (EMIT_ONE_BYTE): Fix for multibyte case.
18630
18631 * insdel.c (insert_from_gap): Call record_insert.
18632
186332008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * casefiddle.c (casify_region): Fix multibyte case.
18636
18637 * character.c (c_string_width): Add return type `int'.
18638 (char_string_with_unification): Delete arg ADVANCED.
18639
18640 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18641 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18642 (CHAR_STRING_ADVANCE): Make it do-while statement.
18643
18644 * chartab.c (sub_char_table_set_range): Optimize for the case
18645 DEPTH == 3. Add workaround code for a GCC optimization bug.
18646
18647 * charset.c (parse_charset_map): Remove an unused variable.
18648
18649 * coding.c: Delete unused variables.
18650
18651 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18652 earlier. If inserted is zero and the coding system doesn't
18653 require flushing, don't call decode_coding_gap.
18654
18655 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18656
186572008-02-01 Kenichi Handa <handa@m17n.org>
18658
18659 The following changes are for using Unicode as an internal
18660 character model, and use UTF-8 format for buffer/string
18661 representation.
18662
18663 * .gdbinit (xchartable): Adjust for the change of char table structure.
18664 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18665
18666 * Makefile.in (obj): Add character.o and chartab.o.
18667 (lisp, shortlisp): Remove utf-8.elc.
18668 (*.o): For many files, change dependency on charset.h to
18669 character.h, and add dependency on character.h.
18670 (character.o, chartab.o): New targets.
18671
18672 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18673 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18674 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18675 of "charset.h".
18676
18677 * dired.c, filelock.c: Include "character.h".
18678
18679 * alloc.c: Include "character.h" instead of "charset.h".
18680 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18681 (syms_of_alloc): Remove defsubr for Smake_char_table.
18682
18683 * buffer.c: Include "character.h" instead of "charset.h", don't
18684 include "coding.h".
18685 (Fset_buffer_multibyte): Adjust for UTF-8.
18686
18687 * buffer.h: EXFUN Fbuffer_live_p.
18688
18689 * callproc.c: Include "character.h" instead of "charset.h".
18690 (Fcall_process): Big change for the new code-conversion APIs.
18691
18692 * casetab.c: Include "character.h" instead of "charset.h".
18693 (set_canon, set_identity, shuffle): Adjust for the new
18694 map_char_table spec.
18695 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18696 accessing the char table structure.
18697
18698 * chartab.c: New file that implements char table.
18699
18700 * category.c: Include "character.h".
18701 (copy_category_entry): New function.
18702 (copy_category_table): Call map_char_table and copy_category_entry.
18703 (Fmake_category_table): Initialize all top-level slots.
18704 (char_category_set): New function.
18705 (modify_lower_category_set): Delete.
18706 (Fmodify_category_entry): Call char_table_ref_and_range.
18707
18708 * category.h (CATEGORY_SET): Just call char_category_set.
18709
18710 * ccl.c: Include "character.h".
18711 (Qccl, Qcclp): New variables.
18712 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18713 it's less than 256.
18714 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18715 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18716 and DST type.
18717 (ccl_driver): Change types of argument, adjust code accordingly.
18718 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18719 ccl_driver.
18720 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18721
18722 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18723 New members src_multibyte, dst_multibyte, consumed, and produced.
18724 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18725 (CODING_SPEC_CCL_PROGRAM): New macro.
18726 (ccl_driver): Update prototype.
18727 (Qccl, Qcclp, Fccl_program_p): Extern them.
18728 (CHECK_CCL_PROGRAM): New macro.
18729
18730 * character.c, character.h, chartab.c: New files.
18731
18732 * charset.c: Mostly re-written. Move character and multibyte sequence
18733 handling codes to character.c.
18734
18735 * charset.h: Mostly re-written. Move character and multibyte sequence
18736 handling codes to character.h.
18737
18738 * coding.c, coding.h: Mostly re-written.
18739
18740 * composite.c: Include "character.h" instead of "charset.h".
18741 (CHAR_WIDTH): Move to character.h.
18742 (HASH_KEY, HASH_VALUE): Delete.
18743
18744 * composite.h (enum composition_method): Change order of enumeration
18745 symbols.
18746
18747 * data.c: Include "character.h" instead of "charset.h".
18748 (Faref): Call CHAR_TABLE_REF for a char table.
18749 (Faset): Call CHAR_TABLE_SET for a char table.
18750
18751 * dispextern.h (free_realized_face, check_face_attribytes)
18752 (generate_ascii_font): Extern them.
18753 (free_realized_multibyte_face): Delete extern.
18754
18755 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18756 table structure.
18757
18758 * editfns.c: Include "character.h" instead of "charset.h".
18759 (Fchar_to_string): Always call CHAR_STRING.
18760
18761 * emacs.c (main): Call init_charset_once, init_charset,
18762 syms_of_chartab, and syms_of_character.
18763
18764 * fileio.c: Include "character.h" instead of "charset.h".
18765 (Finsert_file_contents): Big change for the new code-conversion API.
18766 (choose_write_coding_system, Fwrite_region): Likewise.
18767 (build_annotations_2): Delete.
18768 (e_write): Big change for the new code-conversion API.
18769
18770 * fns.c: Include "character.h" instead of "charset.h".
18771 (copy_sub_char_table): Move to chartab.c.
18772 (Fcopy_sequence): Call copy_char_table for a char table.
18773 (concat): Delete codes calling count_multibyte.
18774 (string_char_to_byte, string_byte_to_char): Adjust for the new
18775 multibyte form.
18776 (internal_equal): Adjust for the change of char table structure.
18777 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18778 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18779 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18780 (char_table_translate, optimize_sub_char_table)
18781 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18782 chartab.c.
18783 (char_table_ref_and_index): Delete.
18784 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18785 (Fmd5): Call preferred_coding_system instead of accessing
18786 Vcoding_category_list. Adjust for the new code-conversion API.
18787 (syms_of_fns): Move defsubr for char table related functions to
18788 chartab.c.
18789
18790 * fontset.c: Mostly re-written.
18791
18792 * fontset.h (struct font_info): Change type of the member encoding_type.
18793 (enum FONT_SPEC_INDEX): New enum.
18794 (fontset_font_pattern, fs_load_font): Update prototype.
18795 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18796
18797 * indent.c: Include "character.h" instead of "charset.h".
18798 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18799
18800 * insdel.c: Include "character.h" instead of "charset.h".
18801 (copy_text): Don't refer to Vnonascii_translation_table.
18802 (insert_from_gap): New function.
18803
18804 * keyboard.c: Include "character.h" instead of "charset.h".
18805 (command_loop_1): Never call direct_output_forward_char before
18806 a non-ASCII character.
18807 (read_char): If Vkeyboard_translate_table is a char table, always
18808 translate a character.
18809
18810 * keymap.c: Include "character.h".
18811 (store_in_keymap): Handle the case that IDX is a cons.
18812 (Fdefine_key): Handle the case that KEY is a cons and the car part
18813 is also a cons (range).
18814 (push_key_description): Adjust for the new character code.
18815 (describe_vector): Call describe_char_table for a char table.
18816 (describe_char_table): New function.
18817
18818 * keymap.h (describe_char_table): Extern it.
18819
18820 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18821 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18822 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18823 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18824 Delete.
18825 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18826 structure.
18827 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18828 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18829 (CHARTAB_SIZE_BITS_3): New macros.
18830 (chartab_size): Extern it.
18831 (struct Lisp_Char_Table): Re-design.
18832 (struct Lisp_Sub_Char_Table): New structure.
18833 (HASH_KEY, HASH_VALUE): Move from fns.c.
18834 (CHARACTERBITS): Define as 22.
18835 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18836 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18837 (GC_SUB_CHAR_TABLE_P): New macro.
18838 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18839 (code_convert_string_norecord): Deleted extern.
18840 (init_character_once, syms_of_character, init_charset)
18841 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18842
18843 * lread.c: Include "character.h".
18844 (read_multibyte): New arg NBYTES.
18845 (read_escape): Change the meaning of returned *BYTEREP.
18846 (to_multibyte): Delete.
18847 (read1): Adjust the handling of char table and string.
18848
18849 * print.c: Include "character.h" instead of "charset.h".
18850 (print_string): Convert 8-bit raw bytes to octal form by
18851 string_escape_byte8.
18852 (print_object): Adjust for the new multibyte form. Print 8-bit
18853 raw bytes always in octal form. Handle sub char table correctly.
18854
18855 * process.c: Include "character.h" instead of "charset.h".
18856 (read_process_output, send_process): Adjust for the new
18857 code-conversion API.
18858
18859 * puresize.h (BASE_PURESIZE): Increase.
18860
18861 * regex.c: Include "character.h" instead of "charset.h".
18862 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18863 (regex_compile): Accept a range whose starting and ending
18864 character have different leading bytes.
18865 (analyse_first): Adjust for the above change.
18866
18867 * search.c: Include "character.h" instead of "charset.h".
18868 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18869 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18870
18871 * syntax.c: Include "character.h" instead of "charset.h".
18872 (syntax_parent_lookup): Delete.
18873 (Fmodify_syntax_entry): Accept a cons as CHAR.
18874 (skip_chars): Adjust for the new multibyte form.
18875 (init_syntax_once): Call char_table_set_range instead of directly
18876 accessing the structure of a char table.
18877
18878 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18879 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18880 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18881 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18882
18883 * term.c: Include "buffer.h" and "character.h".
18884 (encode_terminal_code, write_glyphs): Adjust for the new
18885 code-conversion API.
18886 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18887
18888 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18889
18890 * xdisp.c: Include "character.h".
18891 (get_next_display_element): Adjust for the new multibyte form.
18892 (disp_char_vector): Adjust for the new char table structure.
18893 (decode_mode_spec_coding): Adjust for the new structure of
18894 coding system.
18895 (decode_mode_spec): Adjust for the new code-conversion API.
18896
18897 * xfaces.c: Include "character.h" instead of "charset.h".
18898 (load_face_font): Adjust for the change of choose_face_font and
18899 FS_LOAD_FONT.
18900 (generate_ascii_font): New function.
18901 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18902 (set_font_frame_param): Adjust for the change of choose_face_font.
18903 (free_realized_face): Make it public.
18904 (free_realized_faces_for_fontset): Rename from
18905 free_realized_multibyte_face. Free also faces realized for ASCII.
18906 (choose_face_font): Change arguments. Adjust for the change of
18907 fontset_font_pattern and FS_LOAD_FONT.
18908
18909 * xfns.c: Include "character.h".
18910 (x_encode_text): Adjust for the new code-conversion API.
18911
18912 * xselect.c: Don't include "charset.h".
18913 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18914
18915 * xterm.c: Include "character.h".
18916 (x_encode_char): New argument CHARSET. Change caller.
18917 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18918 Call ENCODE_CHAR instead of SPLIT_CHAR.
18919 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18920 CHAR_WIDTH instead of CHARSET_WIDTH.
18921 (XTread_socket): Adjust for the new code-conversion API.
18922 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18923 (x_load_font): Adjust for the change of struct font.
18924
189252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18926
18927 * xfaces.c (face_at_buffer_position): Remove unused vars.
18928
189292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18930
18931 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18932 Fix overflow checking.
18933
189342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18935
18936 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18937 Cancel previous change.
18938
189392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18940
18941 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18942 ccl->eight_bit_control. Fix check for buffer overflow.
18943 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18944 (ccl_driver): Initialize extra_bytes to 0.
18945
189462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18947
18948 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18949 return it ORed with ctrl_modifier.
18950
189512008-01-29 Miles Bader <miles@gnu.org>
18952
18953 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18954
189552008-01-28 Jason Rumney <jasonr@gnu.org>
18956
18957 * w32.c (stat): Don't double check for networked drive.
18958
189592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18960
18961 * window.c (run_window_configuration_change_hook): New function.
18962 Code extracted from set_window_buffer. Set the selected frame.
18963 (set_window_buffer): Use it.
18964 * window.h (run_window_configuration_change_hook): Declare.
18965 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18966
18967 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18968
189692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18970
18971 * Makefile.in: Remove references to unused macros.
18972
189732008-01-26 Eli Zaretskii <eliz@gnu.org>
18974
18975 * w32.c (g_b_init_get_sid_sub_authority)
18976 (g_b_init_get_sid_sub_authority_count): New static variables.
18977 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18978 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18979 (init_user_info): Use them to retrieve uid and gid.
18980 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18981 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18982 st_uid and st_gid of the file.
18983
189842008-01-26 Jason Rumney <jasonr@gnu.org>
18985
18986 * w32.c (logon_network_drive): New function.
18987 (stat): Use it.
18988
189892008-01-26 Chong Yidong <cyd@stupidchicken.com>
18990
18991 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18992 invisible text covered with an ellipsis.
18993
189942008-01-25 Richard Stallman <rms@gnu.org>
18995
18996 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18997 jump back to beginning. Move some other initializations after that.
18998 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18999 New variables.
19000 (syms_of_xdisp): Init them.
19001
19002 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19003
19004 * buffer.c (reset_buffer_local_variables):
19005 Implement `permanent-local-hook'.
19006 (Qpermanent_local_hook): New variable.
19007 (syms_of_buffer): Init and staticpro it.
19008
190092008-01-25 Michael Albinus <michael.albinus@gmx.de>
19010
19011 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19012
190132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19014
19015 * fns.c (Fclrhash): Return TABLE.
19016
190172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19018
19019 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19020 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19021 is set even without positional changes.
19022 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19023
19024 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19025
190262008-01-23 Jason Rumney <jasonr@gnu.org>
19027
19028 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19029
19030 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19031 the unicode range available in MULE by locale-coding-system.
19032 Improve dbcs lead byte detection. Set event timestamp and modifiers
19033 earlier.
19034
190352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19036
19037 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19038 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19039 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19040 when used on child processes.
19041
190422008-01-21 Michael Albinus <michael.albinus@gmx.de>
19043
19044 * dbusbind.c (Fdbus_method_return_internal): Rename from
19045 Fdbus_method_return.
19046 (Fdbus_unregister_object): Move to dbus.el.
19047 (Fdbus_call_method, Fdbus_method_return_internal)
19048 (Fdbus_send_signal): Improve debug messages.
19049
190502008-01-20 Martin Rudalics <rudalics@gmx.at>
19051
19052 * undo.c (undo_inhibit_record_point): New variable.
19053 (syms_of_undo): Initialize it.
19054 (record_point): Don't record point when undo_inhibit_record_point
19055 is set.
19056
190572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19058
19059 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19060
19061 * xdisp.c (Qauto_hscroll_mode): New var.
19062 (syms_of_xdisp): Initialize it.
19063 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19064 window's buffer.
19065 (hscroll_windows): Don't check automatic_hscrolling_p here.
19066
19067 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19068 vscroll if we're setting window-buffer to the value it already has.
19069
190702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19071
19072 * m/intel386.h: Remove references to XENIX.
19073
190742008-01-17 Andreas Schwab <schwab@suse.de>
19075
19076 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19077 instead of HAVE_X86_64_LIB64_DIR.
19078 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19079
190802008-01-17 Glenn Morris <rgm@gnu.org>
19081
19082 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19083 to HAVE_X86_64_LIB64_DIR.
19084
190852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19086
19087 * s/irix3-3.h:
19088 * s/irix4-0.h:
19089 * s/386-ix.h:
19090 * s/domain.h:
19091 * s/hpux9-x11r4.h:
19092 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19093
19094 * sysdep.c: Remove code containing references to symbols defined
19095 by unsupported systems.
19096
190972008-01-16 Glenn Morris <rgm@gnu.org>
19098
19099 * coding.c (select-safe-coding-system-function): Doc fix.
19100
191012008-01-15 Glenn Morris <rgm@gnu.org>
19102
19103 * config.in: Revert 2008-01-13 change: this is a generated file.
19104
191052008-01-13 Tom Tromey <tromey@redhat.com>
19106
19107 * lisp.h: Fix typo.
19108
191092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19110
19111 * m/sequent-ptx.h:
19112 * m/sequent.h:
19113 * s/ptx.h:
19114 * s/ptx4-2.h:
19115 * s/ptx4.h: Remove files for systems no longer supported.
19116
19117 * callproc.c (Fcall_process): Fix previous change.
19118
191192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19120
19121 * unexsunos4.c: Remove file, system not supported anymore.
19122
19123 * m/mips.h:
19124 * m/intel386.h:
19125 * callproc.c:
19126 * config.in:
19127 * ecrt0.c:
19128 * emacs.c:
19129 * fileio.c:
19130 * frame.c:
19131 * getpagesize.h:
19132 * keyboard.c:
19133 * lread.c:
19134 * process.c:
19135 * puresize.h:
19136 * sysdep.c:
19137 * systty.h:
19138 * syswait.h:
19139 * unexec.c:
19140 * xdisp.c:
19141 * alloc.c: Remove code containing references to symbols defined by
19142 unsupported systems.
19143
191442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19145
19146 * coding.c (detect_coding_mask): Fix previous change.
19147
191482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19149
19150 * coding.c (detect_coding_iso2022): New arg
19151 latin_extra_code_state. Allow Latin extra codes only
19152 when *latin_extra_code_state is nonzero.
19153 (detect_coding_mask): If there is a NULL byte, detect the encoding
19154 as UTF-16 or binary. If Latin extra codes exist, detect the
19155 encoding as ISO-2022 only when there's no other proper encoding is
19156 found.
19157
191582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19159
19160 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19161 #ifdef MAC_OS.
19162
191632008-01-08 Richard Stallman <rms@gnu.org>
19164
19165 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19166
191672008-01-06 Nick Roberts <nickrob@snap.net.nz>
19168
19169 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19170 menu bar in parentheses.
19171
191722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19173
19174 * m/7300.h:
19175 * m/acorn.h:
19176 * m/alliant-2800.h:
19177 * m/alliant.h:
19178 * m/alliant1.h:
19179 * m/alliant4.h:
19180 * m/altos.h:
19181 * m/amdahl.h:
19182 * m/apollo.h:
19183 * m/att3b.h:
19184 * m/aviion-intel.h:
19185 * m/aviion.h:
19186 * m/celerity.h:
19187 * m/clipper.h:
19188 * m/cnvrgnt.h:
19189 * m/convex.h:
19190 * m/cydra5.h:
19191 * m/delta88k.h:
19192 * m/dpx2.h:
19193 * m/dual.h:
19194 * m/elxsi.h:
19195 * m/f301.h:
19196 * m/gould-np1.h:
19197 * m/gould.h:
19198 * m/i860.h:
19199 * m/ibmps2-aix.h:
19200 * m/ibmrt-aix.h:
19201 * m/ibmrt.h:
19202 * m/irist.h:
19203 * m/is386.h:
19204 * m/isi-ov.h:
19205 * m/mega68.h:
19206 * m/mg1.h:
19207 * m/news-r6.h:
19208 * m/news-risc.h:
19209 * m/news.h:
19210 * m/nh3000.h:
19211 * m/nh4000.h:
19212 * m/ns16000.h:
19213 * m/ns32000.h:
19214 * m/nu.h:
19215 * m/orion.h:
19216 * m/orion105.h:
19217 * m/paragon.h:
19218 * m/pfa50.h:
19219 * m/plexus.h:
19220 * m/pyramid.h:
19221 * m/pyrmips.h:
19222 * m/sh3el.h:
19223 * m/sps7.h:
19224 * m/sr2k.h:
19225 * m/stride.h:
19226 * m/sun1.h:
19227 * m/sun2.h:
19228 * m/sun3-68881.h:
19229 * m/sun3-fpa.h:
19230 * m/sun3-soft.h:
19231 * m/sun3.h:
19232 * m/sun386.h:
19233 * m/symmetry.h:
19234 * m/tad68k.h:
19235 * m/tahoe.h:
19236 * m/targon31.h:
19237 * m/tek4300.h:
19238 * m/tekxd88.h:
19239 * m/tower32.h:
19240 * m/tower32v3.h:
19241 * m/ustation.h:
19242 * m/wicat.h:
19243 * m/xps100.h:
19244 * s/cxux.h:
19245 * s/cxux7.h:
19246 * s/dgux.h:
19247 * s/dgux4.h:
19248 * s/dgux5-4-3.h:
19249 * s/dgux5-4r2.h:
19250 * s/esix.h:
19251 * s/esix5r4.h:
19252 * s/hiuxmpp.h:
19253 * s/hiuxwe2.h:
19254 * s/iris3-5.h:
19255 * s/iris3-6.h:
19256 * s/isc2-2.h:
19257 * s/isc3-0.h:
19258 * s/isc4-0.h:
19259 * s/isc4-1.h:
19260 * s/newsos5.h:
19261 * s/newsos6.h:
19262 * s/osf1.h:
19263 * s/osf5-0.h:
19264 * s/riscix1-1.h:
19265 * s/riscix12.h:
19266 * s/sco4.h:
19267 * s/sco5.h:
19268 * s/sunos4-0.h:
19269 * s/sunos4-1.h:
19270 * s/sunos413.h:
19271 * s/sunos4shr.h:
19272 * s/umax.h:
19273 * s/unipl5-2.h:
19274 * s/xenix.h:
19275 * cxux-crt0.s:
19276 * unexapollo.c:
19277 * unexconvex.c:
19278 * unexenix.c:
19279 * unexsni.c: Remove files for systems no longer supported.
19280
19281 * m/intel386.h: Remove references to unsupported systems.
19282
19283 * w32.c (get_emacs_configuration): Remove reference to i860.
19284
19285 * sysdep.c: Remove dead code.
19286
192872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19288
19289 * s/rtu.h:
19290 * m/masscomp.h: Remove files. Platform is obsolete.
19291
192922008-01-04 Michael Albinus <michael.albinus@gmx.de>
19293
19294 * dbusbind.c (Fdbus_method_return): New function.
19295 (xd_read_message): Add the serial number to the event.
19296 (Fdbus_register_method): Activate the function.
19297
192982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19299
19300 * keyboard.c (read_key_sequence): Fix typo.
19301
193022008-01-03 Michael Albinus <michael.albinus@gmx.de>
19303
19304 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19305 (xd_signature, xd_append_arg): Handle element type detection for
19306 empty arrays.
19307 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19308 SDATA () calls; this must be solved more general.
19309 (Fdbus_register_signal): Use SBYTES instead of strlen.
19310
193112008-01-03 Magnus Henoch <magnus@zemdatav>
19312
19313 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19314 unsigned int for byte values (necessary for big-endian platform).
19315 (Fdbus_call_method): Handle the case of no returned arguments.
19316
193172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19318
19319 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19320
193212007-12-31 Magnus Henoch <mange@freemail.hu>
19322
19323 * dbusbind.c (xd_signature): Signature of variant is just "v".
19324
193252007-12-30 Michael Albinus <michael.albinus@gmx.de>
19326
19327 * dbusbind.c: Fix several errors and compiler warnings.
19328 Reported by Tom Tromey <tromey@redhat.com>.
19329 (XD_ERROR, XD_DEBUG_MESSAGE)
19330 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19331 (xd_append_arg): Part for basic D-Bus types rewritten.
19332 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19333 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19334 appropriate.
19335 (xd_read_message): Return Qnil. Don't signal an error; it is not
19336 useful during event reading.
19337 (Fdbus_register_signal): Signal an error if the check for
19338 FUNCTIONP fails.
19339 (Fdbus_register_method): New function. The implementation is not
19340 complete, the call of the function signals an error therefore.
19341 (Fdbus_unregister_object): New function, renamed from
19342 Fdbus_unregister_signal. The initial check signals an error, if
19343 the object is not well formed.
19344
193452007-12-30 Richard Stallman <rms@gnu.org>
19346
19347 * textprop.c (get_char_property_and_overlay):
19348 Signal error if POSITION is out of range in a buffer.
19349
193502007-12-29 Martin Rudalics <rudalics@gmx.at>
19351
19352 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19353 because the original parameters are in pure storage now.
19354
193552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19356
19357 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19358
193592007-12-22 Eli Zaretskii <eliz@gnu.org>
19360
19361 * callint.c (syms_of_callint) <command-history>: Add reference to
19362 history-length in the doc string.
19363
193642007-12-17 Jason Rumney <jasonr@gnu.org>
19365
19366 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19367 before passing as wParam.
19368
193692007-12-22 Michael Albinus <michael.albinus@gmx.de>
19370
19371 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19372 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19373 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19374 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19375 as number.
19376 (Fdbus_call_method): Fix docstring.
19377
193782007-12-21 Michael Albinus <michael.albinus@gmx.de>
19379
19380 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19381 New macros.
19382 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19383 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19384 Simplify.
19385 (xd_signature): New function.
19386 (xd_append_arg): Compute also signatures. Major rewrite.
19387 (xd_retrieve_arg): Make debug messages friendly.
19388 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19389 Check for signatures of arguments.
19390
193912007-12-19 Michael Albinus <michael.albinus@gmx.de>
19392
19393 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19394 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19395 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19396 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19397 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19398 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19399 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19400 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19401 (xd_retrieve_value): Remove. Functionality included in ...
19402 (xd_append_arg): New function.
19403 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19404
194052007-12-16 Michael Albinus <michael.albinus@gmx.de>
19406
19407 * dbusbind.c (top): Include <stdio.h>.
19408 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19409 dbus_message_new_method_call and dbus_message_new_signal.
19410 (Fdbus_register_signal): Rename unique_name to uname.
19411 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19412 non-existing unique name. Fix typos in matching rule. Return an
19413 object which is useful in Fdbus_unregister_signal.
19414 (Fdbus_unregister_signal): Reimplementation, in order to remove
19415 only the corresponding entry.
19416 (Vdbus_registered_functions_table): Change the order of entries.
19417 Apply these changes in xd_read_message and Fdbus_register_signal.
19418
194192007-12-16 Andreas Schwab <schwab@suse.de>
19420
19421 * fileio.c (Finsert_file_contents): Fix overflow check to not
19422 depend on undefined integer overflow.
19423
194242007-12-14 Jason Rumney <jasonr@gnu.org>
19425
19426 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19427 for characters above 127.
19428
194292007-12-13 Jason Rumney <jasonr@gnu.org>
19430
19431 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19432 before dereferencing array.
19433 (lookup_vk_code): Remove zero comparison.
19434
194352007-12-14 Michael Albinus <michael.albinus@gmx.de>
19436
19437 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19438 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19439 Use `unsigned int' instead of `uint'.
19440 (xd_read_message, Fdbus_register_signal): Split expressions into
19441 multiple lines before operators "&&" and "||", according to the
19442 GNU Coding Standards.
19443
194442007-12-14 Eli Zaretskii <eliz@gnu.org>
19445
19446 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19447
194482007-12-12 Juri Linkov <juri@jurta.org>
19449
19450 * buffer.c (Frename_buffer): In interactive spec replace
19451 `read-buffer' with `read-string' that uses `buffer-name-history'
19452 as history, and the current buffer's name as default.
19453
194542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19455
19456 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19457 manipulating the backtrace manually.
19458 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19459 (struct backtrace, backtrace_list): Remove.
19460 (command_loop_1): Remove dead var `no_direct'.
19461
19462 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19463 preserve non-built-in buffer-local variables.
19464 (Fkill_all_local_variables): Don't re-create&re-set permanent
19465 buffer-local variables.
19466
194672007-12-09 Juri Linkov <juri@jurta.org>
19468
19469 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19470 Lisp code that uses `read-buffer' with current buffer as default.
19471
194722007-12-08 Michael Albinus <michael.albinus@gmx.de>
19473
19474 * dbusbind.c (xd_read_message): Generate an event for every
19475 registered handler. There might be several handlers registered
19476 for the same signal.
19477 (Fdbus_register_signal): Don't overwrite a registration for the
19478 same signal. Add a new registration if handlers are different.
19479 (Vdbus_registered_functions_table): Rework doc string.
19480
194812007-12-07 Michael Albinus <michael.albinus@gmx.de>
19482
19483 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19484 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19485 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19486 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19487 Unify argument lists.
19488 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19489 arguments and hash table keys. Use unique name for service.
19490 (Fdbus_unregister_signal): Remove checks.
19491 (Vdbus_registered_functions_table): Fix doc string.
19492
194932007-12-05 Magnus Henoch <mange@freemail.hu>
19494
19495 * process.c (make_process): Initialize pty_flag to 0.
19496
194972007-12-05 Jason Rumney <jasonr@gnu.org>
19498
19499 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19500 specified XBMs.
19501
195022007-12-05 Richard Stallman <rms@gnu.org>
19503
19504 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19505
195062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19507
19508 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19509 New variable.
19510 (mac_try_close_socket) [MAC_OSX]: New function.
19511 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19512 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19513
19514 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19515 Use mac_try_close_socket.
19516
195172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19518
19519 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19520 reloc_base.
19521 (copy_dysymtab): Compute relocation base here.
19522 (rebase_reloc_address) [__ppc64__]: New function.
19523 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19524 changed.
19525
195262007-12-05 Jason Rumney <jasonr@gnu.org>
19527
19528 * w32proc.c (sys_spawnve): Quote args with wildcards.
19529
195302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19531
19532 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19533 __objc_* sections.
19534 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19535
195362007-12-05 Michael Albinus <michael.albinus@gmx.de>
19537
19538 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19539 Move check for Vdbus_registered_functions_table to
19540 xd_read_queued_messages.
19541 (xd_read_queued_messages): Protect xd_read_message calls by
19542 internal_condition_case_1.
19543
195442007-12-04 Michael Albinus <michael.albinus@gmx.de>
19545
19546 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19547 Qdbus_system_bus and Qdbus_session_bus, respectively.
19548 (Vdbus_intern_symbols): Remove.
19549 (Vdbus_registered_functions_table): New hash table.
19550 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19551 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19552 Rewrite in order to manage registered functions by hash table
19553 Vdbus_registered_functions_table.
19554
195552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19556
19557 * xterm.c: Update URL to Window Manager Specification in comment.
19558
195592007-12-02 Michael Albinus <michael.albinus@gmx.de>
19560
19561 * config.in (HAVE_DBUS): Add.
19562
19563 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19564 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19565 (obj): Add $(DBUS_OBJ).
19566 (LIBES): Add $(DBUS_LIBS).
19567 (dbusbind.o): New target.
19568
19569 * dbusbind.c: New file.
19570
19571 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19572
19573 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19574 (Qdbus_event): New Lisp symbol.
19575 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19576 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19577 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19578
19579 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19580
195812007-12-01 Richard Stallman <rms@gnu.org>
19582
19583 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19584
195852007-11-30 Jason Rumney <jasonr@gnu.org>
19586
19587 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19588 (w32con_reset_terminal_modes): Clear screen buffer.
19589 (w32_face_attributes): Don't use color indexes that are out of range.
19590 Only reverse the default colors.
19591
19592 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19593 WINDOWSNT.
19594
19595 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19596
195972007-11-29 Jason Rumney <jasonr@gnu.org>
19598
19599 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19600 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19601 if the terminal colors are initialized.
19602 (unspecified_fg, unspecified_bg): Remove unused declarations.
19603
196042007-11-29 Andreas Schwab <schwab@suse.de>
19605
19606 * keyboard.c (apply_modifiers): Fix typo.
19607
196082007-11-29 Richard Stallman <rms@gnu.org>
19609
19610 * keymap.c (Fcurrent_local_map): Doc fix.
19611
196122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19613
19614 * s/gnu-kfreebsd.h: New file.
19615
196162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19617
19618 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19619 Don't cast redundantly.
19620
19621 * keyboard.c (KEY_TO_CHAR): New macro.
19622 (parse_modifiers, apply_modifiers): Accept integer arguments.
19623 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19624 for chars and symbol keys.
19625 After doing such remapping, apply function-key-map again.
19626
196272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19628
19629 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19630 compiled anymore.
19631
196322007-11-26 Andreas Schwab <schwab@suse.de>
19633
19634 * process.c (list_processes_1): Fix indentation level of the
19635 command column.
19636
196372007-11-23 Andreas Schwab <schwab@suse.de>
19638
19639 * editfns.c (Fformat): Handle %c specially since it requires the
19640 argument to be of type int.
19641
196422007-11-23 Markus Triska <markus.triska@gmx.at>
19643
19644 * emacs.c (main): Call init_editfns before init_process, since
19645 init_process sets Vprocess_connection_type depending on OS release.
19646
196472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19648
19649 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19650 (find_symbol_value): Use do_symval_forwarding.
19651
19652 * data.c (set_internal): Set the value in the `cons-cell' (for
19653 Buffer_Local_values) not only for frame-local variables.
19654
196552007-11-22 Andreas Schwab <schwab@suse.de>
19656
19657 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19658 values to sprintf.
19659 * keymap.c (Fsingle_key_description): Likewise.
19660 * print.c (print_object): Likewise.
19661
196622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19663
19664 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19665 file for image is nil.
19666
196672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19668
19669 * term.c: Include stdarg.h.
19670 (fatal): Implement using varargs.
19671 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19672
196732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19674
19675 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19676 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19677 Update call to buffer_slot_type_mismatch.
19678 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19679 (buffer_slot_type_mismatch): Update.
19680 * buffer.c (buffer_local_types): Remove.
19681 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19682 (defvar_per_buffer): Set the type in the buffer_objfwd.
19683
196842007-11-21 Jason Rumney <jasonr@gnu.org>
19685
19686 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19687 CreateFileMapping returns NULL on failure.
19688
196892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * search.c (Fset_match_data): Remove the `evaporate' feature.
19692 (unwind_set_match_data): Don't use the `evaporate' feature.
19693
196942007-11-21 Jason Rumney <jasonr@gnu.org>
19695
19696 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19697
19698 * w32console.c (w32con_write_glyphs): Remove unused variables.
19699
197002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19701
19702 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19703
19704 * s/darwin.h (MULTI_KBOARD): Remove.
19705
19706 * macfns.c (x_create_tip_frame, Fx_create_frame)
19707 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19708
197092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19710
19711 * buffer.c (Fbuffer_local_value): Remove redundant test.
19712 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19713 than in `current-buffer' to match the comment.
19714 Do the swap using swap_in_global_binding.
19715
19716 * data.c (store_symval_forwarding, set_internal):
19717 * eval.c (specbind): Remove dead code.
19718
19719 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19720 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19721 Since we do not want to see internal Lisp_*fwd objects here.
19722
197232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19724
19725 * sysdep.c (init_system_name): Use getaddrinfo if available.
19726
19727 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19728 (x_scroll_bar_note_movement): start, end, with, height in struct
19729 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19730
197312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19732
19733 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19734
197352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19736
19737 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19738 This undoes Richard's change of 14-Oct-2002.
19739
19740 * alloc.c (allocate_other_vector):
19741 * lisp.h (allocate_other_vector): Remove.
19742
19743 * window.c (struct save_window_data): Move non-lisp data to the end
19744 and make it `int' rather than Lisp_Object.
19745 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19746 Done wrap/unwrap integer values.
19747 (Fset_window_configuration, compare_window_configurations):
19748 Update use of fields to their new types.
19749
19750 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19751 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19752 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19753 (SET_SCROLL_BAR_X_WINDOW): Remove.
19754 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19755 Access the new x_window field directly.
19756 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19757 Don't wrap/unwrap integers into Lisp_Objects.
19758 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19759 (x_scroll_bar_report_motion):
19760 Don't wrap/unwrap integers into Lisp_Objects.
19761 (x_term_init): Use SDATA.
19762 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19763 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19764 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19765 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19766 * xfns.c (x_set_background_color):
19767 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19768 Access the new x_window field directly.
19769
19770 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19771 (allocate_pseudovector): Make non-static.
19772
19773 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19774 (allocate_pseudovector): Declare.
19775 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19776
197772007-11-15 Andreas Schwab <schwab@suse.de>
19778
19779 * editfns.c (Fformat): Correctly format EMACS_INT values.
19780 Also take precision into account when formatting an integer.
19781
19782 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19783
197842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19785
19786 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19787 (syms_of_keyboard): Defsubr it.
19788
19789 * data.c (swap_in_global_binding): Fix longstanding bug where
19790 store_symval_forwarding was not called with the right second argument,
19791 thus causing objfwd-ing from being dropped.
19792
197932007-11-14 Juanma Barranquero <lekktu@gmail.com>
19794
19795 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19796 (Fx_display_pixel_height, Fx_display_planes)
19797 (Fx_display_color_cells, Fx_server_max_request_size)
19798 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19799 (Fx_display_visual_class, Fx_display_save_under):
19800 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19801 (Fx_display_pixel_height, Fx_display_planes)
19802 (Fx_display_color_cells, Fx_server_max_request_size)
19803 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19804 (Fx_display_mm_height, Fx_display_mm_width)
19805 (Fx_display_backing_store, Fx_display_visual_class)
19806 (Fw32_select_font, Fx_display_save_under):
19807 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19808 (Fx_display_pixel_height, Fx_display_planes)
19809 (Fx_display_color_cells, Fx_server_max_request_size)
19810 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19811 (Fx_display_save_under): Fix typos in docstrings.
19812
198132007-11-14 Juanma Barranquero <lekktu@gmail.com>
19814
19815 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19816 corresponding to deleted entries; they are an implementation detail.
19817 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19818 Remove variables.
19819 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19820 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19821 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19822 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19823 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19824 (Fw32_define_rgb_color, Fw32_load_color_file)
19825 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19826 Fix typos in docstrings.
19827 (Fx_server_version): Reflow docstring.
19828 (Fw32_shell_execute): Doc fixes.
19829
198302007-11-13 Juanma Barranquero <lekktu@gmail.com>
19831
19832 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19833 if w32_parse_hot_key returned nil.
19834
198352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19838
198392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19840
aac0c6e3
MR
19841 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19842
19843 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19844
19845 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19846 Remove W32_SCROLL_BAR_CLICK_EVENT.
19847
19848 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19849 Add MULTIMEDIA_KEY_EVENT.
19850
19851 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19852 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19853 (make_lispy_event) [WINDOWSNT]: Use it to translate
19854 MULTIMEDIA_KEY_EVENT.
19855
19856 * w32term.h (WM_APPCOMMAND): Define if not already.
19857 (GET_APPCOMMAND_LPARAM): Likewise.
19858
19859 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19860 WM_APPCOMMAND.
19861
19862 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19863 (syms_of_w32fns): Export and initialize it.
19864 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19865
198662007-11-09 Chong Yidong <cyd@stupidchicken.com>
19867
19868 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19869 twice.
19870
19871 * xdisp.c (handle_face_prop): Fix last change.
19872
198732007-11-09 Richard Stallman <rms@gnu.org>
19874
19875 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19876 not just for after-strings and before-strings.
19877 Call face_for_overlay_string and pass the overlay to it.
19878 (handle_display_prop): Determine whether property came from an overlay.
19879 Pass OVERLAY arg to handle_single_display_spec.
19880 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19881 (load_overlay_strings): Fill in it->string_overlays.
19882 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19883
19884 * xfaces.c (face_for_overlay_string): Function renamed from
19885 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19886
19887 * dispextern.h (struct it): New elt string_overlays.
19888 New elt from_overlay, also in stack.
19889 Rearrange a few elements.
19890 (face_for_overlay_string): Decl renamed from
19891 face_at_buffer_position_no_overlays, and add argument.
19892
198932007-11-09 Richard Stallman <rms@gnu.org>
19894
19895 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19896 to get the base face for an overlay string.
19897
19898 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19899
19900 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19901
19902 * xdisp.c (handle_stop): Move some code out of loop.
19903
199042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19905
19906 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19907 Fix conversion from Lisp object to ATSUFontID.
19908
199092007-11-09 Jason Rumney <jasonr@gnu.org>
19910
19911 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19912
199132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19914
19915 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19916 Don't assume regions are aligned to page boundary.
19917 (print_load_command_name): Add LC_UUID if defined.
19918
199192007-11-09 Richard Stallman <rms@gnu.org>
19920
19921 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19922
199232007-11-07 Jason Rumney <jasonr@gnu.org>
19924
19925 * s/windows95.h: Remove.
19926
199272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19928
19929 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19930 abort with a message on unhandled store_type values.
19931
199322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19933
19934 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19935 Remove HAVE_X11R5 and HAVE_X11R4.
19936
199372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19938
19939 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19940
199412007-11-01 Johan Bockgård <bojohan@gnu.org>
19942
19943 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19944 Don't set s->stippled_p here, since it has already been set by
19945 x_set_glyph_string_gc from x_draw_glyph_string.
19946
199472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19948
19949 * sunfns.c: Remove file.
19950
19951 * m/sun386.h:
19952 * m/sun2.h:
19953 * m/sparc.h: Remove Sun windows code.
19954
199552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19956
19957 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19958 (init_keyboard): Set current_kboard's window-system to nil.
19959 (tty_read_avail_input): Typo.
19960 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19961
199622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19963
19964 * s/usg5-4.h:
19965 * s/usg5-3.h:
19966 * s/ptx.h:
19967 * m/is386.h:
19968 * m/ibmps2-aix.h:
19969 * Makefile.in: Remove all mentions of X10.
19970
19971 * dispnew.c (syms_of_display): Don't mention version 10.
19972
199732007-10-28 Juanma Barranquero <lekktu@gmail.com>
19974
19975 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19976 ($(BLD)/abbrev.$(O)): Remove.
19977
199782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19979
19980 Rewrite abbrev.c in Elisp.
19981 * image.c (Qcount): Don't declare as extern.
19982 (syms_of_image): Initialize and staticpro `Qcount'.
19983 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19984 * emacs.c (main): Don't call syms_of_abbrev.
19985 * Makefile.in (obj): Remove abbrev.o.
19986 (abbrev.o): Remove.
19987 * abbrev.c: Remove.
19988
199892007-10-26 Martin Rudalics <rudalics@gmx.at>
19990
19991 * window.c (window_min_size_2): Don't count header-line.
19992
199932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19994
19995 * frame.h (struct frame): Move all bit fields after the first bit
19996 field to take advantage of the available space. Group all the
19997 chars together to reduce wasted space due to padding.
19998
199992007-10-26 Juanma Barranquero <lekktu@gmail.com>
20000
20001 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20002
20003 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20004 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20005 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20006 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20007 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20008 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20009 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20010 (last_marked, mark_object_loop_halt): Make static.
20011
20012 * frame.c (syms_of_frame) <delete-frame-functions>:
20013 Fix typo in docstring.
20014
200152007-10-25 Juanma Barranquero <lekktu@gmail.com>
20016
20017 * w32.c (init_environment): Fix tiny memory leak.
20018 (w32_get_resource): Remove unused variable `ok'.
20019
200202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20021
20022 Make `window-system' into a keyboard-local variable (rather than
20023 frame-local as done originally by multi-tty).
20024
20025 * keyboard.h (struct kboard): Add Vwindow_system.
20026 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20027 (mark_kboards): Mark Vwindow_system.
20028
20029 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20030 (init_display): Don't set the obsolete `window-system' frame-param.
20031
20032 * xterm.c (x_term_init):
20033 * w32term.c (w32_create_terminal):
20034 * term.c (init_tty): Set Vwindow_system.
20035 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20036 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20037
20038 * xfns.c (Fx_create_frame, x_create_tip_frame):
20039 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20040 * macfns.c (Fx_create_frame):
20041 Don't set the obsolete `window-system' frame-param.
20042
20043 * frame.h (Qwindow_system): Remove.
20044 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20045 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20046
200472007-10-24 Richard Stallman <rms@gnu.org>
20048
20049 * frame.c (x_figure_window_size): For fullscreen case,
20050 set USPosition | PPosition without clobbering rest of window_prompting.
20051
20052 * keyboard.c (Fcurrent_idle_time): Doc fix.
20053
20054 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20055
200562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20057
20058 * process.c (unwind_request_sigio): Only define if __ultrix__.
20059
20060 * callproc.c (child_setup): Remove spurious *.
20061
20062 * lisp.h (Fget_text_property): Declare.
20063 (have_menus_p): Declare it here rather than in sys-dep header files.
20064 * macterm.h (have_menus_p):
20065 * msdos.h (have_menus_p):
20066 * xterm.h (have_menus_p): Remove.
20067
20068 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20069 (Fmake_variable_frame_local): Just check the variable's const-ness
20070 rather than checking nil or t.
20071
200722007-10-22 Jason Rumney <jasonr@gnu.org>
20073
20074 * w32fns.c: Include math.h.
20075 (w32_abort): Declaration moved to nt/config.nt.
20076
20077 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20078 (abort): Redefinition moved to nt/config.nt.
20079
20080 * m/windowsnt.h: Remove.
20081
200822007-10-22 Juanma Barranquero <lekktu@gmail.com>
20083
20084 * emacs.c (Fdump_emacs): Fix typo in message.
20085 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20086 <installation-directory>: Reflow docstring.
20087
200882007-10-22 Juri Linkov <juri@jurta.org>
20089
20090 * minibuf.c: Allow minibuffer default to be a list of default values.
20091 With empty input use the first element of this list as returned default.
20092 (string_to_object)
20093 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20094 (read_minibuf): If defalt is cons, set histstring to its car.
20095 (Fread_string): If default_value is cons, set val to its car.
20096 (Fread_buffer): If def is cons, use its car.
20097 (Fcompleting_read): If defalt is cons, set val to its car.
20098
200992007-10-21 Michael Albinus <michael.albinus@gmx.de>
20100
20101 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20102
201032007-10-20 Juanma Barranquero <lekktu@gmail.com>
20104
20105 * doc.c (Fdocumentation): Check for advice in all cases.
20106
201072007-10-19 Chong Yidong <cyd@stupidchicken.com>
20108
20109 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20110
201112007-10-19 Richard Stallman <rms@gnu.org>
20112
20113 * doc.c (Fdocumentation): Check for and handle an advised function.
20114
201152007-10-19 Juanma Barranquero <lekktu@gmail.com>
20116
20117 * process.c (Fset_process_filter): Doc fix.
20118
201192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20120
20121 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20122 which caused key-translation-map to applied repeatedly (thus breaking
20123 double-mode).
20124
201252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20126
20127 * xselect.c (x_own_selection, x_handle_selection_clear)
20128 (x_clear_frame_selections):
20129 * w32menu.c (list_of_panes, list_of_items):
20130 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20131 * textprop.c (validate_plist, interval_has_all_properties)
20132 (interval_has_some_properties, interval_has_some_properties_list)
20133 (add_properties, text_property_list):
20134 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20135 * minibuf.c (Fassoc_string):
20136 * macselect.c (x_own_selection, x_clear_frame_selections)
20137 (Fx_disown_selection_internal):
20138 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20139 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20140
201412007-10-17 Chong Yidong <cyd@stupidchicken.com>
20142
20143 * process.c: Link to libs for calling res_init() if available.
20144 (Fmake_network_process): Call res_init() before getaddrinfo or
20145 gethostbyname, if possible.
20146
201472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20148
20149 * lread.c (read1): Set pvectype for char_tables.
20150
20151 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20152 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20153 Add type checks.
20154 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20155
20156 * alloc.c (free_misc): Use XMISCTYPE.
20157 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20158
201592007-10-17 Glenn Morris <rgm@gnu.org>
20160
20161 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20162 (syms_of_minibuf): Add Qcompletion_ignore_case.
20163 * dired.c (Qcompletion_ignore_case): Change to external.
20164 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20165 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20166 (Fread_file_name): Use it rather than intern'ing.
20167
20168 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20169 (Fread_coding_system): Ignore case of user input.
20170
201712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20172
20173 * xdisp.c (handle_display_prop): Ignore display specs after
20174 replacing one when string text is being replaced.
20175 (handle_single_display_spec): Pretend as if characters with display
20176 property haven't been consumed only when buffer text is being replaced.
20177
201782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * xfns.c (Fx_create_frame, Fx_display_list):
20181 * window.c (window_fixed_size_p, enlarge_window)
20182 (shrink_window_lowest_first):
20183 * macterm.c (init_font_name_table):
20184 * macfns.c (Fx_create_frame, Fx_display_list):
20185 * lread.c (close_load_descs):
20186 * keyboard.c (read_char_x_menu_prompt):
20187 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20188 * coding.c (code_convert_region_unwind): Test the type of an object
20189 rather than just !NILP before extracting data from it.
20190
20191 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20192
20193 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20194 (XMISCANY): New macro.
20195 (XMISCTYPE): Use it.
20196 (struct Lisp_Misc_Any): New type.
20197 (union Lisp_Misc): Use it.
20198 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20199 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20200 (find_symbol_value, set_internal, default_value, Fset_default)
20201 (Fmake_variable_buffer_local, Fmake_local_variable)
20202 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20203 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20204 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20205 * alloc.c (allocate_buffer): Set the size and tag.
20206 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20207 Use XMISCANY.
20208 (die): Follow the GNU convention for error messages.
20209 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20210 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20211 tag any more.
20212 (set_buffer_internal_1):
20213 * frame.c (store_frame_param):
20214 * eval.c (specbind):
20215 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20216
20217 * doc.c (Fsnarf_documentation): Simplify.
20218
202192007-10-14 Juanma Barranquero <lekktu@gmail.com>
20220
20221 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20222 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20223
202242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20225
20226 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20227
202282007-10-14 Juanma Barranquero <lekktu@gmail.com>
20229
20230 * eval.c (do_autoload): Don't save autoloads.
20231
20232 * data.c (Ffset): Save autoload of the function being set.
20233
202342007-10-07 John Paul Wallington <jpw@pobox.com>
20235
20236 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20237 parameter before setting up faces.
20238
202392007-10-13 Eli Zaretskii <eliz@gnu.org>
20240
20241 * ccl.c (Fregister_code_conversion_map):
20242 * keyboard.c (append_tool_bar_item): Reformat last change.
20243
20244 * lisp.h (eabs): Rename from `abs'. All callers changed.
20245
202462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20247
20248 * buffer.c (add_overlay_mod_hooklist):
20249 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20250 * fontset.c (make_fontset):
20251 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20252 (append_tool_bar_item):
20253 * macmenu.c (grow_menu_items):
20254 * w32menu.c (grow_menu_items):
20255 * xmenu.c (grow_menu_items): Use larger_vector.
20256
202572007-10-13 Eli Zaretskii <eliz@gnu.org>
20258
20259 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20260 selected frame'' on MSDOS).
20261
202622007-10-12 Martin Rudalics <rudalics@gmx.at>
20263
20264 * frame.c (Qexplicit_name): New variable.
20265 (x_report_frame_params): Report it in parameter alist.
20266 (syms_of_frame): Intern and staticpro it.
20267
202682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20269
20270 * macfns.c (x_create_tip_frame): Set terminal for frame.
20271
202722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20273
20274 * frame.c (Qenvironment): Remove.
20275 (syms_of_frame) <Qenvironment>: Don't initialize.
20276 (Fdelete_frame): Don't treat the `environment' param specially.
20277 * frame.h (Qenvironment): Don't declare.
20278 * callproc.c (set_initial_environment): Don't set unused frame param.
20279
20280 * frame.c (Fframe_with_environment): Remove.
20281 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20282
20283 * lisp.h (Fframe_with_environment): Don't declare.
20284
202852007-10-10 Juanma Barranquero <lekktu@gmail.com>
20286
20287 * indent.c (indent_tabs_mode, last_known_column)
20288 (last_known_column_modified): Make static.
20289 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20290
202912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20292
20293 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20294
202952007-10-09 Jason Rumney <jasonr@gnu.org>
20296
20297 * w32term.c (x_set_window_size): Disable code that attempts to tell
20298 Lisp code about a size change before it actually happens.
20299
203002007-10-09 Richard Stallman <rms@gnu.org>
20301
20302 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20303 return HANDLED_RETURN.
20304
203052007-10-08 Martin Rudalics <rudalics@gmx.at>
20306
20307 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20308 when there's an unread command event.
20309
20310 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20311 window autoselection act appropriately when leaving selected frame.
20312 (syms_of_frame): Initialize focus_follows_mouse.
20313 * frame.h (focus_follows_mouse): Extern it.
20314 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20315 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20316 * msdos.c (dos_rawgetc): Likewise.
20317 * w32term.c (w32_read_socket): Likewise.
20318 * xterm.c (handle_one_xevent): Likewise.
20319 * xdisp.c (syms_of_xdisp): In doc-string of
20320 mouse-autoselect-window mention focus-follows-mouse.
20321
203222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20323
20324 * macterm.c (mac_load_query_font): Fix missing return value.
20325 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20326 Add BLOCK_INPUT.
20327
203282007-10-08 Richard Stallman <rms@gnu.org>
20329
20330 * xdisp.c (get_window_cursor_type): Implement documented behavior
20331 for cursor-in-non-selected-windows = t.
20332
203332007-10-08 Jason Rumney <jasonr@gnu.org>
20334
20335 * w32.c (w32_get_resource): Always close registry keys.
20336
203372007-10-08 Jason Rumney <jasonr@gnu.org>
20338
20339 * makefile.w32-in (LIBS): Add COMCTL32.
20340
20341 * w32fns.c (globals_of_w32fns): Init common controls.
20342
203432007-10-08 Richard Stallman <rms@gnu.org>
20344
20345 * image.c (our_memory_buffer): Rename from omfib_buffer.
20346
203472007-10-08 Richard Stallman <rms@gnu.org>
20348
20349 * buffer.c (Foverlays_at): Doc fix.
20350
203512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20352
20353 * fns.c (Fplist_put): Preserve uneven tail data.
20354
203552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20356
20357 * termhooks.h (enum event_kind): Remove trailing comma.
20358
20359 * frame.h (enum): Remove trailing comma.
20360
203612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20362
20363 * w32proc.c (delete_child): Don't terminate threads of zombies.
20364
203652007-10-08 Martin Rudalics <rudalics@gmx.at>
20366
20367 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20368
20369 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20370 last-repeatable-command.
20371 (init_kboard): Initialize Vlast_repeatable_command.
20372 (command_loop_1): Set it to real_this_command unless that was
20373 bound to an input event.
20374 (mark_kboards): Mark it.
20375
203762007-10-08 Richard Stallman <rms@gnu.org>
20377
20378 * eval.c (condition-case): Doc fix.
20379
203802007-10-08 Masatake YAMATO <jet@gyve.org>
20381
20382 * xfaces.c (tty_supports_face_attributes_p): Fix code
20383 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20384 was copied and not edited.
20385
203862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 Add new `input-decode-map' keymap and use it for terminal
20389 escape sequences.
20390 * keyboard.h (struct kboard): Add Vinput_decode_map.
20391 Remove Vlocal_key_translation_map.
20392 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20393 (init_kboard): Init input-decode-map.
20394 Replace local-key-translation-map back with key-translation-map.
20395 (syms_of_keyboard): Declare input-decode-map.
20396 Remove local-key-translation-map. Update docstrings.
20397 (mark_kboards): Mark Vinput_decode_map.
20398 Don't mark Vlocal_key_translation_map.
20399 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20400 Replace local-key-translation-map back with key-translation-map.
20401 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20402 Bind in input-decode-map rather than function-key-map.
20403
20404 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20405 This was made redundant by the previous introduction of XSETPVECTYPE.
20406
204072007-10-09 Richard Stallman <rms@gnu.org>
20408
20409 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20410
204112007-09-29 Richard Stallman <rms@gnu.org>
20412
20413 * eval.c (internal_condition_case_2, internal_condition_case_1)
20414 (internal_condition_case): Reenable abort if x_catching_errors ()
20415 to see if that really happens and why.
20416
204172007-10-06 Andreas Schwab <schwab@suse.de>
20418
20419 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20420
204212007-10-04 Juanma Barranquero <lekktu@gmail.com>
20422
20423 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20424
204252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20426
20427 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20428
204292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20430
20431 * window.h (struct window):
20432 * window.c (struct save_window_data, struct saved_window):
20433 * termhooks.h (struct terminal):
20434 * process.h (struct Lisp_Process):
20435 * frame.h (struct frame):
20436 * buffer.h (struct buffer):
20437 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20438 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20439 The size field of (pseudo)vectors is now unsigned.
20440 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20441
20442 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20443 Turn `count' into an integer.
20444
20445 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20446 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20447 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20448 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20449 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20450
20451 * alloc.c (allocate_pseudovector): New fun.
20452 (ALLOCATE_PSEUDOVECTOR): New macro.
20453 (allocate_window, allocate_terminal, allocate_frame)
20454 (allocate_process): Use it.
20455 (mark_vectorlike): New function.
20456 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20457 (mark_terminals): Use it.
20458 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20459 (Fmake_byte_code): Use XSETPVECTYPE.
20460
20461 * frame.c (Fframe_parameters): Minor simplification.
20462
20463 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20464
20465 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20466
20467 * buffer.c (Fget_buffer_create, init_buffer_once):
20468 * lread.c (defsubr):
20469 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20470
20471 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20472 defined differently in the m/*.h files.
20473 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20474 (XSETPVECTYPE): New macro.
20475 (XSETPSEUDOVECTOR): Use it.
20476
20477 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20478 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20479
20480 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20481 * lread.c (defvar_per_buffer):
20482 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20483
20484 * window.c (candidate_window_p): Only consider as visible frames that
20485 are on the same terminal.
20486
20487 * m/ibms390x.h (MARKBIT): Remove unused macro.
20488
204892007-10-01 Juanma Barranquero <lekktu@gmail.com>
20490
20491 * lread.c (Fload): Fix typo in docstring.
20492
204932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20494
20495 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20496 of a non-zero value can't yield zero.
20497
204982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20499
20500 * term.c (term_clear_mouse_face, term_mouse_highlight)
20501 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20502
20503 * print.c (safe_debug_print): Use XHASH.
20504
20505 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20506 Lisp elements such as tags.
20507 (XHASH): New macro.
20508 (EQ): Use it.
20509 (SREF, SSET, STRING_COPYIN): Use SDATA.
20510 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20511
20512 * alloc.c (mark_terminal): Remove left-over declaration.
20513 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20514 (allocate_vectorlike): Remove type argument. Adjust callers.
20515 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20516 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20517
20518 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20519 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20520 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20521 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20522 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20523 Use them.
20524
20525 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20526 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20527 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20528
205292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20530
20531 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20532 loaded by default.
20533
205342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20535
20536 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20537 on this tty.
20538 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20539
20540 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20541 Update all users.
20542 (handle_one_term_event): Use Gpm_DrawPointer.
20543 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20544 Signal errors instead of returning nil. Always return nil.
20545 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20546 Make it a noop if gpm-mouse was not activated.
20547 (syms_of_term): Update names.
20548
205492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20550
20551 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20552 (init_sys_modes): Check that gpm_tty is the current tty.
20553
20554 * alloc.c (allocate_terminal): Set the vector size to only count the
20555 lisp fields. Initialize those to nil.
20556 (mark_object): Don't treat terminals specially.
20557 (mark_terminal): Remove.
20558 (mark_terminals): Use mark_object instead.
20559
20560 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20561 the GC to the beginning.
20562
20563 * indent.h:
20564 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20565
20566 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20567
205682007-09-25 Jason Rumney <jasonr@gnu.org>
20569
20570 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20571
20572 * w32console.c (create_w32cons_output): Remove.
20573
20574 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20575
20576 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20577 (reset_sys_modes): Use reset_terminal_modes_hook.
20578
205792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20580
20581 * eval.c (do_autoload): Don't output any message.
20582
205832007-09-24 Juri Linkov <juri@jurta.org>
20584
20585 * emacs.c (standard_args): Change priority of "--no-splash"
20586 from 40 to 3. Add "--no-desktop" with the same priority.
20587
205882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20589
20590 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20591 and optimize the case where they are all 1.
20592
205932007-09-23 Johannes Weiner <hannes@saeurebad.de>
20594
20595 * lisp.h (abs): Define if not defined.
20596 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20597 Don't define `abs', since it's defined in lisp.h.
20598
205992007-09-22 Eli Zaretskii <eliz@gnu.org>
20600
20601 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20602 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20603 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20604 (init_tty): Use DEV_TTY instead of "/dev/tty".
20605 [WINDOWSNT]: No need to protect from NAME arg being null.
20606
206072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20608
20609 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20610 up the tty state.
20611
206122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20613
20614 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20615 (gpm_tty): Change its type.
20616 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20617 (gpm_tty): Change its type and initialize it.
20618 (Fterm_open_connection): Check the frame is indeed a tty.
20619 Use the new gpm_tty.
20620 (Fterm_close_connection): Use the new gpm_tty.
20621 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20622 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20623
206242007-09-21 Juanma Barranquero <lekktu@gmail.com>
20625
20626 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20627 underline_color, to draw strike-through.
20628
206292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20630
20631 * lisp.h (allocate_terminal): Declare.
20632
20633 * window.c (candidate_window_p): Consider frames that are being placed
20634 by the user as somewhere between visible and iconified.
20635 (window_loop): Prefer windows on the current frame.
20636 (Fselect_window): Move the use of select-frame to the beginning so we
20637 can just delegate all the work (it'll call us back anyway).
20638
20639 * frame.c (Qdisplay_environment_variable):
20640 * frame.h (Qdisplay_environment_variable): Delete.
20641
20642 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20643 of the first arg, since that value may be a union.
20644
20645 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20646 parameter rather than Qdisplay_environment_variable. If all else
20647 fails, look for DISPLAY in initial-environment.
20648
206492007-09-21 Glenn Morris <rgm@gnu.org>
20650
20651 * Makefile.in (emacstool): Remove target.
20652 (lisp, shortlisp): Remove termdev.elc.
20653
206542007-09-21 Markus Triska <markus.triska@gmx.at>
20655
20656 * xterm.c (x_delete_display): Compile session management conditionally.
20657
206582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20659
20660 * callproc.c (getenv_internal_1): New function.
20661 (getenv_internal): Use it.
20662 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20663
20664 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20665 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20666 (Fset_terminal_parameter): Work with dead terminals as well.
20667 (Fmodify_terminal_parameters): Remove.
20668
20669 * terminal.c (get_terminal): Handle terminals.
20670 Make sure the terminal returned is live.
20671 (create_terminal): Use allocate_terminal.
20672 (mark_terminals): Move to alloc.c.
20673 (delete_terminal): Use terminal->name as liveness status.
20674 NULL out fields after freeing their contents.
20675 Don't deallocate the object.
20676 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20677 rather than an int.
20678 (Fterminal_live_p): Accept non-integer arguments.
20679 (Fterminal_list): Return terminal objects rather than an ints.
20680
20681 * alloc.c (enum mem_type): New member for `terminal' objects.
20682 (allocate_terminal): New function.
20683 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20684 Handle terminals.
20685 (mark_terminal): New fun.
20686 (mark_terminals): Move from terminal.c.
20687
20688 * term.c (get_tty_terminal): Don't treat output_initial specially.
20689 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20690 (delete_tty): Use terminal->name as liveness status.
20691
20692 * termhooks.h (struct terminal): Make it into a pseudovector.
20693 Remove `deleted' replaced by checking `name's nullness.
20694
20695 * print.c (print_object): Handle terminals.
20696
20697 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20698 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20699
20700 * frame.c (make_terminal_frame):
20701 * keyboard.c (tty_read_avail_input):
20702 * w32term.c (x_delete_terminal):
20703 * xfns.c (Fx_create_frame, x_create_tip_frame):
20704 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20705
207062007-09-20 Glenn Morris <rgm@gnu.org>
20707
20708 * process.c (Fmake_network_process): Doc fix.
20709
207102007-09-19 Jason Rumney <jasonr@gnu.org>
20711
20712 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20713
207142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20715
20716 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20717 Fix a C warning regarding variable constness.
20718
20719 * xterm.c (handle_one_xevent): Fix a C warning.
20720
207212007-09-18 Jason Rumney <jasonr@gnu.org>
20722
20723 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20724
207252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20726
20727 * gtkutil.c (gdpy_def): New variable.
20728 (xg_initialize): Initialize gdpy_def.
20729 (xg_display_close): If no other display exists, set gdpy_def to a
20730 new connection.
20731
207322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20733
20734 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20735 when we have no file name for the icon.
20736 (xg_tool_bar_expose_callback): Remove.
20737 (xg_create_tool_bar): Don't connect expose signal to
20738 xg_tool_bar_expose_callback.
20739 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20740
207412007-09-16 Andreas Schwab <schwab@suse.de>
20742
20743 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20744 values instead of zapping them.
20745
207462007-09-14 Glenn Morris <rgm@gnu.org>
20747
20748 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20749 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20750 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20751 scope and rename to omfib_buffer for clarity.
20752 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20753
207542007-09-14 Kenichi Handa <handa@m17n.org>
20755
20756 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20757
207582007-09-13 Jason Rumney <jasonr@gnu.org>
20759
20760 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20761
20762 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20763
20764 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20765 (mac_term_init): Call here instead, passing rif.
20766
207672007-09-13 Glenn Morris <rgm@gnu.org>
20768
20769 * s/hpux.h: No longer define `static' as nothing.
20770
207712007-09-13 Johan Bockgård <bojohan@gnu.org>
20772
20773 * callint.c (Fcall_interactively): Remove unused var `fun'.
20774
207752007-09-12 Romain Francoise <romain@orebokech.com>
20776
20777 * window.c (prefer_window_split_horizontally, display_buffer):
20778 Revert 2007-09-08 change.
20779
207802007-09-12 Glenn Morris <rgm@gnu.org>
20781
20782 * alloca.c: Remove file.
20783 * Makefile.in (alloca): Do not undef.
20784 (allocaobj, alloca.o): Remove.
20785 (otherobj): Remove allocaobj.
20786 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20787 * regex.c (C_ALLOCA): Remove all references and code that was only
20788 used when this was defined.
20789 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20790 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20791 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20792
20793 * Makefile.in (SOURCES, unlock, relock): Delete.
20794
20795 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20796 (menu_grab_callback): All uses changed.
20797
20798 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20799 (x_reply_selection_request): All uses changed.
20800
208012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20802
20803 * lread.c (load_warn_old_style_backquotes): Change message to look
20804 better when it appears in the middle of byte-compiler messages.
20805
208062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20807
20808 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20809
20810 * xterm.c (x_create_terminal): Add comment.
20811
20812 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20813
208142007-09-10 Richard Stallman <rms@gnu.org>
20815
20816 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20817
208182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20819
20820 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20821 (DEFUN): Document `intspec', use it instead of `prompt'.
20822
20823 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20824
20825 * data.c (Finteractive_form): If the interactive specification starts
20826 with a `(', use it as a Lisp form.
20827
20828 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20829 name and file modes.
20830
20831 * callint.c (Fcall_interactively): Comment fixes.
20832
208332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20836 and compiled functions.
20837
208382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20839
20840 * window.c (prefer_window_split_horizontally): New variable.
20841 (display_buffer): Consider splitting window horizontally depending
20842 on prefer_window_split_horizontally.
20843
208442007-09-08 Eli Zaretskii <eliz@gnu.org>
20845
20846 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20847
208482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20849
20850 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20851
20852 * frame.c (x_set_frame_parameters): Check number is positive before
20853 using XFASTINT.
20854
20855 * window.c (freeze_window_start): Don't presume selected_window holds
20856 a window object.
20857 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20858
208592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20860
20861 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20862
208632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20864
20865 * window.c (Vsplit_window_preferred_function): New var.
20866 (Fdisplay_buffer): Use it.
20867 (syms_of_window): Export, and initialize it.
20868
208692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20870
20871 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20872
208732007-09-06 Glenn Morris <rgm@gnu.org>
20874
20875 * gtkutil.c (menu_grab_callback) <cnt>:
20876 * xselect.c (x_reply_selection_request) <cnt>: Move static
20877 variable to file scope.
20878
208792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20880
20881 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20882 consistent values of selected_frame and selected_window.
20883
208842007-09-04 Jason Rumney <jasonr@gnu.org>
20885
20886 * w32console.c (initialize_w32_display): Zero unused hooks.
20887
208882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20889
20890 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20891 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20892
208932007-09-04 Jason Rumney <jasonr@gnu.org>
20894
20895 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20896 in w32console.c. Set up input. Remove XXX comments that have been
20897 confirmed as correct.
20898
20899 * s/ms-w32.h (MULTI_KBOARD): Define.
20900
20901 * w32console.c (one_and_only_w32cons): Remove.
20902 (initialize_w32_display): Take terminal argument.
20903
20904 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20905 initialize_w32_display.
20906 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20907
20908 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20909
20910 * keyboard.c (discard_mouse_events): Discard it.
20911 (make_lispy_event): Translate it to a lisp event.
20912 (lispy_wheel_names): Add wheel-left and right events.
20913 (syms_of_keyboard): Enlarge wheel_syms.
20914
20915 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20916 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20917
20918 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20919
20920 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20921 from WM_MOUSEHWHEEL.
20922 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20923
20924 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20925 terminal.
20926
20927 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20928 keyboard for the terminal.
20929
209302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20931
20932 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20933 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20934 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20935 and resume-tty-function to resume-tty-hook.
20936 (Fsuspend_tty, Fresume_tty): Use new names.
20937
209382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20939
20940 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20941 if it starts with "n:".
20942
209432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20944
20945 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20946
209472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20948
20949 * frame.h:
20950 * frame.c (Qterm_environment_variable): Remove.
20951 (syms_of_frame): Don't init and staticpro it.
20952
20953 * callproc.c (getenv_internal): Remove special case for $TERM.
20954
20955 * callproc.c (Vinitial_environment): New variable.
20956 (set_initial_environment): Initialize it.
20957 (syms_of_callproc): Declare it.
20958 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20959 TERM under which a process runs is never related to the TERM in which
20960 Emacs is running.
20961
209622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20963
20964 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20965 * s/darwin.h: ... do it here.
20966
209672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20968
20969 * lisp.h (set_initial_environment): Rename from set_global_environment.
20970
20971 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20972 removed by mistake on the multi-tty branch.
20973
20974 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20975 (Fmodify_frame_parameters): Return a value.
20976
20977 * image.c (png_load): Comment-out var only used in commented-out code.
20978
20979 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20980 before passing it to mark_object.
20981
20982 * xfaces.c (internal_resolve_face_name): Return a value.
20983 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20984
20985 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20986 (x_icon): Comment-out var only used in commented-out code.
20987
209882007-08-29 Romain Francoise <romain@orebokech.com>
20989
20990 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20991 QUIT hasn't been provided.
20992
209932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20994
20995 * callproc.c (child_setup, getenv_internal): Use the
20996 display-environment-variable and term-environment-variable frame params.
20997 (set_initial_environment): Initialise Vprocess_environment.
20998
20999 * config.in: Disable multi-keyboard support on a mac.
21000
21001 * frame.c (Qterm_environment_variable)
21002 (Qdisplay_environment_variable): New variables.
21003 (syms_of_frame): Intern and staticpro them.
21004 (Fmake_terminal_frame): Disable output method test.
21005
21006 * frame.h: Declare them here.
21007
21008 * macfns.c (x_set_mouse_color): Get rif from the frame.
21009 (x_set_tool_bar_lines): Don't use updating_frame.
21010 (mac_window): Add 2 new parameters for consistency with other systems.
21011 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21012 frame parameters following what is done in X11 and w32. Don't use
21013 FRAME_MAC_DISPLAY_INFO.
21014 (Fx_open_connection, start_hourglass): Remove window-system check.
21015 (x_create_tip_frame): Get the keyboard from the terminal.
21016
21017 * macmenu.c: Reorder includes.
21018 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21019
21020 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21021 terminal parameter.
21022 (x_clear_frame): Add a frame parameter.
21023 (note_mouse_movement): Get rif from the frame.
21024 (mac_term_init): Initialize the terminal.
21025 (mac_initialize): Make static and move terminal initialization ...
21026 (mac_create_terminal): ... to this new function.
21027
21028 * macterm.h (struct mac_display_info): Add terminal.
21029 (mac_initialize): Delete declaration.
21030
21031 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21032
21033 * sysdep.c: Comment out text after #endif.
21034
21035 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21036 is defined. Better initialize ttys in windows. Use terminal
21037 specific mouse_position_hook.
21038
21039 * termhooks.h (union display_info): Add mac_display_info.
21040
21041 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21042 Set the default minibuffer frame, window_system and the rest of the
21043 frame parameters following what is done in X11.
21044
21045 * w32term.c (w32_initialize): Make static.
21046
21047 * xselect.c (x_handle_selection_clear): Only access
21048 terminal->kboard when MULTI_KBOARD is defined.
21049
21050 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21051 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21052
210532007-08-29 Jason Rumney <jasonr@gnu.org>
21054
21055 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21056 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21057
21058 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21059 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21060
21061 * keyboard.c (restore_kboard_configuration): Only define when
21062 MULTI_KBOARD defined.
21063
21064 * makefile.w32-in: Update dependancies from Makefile.in.
21065 (OBJ1): Add terminal.$(O)
21066
21067 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21068 Don't define function body.
21069 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21070
21071 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21072
21073 * w32.c (request_sigio, unrequest_sigio): Remove.
21074
21075 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21076 (w32con_clear_frame, w32con_clear_end_of_line)
21077 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21078 (w32con_delete_glyphs, w32con_set_terminal_window)
21079 (scroll_line, w32_sys_ring_bell): Add frame arg.
21080 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21081 Add terminal arg.
21082 (PICK_FRAME): Remove.
21083 (w32con_write_glyphs): Use frame specific terminal coding.
21084 (one_and_only_w32cons): New global variable.
21085 (initialize_w32_display): Use it for storing hooks.
21086 (create_w32cons_output): New function.
21087
21088 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21089 arg a frame.
21090
21091 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21092 Set window_system.
21093 (x_set_tool_bar_lines): Don't use updating_frame.
21094 (Fx_create_frame): Set terminal and ref count.
21095 (Fx_open_connection): Remove window-system check.
21096
21097 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21098
21099 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21100 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21101 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21102 Add frame arg.
21103 (x_delete_terminal, w32_create_terminal): New functions.
21104 (w32_term_init): Create a terminal.
21105 (w32_initialize): Move terminal specific initialization to
21106 w32_create_terminal.
21107
21108 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21109 (w32_clear_rect, w32_clear_area): Use background from frame.
21110 (w32_display_info): Add terminal.
21111 (w32_sys_ring_bell, x_delete_display): Declare here.
21112
21113 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21114
21115 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21116
211172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21118
21119 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21120 Fix get_named_tty calls for the controlling tty.
21121
211222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21123
194d44e7 21124 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21125
211262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21127
21128 * term.c (tty_insert_glyphs): Add missing first parameter.
21129
211302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21131
21132 * buffer.c (Fbuffer_list, Fbury_buffer):
21133 Take frame->buried_buffer_list into account.
21134
21135 * cm.c (current_tty): New variable, for cmputc().
21136 (cmputc): Use it.
21137 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21138 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21139 (cmgoto): Add tty parameter. Pass it on to calccost().
21140 Use emacs_tputs() instead of tputs().
21141
21142 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21143 tputs().
21144 (current_tty): New variable, for cmputc().
21145 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21146
21147 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21148 (internal_condition_case, internal_condition_case_1)
21149 (internal_condition_case_2): Don't abort when x_catching_errors.
21150
21151 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21152 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21153 prevent crashes caused by bogus longjmps in read_char.
21154
21155 * keymap.h (Fset_keymap_parent): Add EXFUN.
21156
21157 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21158 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21159 Remove redundant definition.
21160
21161 * macfns.c (x_set_mouse_color, x_make_gc):
21162 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21163
21164 * w32term.c (x_free_frame_resources):
21165 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21166 (w32_initialize): Use the accessor macros for terminal characteristics.
21167
21168 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21169 Use the accessor macros for terminal characteristics.
21170 * msdos.c (internal_terminal_init): Use the accessor macros for
21171 terminal characteristics.
21172 (ScreenVisualBell, internal_terminal_init):
21173 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21174
21175 * termopts.h (no_redraw_on_reenter): Declare.
21176
21177 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21178 (mark_terminals, mark_ttys): Declare.
21179 (Fgarbage_collect): Call them.
21180 (mark_object): Mark buried_buffer_list.
21181
21182 * prefix-args.c: Include stdlib.h for exit.
21183
21184 * syssignal.h: Add comment.
21185
21186 * indent.c: Include stdio.h.
21187
21188 * window.h (Vinitial_window_system): Declare.
21189 (Vwindow_system): Delete declaration.
21190
21191 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21192
21193 * image.c (lookup_image): Don't initialize `c' until the xasserts
21194 have been run.
21195
21196 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21197 FRAME_FOREGROUND_PIXEL.
21198
21199 * print.c (print_preprocess): Don't lose print_depth levels while
21200 iterating.
21201
21202 * widget.c (update_from_various_frame_slots):
21203 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21204
21205 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21206 frames.
21207 (window_internal_height): Remove bogus make_number call.
21208 (init_window_once): Call make_terminal_frame with two zero parameters.
21209
21210 * fileio.c (Fread_file_name): Update comment.
21211
21212 * callint.c (Fcall_interactively):
21213 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21214 Make sure it is correctly unwound.
21215
21216 * xsmfns.c (x_session_close): New function.
21217
21218 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21219 Delete declarations.
21220
21221 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21222 (x_output): Remove background_pixel and foreground_pixel fields.
21223 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21224 (x_delete_device, x_session_close): Declare.
21225
21226 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21227 (read_filtered_event): Call `read_char' with a local
21228 `wrong_kboard_jmpbuf'.
21229
21230 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21231 Don't call single_kboard_state. Use FRAME_RIF.
21232
21233 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21234 systems.
21235
21236 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21237 (Fframe_with_environment, Fset_input_meta_mode)
21238 (Fset_quit_char): EXFUN.
21239 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21240 (init_sys_modes, reset_sys_modes): Update prototypes.
21241 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21242
21243 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21244 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21245 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21246 Delete declarations.
21247 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21248 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21249 New declarations.
21250
21251 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21252 already does that during init_display(). Call syms_of_keymap
21253 before syms_of_keyboard. Call `syms_of_terminal'.
21254 Call set_initial_environment, not set_process_environment.
21255 (shut_down_emacs): Call reset_all_sys_modes() instead of
21256 reset_sys_modes().
21257
21258 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21259 (internal_resolve_face_name, resolve_face_name_error): New functions.
21260 (resolve_face_name): Protect against loops and errors thrown by Fget.
21261 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21262 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21263
21264 * scroll.c: Replace CURTTY() with local variables throughout the
21265 file (where applicable).
21266 (calculate_scrolling, calculate_direct_scrolling)
21267 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21268 characteristics.
21269
21270 * keymap.c (Vfunction_key_map): Remove.
21271 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21272 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21273 (Vkey_translation_map): Remove.
21274 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21275 (Fdescribe_buffer_bindings)
21276 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21277 Update for terminal-local key-translation-map.
21278
21279 * Makefile.in (callproc.o): Update dependencies.
21280 (lisp, shortlisp): Add termdev.elc.
21281 (obj): Add terminal.o.
21282 (terminal.o): Add dependencies.
21283 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21284 (data.o, fns.o): Add termhooks.h dependency.
21285 (SOME_MACHINE_LISP): Add dnd.elc.
21286 (minibuf.o): Fix typo.
21287 Update dependencies.
21288
21289 * data.c (do_symval_forwarding, store_symval_forwarding)
21290 (find_symbol_value): Use the selected frame's keyboard, not
21291 current_kboard.
21292
21293 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21294 Vwindow_system.
21295
21296 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21297 Fmenu_bar_open.
21298 (syms_of_xmenu): Update defsubr.
21299 (mouse_position_for_popup, Fx_popup_menu)
21300 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21301 (set_frame_menubar, free_frame_menubar)
b97439ce 21302 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21303 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21304 an X frame.
21305
21306 * xselect.c (x_own_selection): Abort if not an X frame.
21307 (some_frame_on_display): Check if it is an X frame.
21308 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21309
21310 * coding.c: Include frame.h and termhooks.h.
21311 (terminal_coding, keyboard_coding): Delete.
21312 (Fset_terminal_coding_system_internal)
21313 (Fset_keyboard_coding_system_internal)
21314 (Fkeyboard_coding_system)
21315 (Fterminal_coding_system): Add a terminal parameter.
21316 Get terminal_coding from the terminal.
21317 (init_coding_once): Don't call setup_coding_system here.
21318
21319 * dispextern.h (set_scroll_region, turn_off_insert)
21320 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21321 (tty_clear_end_of_line, tty_setup_colors)
21322 (delete_tty, updating_frame)
21323 (produce_special_glyphs, produce_glyphs, write_glyphs)
21324 (insert_glyphs): Remove.
21325 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21326 (tty_turn_off_highlight, get_tty_size): Add declaration.
21327 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21328
21329 * frame.h (enum output_method): Add output_initial.
21330 (struct x_output): Delete.
21331 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21332 Access foreground_pixel and background_pixel directly from the frame.
21333 (tty_display): Delete.
21334 (struct frame): Add buried_buffer_list, foreground_pixel,
21335 background_pixel and terminal. Delete kboard.
21336 (union output_data): Add tty.
21337 (FRAME_KBOARD): Get the kboard from the terminal.
21338 (FRAME_INITIAL_P): New macro.
21339 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21340 (Qterm_environment_variable, Qdisplay_environment_variable)
21341 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21342 New declarations.
21343
21344 * termchar.h (tty_output, tty_display_info): New structures.
21345 (tty_list): Declare.
21346 (FRAME_TTY, CURTTY): New macros.
21347 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21348 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21349 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21350 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21351
21352 * callproc.c: Include frame.h and termhooks.h, for terminal
21353 parameters.
21354 (add_env): New function.
21355 (child_setup): Use it.
21356 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21357 (getenv_internal): Fix get_terminal_param call.
21358 (Fgetenv_internal, egetenv): Update doc.
21359 (syms_of_callproc): Initialize Vprocess_environment to nil.
21360 Register and initialize them. Remove obsolete defvars. Update doc
21361 strings.
21362 (child_setup): Handle Vlocal_environment_variables.
21363 (getenv_internal): Add terminal parameter.
21364 Handle Vlocal_environment_variables.
21365 (Fgetenv_internal): Add terminal parameter.
21366 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21367 environment in a frame (not terminal) parameter. Update doc strings.
21368 (set_initial_environment): Rename from set_global_environment.
21369 Store Emacs environment in initial frame parameter.
21370
21371 * xdisp.c (redisplay_internal): Update references to
21372 `previous_terminal_frame'.
21373 (display_mode_line, Fformat_mode_line): Replace calls to
21374 `push_frame_kboard' with `push_kboard'.
21375 (get_glyph_string_clip_rects): Add extra parentheses and
21376 braces to prevent compiler warnings.
21377 (calc_pixel_width_or_height): Add xassert to check that the
21378 frame is alive. Don't call `lookup_image' on a termcap frame.
21379 (message2_nolog, message3_nolog, redisplay_internal)
21380 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21381 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21382 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21383 (Fx_display_pixel_width, Fx_display_pixel_height)
21384 (Fx_display_planes, Fx_display_color_cells)
21385 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21386 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21387 (Fx_display_backing_store, Fx_display_visual_class)
21388 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21389 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21390
21391 * xfns.c (x_set_foreground_color x_set_background_color)
21392 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21393 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21394 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21395 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21396 terminal that is being deleted.
21397 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21398 frame parameter, and make sure it overrides any user-supplied setting.
21399 (Fx_close_connection, Fx_synchronize): Unify argument names with
21400 the rest of the DEFUNs.
21401
21402 * dispnew.c (Fsend_string_to_terminal): Update call to
21403 `get_tty_terminal'.
21404 (Fredraw_frame, Fsend_string_to_terminal)
21405 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21406 FRAME_TERMCAP_P and FRAME_TTY.
21407 (window_change_signal): Don't believe width/height values that are
21408 impossibly small.
21409 (Vinitial_window_system): Rename from Vwindow_system.
21410 (termscript, Wcm, rif): Delete.
21411
21412 * termhooks.h (struct terminal): New struct containing the
21413 previously global text display hooks and new members NAME,
21414 DELETED and PARAM_ALIST.
21415 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21416 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21417 (FRAME_RIF): New macros.
21418 (get_terminal_param, get_device): New declarations.
21419 (termscript): Delete declaration.
21420
21421 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21422 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21423 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21424 FRAME_FOREGROUND_PIXEL.
21425 (x_fully_uncatch_errors): Disable definition.
21426 (x_scroll_bar_expose): Fix reference to foreground pixel.
21427 (XTread_socket): Disable loop on all X displays.
21428 (x_delete_terminal): Don't set terminal->deleted and let
21429 delete_terminal delete the frames on the terminal.
21430 (x_delete_display): Doc update to reflect changes in
21431 delete_terminal.
21432 (x_display_info) <terminal>: Move member earlier in the struct.
21433 (deleting_tty): Remove old variable.
21434 (Fsuspend_tty): Call clear_tty_hooks.
21435 (Fresume_tty, init_tty): Call set_tty_hooks.
21436 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21437 errors on X frames.
21438 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21439 (handle_one_xevent): Initialize `f' to NULL.
21440 (x_delete_terminal, x_create_terminal): New functions.
21441 (XTset_terminal_modes, XTreset_terminal_modes)
21442 (XTread_socket, x_connection_closed, x_term_init)
21443 (x_term_init, x_delete_display): Add terminal parameter.
21444 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21445 X connections.
21446
21447 * frame.c: Include termchar.h.
21448 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21449 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21450 (Qdisplay_environment_variable): New vars.
21451 (Fframep): Deal with output_initial.
21452 (Fframe-live-p): Doc fix.
21453 (Fwindow-system): New function.
21454 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21455 (make_terminal_frame): Don't create frames on a terminal that is
21456 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21457 (store_frame_param): Check for found_for_frame before calling XFRAME.
21458 (Fmake_terminal_frame): Handle NULL tty names correctly.
21459 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21460 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21461 frames to refer to a deleted frame in their 'environment parameter.
21462 (Fframe_with_environment): New function.
21463 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21464 (get_future_frame_param): New function.
21465 (Fmake_terminal_frame): Use it.
21466 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21467
21468 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21469 * sysdep.c (reset_sys_modes): Update for renames.
21470
21471 * keyboard.c (tty_read_avail_input): New function.
21472 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21473 (syms_of_keyboard): Defsubr them.
21474 (Fset_input_meta_mode, Fset_quit_char): New functions.
21475 (Fset_input_mode): Split to above functions.
21476 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21477 parameter. Use it in call to `read_char'.
21478 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21479 Set wrong_kboard_jmpbuf correctly in recursive calls.
21480 Use current_kboard to access Vkeyboard_translate_table.
21481 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21482 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21483 Update longjmp invocations. Remember the original current_kboard,
21484 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21485 changes it. Comment out unnecessary calls to
21486 `record_single_kboard_state' and `any_kboard_state'.
21487 Update recursive calls.
21488 (wrong_kboard_jmpbuf): Remove global variable.
21489 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21490 Handle deleted interrupted_kboards correctly; that is a legal
21491 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21492 and read_char calls. Abort if interrupted_kboard died in read_char.
21493 (any_kboard_state, single_kboard_state)
21494 (push_frame_kboard): Remove function.
21495 (pop_kboard): Switch out of single_kboard mode if the kboard has
21496 been deleted. Remove unused variable. Help debugging by not
21497 changing current_kboard unnecessarily. Set current_kboard to the
21498 kboard of the selected frame when the stored kboard object has
21499 been deleted before pop_kboard.
21500 (temporarily_switch_to_single_kboard): Change first parameter to a
21501 frame pointer. Throw an error when caller wants to change kboards
21502 while in single_kboard mode. Don't push_kboard if we weren't in
21503 single kboard state. Don't pop_kboard if we popped into any
21504 kboard state.
21505 (restore_kboard_configuration): Abort if pop_kboard changed the
21506 kboard in single_kboard mode. Call pop_kboard only after setting
21507 up single_kboard mode.
21508 (Frecursive_edit): Switch to single_kboard mode only in nested
21509 command loops.
21510 (cmd_error, command_loop, command_loop_1, timer_check):
21511 Comment out unnecessary call to `any_kboard_state' and
21512 `record_single_kboard_state'.
21513 (delete_kboard): Exit single_kboard mode if we have just deleted
21514 that kboard. Use FRAME_KBOARD.
21515 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21516 `fatal_error_signal'.
21517 (record_single_kboard_state): Don't push_kboard if we weren't in
21518 single kboard state. Don't pop_kboard if we popped into any
21519 kboard state.
21520 (push_frame_kboard): Rename to push_kboard.
21521 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21522 (read_avail_input): Read input from all terminals.
21523 (mark_kboards): Also mark Vkeyboard_translate_table.
21524 (kbd_buffer_store_event_hold): Simplify condition.
21525 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21526 (Vkeyboard_translate_table): Move to struct kboard.
21527 (init_kboard): Initialize Vkeyboard_translate_table.
21528 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21529 Vkeyboard_translate_table. Update doc strings. Update docs of
21530 local-function-key-map and function-key-map.
21531
21532 * terminal.c: New file.
21533
21534 * term.c: Include errno.h.
21535 (Vring_bell_function, device_list, initial_device)
21536 (next_device_id, ring_bell, update_begin, update_end)
21537 (set_terminal_window, cursor_to, raw_cursor_to)
21538 (clear_to_end, clear_frame, clear_end_of_line)
21539 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21540 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21541 (syms_of_term): Move their initialization to terminal.c.
21542 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21543 (Ftty_display_color_cells)
21544 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21545 (clear_tty_hooks, set_tty_hooks)
21546 (init_tty, maybe_fatal): New functions.
21547 (Ftty_type): Return nil if terminal is not on a tty instead of
21548 throwing an error. Doc update.
21549 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21550 Doc update. Initialize new subrs and variables.
21551 (delete_tty): Use terminal->deleted.
21552 (tty_set_terminal_modes): Rename from set_terminal_modes.
21553 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21554 (set_scroll_region): Rename to `tty_set_scroll_region'.
21555 (turn_on_insert): Rename to `tty_turn_on_insert'.
21556 (turn_off_insert): Rename to `tty_turn_off_insert'.
21557 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21558 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21559 (toggle_highligh): Rename to `tty_toggle_highlight'.
21560 (background_highlight): Rename to `tty_background_highlight'.
21561 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21562 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21563 (tty_set_scroll_region, tty_background_highlight)
21564 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21565 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21566 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21567 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21568 Add static modifier.
21569 (tty_reset_terminal_modes, tty_set_terminal_window)
21570 (tty_set_scroll_region, tty_background_highlight)
21571 (tty_highlight_if_desired, tty_cursor_to)
21572 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21573 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21574 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21575 renames.
21576
215772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21578
21579 * keyboard.c: Qrtl is new.
21580 (parse_tool_bar_item): Handle :rtl keyword.
21581 (syms_of_keyboard): Intern :rtl keyword.
21582
21583 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21584
21585 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21586 so no Lisp code is executed.
21587 (file_for_image, find_rtl_image): New functions.
21588 (xg_get_image_for_pixmap): Use file_for_image.
21589 (update_frame_tool_bar): If direction is RTL, use RTL image if
21590 defined. Use Gtk stock images if defined.
21591
215922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21593
21594 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21595 for nonexistent or zero-width glyph in composition glyph.
21596
215972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21598
21599 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21600
21601 * xdisp.c (Finvisible_p): New function.
21602 (syms_of_xdisp): defsubr it.
21603
216042007-08-24 Juanma Barranquero <lekktu@gmail.com>
21605
21606 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21607 Doc fixes.
21608
216092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21610
21611 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21612
216132007-08-24 Martin Rudalics <rudalics@gmx.at>
21614
21615 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21616 whether decoding has modified buffer contents.
21617
216182007-08-24 Jason Rumney <jasonr@gnu.org>
21619
21620 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21621 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21622 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21623 (init_svg_functions) [HAVE_NTGUI]: New function.
21624 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21625 (svg_load_image): Use them.
21626 (svg_load_image) [HAVE_NTGUI]: Implement background.
21627
216282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21629
21630 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21631 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21632 (LIBX): Remove @RSVG_LIBS@.
21633 (LIBES): Add $(RSVG_LIBS).
21634
21635 * image.c (svg_load_image): Blend with specified background if exists.
21636 Use IMAGE_BACKGROUND. Add Mac OS Support.
21637
21638 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21639 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21640 Remove macros.
21641 [MAC_OSX] (socket_callback): Do nothing.
21642 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21643 ReceiveNextEvent.
21644 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21645 socket_callback.
21646 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21647
216482007-08-22 Glenn Morris <rgm@gnu.org>
21649
21650 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21651
216522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21653
21654 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21655
21656 * image.c: Add support for SVG images. Some additional comments
21657 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21658 (svg_image_p): New function to test for SVG image.
21659 (svg_load): New function to load SVG image.
21660 (svg_load_image): New function, helper for svg_load.
21661 (Qsvg): New Lisp_object.
21662 (svg_keyword_index): New enum.
21663 (svg_format): New static `image_keyword' struct.
21664 (svg_type): New static `image_type' struct.
21665 (librsvg/rsvg.h): Include it.
21666
216672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21668
21669 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21670
216712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21672
21673 * lread.c (Qold_style_backquotes): New var.
21674 (syms_of_lread): Init and staticpro it.
21675 (load_warn_old_style_backquotes): New fun.
21676 (Fload): Use them to warn about old style backquotes.
21677 (end_of_file_error, Fload): Remove unused vars.
21678
21679 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21680
21681 * lread.c (Vold_style_backquotes): New var.
21682 (syms_of_lread): Init and export it to Elisp.
21683 (read1): Set it when we find an old-style (back)quote.
21684
216852007-08-22 Jason Rumney <jasonr@gnu.org>
21686
21687 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21688
216892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21690
21691 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21692
216932007-08-19 Richard Stallman <rms@gnu.org>
21694
21695 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21696
216972007-08-19 Andreas Schwab <schwab@suse.de>
21698
21699 * alloc.c (pure): Round PURESIZE up.
21700
217012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21702
21703 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21704 active frame.
21705
217062007-08-16 Richard Stallman <rms@gnu.org>
21707
21708 * eval.c (Fcommandp): Add parens to clarify.
21709
21710 * minibuf.c (Fall_completions): Use enum for type of table.
21711
21712 * emacs.c (USAGE2): Improve text.
21713
217142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21715
21716 * term.c (tty_default_color_capabilities): Declare static
21717 variables in file scope, to avoid HPUX compiler problem.
21718
217192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21720
21721 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21722 to gtk_toolbar_insert.
21723
217242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21725
21726 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21727
21728 * insdel.c (reset_var_on_error): New fun.
21729 (signal_before_change, signal_after_change):
21730 Use it to reset (after|before)-change-functions to nil in case of error.
21731 Bind inhibit-modification-hooks to t.
21732 Don't bind (after|before)-change-functions to nil while they run.
21733
217342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21735
21736 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21737 filling pixmap with stippled background.
21738
217392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21742 Don't use invisible frame as parent window for repositioning.
21743
217442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21745
21746 * print.c (new_backquote_output): Rename from old_backquote_output.
21747 (print): Inverse its logic (according to its name) so as to match the
21748 behavior of new_backquote_flag in lread.c.
21749
217502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21751
21752 * gmalloc.c (posix_memalign): New function.
21753
21754 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21755 ActivateControl/DeactivateControl here.
21756 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21757 frame-notice-user-settings is non-nil.
21758 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21759 for kEventParamFMFontStyle.
21760 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21761 mac_pass_command_to_system and mac_pass_control_to_system here.
21762 (XTread_socket): Call ActivateControl/DeactivateControl here.
21763 (XTread_socket) [TARGET_API_MAC_CARBON]:
21764 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21765 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21766 for window repositioning.
21767
217682007-08-08 Glenn Morris <rgm@gnu.org>
21769
21770 * Replace `iff' in doc-strings and comments.
21771
217722007-08-07 Chong Yidong <cyd@stupidchicken.com>
21773
21774 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21775
217762007-08-07 Martin Rudalics <rudalics@gmx.at>
21777
21778 * fileio.c (Finsert_file_contents): Run format-decode and
21779 after_insert_file_functions on entire buffer when REPLACE is
21780 non-nil and inhibit modification_hooks and point_motion_hooks.
21781 For consistency, run after_insert_file_functions iff something
21782 got inserted. Move signal_after_change and update_compositions
21783 after code running after_insert_file_functions. Make sure that
21784 undo_list doesn't record intermediate steps of the decoding process.
21785
217862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21787
21788 * emacs.c (main)
21789 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21790 Call malloc_enable_thread on interactive startup.
21791
21792 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21793 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21794 [USE_PTHREAD]: Conditionalize with it.
21795 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21796 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21797 New functions.
21798
217992007-08-06 Chong Yidong <cyd@stupidchicken.com>
21800
21801 * xdisp.c (redisplay_window): When restoring original buffer
21802 position, make sure it is still valid.
21803
21804 * image.c (png_load): Ignore png-supplied background color.
21805
218062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21807
21808 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21809 Use kCFAbsoluteTimeIntervalSince1970.
21810
21811 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21812 New variable.
21813 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21814 event loop should be quit.
21815 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21816 Quit dialog event loop if quit_dialog_event_loop is set.
21817
21818 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21819 (Selection): New typedef. Use instead of ScrapRef.
21820 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21821 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21822 (mac_clear_selection): Rename from clear_scrap.
21823 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21824 scrap_has_target_type. All uses changed.
21825 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21826 (mac_selection_has_target_p): New functions.
21827 (mac_put_selection_value): Rename from put_scrap_string.
21828 (mac_get_selection_value): Rename from get_scrap_string.
21829 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21830 (put_scrap_private_timestamp, scrap_has_target_type)
21831 (get_scrap_private_timestamp): Remove functions.
21832 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21833 (x_own_selection, x_get_local_selection):
21834 Use mac_valid_selection_value_p.
21835 (x_own_selection): Don't use put_scrap_private_timestamp.
21836 Record OWNERSHIP-INFO into Vselection_alist instead.
21837 (x_get_local_selection): Don't check type if request is local.
21838 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21839 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21840
218412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21842
21843 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21844 add comment explaining why.
21845
218462007-08-03 Richard Stallman <rms@gnu.org>
21847
21848 * fileio.c (Fvisited_file_modtime): Use make_time.
21849
218502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21851
21852 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21853 build.
21854
218552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21856
21857 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21858
218592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21860
21861 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21862
218632007-07-30 Richard Stallman <rms@gnu.org>
21864
21865 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21866
218672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21868
21869 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21870
218712007-07-28 Nick Roberts <nickrob@snap.net.nz>
21872
21873 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21874 remote default-directory.
21875
21876 * buffer.c (mode-line-format): Update doc string.
21877
218782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21879
21880 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21881 scroll bar gap.
21882 (x_scroll_bar_create): Set bar->fringe_extended_p.
21883 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21884 on frame edge. Check fringe background extension. Don't clear
21885 extended fringe background area.
21886
21887 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21888 (w32_fill_area): Enclose multiple statements with do ... while (0).
21889
21890 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21891 Extend fringe background to scroll bar gap.
21892 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21893 Set bar->fringe_extended_p.
21894 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21895 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21896 background extension. Don't clear extended fringe background area.
21897
21898 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21899 New member fringe_extended_p.
21900
219012007-07-25 Glenn Morris <rgm@gnu.org>
21902
21903 * Relicense all FSF files to GPLv3 or later.
21904
21905 * COPYING: Switch to GPLv3.
21906
219072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21908
21909 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21910
21911 * data.c (Finteractive_form): Check for the presence of an
21912 `interactive-form' symbol property more thoroughly.
21913
21914 * data.c (Finteractive_form): Use an `interactive-form' property if
21915 present, analogous to the function-documentation property.
21916
219172007-07-24 Jason Rumney <jasonr@gnu.org>
21918
21919 * w32fns.c (x_real_positions): Get real position from OS instead of
21920 calculating it.
21921
219222007-07-23 Jason Rumney <jasonr@gnu.org>
21923
21924 * filelock.c (current_lock_owner): Allow for @ sign in username.
21925
219262007-07-22 Nick Roberts <nickrob@snap.net.nz>
21927
21928 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21929 remote default-directory.
21930
21931 * buffer.c (mode-line-format): Describe above case in doc string.
21932
219332007-07-20 Eli Zaretskii <eliz@gnu.org>
21934
21935 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21936 Define if not defined.
21937
219382007-07-18 Jason Rumney <jasonr@gnu.org>
21939
21940 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21941
219422007-07-18 Richard Stallman <rms@gnu.org>
21943
21944 * data.c (Fsetq_default): Doc fix.
21945
21946 * eval.c (Fsetq): Doc fix.
21947
219482007-07-18 Juanma Barranquero <lekktu@gmail.com>
21949
21950 * coding.c (Ffind_operation_coding_system):
21951 * eval.c (For, Fand): Doc fixes.
21952 Reported by Johan Bockgård.
21953
219542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21955
21956 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21957
21958 * xterm.h: Declare x_ewmh_activate_frame.
21959
21960 * xterm.c (x_ewmh_activate_frame): New function.
21961 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21962
219632007-07-17 Martin Rudalics <rudalics@gmx.at>
21964
21965 * window.c (Fdisplay_buffer): If largest or LRU window is the
21966 only window, split it even if it is not eligible for splitting.
21967 This restores the original behavior broken by the 2007-07-15
21968 change.
21969
219702007-07-17 Glenn Morris <rgm@gnu.org>
21971
21972 * abbrev.c (abbrev_check_chars): New function.
21973 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21974 Call abbrev_check_chars to check abbrev characters are word
21975 constituents. Doc fix.
21976
219772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21978
21979 * process.c (Fstart_process, Fmake_network_process)
21980 (read_process_output): Fix up last changes.
21981
219822007-07-16 Eli Zaretskii <eliz@gnu.org>
21983
21984 * makefile.w32-in (clean): Don't delete *~.
21985
219862007-07-16 Andreas Schwab <schwab@suse.de>
21987
21988 * window.c (Fdisplay_buffer): Use NILP.
21989 (Fset_window_scroll_bars): Likewise.
21990
219912007-07-15 Martin Rudalics <rudalics@gmx.at>
21992
21993 * window.c (window_min_size_2): New function.
21994 (window_min_size_1, size_window, Fdisplay_buffer)
21995 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21996 windows without mode- or header-lines when window-min-height is
21997 too small.
21998 (size_window): Reset nodelete_p after testing it, following an
21999 earlier note by Kim F. Storm.
22000 (display_buffer): Do not set split_height_threshold to twice the
22001 value of window_min_height to avoid changing the value of a
22002 customizable variable. Rather explicitly check whether the
22003 height of the window that shall be splitted is at least as large
22004 as split_height_threshold.
22005 (Fwindow_full_width_p): New defun.
22006 (syms_of_window): Defsubr it.
22007
22008 * window.h: Add EXFUN for Fwindow_full_width_p.
22009
220102007-07-14 Jason Rumney <jasonr@gnu.org>
22011
22012 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22013
220142007-07-14 Richard Stallman <rms@gnu.org>
22015
22016 * eval.c (maybe_call_debugger): New function.
22017 (find_handler_clause): Use maybe_call_debugger.
22018 Call it when the handler says `debug'.
22019 Eliminate DEBUGGER_VALUE_PTR.
22020 (Fsignal): Eliminate debugger_value.
22021 (Qdebug): New variable.
22022 (syms_of_eval): Initialize it.
22023
220242007-07-14 Juanma Barranquero <lekktu@gmail.com>
22025
22026 * eval.c (Fprogn):
22027 * keyboard.c (Ftrack_mouse):
22028 * print.c (Fwith_output_to_temp_buffer):
22029 * window.c (Fsave_window_excursion): Doc fix.
22030
220312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22032
22033 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22034
220352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22036
22037 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22038 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22039 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22040 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22041 Remove unused encoding_carryover.
22042 * process.c: Adjust all functions accordingly.
22043
220442007-07-12 Richard Stallman <rms@gnu.org>
22045
22046 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22047
220482007-07-11 Jason Rumney <jasonr@gnu.org>
22049
22050 * makefile.w32-in (LIBS): Include OLE32.
22051
22052 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22053 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22054
220552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22056
22057 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22058 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22059 from a Lisp_Object into a bare pointer.
22060 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22061 Adjust the code correspondingly.
22062
22063 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22064
22065 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22066 (term_show_mouse_face): Remove unused var `j'.
22067 (handle_one_term_event): Remove unused vars `i' and `j'.
22068 Don't cast return value of ttyname since it's not necessary.
22069
220702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22071
22072 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22073 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22074
22075 * fns.c (map_char_table): Use an array of int for `indices' rather than
22076 an array of Lisp_Objects (which are only ever integers anyway).
22077 (Fmap_char_table): Update caller.
22078 * lisp.h: Update prototype.
22079 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22080 * fontset.c (Ffontset_info):
22081 * casetab.c (set_case_table): Update callers.
22082
22083 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22084
22085 * keymap.c (struct accessible_keymaps_data)
22086 (struct where_is_internal_data): New structures.
22087 (accessible_keymaps_1, where_is_internal_1): Use them to change
22088 interface to adhere to the one used by map_keymap.
22089 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22090 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22091
22092 * keymap.h (map_keymap_function_t): More informative prototype.
22093
220942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22095
22096 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22097 (looking_at_1): Don't change search_regs and last_thing_searched
22098 if `inhibit-changing-match-data' is non-nil.
22099 (string_match_1, search_buffer, set_search_regs): Likewise.
22100 (syms_of_search): Add Lisp level definition for
22101 `inhibit-changing-match-data' and set it to nil.
22102 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22103 start and end of the match, instead of using values in search_regs.
22104
221052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22106
22107 * minibuf.c (Fcompleting_read): New value `confirm-only'
22108 for `require-match'.
22109
221102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22111
22112 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22113 part of the 2007-06-27 change to syms_of_fileio.
22114
221152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22116
22117 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22118 Check WINDOWP before using XWINDOW. Consolidate return statements.
22119
221202007-06-27 Richard Stallman <rms@gnu.org>
22121
22122 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22123
221242007-06-27 Juanma Barranquero <lekktu@gmail.com>
22125
22126 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22127
221282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22129
22130 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22131 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22132 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22133 (_free_internal, memalign): Use them.
22134 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22135 Initialize to PTHREAD_MUTEX_INITIALIZER.
22136 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22137 (morecore_nolock): Rename from morecore. All uses changed.
22138 Use only nolock versions of internal allocation functions.
22139 (_malloc_internal_nolock, _realloc_internal_nolock)
22140 (_free_internal_nolock): New functions created from
22141 _malloc_internal, _realloc_internal, and _free_internal.
22142 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22143 Copy hook value to automatic variable before its use.
22144 (memalign): Copy hook value to automatic variable before its use.
22145
221462007-06-26 Kenichi Handa <handa@m17n.org>
22147
22148 * coding.c (Ffind_operation_coding_system): Docstring improved.
22149 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22150
221512007-06-25 David Kastrup <dak@gnu.org>
22152
22153 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22154 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22155 cater for additional parameter.
22156
22157 * keymap.h: Adjust number of parameters to `current-active-maps'.
22158
22159 * doc.c (Fsubstitute_command_keys): Adjust call of
22160 `current-active-maps'.
22161
221622007-06-25 David Kastrup <dak@gnu.org>
22163
22164 * callint.c (Fcall_interactively): Make the parsing of interactive
22165 specs somewhat more readable.
22166
221672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22168
22169 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22170 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22171 if extended background has already been filled.
22172
221732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22174
22175 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22176 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22177
22178 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22179 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22180 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22181 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22182 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22183 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22184 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22185 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22186 Run timers during dialog popup.
22187 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22188
221892007-06-21 Jason Rumney <jasonr@gnu.org>
22190
22191 * image.c (convert_mono_to_color_image): Swap fore and background.
22192
221932007-06-20 Jason Rumney <jasonr@gnu.org>
22194
22195 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22196 (w32_free_bdf_font): Unmap memory not handle.
22197
221982007-06-20 Sam Steingold <sds@gnu.org>
22199
22200 * gmalloc.c (__morecore): Fix the declaration to comply with the
22201 definition.
22202
222032007-06-20 Juanma Barranquero <lekktu@gmail.com>
22204
22205 * w32term.c (w32_delete_display): Remove leftover declaration.
22206 (w32_define_cursor, w32_initialize): Make static.
22207
22208 * w32.c (_wsa_errlist): Fix typo in error message.
22209 (init_environment): Ignore any environment variable from the
22210 registry having a null value.
22211
222122007-06-20 Glenn Morris <rgm@gnu.org>
22213
22214 * Makefile.in (LIBGIF): Default to -lgif.
22215
222162007-06-17 Jason Rumney <jasonr@gnu.org>
22217
22218 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22219 unicode strings.
22220
222212007-06-16 Juanma Barranquero <lekktu@gmail.com>
22222
22223 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22224 Fix typo in docstring.
22225
222262007-06-16 Eli Zaretskii <eliz@gnu.org>
22227
22228 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22229 and their keybindings.
22230
222312007-06-15 Chong Yidong <cyd@stupidchicken.com>
22232
22233 * composite.c (update_compositions): Fix last fix.
22234
222352007-06-14 Jason Rumney <jasonr@gnu.org>
22236
22237 * w32.c (get_process_times_fn): New function pointer.
22238 (globals_of_w32): Intialize it if present in kernel32.dll.
22239 (w32_get_internal_run_time): New function.
22240
22241 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22242
222432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22244
22245 * composite.c (update_compositions): Check the validness of
22246 compositions.
22247
222482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22249
22250 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22251 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22252
22253 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22254 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22255
22256 * macgui.h (USE_MAC_TOOLBAR): New define.
22257
22258 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22259 Return immediately unless popup is activated.
22260
22261 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22262 background to scroll bar gap.
22263 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22264 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22265 scroll bars on frame edge. Check fringe background extension.
22266 Don't clear extended fringe background area.
22267 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22268 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22269 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22270 [USE_MAC_TOOLBAR]: New macros.
22271 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22272 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22273 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22274 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22275 [USE_MAC_TOOLBAR]: New functions.
22276 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22277 manually if previous repositioning has failed.
22278 (mac_handle_keyboard_event): Use precomputed event kind.
22279 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22280 as tool bar item click. Handle mouse movement over tool bar items.
22281
22282 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22283 toolbar_win_gravity.
22284 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22285 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22286 Add externs.
22287
22288 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22289 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22290
222912007-06-14 Chong Yidong <cyd@stupidchicken.com>
22292
22293 * image.c (search_image_cache): Remove unused variable.
22294
222952007-06-13 Chong Yidong <cyd@stupidchicken.com>
22296
22297 * xfns.c, xmenu.c: Link to xaw3d if available.
22298
222992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22300
22301 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22302 frame_foreground and frame_background.
22303
22304 * image.c (lookup_image): Save frame foreground and background colors.
22305 (search_image_cache): Check if saved and current frame colors match.
22306
223072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22308
22309 * regex.c (regex_compile): Remove the `regnum' counter.
22310 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22311
223122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22313
22314 * term.c: Include intervals.h to declare Fget_text_property.
22315
223162007-06-10 Jason Rumney <jasonr@gnu.org>
22317
22318 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22319
223202007-06-08 Juanma Barranquero <lekktu@gmail.com>
22321
22322 * callint.c (Fcall_interactively):
22323 * editfns.c (Fdelete_and_extract_region):
22324 * fileio.c (Fread_file_name):
22325 * fns.c (Fmapconcat):
22326 * keyboard.c (cmd_error_internal):
22327 * keymap.c (Fkey_description):
22328 * lread.c (openp):
22329 * minibuf.c (read_minibuf):
22330 * search.c (wordify):
22331 * sunfns.c (sel_read):
22332 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22333 * xfns.c (x_default_scroll_bar_color_parameter):
22334 * xmenu.c (menu_help_callback):
22335 * xselect.c (Fx_get_atom_name):
22336 * xterm.c (x_term_init): Use empty_unibyte_string.
22337
223382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22339
22340 * alloc.c (init_strings): Initialize canonical empty strings.
22341 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22342 canonical empty string when the requested size is 0.
22343
22344 * emacs.c (empty_unibyte_string): Rename from empty_string.
22345 (empty_multibyte_string): New canonical empty string.
22346 (syms_of_emacs): Don't initialize empty_string.
22347
22348 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22349 string, if appropriate.
22350 (empty_unibyte_string, empty_multibyte_string): New externs.
22351 (empty_string): Remove extern.
22352
22353 * lread.c (syms_of_lread): Use empty_unibyte_string.
22354
223552007-06-07 Jason Rumney <jasonr@gnu.org>
22356
22357 * s/ms-w32.h: Don't define HAVE_TZNAME.
22358
22359 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22360
223612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22362
22363 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22364
22365 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22366 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22367
22368 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22369 Don't call next handler.
22370 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22371 Remove argument. Install handler to application.
22372 (set_frame_menubar): Don't change deep_p.
22373 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22374 FRAME_OUTER_TO_INNER_DIFF_Y.
22375 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22376 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22377 [HAVE_DIALOGS]: New macros.
22378 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22379 Use them.
22380 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22381
22382 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22383 init_service_handler. All callers changed. Return OSStatus value.
22384
22385 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22386 All callers changed so as not to call SetPortWindowPort.
22387 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22388 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22389 mac_draw_string_common.
22390 (mac_draw_image_string_qd): Likewise.
22391 (mac_draw_string_common): Use them. Add INLINE.
22392 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22393 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22394 GetGlobalMouse.
22395 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22396 and FRAME_OUTER_TO_INNER_DIFF_Y.
22397 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22398 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22399 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22400 repositioning window to mac_handle_window_event.
22401 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22402 saving window location to mac_handle_window_event
22403 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22404 (install_menu_target_item_handler): Remove argument in extern.
22405 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22406 Also accept command events.
22407 (do_keystroke): New function created from XTread_socket.
22408 (init_command_handler): Remove functions.
22409 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22410 and save window location by kEventWindowShowing and kEventWindowHiding
22411 handlers here. Don't call next handler for window state change and
22412 focus events.
22413 (mac_handle_application_event, mac_handle_keyboard_event)
22414 [TARGET_API_MAC_CARBON]: New functions.
22415 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22416 kEventWindowShowing and kEventWindowHiding events. Move installation
22417 of mouse, font, text input and menu target item handlers to
22418 install_application_handler.
22419 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22420 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22421 New function.
22422 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22423 Register it.
22424 (XTread_socket) [TARGET_API_MAC_CARBON]:
22425 Consolidate SendEventToEventTarget calls.
22426 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22427 Move application activation handler to mac_handle_application_event.
22428 Move keyboard handler to mac_handle_keyboard_event.
22429 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22430 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22431 init_command_handler. Call install_application_handler.
22432
22433 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22434 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22435
224362007-06-07 Glenn Morris <rgm@gnu.org>
22437
22438 * emacs.c (main): Use `emacs-copyright' in --version output.
22439
224402007-06-06 Chong Yidong <cyd@stupidchicken.com>
22441
22442 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22443
224442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22445
22446 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22447
22448 * macgui.h: Replace WindowPtr with WindowRef.
22449
22450 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22451 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22452 Replace ControlHandle with ControlRef.
22453 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22454
22455 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22456 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22457 Replace ControlHandle with ControlRef.
22458 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22459 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22460
22461 * macterm.h (struct scroll_bar): Rename member control_handle_low
22462 and control_handle_high to control_ref_low and control_ref_high.
22463 All uses changed.
22464 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22465 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22466 respectively. All uses changed.
22467 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22468 (install_window_handler, remove_window_handler): Replace WindowPtr
22469 with WindowRef in externs.
22470
224712007-06-05 Juanma Barranquero <lekktu@gmail.com>
22472
22473 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22474
224752007-06-03 Nick Roberts <nickrob@snap.net.nz>
22476
22477 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22478
22479 * frame.c (Fmouse_position, Fmouse_pixel_position):
22480 Condition on HAVE_GPM too.
22481
22482 * term.c (term_mouse_highlight): Remove unused variables.
22483 (Fterm_open_connection): Set gpm_zerobased to 1.
22484 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22485 Use zero based co-ordinates.
22486 (handle_one_term_event): Report a drag as mouse movement too.
22487
22488 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22489
224902007-06-03 Chong Yidong <cyd@stupidchicken.com>
22491
22492 * image.c (search_image_cache): New function. Require background
22493 color match if background color is unspecified in the image spec.
22494 (uncache_image, lookup_image): Use it.
22495
224962007-06-01 Juanma Barranquero <lekktu@gmail.com>
22497
22498 * window.c (Fshrink_window): Reflow docstring.
22499
225002007-06-02 Chong Yidong <cyd@stupidchicken.com>
22501
22502 * Version 22.1 released.
22503
225042007-06-01 Richard Stallman <rms@gnu.org>
22505
22506 * xfns.c (x_encode_text): Add GCPRO.
22507
225082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22509
22510 * xfns.c (x_set_name_internal): Save encoded name before
22511 x_encode_text in case string data is relocated.
22512
225132007-05-31 Richard Stallman <rms@gnu.org>
22514
22515 * buffer.c (syms_of_buffer): Doc fix.
22516
225172007-05-30 Nick Roberts <nickrob@snap.net.nz>
22518
22519 * sysdep.c (init_sys_modes): Add rather than replace with
22520 O_NONBLOCK.
22521
22522 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22523 term_mouse_moveto.
22524
22525 * termhooks.h (term_mouse_moveto): New extern.
22526
22527 * term.c (mouse_face_window): Rename...
22528 (Qmouse_face_window): ...to this.
22529 (term_show_mouse_face, term_clear_mouse_face)
22530 (term_mouse_highlight): Use Qmouse_face_window.
22531 (term_mouse_moveto): New function.
22532 (term_mouse_position): Make it work.
22533 (syms_of_term): Uncomment assignment to mouse_position_hook.
22534 Staticpro Qmouse_face_window.
22535
225362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22537
22538 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22539 around current_column call.
22540
225412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22542
22543 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22544 * xdisp.c (next_element_from_buffer):
22545 * window.c (delete_window):
22546 * term.c (term_mouse_highlight):
22547 * msdos.c (getdefdir):
22548 * macterm.c (mac_create_bitmap_from_bitmap_data)
22549 (init_font_name_table):
22550 * fns.c (Fsxhash):
22551 * data.c (Fmake_local_variable):
22552 * ccl.c (ccl_driver): Likewise.
22553
225542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22555
22556 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22557 Call mac_wakeup_from_rne on window size change.
22558
225592007-05-25 Chong Yidong <cyd@stupidchicken.com>
22560
22561 * image.c (uncache_image): Fix typo.
22562
225632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22564
22565 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22566
225672007-05-22 Richard Stallman <rms@gnu.org>
22568
22569 * xterm.c (x_connection_closed): Remove NO_RETURN.
22570
225712007-05-22 Martin Rudalics <rudalics@gmx.at>
22572
22573 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22574
225752007-05-21 Chong Yidong <cyd@stupidchicken.com>
22576
22577 * image.c (uncache_image): New function.
22578 (Fimage_refresh): New function.
22579
225802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22581
22582 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22583
225842007-05-20 Nick Roberts <nickrob@snap.net.nz>
22585
22586 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22587 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22588
225892007-05-20 Nick Roberts <nickrob@snap.net.nz>
22590
22591 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22592 conditional on [HAVE_GPM_H].
22593
225942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22595
22596 * syntax.c (skip_chars): Update syntax-table only after we checked that
22597 the new location is valid.
22598
225992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22600
22601 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22602 mac_get_window_bounds.
22603
226042007-05-20 Nick Roberts <nickrob@snap.net.nz>
22605
22606 * Makefile.in (LIBGPM): Allow it to be set from configure.
22607 If set then link Emacs with it.
22608
22609 * config.in: Regenerate.
22610
22611 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22612 New externs.
22613
22614 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22615 Include gpm.h.
22616 (handle_one_term_event, term_gpm): New externs.
22617
22618 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22619 and allow it to be interrupted by SIGIO.
22620
22621 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22622 (wait_reading_process_output): Wait on gpm_fd too.
22623 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22624 (add_gpm_wait_descriptor_called_flag): New variable.
22625 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22626
22627 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22628 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22629 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22630 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22631 (make_lispy_event): Add case GPM_CLICK_EVENT.
22632 (read_avail_input): Handle mouse input.
22633
22634 * term.c (write_glyphs_with_face): New function.
22635 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22636 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22637 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22638 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22639 (last_mouse_x, last_mouse_y): New variables.
22640 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22641 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22642 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22643 (Fterm_close_connection): New functions.
22644 (term_init): Initialise mouse_face_window.
22645
226462007-05-19 Chong Yidong <cyd@stupidchicken.com>
22647
22648 * xdisp.c (redisplay_window): If first window line is a
22649 continuation line, recompute the new window start instead of
22650 recentering.
22651
226522007-05-18 Glenn Morris <rgm@gnu.org>
22653
22654 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22655 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22656
226572007-05-17 Glenn Morris <rgm@gnu.org>
22658
22659 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22660
226612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22662
22663 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22664 dead key repeat and up events.
22665
226662007-05-14 Chong Yidong <cyd@stupidchicken.com>
22667
22668 * image.c (pbm_load): Check image size for monochrome pbm.
22669
226702007-05-13 Chong Yidong <cyd@stupidchicken.com>
22671
22672 * xterm.c (XTread_socket): Revert last change.
22673
226742007-05-12 Chong Yidong <cyd@stupidchicken.com>
22675
22676 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22677
22678 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22679
226802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22681
22682 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22683 mixup (YAILOM).
22684
226852007-05-07 Andreas Schwab <schwab@suse.de>
22686
22687 * keymap.c (Flookup_key): Fix typo in last change.
22688
226892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22690
22691 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22692 mapping for unibyte strings.
22693
226942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22695
22696 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22697 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22698
226992007-04-29 Richard Stallman <rms@gnu.org>
22700
22701 * insdel.c (replace_range): For undo, record insertion first.
22702
227032007-04-29 Andreas Schwab <schwab@suse.de>
22704
22705 * lisp.h (VECSIZE): Use OFFSETOF.
22706
227072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22708
22709 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22710 disabled lines.
22711
227122007-04-28 Richard Stallman <rms@gnu.org>
22713
22714 * lread.c (read_escape): In a string, \s is always space.
22715
227162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22717
22718 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22719
22720 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22721 submenu for menu bar items.
22722
22723See ChangeLog.10 for earlier changes.
22724
22725;; Local Variables:
22726;; coding: utf-8
22727;; add-log-time-zone-rule: t
aac0c6e3
MR
22728;; End:
22729
e3eb1dae 22730 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22731
22732 This file is part of GNU Emacs.
22733
22734 GNU Emacs is free software: you can redistribute it and/or modify
22735 it under the terms of the GNU General Public License as published by
22736 the Free Software Foundation, either version 3 of the License, or
22737 (at your option) any later version.
22738
22739 GNU Emacs is distributed in the hope that it will be useful,
22740 but WITHOUT ANY WARRANTY; without even the implied warranty of
22741 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22742 GNU General Public License for more details.
22743
22744 You should have received a copy of the GNU General Public License
22745 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22746
22747;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40