Remove NOMULTIPLEJOBS, unused.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
4285ac5a
DN
12010-04-21 Dan Nicolaescu <local_user@dannlt>
2
3ec759e7
DN
3 Remove NOMULTIPLEJOBS, unused.
4 * s/template.h (NOMULTIPLEJOBS):
5 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6
4285ac5a
DN
7 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
8 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
10 detects -znocombreloc and passes it to the linker
11 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
12
2807228d
GM
132010-04-21 Glenn Morris <rgm@gnu.org>
14
15 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
16
574c05e2
KK
172010-04-21 Karel Klíč <kklic@redhat.com>
18
19 * Makefile.in (LIBSELINUX_LIBS): New.
20 (LIBES): Add $LIBSELINUX_LIBS.
21 * eval.c, lisp.h (call7): New function.
22 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
23 (Ffile_selinux_context, Fset_file_selinux_context):
24 New functions.
25 (Fcopy_file): New parameter preserve-selinux-context.
26 (Frename_file): Preserve selinux context when renaming by copy-file.
27
91eac4bb
JB
282010-04-21 Juanma Barranquero <lekktu@gmail.com>
29 Eli Zaretskii <eliz@gnu.org>
30
50426a04
JB
31 Don't depend on cm.c or termcap.c on Windows, use stubs.
32 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
33 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
34 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
35 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
36 (sys_tputs, sys_tgetstr): New stubs.
37 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
38 (tputs, tgetstr): New; define to sys_*.
91eac4bb 39
938efb77
JB
402010-04-20 Juanma Barranquero <lekktu@gmail.com>
41
42 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
43
b4bf28b7
SM
442010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
45
8b1e1112
SM
46 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
47 Just signal a warning rather than an error when inside a let.
48 (Fmake_variable_frame_local): Add the same test.
49
933ac235
SM
50 * font.c (syms_of_font): Make the style table vars read-only.
51
b4bf28b7
SM
52 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
53 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
54
55 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
56
93d68d0c
EZ
572010-04-20 Eli Zaretskii <eliz@gnu.org>
58
59 Fix R2L paragraph display on TTY.
60
61 * xdisp.c (unproduce_glyphs): New function.
62 (display_line): Use it when produced glyphs are discarded from R2L
63 glyph rows.
64 (append_composite_glyph): In R2L rows, prepend the glyph rather
65 than appending it.
66
67 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
68 rather than append it. Set up the resolved_level and bidi_type
69 attributes of the appended glyph.
283ccc18
EZ
70 (produce_special_glyphs): Mirror the backslash continuation
71 character in R2L lines.
93d68d0c 72
283ccc18 73 Implement display of R2L paragraphs in GUI sessions.
26cdf528 74
283ccc18
EZ
75 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
76 append_stretch_glyph.
77 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
78 off-by-one error in computing x at end of text in the row.
79 (append_stretch_glyph): In reversed row, prepend the glyph rather
80 than append it. Set resolved_level and bidi_type of the glyph.
81 (extend_face_to_end_of_line): If the row is reversed, prepend a
82 stretch glyph whose width is such that the rightmost glyph will be
83 drawn at the right margin of the window. Fix off-by-one error on
84 TTY frames in testing whether a line needs face extension. Fix
85 face extension at ZV. If this is the last glyph row, use
86 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
87 region face.
88 (set_cursor_from_row, display_line): Use
26cdf528
EZ
89 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
90 row->continuation_lines_width.
283ccc18
EZ
91 (next_element_from_buffer): Don't call bidi_paragraph_init if we
92 are at ZV. Fixes a crash when reseated to ZV by
93 try_window_reusing_current_matrix.
45903529
EZ
94 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
95 which happens with R2L glyph rows. Fixes a crash when inserting a
96 character at end of an R2L line.
283ccc18
EZ
97 (set_cursor_from_row): Don't be fooled by truncated rows: don't
98 treat them as having zero-width characters. Improve comments.
99 Don't reverse pos_before and pos_after for reversed glyph rows.
100 Set cursor.x to negative value when the cursor might be on the
101 left fringe.
102 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
103 left fringe, not the right one.
f951a506
EZ
104 (notice_overwritten_cursor, draw_phys_cursor_glyph)
105 (erase_phys_cursor): For reversed cursor_row, support cursor on
106 the left fringe.
107
283ccc18
EZ
108 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
109 of continuation indicators on the fringes.
110 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
111 left fringe.
112
f951a506
EZ
113 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
114 draw cursor on the left fringe.
115
116 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
117 cursor on the left fringe.
118
f951a506
EZ
119 * dispnew.c (update_text_area): Handle reversed desired rows when
120 the cursor is on the left fringe.
121 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
122 below, not by 0, for when the cursor is on the left fringe.
123
3bb49aaf
JD
1242010-04-20 Jan Djärv <jan.h.d@swipnet.se>
125
126 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
127 widget is a scrollbar.
128
c0be27fd
KH
1292010-04-20 Kenichi Handa <handa@m17n.org>
130
131 * charset.c (char_charset): Consider Vcharset_non_preferred_head
132 only when the arg CHARSET_LIST is nil.
133
ce5b453a
SM
1342010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 Make variable forwarding explicit rather the using special values.
137 Basically, this makes the structure of buffer-local values and object
138 forwarding explicit in the type of Lisp_Symbols rather than use
139 special Lisp_Objects for that. This tends to lead to slightly more
140 verbose code, but is more C-like, simpler, and makes it easier to make
141 sure we handled all cases, among other things by letting the compiler
142 help us check it.
143 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
144 Removing forwarding objects.
145 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
146 (struct Lisp_Symbol): Make the various forms of variable-forwarding
147 explicit rather than hiding them inside Lisp_Object "values".
148 (XFWDTYPE): New macro.
149 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
150 (XBUFFER_LOCAL_VALUE): Remove.
151 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
152 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
153 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
154 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
155 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
156 Remove the Lisp_Misc_* header.
157 (struct Lisp_Buffer_Local_Value): Redefine.
158 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
159 (struct Lisp_Misc_Any): Add filler to get the right size.
160 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
161 Lisp_Intfwd.
162 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
163 (DEFVAR_KBOARD): Allocate a forwarding object.
164 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
165 (let_shadows_global_binding_p): New function.
166 (union Lisp_Val_Fwd): New type.
167 (make_blv): New function.
168 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
169 (store_symval_forwarding, swap_in_global_binding, Fboundp)
170 (swap_in_symval_forwarding, find_symbol_value, Fset)
171 (let_shadows_buffer_binding_p, set_internal, default_value)
172 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
173 (Fkill_local_variable, Fmake_variable_frame_local)
174 (Flocal_variable_p, Flocal_variable_if_set_p)
175 (Fvariable_binding_locus):
176 * xdisp.c (select_frame_for_redisplay):
177 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
178 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
179 * frame.c (store_frame_param):
180 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
181 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
182 value structure.
183 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
184 (clone_per_buffer_values): Only adjust markers into the current buffer.
185 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
186 (Fbuffer_local_value, set_buffer_internal_1)
187 (swap_out_buffer_local_variables):
188 Adapt to the new symbol value structure.
189 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
190 (defvar_per_buffer): Take a new arg for the fwd object.
191 (buffer_lisp_local_variables): Return a proper alist (different fix
192 for bug#4138).
193 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
194 (Fgarbage_collect): Don't handle buffer_defaults specially.
195 (mark_object): Handle new symbol value structure rather than the old
196 special Lisp_Misc_* objects.
197 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
198 * term.c (set_tty_color_mode):
199 * bidi.c (bidi_initialize): Don't access the ->value field directly.
200 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
201 a buffer_local_flags.
202 * print.c (print_object): Get rid of impossible forwarding objects.
203
fd3998ff
EZ
2042010-04-19 Eli Zaretskii <eliz@gnu.org>
205
206 * bidi.c (bidi_get_type, bidi_get_category)
207 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
208 (bidi_type_of_next_char, bidi_level_of_next_char):
209 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 210
e42cd1a7
JB
2112010-04-19 Juanma Barranquero <lekktu@gmail.com>
212
213 * dired.c (Ffile_attributes): Fix typo in docstring.
214
6e104790 2152010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
216
217 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
218 NSInteger (Bug#5811).
219
6e104790 2202010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
221
222 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
223 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
224
6e104790 2252010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
226
227 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
228
6e104790
SM
2292010-04-19 Jan Djärv <jan.h.d@swipnet.se>
230
231 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
232 FRAME_LINE_TO_PIXEL_Y.
233
234 * xterm.c (x_set_window_size_1): Don't add border_width/height to
235 pixelwidth/height.
236
2372010-04-19 Chong Yidong <cyd@stupidchicken.com>
238
239 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
240 terminal frames (Bug#5837).
241
37dcfea0
EZ
2422010-04-19 Eli Zaretskii <eliz@gnu.org>
243
d1da276f
EZ
244 * .gdbinit (xsubchartable): New command.
245
37dcfea0
EZ
2462010-04-19 Eli Zaretskii <eliz@gnu.org>
247
248 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 249 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
250 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
251 and
252 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
253
e9515805
SM
2542010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
255
256 * alloc.c (Fpurecopy): Hash-cons if requested.
257 (syms_of_alloc): Update purify-flag docstring.
258
22aa44a8
JD
2592010-04-18 Jan Djärv <jan.h.d@swipnet.se>
260
261 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
262 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
263
ebb5722e
EZ
2642010-04-17 Eli Zaretskii <eliz@gnu.org>
265
266 Fix a crash when an NSM character is inserted at BEGV.
267
268 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
269 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
270 NEUTRAL_B or UNKNOWN_BT.
271
0f4442ef
EZ
2722010-04-16 Eli Zaretskii <eliz@gnu.org>
273
274 * xdisp.c (set_cursor_from_row): Don't consider possibility of
275 other rows with cursor unless they are different from this row and
276 this row is part of a continued line. (Bug#5943)
277
7d4e45f8
DN
2782010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
279
280 * s/freebsd.h: Restore osreldate.h include.
281 Suggested by Naohiro Aota.
282
5ba5ec85
J
2832010-04-16 Jan Djärv <jan.h.d@swipnet.se>
284
285 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
286
20af301d
CY
2872010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
288
289 * s/cygwin.h: Avoid linking against static libgcc.
290
a4b000fb
JL
2912010-04-15 Juri Linkov <juri@jurta.org>
292
293 * window.c: Add Qscroll_command.
294 Remove Vscroll_preserve_screen_position_commands.
295 (window_scroll_pixel_based, window_scroll_line_based): Check the
296 `scroll-command' property on the last command instead of searching
297 the last command in Vscroll_preserve_screen_position_commands.
298 (syms_of_window): Initialize and staticpro `Qscroll_command'.
299 Put Qscroll_command property on Qscroll_up and Qscroll_down.
300 (scroll-preserve-screen-position): Doc fix.
301 (Vscroll_preserve_screen_position_commands): Remove variable.
302
bc319ba4
DN
3032010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
304
6bb24457
DN
305 * xdisp.c (message): Do not use NO_ARG_ARRAY.
306
19d4c244
DN
3072010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
308
309 Reduce cpp use in Makefile.in.
310 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
311 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
312 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
313 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
314 (CRT0_COMPILE): Remove, inline it in the only user.
315
32129746
JL
3162010-04-14 Juri Linkov <juri@jurta.org>
317
318 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
319 `scroll-up-command' and `M-v' from `scroll-down' to
320 `scroll-down-command'.
321
9013a7f8
JL
3222010-04-14 Juri Linkov <juri@jurta.org>
323
324 * window.c (Vscroll_preserve_screen_position_commands): New variable
325 with the default value as the list of Qscroll_down and Qscroll_up.
326 (window_scroll_pixel_based, window_scroll_line_based): Search the
327 last command in the list Vscroll_preserve_screen_position_commands
328 instead of comparing with Qscroll_up and Qscroll_down.
329
4bef8d26
JD
3302010-04-13 Jan Djärv <jan.h.d@swipnet.se>
331
92848133
JD
332 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
333 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
334 does that.
335
4bef8d26
JD
336 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
337 to zero.
338
58b963f7
SM
3392010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
340
84164a0d
SM
341 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
342
2b0a91e7
SM
343 Try to solve the problem of spurious EOF chars in long lines of text
344 sent to interactive subprocesses.
345 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
346 (system_process_attributes): Remove unused var `ttotal'.
347 * process.c (send_process): Don't bother breaking long line with EOF
348 chars when talking to ttys any more.
349 (wait_reading_process_output): Output a warning when called in such
350 a way that it could block without being interruptible.
351
58b963f7
SM
352 Try to detect file modification within the same second.
353 * buffer.h (struct buffer): New field modtime_size.
354 * buffer.c (reset_buffer): Initialize it.
355 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
356 (Fverify_visited_file_modtime): Check it.
357 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
358 (Fset_visited_file_modtime): Set (or clear) it.
359
01f5787b
SM
3602010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
361
362 * process.c (status_notify): Remove unused var `ro'.
363
83725342
JD
3642010-04-12 Jan Djärv <jan.h.d@swipnet.se>
365
366 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
367 more than one visual (Bug#5938).
368
b9465836
DN
3692010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
370
50426a04
JB
371 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
372 Undefine.
b9465836 373
8d9c8ece
DN
3742010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
375
b1f52161
DN
376 Remove C_SWITCH_SYSTEM_TEMACS.
377 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
378 (malloc, realloc, free): Use emacs, not temacs for conditional
379 definition.
380
381 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
382 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
383
8d9c8ece
DN
384 Use autoconf, not cpp for some variables.
385 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
386 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
387 (ALL_CFLAGS): Use them as make variables.
388 (really-lwlib, really-oldXMenu): Do not pass them.
389
1ecb2d3f
JD
3902010-04-11 Jan Djärv <jan.h.d@swipnet.se>
391
392 * xmenu.c (apply_systemfont_to_dialog): New.
393 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
394
3a4fa2f2
SM
3952010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
396
97e53006
SM
397 * process.c (exec_sentinel): Preserve current-buffer.
398
3a4fa2f2
SM
399 * process.c (read_process_output): Move the save-current-buffer to
400 apply to both the filter and the non-filter branches.
401
88df7221
DN
4022010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
403
404 * s/msdos.h (UNEXEC): New definition.
405
5634ff85
YM
4062010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
407
6eff5c3d
YM
408 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
409 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
410
411 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
412 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
413 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
414 TRY_WINDOW_CHECK_MARGINS.
415
416 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
417 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
418 width only when it is for padding.
5634ff85 419
b13aef54
J
4202010-04-09 Jan Djärv <jan.h.d@swipnet.se>
421
422 * xfns.c (Fx_show_tip): Call try_window in a loop until
423 fonts_changed_p is zero (Bug#2423).
424
21d28484
EZ
4252010-04-08 Eli Zaretskii <eliz@gnu.org>
426
427 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
428 the end of TEXT_AREA. (Bug#5856)
429
0269ef77
JD
4302010-04-08 Jan Djärv <jan.h.d@swipnet.se>
431
432 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
433 HAVE_GCONF.
434
5930fe97
EZ
4352010-04-08 Eli Zaretskii <eliz@gnu.org>
436
437 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
438 prev.orig_type, for resolving type of NSM. (Bug#5858)
439
99852628
JD
4402010-04-08 Jan Djärv <jan.h.d@swipnet.se>
441
442 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
443 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
444 in current_font.
445 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
446 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
447 New functions.
448 (syms_of_xsettings): Initialize current_font.
449 defsubr Sfont_get_system_normal_font.
99852628
JD
450
451 * xsettings.h (Ffont_get_system_normal_font,
452 xsettings_get_system_normal_font): Declare.
453
454 * xfns.c (extern xlwmenu_default_font): Remove.
455 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
456 to xlwmenu.c.
457
458 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
459 menu items in UTF-8.
460
461 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
462 (apply_systemfont_to_menu): New function.
463 (set_frame_menubar, create_and_show_popup_menu): Call
464 apply_systemfont_to_menu.
465
7fc874c4
J
4662010-04-07 Jan Djärv <jan.h.d@swipnet.se>
467
468 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
469 FRAME_LINE_TO_PIXEL_Y.
470
471 * xterm.c (x_set_window_size_1): Don't add border_width/height to
472 pixelwidth/height.
473
863bf481
DN
4742010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
475
5e5a3b92
DN
476 Simplify code for HP machines.
477 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
478 for GNU_LINUX, not needed.
479 (UNEXEC, NEED_BSDTTY): Move definitions...
480 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
481
863bf481
DN
482 * m/iris4d.h (UNEXEC): Move definition ...
483 * s/irix6-5.h (UNEXEC): ... here.
484
3e6bec3b
JD
4852010-04-04 Jan Djärv <jan.h.d@swipnet.se>
486
487 * xfns.c (set_machine_and_pid_properties): New function.
488 (Fx_create_frame): Call set_machine_and_pid_properties.
489
2912322b
SM
4902010-04-03 Eli Zaretskii <eliz@gnu.org>
491
1502b819
EZ
492 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
493 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
494 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
495
2912322b
SM
496 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
497 in this function. (Bug#5703)
498
4992010-04-03 Chong Yidong <cyd@stupidchicken.com>
500
501 * nsterm.h: Fix last change.
502
c435b432
DN
5032010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
504
a568f507
DN
505 * m/intel386.h (NO_REMAP): Move definition ...
506 * s/msdos.h (NO_REMAP): ... here.
507
4cd9f6c2
DN
508 * m/vax.h (CRT0_DUMMIES): Remove, unused.
509
c435b432
DN
510 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
511 used on those platforms.
512
42a2c622
DN
5132010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
514
515 Remove extern errno declarations.
516 * xterm.c:
517 * xrdb.c:
518 * w32term.c:
519 * unexec.c:
520 * unexaix.c:
521 * sysdep.c:
522 * process.c:
523 * lread.c:
524 * keyboard.c:
525 * floatfns.c:
526 * filelock.c:
527 * fileio.c:
528 * emacs.c (main):
529 * ecrt0.c:
530 * dispnew.c:
531 * callproc.c:
532 * buffer.c: Remove errno extern declarations.
533 * s/netbsd.h (NEED_ERRNO): Remove.
534
8224f93d
DN
5352010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
536
537 Remove all uses of LIBX11_SYSTEM.
538 * Makefile.in (LIBX11_SYSTEM): Remove.
539 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
540 instead.
541
814062c7
EZ
5422010-04-01 Eli Zaretskii <eliz@gnu.org>
543
ed68db4d
EZ
544 Remove support for DJGPP v1.x (bug#5813).
545
546 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
547 * s/msdos.h:
548 * unexec.c (make_hdr, copy_text_and_data):
549 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 550 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
551 (IT_set_terminal_modes, __write, _rename, gethostname)
552 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
553 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
554 the value of __DJGPP__.
ed68db4d
EZ
555 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
556 compatibility code.
8224f93d
DN
557 * lread.c:
558 * gmalloc.c (memalign):
559 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
560 * emacs.c (main):
561 * dosfns.c (init_dosfns):
ed68db4d
EZ
562 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
563
52f4d8d5
EZ
5642010-04-01 Eli Zaretskii <eliz@gnu.org>
565
814062c7
EZ
566 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
567 string with `cursor' property comes from an `after-string'
568 overlay. (Bug#5816)
569
0dc2e11d
GM
5702010-04-01 Glenn Morris <rgm@gnu.org>
571
572 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
573 Define as Makefile variables.
574 (LIBX): Use above variables rather than directly using autoconf.
575
1d29df59
DN
5762010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
577
578 Clean up BSD_SYSTEM use.
579 * xterm.c:
580 * process.c:
581 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
582 for including <sys/ioctl.h>.
583 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
584 code is only used for MSDOS.
585
1546c559
JL
5862010-03-31 Juri Linkov <juri@jurta.org>
587
588 * image.c: Add `Qextension_data'.
589 (syms_of_image): Initialize and staticpro `Qextension_data'.
590 (Fimage_metadata): Rename from `Fimage_extension_data'.
591 (gif_load): Put GIF extension data to the property
592 `Qextension_data'.
593
b8a1d5a1
CY
5942010-04-05 Chong Yidong <cyd@stupidchicken.com>
595
596 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
597 terminal frames (Bug#5837).
598
6521c534
CY
5992010-03-31 Chong Yidong <cyd@stupidchicken.com>
600
601 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
602 * nsterm.h: Fix prototype.
603
52c30783
EZ
6042010-03-31 Eli Zaretskii <eliz@gnu.org>
605
606 * xdisp.c (highlight_trailing_whitespace): Support highlight of
607 trailing whitespace in right-to-left rows.
608
855a0da7
SM
6092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
610
611 Get rid of the direct_output optimizations.
612 * keyboard.c (nonundocount): Remove extern declaration.
613 (command_loop_1): Remove brittle optimisation for cheap and
614 common operations.
615 * xdisp.c (redisplay_internal): Don't bother checking
616 redisplay_performed_directly_p any more.
617 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
618 any more.
619 * dispnew.c (redisplay_performed_directly_p)
620 (direct_output_for_insert, direct_output_forward_char):
621 * dispextern.h (redisplay_performed_directly_p)
622 (direct_output_for_insert, direct_output_forward_char): Remove.
623 * cmds.c (nonundocount): Make it static.
624
85738751 6252010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
626
627 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
628
85738751 6292010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
630
631 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
632 invisible (Bug#5766).
633
85738751 6342010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 635
855a0da7
SM
636 * xdisp.c (x_consider_frame_title, update_window_cursor):
637 Remove HAVE_NS conditionals.
194d44e7 638 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
639
640 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
641 filename for the title.
642 (ns_set_doc_edited): Do nothing if the selected window is a
643 minibuffer window.
644
645 * nsterm.h: Add prototypes for ns_set_name_as_filename and
646 ns_set_doc_edited.
647
648 * nsterm.m: Remove unneeded prototype.
649
85738751 6502010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
651
652 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
653 in the DOC file. (Bug#5336)
654
85738751 6552010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
656
657 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
658
75d1428c
SM
6592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
660
661 * window.c (keys_of_window): Remove redundant/overridden bindings.
662
82043cfb
EZ
6632010-03-30 Eli Zaretskii <eliz@gnu.org>
664
665 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
666 Restore original behavior when the iterator is not bidi_p.
667
b5dd0ae7
DN
6682010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
669
670 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
671
bd924a5d
EZ
6722010-03-30 Eli Zaretskii <eliz@gnu.org>
673
674 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
675 are outside the range of cached character positions.
676
3580374b
JB
6772010-03-30 Juanma Barranquero <lekktu@gmail.com>
678
679 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
680
a7b02820
EZ
6812010-03-30 Eli Zaretskii <eliz@gnu.org>
682
683 Initial support for bidirectional editing.
684
685 * Makefile.in (obj): Include bidi.o.
686 (bidi.o): New target.
687
688 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
689 ($(BLD)/bidi.$(O)): New target.
690
691 * bidi.c: New file.
692
693 * buffer.h (struct buffer): New members bidi_display_reordering
694 and bidi_paragraph_direction.
695
696 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
697 and bidi_paragraph_direction.
698 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
699 and bidi-paragraph-direction.
700 (Fbuffer_swap_text): Swap the values of
701 bidi_display_reordering and bidi_paragraph_direction.
702
703 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
704 (bidi_type_t, bidi_dir_t): New types.
705 (bidi_saved_info, bidi_stack, bidi_it): New structures.
706 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
707 prev_stop, base_level_stop, and eol_pos.
708 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
709 (IT_STACK_SIZE): Enlarge to 5.
710 (struct glyph_row): New member reversed_p.
711 <string_buffer_position>: Update prototype.
712 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
713 glyph_row if bidi_it.paragraph_dir == R2L.
714 (struct glyph): New members resolved_level and bidi_type.
715
716 * dispnew.c (direct_output_forward_char): Give up if we need bidi
717 processing or buffer's direction is right-to-left.
718 (prepare_desired_row): Preserve the reversed_p flag.
719 (row_equal_p): Compare the reversed_p attributes as well.
720
721 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
722 bidi_init_it and set it->paragraph_embedding from the current
723 buffer's value of bidi_paragraph_direction.
724 (reseat_1): Initialize bidi_it.first_elt.
725 (set_iterator_to_next, next_element_from_buffer): Use the value of
726 paragraph_embedding to determine the paragraph direction.
727 (set_iterator_to_next): Under bidi reordering, call
728 bidi_get_next_char_visually. Call bidi_paragraph_init if the
729 new_paragraph flag is set in the bidi iterator.
730 (next_element_from_buffer): If bidi_it.first_elt is set,
731 initialize paragraph direction and find the first character to
732 display in the visual order. If reseated to a middle of a line,
733 prime the bidi iterator starting at the line's beginning. Handle
734 the situation where we overstepped stop_charpos due to
735 non-linearity of the bidi iteration. Likewise for when we back up
736 beyond the previous stop_charpos. When moving across stop_charpos,
737 record it in prev_stop.
738 (display_line): Set row->end and it->start for the next row to the
739 next character in logical order. Always extend reversed_p rows to
740 the end of line, even if they end at ZV. Copy the reversed_p flag
741 to the next glyph row. Keep calling set_cursor_from_row for
742 bidi-reordered rows even if we already have a possible candidate
743 for cursor position. Set row_end after all the row's glyphs have
744 been produced, by looping over the glyphs. Record the position
745 after EOL in it->eol_pos, and use it to set end_pos of the last
746 row produced for a continued line.
747 <Qright_to_left, Qleft_to_right>: New variables.
748 (syms_of_xdisp): Initialize and staticpro them.
749 (string_buffer_position_lim): New function.
750 (string_buffer_position): Most of code moved to
751 string_buffer_position_lim. Last argument and return value are
752 now EMACS_INT; all callers changed.
753 (set_cursor_from_row): Rewritten to support bidirectional text and
754 reversed glyph rows.
755 (text_outside_line_unchanged_p, try_window_id): Disable
756 optimizations if we are reordering bidirectional text and the
757 paragraph direction can be affected by the change.
758 (append_glyph, append_composite_glyph)
759 (produce_image_glyph, append_stretch_glyph): Set the
760 resolved_level and bidi_type members of each glyph.
761 (append_glyph): If the glyph row is reversed, prepend the glyph
762 rather than appending it.
763 (handle_stop_backwards): New function.
764 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
765 (reseat): call handle_stop_backwards to recompute prev_stop and
766 base_level_stop for the new position.
767 (handle_invisible_prop): Under bidi iteration, skip invisible text
768 using bidi_get_next_char_visually. If we are `reseat'ed, init the
769 paragraph direction. Update IT->prev_stop after skipping
770 invisible text.
771 (move_it_in_display_line_to): New variables prev_method
772 and prev_pos. Compare for strict equality in
773 BUFFER_POS_REACHED_P.
774 (try_cursor_movement): Examine all the candidate rows that occlude
775 point, to return the best match. If rows are bidi-reordered
776 and point moved backwards, back up to the row that is not a
777 continuation line, and start looking for a suitable row from
778 there.
779
780 * term.c (append_glyph): Reverse glyphs by pre-pending them,
781 rather than appending, if the glyph_row's reversed_p flag is set.
782 Set the resolved_level and bidi_type members of each glyph.
783
784 * .gdbinit (pbiditype): New command.
785 (pgx): Use it to display bidi level and type of the glyph.
786 (pitx): Display some bidi information about the iterator.
787 (prowlims, pmtxrows): New commands.
788
32a8894e
DN
7892010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
790
791 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
792 * s/usg5-4.h (LIBS_DEBUG):
793 * s/irix6-5.h (C_DEBUG_SWITCH):
794 * s/gnu-linux.h (LIBS_DEBUG):
795 * s/darwin.h (LIBS_DEBUG):
796 * s/bsd-common.h (LIBS_DEBUG):
797 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
798 * m/iris4d.h (LIBS_DEBUG):
799 * m/hp800.h (LIBS_DEBUG): Remove definitions.
800
801 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
802 (LIBS_DEBUG): Remove definition.
803
649dbf36
CY
8042010-03-27 Chong Yidong <cyd@stupidchicken.com>
805
806 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
807 Windows.
808
cad4261f
YM
8092010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
810
811 * process.c (Fmake_network_process): Don't call turn_on_atimers around
812 `connect' (Bug#5723).
813
cd591dbc
HE
8142010-03-25 Helmut Eller <eller.helmut@gmail.com>
815
816 * process.c (Fmake_network_process): Call `select' for interrupted
817 `connect' rather than creating new socket (Bug#5173).
818
e867cb5d 8192010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
820
821 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
822
823 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
824
825 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
826
e867cb5d 8272010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
828
829 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
830 XLoadQueryFont.
831
e867cb5d 8322010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
833
834 * coding.c (decode_coding_ccl): Fix previous change for the
835 multibyte case.
fb608df3
KH
836 (encode_coding_ccl): Don't setup ccl program here. Fix for the
837 case that the output buffer is fullfilled.
838 (encode_coding): Setup ccl program here.
fbdc1721 839
e867cb5d 8402010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
841
842 * editfns.c (Fformat): Account for string precision when computing
843 field width (Bug#5710).
844
5845f0ed
DN
8452010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
846
814fb708
DN
847 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
848
5845f0ed
DN
849 Simplify LIBS_MACHINE definitions.
850 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
851 * m/iris4d.h (LIBS_MACHINE): Likewise.
852 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
853 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 854 * s/netbsd.h: Remove commented out code.
5845f0ed 855
b7064064
DN
8562010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
857
df7734b2
DN
858 Remove dead code dealing with POSIX_SIGNALS.
859 * atimer.c (set_alarm): Remove dead code, all USG systems define
860 POSIX_SIGNALS.
861 * data.c (arith_error): Likewise.
862 * keyboard.c (input_available_signal, handle_user_signal)
863 (interrupt_signal): Likewise.
864 * process.c (sigchld_handler): Likewise.
865 (create_process): Remove if 0 code. Remove HPUX conditional when
866 !defined (POSIX_SIGNALS), it cannot be true.
867 * syssignal.h: Remove USG5_4 and USG conditionals when
868 !POSIX_SIGNALS, they cannot be true.
869
b7064064
DN
870 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
871 NO_SOCK_SIGIO, not used anymore.
872
55da5ee3
DN
8732010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
874
0be96e3a
DN
875 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
876 support vax on BSDs.
877
55da5ee3
DN
878 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
879 * s/aix4-2.h (ORDINARY_LINK): ... here.
880
c0282183
AS
8812010-03-21 Andreas Schwab <schwab@linux-m68k.org>
882
82c3d67a
AS
883 * Makefile.in (abs_builddir): Define.
884 (bootstrap_exe): Use it.
885 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 886
3613edce
SM
8872010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
888
889 * Makefile.in (bootstrap_exe): Use an absolute name.
890
7f110ddc
DN
8912010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
892
22e87574
DN
893 Remove support for old GNU/Linux using libc version 5.
894 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
895 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
896
05a670e6
DN
897 Consolidate redundant definitions in s/bsd-common.h.
898 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
899 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
900 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
901 doing it in all files that include this one.
902 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
903 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
904 (LDAV_SYMBOL, KERNEL_FILE): Remove.
905 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
906 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
907 (LDAV_SYMBOL, KERNEL_FILE): Remove.
908 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
909 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
910 (LDAV_SYMBOL, KERNEL_FILE): Remove.
911
2968f561
DN
912 Consolidate redundant definitions.
913 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
914 it's undefined in all files that include this one.
915 (POSIX_SIGNALS): Define here instead of doing it in all files that
916 include this one.
917 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
918 (POSIX_SIGNALS): Do not define.
919 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
920 (POSIX_SIGNALS): Do not define.
921 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
922 (POSIX_SIGNALS): Do not define.
923
15d25dc0
DN
924 Remove support for old UNIX System V systems.
925 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
926 * s/usg-5-4-2.h: Remove.
927
07e339e4
DN
928 Remove support for Solaris on PPC and for old versions.
929 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
930 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
931 that cancel each other.
932 * s/sol2-3.h:
933 * s/sol2-4.h:
934 * s/sol2-5.h: Remove.
935 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
936 (NO_REMAP): Remove, unused.
937 (UNEXEC): Move definition ...
938 * s/aix4-2.h (UNEXEC): ... here.
939
7f110ddc
DN
940 * s/openbsd.h: Remove support for non-ELF and for systems that do
941 not support shared libraries.
942 * s/netbsd.h:
943 * s/freebsd.h: Likewise.
944
605f35cd
DN
9452010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
946
947 Remove non-working support for lynxos 3.0.
948 * s/lynxos.h: Remove file.
949
950 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
951 COFF_BSD_SYMBOLS, nothing defines it anymore.
952
aed71cf4
DN
9532010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
954
955 Remove obsolete uses of HAVE_SHM.
956 * emacs.c (standard_args):
957 (Fdump_emacs):
958 (syms_of_emacs): Remove code depending on HAVE_SHM.
959
960 * alloc.c: Remove HAVE_SHM dependent definition.
961
962 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
963
aded53ff
GM
9642010-03-18 Glenn Morris <rgm@gnu.org>
965
17284745
GM
966 * emacs.c (USAGE4): Hard-code bug address.
967 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
968 (bug_reporting_address): Remove.
969 (main): Don't call bug_reporting_address.
970
aded53ff
GM
971 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
972 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
973
303500aa
CY
9742010-03-15 Chong Yidong <cyd@stupidchicken.com>
975
976 * xfns.c (Fx_create_frame):
977 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
978 on left.
979
cef3058f
CY
9802010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
981
982 * editfns.c (Fformat): Account for string precision when computing
983 field width (Bug#5710).
984
a647d59d
CY
9852010-03-12 Chong Yidong <cyd@stupidchicken.com>
986
4fa42018
CY
987 * xfns.c (Fx_create_frame): Set default to Qright.
988
a647d59d
CY
989 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
990 all window systems.
991
6da23aaa
EZ
9922010-03-12 Eli Zaretskii <eliz@gnu.org>
993
a96f6398 994 These changes remove termcap.c from the build on Posix platforms.
83d02def 995 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
996 (MSDOS_OBJ): ...to here.
997 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
998 now identical to when LIBS_TERMCAP is defined.
999
1000 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1001
1002 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1003
a96f6398 1004 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1005
288f9fc0
CY
10062010-03-10 Chong Yidong <cyd@stupidchicken.com>
1007
1008 * Branch for 23.2.
1009
d48cd3f4
SM
10102010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1011
1012 Cleanup setup of gl_state in various parts of the code.
1013 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1014 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1015 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1016 (skip_chars):
1017 * regex.c (regex_compile): Use it.
1018 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1019 it's now set in regex_compile when/if we need it.
1020
618db430
SM
10212010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1022
c0335e02
SM
1023 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1024 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1025 (QUIT): Use it to consolidate code and remove redundancy.
1026 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1027
254c06a8
SM
1028 * regex.c (regex_compile): Setup gl_state as well.
1029
618db430
SM
1030 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1031 (in_classes): Use CONSP before XCAR/XCDR.
1032
233f0c9f
CY
10332010-03-03 Chong Yidong <cyd@stupidchicken.com>
1034
1035 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1036 definitions, so that keyboard macros are correctly handled
1037 (Bug#5481).
1038
75f80e63
EZ
10392010-03-02 Eli Zaretskii <eliz@gnu.org>
1040
1041 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1042 text that could be relocated inside the call to emacs_mule_char.
1043 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1044 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1045
dcfb9bc4
KH
10462010-03-02 Kenichi Handa <handa@m17n.org>
1047
fc9a17bc
KH
1048 * character.c (parse_str_as_multibyte): Fix handling of the
1049 multibyte form of raw-bytes.
1050 (str_as_multibyte): Likewise.
1051
dcfb9bc4
KH
1052 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1053 form of raw-bytes.
1054
412c01b6
CY
10552010-02-28 Chong Yidong <cyd@stupidchicken.com>
1056
1057 * charset.c (load_charset_map_from_file)
1058 (load_charset_map_from_vector): Zero out allocated
1059 charset_map_entries before using them.
1060
df7e1ea0
AS
10612010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1062
1063 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1064
fe69a722
CY
10652010-02-27 Chong Yidong <cyd@stupidchicken.com>
1066
4ed28cf4
CY
1067 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1068 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1069
7379cfce
KH
10702010-02-26 Kenichi Handa <handa@m17n.org>
1071
f88cc4d6
KH
1072 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1073
7379cfce
KH
1074 * xdisp.c (reseat_to_string): Fix previous change.
1075
cf2fdcfb
CY
10762010-02-26 David Reitter <david.reitter@gmail.com>
1077
1078 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1079 Lisp_Object (Bug#4736).
1080
cc6c7c75
KH
10812010-02-25 Kenichi Handa <handa@m17n.org>
1082
1083 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1084
32e737d7
JD
10852010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1086
1087 * xterm.c (XTflash): Move declarations before statements.
1088
1089 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1090 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1091 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1092 (xg_create_tool_bar): Remove unused variables.
1093 (x_wm_set_size_hint): Move declarations before statements.
1094 (xg_create_frame_widgets): Remove variable grav,
1095
676cae9f
CY
10962010-02-21 Chong Yidong <cyd@stupidchicken.com>
1097
1098 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1099
886cc2b8
SM
11002010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1101
1102 * term.c (fatal): Add a final \n if needed (bug#5596).
1103
ddb2d8e2
CY
11042010-02-18 Chong Yidong <cyd@stupidchicken.com>
1105
1106 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1107
2a4f8d3d
GM
11082010-02-18 Glenn Morris <rgm@gnu.org>
1109
1110 * callint.c (Finteractive): Doc fix.
1111
ebaf11b6
KH
11122010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1113
886cc2b8
SM
1114 * coding.c (record_conversion_result):
1115 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1116 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1117 memory allocation error.
1118
d0396581
KH
11192010-02-17 Kenichi Handa <handa@m17n.org>
1120
886cc2b8
SM
1121 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1122 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1123 (decode_coding): Setup ccl program here. Keep looping when the
1124 decoder stopped because the output buffer is
1125 fullfilled (bug#5534).
1126
1127 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1128
98599f74
JD
11292010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1130
471e4f04 1131 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1132 bug #5571.
886cc2b8 1133 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1134 overdrawn.
98599f74 1135
182659ae
JD
11362010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1137
1138 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1139 doing_interact here.
1140 (ice_connection_closed): New function.
1141 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1142 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1143 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1144 returns I/O error.
1145 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1146 bug #5512.
1147
9be32c4e 11482010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1149
1150 * nsfont.m (nsfont_open): The system's value for the font descent
1151 is negative, so round it down to avoid clipping.
1152
a2f3eb19
CY
11532010-02-06 Chong Yidong <cyd@stupidchicken.com>
1154
1155 * charset.c (load_charset_map_from_file)
1156 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1157 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1158
3088147c
CY
11592010-02-05 Chong Yidong <cyd@stupidchicken.com>
1160
1161 * charset.c (load_charset_map_from_file): Allocate large
1162 charset_map_entries structure on the heap rather than the stack.
1163 (Bug#5526).
1164
b57d9029
KH
11652010-01-31 Kenichi Handa <handa@m17n.org>
1166
1167 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1168 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1169
c67d885b
CY
11702010-01-31 Chong Yidong <cyd@stupidchicken.com>
1171
1172 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1173 <deactivated@gmail.com> (Bug#3605).
1174
8fab2362
CY
11752010-01-31 David De La Harpe Golden <david@harpegolden.net>
1176
1177 * fileio.c (Frename_file): Correctly rename symlinks to
1178 directories (Bug#5496).
1179
cb2a62f2
CY
11802010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1181
1182 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1183
944c7a26
AS
11842010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1185
1186 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1187
c024ac08
CY
11882010-01-29 Chong Yidong <cyd@stupidchicken.com>
1189
1190 * frame.c (DEFAULT_ROWS): Change default to 35.
1191
1192 * xfns.c (x_default_font_parameter): Change default XFT font to
1193 monospace-10 (Bug#3643).
1194
af93af83
EZ
11952010-01-29 Eli Zaretskii <eliz@gnu.org>
1196
1197 * w32inevt.c (key_event): Remove unnecessary comparison of
1198 event->uChar.AsciiChar with 128.
1199
ca0eb708
CY
12002010-01-28 Chong Yidong <cyd@stupidchicken.com>
1201
b242dbfc
CY
1202 * fileio.c (Frename_file): Fix last change (Bug#5487).
1203
ca0eb708
CY
1204 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1205
1206 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1207
45d45af5
JD
12082010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * xfns.c (Fx_create_frame): Remove window size matching code from
1211 2010-01-15.
1212 (x_get_current_desktop, x_get_desktop_workarea): Remove
1213
7e233730
JR
12142010-01-27 Jason Rumney <jasonr@gnu.org>
1215
1216 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1217 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1218
86e893e3
KH
12192010-01-27 Kenichi Handa <handa@m17n.org>
1220
1221 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1222 pattern string (Bug#4209).
86e893e3 1223
8719abec
CY
12242010-01-27 David De La Harpe Golden <david@harpegolden.net>
1225
1226 * fileio.c (Frename_file): Call copy-directory and
1227 delete-directory for directories, in order to handle cross-device
1228 renaming (Bug#3353).
1229
844794c8
JD
12302010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1231
aa3e13b5 1232 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1233 sizes 24 and 10. Bug #3643.
844794c8 1234
bd4b5750
SM
12352010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1236
8dc1adf6 1237 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1238 * keymap.c (shadow_lookup): Add `remap' arg.
1239 (describe_map, describe_vector): Update calls to shadow_lookup.
1240 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1241 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1242 perform remapping during shadow_lookup check of remapped_sequences.
1243
285d07e2
CY
12442010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1245
1246 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1247 png_check_sig, which has been removed in libpng 1.4.
1248
c6d09b8d
CY
12492010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1250
1251 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1252 lacks this header file).
1253
3d782998
YM
12542010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1255
1256 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1257 as in Emacs 22.
1258
2aff7c53
YM
12592010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1260
1261 * lisp.h (make_pure_string): String pointer arg now points to const.
1262
1263 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1264 args now point to const.
1265
74327f7a
EZ
12662010-01-22 Eli Zaretskii <eliz@gnu.org>
1267
1268 * lread.c (Fload): Don't treat files without .elc extension as
1269 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1270 them. (bug#5303)
1271
4d1e6632
KH
12722010-01-20 Kenichi Handa <handa@m17n.org>
1273
1274 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1275 treat the source as actual byte sequence.
1276
1fdede8f
AM
12772010-01-19 Alan Mackenzie <acm@muc.de>
1278
1279 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1280 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1281 `signal_after_change_p' to `coherent_change_p', and make the
1282 invocation of `modify_region' conditional on it.
1283
67477f30
JD
12842010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1285
1286 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1287 for debug purpose.
1288 (syms_of_xsettings): Declare xft-settings.
1289
244b023e
CY
12902010-01-18 Chong Yidong <cyd@stupidchicken.com>
1291
1292 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1293
617364fe
CY
12942010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1295
1296 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1297
4fe22cdf
CY
12982010-01-16 Chong Yidong <cyd@stupidchicken.com>
1299
1300 * emacs.c (standard_args): Adjust arg priorities to reflect how
1301 they are processed in startup.el.
1302
e118d2be
AS
13032010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1304
1305 * Makefile.in (lisp, shortlisp): Update.
1306
523ae620
SM
13072010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1310 code, link the new kboard into all_kboard before running Lisp code,
1311 and protect the new terminal with GCPRO (Bug#5365).
1312 (x_term_init): Remove unused var `atom'.
1313 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1314
f0d13888
JD
13152010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1316
1317 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1318 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1319 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1320 this. Bug #3643.
f0d13888 1321
cc320f07
KH
13222010-01-15 Kenichi Handa <handa@m17n.org>
1323
1324 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1325
7ffdf101
CY
13262010-01-15 Chong Yidong <cyd@stupidchicken.com>
1327
1328 * nsterm.m (Qnone): Define.
1329
1330 * nsfns.m (Qnone): Move definition to nsterm.m.
1331
d12bd917
KH
13322010-01-14 Kenichi Handa <handa@m17n.org>
1333
1334 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1335 systems.
1336
d9a7c140
KH
13372010-01-14 Kenichi Handa <handa@m17n.org>
1338
1339 Make auto-composition work on all buffers even if they are
1340 fundamental mode.
1341
1342 * composite.c (Vauto_composition_mode): New variable.
1343 (composition_compute_stop_pos): Check Vauto_composition_mode
1344 instead of Vauto_composition_function.
1345 (composition_adjust_point, Ffind_composition_internal): Likewise.
1346 (syms_of_composite): Declare Lisp variable
1347 "auto-composition-mode" here.
1348
63286bb2
CY
13492010-01-13 Chong Yidong <cyd@stupidchicken.com>
1350
1351 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1352 during call to vendor-specific-keysyms (Bug#5365).
1353
c2623ee7
YM
13542010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1355
1356 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1357 Call SIGNAL_THREAD_CHECK (Bug#5333).
1358
1359 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1360 Call SIGNAL_THREAD_CHECK.
1361
0b5397c2
SM
13622010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1363
1364 Try to fix bug#5314. This is probably not the final word, tho.
1365 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1366 recent-auto-save-p as a side-effect.
1367 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1368 * buffer.c (Fkill_buffer, reset_buffer):
1369 * editfns.c (Fsubst_char_in_region):
1370 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1371 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1372
dc954cb2
KH
13732010-01-13 Kenichi Handa <handa@m17n.org>
1374
1375 Display buffer name, etc. in mode line by composing correctly.
1376
1377 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1378 STRING is not nil.
0b5397c2 1379 (display_mode_element): Adjust for the change of
dc954cb2
KH
1380 decode_mode_spec and display_line.
1381 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1382 (display_string): Handle the case that STRING is non-null and
1383 LISP_STRING is not nil.
1384
0b5397c2
SM
1385 * xterm.c (x_draw_composite_glyph_string_foreground):
1386 Pay attention to s->face->overstrike.
dc954cb2
KH
1387
1388 * composite.c (composition_reseat_it): Don't check PT if STRING is
1389 non nil.
1390
4a00eaca
YM
13912010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1392
1393 * keyboard.c (read_char): Don't apply previous change when current
1394 buffer is unchanged by command execution.
1395
60abb287
JD
13962010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1397
1398 * keyboard.c (read_char): Return after executing from special map.
1399
893db5bc
GM
14002010-01-12 Glenn Morris <rgm@gnu.org>
1401
1402 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1403 bug-gnu-emacs rather than emacs-pretest-bug.
1404
4d03ece0
CY
14052010-01-11 Chong Yidong <cyd@stupidchicken.com>
1406
1407 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1408 initializing the Lisp variables that depend on them.
1409
1df47e38
YM
14102010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1411
1412 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1413 Clear areas that will not be updated after change of menu bar lines.
1414 Clear the menu bar window's current matrix when the window gets empty.
1415
2f1c6384
CY
14162010-01-09 Chong Yidong <cyd@stupidchicken.com>
1417
e398c61c
CY
1418 * intervals.h, textprop.c (extend_property_ranges): Return value
1419 and args changed. Discard properties that begin at or after the
1420 new end (Bug#5306).
1421
1422 * editfns.c (Fformat): Caller changed.
1423
e5a29a10
CY
1424 * nsterm.m (ns_set_default_prefs): Delete function.
1425 (syms_of_nsterm): Initialize ns_command_modifier,
1426 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1427 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1428
2f1c6384
CY
1429 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1430 position (Bug#4040).
1431
d427a9fa
EZ
14322010-01-09 Eli Zaretskii <eliz@gnu.org>
1433
1434 * editfns.c (Ffloat_time): Doc fix.
1435
21b9df2f
JD
14362010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1437
1438 * xfns.c (Fx_create_frame): Don't create frame larger than display
1439 by default bug#3643.
1440
4b00d3b1
YM
14412010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1442
1443 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1444 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1445 windows above internal border.
1446
1447 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1448 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1449 windows above internal border.
1450
1451 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1452 tool bar windows specially.
1453
1454 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1455
1456 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1457 specially.
1458 (XTflash): Take account of menu bar height.
1459
1460 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1461 specially.
1462
5075d853
JD
14632010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1464
ac146f82 1465 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1466 also be true before we can return early (bug #5339).
1467
474217c8
CY
14682010-01-06 David Reitter <david.reitter@gmail.com>
1469
1470 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1471 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1472 (Bug#3233).
1473
c0e6d47d
JD
14742010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1475
d0cf45b7
JD
1476 * font.c (font_open_entity): Enable chache and call cached_font_ok
1477 for the driver if defined.
1478 (QCuser_spec): New symbol.
1479 (font_spec_from_name): Save name as user-spec.
1480 (font_load_for_lface): Keep user-spec instead of name.
1481 (font_open_by_name): Save name as user-spec.
1482 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1483 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1484
1485 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1486 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1487 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1488
1489 * font.h (struct font_driver): Add cached_font_ok.
1490
c0e6d47d
JD
1491 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1492
7c583cd8
JD
14932010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1494
1495 * xterm.c (x_new_font): Move code for setting rows/cols before
1496 resizing ...
ac146f82 1497 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1498
1499 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1500 (xg_frame_resized, xg_frame_set_char_size):
1501 Call xg_clear_under_internal_border.
7c583cd8 1502 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1503
03f77f0a
CY
15042010-01-05 Chong Yidong <cyd@stupidchicken.com>
1505
1506 * keyboard.c (read_key_sequence): Catch keyboard switch after
1507 making a new tty frame (Bug#5095).
1508
2a1ef5be
KH
15092010-01-05 Kenichi Handa <handa@m17n.org>
1510
1511 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1512
e3eb1dae
SM
15132010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1514
1515 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1516 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1517 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1518
777013f2
MA
15192010-01-03 Michael Albinus <michael.albinus@gmx.de>
1520
1521 * dbusbind.c (xd_add_watch): Improve debug message.
1522 (xd_remove_watch): Improve debug message. If DATA is the session
1523 bus, unset D-Bus session environment.
1524 (Fdbus_init_bus): Pass the bus as argument to
1525 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1526
8932b1c2
CY
15272010-01-01 Chong Yidong <cyd@stupidchicken.com>
1528
87231e2c
CY
1529 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1530
4801c5fa
CY
1531 * lread.c (syms_of_lread): Make it clearer that these are the
1532 names of loaded files (Bug#5068).
1533
8932b1c2
CY
1534 * eval.c (run_hook_with_args): Handle the case where the global
1535 value has the obsolete single-function form (Bug#5026).
1536
11e3c684
CY
15372009-12-27 Chong Yidong <cyd@stupidchicken.com>
1538
1539 * minibuf.c (Fall_completions): Minor optimization.
1540
5b28ce35
EZ
15412009-12-26 Eli Zaretskii <eliz@gnu.org>
1542
5ce6e4f4
JB
1543 * .gdbinit (pgx): Fix display of composite glyphs.
1544 Display cmp.from and cmp.to as well.
1545 (pitx): Fix last change.
5b28ce35 1546
bcffff46
KH
15472009-12-25 Kenichi Handa <handa@m17n.org>
1548
1549 * composite.h (composition_adjust_point): Update prototype.
1550
1551 * composite.c (composition_reseat_it): Don't make a composition
1552 spanning over point.
1553 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1554 composable characters.
1555 (composition_adjust_point): New arg NEW_PT. Callers changed.
1556
1557 * keyboard.c (command_loop_1): Force redisplay if the last point
1558 was within a composition.
1559 (adjust_point_for_property): Don't adjust point for automatic
1560 composition when called after buffer modification.
1561
3f670e9a
EZ
15622009-12-19 Eli Zaretskii <eliz@gnu.org>
1563
5ce6e4f4
JB
1564 * .gdbinit (pitx): Don't use enum names, use their values.
1565 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1566 (pgx): Don't use enum names, use their values.
1567 (pitmethod): New helper command.
1568 (pitx): Use it to display iteration method.
1569 (pgrowit): New command.
1570
ad903955
EZ
1571 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1572
3f670e9a
EZ
1573 Update dependencies in Makefile.in.
1574
1575 * Makefile.in (alloc.o): Depend on termhooks.h.
1576 (atimer.o): Depend on blockinput.h.
1577 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1578 and frame.h.
1579 (callint.o): Depend on systime.h, coding.h, and composite.h.
1580 (callproc.o): Depend on buffer.h.
1581 (casefiddle.o): Don't depend on charset.h.
1582 (casetab.o): Depend on character.h.
1583 (ccl.o): Depend on composite.h.
1584 (chartab.o): Depend on ccl.h.
1585 (cm.o): Depend on dispextern.h.
1586 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1587 (coding.o): Don't depend on $(INTERVALS_H).
1588 (composite.o): Don't depend on dispextern.h explicitly (it's in
1589 $(INTERVALS_H)). Depend on ccl.h.
1590 (data.o): Depend on systime.h, coding.h, composite.h,
1591 dispextern.h, font.h, and ccl.h.
1592 (dired.o): Depend on composite.h.
1593 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1594 composite.h (it's in $(INTERVALS_H)).
1595 (doc.o): Depend on systime.h, coding.h, and composite.h.
1596 (editfns.o): Don't depend explicitly on dispextern.h.
1597 (emacs.o): Depend on frame.h and coding.h.
1598 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1599 (fileio.o): Depend on frame.h and commands.h. Don't depend
1600 explicitly on dispextern.h.
1601 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1602 composite.h.
1603 (fns.o): Don't depend on termhooks.h.
1604 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1605 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1606 coding.h, $(INTERVALS_H), window.h, xterm.h.
1607 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1608 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1609 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1610 fontset.h, ccl.h, and ftfont.h.
1611 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1612 (gtkutil.o): Depend on dispextern.h and composite.h.
1613 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1614 termhooks.h, and ccl.h.
1615 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1616 (intervals.o): Depend on systime.h and coding.h.
1617 (keyboard.o): Depend on composite.h and coding.h.
1618 (keymap.o): Depend on coding.h and frame.h.
1619 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1620 (macros.o): Depend on systime.h, coding.h, and composite.h.
1621 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1622 and atimer.h.
1623 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1624 dispextern.h explicitly.
0b5397c2
SM
1625 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1626 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1627 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1628 (regex.o): Don't depend on charset.h.
1629 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1630 (search.o): Don't depend explicitly on composite.h.
1631 (sound.o): Depend on atimer.h and systime.h.
1632 (syntax.o): Don't depend explicitly on composite.h.
1633 (sysdep.o): Depend on coding.h and composite.h.
1634 (term.o): Depend on xterm.h and buffer.h.
1635 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1636 (textprop.o): Don't depend on dispextern.h explicitly.
1637 (undo.o): Depend on dispextern.h.
1638 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1639 dispextern.h and composite.h explicitly.
1640 (xdisp.o): Depend on ccl.h.
1641 (xfaces.o): Depend on coding.h and ccl.h.
1642 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1643 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1644 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1645 ftfont.h.
1646 (xgselect.o): New dependency.
1647 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1648 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1649 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1650 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1651 (xsmfns.o): Depend on frame.h and dispextern.h.
1652 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1653 sysselect.h.
1654
7a6f7fea
AS
16552009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1656
1657 * font.c (Fclear_font_cache): Pass correct cache argument to
1658 font_clear_cache.
1659
f4c21026
AS
16602009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1661
1662 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1663 twice.
1664
f7ab0997
CY
16652009-12-15 Chong Yidong <cyd@stupidchicken.com>
1666
1667 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1668 calling file-remote-p. Reported by Jim Meyering.
1669
fa8e045a
MA
16702009-12-15 Michael Albinus <michael.albinus@gmx.de>
1671
1672 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1673 avoid compiler warnings. (Bug #5217)
fa8e045a 1674
a63dba42
KH
16752009-12-14 Kenichi Handa <handa@m17n.org>
1676
1677 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1678 in 8-bit encoding.
1679
5ce6e4f4 16802009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1681
1682 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1683 tooltip windows.
1684
223e5fc6
JD
16852009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1686
36acb2a7
JD
1687 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1688 Xatom_net_window_type.
1689
1690 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1691 Xatom_net_window_type.
1692
b8f00677
JD
1693 * xterm.c (my_log_handler): New function.
1694 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1695 so we can filter out buggy messages. (Bug #5120).
b8f00677 1696
e5f0bc9a
JD
1697 * xterm.c (xg_scroll_callback): Parameter list changed,
1698 use parameter GtkScrollType to determine scroll/line/page.
1699 Only allow dragging if a button < 4 is grabbed (bug #5177).
1700 (xg_end_scroll_callback): New function.
1701 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1702 xg_create_scroll_bar.
1703
1704 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1705 (scroll_end_callback): Remove.
1706 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1707 button-release-event. Replace value-changed event with change-value,
1708 bug #5177,
1709 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1710 bug #5177.
1711
1712 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1713 (xg_create_scroll_bar): Add GCallback end_callback.
1714
223e5fc6
JD
1715 * xftfont.c (QClcdfilter): New variable.
1716 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1717 (syms_of_xftfont): Initialize QClcdfilter.
1718
3c055b77
JD
17192009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1720
1721 * xsettings.c (struct xsettings): Add member seen.
1722 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1723 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1724 (apply_xft_settings): Only update Xft settings with what member seen
1725 indicates as new.
1726
05fe33ff
EZ
17272009-12-12 Eli Zaretskii <eliz@gnu.org>
1728
1729 * dispextern.h (struct text_pos): Use EMACS_INT;
1730 (struct glyph): Use EMACS_INT for charpos.
1731 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1732 region_beg_charpos, region_end_charpos,
1733 redisplay_end_trigger_charpos, and also for
1734 iterator_stack_entry.end_charpos and
1735 iterator_stack_entry.stop_charpos.
1736
e8d7886a
JD
17372009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1738
5ce6e4f4 1739 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1740 (xg_create_scroll_bar): Call scroll_end_callback on button release
1741 event (bug #5177).
1742 (xg_event_is_for_scrollbar): != replaced with ==.
1743
d0db2ec8
KH
17442009-12-12 Kenichi Handa <handa@m17n.org>
1745
1746 * ftfont.c (struct ftfont_info): New member matrix.
1747 (ftfont_open): Setup xftfont_info->matrix.
1748 (MFLTFontFT): New member matrix.
1749 (FLOOR, CEIL, ROUND): New macros.
1750 (ftfont_get_metrics): Handle matrix transformation.
1751 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1752
1753 * xftfont.c (struct xftfont_info): New member matrix.
1754 (xftfont_open): Setup xftfont_info->matrix.
1755
17562009-12-10 Kenichi Handa <handa@m17n.org>
1757
1758 * xdisp.c (append_space_for_newline): Consider face-remapping.
1759
2cc7b62f
AS
17602009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1761
b87dd913
AS
1762 * xsettings.c: Include "keyboard.h".
1763
eba5eb94
AS
1764 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1765
2cc7b62f
AS
1766 Fix implicit function declarations.
1767 * cmds.c: Include "frame.h".
1768 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1769 * frame.h: Move declaration of delete_frame outside of
1770 HAVE_WINDOW_SYSTEM.
1771
a4ef73c8
CY
17722009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1773
1774 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1775
1776 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1777 GTK builds.
1778
944a300c
AS
17792009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1780
1781 * unexelf.c (unexec): Don't search for .data twice.
1782
022eef62
CY
17832009-12-05 Chong Yidong <cyd@stupidchicken.com>
1784
426ac949
CY
1785 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1786 if push failed.
1787 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1788 of push_display_prop (Bug#5000).
1789
022eef62
CY
1790 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1791 value of font_list_entities (Bug#5085).
1792
be95bee9
JB
17932009-12-04 Juanma Barranquero <lekktu@gmail.com>
1794
1795 Fix `string-to-number' to deal consistently with integers and floats.
1796 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1797 trailing characters, not just whitespace.
1798 (read1): Pass new arg 0 to keep old behavior.
1799 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1800 trailing chars, as it is already done for integers. Doc fixes.
1801 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1802
24c2d7ce
EZ
18032009-12-04 Eli Zaretskii <eliz@gnu.org>
1804
0b5397c2
SM
1805 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1806 Delete unused enumeration value.
24c2d7ce 1807
7e694795
EZ
18082009-12-03 Eli Zaretskii <eliz@gnu.org>
1809
1810 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1811
84b31826
SM
18122009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1813
1814 * process.c (Fmake_network_process): Fix up the tests for
1815 "connectionless socket", so they DTRT for seqpacket sockets as well.
1816
f00c449b
SM
18172009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1818
1819 * process.c (Qseqpacket): New symbol.
1820 (HAVE_SEQPACKET): New macro.
1821 (Fmake_network_process): Accept new :type `seqpacket'.
1822 (init_process): Add `seqpacket' feature when applicable.
1823 (syms_of_process): Initialize Qseqpacket.
1824
8096a0ff
YM
18252009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1826
1827 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1828 if entity is Qnil.
1829
3e0de07f
SM
18302009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1831
1832 * print.c (print_preprocess): Preprocess the key_and_value table of
1833 hashtables, even tho they're "hidden" (bug#5082).
1834
abeafb2a
JD
18352009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1836
1837 * frame.c (frame_make_pointer_invisible)
1838 (frame_make_pointer_visible): Declare f before statements.
1839
4bf47195
EZ
18402009-11-28 Eli Zaretskii <eliz@gnu.org>
1841
1842 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1843 omitted dependencies on lisp.h.
1844
c525b3f2
JD
18452009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1846
ece2d4ed
JD
1847 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1848 is NULL.
1849
1850 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1851
1852 * frame.c (frame_make_pointer_invisible)
3e0de07f 1853 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1854 frame.
1855
c525b3f2
JD
1856 * search.c (simple_search): Remove warning by making *p const.
1857
2f00e299
DN
18582009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1859
1860 * xdisp.c (power_letter): Remove duplicate const.
1861
084b049b
JD
18622009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1863
a1fadc6f
JD
1864 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1865
5ce6e4f4 1866 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1867 defaults (bug #5025).
1868
28259cac
SM
18692009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1870
1871 * insdel.c (adjust_markers_for_delete): Move it in the
1872 right direction! (bug#4803)
1873
e8e14166
YM
18742009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1875
1876 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1877
1878 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1879
86677b58
GM
18802009-11-24 Glenn Morris <rgm@gnu.org>
1881
1882 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1883
581e51e8
JD
18842009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1885
cfc86c7a
JD
1886 * Makefile.in: Must create deps for ecrt0.o in its rule.
1887
581e51e8
JD
1888 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1889 because that is what Gtk+ font dialog understands.
1890
1891 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1892 of Fcopy_sequence.
1893 (font_open_by_name): Put name given into QCname for font-object returned.
1894
1895 * frame.c (x_set_font): Save original font name as frame parameter
1896 font-parameter.
1897
1898 * xsettings.c (set_default_xft_settings): New function.
1899 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1900 is found.
1901
8b264ecb
AS
19022009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1905 searching backwards through multibyte buffer.
1906
872870b2
JD
19072009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1908
1909 * xterm.c: #include xgselect.h.
1910 (x_initialize): Call xgselect_initialize.
1911
1912 * xsettings.c (something_changedCB): C++ comments => C comments.
1913 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1914 does that now.
1915
1916 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1917 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1918 (scroll_bar_button_cb): Remove.
5ce6e4f4 1919 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1920 event.
1921 (xg_create_scroll_bar): Don't bind button-press-event and
1922 button-release-event.
1923
1924 * process.c: Include xgselect.h if defined (USE_GTK) ||
1925 defined (HAVE_GCONF).
1926 (wait_reading_process_output): Call xg_select for the same condition.
1927
1928 * xgselect.c (xg_select): New function to better integrate with
1929 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1930
1931 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1932
1933 * Makefile.in (XOBJ): Add xgselect.o.
1934
62a6e103
AS
19352009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1936
0b5397c2
SM
1937 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1938 Remove ignored second argument. All callers changed.
62a6e103
AS
1939 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1940 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1941 * xdisp.c (string_char_and_length): Likewise.
1942
b0ca0f33
DN
19432009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1944
1945 * xterm.c (x_new_font):
1946 * print.c (print_object):
1947 * cmds.c (Fself_insert_command): Move declarations before statements.
1948
dd5a6279
CY
19492009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1950
1951 * s/cygwin.h: Remove unneeded linker flags.
1952
4a8e097d
JD
19532009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1954
0d1d0d26
JD
1955 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1956
1957 * xsettings.h: Declare xsettings_get_system_font.
1958
1959 * xsettings.c (xsettings_get_system_font): New function.
1960 (init_gconf): No use initiating gconf unless we have Xft also.
1961 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1962 HAVE_GCONF.
1963
4a8e097d
JD
1964 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1965 add a blank entry so it doesn't collapse into nothing.
1966
8ab1650e
SM
19672009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * lread.c (Funintern): Comment out last change.
1970
82c602f0
RS
19712009-11-19 Richard Stallman <rms@gnu.org>
1972
1973 * lread.c (Funintern): Error if symbol is t or nil.
1974
87e32266
SM
19752009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1976
1977 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1978 representation of Lisp integers.
1979 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1980
1b9ac145
AS
19812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1982
1983 * lisp.h: Remove declaration of Ffont_get_system_font.
1984 * xfns.c: Move include of "xsettings.h".
1985 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1986
dfb3c4c6
JD
19872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1988
87e32266
SM
1989 * xsettings.c (something_changedCB, Ffont_get_system_font):
1990 Check use_system_font.
dfb3c4c6
JD
1991 (syms_of_xsettings): DEFVAR font-use-system-font.
1992
9370c1d8
AS
19932009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1994
25fe851a
AS
1995 * xfns.c (x_default_font_parameter): Remove dead assignment.
1996
9370c1d8
AS
1997 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1998
637fa988
JD
19992009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2000
87e32266 2001 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2002 not have FC_LCD_*. #define them if not there.
a6eb20d8 2003
87e32266 2004 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2005
637fa988
JD
2006 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2007
2008 * xterm.c (handle_one_xevent): Call xft_settings_event for
2009 ClientMessage, PropertyNotify and DestroyNotify.
2010 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2011 Call xsettings_initialize.
2012
2013 * xftfont.c (xftfont_fix_match): New function.
2014 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2015 Call xftfont_fix_match after XftFontMatch.
2016
2017 * xfont.c (xfont_driver): Initialize all members.
2018
87e32266
SM
2019 * xfns.c (x_default_font_parameter):
2020 Try font from Ffont_get_system_font.
637fa988
JD
2021 Do not get font from x_default_parameter if we got one from
2022 Ffont_get_system_font.
87e32266 2023 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2024
2025 * w32font.c (w32font_driver): Initialize all members.
2026
2027 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2028
2029 * lisp.h: Declare syms_of_xsettings.
2030
87e32266
SM
2031 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2032 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2033
2034 * ftfont.c (ftfont_filter_properties): New function.
2035
2036 * frame.c (x_set_font): Remove unused variable lval.
2037
87e32266 2038 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2039
2040 * font.c (font_put_extra): Don't return if val is nil, it means
2041 boolean option is off.
2042 (font_parse_fcname): Collect all extra properties in extra_props
2043 and call filter_properties for all drivers with extra_props and
2044 font as parameter.
87e32266
SM
2045 (font_open_entity): Do not use cache, it does not pick up new
2046 fontconfig settings like hinting.
637fa988
JD
2047 (font_load_for_lface): If spec had a name in it, store it in entity.
2048
2049 * emacs.c (main): Call syms_of_xsettings
2050
2051 * config.in: HAVE_GCONF is new.
2052
2053 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2054 xsettings.o is new.
2055
5a942932
KH
20562009-11-17 Kenichi Handa <handa@m17n.org>
2057
2058 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2059 back to the default font in case that no suitable font is found.
2060
b7c7a4d1
SM
20612009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2062
2063 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2064 Suggested by Chad Brown <yandros@mit.edu>.
2065 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2066
072f1e39
JD
20672009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2068
2069 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2070
5d1e70a2
AS
20712009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2072
87e32266 2073 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2074
a53cfbe5
JD
20752009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2076
473a99b7
JD
2077 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2078 has a parent.
2079
a53cfbe5 2080 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2081 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2082
2083 * config.in: Generated (AUTO_DEPEND).
2084
f04bb9b2
MA
20852009-11-13 Michael Albinus <michael.albinus@gmx.de>
2086
b7c7a4d1 2087 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2088 Vdbus_registered_functions_table, because it contains also
2089 properties. Fix docstring.
b7c7a4d1 2090 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2091
8f11f7ec
SM
20922009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2093
2094 * alloc.c (mark_object): Don't reprocess marked strings.
2095 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2096 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2097
8a605fe8
KH
20982009-11-13 Kenichi Handa <handa@m17n.org>
2099
8f11f7ec 2100 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2101 semantics of Vword_combining_categories.
2102 (Vword_combining_categories): Describe the slight change of the
2103 semantics.
2104
241c4680
EZ
21052009-11-13 Eli Zaretskii <eliz@gnu.org>
2106
2107 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2108
2109 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2110
5d58e44c
SM
21112009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2112
2113 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2114
5e13f9d3
JB
21152009-11-12 Juanma Barranquero <lekktu@gmail.com>
2116
2117 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2118
cf54c754
DR
21192009-11-11 David Reitter <david.reitter@gmail.com>
2120
2121 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2122 variables to fix 2009-11-09 change.
2123
a4ada374
DN
21242009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2125
91433552
DN
2126 * process.c (ifflag_def): Make flag_sym constant.
2127 (Fnetwork_interface_info): Use a constant pointer.
2128 (ifflag_table):
2129 * xfns.c (cursor_bits):
2130 * xdisp.c (power_letter):
2131 * termcap.c (speeds, esctab):
2132 * sysdep.c (baud_convert):
2133 * keyboard.c (lispy_accent_codes, modifier_names):
2134 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2135 (jpeg_format, tiff_format, gif_format, svg_format)
2136 (interlace_start, interlace_increment, gs_format):
2137 * gtkutil.c (separator_names):
2138 * fringe.c (swap_nibble):
2139 * fns.c (base64_value_to_char, base64_char_to_value):
2140 * fileio.c (make_temp_name_tbl):
2141 * coding.c (suffixes): Make constant.
2142
f4265f6c
DN
2143 * frame.c (make_initial_frame):
2144 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2145 build_string.
2146 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2147
04420943
DN
2148 * s/freebsd.h:
2149 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2150
0a5d24ae
DN
2151 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2152 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2153
a4ada374
DN
2154 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2155 * xterm.c (syms_of_xterm):
2156 * xfaces.c (syms_of_xfaces):
2157 * xdisp.c (syms_of_xdisp):
2158 * lread.c (syms_of_lread):
2159 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2160 build_string.
91433552 2161
a4ada374
DN
2162 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2163
af98fc7f
SM
21642009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2165
8ab1650e 2166 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2167
e90292a9
JD
21682009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2169
2170 * keyboard.h: Declare timer_check.
2171
2172 * keyboard.c (timer_check_2): New function that does what the old
2173 timer_check did.
2174 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2175 returned, i.e. don't return -1 with timers pending.
2176
2177 * process.c: Remove extern declaration of timer_check.
2178
2179 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2180 even if timer_check returned -1.
2181
af98fc7f
SM
2182 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2183 xg_dialog_data.
e90292a9
JD
2184 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2185 the event loop.
2186 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2187 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2188 Destroy the dialog after xg_dialog_run.
2189
045b83c0
SM
21902009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2191
2192 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2193
1fb99a3a
JD
21942009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2195
2196 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2197
04e452cb
JB
21982009-11-09 Juanma Barranquero <lekktu@gmail.com>
2199
2200 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2201
ef7417fd
SM
22022009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2203
2204 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2205 w32menu.c, and nsmenu.m.
2206 Simplify the obsolete case where position is nil.
2207 (cleanup_popup_menu): New function, moved from nsmenu.m.
2208 (struct skp): Remove slot `notreal'.
2209 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2210 adjust callers.
2211 (single_menu_item): Adjust call to parse_menu_item.
2212 (syms_of_menu): Defsubr x-popup-menu.
2213 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2214 (keymap_panes): Don't export any more.
2215 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2216 (xmenu_show): Declare.
2217 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2218 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2219 * keyboard.h (parse_menu_item): Update declaration.
2220 * xmenu.c (Fx_popup_menu): Remove.
2221 (syms_of_xmenu): Don't defsubr x-popup-menu.
2222 * w32menu.c (Fx_popup_menu): Remove.
2223 (syms_of_w32menu): Don't defsubr x-popup-menu.
2224 * nsmenu.m (cleanup_popup_menu): Remove.
2225 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2226 moved to menu.c's Fx_popup_menu.
2227 (Fx_popup_menu): Remove.
2228 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2229 menu_items (it's done in menu.c already).
2230
424d6179
SM
22312009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2232
2233 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2234 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2235
c0df13a6 22362009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2237
2238 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2239 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2240 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2241 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2242
2de9f71c
SM
22432009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2244
2245 Let integers use up 2 tags to give them one extra bit and thus double
2246 their range.
2247 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2248 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2249 New macros.
2250 (enum Lisp_Type): Use them. Give explicit values.
2251 (Lisp_Type_Limit): Remove.
2252 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2253 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2254 Pay attention to USE_2_TAGS_FOR_INTS.
2255 (INTEGERP): Use LISP_INT_TAG_P.
2256 * fns.c (internal_equal): Simplify the default case.
2257 (sxhash): Use case_Lisp_Int.
2258 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2259 any more.
2260 (Ftype_of): Use case_Lisp_Int.
2261 (store_symval_forwarding): Take into account the fact that Ints can
2262 now have more than one tag.
2263 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2264 buffer_slot_type_mismatch):
2265 * xfaces.c (face_attr_equal_p):
2266 * print.c (print_object):
2267 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2268 Use case_Lisp_Int.
2269
323637a2
EZ
22702009-11-06 Eli Zaretskii <eliz@gnu.org>
2271
7ac65b38
EZ
2272 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2273
323637a2
EZ
2274 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2275 warning.
2276
e511451f
JD
22772009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2278
2279 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2280
2281 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2282
2283 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2284 ButtonPressRelease and MotionNotify (bug#4870).
2285
5e2327cf
DN
22862009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2287
5adc433e
DN
2288 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2289
d67b4f80
DN
2290 * xterm.c (syms_of_xterm):
2291 * xselect.c (syms_of_xselect):
2292 * xmenu.c (syms_of_xmenu):
2293 * xfns.c (syms_of_xfns):
2294 * xfaces.c (syms_of_xfaces):
2295 * xdisp.c (syms_of_xdisp):
2296 * window.c (syms_of_window):
2297 * w32fns.c (syms_of_w32fns):
2298 * undo.c (syms_of_undo):
2299 * textprop.c (syms_of_textprop):
2300 * terminal.c (syms_of_terminal):
2301 * syntax.c (syms_of_syntax):
2302 * sound.c (syms_of_sound):
2303 * search.c (syms_of_search):
2304 * print.c (syms_of_print):
2305 * minibuf.c (syms_of_minibuf):
2306 * macros.c (syms_of_macros):
2307 * keymap.c (syms_of_keymap, initial_define_key)
2308 (initial_define_lispy_key):
2309 * keyboard.c (syms_of_keyboard):
2310 * insdel.c (syms_of_insdel):
2311 * image.c (syms_of_image):
2312 * fringe.c (syms_of_fringe):
2313 * frame.c (syms_of_frame):
2314 * fontset.c (syms_of_fontset):
2315 * fns.c (syms_of_fns):
2316 * fns.c (syms_of_fns):
2317 * fileio.c (syms_of_fileio):
2318 * fileio.c (syms_of_fileio):
2319 * eval.c (syms_of_eval):
2320 * doc.c (syms_of_doc):
2321 * dispnew.c (syms_of_display):
2322 * dired.c (syms_of_dired):
2323 * dbusbind.c (syms_of_dbusbind):
2324 * data.c (syms_of_data):
2325 * composite.c (syms_of_composite):
2326 * coding.c (syms_of_coding):
2327 * cmds.c (syms_of_cmds):
2328 * charset.c (define_charset_internal, syms_of_character):
2329 * ccl.c (syms_of_ccl):
2330 * category.c (syms_of_category, init_category_once):
2331 * casetab.c (syms_of_casetab):
2332 * casefiddle.c (syms_of_casefiddle):
2333 * callint.c (syms_of_callint):
2334 * bytecode.c (syms_of_bytecode):
2335 * buffer.c (keys_of_buffer, syms_of_buffer):
2336 * alloc.c (syms_of_alloc):
2337 * process.c (syms_of_process, init_process):
2338 * lread.c (syms_of_lread, init_obarray):
2339 * font.c (build_style_table):
2340 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2341 intern_c_string, calls to make_pure_string with
2342 make_pure_c_string. Use pure_cons instead of Fcons.
2343
5e2327cf
DN
2344 * process.c (socket_options): Make it const.
2345 (set_socket_option, init_process): Use a const pointer.
2346
2347 * lread.c (intern_c_string): New function.
2348 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2349 (defvar_int): Uset it. Make the name const char*.
2350
2351 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2352 (defvar_int): Update prototypes.
2353 (DEFUN, EXFUN): Support for prototypes is now required.
2354 (intern_c_string): New prototype.
2355 (struct Lisp_Subr): Make symbol_name constant.
2356
2357 * font.c (struct table_entry): Remove unused member. Make NAMES
2358 constant.
2359 (weight_table, slant_table, width_table): Make constant.
2360
2361 * emacs.c (struct standard_args): Make name and longname constant.
2362
2363 * character.h (DEFSYM): Use intern_c_string.
2364
a56eaaef
DN
23652009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2366
2367 * alloc.c (make_pure_c_string): New function.
2368
2369 * eval.c (Fautoload): Purecopy all arguments.
2370
f6a07420
KH
23712009-11-05 Kenichi Handa <handa@m17n.org>
2372
2373 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2374 the buffer in case of replace.
2375
5d28d4b1
DN
23762009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2377
2378 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2379
b349d111
SM
23802009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2381
d528b1ce
SM
2382 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2383 when applicable (bug#4851).
2384
b349d111
SM
2385 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2386 (P_): Support for prototypes is now required.
2387
c38eb027
CY
23882009-10-31 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2391 (Bug#4827).
2392
0405f8d9
EZ
23932009-10-30 Eli Zaretskii <eliz@gnu.org>
2394
d528b1ce 2395 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2396
ca0a881a
DN
23972009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2398
2399 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2400
d528b1ce
SM
2401 * lread.c (Fload): Purecopy the file name when building
2402 Vpreloaded_file_list.
ca0a881a 2403
47e0e0e4
JR
24042009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2405
2406 * w32fns.c (syms_of_w32fns): Change default value of
2407 w32-scroll-lock-modifier to nil. (Bug#2827)
2408
057bce6f
JB
24092009-10-26 Juanma Barranquero <lekktu@gmail.com>
2410
782a943e 2411 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2412
242bc74c
AS
24132009-10-26 Andreas Schwab <schwab@redhat.com>
2414
2415 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2416
522d013a
JB
24172009-10-26 Juanma Barranquero <lekktu@gmail.com>
2418
2419 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2420 For delta < 0, skip check that only makes sense when the mini-window
2421 is going to be enlarged. (Bug#4534)
2422
18060980
CY
24232009-10-25 Chong Yidong <cyd@stupidchicken.com>
2424
2425 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2426 string in menu maps (Bug#4471).
2427
fec8f0fe
CY
24282009-10-24 Chong Yidong <cyd@stupidchicken.com>
2429
2430 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2431 FRAME_NS_VIEW on terminal frames (Bug#4765).
2432
10d66ec0
AS
24332009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2434
1cae01f7
AS
2435 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2436 DBUS_TYPE_UINTnn separately to get proper sign extension.
2437
58a12889
AS
2438 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2439 can properly handle unsigned types.
d528b1ce 2440 (make_uid, make_gid): Remove.
58a12889 2441
987c9327
AS
2442 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2443 types again.
2444
522d013a 2445 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2446 (system_process_attributes): Likewise.
2447
905a9ed3
DN
24482009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2449
2450 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2451
2452 * eval.c (Fautoload): Purecopy the filename. Simplify.
2453
2454 * category.c (Fdefine_category): Purecopy docstring.
2455
a599b3e8
AS
24562009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2457
7b792fc9
AS
2458 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2459
a599b3e8
AS
2460 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2461
b35ac83e
CY
24622009-10-23 Chong Yidong <cyd@stupidchicken.com>
2463
2464 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2465 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2466 (Bug#4775).
2467
e8903e00
SM
24682009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2469
2470 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2471 (init_fileio_once):
2472 * lisp.h (init_fileio_once): Remove.
2473 * emacs.c (main): Don't call init_fileio_once.
2474
8f43cbf3
DN
24752009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2476
2477 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2478
26898943
AS
24792009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2480
2481 * doprnt.c (doprnt): Fix overflow check.
2482
5c646d5a
JD
24832009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2484
3132a7ea
JD
2485 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2486
5c646d5a
JD
2487 * xterm.h (x_wait_for_event): Declare it.
2488
2489 * xterm.c (pending_event_wait): New variable.
2490 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2491 see pending_event_wait.eventtype.
2492 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2493 (x_new_font): Call change_frame_size with new rows/columns before we
2494 try to resize the frame.
5c646d5a 2495 (x_wait_for_event): New function.
d528b1ce
SM
2496 (x_set_window_size_1): Don't change gravity unless change_gravity
2497 is set.
5c646d5a
JD
2498 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2499 don't change frame size, instead wait for the ConfigureNotify.
2500 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2501 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2502 (x_initialize): Initialize pending_event_wait.
2503
2504 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2505 size.
2506
2507 * widget.c (EmacsFrameSetValues): Add comment.
2508 (EmacsFrameSetCharSize): Just call x_set_window_size.
2509
2510 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2511 x_wait_for_event.
d528b1ce 2512 (flush_and_sync): Remove again.
5c646d5a
JD
2513 (xg_get_font_name): Suggest monospace if no previous font is known.
2514
e9c1637d
SM
25152009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2516
2517 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2518 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2519
5a72cccb
YM
25202009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2521
2522 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2523 processing pending events when event is filtered for input method.
ab04798f 2524 (Bug#3681)
5a72cccb 2525
2629aa37
JB
25262009-10-20 Juanma Barranquero <lekktu@gmail.com>
2527
2528 * fns.c: Add #endif accidentally removed in previous change.
2529
c3417a74
DN
25302009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2531
2532 * fns.c: Remove code for unsupported system: MAC_OS.
2533 * image.c: Likewise. Include setjmp.h.
2534
9685cef2
JD
25352009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2536
2537 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2538 pixel -1 (bug #4742).
2539
d7306fe6
DN
25402009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2541
019d2c4c
DN
2542 * process.c (create_pty): Remove conditionals for no longer
2543 supported systems: UNIPLUS and RTU.
2544
ee6bacd4
DN
2545 * xterm.c:
2546 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2547
d7306fe6
DN
2548 * alloc.c: Do not define struct catchtag.
2549 * eval.c: Move struct catchtag definition ...
2550 * lisp.h: ... here.
2551
2552 * image.c: Move png.h #include earlier to avoid warnings.
2553
2554 * xterm.c:
2555 * xsmfns.c:
2556 * xselect.c:
2557 * xrdb.c:
2558 * xmenu.c:
2559 * xftfont.c:
2560 * xfont.c:
2561 * xfns.c:
2562 * xfaces.c:
2563 * xdisp.c:
2564 * window.c:
2565 * widget.c:
2566 * w32xfns.c:
2567 * w32uniscribe.c:
2568 * w32term.c:
2569 * w32select.c:
2570 * w32reg.c:
2571 * w32proc.c:
2572 * w32menu.c:
2573 * w32inevt.c:
2574 * w32heap.c:
2575 * w32font.c:
2576 * w32fns.c:
2577 * w32console.c:
2578 * w32.c:
2579 * w16select.c:
2580 * vm-limit.c:
2581 * unexsol.c:
2582 * unexec.c:
2583 * unexcw.c:
2584 * unexaix.c:
2585 * undo.c:
2586 * tparam.c:
2587 * textprop.c:
2588 * terminfo.c:
2589 * terminal.c:
2590 * termcap.c:
2591 * term.c:
2592 * syntax.c:
2593 * sound.c:
2594 * sheap.c:
2595 * search.c:
2596 * scroll.c:
2597 * region-cache.c:
2598 * regex.c:
2599 * ralloc.c:
2600 * process.c:
2601 * print.c:
b024548b
DN
2602 * nsterm.m:
2603 * nsselect.m:
2604 * nsmenu.m:
2605 * nsimage.m:
2606 * nsfont.m:
2607 * nsfns.m:
d7306fe6
DN
2608 * msdos.c:
2609 * minibuf.c:
2610 * menu.c:
2611 * marker.c:
2612 * macros.c:
2613 * keymap.c:
2614 * keyboard.c:
2615 * intervals.c:
2616 * insdel.c:
2617 * indent.c:
2618 * gtkutil.c:
2619 * ftxfont.c:
2620 * ftfont.c:
2621 * fringe.c:
2622 * frame.c:
2623 * fontset.c:
2624 * font.c:
2625 * fns.c:
2626 * floatfns.c:
2627 * filelock.c:
2628 * fileio.c:
2629 * emacs.c:
2630 * editfns.c:
2631 * dosfns.c:
2632 * doprnt.c:
2633 * doc.c:
2634 * dispnew.c:
2635 * dired.c:
2636 * dbusbind.c:
2637 * data.c:
2638 * composite.c:
2639 * coding.c:
2640 * cmds.c:
2641 * cm.c:
2642 * chartab.c:
2643 * charset.c:
2644 * character.c:
2645 * ccl.c:
2646 * category.c:
2647 * casetab.c:
2648 * casefiddle.c:
2649 * callproc.c:
2650 * callint.c:
2651 * bytecode.c:
2652 * buffer.c:
2653 * atimer.c: Include setjmp.h. (Bug#4643)
2654
fd5f21e6
SM
26552009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2656
4c0354d7
SM
2657 Remove leftover table unibyte_to_multibyte_table.
2658 * character.c (unibyte_to_multibyte_table): Remove.
2659 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2660 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2661 * character.h (UNIBYTE_TO_CHAR): New macro.
2662 (MAKE_CHAR_MULTIBYTE): Use it.
2663 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2664 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2665 (message_dolog, set_message_1):
2666 * search.c (Freplace_match):
2667 * editfns.c (Fcompare_buffer_substrings):
2668 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2669 (concat):
2670 * insdel.c (copy_text, count_size_as_multibyte):
2671 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2672 * term.c (produce_glyphs):
2673 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2674 * regex.c (RE_CHAR_TO_MULTIBYTE):
2675 * cmds.c (internal_self_insert):
2676 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2677
fd5f21e6
SM
2678 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2679
4418646e
DN
26802009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2681
2682 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2683
35f5c1d2
JB
26842009-10-16 Juanma Barranquero <lekktu@gmail.com>
2685
2686 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2687
a0cd8f6b
AR
26882009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2689
2690 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2691 still needed under Tiger.
2692
2693 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2694
2695 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2696 __Apple__.
2697
2698 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2699
01a8d3fa
KH
27002009-10-15 Kenichi Handa <handa@m17n.org>
2701
2702 * print.c (print_object): Escape a symbol like "2E10" too.
2703
bf6c75c9 27042009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2705
2706 Cleanups and changes for 64-bit compile under Snow Leopard.
2707 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2708
2709 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2710
c5959062 2711 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2712 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2713 cast argument.
2714 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2715 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2716
2717 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2718
2719 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2720 where appropriate.
2721
2722 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2723 where appropriate.
6e4780c5
JB
2724 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2725 Use stringWithUTF8String.
bf6c75c9
AR
2726 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2727
6e4780c5
JB
2728 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2729 Add formal protocol mention to inheritance.
bf6c75c9
AR
2730 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2731
6e4780c5
JB
2732 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2733 Fix printf format.
bf6c75c9
AR
2734 (ns_query_color): Use CGFloat where appropriate.
2735 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2736 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2737 argument.
2738
3d87f118
AR
2739 * config.in (NS_HAVE_NSINTEGER): Drop.
2740
a95c8102
AR
2741 * dbusbind.c (dbus-method-return-internal)
2742 (dbus-method-error-internal): Use long format in printf, and cast
2743 argument.
2744
2745 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2746 in printf, and cast argument.
2747
6873acca 2748 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2749 cast argument.
2750
9ec6f100
GM
27512009-10-11 Glenn Morris <rgm@gnu.org>
2752
2753 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2754
5be883cd
JD
27552009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2756
2757 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2758 menu bar with a small width so it doesn't enlarge the frame.
2759
d7a39b51
JB
27602009-10-08 Juanma Barranquero <lekktu@gmail.com>
2761
2762 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2763
0c2b6f8e
GM
27642009-10-06 Glenn Morris <rgm@gnu.org>
2765
2766 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2767 SOME_MACHINE_LISP (this enters indirectly via DOC).
2768
e02131a2
EZ
27692009-10-05 Eli Zaretskii <eliz@gnu.org>
2770
2771 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2772
b4744254
EZ
27732009-10-04 Eli Zaretskii <eliz@gnu.org>
2774
2775 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2776 Doc fix.
2777
dbf64827
JB
27782009-10-03 Martin Rudalics <rudalics@gmx.at>
2779
2780 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2781
e9a0aef8
MA
27822009-10-02 Michael Albinus <michael.albinus@gmx.de>
2783
d528b1ce 2784 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2785 used anymore outside fileio.c.
2786
2787 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2788
64eb2b56
JB
27892009-10-01 Juanma Barranquero <lekktu@gmail.com>
2790
2791 * lisp.h (Qdelete_directory_internal):
2792 Declare, instead of Qdelete_directory.
2793
2794 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2795
9d28c33e
SM
27962009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2797
2798 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2799
9d8f3bd9
MA
28002009-10-01 Michael Albinus <michael.albinus@gmx.de>
2801
9d28c33e 2802 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2803 Fdelete_directory. It is not a command anymore. It has no file
2804 name handler.
2805
9694740b
SM
28062009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2807
2808 * xdisp.c (get_next_display_element): Use an enum in last change.
2809
748e162f
KH
28102009-09-28 Kenichi Handa <handa@m17n.org>
2811
9694740b 2812 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2813 unibyte_display_via_language_environment in handling
2814 Vnobreak_char_display.
2815
17efd58d
AR
28162009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2817
2818 * nsterm.h (ns_app_name): New extern variable.
2819
2820 * nsterm.m (ns_app_name): New variable.
2821 (ns_term_init): Set and use it.
2822 (ns_term_shutdown): Use it.
2823
2824 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2825 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2826
2827 * nsfns.m (ns_set_name_iconic, ns_set_name)
2828 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2829 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2830
9694740b
SM
2831 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2832 Remove double-casting in client_data comparison.
31c2d412 2833
3208cb35
YM
28342009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2835
2836 * keyboard.c (make_lispy_event): Remember last wheel direction.
2837 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2838
b7d552d6
GM
28392009-09-26 Glenn Morris <rgm@gnu.org>
2840
2841 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2842 internal.elc. Add term/pc-win.elc.
2843 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2844 term/x-win.elc.
2845 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2846 term/w32-win.elc.
2847 (NS_SUPPORT): New.
2848 (lisp): Add NS_SUPPORT.
2849 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2850
4ff670a8
DR
28512009-09-25 David Reitter <david.reitter@gmail.com>
2852
2853 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2854 on Mac OS X 10.6+ (bug#4513).
2855
feabfb6c
JB
28562009-09-24 Juanma Barranquero <lekktu@gmail.com>
2857
2858 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2859 some parts of Emacs code (like font selection) don't grok them.
2860 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2861
de59072a
AS
28622009-09-24 Andreas Schwab <schwab@redhat.com>
2863
2864 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2865
a489517b
JB
28662009-09-24 Juanma Barranquero <lekktu@gmail.com>
2867
2868 * dired.c (Fdirectory_files): Fix typo in docstring.
2869
0592970c
AR
28702009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2871
2872 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2873 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2874 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2875 under GNUstep.
2876 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2877
2878 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2879 glyph advancement.
2880
48e8a88b
AR
28812009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2882
2883 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2884 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2885
2886 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2887 deleted (bug #4492).
2888
e14f0a78
AR
2889 * nsfont.m (Vns_reg_to_script): New lisp variable.
2890 (syms_of_nsfont): Declare it.
2891 (ns_registry_to_script): New function.
2892 (ns_get_req_script): Call it.
2893 (ns_findfonts): Don't give up on non-unicode registry.
2894
2895 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2896
5b650faa
SM
28972009-09-20 Tom Tromey <tromey@redhat.com>
2898
2899 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2900 batch mode (bug#4228).
2901
a489517b 29022009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2903
2904 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2905 carefully. (Bug #4339)
0bae4e09 2906
fcfe06f3
CY
29072009-09-18 Chong Yidong <cyd@stupidchicken.com>
2908
d798ba87 2909 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2910
31642728
AR
29112009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2912
2913 * emacs.c (inhibit_x_resources): Update doc string for NS.
2914 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2915 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2916
2917 * nsterm.h (ns_no_defaults): Remove.
2918
2919 * nsterm.m (ns_no_defaults): Remove.
2920 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2921 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2922 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2923 don't update the NSWindow itself.
2924 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2925 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2926
2927 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2928 ns_use_qd_smoothing.
2929
2930 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2931 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2932 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2933 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2934
8686ac71
JB
29352009-09-17 Juanma Barranquero <lekktu@gmail.com>
2936
2937 * emacs.c (inhibit_x_resources): New variable.
2938 (main) [HAVE_NS]: Don't process --quick command line option.
2939 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2940
2941 * lisp.h (inhibit_x_resources): Declare it extern.
2942
2943 * w32reg.c (x_get_string_resource):
2944 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2945
e227ba05
EZ
29462009-09-17 Eli Zaretskii <eliz@gnu.org>
2947
362654a6
JB
2948 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2949 Add lisp/term/internal.elc.
e227ba05 2950
742d40e8
SM
29512009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2952
2953 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2954 (bug#4461).
2955
005bd5a2
DN
29562009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2957
2958 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2959
2960 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2961 (OBJECTS_MACHINE): Remove, unused.
2962
f9af9719
SM
29632009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2964
2965 * frame.c (x_get_resource_string): Remove unused.
2966
0307c7d2
JD
29672009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2968
2969 * xterm.c (x_new_font): Call change_frame_size before calling
2970 x_set_window_size, in case frame size won't change.
2971
2972 * frame.c (x_set_font): Remove dead code.
2973
428b13d6
SM
29742009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2975
2976 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2977
5766c380
SM
29782009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2979
2980 * lread.c (Fload): Don't output a message after loading an obsolete
2981 package any more (done in Lisp now).
2982
2fd0161b
CY
29832009-09-12 Chong Yidong <cyd@stupidchicken.com>
2984
2985 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2986
bc5e75b6
SM
29872009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2988
2989 * keymap.c (Fwhere_is_internal): Use nconc2.
2990
c31c985e
AM
29912009-09-11 Alan Mackenzie <acm@muc.de>
2992
2993 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2994 batch mode.
2995
78012bd2
AS
29962009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2997
2998 * xdisp.c (display_mode_element): Detect cycles.
2999
9d889332
SM
30002009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3001
3002 * keymap.c (where_is_internal): Don't erroneously return nil right after
3003 filling the cache.
3004 (where_is_internal_1): Fix up typo.
3005
7ab5d780
GM
30062009-09-11 Glenn Morris <rgm@gnu.org>
3007
3008 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3009 share a common doc-string.
3010
5238a749
SM
30112009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3012
66d77eda
SM
3013 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3014 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3015
5238a749
SM
3016 * keymap.c (QCadvertised_binding): New constant.
3017 (syms_of_keymap): Initialize it.
3018 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3019 if applicable.
3020
19f48442
SM
30212009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3022
50d4ba39
SM
3023 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3024 (parse_menu_item): Streamline since bindings are recomputed all the
3025 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3026 more and don't support lmenu's menu-alias any more either.
3027
a88a5372
SM
3028 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3029 (where_is_internal): Strip it down to only traverse the keymaps.
3030 Move the cache handling from Fwhere_is_internal to here.
3031 (Fwhere_is_internal): Move the handling of remapping and the choice of
3032 the best binding from where_is_internal to here.
3033 Unify the cached/noncached paths, so remapping is also handled
3034 correctly when the cache is used, and so the cache can be used to
3035 speed up remap-handling when applicable.
3036 Give preference to non-remapped bindings.
3037 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3038 non-remapped bindings.
3039 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3040 command remapping.
3041
19f48442
SM
3042 * xdisp.c (display_mode_element): Move list length limit from 50 to
3043 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3044
599498c3 30452009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3046
3047 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3048
f9b7b5ac
SM
30492009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3050
a53af587
JB
3051 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3052 (Bug#4334)
3053
f9b7b5ac
SM
3054 * keymap.c (where_is_internal): Filter out shadowed remappings.
3055 Assume that where_is_internal returns unshadowed bindings to simplify
3056 the code and get rid of the gotos. Use ASIZE.
3057
04f4b72d
JD
30582009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3059
4da146f2
JD
3060 * xterm.c (x_focus_changed): If we get a focusout and pointer
3061 is invisible, make it visible.
3062
04f4b72d
JD
3063 * xterm.h: Remove condition for declaration of
3064 x_*_window_to_frame.
3065
7cef7ce3
SM
30662009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3067
3068 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3069 initial terminal as well.
3070
a54fa5b7
JD
30712009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3072
3073 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3074 x_menubar_window_to_frame.
a54fa5b7 3075
50426a04 3076 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3077 (XTmouse_position): Do not return valid positions
3078 for clicks in the menubar and the toolbar for Gtk+.
3079
3080 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3081 if the widget for the event has the same top level as a frame,
3082 return the frame.
3083 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3084 internal windows, bug #4122.
3085 (x_non_menubar_window_to_frame): Remove.
3086
5a021dd0
GM
30872009-09-02 Glenn Morris <rgm@gnu.org>
3088
3089 * buffer.c (default-major-mode): Move most of the doc from here...
3090 (major-mode): ... to here.
3091
548fe2f3
NR
30922009-08-30 Nick Roberts <nickrob@snap.net.nz>
3093
3094 * process.c (wait_reading_process_output): Keep the descriptor
3095 when pty is used by a non-child process, e.g., in I/O buffer of
3096 GDB this allows inferior to be restarted.
3097
e0840eef
EZ
30982009-08-29 Eli Zaretskii <eliz@gnu.org>
3099
3100 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3101 both branches into one.
3102
82e98df4
SM
31032009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3104
3105 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3106 (main): Use enable-multibyte-characters rather than
3107 default-enable-multibyte-characters. Output a warning message when
3108 running a unibyte session.
3109
890617cb
YM
31102009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3111
3112 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3113 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3114 (copy_data_segment): Also copy __program_vars section.
3115 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3116 (dump_it) [LC_DYLD_INFO]: Use it.
3117
3118 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3119
e7adeadc
EZ
31202009-08-28 Eli Zaretskii <eliz@gnu.org>
3121
3122 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3123 $(SRC)/buildobj.h.
3124 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3125 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3126 $(SRC)/buildobj.h.
3127 (clean): Add buildobj.h.
3128
3ed8bbdc
TZ
31292009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3130
3131 * print.c (print_object): Set escapeflag to 1 when printing
3132 hashtable keys and values.
3133
155a6764
SM
31342009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * lread.c (read_integer): Use doubles (and potentially return a float
3137 number) as we do in string-to-number.
3138 (read1): Use strtol to read integers, signal errors on strtol's
3139 overflow and use floats if strtol's output is too large for
3140 Elisp integers.
3141
877610de
EZ
31422009-08-27 Eli Zaretskii <eliz@gnu.org>
3143
3144 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3145 (make-buildobj-SH): Fix last change.
3146 (SRC): Move to before where it's first used.
3147
ef73e7be
KH
31482009-08-27 Kenichi Handa <handa@m17n.org>
3149
550c8289
KH
3150 * process.c (send_process): Use encode_coding_object instead of
3151 encode_coding_string to perform eol-conversion even if the string
3152 is unibyte.
3153
60afa08d
KH
3154 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3155 character.
3156
ef73e7be 3157 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3158 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3159
7b3a82d7
DN
31602009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3161
5654bf63
DN
3162 * callproc.c (Fcall_process): Remove always true #if.
3163
7b3a82d7
DN
3164 * lisp.h: Replace #if 0 code for checking with text pointing to
3165 the --enable-checking configure flag.
3166
3167 * emacs.c (main): Mention the --enable-profiling configure flag
3168 instead of using CFLAGS.
3169
878bde49
KR
31702009-08-26 Ken Raeburn <raeburn@raeburn.org>
3171
3172 * Makefile.in (buildobj.h): New target.
3173 (doc.o): Depend on it.
3174 (temacs${EXEEXT}): Don't generate buildobj.lst.
3175 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3176 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3177 ($(BLD)/doc.$(O)): Depend on it.
3178 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3179 provided by Eli Zaretskii.)
3180 ($(TEMACS)): Don't generate buildobj.lst.
3181 * doc.c: Include buildobj.h.
3182 (buildobj): New static variable.
3183 (Fsnarf_documentation): Use it, instead of opening and reading
3184 buildobj.lst.
3185
1574224c
MA
31862009-08-25 Michael Albinus <michael.albinus@gmx.de>
3187
3188 * dbusbind.c (Fdbus_call_method)
3189 (Fdbus_call_method_asynchronously): Use English numeric format for
3190 timeout values in doc string.
3191
d9da2f45
KH
31922009-08-25 Kenichi Handa <handa@m17n.org>
3193
ef73e7be
KH
3194 * alloc.c (mark_char_table): New function.
3195 (mark_object): Use mark_char_table for a char-table.
3196
d9da2f45
KH
3197 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3198 (CHAR_TABLE_REF): Use it.
3199
c8edcc01
KR
32002009-08-23 Ken Raeburn <raeburn@raeburn.org>
3201
3202 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3203 before invoking the newly build emacs to check for load-path
3204 shadowing.
3205
7763401b
GM
32062009-08-22 Glenn Morris <rgm@gnu.org>
3207
3208 * Makefile.in (bootstrap_exe): New variable.
3209 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3210 Use ${bootstrap_exe}.
3211
729eadda
EZ
32122009-08-22 Eli Zaretskii <eliz@gnu.org>
3213
3214 * coding.h (encode_coding_string): Don't encode unibyte strings.
3215 (Bug#4047)
3216
eb4c6ace
MA
32172009-08-22 Michael Albinus <michael.albinus@gmx.de>
3218
3219 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3220
3221 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3222 intended as hotfix only.
3223 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3224
36e34d1b
AR
32252009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3226
3227 * nsterm.m (ns_get_color): Update documentation properly for last
3228 change, and clean up loose ends in the code left by it. Fix
3229 longstanding bug with 16-bit hex parsing, and add support for
3230 yet another X11 format (rgb:r/g/b) for compatibility.
3231 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3232 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3233
f983eb8a
SM
32342009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3235
3236 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3237
3f56d3c6
MA
32382009-08-20 Michael Albinus <michael.albinus@gmx.de>
3239
3240 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3241 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3242 (xd_initialize, xd_pending_messages): Check, whether
3243 $DBUS_SESSION_BUS_ADDRESS is set.
3244
fb641d68
YM
32452009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3246
3247 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3248
3249 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3250
cf59a374
GM
32512009-08-20 Glenn Morris <rgm@gnu.org>
3252
3253 * emacs.c (system-type): Doc fix.
3254
1373f3be
SM
32552009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3256
3257 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3258 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3259
058ed861
MA
32602009-08-18 Michael Albinus <michael.albinus@gmx.de>
3261
1373f3be
SM
3262 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3263 New functions.
058ed861
MA
3264 (xd_initialize): Revert change from 2009-08-16.
3265
563a866e 32662009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3267
3268 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3269 font-group vector, return nil.
5fc05db0 3270
e42bdf01
CY
32712009-08-17 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * process.c (status_notify): Don't perform redisplay.
3274 (Fdelete_process, list_processes_1, process_send_signal):
3275 Expliticly perform redisplay.
3276 (wait_reading_process_output): Always check process status, but
3277 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3278
4230ab74
KR
32792009-08-17 Ken Raeburn <raeburn@raeburn.org>
3280
1373f3be 3281 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3282 (XFLOAT_INIT): New macro for storing a float value.
3283 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3284 * fns.c (sxhash): Copy out the value of a float in order to
3285 examine its bytes.
3286 * dbusbind.c (xd_append_arg): Likewise.
3287
4230ab74
KR
3288 * emacs.c (main): Don't call syms_of_data twice.
3289
a0645cdd
MA
32902009-08-16 Michael Albinus <michael.albinus@gmx.de>
3291
3292 * dbusbind.c (xd_initialize): Add connection file descriptor to
3293 input_wait_mask, in order to let select() detect, whether a new
3294 message has been arrived.
ca4f31ea 3295 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3296
485db0ba
MA
32972009-08-15 Michael Albinus <michael.albinus@gmx.de>
3298
1373f3be
SM
3299 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3300 New functions.
485db0ba
MA
3301
3302 * lisp.h (xd_pending_messages): Declare.
3303
3304 * keyboard.c (readable_events): Call xd_pending_messages.
3305
b5b98ff4
CY
33062009-08-15 Chong Yidong <cyd@stupidchicken.com>
3307
1373f3be 3308 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3309
f8354c6e
CY
3310 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3311
b5b98ff4
CY
3312 * buffer.c (set_buffer_internal_1)
3313 (swap_out_buffer_local_variables): Check for unbound local
3314 variables (Bug#4138).
3315
8b9fc636
EZ
33162009-08-14 Eli Zaretskii <eliz@gnu.org>
3317
3318 * process.c (create_pty): Fix last change.
3319
ce959360
CY
33202009-08-13 Chong Yidong <cyd@stupidchicken.com>
3321
3322 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3323 (xbm_load_image): Caller changed.
64b807c9 3324 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3325
c7baf7e9
NR
33262009-08-13 Nick Roberts <nickrob@snap.net.nz>
3327
3328 * process.c (create_pty): New function.
3329 (Fstart_process): Use it to allow Emacs to just associate a pty
3330 with the buffer. See associated change in gdb-mi.el.
3331 (list_processes_1): Deal with no program name.
3332 (start_process_unwind): Use pid == -2 to mean no process.
3333
1ac9108a
SM
33342009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * cmds.c (nonundocount): New global variable.
3337 (keys_of_cmds): Initialize it.
3338 (Fself_insert_command): Use it to combine upto 20 sequential chars
3339 into a single undo entry, just like the Qself_insert_command code in
3340 keyboard.c does.
3341 Call frame_make_pointer_invisible, also like the Qself_insert_command
3342 code in keyboard.c does.
3343 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3344 than its own local replacement for it.
3345
e267324c
KR
33462009-08-10 Ken Raeburn <raeburn@raeburn.org>
3347
1ac9108a 3348 * fns.c (concat): Don't re-set string length to its current value.
77437343 3349
1ac9108a
SM
3350 * coding.h (decode_coding_string, encode_coding_string):
3351 Use SBYTES macro.
f0bed503 3352
1ac9108a 3353 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3354 (doprnt): Merge with doprnt1, discarding lispstrings code.
3355 * lisp.h (doprnt_lisp): Don't declare.
3356
416e006d
JL
33572009-08-07 Juri Linkov <juri@jurta.org>
3358
3359 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3360
6f7d5780
DN
33612009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3362
3363 * print.c (syms_of_print): Undo previous change.
3364
f19a0f5b
TZ
33652009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3366
3367 * lread.c (read1, syms_of_lread): Read hashtables back from the
3368 readable format.
3369
3370 * print.c (print_preprocess, print_object): Print hashtables fully
3371 and readably.
3372 (syms_of_print): Provide 'hashtable-print-readable.
3373
b9173dc2
AR
33742009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3375
3376 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3377 no family set.
3378 (nsfont_open): Handle case when entity has no family.
3379
1586503c
AR
33802009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3381
3382 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3383 element, not a list, for match case.
3384
087048cd
KH
33852009-07-28 Kenichi Handa <handa@m17n.org>
3386
3387 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3388 rigidly.
3389
3390 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3391 font_parse_xlfd. Check font properties more rigidly.
3392
780c2506
DN
33932009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3394
31fd7c5c
JB
3395 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3396 bsd-common.h.
780c2506 3397
a8c0cc18
KH
33982009-07-27 Kenichi Handa <handa@m17n.org>
3399
3400 * xfaces.c (face_with_height): Call font_clear_prop.
3401
4fbe2306
CY
34022009-07-26 Chong Yidong <cyd@stupidchicken.com>
3403
111d9af3
CY
3404 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3405
3406 * xterm.c (x_term_init): Use Qx.
3407
4fbe2306
CY
3408 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3409
1ac9108a 3410 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3411 (ns_get_color): Revert 2009-07-16 change.
3412
beb0b7f9
EZ
34132009-07-25 Eli Zaretskii <eliz@gnu.org>
3414
3415 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3416 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3417
2baf5e76
KR
34182009-07-25 Ken Raeburn <raeburn@raeburn.org>
3419
1ac9108a
SM
3420 * coding.h (decode_coding_string, encode_coding_string):
3421 Use SCHARS macro.
8890e5f5 3422
2baf5e76 3423 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3424 (load_depth): Delete.
2baf5e76
KR
3425 (Qload_in_progress): New variable.
3426 (load_unwind): Don't reference load_depth or load_in_progress.
3427 (Fload): Likewise; specbind Qload_in_progress instead.
3428 (init_lread): Don't initialize load_depth.
3429 (syms_of_lread): Initialize and protect Qload_in_progress.
3430
1395c6f5
AR
34312009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3432
3433 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3434
4e2f36cf
AR
34352009-07-23 Yavor Doganov <yavor@gnu.org>
3436
3437 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3438
5dd9a6f7
AR
34392009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3440
3441 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3442 Bugs 3792, 3720, 2402.
3443 (ns_lookup_indexed_color): Check for bad index.
3444 (ns_index_color): Init unused slot to 0.
3445 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3446 Bug 3714, possibly 3082.
5dd9a6f7 3447
c902b920
JR
34482009-07-22 Jason Rumney <jasonr@gnu.org>
3449
1ac9108a
SM
3450 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3451 Position IME window at cursor (Bug#2570).
c902b920
JR
3452 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3453 (globals_of_w32fns): Dynamically load functions required above.
3454
3455 * w32term.c (w32_draw_window_cursor): Send message to reposition
3456 any IME window.
3457
090101cf
CY
34582009-07-21 Chong Yidong <cyd@stupidchicken.com>
3459
3460 * fileio.c: Revert 2009-07-16 changes.
3461 (Vauto_save_include_big_deletions): New variable.
3462 (Fdo_auto_save): Disable auto-save only if
3463 auto-save-include-big-deletions is nil.
3464
e6583e3d
CY
34652009-07-21 Chong Yidong <cyd@stupidchicken.com>
3466
3467 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3468 the overflowed pixels into account (Bug#3879).
3469
ece435a5
KR
34702009-07-21 Ken Raeburn <raeburn@raeburn.org>
3471
3472 * lread.c (load_depth): New variable.
3473 (Fload, load_unwind, init_lread): Set it to the load recursion
3474 depth; set load_in_progress as a simple boolean based on the
3475 current load_depth. (Bug#3892)
3476
40b2d973
AR
34772009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3478
3479 * nsfont.m (ns_has_attribute): Remove.
3480 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3481
10be7e0d
JL
34822009-07-18 Juri Linkov <juri@jurta.org>
3483
3484 * process.c (Fset_process_query_on_exit_flag): Mention killing
3485 a buffer in docstring.
3486
fa055055
KH
34872009-07-17 Kenichi Handa <handa@m17n.org>
3488
3489 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3490
042f7b69
YM
34912009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3492
3493 * nsfns.m (Fns_set_alpha): Remove function.
3494 (syms_of_nsfns): Don't defsubr it.
3495
3496 * nsterm.m (ns_get_color): Remove incompatible color formats.
3497 (ns_color_to_lisp): Generate #rrggbb color format string.
3498
4be941e3
RS
34992009-07-16 Richard Stallman <rms@gnu.org>
3500
3501 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3502 (Fset_buffer_auto_saved): Handle save_length = -2.
3503
4e6b227d
CY
35042009-07-16 Chong Yidong <cyd@stupidchicken.com>
3505
3506 * xterm.c (Qx_gtk_map_stock): New var.
3507
3508 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3509 of calling intern each time.
3510
a1856973
YM
35112009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3512
3513 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3514 does tiling.
3515
3516 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3517
497e54d8
KH
35182009-07-14 Kenichi Handa <handa@m17n.org>
3519
72d36834
KH
3520 * font.c (font_vconcat_entity_vectors): New function.
3521 (struct font_sort_data): New member font_driver_preference.
3522 (font_compare): Check font_driver_preference.
3523 (font_sort_entities): The format of the first argument changed.
3524 (font_delete_unmatched): Likewise.
3525 (font_list_entities): The return type changed.
3526 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3527 (font_find_for_lface): Adjuste for the above changes.
3528 Don't suppress the checking of C even if the repertory supports it.
3529 (Flist_fonts): Adjust for the above changes.
72d36834 3530
1ac9108a
SM
3531 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3532 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3533 Reject a font who has adstyle property that is different from a
3534 langname derived from registry property.
1ac9108a 3535 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3536
b6046155
EZ
35372009-07-13 Eli Zaretskii <eliz@gnu.org>
3538
3539 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3540 local copy of dirfilename.
3541
fb6b6049
KH
35422009-07-13 Kenichi Handa <handa@m17n.org>
3543
e2402a5e
KH
3544 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3545 against max_char.
3546
fb6b6049
KH
3547 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3548 calling XSYMBOL (sym).
3549
65156807
EZ
35502009-07-11 Eli Zaretskii <eliz@gnu.org>
3551
1ac9108a
SM
3552 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3553 New function.
3554 (directory_files_internal) [WINDOWSNT]:
3555 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3556 the filesystem of the directory is fast or slow.
3557
3558 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3559 file name.
3560 (is_slow_fs): New function.
3561 (stat): Use it to determine whether to issue more system calls to
3562 get accurate file attributes, when w32-get-true-file-attributes is
3563 `local'.
3564
e0ab5fcf
JD
35652009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3566
3567 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3568 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3569 parameter font-parameter as default to the font dialog.
3570
784ceded
KH
35712009-07-10 Kenichi Handa <handa@m17n.org>
3572
3573 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3574
fb8edc0b
EZ
35752009-07-09 Eli Zaretskii <eliz@gnu.org>
3576
1ac9108a 3577 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3578
fb8edc0b
EZ
3579 * w32.c (stat): Treat UNC file names as residing on remote
3580 drives. (Bug#3542)
3581
635c75b1
KH
35822009-07-09 Kenichi Handa <handa@m17n.org>
3583
3584 * fontset.c (fontset_find_font): Fix previous change.
3585
c1d5ce94
MA
35862009-07-08 Michael Albinus <michael.albinus@gmx.de>
3587
3588 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3589 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3590 error flag.
3591
edb61b39
KH
35922009-07-08 Kenichi Handa <handa@m17n.org>
3593
374bf7e4
KH
3594 * fontset.c (fontset_find_font): Fix the logic of handling
3595 charset_matched.
3596 (font_for_char): Delete unused var.
3597 (generate_ascii_font_name): Delete it.
3598
edb61b39
KH
3599 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3600
3601 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3602 (encode_coding_sjis): Fix the code range check.
3603
0f3f018c
CY
36042009-07-07 Chong Yidong <cyd@stupidchicken.com>
3605
3606 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3607 (Fexpand_file_name): Copy string data properly (Bug#3772).
3608
fcaf6f3a
JD
36092009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3610
3611 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3612 first MapNotify.
3613
6809ca75
KH
36142009-07-07 Kenichi Handa <handa@m17n.org>
3615
3616 * character.h (unibyte_has_multibyte_table): Delete extern.
3617 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3618
3619 * charset.c (Fset_charset_priority): Update charset_unibyte.
3620 (syms_of_charset): Initialize charset_unibyte.
3621
3622 * character.c (unibyte_has_multibyte_table): Delete it.
3623 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3624 charset_unibyte.
3625 (multibyte_char_to_unibyte_safe): Likewise.
3626 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3627
1ac9108a 3628 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3629 (x_produce_glyphs): Likewise.
3630
3631 * .gdbinit (xcharset): Fix the treating $arg0.
3632
ad9e2d54
EZ
36332009-07-04 Eli Zaretskii <eliz@gnu.org>
3634
3635 Emulation of `getloadavg' on MS-Windows.
50426a04 3636 * w32.c: Include float.h.
ad9e2d54
EZ
3637 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3638 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3639 (get_native_system_info, get_system_times): New functions.
3640 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3641 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3642 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3643 g_b_init_get_system_times, and num_of_processors.
3644
0a3472c7
JR
36452009-07-03 Jason Rumney <jasonr@gnu.org>
3646
3647 * w32term.c (w32_initialize): Use standard types.
3648
80904120
EZ
36492009-07-03 Eli Zaretskii <eliz@gnu.org>
3650
3651 * dired.c (Ffile_attributes): Decode user and group names by the
3652 locale's encoding. (Bug#3443)
3653
6978862d
DN
36542009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3655
f8d23104
DN
3656 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3657 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3658
3659 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3660
3661 * term.c (init_tty): Remove spurious #ifdef.
3662
6978862d
DN
3663 * m/mips.h: Mention this file is also used for netbsd.
3664 * m/pmax.h: Remove file.
3665
e044e4fc
JD
36662009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3667
3668 * xterm.h (struct x_display_info): Add invisible_cursor.
3669 (struct x_output): Add current_cursor.
3670
3671 * xterm.c (XTtoggle_invisible_pointer): New function.
3672 (x_define_frame_cursor): Don't define cursor if invisible or the
3673 same as before. Set current_cursor.
3674 (x_create_terminal): Set toggle_invisible_pointer_hook.
3675
3676 * xfns.c (make_invisible_cursor): New function.
3677 (x_set_mouse_color): Call make_invisible_cursor.
3678 Set current_cursor.
3679 (x_window): Set current_cursor.
3680
3681 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3682
3683 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3684 inserting a character.
3685 (read_avail_input): Call frame_make_pointer_visible.
3686
3687 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3688 (frame_make_pointer_invisible, frame_make_pointer_visible):
3689 New functions.
e044e4fc
JD
3690 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3691
3692 * frame.h: Declare frame_make_pointer_invisible and
3693 frame_make_pointer_visible.
3694 (struct frame): Add pointer_invisible.
3695
574c8efa
JD
36962009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3697
7b507248
JD
3698 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3699 frame isn't visible.
3700 (xg_frame_resized): If width/height is -1, get size of window
3701 from X server.
3702
3703 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3704 for MapNotify.
3705
835bdaa7 3706 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3707 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3708 (flush_and_sync): Reintroduce.
574c8efa 3709
3f1c6666 37102009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3711
31fd7c5c 3712 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3713
3714 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3715 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3716
3717 * frame.h: Declare Qsticky.
3718
cad9ef74
JD
3719 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3720
3721 * nsfns.m (ns_frame_parm_handlers): Ditto.
3722
3723 * frame.c: Declare Qsticky.
3724 (frame_parms): Add sticky.
3725
3726 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3727
3728 * xterm.h: Declare x_set_sticky.
3729
3730 * xterm.c (x_set_sticky): New function.
3731
69b16610
JD
3732 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3733 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3734 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3735
3736 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3737
3738 * frame.c: Qmaximized is new.
3739 (x_set_frame_parameters): Do not handle fullscreen specially.
3740 Only set width and height if explicitly set.
3741 (x_set_fullscreen): Handle Qmaximized.
3742 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3743 (syms_of_frame): Initialize Qmaximized.
3744
1ac9108a
SM
3745 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3746 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3747
3748 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3749 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3750 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3751 set gravity to NorthWestGravity when USE_GTK.
3752 (set_wm_state): New function.
31fd7c5c 3753 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3754 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3755 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3756 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3757 to x_real_positions and x_fullscreen_adjust.
3758
3759 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3760 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3761 flush_and_sync.
3762 (xg_height_changed): New function.
3763 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3764 and gtk_window_set_policy. Set frame gravity after parsing the
3765 geometry string.
3f1c6666
JD
3766 (xg_update_frame_menubar, free_frame_menubar)
3767 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3768 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3769 Remove calls to xg_frame_set_char_size.
3770
fd503d99
KH
37712009-07-01 Kenichi Handa <handa@m17n.org>
3772
3773 * keyboard.c (decode_keyboard_code): New function.
3774 (tty_read_avail_input): Decode the input bytes if necessary.
3775
1ac9108a
SM
3776 * coding.c (setup_coding_system):
3777 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3778 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3779 use Qno_conversion.
3780
24ed93fb
YM
37812009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3782
3783 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3784
99061dfc
CY
37852009-06-30 Chong Yidong <cyd@stupidchicken.com>
3786
1ac9108a 3787 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3788
ff90fbde
JR
37892009-06-30 Jason Rumney <jasonr@gnu.org>
3790
3791 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3792 is already loaded.
3793 Set user model ID if supported (bug#1849).
3794
5f445726
JM
37952009-06-29 Jim Meyering <meyering@redhat.com>
3796
3797 Remove useless if-before-xfree test.
3798 * nsfont.m (nsfont_close): Remove useless test.
3799 * term.c (delete_tty): Likewise.
3800 * w32.c (system_process_attributes): Likewise.
3801 * w32font.c (w32font_close): Likewise.
3802 * xfaces.c (x_free_gc): Likewise.
3803 * xselect.c (buffer): Likewise.
3804
b9607587
AS
38052009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3806
3807 * process.c (send_process): Keep decoded string in a local
3808 variable and protect it from GC. (Bug#3521)
3809
89ba96f4
EZ
38102009-06-28 Eli Zaretskii <eliz@gnu.org>
3811
3812 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3813 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3814
098a1589
CY
38152009-06-28 Chong Yidong <cyd@stupidchicken.com>
3816
485422be
CY
3817 * xdisp.c (start_display, handle_face_prop)
3818 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3819 (redisplay_window, try_window_id, produce_image_glyph):
3820 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3821
098a1589
CY
3822 * xterm.c (x_update_window_begin, x_new_focus_frame)
3823 (x_scroll_bar_handle_click, handle_one_xevent)
3824 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3825 (x_make_frame_visible, x_make_frame_invisible)
3826 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3827 code chunks that are now obsolete.
3828
78c38319
MA
38292009-06-28 Michael Albinus <michael.albinus@gmx.de>
3830
3831 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3832 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3833 for hours, when optimzation is enabled.
3834 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3835 (xd_read_message): Make them static.
3836
4189ed40
CY
38372009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3838
3839 * term.c (turn_on_face): Allow simultaneously bold and dim
3840 terminal faces (Bug#3530).
3841
cd9b5e16
CY
38422009-06-27 Chong Yidong <cyd@stupidchicken.com>
3843
4e23bedb
CY
3844 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3845
cd9b5e16
CY
3846 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3847 truncation glyphs (Bug#3686).
3848
07cc3c35
GM
38492009-06-27 Glenn Morris <rgm@gnu.org>
3850
3851 * m/pmax.h: Restore file, with only netbsd portions.
3852
31fd7c5c 38532009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3854
cd9b5e16 3855 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3856
42d4a64f
KH
38572009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3858
3859 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3860 the arg FORCE_SYMBOL.
3861
930fe55b 38622009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3863
3864 * fontset.c (fontset_find_font): When a usable rfont_def is found
3865 in a fallback font-group, make it the first element of the group.
3866
57ebc3fd
CY
38672009-06-24 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3870
f084f942
KH
38712009-06-24 Kenichi Handa <handa@m17n.org>
3872
3873 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3874 set for C.
3875 (fontset_font): Record the availability of a font for C both in
3876 the realized fontsets of the current one and the default one.
3877
2f686c87
DN
38782009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3879
3880 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3881 conditional, it is always defined on AIX.
3882
666e158e
MB
38832009-06-23 Miles Bader <miles@gnu.org>
3884
3885 * window.c (Vrecenter_redisplay): New variable.
3886 (syms_of_window): Initialize it.
3887 (Qtty): New extern declaration.
3888 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3889
c6da7cd2
JM
38902009-06-23 Jim Meyering <meyering@redhat.com>
3891
1ac9108a
SM
3892 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3893 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3894 pointer dereferences are guaranteed to be valid.
c6da7cd2 3895
678dca3d
KH
38962009-06-23 Kenichi Handa <handa@m17n.org>
3897
74d75424
KH
3898 * emacs.c (main): Call init_font ().
3899
3900 * font.h (Vfont_log): Extern it.
3901 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3902
3903 * font.c (font_sort_entities, font_list_entities)
3904 (font_matching_entity, font_open_entity)
3905 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3906 (Vfont_log): Delete static.
3907 (font_log_env_checked): Delete this variable.
3908 (font_add_log): Don't check font_log_env_checked.
3909 (font_deferred_log): Check Vfont_log.
3910 (init_font): New function.
3911
678dca3d
KH
3912 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3913
3914 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3915
3916 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3917
3918 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3919
3920 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3921 (face_for_char): Don't call font_deferred_log here.
3922 (font_for_char): Likewise.
3923
8a668709
CY
39242009-06-22 Chong Yidong <cyd@stupidchicken.com>
3925
9a01ee33
CY
3926 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3927 rather than its background_width for drawing the overline and
3928 underline (Bug#489).
3929
3930 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3931 rather than its background_width for drawing the overline and
3932 underline (Bug#489).
ec7c9926
CY
3933 (xg_default_icon_file): New variable.
3934 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3935 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3936
8a668709
CY
3937 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3938 (load_overlay_strings): Remove externs.
3939 (fast_find_position): Function deleted.
3940 (mouse_face_from_buffer_pos): New function, based on
3941 fast_find_position. Correctly handle before-strings,
3942 display-strings, and after-strings (Bug#1220).
3943 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3944
4d4c02d8
CY
39452009-06-21 Chong Yidong <cyd@stupidchicken.com>
3946
1ac9108a 3947 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3948 (move_it_in_display_line_to, move_it_in_display_line_to)
3949 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3950
70243478
CY
39512009-06-21 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * Branch for 23.1.
3954
13087e59
JR
39552009-06-21 Jason Rumney <jasonr@gnu.org>
3956
3957 * w32term.c (keyboard_codepage): New static variable.
3958 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3959 (w32_read_socket) [WM_CHAR]: Use it to decode character
3960 input (bug#3237).
3961 (w32_initialize): Initialize it.
3962 (codepage_for_locale): New function.
3963
4735b74e
KR
39642009-06-20 Ken Raeburn <raeburn@raeburn.org>
3965
3966 * process.c (status_message): Pass Faset index argument as a lisp
3967 object, so as to work with USE_LISP_UNION_TYPE.
3968
0e727afa
YM
39692009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3970
3971 * coding.c (Ffind_coding_systems_region_internal):
3972 Cache checked characters.
3973
cf299835
KH
39742009-06-18 Kenichi Handa <handa@m17n.org>
3975
1ac9108a 3976 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3977
90f20d94
AS
39782009-06-18 Andreas Schwab <aschwab@redhat.com>
3979
3980 * xdisp.c (redisplay_internal): Check that the frame is still
3981 live after redisplay of its windows.
3982 (redisplay_windows): Check that the window is still live.
3983
7f1faf1c
KH
39842009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3985
3986 * coding.c (detect_coding_utf_16): Fix previous change.
3987
cc13543e
KH
39882009-06-16 Kenichi Handa <handa@m17n.org>
3989
3990 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3991 UTF-16 by checking the dispersion of Eth and Oth bytes.
3992
977b85f4
AS
39932009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3994
3995 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3996
66bd43d1
KH
39972009-06-15 Kenichi Handa <handa@m17n.org>
3998
3999 * process.c (status_message): Fix previous change. Be sure to
4000 decode a localized string.
4001
cb5ca9c5
YM
40022009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4003
4004 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4005 add comment explaining why.
4006
ec7709ba 40072009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4008
ec7709ba 4009 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4010
4b7f335c
AR
40112009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4012
4013 * nsfont.m (ns_attribute_value): Remove.
4014 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4015 (ns_has_attribute): Shrink the normal range.
4016 (ns_findfonts): Don't worry about requested spec in determining
4017 need for synthItal.
e41820ee 4018 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4019
73b26103
SZ
40202009-06-14 Seiji Zenitani <zenitani@mac.com>
4021
4022 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4023
5753e4da
KH
40242009-06-11 Kenichi Handa <handa@m17n.org>
4025
4026 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4027 overhang for the static composition case.
4028
3561b671
KH
40292009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4030
5753e4da
KH
4031 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4032 overhang for the automatic composition case.
4033
3561b671
KH
4034 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4035 composition case.
4036
852bbd41
CY
40372009-06-10 Chong Yidong <cyd@stupidchicken.com>
4038
4039 * xdisp.c (get_next_display_element): When handling wrap-prefix
4040 and line-prefix, treat \n as a control character (bug#3502).
4041
9903d1e6
KH
40422009-06-10 Kenichi Handa <handa@m17n.org>
4043
4044 * font.c (font_parse_family_registry): Fix for one-char foundry.
4045 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4046
0bcbaaaa
CY
40472009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4048
4049 * process.c (status_message): Fix handling of multibyte signal
4050 string (Bug#3499).
4051
40aa3f13
JM
40522009-06-09 Jim Meyering <meyering@redhat.com>
4053
1f80c7e2
CY
4054 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4055 color name is missing.
40aa3f13 4056
72d51285
KH
40572009-06-09 Kenichi Handa <handa@m17n.org>
4058
4059 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4060 FROM-CODE and TO-CODE are codepoints of CHARSET.
4061
c1d04d84
AR
40622009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4063
4064 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4065
40662009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4067
4068 Changes to support :script/:lang/:otf in NS font driver.
4069 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4070 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4071 indicate not part of font driver interface, and change callers.
4072 (ns_get_family): Remove pointless null check.
4073 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4074 ns_spec_to_descriptor, ns_descriptor_to_entity.
4075 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4076 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4077 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4078 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4079 (ns_get_req_script, ns_accumulate_script_ranges)
4080 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4081 New functions.
4082 (nsfont_list, nsfont_match): Use ns_findfonts.
4083 (nsfont_open): Use font descriptor instead of traits.
4084 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4085 (dump_glyphstring): Rename to ns_dump_glyphstring.
4086
c7eb9816
AR
4087 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4088
c1d04d84
AR
4089 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4090
4091 * fontset.c (fontset_from_font): Remove NS-specific code.
4092
ec7709ba 40932009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4094
4095 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4096 nonactive windows.
4097
31fd7c5c 40982009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4099
1ac9108a 4100 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4101
68852c13 41022009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4103
4104 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4105
6756cd1d
CY
41062009-06-07 Chong Yidong <cyd@stupidchicken.com>
4107
4108 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4109 account for the overflowing of newlines into the last glyph on the
4110 display line (Bug#3482).
4111
28bf482a
DR
41122009-06-05 David Reitter <david.reitter@gmail.com>
4113
ec7709ba
JB
4114 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4115 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4116 Fns_selection_exists_p, Fns_selection_owner_p.
4117
fdb55376
JR
41182009-06-03 Jason Rumney <jasonr@gnu.org>
4119
4120 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4121 available. (Bug#3379)
4122
05129fbe
KH
41232009-05-29 Kenichi Handa <handa@m17n.org>
4124
1ac9108a
SM
4125 * coding.c (get_translation_table):
4126 Check Venable_character_translation.
05129fbe 4127
ec7709ba 41282009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4129
ec7709ba
JB
4130 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4131 (x_make_frame_visible): Move frame to front rather than calling
15891144 4132 ns_raise_frame().
ec7709ba 4133 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4134 isn't key window.
ec7709ba 4135 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4136 drawRect may be called by NSView even if the frame is hidden.
4137
ec7709ba
JB
4138 * nsfns.m (Fx_create_frame): Follow other ports in
4139 determining visibility; default to t. Ensure async_visible is set.
15891144 4140
21f73755
EZ
41412009-05-23 Eli Zaretskii <eliz@gnu.org>
4142
4143 * dired.c (Ffile_attributes): Doc fix.
4144
34001e41
CY
41452009-05-22 Chong Yidong <cyd@stupidchicken.com>
4146
4147 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4148
46306a17
SM
41492009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4150
4151 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4152 and xfont_scratch_props.
4153 (syms_of_xfont): Do it here instead.
4154 (xfont_find_ccl_program): Delete, unused.
4155 (xfont_open): Delete unused var `i'.
4156
ef6e0694
KH
41572009-05-21 Kenichi Handa <handa@m17n.org>
4158
4159 * fontset.c (Qlatin): Don't make it static.
4160
46306a17
SM
4161 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4162 New functions.
ef6e0694
KH
4163 (xfont_scripts_cache, xfont_scratch_props): New variables.
4164 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4165 (xfont_list_pattern): Argument changed. Callers changed.
4166 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4167 (xfont_list): Don't reject a font spec with :script property.
4168 (xfont_has_char): Fix setting of encoding.
4169 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4170 xfont_scratch_props.
4171
41722009-05-19 Kenichi Handa <handa@m17n.org>
4173
46306a17 4174 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4175 Callers changed.
4176
41772009-05-18 Kenichi Handa <handa@m17n.org>
4178
4179 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4180
ac71ced7
SM
41812009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4182
4183 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4184 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4185
1c6d1051
YM
41862009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4187
4188 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4189 (x_delete_terminal): Dissociate resource database from display and
4190 then call XrmDestroyDatabase before closing display.
4191
9b9b779c
AR
41922009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4193
4194 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4195 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4196 whether selected frame is viable before raising it (based on patch
4197 by David Reitter), and improve commentary.
4198 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4199
cccd42d5
KH
42002009-05-15 Kenichi Handa <handa@m17n.org>
4201
4202 * font.c (Ffont_spec): Check arguments.
4203
337fbd17
CY
42042009-05-14 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4207 weight when testing attributes (Bug#3282).
4208
47a6002f
JD
42092009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4210
4211 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4212 what we expect to get in the next ConfigureNotify event.
4213
9cb363db
YM
4214 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4215 before Xft one (Bug#1696).
4216
b9126609
CY
42172009-05-07 David Reitter <david.reitter@gmail.com>
4218
4219 * nsfns.m (Fx_display_planes): Compute bitplanes using
4220 NSBitsPerPixelFromDepth (Bug#3207).
4221
27a69fd9
CY
42222009-05-10 Chong Yidong <cyd@stupidchicken.com>
4223
4224 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4225
00f37552
TTN
42262009-05-10 Ulrich Mueller <ulm@gentoo.org>
4227
4228 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4229
2d82a920
DR
42302009-05-07 David Reitter <david.reitter@gmail.com>
4231
ec7709ba
JB
4232 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4233 Respect mouse face background.
2d82a920 4234
46b0d52d
DR
42352009-05-07 David Reitter <david.reitter@gmail.com>
4236
ec7709ba
JB
4237 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4238 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4239 in ns_update_begin and ns_update_end.
4240
ce1b23bb
SM
42412009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4242
5996e1b7
SM
4243 * nsfns.m (ns_get_screen): Rewrite.
4244 Don't presume selected-frame is of type `ns'.
4245
ba98e3a0
SM
4246 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4247 all drivers.
4248
ce1b23bb
SM
4249 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4250
bcda200f
YM
42512009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4252
4253 * keyboard.h (add_user_signal): Fix typo in extern.
4254
4255 * lisp.h (add_user_signal): Remove extern.
4256
4257 * unexelf.c (unexec): Consider a section to precede the .bss section
4258 if its addresses overlap that of .bss.
4259 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4260 instead of dumping process.
4261
864660a2
SM
42622009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4263
4264 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4265
50da4e56
SM
42662009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4267
4268 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4269
51520a1a
DN
42702009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4271
4272 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4273 any statements.
4274
409ea3a1
AS
42752009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4276
59c4c60f
AS
4277 * process.c (read_process_output): Make sure the current buffer is
4278 always restored.
4279
409ea3a1
AS
4280 * coding.c (record_conversion_result): Don't modify
4281 Vlast_code_conversion_error for successful result.
4282 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4283
56f00ed2
KH
42842009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4285
4286 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4287 (load_charset_map): Remove unnecessary code.
56f00ed2 4288
4491c9d2
DR
42892009-04-30 David Reitter <david.reitter@gmail.com>
4290
35f5b128 4291 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4292 through f24.
4293
6970f632
CY
42942009-04-30 Chong Yidong <cyd@stupidchicken.com>
4295
4296 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4297
4298 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4299 face_at_buffer_position.
4300 (face_before_or_after_it_pos, get_next_display_element)
4301 (note_mouse_highlight): Update face_at_buffer_position call.
4302
4303 * term.c (term_mouse_highlight):
4304 * msdos.c (IT_note_mouse_highlight):
4305 * fontset.c (Finternal_char_font):
35f5b128 4306 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4307
4308 * dispextern.h (face_at_buffer_position): Update prototype.
4309
0c616f63
KH
43102009-04-30 Kenichi Handa <handa@m17n.org>
4311
35f5b128 4312 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4313
ad3aaf33
AS
43142009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4315
4316 * callproc.c (Fcall_process): Fix GC protection. Make sure
4317 current buffer is always restored.
4318
c3c963a0
YM
43192009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4320
4321 * atimer.c (init_atimer): Also clear stopped_atimers.
4322
4323 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4324
7e3386cb
YM
4325 * process.c (create_process): Clean up merger residues of
4326 2008-07-17 change.
4327
91f68422
CY
43282009-04-29 Ulrich Mueller <ulm@gentoo.org>
4329
4330 * lread.c (Vread_circle): New variable.
4331 (read1): Disable recursive read if Vread_circle is nil.
4332
24b34550
KH
43332009-04-29 Kenichi Handa <handa@m17n.org>
4334
4335 * fontset.h (set_default_ascii_font): Delete extern.
4336
4337 * fontset.c (set_default_ascii_font): Delete this unused function.
4338
4339 * frame.c (x_set_font): When ARG is a font-object, check if the
4340 font-object matches with the ASCII font-spec of the frame's
9c358bda 4341 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4342
77bf07e1
AS
43432009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4344
4345 * fns.c (Flocale_info): Protect vector from GC during decoding.
4346
4347 * process.c (Fstart_process): Protect argv strings from GC during
4348 encoding.
4349
2c55aacf
AS
43502009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4351
4352 * sysdep.c: Include <ctype.h>.
4353
b892d3c9
DR
43542009-04-27 David Reitter <david.reitter@gmail.com>
4355
35f5b128 4356 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4357 Remove commented-out code.
4358
9d0644c4
JB
43592009-04-26 Johan Bockgård <bojohan@gnu.org>
4360
4361 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4362
b7053016
JR
43632009-04-25 Jason Rumney <jasonr@gnu.org>
4364
4365 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4366
4e8231f3
YM
43672009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4368
4369 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4370 Swap bytes in short integer if fringe bitmap width > 8.
4371
493dcf2c
KH
43722009-04-23 Kenichi Handa <handa@m17n.org>
4373
4374 * xfaces.c (Fx_list_fonts): If a font size is specified in
4375 PATTERN, set it in returned scalable fonts.
4376
401e9e57
CY
43772009-04-22 Chong Yidong <cyd@stupidchicken.com>
4378
708e05dc
CY
4379 * keyboard.c (Fset_input_meta_mode): Doc fix.
4380
4381 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4382
1ac9108a 4383 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4384
4385 * coding.c (Fterminal_coding_system): Doc fix.
4386
4387 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4388 (Fx_display_pixel_height, Fx_display_planes)
4389 (Fx_display_color_cells, Fx_server_max_request_size)
4390 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4391 (Fx_display_mm_height, Fx_display_mm_width)
4392 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4393 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4394 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4395 (check_x_display_info): Handle terminal objects instead of
4396 terminal ids.
4397
401e9e57
CY
4398 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4399 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4400 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4401 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4402
df80c7f0
KH
44032009-04-21 Kenichi Handa <handa@m17n.org>
4404
5a8f12af 4405 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4406 (font_score): Check AVGWIDTH too.
908567ef 4407
df80c7f0
KH
4408 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4409 worst case.
1ac9108a
SM
4410 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4411 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4412
705af33f
JR
44132009-04-19 Jason Rumney <jasonr@gnu.org>
4414
4415 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4416 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4417
4418 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4419 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4420 get_phys_cursor_geometry.
4421
b71ac3dd 4422 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4423 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4424 using get_phys_cursor_geometry.
4425
4426 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4427 correctly calculated.
4428
dc2933eb
JD
44292009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4430
1ac9108a
SM
4431 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4432 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4433 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4434 is deprecated.
4435
973e7849
AS
44362009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4437
4438 * font.c (font_put_frame_data): Use xfree instead of free.
4439
314d66f4
JB
44402009-04-17 Juanma Barranquero <lekktu@gmail.com>
4441
4442 * w32font.c (Qja, Qko): Remove declarations.
4443 (syms_of_w32font): Don't DEFSYM them.
4444
cf702558
CY
44452009-04-17 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4448
4449 * font.h (Qja, Qko): Extern them.
4450
4451 * ftfont.c (Qja, Qko): Remove declarations.
4452
4453 * xfont.c (Qja, Qko): Remove declarations.
4454
b50504f5
KH
44552009-04-17 Kenichi Handa <handa@m17n.org>
4456
bde25748
KH
4457 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4458 string from a vector to handle Latin-1 characters correctly.
4459
b50504f5
KH
4460 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4461 entity even if the cache hits.
4462
f4646fff
AS
44632009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4464
4465 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4466 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4467
e7deaab0
AS
4468 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4469 * lisp.h: Adjust prototypes.
4470
0a0e7d49
CY
44712009-04-16 Chong Yidong <cyd@stupidchicken.com>
4472
4473 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4474 change (Bug#3003).
4475
3c908a57
KH
44762009-04-16 Kenichi Handa <handa@m17n.org>
4477
1ac9108a 4478 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4479
4480 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4481 adstyle.
4482
4483 * ftfont.c (Qja, Qko): Don't make them static.
4484 (enum ftfont_cache_for): New enum.
4485 (fc_charset_table): Undo the previous change.
4486 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4487 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4488 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4489 non-scarable font, try to get AVERAGE_WIDTH.
4490 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4491 Change ft_face_cache from a list of a hash-table. Don't check
4492 `ja' and `ko' adstyle here.
4493 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4494 FTFONT_CACHE_FOR_CHARET.
4495 (ftfont_get_charset): Undo the previous change.
1ac9108a 4496 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4497 (ftfont_close): Likewise.
4498 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4499
4500 * font.c (font_sort_entites): Change the meaning of the arg
4501 BEST-ONLY. Don't optimize for VEC of lenght 1.
4502 (font_select_entity): Just return the value of font_sort_entites.
4503
4504 * xfaces.c (merge_face_vectors): Reflect font properties in
4505 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4506 font_clear_prop if a face attribute doesn't change.
4507
3c908a57
KH
4508 * charset.h (charset_ksc5601): Extern it.
4509
4510 * charset.c (charset_ksc5601): New variable.
4511 (Fdefine_charset_internal): Set charset_ksc5601.
4512 (init_charset_once): Initialize charset_ksc5601 to -1.
4513
d65859c3
DN
45142009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4515
4516 * fileio.c (history_delete_duplicates): Remove unused declaration.
4517
4518 * callint.c (history_delete_duplicates): New declaration.
4519 (Fcall_interactively): Remove command history duplicates when
4520 history_delete_duplicates is true.
4521
3ba010e5
EZ
45222009-04-14 Eli Zaretskii <eliz@gnu.org>
4523
4524 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4525
06f19b91
KH
45262009-04-14 Kenichi Handa <handa@m17n.org>
4527
4528 * font.c (Ffont_info): Fix docstring. Fix the second element of
4529 the returned value (bug#2949).
4530
2cce8bfc
CY
45312009-04-14 Chong Yidong <cyd@stupidchicken.com>
4532
4533 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4534
d156542d
KH
45352009-04-14 Kenichi Handa <handa@m17n.org>
4536
4537 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4538 encoding charset is ascii_compatible.
4539
4540 * charset.c (Fdefine_charset_internal): Make charset
4541 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4542 code_offset is 0, and covers all ASCII characters.
4543
86fa089e
SM
45442009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4545
4546 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4547 (ns_string_to_pasteboard_internal):
4548 * nsmenu.m (process_dialog):
4549 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4550 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4551 * lisp.h (Fx_load_color_file): Declare.
4552
a8a3728b
KH
45532009-04-13 Kenichi Handa <handa@m17n.org>
4554
1ac9108a 4555 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4556 (font_select_entity): Suppress the code to optimize for the same
4557 kind of fonts.
4558 (font_load_for_lface): Get a font that supports at least ASCII
4559 characters.
4560
4561 * ftfont.c (Qja, Qko): New variables.
4562 (fc_charset_table): Delete uniquifier data for iso8859-1.
4563 (ftfont_get_latin1_charset): New function.
4564 (get_adstyle_property): New function.
4565 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4566 bitmap fonts.
4567 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4568 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4569 `ko' or `ja'.
4570 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4571 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4572 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4573 property.
4574 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4575 (syms_of_ftfont): DEFSYM Qja and Qko.
4576
483670b5
KH
45772009-04-09 Kenichi Handa <handa@m17n.org>
4578
12b55765
KH
4579 * charset.c (map_charset_chars): For a charset of `superset'
4580 method, fix calculation of code range.
4581
483670b5
KH
4582 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4583 from the list of extra properties.
4584 (font_clear_prop): Be sure to delete `:name' font property.
4585
57d3b93b
KH
45862009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4587
b4b2c2ca
YM
4588 * dispnew.c (redraw_overlapping_rows): Fix detection of
4589 overlapping for topmost and bottommost rows.
4590
1ac9108a 4591 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4592
472c3609
JR
45932009-04-06 Jason Rumney <jasonr@gnu.org>
4594
4595 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4596
ab193662
KH
45972009-04-06 Kenichi Handa <handa@m17n.org>
4598
4599 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4600
4601 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4602
0c26f026
KH
46032009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4604
4605 * ftfont.c (ftfont_open): Fix checking of the return value of
4606 FT_Load_Char. Fix setting font->underline_thickness.
4607
e173bbce
CY
46082009-04-04 Chong Yidong <cyd@stupidchicken.com>
4609
4610 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4611 (Fterminal_parameters, Fterminal_parameter)
4612 (Fset_terminal_parameter): In doc string, refer to terminal
4613 objects rather than terminal ids.
4614
693a2698
EZ
46152009-04-04 Eli Zaretskii <eliz@gnu.org>
4616
4617 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4618 ret_lim_data. (Bug#2867)
4619
d5221487
CY
46202009-04-03 Chong Yidong <cyd@stupidchicken.com>
4621
4622 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4623 so they don't get wider than the window, matching 2006-01-23
4624 change to the partner function in xdisp.c (Bug#2800).
4625
223509a3
KH
46262009-04-03 Kenichi Handa <handa@m17n.org>
4627
4628 * print.c (print_object): Make each lowest sub_char_table start a
4629 new line (Bug#2866).
4630
74fcd0b1
KH
46312009-04-02 Kenichi Handa <handa@m17n.org>
4632
4633 * fontset.c (fontset_font): Record no-font when a fontset
4634 explicitly tells not to try another font-specs.
4635
c542407d
SM
46362009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4637
4638 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4639
e3869731
KH
46402009-03-30 Kenichi Handa <handa@m17n.org>
4641
d8d2f142
KH
4642 * fontset.c (fontset_from_font): Specify only registry in a
4643 font-spec for all characters supported by that registry.
4644
e3869731
KH
4645 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4646 even if HAVE_M17N_FLT is not defined.
4647
5da5f805
CY
46482009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4649
4650 * ftfont.c: Conditionalize prototyping and use of
4651 ftfont_variation_glyphs.
4652
ab226c50
SM
46532009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4654
9628fed7
SM
4655 * frame.c (delete_frame): Work around compiler bug.
4656
4657 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4658 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4659 Some more EMACS_INT.
4660 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4661
4662 * xdisp.c (dump_glyph): Fix typo.
4663
ae19ba7c
SM
4664 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4665 (adjust_markers_gap_motion, adjust_markers_for_delete)
4666 (adjust_markers_for_insert, adjust_point)
4667 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4668 (make_gap, copy_text, count_size_as_multibyte, insert)
4669 (insert_and_inherit, insert_before_markers)
4670 (insert_before_markers_and_inherit, insert_1)
4671 (count_combining_before, count_combining_after, insert_1_both)
4672 (insert_from_string, insert_from_string_before_markers)
4673 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4674 (insert_from_buffer_1, adjust_after_replace)
4675 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4676 (replace_range_2, del_range, del_range_1, del_range_byte)
4677 (del_range_both, del_range_2, modify_region)
4678 (prepare_to_modify_buffer, signal_before_change)
4679 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4680 for buffer positions and sizes.
4681 * lisp.h: Adjust prototypes accordingly.
4682
4683 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4684 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4685 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4686
ab226c50
SM
4687 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4688
46dfb8fb
JD
46892009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4690
4691 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4692 lines and columns so we keep the same pixel height and width.
4693
4694 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4695 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4696 (x_handle_net_wm_state): New function to update frame parameter
4697 fullscreen.
4698 (x_term_init): Initialize atoms for _NET_WM_STATE.
4699
4700 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4701
d347e494
SM
47022009-03-27 Kevin Ryde <user42@zip.com.au>
4703
4704 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4705 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4706 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4707 (Fgpm_mouse_stop): Pass that new parameter.
4708 * termhooks.h (close_gpm): Adjust prototype.
4709
84db11d6
SM
47102009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4711
c95a5008
SM
4712 * lisp.h (Fx_focus_frame): Declare.
4713
84db11d6
SM
4714 * callint.c (Fcall_interactively): For '^' just delegate the work to
4715 handle-shift-selection.
4716 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4717
0a1958d6
CY
47182009-03-24 Chong Yidong <cyd@stupidchicken.com>
4719
0bfdff23
CY
4720 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4721
0a1958d6
CY
4722 * data.c (Qinteractive_form): New variable.
4723 (Finteractive_form): Use it.
4724
4725 * eval.c (Fcommandp): Use Qinteractive_form.
4726
58aec0d6
JR
47272009-03-24 Jason Rumney <jasonr@gnu.org>
4728
4729 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4730 Calculate total size precisely. Decode environment variables
4731 before substituting. (Bug#38)
4732
553dd618
KH
47332009-03-24 Kenichi Handa <handa@m17n.org>
4734
4735 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4736 encoding (Bug#2722).
553dd618 4737
c39ea606
JD
47382009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4739
4740 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4741 that gdpy is set.
4742
bc9b2b5e
AM
47432009-03-22 Alan Mackenzie <acm@muc.de>
4744
4745 * callint.c (Finteractive): Clarify the doc string - even
4746 promptless elements need \n separators.
4747
9f995a76
JR
47482009-03-22 Jason Rumney <jasonr@gnu.org>
4749
4750 * w32term.c (syms_of_w32term): Doc fix for
4751 x-use-underline-position-properties.
4752
22749e9a
EZ
47532009-03-21 Eli Zaretskii <eliz@gnu.org>
4754
4755 * w32.c (getpwuid): Change argument type to unsigned.
4756 (struct w32_id): Change type of `rid' member to unsigned.
4757 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4758 argument ID to unsigned. All callers changed.
4759 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4760
e00553bf
EZ
47612009-03-20 Eli Zaretskii <eliz@gnu.org>
4762
4763 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4764 negative, produce a float value.
4765
4766 * dired.c (make_uid, make_gid): New functions.
4767 (Ffile_attributes): Use them to avoid negative UID and GID.
4768
f761d6b6
JB
47692009-03-20 Juanma Barranquero <lekktu@gmail.com>
4770
4771 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4772 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4773 Fix typos in docstrings.
4774
d507f8d7
KH
47752009-03-19 Kenichi Handa <handa@m17n.org>
4776
4777 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4778 changed, use font_load_for_lface to get a new font object.
4779 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4780
4781 * frame.c (x_set_font): Handle the case that ARG is a cons.
4782
c68845e0
GM
47832009-03-19 Glenn Morris <rgm@gnu.org>
4784
4785 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4786
bfa49dd1
CY
47872009-03-19 Chong Yidong <cyd@stupidchicken.com>
4788
4789 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4790
8458d4c1
KH
47912009-03-19 Kenichi Handa <handa@m17n.org>
4792
4793 * charset.c (load_charset_map_from_file): When a mapfile can't be
4794 loaded, signal an error.
4795
78e7d1fe
EZ
47962009-03-18 Eli Zaretskii <eliz@gnu.org>
4797
4798 * dired.c (Ffile_attributes): Make sure UID and GID are always
4799 positive, even if the value is too large for a positive EMACS_INT.
4800 Doc fix.
4801
4802 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4803
5da9fdfa
YM
48042009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4805
4806 * xmenu.c (xdialog_show): Move Fredisplay call ...
4807 (Fx_popup_dialog): ... here.
4808
7519c40d
SM
48092009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * dired.c (file_name_completion): Disable the first optimization just
4812 installed, since it is not implemented correctly.
4813
2cd298e2
SM
48142009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4815
4816 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4817 only if the entry can affect bestmatch.
2cd298e2
SM
4818 Stop the search early, as Ftry_completion already does.
4819
48d37adf
CY
48202009-03-17 Chong Yidong <cyd@stupidchicken.com>
4821
e10c9c93 4822 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4823
9286b16a
CY
48242009-03-15 Chong Yidong <cyd@stupidchicken.com>
4825
4826 * keyboard.c (parse_menu_item): Don't display remappings as menu
4827 equivalent bindings (Bug#788).
4828
f7b146dc
JR
48292009-03-15 Jason Rumney <jasonr@gnu.org>
4830
4831 * w32term.h (WM_EMACS_PAINT): New message.
4832 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4833 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4834 before passing to lisp thread. (Bug#950)
4835
f761d6b6 48362009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4837
d93f9575
CY
4838 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4839 variable as it was never reset.
4840 (ns_term_init): Remove initialization of Lisp-settable defaults
4841 and ns_expand_space.
4842 (-setPanelFromDefaultValues): Remove ns_expand_space.
4843 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4844 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4845 i.e. no additional spacing, similar to Carbon port.
4846
d93f9575
CY
4847 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4848 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4849
305018ec
JD
48502009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4851
4852 * sound.c (alsa_configure): Remove call to deprecated
4853 snd_pcm_sw_params_set_xfer_align.
4854
f761d6b6 48552009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4856
4857 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4858 after clicking in a detached tool bar.
4859 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4860
46e722a9
SM
48612009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4862
348db3dd
SM
4863 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4864 int/Lisp_Object mixup).
46e722a9 4865
a3d16f39
KH
48662009-03-13 Kenichi Handa <handa@m17n.org>
4867
4868 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4869 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4870 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4871 (set_fontset_font): Change ARG to a vector. Handle range_list in
4872 ARG correctly.
4873 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4874 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4875 the above change.
4876 (fontset_from_font): Fix previous change.
fe24f56a 4877 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4878 entry. If FONTSET is the default fontset, don't set the extra
4879 slot of the returning char-table.
4880
b066e6b6
JB
48812009-03-12 Juanma Barranquero <lekktu@gmail.com>
4882
4883 * nsfns.m (Fx_close_connection): Doc fix.
4884 (Fns_do_applescript): Reflow docstring.
4885 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4886 (Fx_display_pixel_width, Fx_display_pixel_height)
4887 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4888 Fix typos in docstrings.
4889 (Fns_set_alpha): Fix typos in error messages.
4890
d472514e 48912009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4892
d472514e 4893 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4894 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4895 were used for such events.
4896
d472514e
JB
4897 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4898 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4899
d472514e 4900 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4901 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4902
fb930676
KH
49032009-03-11 Kenichi Handa <handa@m17n.org>
4904
ff85581a
KH
4905 * font.h (font_open_by_spec): Extern it.
4906
c50b7e98
KH
4907 * font.c (font_open_by_spec): New function.
4908 (font_open_by_name): Use font_open_by_spec.
4909
fb930676
KH
4910 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4911 fontset of the frame.
4912
4913 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4914 modify the default font of frames that use this fontset.
4915 (num_auto_fontsets): New variable.
4916 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4917 name. Be sure to set FONTSET_ASCII to the correct font name.
4918 (update_auto_fontset_alist): New function.
4919
df4e8455
JB
49202009-03-11 Juanma Barranquero <lekktu@gmail.com>
4921
4922 * makefile.w32-in: Update dependencies.
4923
0a375797
AR
49242009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4925
4926 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4927
61313fa3
SM
49282009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4931
b55103fb
CY
49322009-03-10 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * lread.c (Feval_buffer): Doc fix.
4935
dde2559c
KH
49362009-03-09 Kenichi Handa <handa@m17n.org>
4937
4938 * charset.c (Qfile_name_handler_alist): Extern it.
4939 (load_charset_map_from_file): Temporarily bind
4940 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4941
df4e8455 49422009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4943
47f588bb
GM
4944 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4945 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4946
4ddf94bd
AR
49472009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4948
4c9bdfc2
AR
4949 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4950 (x_set_window_size): Change back to calculated method of setting
4951 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4952 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4953 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4954
fe41ae9e
AR
4955 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4956
4c9bdfc2
AR
4957 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4958 accelerator in parens under GNUstep.
4959
825d0875
KH
49602009-03-06 Kenichi Handa <handa@m17n.org>
4961
4962 These changes are to detect incorrect composition sequence without
f3b3be74 4963 looking ahead the source. (Bug#2370)
825d0875
KH
4964
4965 * coding.h: Include "composite.h".
4966 (enum compisition_state): New enum.
4967 (struct compisition_status): New struct.
4968 (struct iso_2022_spec): New member cmp_status.
4969 (struct emacs_mule_spec): New struct.
4970 (struct coding_system): New members ctext_extended_segment_len and
4971 embedded_utf_8. Change the union member
4972 spec.emacs_mule_full_support to spec.emacs_mule.
4973
4974 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4975 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4976 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4977 (ADD_COMPOSITION_DATA): New arg nbytes.
4978 (emacs_mule_char): New arg cmp_status.
4979 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4980 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4981 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4982 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4983 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4984 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4985 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4986 (EMACS_MULE_COMPOSITION_END): New macro.
4987 (emacs_mule_finish_composition): New function.
4988 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4989 (decode_coding_emacs_mule): Avoid long looking ahead while
4990 handling composition.
4991 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4992 (ENCODE_COMPOSITION_RULE): New macro.
4993 (finish_composition): New function.
4994 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4995 (DECODE_COMPOSITION_START): New implementation.
4996 (DECODE_COMPOSITION_END): Likewise.
4997 (STORE_COMPOSITION_RULE): New macro.
4998 (decode_coding_iso_2022): Avoid long looking ahead while handling
4999 composition, CTEXT extended segment, and embedded UTF-8.
5000 (setup_coding_system): For a coding of type iso-2022, reset
5001 CODING_ISO_EXTSEGMENT_LEN (coding) and
5002 CODING_ISO_EMBEDDED_UTF_8 (coding).
5003 (get_translation): Delete arguments last_block, from_nchars,
5004 to_nchars. Callers changed.
5005 (produce_chars): Don't modify charbuf. Adjusted for the change of
5006 get_translation.
98a326f7 5007 (produce_composition): Adjust for the new annotation sequence.
825d0875 5008 (handle_composition_annotation): Likewise.
98a326f7 5009 (consume_chars): Adjust for the change of get_translation.
825d0875 5010
ccbc4452
AR
50112009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5012
4ddf94bd 5013 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5014
988a7ddb
KH
50152009-03-05 Kenichi Handa <handa@m17n.org>
5016
5017 * font.c (font_select_entity): New function.
5018 (font_find_for_lface): Use font_select_entity to select a font.
5019
5020 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5021 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5022 font with C restriction.
5023
98a326f7 50242009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5025
be1bce46 5026 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5027
10ea2b82
JR
50282009-03-04 Jason Rumney <jasonr@gnu.org>
5029
2c93b248 5030 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5031 characters that have already been read. (Bug#2569)
2c93b248 5032
10ea2b82
JR
5033 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5034 Log an error message if check_image_size failed.
5035 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5036 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5037
71a0c011
EZ
50382009-03-02 Eli Zaretskii <eliz@gnu.org>
5039
5040 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5041 when decoding process output.
5042
2f63bba8
RS
50432009-03-01 Richard M Stallman <rms@gnu.org>
5044
5045 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5046
5047 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5048
0a9564cb
EZ
50492009-02-28 Eli Zaretskii <eliz@gnu.org>
5050
5051 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5052 (decode_coding_emacs_mule, decode_coding_iso_2022)
5053 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5054 (decode_coding_raw_text, decode_coding_charset)
5055 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5056 Honor inhibit-eol-conversion. (Bug #2186)
5057
449148b3
JR
50582009-02-28 Jason Rumney <jasonr@gnu.org>
5059
5060 * coding.c (detect_coding_charset): If not checking latin extra,
5061 fail on characters between 0x80 and 0xA0. (Bug#2354)
5062
a4aee864
EZ
50632009-02-28 Eli Zaretskii <eliz@gnu.org>
5064
5065 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5066 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5067
d88bee5a
GM
50682009-02-27 Glenn Morris <rgm@gnu.org>
5069
5070 * callint.c (Finteractive): Doc fix.
5071
a808f22d
KH
50722009-02-27 Kenichi Handa <handa@m17n.org>
5073
5074 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5075
caf8d60c
CY
50762009-02-27 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * font.c (font_style_to_value): Set value for unknown symbols to
5079 100 instead of 255.
b61137ea
CY
5080 (weight_table, slant_table, width_table): Treat "unspecified" as
5081 the default value.
caf8d60c 5082
1a0de25c
JB
50832009-02-26 Juanma Barranquero <lekktu@gmail.com>
5084
5085 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5086
8fc45744
JB
50872009-02-25 Juanma Barranquero <lekktu@gmail.com>
5088
107bd7d1
JB
5089 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5090 error as soon as a recursive load is detected.
8fc45744 5091
f097e223
AR
50922009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5093
5094 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5095 before caching.
5096
8810a12f
KH
50972009-02-24 Kenichi Handa <handa@m17n.org>
5098
5099 * fontset.c (fontset_find_font): Fix the condition for checking
5100 unavailable font.
5101
2c7d1565
GM
51022009-02-24 Glenn Morris <rgm@gnu.org>
5103
5104 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5105 whitespace that confuses documentation.
5106
a20878b6
MB
51072009-02-23 Miles Bader <miles@gnu.org>
5108
5109 * process.c (Flist_system_processes, Fprocess_attributes)
5110 (syms_of_process): Rename `system-process-attributes' to
5111 `process-attributes'.
5112
b3b58c01
AS
51132009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5114
1b3b981b
AS
5115 * coding.h (struct coding_system): Make safe_charsets a pointer to
5116 unsigned char.
5117 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5118 being 255.
5119 (SAFE_CHARSET_P): Likewise.
5120 (setup_iso_safe_charsets): Properly setup safe_charsets.
5121 (Fdefine_coding_system_internal): Likewise.
5122 (setup_coding_system): Likewise. Remove unneeded casts.
5123 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5124 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5125 unneeded casts.
5126
b3b58c01
AS
5127 * insdel.c (del_range_2): Don't modify gap contents when called
5128 from decode_coding_object. (Bug#1809)
5129
0b6f228c
CY
51302009-02-21 Chong Yidong <cyd@stupidchicken.com>
5131
5132 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5133 Qfont_object.
5134 (Ftype_of): Recognize font objects.
5135
5136 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5137
5138 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5139 moved to data.c.
5140
52f8870b
AR
51412009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5142
5143 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5144 async_iconified. Based on a patch by Christian Lynbech
5145 <christian.lynbech@tieto.com>.
5146 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5147
7087d5e9
GM
51482009-02-20 Glenn Morris <rgm@gnu.org>
5149
5150 * syntax.c (Fskip_chars_forward): Fix doc typo.
5151
41d2ceef
CY
51522009-02-20 Chong Yidong <cyd@stupidchicken.com>
5153
5154 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5155
1a3b7ca6
CY
51562009-02-19 Chong Yidong <cyd@stupidchicken.com>
5157
5158 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5159
73cce38d
KH
51602009-02-19 Kenichi Handa <handa@m17n.org>
5161
5162 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5163 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5164
a51092ee
DN
51652009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5166
5167 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5168
c423ecca
KH
51692009-02-18 Kenichi Handa <handa@m17n.org>
5170
5171 * font.c (font_check_otf_features): Fix handling of `nil' element.
5172 (Ffont_spec): Describe :lang and :otf in the docstring.
5173
4c1958f4
AS
51742009-02-16 Andreas Schwab <schwab@suse.de>
5175
5176 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5177 string.
5178
5704f39a
KH
51792009-02-16 Kenichi Handa <handa@m17n.org>
5180
5181 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5182 (Bug#1723)
5704f39a 5183
8f0085aa
CY
51842009-02-14 Chong Yidong <cyd@stupidchicken.com>
5185
a057d86a 5186 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5187
5188 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5189 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5190
aff01dd9
EZ
51912009-02-14 Eli Zaretskii <eliz@gnu.org>
5192
5193 * msdos.c (MAX_SCREEN_BUF): New macro.
5194 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5195 Encode the entire run of glyphs sharing the same face, instead of
5196 doing that one glyph at a time (fixes a bug with displaying
5197 double-size characters).
5198
ba301db3
AR
51992009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5200
5201 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5202
5203 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5204 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5205 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5206
5207 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5208 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5209
51d861de
SM
52102009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5211
ac146f82 5212 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5213 invisible areas.
5214
7fed8996
JR
52152009-02-12 Jason Rumney <jasonr@gnu.org>
5216
631ea4fb
JR
5217 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5218 (add_font_entity_to_list): Call check_face_name even when family
5219 is unspecified.
5220
cb4a3e42
JR
5221 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5222 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5223 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5224
7fed8996 5225 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5226 raster fonts. (Bug#2219)
7fed8996 5227
895416e3
KH
52282009-02-12 Kenichi Handa <handa@m17n.org>
5229
5230 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5231 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5232 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5233 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5234 (find_automatic_composition): While looking forward and backward,
5235 check static composition. Fix where to stop looking forward.
5236 (composition_adjust_point): Fix checking of static composition.
5237 (Fcomposition_get_gstring): Pay attention to
1dacf998 5238 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5239
5240 * lisp.h (fast_looking_at): Extern it.
5241
5242 * search.c (fast_looking_at): New function.
5243
51d861de 5244 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5245 <struct glyph>.u.cmp.to.
5246 (append_composite_glyph): Likewise.
5247
51d861de 5248 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5249 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5250 composition.
51d861de 5251 (append_composite_glyph): Adjust for the change of
895416e3
KH
5252 <strcut glyph>.u.cmp.to.
5253
8510724d
JB
52542009-02-11 Juanma Barranquero <lekktu@gmail.com>
5255
5256 * casetab.c (init_casetab_once):
5257 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5258 * font.c (font_update_lface):
5259 * fontset.c (Fnew_fontset):
5260 * ftfont.c (ftfont_drive_otf):
5261 * xfont.c (xfont_open):
5262 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5263
294fa707
SM
52642009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * fileio.c (Fwrite_region): !NILP -> CONSP.
5267
b5bfebec
AS
52682009-02-10 Andreas Schwab <schwab@suse.de>
5269
5270 * process.c (send_process): Properly relocate pointer into data
adab88bd 5271 when using encoded data. (Bug#2272)
b5bfebec 5272
cb84a2be
KH
52732009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5274
5275 * coding.c (detect_coding_charset): Fix previous change.
5276
89e09428
JR
52772009-02-08 Jason Rumney <jasonr@gnu.org>
5278
5279 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5280 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5281
4470a277
AS
52822009-02-07 Andreas Schwab <schwab@suse.de>
5283
5284 * unexelf.c (unexec): Fix error message.
5285
3175b12a
AR
52862009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5287
5288 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5289 when modal window is active. (Bug #2152)
3175b12a
AR
5290 (applicationShouldTerminate:): Remove now-unneeded while loop
5291 around NSRunAlertPanel.
5292
5293 * nsmenu.m (popupSession): New file-global variable.
5294 (pop_down_menu): End the popupSession before closing dialog.
5295 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5296 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5297 don't query NSApp for events (just sleep instead).
5298
8434d0b8
EZ
52992009-02-07 Eli Zaretskii <eliz@gnu.org>
5300
51d861de
SM
5301 * coding.c (syms_of_coding) <translation-table-for-input>:
5302 Modify doc string to discourage use for character code unification.
8434d0b8 5303
aa82edfd
CY
53042009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5305
5306 * atimer.c (run_timers): Update pending_atimers.
5307
2d283c7c
CY
53082009-02-06 Chong Yidong <cyd@stupidchicken.com>
5309
eb306cab
CY
5310 * image.c (svg_load_image): Fix last change.
5311
2d283c7c
CY
5312 * xfns.c (Fx_create_frame): Signal an error if no font is
5313 found (Bug#2147).
5314
4d8e170e
JB
53152009-02-05 Juanma Barranquero <lekktu@gmail.com>
5316
5317 * character.c (syms_of_character) <script-representative-chars>:
5318 Fix typo in docstring.
5319
c96169a0
AR
53202009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5321
5322 * nsmenu.m (pop_down_menu): New function.
5323 (ns_popup_dialog): Call it on unwind.
5324 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5325 call timer_check() (Bug#2154).
5326 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5327 handling_signal is set.
5328 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5329
31fd7c5c 5330 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5331
5332 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5333
5334 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5335
51d861de
SM
5336 * keyboard.c (poll_for_input_1, handle_async_input):
5337 Set handling_signal under HAVE_NS.
c96169a0 5338
aacd8ba1
GM
53392009-02-04 Glenn Morris <rgm@gnu.org>
5340
5341 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5342
4cb75c4b
KH
53432009-02-04 Kenichi Handa <handa@m17n.org>
5344
5345 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5346
5347 * charset.c (Fchar_charset): New optional arg restriction.
5348
5349 * coding.h (coding_system_charset_list): Extern it.
5350
5351 * coding.c (coding_system_charset_list): New function.
5352
5353 * composite.c: Include coding.h and termhooks.h.
5354 (composition_gstring_p): Fix for the terminal case.
5355 (composition_gstring_width): Likewise.
5356 (fill_gstring_body): Likewise.
5357 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5358 the frame.
5359 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5360 is within a composition.
867d4bb3 5361 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5362
5363 * term.c (encode_terminal_code): Fix handling of composition.
5364 (produce_composite_glyph): For static composition, get pixel_width
5365 from struct composition.
5366
826ba17e
AS
53672009-02-02 Andreas Schwab <schwab@suse.de>
5368
5369 * unexelf.c (unexec): Handle unaligned bss offset.
5370
8ad093db
AR
53712009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5372
5373 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5374 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5375
8ad093db
AR
5376 * keyboard.c (handle_interrupt): Don't call
5377 quit_throw_to_read_char() under NS.
d0a76a6e 5378
8ad093db
AR
5379 * blockinput.h: Remove NS-specific code.
5380
4d18a7a2
DN
53812009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5382
db878925
DN
5383 * dispnew.c (window_change_signal): Don't try to get the size of a
5384 suspended tty frame.
5385 * term.c (Fresume_tty): Resize if the size has changed while the
5386 tty was suspended.
5387
4d18a7a2
DN
5388 * alloc.c (mark_stack): Properly conditionalize previous change.
5389
8984df7c
JB
53902009-01-30 Juanma Barranquero <lekktu@gmail.com>
5391
5392 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5393 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5394 Remove; this code is not used on Windows.
5395
75f4f1ac
EZ
53962009-01-30 Eli Zaretskii <eliz@gnu.org>
5397
5398 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5399 EOLs that also has stray ^M characters.
5400
07a1e794
JB
54012009-01-30 Juanma Barranquero <lekktu@gmail.com>
5402
5403 * atimer.c (run_timers, alarm_signal_handler):
5404 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5405 * w32inevt.c (w32_console_read_socket):
5406 * w32term.c (w32_read_socket):
5407 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5408
a8b11cc9
CY
54092009-01-30 Chong Yidong <cyd@stupidchicken.com>
5410
5411 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5412 Initialize it as a relative filename pattern.
5413 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5414 (Fcall_process_region): Simplify temp file creation using
5415 temporary-file-directory.
5416
c279587b
EZ
54172009-01-29 Eli Zaretskii <eliz@gnu.org>
5418
5419 * msdos.c: Rename pending_signals to msdos_pending_signals.
5420 (sig_suspender, sigprocmask): Adjust.
5421
a8fe3242
CY
54222009-01-29 Chong Yidong <cyd@stupidchicken.com>
5423
5424 * keyboard.c (pending_signals): New var.
5425 (poll_for_input, input_available_signal, init_keyboard): Set it.
5426 (process_pending_signals): New function.
5427
5428 * lisp.h (QUIT): Check pending_signals instead of
5429 interrupt_input_pending. Use process_pending_signals.
5430
51d861de 5431 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5432
51d861de 5433 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5434
5435 * sysdep.c (emacs_write): Use process_pending_signals.
5436
5437 * xterm.c (XTread_socket): Update pending_signals.
5438
5439 * w32term.c (w32_read_socket): Update pending_signals.
5440
5441 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5442
6570a1c4
KH
54432009-01-29 Kenichi Handa <handa@m17n.org>
5444
5445 * xftfont.c (xftfont_has_char): New function.
5446 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5447
d72a4afa
AR
54482009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5449
5450 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5451 under GNUstep.
5452 (ns_query_color): New declaration.
5453
5454 * nsterm.m (ns_confirm_quit): New variable.
5455 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5456 (EmacsApp-applicationShouldTerminate:): Use it.
5457 (EmacsPrefsController): Let user set it.
5458 (ns_query_color): New function.
5459 (ns_defined_color): Use it.
5460 (ns_initialize): Drop.
5461 (ns_term_init): Add two lines from ns_initialize(), and set
5462 input_interrupt_mode to nil.
5463
5464 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5465 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5466
9fe78804
KH
54672009-01-28 Kenichi Handa <handa@m17n.org>
5468
5469 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5470 (fontset_get_font_group): Remember that no font-group is specified
5471 for C.
9fe78804 5472
fa57de36
CY
54732009-01-27 Chong Yidong <cyd@stupidchicken.com>
5474
930600e9
CY
5475 * fns.c (concat): Check for string overflow (bug#1787).
5476
fa57de36
CY
5477 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5478 Quadruple undo limits (bug#1501).
5479
7179ce7b
KH
54802009-01-27 Kenichi Handa <handa@m17n.org>
5481
5482 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5483 directly use GT_Get_Char_index.
5484
5485 * xftfont.c (struct xftfont_info): New member `index'.
5486
5487 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5488 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5489
5be8fcc0
CY
54902009-01-26 Kenichi Handa <handa@m17n.org>
5491
5492 * fontset.c (fontset_find_font): Fix handling of non-cons return
5493 value of fontset_get_font_group.
5494 (fontset_font): Revert last change.
5495
19ae3e61
JR
54962009-01-26 Jason Rumney <jasonr@gnu.org>
5497
5498 * w32font.c (w32font_list_internal): Return quickly if registry is
5499 unknown. Simplify final return.
5500 (add_font_entity_to_list): Break complex logic down into more
5501 manageable chunks. Move unknown registry check to
5502 w32font_list_internal.
5503
8612b71a
AR
55042009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5505
5506 Changes to remove Feval calls from GUI under NS.
5507
d8038940
JB
5508 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5509 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5510 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5511
5512 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5513 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5514 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5515 instead of NON_ASCII_KEYSTROKE_EVENT.
5516 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5517 (EmacsApp-applicationShouldTerminate:): Query user.
5518 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5519 instead of Feval.
5520
5521 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5522
5523 * keyboard.c (kbd_buffer_get_event): Check for it.
5524 (keys_of_keyboard): Define lispy keys for
5525 ns-put/unput-working-text.
5526
5527 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5528 versions.
5529 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5530
6288ae55
CY
55312009-01-25 Chong Yidong <cyd@stupidchicken.com>
5532
5533 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5534 setting current_buffer directly. (Bug#2044)
6288ae55 5535
289e7f8f
CY
55362009-01-24 Chong Yidong <cyd@stupidchicken.com>
5537
5ce87308 5538 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5539 any work. (Bug#1952, bug#1990).
5ce87308 5540
64cc3cf6 5541 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5542
b3243e6f
AR
55432009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5544
5545 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5546 (ns_no_defaults): New declaration.
5547 (main): Use it.
e0d2e69a 5548
d900b2af 5549 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5550
d900b2af 5551 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5552
d900b2af
AR
5553 * nsterm.m (ns_no_defaults): New variable.
5554 (ns_initialize): Don't read defaults when ns_no_defaults.
5555 (EmacsView-readSelectionFromPasteboard:)
5556 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5557 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5558 (ns_dumpglyphs_stretch): New function.
5559 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5560 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5561
e0d2e69a
AR
5562 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5563
3ac71f5d
CY
55642009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5565
5566 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5567 call for Sparc64.
5568
3fe53a83
AR
55692009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5570
5571 * nsfns.m:
5572 * nsgui.h:
5573 * nsmenu.m:
5574 * nsselect.m:
5575 * nsterm.h:
5576 * nsterm.m: Remove '23' comments that indicated code added during
5577 update from emacs-20 -> emacs-23.
5578
10f87c6f 55792009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5580
5581 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5582 ns_alternate_modifier. (Bug#1217)
a3b53a85 5583
c7cef62d
AR
5584 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5585 Display all shortcuts, including those w/o super modifier.
5586
575fb8bd
AR
5587 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5588
918b848b
CY
55892009-01-22 Chong Yidong <cyd@stupidchicken.com>
5590
5591 * fileio.c (Vwrite_region_post_annotation_function)
5592 (Vwrite_region_annotation_buffers): New vars.
5593 (build_annotations_unwind): Just reset
5594 Vwrite_region_annotation_buffers.
5595 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5596 Call write-region-post-annotation-function.
5597 (build_annotations): Add to Vwrite_region_annotation_buffers if
5598 buffer changes.
5599
a39e2539
AR
56002009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5601
5602 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5603 Tiger.
51d861de
SM
5604 * nsfns.m (ns_do_applescript):
5605 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5606
35ed44db
AR
56072009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5608
5609 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5610
cbe0b5bf
AR
56112009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5612
5613 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5614
6049d3a0
AR
5615 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5616
5617 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5618 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5619 handle Ctrl-tab. (Bug#1841)
5620 (ns_get_color): Use unsigned long long for scanned hex string value.
5621 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5622 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5623 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5624 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5625 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5626 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5627 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5628
d3810c21 5629 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5630 DPI. (Bug#1316)
d3810c21
AR
5631 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5632 values in onTiger section.
4c7077c3 5633
e301e634
CY
56342009-01-19 Chong Yidong <cyd@stupidchicken.com>
5635
7f82490b
CY
5636 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5637 Check return value of font_spec_from_name.
64cc3cf6 5638 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5639
5640 * font.c (font_spec_from_name): Return Qnil if font name could not
5641 be parsed.
5642 (font_parse_name): Treat a `?' character as part of an XLFD.
5643
e301e634
CY
5644 * fns.c (Fsubstring): Doc fix.
5645
1c0db158
KH
56462009-01-19 Kenichi Handa <handa@m17n.org>
5647
51d861de 5648 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5649 (ftfont_list): Likewise.
5650
acf20901
JB
56512009-01-18 Juanma Barranquero <lekktu@gmail.com>
5652
fff4e459
JB
5653 * dbusbind.c (Fdbus_register_signal):
5654 * process.c (conv_sockaddr_to_lisp):
5655 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5656
acf20901
JB
5657 * callproc.c (Fgetenv_internal): Doc fix.
5658
e7abcdfb
CY
56592009-01-16 Chong Yidong <cyd@stupidchicken.com>
5660
5661 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5662 it is not even used.
5663
b60861e6
GM
56642009-01-16 Glenn Morris <rgm@gnu.org>
5665
5666 * font.c (Ffont_variation_glyphs): Silence compiler.
5667
8db52afe
JB
56682009-01-15 Juanma Barranquero <lekktu@gmail.com>
5669
5670 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5671 Reported by David Robinow <drobinow@gmail.com>.
5672
4cddb209
KH
56732009-01-15 Kenichi Handa <handa@m17n.org>
5674
51d861de 5675 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5676
f247f67b
JR
56772009-01-14 Jason Rumney <jasonr@gnu.org>
5678
5679 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5680 never a fontset. (Bug#1562)
f247f67b 5681
f56a4450
KH
56822009-01-14 Kenichi Handa <handa@m17n.org>
5683
5684 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5685 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5686
4e99855e
CY
56872009-01-13 Chong Yidong <cyd@stupidchicken.com>
5688
5689 * font.c (font_clear_prop): If clearing the family, clear the font
5690 width index too.
5691
fff4e459 5692 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5693
24f01470
JB
56942009-01-12 Juanma Barranquero <lekktu@gmail.com>
5695
5696 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5697 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5698 functions, use sizeof.
5699
a41240a3
MR
57002009-01-12 Martin Rudalics <rudalics@gmx.at>
5701
5702 * keyboard.c (read_char): Fix case where last_nonmenu_event
5703 returned a bad value with submenus. (Bug#447)
5704
944636b8
CY
57052009-01-12 Chong Yidong <cyd@stupidchicken.com>
5706
5707 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5708 family, clear the font width index too.
5709
0dad7c6f
JR
57102009-01-11 Jason Rumney <jasonr@gnu.org>
5711
5712 * keyboard.c (cmd_error_internal): Exit when errors occur before
5713 frame creation and not in daemon mode. (Bug#1836)
5714
7c2363af
CY
57152009-01-10 Chong Yidong <cyd@stupidchicken.com>
5716
5717 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5718 of a display vector, backtrack.
5719 (try_window_reusing_current_matrix): Check glyph type before
5720 referencing charpos member.
5721
97b1b294
EZ
57222009-01-10 Eli Zaretskii <eliz@gnu.org>
5723
5724 Fix Bug #876:
5725
5726 * coding.c (inhibit_null_byte_detection): New variable.
5727 (detect_coding, detect_coding_system): Don't pay attention to null
5728 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5729 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5730 <inhibit-iso-escape-detection>: Doc fix.
5731
4624b6e3
JR
57322009-01-09 Jason Rumney <jasonr@gnu.org>
5733
5734 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5735 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5736 Only report Unicode Plane 2 fonts as unicode-sip.
5737
323b840c
CY
57382009-01-09 Chong Yidong <cyd@stupidchicken.com>
5739
51d861de
SM
5740 * xfaces.c (Fx_font_family_list): Delete function.
5741 Move compatibility version to faces.el.
323b840c 5742
51d861de 5743 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5744
eba7400d
MR
57452009-01-09 Martin Rudalics <rudalics@gmx.at>
5746
5747 * frame.c (x_set_frame_parameters): Remember requested value for
5748 fullscreen before it's reset by the parameter handler.
5749
4b09796d
GM
57502009-01-09 Glenn Morris <rgm@gnu.org>
5751
5752 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5753 (last_command_event): ... and update all users.
4b09796d
GM
5754 (last_input_char): For clarity, rename to...
5755 (last_input_event): ... and update all users.
5756 (last-command-char, last-input-char): Move to subr.el as aliases.
5757 * cmds.c, commands.h: Update for last_command_char rename.
5758
14ccea62
CY
57592009-01-08 Chong Yidong <cyd@stupidchicken.com>
5760
51d861de 5761 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5762
5f004711
JR
57632009-01-08 Jason Rumney <jasonr@gnu.org>
5764
5765 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5766 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5767 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5768 Don't declare.
fff4e459 5769 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5770 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5771
b71f6f73
KH
57722009-01-07 Kenichi Handa <handa@m17n.org>
5773
50b06221 5774 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5775 remember the coding system used for decoding in
50b06221
KH
5776 coding_system (Bug#1039).
5777
b71f6f73 5778 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5779 breaking the loop. (Bug#870)
b71f6f73
KH
5780 (decode_coding_utf_16, decode_coding_emacs_mule)
5781 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5782 (decode_coding_charset): Likewise.
5783
56f668f7
MR
57842009-01-05 Martin Rudalics <rudalics@gmx.at>
5785
5786 * frame.c (x_set_frame_parameters): Make sure height (width) get
5787 applied when fullwidth (fullheight) is set. (Bug#1522)
5788
5da9424d
JB
57892009-01-04 Juanma Barranquero <lekktu@gmail.com>
5790
5791 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5792 (utc_base): Declare as ULONGLONG, not long double.
5793 (convert_time_raw): Delete.
5794 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5795 (initialize_utc_base): New function.
5796 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5797 (convert_from_time_t): Use initialize_utc_base; compute result with
5798 64-bit arithmetic.
5799 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5800
c4605e09
EZ
58012009-01-03 Eli Zaretskii <eliz@gnu.org>
5802
9acef61c 5803 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5804 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5805 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5806 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5807 [!subprocesses]: Define.
5808 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5809 (Flist_system_processes, Fsystem_process_attributes)
5810 [!subprocesses]: Call list_system_processes and
5811 system_process_attributes instead of returning Qnil.
5812
9acef61c
JB
5813 * dosfns.c (system_process_attributes, list_system_processes):
5814 New functions.
c4605e09
EZ
5815
5816 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5817
5818 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5819 Don't use the default (no-op) implementation.
5820
8b7d0a16
JR
58212009-01-03 Jason Rumney <jasonr@gnu.org>
5822
a6d46bc1
JR
5823 * keyboard.c (parse_modifiers_uncached): Wheel events are
5824 clicks (bug#687).
5825
8b7d0a16
JR
5826 * w32term.c (x_query_colors, x_query_color): New functions.
5827
5828 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5829 (svg_load_image): Cast returned pointers from dynamically loaded
5830 functions. Eliminate W32 specific code.
5831
bfe11752
DN
58322009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5833
89e2438a
DN
5834 * nsfns.m (x_set_foreground_color, x_set_background_color)
5835 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5836 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5837 x_ prefix instead of ns_. Update references.
5838 (syms_of_nsfns): Add a FIXME comment.
5839
5840 * nsterm.m (x_set_cursor_type): New prototype.
5841 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5842
bfe11752
DN
5843 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5844 for Solaris instead of incorrectly providing Qutime and Qcutime.
5845
031da700
EZ
58462009-01-02 Eli Zaretskii <eliz@gnu.org>
5847
5848 * w32.c (process_times): Compute sum of utime and stime.
5849 (system_process_attributes): Add Qtime to the alist.
5850
5851 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5852 and add them to the alist.
5853
5854 * process.c (top level) <Qtime, Qctime>: New variables.
5855 (syms_of_process): staticpro them.
5856 (Fsystem_process_attributes): Add their documentation to the doc
5857 string.
5858
5859 * process.h: Declare Qtime and Qctime.
5860
df23bf08
JR
58612009-01-02 Jason Rumney <jasonr@gnu.org>
5862
9acef61c 5863 * image.c (Qgobject): New symbol.
df23bf08
JR
5864 (syms_of_image): Initialize it.
5865 (init_svg_functions): Load some functions from gobject library.
5866
5bbdf7aa
DN
58672009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5868
5869 * frame.c (make_terminal_frame): Remove redundant code and useless
5870 block.
5871
63136da6
AS
58722009-01-01 Andreas Schwab <schwab@suse.de>
5873
5874 * process.c (conv_sockaddr_to_lisp): Add workaround for
5875 getsockname bug on BSD.
5876
9ef69046
CY
58772009-01-01 Chong Yidong <cyd@stupidchicken.com>
5878
d6fafbe0
CY
5879 * xfns.c (x_create_tip_frame): Set border width of the X window.
5880
51d861de 5881 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5882
f9c34147
JR
58832009-01-01 Jason Rumney <jasonr@gnu.org>
5884
9acef61c 5885 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5886 Don't block input, as per earlier xterm.c changes.
5887
f5497e45
AR
58882008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5889
5890 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5891 (ns_appkit_version_int): New function.
5892 (x-server-version): Use ns_appkit_version_int and follow 21+
5893 convention of returning 3 integers.
5894
c19cab20
KH
58952008-12-30 Kenichi Handa <handa@m17n.org>
5896
5897 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5898 (CHAR_SURROGATE_PAIR_P): New macro.
5899
5900 * font.h (struct font_driver): New member get_variation_glyphs.
5901
9acef61c 5902 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5903 (Ffont_variation_glyphs): New function.
5904 (syms_of_font): Defsubr it.
5905
5906 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5907 ftfont_variation_glyphs.
5908 (setup_otf_gstring): New function.
5909 (ftfont_drive_otf): Use it.
5910 (ftfont_shape_by_flt): Handle variation selector.
5911 (ftfont_variation_glyphs): New function.
5912
28cd591f
MR
59132008-12-30 Martin Rudalics <rudalics@gmx.at>
5914
5915 * frame.c (Vemacs_iconified): Remove.
5916
7f714baf
JR
59172008-12-30 Jason Rumney <jasonr@gnu.org>
5918
5919 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5920 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5921
9d2d22ab
CY
59222008-12-30 Chong Yidong <cyd@stupidchicken.com>
5923
5924 * indent.c (Fvertical_motion): Don't advance iterator if we have
5925 reseated to the desired position.
5926
5927 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5928 checking for pos match.
5929
545312c2
KH
59302008-12-30 Kenichi Handa <handa@m17n.org>
5931
1ede3eb6
KH
5932 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5933 just get the low 8-bit of the code.
5934
545312c2
KH
5935 * font.c (font_intern_prop): Validate str as multibyte.
5936
bd7bbf29
DN
59372008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5938
31e0750e
DN
5939 * dispextern.h (struct face): Move lface and hash from the middle
5940 of bitfields.
5941
bd7bbf29
DN
5942 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5943
b5672e7c
DN
59442008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5945
5946 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5947 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5948 instead of intervals.h.
5949
d704470f
AS
59502008-12-26 Andreas Schwab <schwab@suse.de>
5951
5952 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5953 cons.
5954
54b33868
MR
59552008-12-26 Martin Rudalics <rudalics@gmx.at>
5956
5957 * textprop.c (Qminibuffer_prompt): New variable.
5958 (syms_of_textprop): Initialize it.
5959 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5960 in minibuffer-prompt face. (Bug#1662)
5961
40b615d6
JR
59622008-12-25 Jason Rumney <jasonr@gnu.org>
5963
5964 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5965
baae5c2d
JR
59662008-12-24 Jason Rumney <jasonr@gnu.org>
5967
5968 * ralloc.c (r_alloc_reset_variable): New function.
5969
5970 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5971 record of what points where. (Bug#716)
baae5c2d 5972
a9051c88
DN
59732008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5974
5975 * minibuf.c (read_minibuf): Follow the non-interactive case when
5976 running as a daemon, before detaching.
5977
8b146312
AS
59782008-12-22 Andreas Schwab <schwab@suse.de>
5979
5980 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5981 * gtkutil.c (free_widget_value): Use xfree instead of free.
5982
56f2de10
MR
59832008-12-22 Martin Rudalics <rudalics@gmx.at>
5984
5985 * frame.c (delete_frame): New function derived from
5986 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5987 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5988 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5989 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5990 * frame.h: Extern delete_frame.
5991 * window.c (window_loop):
5992 * terminal.c (delete_terminal):
5993 * xterm.c (x_connection_closed):
5994 * xfns.c (Fx_hide_tip):
9acef61c 5995 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5996
1fc200d6
JR
59972008-12-21 Jason Rumney <jasonr@gnu.org>
5998
5999 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6000 when character maps to .notdef character.
6001
5e252df2
SM
60022008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6003
6004 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6005
99b72cc4
JR
60062008-12-20 Jason Rumney <jasonr@gnu.org>
6007
6008 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6009 a graphical frame on Windows. (Bug#1325)
99b72cc4 6010
acc49a52
JD
60112008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6012
6013 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6014
6ea15123
CY
60152008-12-20 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * minibuf.c (Fread_buffer): Doc fix.
6018
b2dab6c8
JR
60192008-12-20 Jason Rumney <jasonr@gnu.org>
6020
54ea0c87 6021 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6022 server name in UNC paths. (Bug#719)
54ea0c87 6023
b2dab6c8 6024 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6025 charbuf. (Bug#1035)
b2dab6c8 6026
6d1921be
DN
60272008-12-19 Daniel Engeler <engeler@gmail.com>
6028
6029 * sysdep.c (serial_configure): Fix typo.
6030
53934c98
DN
60312008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6032
6033 * sysdep.c: Include alloca.h.
f4f634e8
DN
6034 (system_process_attributes): Add implementation for Solaris.
6035
6036 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6037
06e111a6
DN
60382008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6039
6040 Reorganize implementation of Flist_system_processes and
6041 Fsystem_process_attributes. No functional changes.
6042 * process.c: Don't #include pwd.h, grp.h and limits.h.
6043 (Flist_system_processes): Just call list_system_processes.
6044 (Fsystem_process_attributes): Just call system_process_attributes.
6045 (procfs_list_system_processes, time_from_jiffies)
6046 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6047 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6048
6049 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6050 (list_system_processes): Rename from
6051 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6052 Provide a do nothing implementation.
6053 (system_process_attributes): Rename from
6054 procfs_list_system_processes.
6055 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6056 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6057
6058 * w32.c (list_system_processes): Rename from
6059 w32_list_system_processes.
6060 (system_process_attributes): Rename from
6061 w32_system_process_attributes.
6062
6063 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6064
6065 * process.h (w32_list_system_processes)
6066 (w32_system_process_attributes): Remove.
362654a6
JB
6067 (list_system_processes, system_process_attributes):
6068 New prototypes.
06e111a6 6069
6a705b23
KH
60702008-12-19 Kenichi Handa <handa@m17n.org>
6071
6072 * xfont.c (xfont_decode_coding_xlfd): New function.
6073 (xfont_encode_coding_xlfd): New function.
6074 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6075 (xfont_list): Decode and encode XLFD by iso-8859-1.
6076 (xfont_match): Likewise.
6077 (xfont_list_family): Likewise.
6078 (xfont_open): Likewise.
6079
d66c0241 6080 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6081 names are utf-8.
6082
d66c0241 6083 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6084 names are utf-8.
6085
5a130941
JD
60862008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6087
6088 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6089 changed.
bfd20325
JD
6090 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6091 clicked on a detached tool bar button.
5a130941 6092
fd95644b
DN
60932008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6094
6095 * emacs.c (main): Print and error and exit when no data is read
6096 from the pipe.
6097
e6eee6ae
JR
60982008-12-17 Jason Rumney <jasonr@gnu.org>
6099
6100 * w32font.c (w32font_has_char): Always return -1.
6101
a35dd56b
KH
61022008-12-16 Kenichi Handa <handa@m17n.org>
6103
6104 * font.c (font_open_entity): Fix previous change.
6105
0e3635c2
DN
61062008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6107
6108 * process.c: Include <limits.h>.
6109
d4835507 61102008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6111
6112 * font.c (font_update_drivers): Fix mistake in reconstructing the
6113 driver list.
6114
61152008-12-16 Chong Yidong <cyd@stupidchicken.com>
6116
6117 * font.c (font_clear_cache): Fix format of font cache data.
6118
e2cbc401
CY
61192008-12-15 Chong Yidong <cyd@stupidchicken.com>
6120
6121 * xftfont.c (xftfont_open): Free Xft font pattern if
6122 XftFontOpenPattern fails.
6123
6124 * xterm.c (x_free_frame_resources): Remove extraneous call to
6125 free_frame_faces.
6126
b131d535
CY
61272008-12-13 Chong Yidong <cyd@stupidchicken.com>
6128
6129 * xterm.c (x_delete_display): Move xim_close_dpy call to
6130 x_delete_terminal.
6131 (x_delete_terminal): Call xim_close_dpy.
6132
e6df5336
JR
61332008-12-13 Jason Rumney <jasonr@gnu.org>
6134
6135 * w32font.c (intern_font_name): New function.
6136 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6137 (w32font_open_internal, Fx_select_font): Decode font name.
6138 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6139
6140 * w32font.h (intern_font_name): Declare new function.
6141
6142 * w32uniscribe.c (add_opentype_font_name_to_list):
6143 Use intern_font_name.
6144
20d68145
CY
61452008-12-13 Chong Yidong <cyd@stupidchicken.com>
6146
9f2554de
CY
6147 * frame.c (Fdelete_frame): Call free_font_driver_list.
6148
3d9bec9a
CY
6149 * font.c (free_font_driver_list): Implement missing function.
6150
20d68145
CY
6151 * w32term.c (w32_term_init): Don't initialize the image cache
6152 here; it will be done in init_frame_faces.
6153
6154 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6155 (struct x_display_info): Remove unused member null_pixel. New
6156 member xim_callback_data.
6157
6158 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6159 (xim_initialize): Save pointer to callback function data.
6160 (xim_close_dpy): Free callback function data. Call XCloseIM,
6161 reverting 2008-11-04 change by David Smith.
6162 (x_term_init): Don't initialize the image cache here; it will be
6163 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6164 (x_delete_display): Free x_dnd_atoms member.
6165
96f9306b
KH
61662008-12-13 Kenichi Handa <handa@m17n.org>
6167
6dec9044
JB
6168 * font.c (font_rescale_ratio): Moved from xfaces.c.
6169 Argument type changed. Handle a font-spec too.
96f9306b 6170 (font_score): Check Vface_font_rescale_alist.
6dec9044 6171 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6172
6173 * xfaces.c (font_rescale_ratio): Moved to font.c.
6174
8d5b4964
CY
61752008-12-13 Chong Yidong <cyd@stupidchicken.com>
6176
6177 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6178
e6df5336
JR
61792008-12-12 Jason Rumney <jasonr@gnu.org>
6180
6181 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6182 Vwindow_system_version to the real w32 major version.
6183
97c6058a
DN
61842008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6185
6186 * term.c (init_tty): Move setting the terminal name before the
6187 potential user: maybe_fatal.
6188
ec4e88d7
CY
61892008-12-11 Chong Yidong <cyd@stupidchicken.com>
6190
d4835507
JB
6191 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6192 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6193
b4233ec9
JR
61942008-12-11 Jason Rumney <jasonr@gnu.org>
6195
8ec71e23 6196 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6197 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6198
b4233ec9 6199 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6200 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6201
011a0143
JB
62022008-12-11 Juanma Barranquero <lekktu@gmail.com>
6203
6204 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6205
3c309f34
JB
62062008-12-11 Juanma Barranquero <lekktu@gmail.com>
6207
6208 * process.c (Fsystem_process_attributes, syms_of_process):
6209 Fix typo in name of Ssystem_process_attributes.
6210 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6211
fedc6ab5
JB
62122008-12-11 Juanma Barranquero <lekktu@gmail.com>
6213
6214 * syntax.c (Fmodify_syntax_entry): Doc fix.
6215
ba3de0e8
JB
62162008-12-10 Juanma Barranquero <lekktu@gmail.com>
6217
6218 * font.c (Ffont_spec): Move usage to end of docstring.
6219
174f1c74
JR
62202008-12-10 Jason Rumney <jasonr@gnu.org>
6221
6222 * w32font.c (Qcham): New symbol.
6223 (font_supported_scripts): Add cham, and comments for other new
6224 scripts in bitfield from OpenType spec.
9d32f818
JR
6225 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6226 contain characters beyond the bmp.
174f1c74 6227
7b649478
KH
62282008-12-10 Kenichi Handa <handa@m17n.org>
6229
6230 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6231 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6232 Qunicode_sip.
6233
2133e2d1
JB
62342008-12-10 Juanma Barranquero <lekktu@gmail.com>
6235
6236 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6237 (Fcoding_system_put): Use QCdefault_char.
6238 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6239
9af886ee
CY
62402008-12-09 Chong Yidong <cyd@stupidchicken.com>
6241
74d819eb
CY
6242 * xftfont.c (syms_of_xftfont): Fix typo.
6243
4ccfa1c0 6244 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6245
7c19d3ae
DN
62462008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6247
6248 * emacs.c (main): Close daemon_pipe on exec.
6249
567826bb
CY
62502008-12-08 Chong Yidong <cyd@stupidchicken.com>
6251
6252 * termchar.h (struct tty): New members termcap_term_buffer and
6253 termcap_strings_buffer.
6254
6255 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6256 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6257 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6258 All callers changed.
6259 (init_tty): Store termcap data and string buffers in new struct
6260 tty members termcap_term_buffer and termcap_strings_buffer.
6261 (delete_tty): Free them.
4ccfa1c0 6262 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6263
aa96c42b
SZ
62642008-12-07 Seiji Zenitani <zenitani@mac.com>
6265
6266 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6267 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6268
b7e1d896
CY
62692008-12-06 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * coding.c (make_conversion_work_buffer): Disable buffer
6272 modification hooks in the work buffer.
6273
b5ec91a5
EZ
62742008-12-05 Eli Zaretskii <eliz@gnu.org>
6275
6276 * process.c (procfs_system_process_attributes): If `nread' has a
6277 negative value, assign zero to it.
6278
a5d2a52b
CY
62792008-12-05 Chong Yidong <cyd@stupidchicken.com>
6280
68c5540b 6281 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6282
7bf1bb21
KH
62832008-12-05 Kenichi Handa <handa@m17n.org>
6284
6285 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6286 second character is a combining character.
6287
2fdc7d00
EZ
62882008-12-05 Eli Zaretskii <eliz@gnu.org>
6289
6290 * process.c (procfs_system_process_attributes): Don't use cmd,
6291 cmdsize, and q without initializing them first.
6292
bf6bfba8
JR
62932008-12-04 Jason Rumney <jasonr@gnu.org>
6294
6295 * w32font.c (w32font_draw): Initialize orig_clip before getting
6296 it, and delete it when finished.
6297
a3b1a468
DN
62982008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6299
6300 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6301 case when running as a daemon before detaching.
6302
8b8be8eb
JB
63032008-12-03 Juanma Barranquero <lekktu@gmail.com>
6304
805f2638 6305 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6306
b1bde622
KH
63072008-12-03 Kenichi Handa <handa@m17n.org>
6308
e500c47d
KH
6309 * font.c (font_at): Set `multibyte' at first.
6310
ca516334
KH
6311 * coding.c (decode_coding_charset): Check type of an element of
6312 vector VALIDS.
7bf1bb21 6313 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6314
4ccfa1c0 6315 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6316 (font_for_char): Likewise.
6317
1e5ecd37
CY
63182008-12-03 Chong Yidong <cyd@stupidchicken.com>
6319
d5b01609 6320 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6321 (font_update_lface): Handle fonts with corrupted size specs,
6322 i.e. non-int and non-float.
d5b01609 6323
11e3a6e4 6324 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6325 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6326 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6327
ab06788b
CY
6328 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6329
1e5ecd37 6330 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6331 underline_minimum_offset for underline position.
1e5ecd37 6332
63c125ab
DN
63332008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6334
6335 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6336
6337 * character.c (c_string_width): Specify the type for LEN.
6338
3a8406e1
KH
63392008-12-03 Kenichi Handa <handa@m17n.org>
6340
4ccfa1c0 6341 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6342 (decode_coding_utf_8): Likewise.
4ccfa1c0 6343 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6344 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6345
651df7d9
CY
63462008-12-02 Chong Yidong <cyd@stupidchicken.com>
6347
6348 * keyboard.c (make_lispy_position): Only use PT if the selected
6349 window is current.
6350
1f625c6c
AS
63512008-12-02 Andreas Schwab <schwab@suse.de>
6352
f7741ce9
AS
6353 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6354
1f625c6c
AS
6355 * doprnt.c (doprnt1): Fix size of charbuf.
6356
92bc2678
CY
63572008-12-02 Chong Yidong <cyd@stupidchicken.com>
6358
6359 * keyboard.c (timer_check): Revert last change.
6360
93b9e8cc
JB
63612008-12-02 Juanma Barranquero <lekktu@gmail.com>
6362
6363 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6364
fd7a37d5
JB
63652008-12-01 Juanma Barranquero <lekktu@gmail.com>
6366
6367 * makefile.w32-in: Update dependencies.
6368 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6369
c115043b
AS
63702008-12-01 Andreas Schwab <schwab@suse.de>
6371
6372 * font.c (register_font_driver): Use xmalloc.
6373 (font_put_frame_data): Likewise.
6374
f5668d2a
CY
63752008-12-01 Chong Yidong <cyd@stupidchicken.com>
6376
860d96be
CY
6377 * xfaces.c (realize_x_face): Make abort condition clearer.
6378
f5668d2a
CY
6379 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6380
379c17e7
CY
63812008-11-30 Chong Yidong <cyd@stupidchicken.com>
6382
6383 * keyboard.c (timer_check): After a timer runs, ensure that the
6384 selected window's buffer is current.
6385
35f36d65
JB
63862008-11-30 Juanma Barranquero <lekktu@gmail.com>
6387
f952c61c
JB
6388 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6389 It was accidentally restored by the Unicode merge.
6390
35f36d65
JB
6391 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6392
b23077df
JB
63932008-11-29 Juanma Barranquero <lekktu@gmail.com>
6394
6395 * w32proc.c: Include "coding.h".
6396 (Fw32_short_file_name): Encode filename passed to Windows API.
6397 (Fw32_long_file_name): Encode filename passed to Windows API and
6398 decode back the result. (Bug#1433)
6399
b8ebe9dd
KH
64002008-11-29 Kenichi Handa <handa@m17n.org>
6401
8cc53f96
KH
6402 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6403 not before accessing it.
6404
b8ebe9dd
KH
6405 * charset.c (Fdefine_charset_internal): After calculating
6406 min_char, max_char, and fastmap, copy the charset structure again.
6407 (encode_char): Fix the previous change.
6408
59bc82c0
SZ
64092008-11-28 Seiji Zenitani <zenitani@mac.com>
6410
6411 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6412
6413 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6414
6415 * nsterm.m (x_set_frame_alpha): New function.
6416
32247e3d
EZ
64172008-11-27 Eli Zaretskii <eliz@gnu.org>
6418
6419 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6420
b003e5ff
JB
64212008-11-27 Juanma Barranquero <lekktu@gmail.com>
6422
6423 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6424 pointer to check_face_name.
6425
708550f5
KH
64262008-11-27 Kenichi Handa <handa@m17n.org>
6427
6428 * category.h (SET_CATEGORY_SET): Call set_category_set.
6429 (set_category_set): Extern it.
6430
6431 * category.c (hash_get_category_set): New function.
6432 (Fmodify_category_entry): Adjusted for the change of
6433 char_table_ref_and_range. Call hash_get_category_set to get a
6434 category set to store in the table.
6435
6436 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6437 Funify_charset.
6438
2ae37cf0 6439 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6440 (DECODE_CHAR): Check if the decoder vector is ready.
6441 (ENCODE_CHAR): Check if the encoder char-table is ready.
6442 (maybe_unify_char): Extern it.
6443
6444 * charset.c (Vchar_unified_charset_table): Delete it.
6445 (inhibit_load_charset_map): New variable.
6446 (temp_charset_work): New variable.
6447 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6448 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6449 New macros.
6450 (load_charset_map): Meaning of control_flag changed. If
6451 inhibit_load_charset_map is nonzero, setup a table in
6452 temp_charset_work.
6453 (load_charset): New argument control_flag.
6454 (map_charset_for_dump): New function.
6455 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6456 map_charset_for_dump.
6457 (Fdefine_charset_internal): If the charset method is MAP, load
6458 mapping tables by calling load_charset.
6459 (Funify_charset): Don't load a mapping table but directly set
6460 Vchar_unify_table.
6461 (maybe_unify_char): New function.
6462 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6463 Handle the case of inhibit_load_charset_map being nonzero.
6464 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6465 Handle the case of inhibit_load_charset_map being nonzero.
6466 (Fclear_charset_maps): Just free temp_charset_work.
6467 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6468 variable.
6469
6470 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6471 change of char_table_ref_and_range.
6472 (char_table_ref_and_range): Change the meaning of argument FROM
6473 and TO. Now the caller must provide initial values for *FROM
6474 and *TO.
6475
6476 * fontset.c (fontset_add): Adjusted for the change of
6477 char_table_ref_and_range.
6478 (fontset_get_font_group): Likewise.
6479 (Ffontset_info): Likewise.
6480
6481 * keymap.c (describe_vector): Adjusted for the change of
6482 char_table_ref_and_range. For char-table, put boundary between
6483 non-ASCII and 8-bit characters.
6484
6485 * print.c (print_object): For bool-vector, delete unnecessary
6486 check of ASCII_BYTE_P.
6487
9196133b
JR
64882008-11-26 Jason Rumney <jasonr@gnu.org>
6489
6490 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6491 leading in font height. (Bug#879)
9196133b 6492
9f688acf
GM
64932008-11-26 Glenn Morris <rgm@gnu.org>
6494
6495 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6496 redefinition with ifdef. (Bug#1383)
6497
90d19aff
AR
64982008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6499
6500 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6501
4ccfa1c0 65022008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6503
6504 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6505 New EmacsView methods.
6506 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6507 Fixes bug #1048,1357,1414.
6508
65092008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6510
6511 Fix bug #1362.
6512 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6513 is not an indexed color.
6514 * nsterm.m (free_indexed_color): Add argument checking.
6515 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6516
e7d5ecb3
CY
65172008-11-24 Chong Yidong <cyd@stupidchicken.com>
6518
6519 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6520 Document confirm-after-completion value for
6521 minibuffer-completion-confirm.
6522
c285743c
JR
65232008-11-24 Jason Rumney <jasonr@gnu.org>
6524
6525 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6526 warning.
6527
b0857706
JR
65282008-11-23 Jason Rumney <jasonr@gnu.org>
6529
6530 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6531 restored before returning.
6532
6533 * w32font.c (check_face_name): New function.
6534 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6535 fonts. (Bug#642)
b0857706 6536
ee50ff07
MR
65372008-11-22 Martin Rudalics <rudalics@gmx.at>
6538
6539 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6540 confirm-nonexistent-file-or-buffer in doc-string.
6541
b8ff72fa
SM
65422008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6543
6544 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6545 Fix copy/paste typo. Add checks.
6546
cee53ed4
KH
65472008-11-21 Kenichi Handa <handa@m17n.org>
6548
6549 * coding.c (detect_coding_iso_2022): Reject invalid composition
6550 sequence.
6551 (DECODE_COMPOSITION_START): If the current source is the last
6552 block, and the current composition doesn't end, regard this
6553 sequence as invalid.
6554 (decode_coding_iso_2022): Handle invalid composition sequence.
6555
f6ef1e65
MR
65562008-11-20 Martin Rudalics <rudalics@gmx.at>
6557
6558 * window.c (coordinates_in_window): Don't return
6559 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6560 line when the window is not the rightmost one. (Bug#1372)
6561
e08b1705
MR
65622008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6563
6564 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6565
ad98e89f
EZ
65662008-11-15 Eli Zaretskii <eliz@gnu.org>
6567
6568 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6569 and bright_bg if noninteractive is non-zero.
6570
fb098a4b
CY
65712008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6572
6573 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6574 x_draw_glyph_string_background.
6575
6576 * w32term.c (x_draw_glyph_string): Likewise.
6577
ce952b6e
CY
65782008-11-15 Chong Yidong <cyd@stupidchicken.com>
6579
6580 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6581 the next glyph string once past the overhang width.
6582
6583 * nsterm.m (ns_draw_glyph_string): Likewise.
6584
6585 * w32term.c (x_draw_glyph_string): Likewise.
6586
26ea7079
CY
65872008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6588
6589 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6590 double file close.
6591
1c33c906
MR
65922008-11-14 Martin Rudalics <rudalics@gmx.at>
6593
6594 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6595 dedicated status of window before attempting to display another
6596 buffer in it.
6597
8fc29035
JB
65982008-11-14 Juanma Barranquero <lekktu@gmail.com>
6599
6600 * msdos.c (Fmsdos_long_file_names):
6601 (syms_of_msdos) <dos-unsupported-char-glyph>:
6602 * dosfns.c (Fint86): Fix typos in docstrings.
6603
55fb4286
EZ
66042008-11-14 Eli Zaretskii <eliz@gnu.org>
6605
6606 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6607
3fda0315
KY
66082008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6609
6610 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6611
7e849c17
CY
66122008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6613
6614 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6615
6616 * frame.h: Negative alpha means "don't touch".
6617
6618 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6619
6620 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6621
b9fd67bd
DN
66222008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6623
6624 * hftctl.c:
6625 * chpdef.h:
6626 * acldef.h: Remove files used only for systems no longer supported.
6627
6628 * Makefile.in: Fix .o alphabetical ordering.
6629 (hftctl.o): Remove dependency, file removed.
6630 (keymap.o, print.o): Depend on charset.h.
6631
d5998e03
KH
66322008-11-10 Kenichi Handa <handa@m17n.org>
6633
2ae37cf0 6634 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6635
be70e183
CY
66362008-11-08 Chong Yidong <cyd@stupidchicken.com>
6637
6638 * dired.c (file_name_completion): If completion_ignore_case is
6639 enabled, ignore case when checking completion-regexp-list.
6640
7cf94eac
EZ
66412008-11-08 Eli Zaretskii <eliz@gnu.org>
6642
6643 * vm-limit.c (get_lim_data): Fix last change.
6644
ee107a89
KH
66452008-11-08 Kenichi Handa <handa@m17n.org>
6646
6647 * character.c (Fget_byte): New function.
6648 (syms_of_character): Defsubr Fget_byte.
6649
5fd15622
CY
66502008-11-07 Chong Yidong <cyd@stupidchicken.com>
6651
6652 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6653 cursor position is valid after scrolling.
6654
13d62fad
JB
66552008-11-06 Juanma Barranquero <lekktu@gmail.com>
6656
6657 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6658
a1dd2936
GM
66592008-11-06 Glenn Morris <rgm@gnu.org>
6660
6661 * xterm.c (handle_one_xevent): Don't let popup menus cause
6662 mouse-autoselect-window related window switching. (Bug#1261)
6663
860cd236
CY
66642008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6665
6666 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6667
653a3150
AS
66682008-11-04 Andreas Schwab <schwab@suse.de>
6669
6670 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6671
870f5cac
CY
66722008-11-03 Chong Yidong <cyd@stupidchicken.com>
6673
6674 * xfns.c (Fx_wm_set_size_hint): New function.
6675
1e02f3cb
MR
66762008-11-03 Martin Rudalics <rudalics@gmx.at>
6677
6678 * textprop.c (Fprevious_single_char_property_change): Return 0
6679 when there's no change in a string. (Bug#1301)
6680
e630dfc6
MR
66812008-11-02 Martin Rudalics <rudalics@gmx.at>
6682
6683 * frame.c (do_switch_frame): New argument NORECORD passed to
6684 Fselect_window.
6685 (Fselect_frame): New argument NORECORD passed to
6686 do_switch_frame.
6687 (Fset_frame_selected_window): New argument NORECORD passed to
6688 Fselect_frame.
6689 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6690 in call of do_switch_frame.
6691 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6692 Handle NORECORD argument in call of Fselect_frame.
6693 * lisp.h (do_switch_frame, Fselect_frame)
6694 (Fset_frame_selected_window): Adjust declarations.
6695 * window.c (select_frame_norecord): New function.
6696 (run_window_configuration_change_hook): Use it and call
6697 Fselect_frame with NORECORD set.
6698 (Fselect_window): Pass NORECORD to Fselect_frame.
6699 (Fset_window_configuration): Handle NORECORD argument in call of
6700 do_switch_frame.
6701 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6702 Fset_frame_selected_window.
6703 * keyboard.c (command_loop_1): Handle NORECORD in call of
6704 Fselect_frame (currently ifdefd).
6705
9020b223
GM
67062008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6707
6708 * emacs.c (USAGE2): Untabify.
6709
793ffee8
SM
67102008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6711
6712 * composite.c (fill_gstring_header): Fix copy/paste typo.
6713
ab6d1131
MR
67142008-10-31 Martin Rudalics <rudalics@gmx.at>
6715
6716 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6717 (Fother_window): Rename argument and rewrite doc-string.
6718 (select_window_norecord): Fix return value. (Bug#1276)
6719
601a9cf1
JB
67202008-10-30 Juanma Barranquero <lekktu@gmail.com>
6721
6722 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6723 new frames overriding foreground for tooltips. Based on similar patch
6724 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6725
813b0652
CY
67262008-10-29 Chong Yidong <cyd@stupidchicken.com>
6727
6728 * emacs.c (Fdaemon_initialized): Initialize nfd.
6729
4414f58f
MR
67302008-10-29 Martin Rudalics <rudalics@gmx.at>
6731
6732 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6733 (Fwindow_text_height): Clarify doc-strings.
6734 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6735 doc-string of window-scroll-functions.
6736
ecdcaa09
RS
67372008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6738
6739 * category.c (syms_of_category): Fix typo in docstring.
6740
23fe745a
JB
67412008-10-28 Juanma Barranquero <lekktu@gmail.com>
6742
6743 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6744 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6745 Fix typos in docstrings.
6746
ff808935
DN
67472008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6748
6749 * emacs.c (daemon_pipe): Make non-static.
6750 (IS_DAEMON): Move definition ...
6751 * lisp.h (IS_DAEMON): ... here.
6752 (daemon_pipe): Declare.
6753 (is_daemon): Remove.
6754 * dispnew.c (init_display): Use IS_DAEMON.
6755
fc012771
SM
67562008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6757
6758 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6759 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6760
6761 * emacs.c (is_daemon): Remove.
6762 (main): Don't set is_daemon.
6763 (IS_DAEMON): New macro.
6764 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6765 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6766 parent exits.
6767 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6768
d8bdbe6f
CY
67692008-10-27 Chong Yidong <cyd@stupidchicken.com>
6770
d1a072bf
CY
6771 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6772 over-sized glyph, draw it with the default glyph width.
6773
e2e325aa
CY
6774 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6775 glyph, draw it with the default glyph width.
6776
6777 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6778 glyph, draw it with the default glyph width.
6779
d8bdbe6f
CY
6780 * xdisp.c (try_scrolling): When computing the distance from the
6781 scroll margin to PT, try moving some distance past the window
6782 bottom before giving up.
6783
7bfac547
MR
67842008-10-27 Martin Rudalics <rudalics@gmx.at>
6785
6786 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6787 (Fset_window_buffer): Explain in doc-string that a window can be
6788 "strongly" dedicated to its buffer.
6789
4ff029f6
DN
67902008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6791
6792 * emacs.c (daemon_name): New variable.
6793 (main): Deal with --daemon=SERVER_NAME.
6794 (Fdaemonp): Return a name if one was passed to --daemon.
6795
5790ef40
DN
67962008-10-26 Romain Francoise <romain@orebokech.com>
6797
f9bd0df9 6798 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6799 (main): Create a pipe before forking, make the parent exit only after
6800 the child has closed its end of the pipe. Move closing the
6801 descriptors ...
6802 (Fdaemon_initialized): ... here. New function.
6803
f5385255
SM
68042008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6805
4d632321
SM
6806 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6807 the previous unoptimized table.
6808
f5385255
SM
6809 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6810 the distinction between non-nil and non-t value of `dedicated'.
6811
6c56a0f3
CY
68122008-10-25 Chong Yidong <cyd@stupidchicken.com>
6813
6814 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6815 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6816
fec89261
MR
68172008-10-25 Martin Rudalics <rudalics@gmx.at>
6818
6819 * window.c (Fget_buffer_window, Fdelete_windows_on)
6820 (Freplace_buffer_in_windows): Make buffer argument optional and
6821 rename to buffer_or_name.
6822
34fcddd0
CY
68232008-10-24 Chong Yidong <cyd@stupidchicken.com>
6824
f5385255
SM
6825 * xdisp.c (handle_single_display_spec, handle_display_prop):
6826 Undo 2005-05-16 change.
34fcddd0
CY
6827 (handle_stop): Pop iterator if it's loaded with an empty string.
6828 (get_overlay_strings_1): Don't save iterator if it's loaded with
6829 an empty string (bug#1201).
6830
064766f2
KH
68312008-10-24 Kenichi Handa <handa@m17n.org>
6832
6833 * ftfont.c (ftfont_otf_features): Fix previous change.
6834 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6835 calling ftfont_otf_features.
6836
f9bd0df9 68372008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6838
6839 * font.c (font_match_p): Fix for the case that a vector of
6840 characters is in script-representative-chars.
6841
1dae9197
MA
68422008-10-24 Michael Albinus <michael.albinus@gmx.de>
6843
6844 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6845 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6846 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6847 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6848 macro. (Bug#1186)
1dae9197 6849
f9bd0df9 68502008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6851
6852 * s/sol2-10.h: New file.
6853
878a4584
JB
68542008-10-23 Juanma Barranquero <lekktu@gmail.com>
6855
6856 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6857 poor beast has survived 9+ years and the jump from xterm.c!).
6858
cd265ca6
MR
68592008-10-23 Martin Rudalics <rudalics@gmx.at>
6860
6861 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6862 Reword doc-string.
f5385255 6863 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6864
472a4dc9
JB
68652008-10-23 Juanma Barranquero <lekktu@gmail.com>
6866
6867 * character.c (syms_of_character) <script-representative-chars>:
6868 <unicode-category-table>: Doc fixes.
6869
159bd5a2
NF
68702008-10-23 Noah Friedman <friedman@splode.com>
6871
6872 * coding.c (make_conversion_work_buffer): Check that
6873 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6874 Fget_buffer_create.
6875
49f9c344
KH
68762008-10-23 Kenichi Handa <handa@m17n.org>
6877
6878 * font.c (font_add_log): Check the values of extra properties.
6879
12bb3111
MR
68802008-10-22 Martin Rudalics <rudalics@gmx.at>
6881
6882 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6883 Reword doc-string.
6884 (Fset_window_parameter): Use NILP.
6885 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6886 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6887
bbeb4e99
JB
68882008-10-22 Juanma Barranquero <lekktu@gmail.com>
6889
6890 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6891
68922008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6893
6894 * nsfns.m (ns_appkit_version): New function.
6895 (x-server-version): Use it.
6896 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6897 (x-server-vendor): Don't check_ns().
6898
6899 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6900
a9b555d3
JB
69012008-10-22 Juanma Barranquero <lekktu@gmail.com>
6902
6903 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6904 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6905
4626499f
KH
69062008-10-22 Kenichi Handa <handa@m17n.org>
6907
e3681952
KH
6908 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6909 scripts.
6910
4626499f
KH
6911 * category.c (word_boundary_p): Check scripts instead of charset.
6912 Handle nil value in word-separating-categories and
6913 word-combining-categories.
6914 (syms_of_category): Fix docstrings of word-separating-categories
6915 and word-combining-categories.
6916
1560f91a
EZ
69172008-10-21 Eli Zaretskii <eliz@gnu.org>
6918
6919 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6920 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6921
f4668441
MR
69222008-10-21 Martin Rudalics <rudalics@gmx.at>
6923
6924 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6925 Rename arg "buffer" to "buffer_or_name".
6926 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6927 it optional.
6928 (no_switch_window): Remove since the return value is not used.
a9b555d3 6929 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6930 Consider window as dedicated when Fwindow_dedicated_p returns a
6931 non-nil value.
6932 * lisp.h: Remove prototype for no_switch_window.
6933
fd75ddb2
JD
69342008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6935
6936 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6937 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6938
07295713
KH
69392008-10-21 Kenichi Handa <handa@m17n.org>
6940
6941 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6942 check Vlatin_extra_code_table.
6943
712adc82
EZ
69442008-10-20 Eli Zaretskii <eliz@gnu.org>
6945
6946 * fileio.c (Fset_file_modes): Doc fix.
6947
f549eb0b
MA
69482008-10-19 Michael Albinus <michael.albinus@gmx.de>
6949
6950 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6951 in arrays.
6952
aac0c6e3
MR
69532008-10-19 Martin Rudalics <rudalics@gmx.at>
6954
6955 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6956 Mention kill-buffer in doc-string.
6957 (Fset_window_buffer): Reinsert tem check removed in last commit.
6958 (Fenlarge_window, Fshrink_window): Have argument names and
6959 doc-string follow Elisp manual more closely.
6960
69612008-10-18 Eli Zaretskii <eliz@gnu.org>
6962
6963 * fileio.c (Fset_file_modes): Doc fix.
6964
69652008-10-18 Martin Rudalics <rudalics@gmx.at>
6966
6967 * window.c (Fwindow_width, Fset_window_start)
6968 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6969 (Fdelete_windows_on, Freplace_buffer_in_windows):
6970 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6971 (Fwindow_dedicated_p): Make window argument optional.
6972 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6973 (Fset_window_buffer): Respect any non-nil dedicated value for
6974 window. Rename "buffer" argument to "buffer_or_name".
6975
69762008-10-18 Ulrich Mueller <ulm@gentoo.org>
6977
6978 * m/sh3.h: New file, machine description for SuperH.
6979
69802008-10-17 Martin Rudalics <rudalics@gmx.at>
6981
6982 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6983
69842008-10-17 Kenichi Handa <handa@m17n.org>
6985
6986 * ftfont.c (ftfont_otf_features): Fix indexing
6987 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6988
69892008-10-16 Magnus Henoch <mange@freemail.hu>
6990
6991 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6992 (Fdbus_call_method_asynchronously): Ditto.
6993 This change makes C-h f display the argument list.
6994
69952008-10-16 Chong Yidong <cyd@stupidchicken.com>
6996
6997 * fileio.c (Fexpand_file_name): Doc fix.
6998
6999 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7000 of :foreground and :background equivalent to unspecified (20.x
7001 compatibility).
7002
70032008-10-15 Eli Zaretskii <eliz@gnu.org>
7004
7005 * buffer.c (syms_of_buffer): Doc fix.
7006
70072008-10-14 Kenichi Handa <handa@m17n.org>
7008
7009 * font.c (font_clear_prop): When clearing font width, clear the
7010 average width field too.
7011
70122008-10-12 Andreas Schwab <schwab@suse.de>
7013
7014 * ftfont.c (ftfont_shape_by_flt): Make static.
7015 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7016
7017 * font.c: Don't include <m17n-flt.h>.
7018
70192008-10-10 Eli Zaretskii <eliz@gnu.org>
7020
7021 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7022
70232008-10-09 Eli Zaretskii <eliz@gnu.org>
7024
7025 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7026 away code.
7027
70282008-10-09 Chong Yidong <cyd@stupidchicken.com>
7029
7030 * dispnew.c (update_text_area): Avoid looping due to large glyph
7031 overhangs (bug#1070).
7032
70332008-10-09 Kenichi Handa <handa@m17n.org>
7034
7035 * fontset.c (face_for_char): If face->fontset is negative, just
7036 return ascii_face.
7037
f5385255
SM
7038 * font.c (font_delete_unmatched): Fix previous change.
7039 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7040
70412008-10-09 Martin Rudalics <rudalics@gmx.at>
7042
7043 * frame.c (Fraise_frame): On text-only terminals select frame in
7044 order to make it visible. (Bug#1061)
7045
70462008-10-08 Chong Yidong <cyd@stupidchicken.com>
7047
7048 * fontset.c (fontset_find_font): Check frame validity.
7049
70502008-10-07 Chong Yidong <cyd@stupidchicken.com>
7051
a9b555d3 7052 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7053 (xg_display_close): Allow Emacs to close all displays (bug#985).
7054
70552008-10-06 Andreas Schwab <schwab@suse.de>
7056
f5385255 7057 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7058
70592008-10-06 Chong Yidong <cyd@stupidchicken.com>
7060
f5385255 7061 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7062
a9b555d3 7063 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7064
7065 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7066 during initialization.
7067
70682008-10-04 Eli Zaretskii <eliz@gnu.org>
7069
7070 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7071 whole thing on MSDOS frames as well as on a TTY.
7072
7073 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7074 well as for TTY.
7075 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7076 well as on a TTY.
7077
7078 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7079 as well as for TTY.
7080
7081 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7082
7083 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7084 MSDOS frames as well.
7085
70862008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7087
7088 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7089 correct arguments.
b71ac3dd 7090 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7091
70922008-10-03 Glenn Morris <rgm@gnu.org>
7093
7094 * emacs.c (USAGE1): Add --daemon.
7095
70962008-10-02 Eli Zaretskii <eliz@gnu.org>
7097
7098 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7099 100, so it's in percents as advertised.
7100
71012008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7102
7103 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7104 (ns_output.current_cursor, ns_output.desired_cursor)
7105 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7106 (FRAME_NEW_CURSOR_COLOR): Remove.
7107
7108 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7109 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7110 enumeration (HOLLOW_BOX_CURSOR, etc.).
7111
7112 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7113 (draw_window_cursor): Simplify code.
f5385255
SM
7114 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7115 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7116 updates manually.
a9b555d3
JB
7117 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7118 Use core Emacs cursor types.
aac0c6e3 7119
b8ff72fa 7120 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7121
71222008-10-02 Martin Rudalics <rudalics@gmx.at>
7123
7124 * process.c (Faccept_process_output): Fix doc-string.
7125
71262008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7127
7128 * gmalloc.c (__sbrk): Also define for uClibc.
7129
7130 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7131 for uClibc.
7132
71332008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7134
7135 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7136 styles.
7137 (nsfont_open): Reenable the cache.
7138
71392008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7140
7141 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7142 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7143
71442008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7145
7146 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7147 a suspended terminal.
7148
71492008-09-30 Michael Albinus <michael.albinus@gmx.de>
7150
7151 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7152
71532008-09-30 Eli Zaretskii <eliz@gnu.org>
7154
7155 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7156
71572008-09-30 Chong Yidong <cyd@stupidchicken.com>
7158
7159 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7160 in a continued line coincides with a line beginning.
7161
71622008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7163
7164 * nsfont.m (nsfont_trait_distance): Fix bug.
7165 (nsfont_list): Return a list rather than a vector (syncs with Handa
7166 changes of 2008-05-14).
7167 (nsfont_open): Improve logging.
7168
71692008-09-29 Andreas Schwab <schwab@suse.de>
7170
7171 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7172
71732008-09-28 Martin Rudalics <rudalics@gmx.at>
7174
7175 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7176 name as char-resolve-modifiers.
7177 Reported by: Markus Triska <markus.triska@gmx.at>
7178
71792008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7180
7181 * dispnew.c (init_display): Return earlier when running as a daemon.
7182
71832008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7184
7185 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7186
71872008-09-27 Eli Zaretskii <eliz@gnu.org>
7188
7189 * composite.c (Fcomposition_get_gstring)
7190 (Fcompose_region_internal, Fcompose_string_internal)
7191 (Ffind_composition_internal): Doc fix.
7192 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7193 (syms_of_composite) <auto-composition-function>: Doc fix.
7194 (syms_of_composite) <composition-function-table>: Doc fix.
7195
71962008-09-25 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * search.c (wordify): New argument for lax word-ends.
7199 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7200
72012008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7202
7203 * lisp.h (is_daemon): Declare.
7204 * dispnew.c (init_display): Do not try to initialize the terminal
7205 when running as a daemon.
7206
72072008-09-22 Chong Yidong <cyd@stupidchicken.com>
7208
7209 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7210 x_display_pixel_height.
7211
72122008-09-22 Martin Rudalics <rudalics@gmx.at>
7213
7214 * undo.c (record_point): Don't call Fundo_boundary for first
7215 change. (Bug#731)
7216
72172008-09-22 Juanma Barranquero <lekktu@gmail.com>
7218
7219 * emacs.c (Fdaemonp): Doc fix.
7220
72212008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7222
7223 * emacs.c (main): Place #ifdef in the proper place.
7224
72252008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7226
7227 * emacs.c (standard_args): Add --daemon.
7228 (main): Disconnect from the terminal when --daemon is passed.
7229 (is_daemon): New variable.
7230 (Fdaemonp): New function.
7231 (syms_of_emacs): Defsubr it.
7232
72332008-09-20 Chong Yidong <cyd@stupidchicken.com>
7234
7235 * xdisp.c (get_next_display_element): Handle string display
7236 correctly when checking for the end of a box run.
7237
72382008-09-20 Glenn Morris <rgm@gnu.org>
7239
7240 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7241 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7242 (Frename_file): Avoid copying to trash if a rename involves
7243 a delete. (Bug#964).
7244
72452008-09-20 Eli Zaretskii <eliz@gnu.org>
7246
7247 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7248 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7249 frames as well as termcap frames.
7250 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7251 get_named_tty.
7252
72532008-09-19 Eli Zaretskii <eliz@gnu.org>
7254
7255 * process.c (procfs_system_process_attributes): Fix cmdline in
7256 case /proc/PID/cmdline is empty.
7257
7258 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7259 x_display_pixel_height.
7260
72612008-09-19 Juanma Barranquero <lekktu@gmail.com>
7262
7263 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7264
7265 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7266 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7267
72682008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7269
7270 * dispextern.h (struct it): Move line_wrap away from the middle of
7271 bitfields. Move voffset in struct iterator_stack_entry after the
7272 bitfields. Move tab_width near after another short.
7273
72742008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7275
7276 * frame.h (struct frame): Move alpha from the middle of bitfields.
7277
7278 * window.h (struct window): Move frozen_window_start_p after the
7279 rest of the bitfields to reduce padding.
7280
72812008-09-18 Chong Yidong <cyd@stupidchicken.com>
7282
7283 * xterm.h (x_display_info): Remove `height' and `width' members.
7284
7285 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7286
7287 * w32term.h (w32_display_info): Remove `height', `width',
7288 `height_in', and `width_in' members.
7289
b8ff72fa
SM
7290 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7291 New functions.
aac0c6e3
MR
7292 (x_calc_absolute_position): Use them.
7293 (x_term_init): Omit removed `height' and `width' members.
7294
b8ff72fa
SM
7295 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7296 New functions.
aac0c6e3
MR
7297 (w32_read_socket, x_calc_absolute_position): Use them.
7298 (w32_initialize_display_info, w32_term_init): Omit removed members
7299 of w32_display_info.
7300
b8ff72fa
SM
7301 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7302 New functions.
7303 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7304
b8ff72fa
SM
7305 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7306 New functions.
aac0c6e3
MR
7307 (x_calc_absolute_position): Use them.
7308 (x_term_init): Omit removed `height' and `width' members.
7309
7310 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7311 (compute_tip_xy):
7312 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7313 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7314 x_display_pixel_width.
7315
73162008-09-18 Kenichi Handa <handa@m17n.org>
7317
7318 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7319 (composition_compute_stop_pos): Fix handling of static composition.
7320 (Fcomposition_get_gstring): Check FROM and TO at first.
7321
73222008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7323
46e722a9 7324 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7325 mixup (YAILOM).
7326
73272008-09-17 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * indent.c (Fvertical_motion): Use position reported by iterator
7330 instead of PT for determining screen motion (bug#943).
7331
73322008-09-17 Romain Francoise <romain@orebokech.com>
7333
7334 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7335
73362008-09-17 Kenichi Handa <handa@m17n.org>
7337
7338 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7339
7340 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7341 if necessary.
7342
73432008-09-16 Kenichi Handa <handa@m17n.org>
7344
7345 * coding.c (make_conversion_work_buffer): Avoid calling
7346 Fget_buffer_create if it is not necessary.
7347
73482008-09-15 Martin Rudalics <rudalics@gmx.at>
7349
7350 * window.c (Fselect_window): Don't update window_select_count and
7351 use_time when norecord is not nil.
7352
73532008-09-14 Kenichi Handa <handa@m17n.org>
7354
7355 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7356 specpdl_ptr.
7357
73582008-09-12 Kenichi Handa <handa@m17n.org>
7359
7360 * indent.c (scan_for_column): Don't handle automatic composition
7361 if the current buffer is not associated with a window.
7362
7363 * composite.c (composition_reseat_it): If the current buffer is
7364 not associated with a window, ignore the automatic composition.
7365 (find_automatic_composition): Likewise.
7366
73672008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7368
7369 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7370 (Fgpm_mouse_stop): Use it.
7371 * termhooks.h (close_gpm): Declare.
7372 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7373 connection if Gpm_GetEvent fails.
7374
7375 * window.c (set_window_buffer): Always preserve current-buffer.
7376
73772008-09-12 Glenn Morris <rgm@gnu.org>
7378
7379 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7380
73812008-09-11 Glenn Morris <rgm@gnu.org>
7382
7383 * charset.c (charset-map-path): Doc fix.
7384
73852008-09-10 Kenichi Handa <handa@m17n.org>
7386
7387 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7388
7389 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7390 compose a grapheme cluster with the preceding base glyph.
7391
7392 * composite.c (composition_compute_stop_pos): Fix previous change.
7393 Reset cmp_it->id to -1 at first.
7394
73952008-09-10 Glenn Morris <rgm@gnu.org>
7396
7397 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7398
73992008-09-09 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * keyboard.c (read_key_sequence): Reapply translation maps when
7402 switching keyboards.
7403
74042008-09-09 Kenichi Handa <handa@m17n.org>
7405
7406 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7407 characters.
7408
7409 * composite.c (FORWARD_CHAR): Fix calculation
7410 of (POSITION).pos_byte.
7411 (composition_compute_stop_pos): Limit the search of composition to
7412 at most 500 characters ahead. If we reach the limit or find a
7413 newline, set cmp_it->ch to -2 and return 0.
7414 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7415
74162008-09-08 Kenichi Handa <handa@m17n.org>
7417
7418 * indent.c (Fvertical_motion): Be sure to set
7419 it_overshoot_expected if it.cmp_it.id is non-negative.
7420
74212008-09-07 Andreas Schwab <schwab@suse.de>
7422
7423 * callproc.c (Fcall_process): Don't hold references to string data
7424 across garbage collection. Move initialisation of new_argv down
7425 to avoid compiler bug.
7426
74272008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7428
7429 * process.c (Fsystem_process_attributes): Doc fix.
7430
74312008-09-07 Chong Yidong <cyd@stupidchicken.com>
7432
7433 * callproc.c (Fcall_process): Canonicalize current directory name.
7434
7435 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7436 iterator advances to the next line if the current line ends in a
7437 continued tab.
7438
74392008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7440
7441 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7442 member to point to cmp_from.
7443
7444 * xdisp.c: Doc fix for references to gidx data member.
7445
74462008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7447
7448 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7449
74502008-09-07 Kenichi Handa <handa@m17n.org>
7451
7452 * composite.c (FORWARD_CHAR): Check STOP after
7453 incrementing (POSITION).pos.
7454
74552008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7456
7457 * process.c (Fsystem_process_attributes): Doc fix.
7458
74592008-09-06 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * keyboard.c (Ftop_level): Doc fix.
7462
74632008-09-06 Eli Zaretskii <eliz@gnu.org>
7464
7465 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7466 minibuffer, don't let lower part of menu invade the echo area.
7467
7468 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7469 "char *q" to access menu text and advance through it. Revert the
7470 change that displayed ">" instead of ASCII character 0x10.
7471
74722008-09-05 Eli Zaretskii <eliz@gnu.org>
7473
7474 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7475 toggle boxes and radio buttons on MS-DOS as well.
7476
74772008-09-05 Kenichi Handa <handa@m17n.org>
7478
7479 * composite.c (autocmp_chars): Check lookback count.
7480 (composition_compute_stop_pos): Set cmp_it->lookback.
7481 (composition_reseat_it): Check lookback count.
7482 (struct position_record): New struct.
7483 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7484 (find_automatic_composition): New function.
7485 (composition_adjust_point): Use find_automatic_composition.
7486
7487 * dispextern.h (struct composition_it): New member lookback.
7488
74892008-09-02 Chong Yidong <cyd@stupidchicken.com>
7490
7491 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7492 if moving by a single line.
7493
74942008-09-02 Andreas Schwab <schwab@suse.de>
7495
7496 * xterm.c (x_delete_display): Fix merge error.
7497
7498 * fileio.c (Fexpand_file_name): Remove unused variables.
7499
75002008-09-02 Eli Zaretskii <eliz@gnu.org>
7501
7502 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7503 storage on all platforms, not just on DOS_NT.
7504
75052008-09-02 Jason Rumney <jasonr@gnu.org>
7506
b8ff72fa
SM
7507 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7508 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7509
75102008-09-01 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * xfaces.c (Finternal_set_alternative_font_family_alist)
7513 (Finternal_set_alternative_font_registry_alist): Properly copy
7514 entire alist structure.
7515
75162008-09-01 Kenichi Handa <handa@m17n.org>
7517
d66c0241 7518 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7519 representative chars of the script is a vector.
d66c0241
JB
7520 (ftfont_list): Handle the case where the representative chars of
7521 the script is a vector.
aac0c6e3
MR
7522
7523 * character.c (syms_of_character): Docstring of
7524 script-representative-chars fixed.
7525
75262008-08-31 Eli Zaretskii <eliz@gnu.org>
7527
7528 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7529 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7530 the menu. Allocate larger buffer for `text', to account for
7531 possible ^C characters.
7532
75332008-08-31 Martin Rudalics <rudalics@gmx.at>
7534
7535 * xdisp.c (prepare_menu_bars): Don't call
7536 Vwindow_size_change_functions with arg Qt.
7537
75382008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7539
7540 * font.h (font_range):
7541 * fileio.c (report_file_error):
46e722a9
SM
7542 * composite.c (composition_update_it): Yet another int/Lisp_Object
7543 mixup (YAILOM).
aac0c6e3
MR
7544
75452008-08-30 Glenn Morris <rgm@gnu.org>
7546
7547 * data.c (Fmake_variable_frame_local): Doc fix.
7548
7549 * frame.c (Fmodify_frame_parameters): Doc fix.
7550
75512008-08-30 Eli Zaretskii <eliz@gnu.org>
7552
7553 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7554 needed by GetTokenInformation.
7555 (w32_system_process_attributes): Check return values of all system
7556 APIs.
7557
7558 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7559 only when the state changes.
7560 (IT_update_begin, IT_update_end): Add termscript trace.
7561
7562 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7563 clipboard is unavailable. Set dst to NULL if it doesn't point to
7564 malloc'ed data.
7565 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7566 passing random values to xfree.
7567
7568 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7569 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7570
75712008-08-29 Jason Rumney <jasonr@gnu.org>
7572
7573 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7574
75752008-08-29 Eli Zaretskii <eliz@gnu.org>
7576
7577 * composite.c (fill_gstring_body): Avoid compiler warnings.
7578
7579 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7580 LGLYPH_SET_CODE to avoid compiler warnings.
7581
2ae37cf0 7582 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7583
7584 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7585
7586 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7587 LGLYPH_SET_CODE.
7588
75892008-08-29 Kenichi Handa <handa@m17n.org>
7590
7591 * fileio.c (report_file_error): Don't downcase the first character
7592 of errstring if it is still unibyte.
7593
75942008-08-29 Kenichi Handa <handa@m17n.org>
7595
7596 These changes are to re-implement the automatic composition so
7597 that it doesn't use text properties.
7598
7599 * Makefile.in (ftfont.o): Depend on composite.h.
7600 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7601
7602 * character.h (Vunicode_category_table): Extern it.
7603
7604 * character.c (Vunicode_category_table): New variable.
7605 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7606
7607 * chartab.c (optimize_sub_char_table): Perform more greedy
7608 optimization.
7609
b8ff72fa
SM
7610 * composite.h (enum composition_method):
7611 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7612 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7613 (Vcomposition_function_table): Extern it.
7614 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7615 (composition_gstring_put_cache, composition_gstring_from_id)
7616 (composition_gstring_p, composition_gstring_width)
7617 (composition_compute_stop_pos, composition_reseat_it)
7618 (composition_update_it, composition_adjust_point): Extern them.
7619 (Fcomposition_get_gstring): EXFUN it.
7620
d66c0241 7621 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7622 (Vcomposition_function_table)
7623 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7624 (gstring_hash_table, gstring_work, gstring_work_headers):
7625 New variables.
aac0c6e3
MR
7626 (gstring_lookup_cache, composition_gstring_put_cache)
7627 (composition_gstring_from_id, composition_gstring_p)
7628 (composition_gstring_width, fill_gstring_header)
7629 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7630 (composition_reseat_it, composition_update_it)
b8ff72fa 7631 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7632 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7633 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7634 Defsubr compostion_get_gstring.
7635
7636 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7637 cmp_id.
7638 (struct glyph_string): Delete the member gidx. New members
7639 cmp_id, cmp_from, and cmp_to.
7640 (enum it_method): Delete GET_FROM_COMPOSITION.
7641 (struct composition_it): New struct.
7642 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7643 Delete c, len, cmp_id, cmp_len in u.comp.
7644
7645 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7646 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7647 (enum lglyph_indices): Likewise.
b8ff72fa 7648 (font_range): Adjust extern.
aac0c6e3
MR
7649 (font_fill_lglyph_metrics): Extern it.
7650
7651 * font.c (QCf): New variable.
7652 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7653 (font_prepare_composition): Delete this function.
7654 (font_range): Type and arguments changed.
7655 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7656 (font_fill_lglyph_metrics): New function.
b8ff72fa 7657 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7658 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7659 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7660 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7661
7662 * fontset.h (font_for_char): Extern it.
7663
7664 * fontset.c (font_for_char): New function.
7665
7666 * ftfont.c: Include composite.h.
7667 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7668 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7669
7670 * indent.c: Include composite.h and dispextern.h.
7671 (check_composition): Delete this function.
7672 (scan_for_column): Handle composition by
7673 composition_compute_stop_pos, composition_reseat_it, and
7674 composition_update_it.
7675 (compute_motion): Likewise.
7676 (Fvertical_motion): Fix checking of composition.
7677
7678 * keyboard.c (adjust_point_for_property): Check composition by
7679 composition_adjust_point.
7680
b8ff72fa 7681 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7682 struct glyph_string.
7683
b8ff72fa
SM
7684 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7685 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7686 struct glyph.
7687 (produce_composite_glyph): Likewise.
7688
b8ff72fa
SM
7689 * w32term.c (x_draw_composite_glyph_string_foreground):
7690 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7691 (x_draw_glyph_string): Likewise.
7692
7693 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7694 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7695
7696 * xdisp.c: Include font.h.
7697 (it_props): Delete the entry for Qauto_composed.
7698 (init_iterator): Initialize it->cmp_it.id to -1.
7699 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7700 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7701 (handle_auto_composed_prop): Delete it.
7702 (handle_composition_prop): Handle only static composition.
7703 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7704 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7705 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7706 (pop_it): Likewise.
7707 (get_next_element): Delete next_element_from_composition.
7708 (CHAR_COMPOSED_P): New macro.
7709 (get_next_display_element): For automatic composition, get a face
7710 from the font in the glyph-string.
7711 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7712 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7713 (next_element_from_string): Check if the character at the current
7714 position is composed by CHAR_COMPOSED_P.
7715 (next_element_from_buffer): Likewise.
d66c0241
JB
7716 (next_element_from_composition): Adjust for the change of struct it.
7717 Update it->cmp_it.
b8ff72fa
SM
7718 (dump_glyph): Adjust for the change of struct glyph.
7719 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7720 it and struct glyph. Don't handle automatic composition here.
7721 (fill_gstring_glyph_string): New function.
7722 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7723 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7724 (BUILD_GSTRING_GLYPH_STRING): New macro.
7725 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7726 automatic composition.
b8ff72fa 7727 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7728 struct glyph.
b8ff72fa 7729 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7730
b8ff72fa 7731 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7732 the change of struct glyph_string.
7733 (x_draw_glyph_string): Likewise.
7734
77352008-08-29 Glenn Morris <rgm@gnu.org>
7736
7737 * buffer.c (word-wrap): Doc fix.
7738 * xdisp.c (truncate-partial-width-windows): Doc fix.
7739 Increase default to 50.
7740
77412008-08-29 Chong Yidong <cyd@stupidchicken.com>
7742
7743 * xdisp.c (update_tool_bar_unwind): New function.
7744 (update_tool_bar): Temporarily set selected frame before building
7745 tool-bar items.
7746
77472008-08-28 Michael Albinus <michael.albinus@gmx.de>
7748
7749 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7750 snprintf, respectively.
7751 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7752
77532008-08-28 Chong Yidong <cyd@stupidchicken.com>
7754
7755 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7756 LDFLAGS to GNUstep CC invocation.
7757
77582008-08-27 Chong Yidong <cyd@stupidchicken.com>
7759
7760 * indent.c (Fvertical_motion): Revert last change. Handle the
7761 general case where we are moving forward, and PT spans multiple
7762 screen lines.
7763
7764 * eval.c (find_handler_clause): Temporarily increase
7765 max-lisp-eval-depth while printing the backtrace buffer, to
7766 guarantee that help-mode code can run.
7767
77682008-08-27 Eli Zaretskii <eliz@gnu.org>
7769
7770 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7771 colors under -rv.
7772 (IT_set_frame_parameters): Don't swap foreground and background
7773 colors if `(reverse . t)' is present in the frame properties.
7774 (internal_terminal_init): Call init_frame_faces only for the
7775 initial frame.
7776
77772008-08-27 Andreas Schwab <schwab@suse.de>
7778
7779 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7780
77812008-08-27 Andreas Schwab <schwab@suse.de>
7782
7783 * search.c (search_buffer): Set char_base to zero only at the end.
7784
77852008-08-27 Kenichi Handa <handa@m17n.org>
7786
b8ff72fa 7787 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7788
77892008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7790
7791 * xterm.c (x_term_init): Temporarily hide the partially
7792 initialized terminal while calling vendor-specific-keysyms.
7793
77942008-08-26 Eli Zaretskii <eliz@gnu.org>
7795
7796 * msdos.c (internal_terminal_init): Most initializations done only
7797 once, especially initial_screen_colors[] and termscript open.
7798
77992008-08-26 Chong Yidong <cyd@stupidchicken.com>
7800
7801 * eval.c (Fcondition_case): Doc fix.
7802
7803 * widgetprv.h (EmacsFramePart): Change font member to the new font
7804 struct.
7805
7806 * widget.c: Include character.h and font.h for XSETFONT.
7807 (setup_frame_gcs): Compute X font id from font struct, just once.
7808
78092008-08-26 Eli Zaretskii <eliz@gnu.org>
7810
7811 * term.c (get_named_tty): Fix last change.
7812
78132008-08-26 Chong Yidong <cyd@stupidchicken.com>
7814
7815 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7816 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7817
78182008-08-25 Eli Zaretskii <eliz@gnu.org>
7819
7820 * frame.c (do_switch_frame): Mark previously displayed frame as
7821 obscured for FRAME_MSDOS_P frames as well.
7822
78232008-08-24 Eli Zaretskii <eliz@gnu.org>
7824
7825 * frame.c (make_terminal_frame): Initialize f->terminal,
7826 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7827 Set the top frame to newly created frame.
7828 (Fmake_terminal_frame): Reuse the_only_display_info.
7829
7830 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7831 estimating available memory.
7832
b97439ce 78332008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7834
7835 * nsterm.m (ns_draw_window_cursor): Don't call
7836 NSDisableScreenUpdates and NSEnableScreenUpdates on
7837 non-NS_IMPL_COCOA systems.
7838
78392008-08-23 Andreas Schwab <schwab@suse.de>
7840
7841 * process.c (procfs_system_process_attributes): Fix use of
7842 uninitialized variables.
7843
78442008-08-23 Eli Zaretskii <eliz@gnu.org>
7845
7846 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7847
7848 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7849 calling tty-set-up-initial-frame-faces.
7850
b8ff72fa
SM
7851 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7852 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7853
7854 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7855 addition to output_termcap.
7856
7857 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7858
7859 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7860 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7861 highlight.
7862
7863 * process.c [!subprocesses]: Define QCname.
7864 (syms_of_process): Intern and staticpro it.
7865
7866 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7867 Adjust for changes in encoding/decoding routines.
7868 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7869 encode_coding and decode_coding.
7870
b8ff72fa 7871 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7872
7873 * dosfns.c: Include frame.h before termhooks.h.
7874 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7875 variable termscript.
7876
7877 * s/msdos.h (USER_FULL_NAME): Define.
7878 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7879
7880 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7881 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7882 pw->pw_gecos.
7883
7884 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7885 SELECTED_FRAME as additional (1st) argument.
7886 (tty_read_avail_input): Handle output_msdos_raw in
7887 addition to output_termcap.
7888
7889 * msdos.c: Include frame.h before termhooks.h.
7890 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7891 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7892 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7893 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7894 (IT_set_terminal_modes, IT_reset_terminal_modes)
7895 (IT_set_frame_parameters): Use tty->termscript instead of a global
7896 variable termscript.
7897 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7898 global variable terminal_coding. Don't refer to
7899 Vnonascii_translation_table.
7900 (internal_terminal_init): Set Vwindow_system in current_kboard.
7901 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7902 Announce date and time of session start, if termscript is open.
7903 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7904 term.c:init_tty). Open termscript only of not already open.
7905 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7906 here instead of dos_ttraw. Don't initialize display if this is an
7907 initial tty. Don't set FRAME_FONT.
7908 (Vwindow_system_version): Bump to 23.
7909 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7910 is available, set up mouse_position_hook.
7911 (dos_ttraw, IT_set_terminal_modes): If called with initial
7912 terminal, do nothing.
7913 (IT_set_frame_parameters): Handle the Qtty_type frame
7914 parameter by calling internal_terminal_init.
7915 (dos_set_window_size, show_mouse_face)
7916 (clear_mouse_face, IT_note_mode_line_highlight)
7917 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7918 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7919 (initialize_msdos_display): New function.
7920 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7921 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7922 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7923 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7924 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7925 (request_sigio, unrequest_sigio): Don't define, now defined on
7926 sysdep.c.
7927 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7928
7929 * term.c [MSDOS]: Include msdos.h.
7930 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7931 conditional to DOS_NT. Allow only one call to this function in a
7932 session. Don't allocate a new struct tty_display_info; instead,
7933 reuse the_only_display_info. Call get_tty_size to get screen
7934 dimensions. Call init_baud_rate to set bad_rate.
7935 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7936 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7937 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7938 (get_tty_terminal, get_named_tty, Ftty_type)
7939 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7940 output_termcap.
b8ff72fa
SM
7941 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7942 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7943 only when subprocesses are supported.
aac0c6e3
MR
7944
7945 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7946 f->output_data.x.
7947 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7948 terminal devices.
7949
5582fbc7 7950 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7951 x_output.
7952 (FRAME_FONT): Use output_data.tty.
7953 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7954 (struct x_display_info): Rename from display_info. Update all users in
7955 msdos.c.
aac0c6e3 7956 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7957 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7958 (dos_ttraw): Update prototype.
7959
7960 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7961 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7962
79632008-08-23 Jason Rumney <jasonr@gnu.org>
7964
7965 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7966 (fn_TIFFSetDirectory): New library function used.
7967 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7968 (tiff_load): Use :index to select among multiple images. Set count
7969 property when multiple images exist.
7970 (gif_format): Use :index, not :image.
7971
79722008-08-23 Chong Yidong <cyd@stupidchicken.com>
7973
7974 * xdisp.c (try_scrolling): Check INT_MAX instead of
7975 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7976 to obtain INT_MAX.
7977
79782008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7979
7980 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7981
79822008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7983
7984 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7985 GNUstep library location.
7986
79872008-08-21 Chong Yidong <cyd@stupidchicken.com>
7988
7989 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7990 before using it.
7991
7992 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7993
79942008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7995
7996 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7997 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7998 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7999 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8000 (EmacsApp-cursor_blink_handler): Remove declaration.
8001 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8002 match 01 Feb 2008 changes in xterm.c.
8003 (ns_read_socket): Add cast to avoid warning.
8004 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8005 GNUstep.
8006
80072008-08-20 Chong Yidong <cyd@stupidchicken.com>
8008
8009 * xselect.c (x_get_foreign_selection): Return nil if desired
8010 selection could not be obtained, instead of signalling an error.
8011
80122008-08-20 David Reitter <david.reitter@gmail.com>
8013
8014 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8015 * nsterm.m: Remove ns-specific code for cursor blinking.
8016 (ns_draw_window_cursor): Clear cursor properly rather than
8017 redrawing the area. Respect width of bar cursors.
8018 These changes enable the use of generic blink-cursor-mode and
8019 generic cursor types in NS and support smooth cursor movements (do
8020 not blink off after command).
8021 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8022 Nextstep, too.
8023
80242008-08-19 Kenichi Handa <handa@m17n.org>
8025
8026 * font.c (Vfont_log_deferred): New variable.
8027 (font_add_log): Check Vfont_log_deferred.
8028 (font_deferred_log): New function.
8029
8030 * font.h (font_deferred_log): Extern it.
8031
8032 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8033 for sorting.
8034 (face_for_char): Use deferred log.
8035
80362008-08-18 Kenichi Handa <handa@m17n.org>
8037
8038 * fontset.c (face_for_char): Add font log.
8039
8040 * font.c (font_add_log): Add the font properties :script, :lang,
8041 and :otf in the log.
8042
80432008-08-17 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * xdisp.c: Remove dead code.
8046 (handle_invisible_prop, next_overlay_string): Defer call to
8047 setup_for_ellipsis.
8048 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8049
80502008-08-15 Chong Yidong <cyd@stupidchicken.com>
8051
8052 * xfaces.c (lookup_derived_face): Properly handle possible zero
8053 return value of get_lface_attributes.
8054 (merge_faces): Don't tell lookup_derived_face to signal an error
8055 if face is not found.
8056
8057 * dired.c (Fdirectory_files): Doc fix.
8058
8059 * process.c (make_process): Initialize kill_without_query struct
8060 member.
8061
80622008-08-15 Eli Zaretskii <eliz@gnu.org>
8063
8064 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8065 Alternative calculation of totphys for Visual Studio 6.
8066
8067 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8068
8069 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8070 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8071 All users changed.
8072 (stat): Only root directory passed to GetDriveType. Allow RAM
8073 disk as well as local fixed disk when w32-get-true-file-attributes
8074 is set to `local'.
8075 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8076 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8077 (w32_cached_id, w32_add_to_cache): New functions.
8078 (get_name_and_id): Look account names in the cache before calling
8079 lookup_account_sid.
8080 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8081 New initialization flags.
8082 (globals_of_w32): Initialize them to zero.
8083 (w32_system_process_attributes): Use w32_cached_id and
8084 w32_add_to_cache.
8085
80862008-08-14 Lawrence Mitchell <wence@gmx.li>
8087
8088 * lread.c (Fread_char, Fread_char_exclusive): If no character
8089 event is read before timeout is reached, return nil, rather than
8090 converting to a number.
8091
80922008-08-14 Chong Yidong <cyd@stupidchicken.com>
8093
8094 * fns.c (use_dialog_box): Doc fix.
8095
8096 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8097 on OS X.
8098
80992008-08-13 Chong Yidong <cyd@stupidchicken.com>
8100
8101 * frame.c (Qns_parse_geometry): New var.
8102 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8103
81042008-08-11 Chong Yidong <cyd@stupidchicken.com>
8105
8106 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8107 space character in calculating tabs.
8108
81092008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8110
8111 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8112
81132008-08-10 Glenn Morris <rgm@gnu.org>
8114
8115 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8116 silence gcc "limited range of data type" warnings in some
8117 make_fixnum_or_float calls.
8118
81192008-08-09 Eli Zaretskii <eliz@gnu.org>
8120
8121 * w32.c (w32_system_process_attributes): If the process does not
8122 exist, return nil.
8123
8124 * w32.c: Include thelp32.h, psapi.h and coding.h.
8125 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8126 declarations.
8127 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8128 (Process32Next_Proc): New typedefs.
8129 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8130 (g_b_init_process32_next, g_b_init_open_thread_token)
8131 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8132 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8133 (g_b_init_get_process_working_set_size)
8134 (g_b_init_global_memory_status_ex): New static variables.
8135 (globals_of_w32): Initialize them.
8136 (create_toolhelp32_snapshot, process32_first, process32_next)
8137 (open_thread_token, impersonate_self, revert_to_self)
8138 (get_process_memory_info, get_process_working_set_size)
8139 (global_memory_status, global_memory_status_ex): New wrapper
8140 functions.
8141 (w32_list_system_processes, w32_system_process_attributes)
8142 (enable_privilege, restore_privilege, ltime, process_times):
8143 New functions.
8144 (convert_time_raw): New function.
8145 (convert_time): Remove conversion of FILETIME into time in 100
8146 nsec units, call convert_time_raw instead.
8147
8148 * process.h (w32_list_system_processes, w32_system_process_attributes):
8149 Add prototypes.
8150 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8151 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8152 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8153 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8154
8155 * process.c (Fsystem_process_attributes): Doc fix.
8156
81572008-08-08 Chong Yidong <cyd@stupidchicken.com>
8158
8159 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8160 a continued multi-char glyph; if so, advance to the actual glyph.
8161
81622008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8163
8164 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8165
8166 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8167 (.m.o): Use it.
8168 * config.in: Regenerate.
8169
81702008-08-07 Chong Yidong <cyd@stupidchicken.com>
8171
8172 * xdisp.c (redisplay_window): Revert last change.
8173 (try_window): Check bottom scroll margin too.
8174
81752008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8176
8177 * config.in: Regenerate.
8178
8179 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8180 -list-load-path-shadows'.
8181 (nsgui.h): Reduce number of things depending on it.
8182
81832008-08-06 Chong Yidong <cyd@stupidchicken.com>
8184
8185 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8186 instead of window-end which does the wrong thing at eob.
8187 (try_cursor_movement): Minor optimization.
8188 (redisplay_window): If scroll margin is defined, don't assume
8189 window doesn't need scrolling.
8190
81912008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8192
8193 * config.in: Regenerate.
8194
8195 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8196 (mostlyclean): Don't delete *.d under NS.
8197
8198 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8199
82002008-08-06 Kenichi Handa <handa@m17n.org>
8201
8202 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8203
82042008-08-06 Andreas Schwab <schwab@suse.de>
8205
8206 * config.in: Regenerate.
8207
82082008-08-05 Chong Yidong <cyd@stupidchicken.com>
8209
8210 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8211 forcing a window start.
8212
8213 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8214 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8215
82162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8217
8218 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8219 argument.
8220
82212008-08-05 Juanma Barranquero <lekktu@gmail.com>
8222
8223 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8224 <scroll-down-aggressively, before-change-functions>:
8225 <after-change-functions>: Reflow docstrings.
8226
82272008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8228 Ken Raeburn <raeburn@gnu.org>
8229
8230 Dock menu customization, based on a patch by Ken Raeburn, plus some
8231 other fixes.
8232 * nsmenu.m (dockMenu): New variable.
8233 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8234
8235 * nsterm.h (dockMenu): Declare.
8236
8237 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8238 (ns_term_init): Initialize dockMenu.
8239 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8240 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8241 left.
8242
8243 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8244
82452008-08-04 Chong Yidong <cyd@stupidchicken.com>
8246
8247 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8248
8249 * config.in: Regenerate.
8250
82512008-08-04 Seiji Zenitani <zenitani@mac.com>
8252
8253 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8254
82552008-08-04 Chong Yidong <cyd@stupidchicken.com>
8256
8257 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8258
82592008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8260
8261 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8262
8263 * keyboard.h: Comment an #endif.
8264
8265 * lisp.h (have_menus_p): Adjust comment.
8266
8267 * menu.c (find_and_return_menu_selection): Fix comparison with
8268 client_data.
8269
8270 * nsmenu.m (popup_activated_flag): New variable.
8271 (popup_activated): New function.
8272 (menu-or-popup-active-p): New exported lisp definition.
8273 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8274 when popup done.
8275 (ns_popup_dialog): Set popup_activated_flag.
8276
8277 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8278 version for GNUstep (handled by conditional typedef in nsterm.m).
8279 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8280 in rgb.txt).
8281
8282 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8283
8284 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8285
8286 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8287
8288 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8289 shortcircuit if popup_activated like GTK and X toolkit.
8290
8291 * m/inter386.h: Change DARWIN to DARWIN_OS.
8292
8293 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8294 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8295 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8296 comment on NO_SOCK_SIGIO.
8297
82982008-08-03 Chong Yidong <cyd@stupidchicken.com>
8299
8300 * nsterm.m (windowDidResize): Remove stopModal call.
8301
83022008-08-03 Andreas Schwab <schwab@suse.de>
8303
8304 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8305 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8306
83072008-08-02 Chong Yidong <cyd@stupidchicken.com>
8308
8309 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8310 Don't use uninitialized pointer variable when using getrlimit.
8311
83122008-08-02 Jason Rumney <jasonr@gnu.org>
8313
8314 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8315
83162008-08-02 Eli Zaretskii <eliz@gnu.org>
8317
8318 * alloc.c (NSTATICS): Bump to 0x640.
8319
8320 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8321
8322 * lisp.h: Add prototype for directory_files_internal.
8323
8324 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8325 New functions.
8326 (syms_of_process): Defsubr them. Add initializations for various
8327 Q* symbols used in procfs_system_process_attributes.
8328 (procfs_list_system_processes, procfs_system_process_attributes)
8329 [HAVE_PROCFS]: New functions.
8330 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8331 (procfs_get_total_memory): New functions.
8332
83332008-08-01 Juanma Barranquero <lekktu@gmail.com>
8334
8335 * xfaces.c (Fx_load_color_file): Fix previous change;
8336 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8337
83382008-08-01 Michael Albinus <michael.albinus@gmx.de>
8339
8340 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8341
83422008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8343
8344 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8345
83462008-08-01 Chong Yidong <cyd@stupidchicken.com>
8347
8348 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8349
8350 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8351 define NSApplicationDelegateReplySuccess.
8352 (EmacsView -converstationIdentifier): Use long instead of
8353 NSInteger for GNUstep, since it doesn't have NSInteger.
8354
8355 * xmenu.c: Revert last change.
8356
8357 * keyboard.h: Fix last change.
8358
83592008-08-01 Juanma Barranquero <lekktu@gmail.com>
8360
8361 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8362 on Windows.
8363
83642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8365
8366 Warning clearing and clean-up in NS port.
8367 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8368 Add prototypes.
8369 * nsgui.h (FACE_DEFAULT): Remove, unused.
8370 (XGCValues): Change colors to unsigned long.
8371 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8372 nsterm.m.
8373 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8374 (ns_list_fonts): Remove, unused.
8375 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8376 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8377 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8378 (nsfont_draw): Compare face colors to 0, not nil.
8379 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8380 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8381 (-addSubmenuWithTitle:): Use NSMenuItem class.
8382 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8383 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8384 (ns_clip_to_row): Make gc arg a BOOL.
8385 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8386 ns_clip_to_row() call.
8387 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8388 used). Cast FRAME_FONT assignments.
8389 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8390 (ns_string_to_lispmod): Change arg to const char.
8391 (ns_term_init): Use NSMenuItem class.
8392 (EmacsApp -openFile:): Move to different section of file.
8393 (EmacsApp -application:openFiles:): Don't return a value, call
8394 -replyToOpenOrPrint:.
8395 (EmacsView -keyDown:): Fix up cast.
8396 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8397 (EmacsView -menuDown:): Cast tag in call to
8398 find_and_call_menu_selection().
8399 (ns_list_fonts): Remove, unused.
8400 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8401 (ns_fontname_to_xlfd): Make static.
8402 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8403 Remove prototypes (now in keyboard.h).
8404 (next_menubar_widget_id): Remove, unused.
8405 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8406 Remove prototypes (now in keyboard.h).
8407 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8408
84092008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8410
8411 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8412 (floatfns.o): Depend on syssignal.h.
8413 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8414
8415 * systty.h: Fix previous change that removed BSD_TERMIOS.
8416 Add comments to #ifdefs.
8417
84182008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8419
8420 * w32fns.c (w32-load-color-file): Remove.
8421 (x-open-connection): Use renamed Fx_load_color_file.
8422 * xfaces.c (x-load-color-file): Add.
8423 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8424 Emacs.clr.
8425 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8426
84272008-07-31 Michael Albinus <michael.albinus@gmx.de>
8428
8429 * dbusbind.c (Fdbus_call_method_asynchronously)
8430 (Fdbus_method_error_internal): New defuns.
8431 (xd_read_message): Handle also reply messages.
8432 (Vdbus_registered_functions_table): Extend docstring.
8433
84342008-07-31 Juanma Barranquero <lekktu@gmail.com>
8435
8436 * keyboard.c (gobble_input): Fix previous change.
8437
84382008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8439
8440 * bitmaps/README:
8441 * xfns.c:
8442 * termcap.c:
8443 * term.c:
8444 * syswait.h:
8445 * systty.h:
8446 * systime.h:
8447 * syssignal.h:
8448 * sysdep.c:
8449 * process.h:
8450 * process.c:
8451 * print.c:
8452 * ndir.h:
8453 * lread.c:
8454 * keyboard.c:
8455 * getpagesize.h:
8456 * floatfns.c:
8457 * fileio.c:
8458 * emacs.c:
8459 * doc.c:
8460 * dispnew.c:
8461 * dired.c:
8462 * data.c:
8463 * callproc.c:
8464 * buffer.c:
8465 * README:
8466 * Makefile.in:
8467 * s/template.h:
8468 * s/msdos.h:
8469 * m/vax.h: Remove VMS support.
8470 * s/vms.h:
8471 * vlimit.h:
8472 * uaf.h:
8473 * temacs.opt:
8474 * param.h:
8475 * ioctl.h: Remove file.
8476
84772008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8478
8479 * s/ms-w32.h (MULTI_KBOARD): Remove.
8480 * xterm.c:
8481 * xselect.c:
8482 * xfns.c:
8483 * window.c:
8484 * w32term.c:
8485 * w32fns.c:
8486 * terminal.c:
8487 * termhooks.h:
8488 * term.c:
8489 * sysdep.c:
8490 * keyboard.h:
8491 * keyboard.c:
8492 * frame.h:
8493 * frame.c:
8494 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8495 * config.in: Regenerate.
8496
84972008-07-30 Jason Rumney <jasonr@gnu.org>
8498
8499 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8500
8501 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8502 (w32font_open_internal): Get unicode version of textmetrics.
8503 Don't enable or disable glyph indices here.
8504 (w32font_open): Disable use of glyph indices.
8505
8506 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8507
85082008-07-30 Chong Yidong <cyd@stupidchicken.com>
8509
8510 * minibuf.c (Vread_buffer_function): Doc fix.
8511
85122008-07-30 John Paul Wallington <jpw@pobox.com>
8513
8514 * minibuf.c (read_buffer_completion_ignore_case): New var.
8515 (Fread_buffer): Use it.
8516
85172008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8518
8519 * systty.h (sensemode): Remove empty #if. Remove reference to
8520 BSD_TERMIOS, unused.
8521
8522 * sysdep.c: Remove reference to DGUX.
8523 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8524
8525 * config.in: Regenerate.
8526
85272008-07-30 Jason Rumney <jasonr@gnu.org>
8528
8529 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8530
85312008-07-29 Jason Rumney <jasonr@gnu.org>
8532
8533 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8534 is populated.
8535 (uniscribe_encode_char): Always use uniscribe.
8536 Avoid using context if cache is populated.
8537
85382008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8539
8540 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8541 open menu.
8542
8543 * gtkutil.c (menu_nav_ended): Remove.
8544 (create_menus): Remove signal connect for menu_nav_ended.
8545
85462008-07-28 Chong Yidong <cyd@stupidchicken.com>
8547
8548 * xdisp.c (redisplay_window): Check return value of
8549 compute_window_start_on_continuation_line before forcing a window
8550 start.
8551
85522008-07-28 Jason Rumney <jasonr@gnu.org>
8553
8554 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8555
8556 * w32term.c (w32_enable_unicode_output, cleartype_active):
8557 Remove obsolete display options.
8558 (x_draw_glyph_string_background): Don't use old cleartype_active
8559 workaround.
8560 (w32_initialize): Remove cleartype_active initialization.
8561 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8562
85632008-07-28 Andreas Schwab <schwab@suse.de>
8564
8565 * lisp.h (init_weak_hash_tables, syms_of_font)
8566 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8567 (remove_hash_entry): Don't declare.
8568 * eval.c (maybe_call_debugger): Make static and move before use.
8569 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8570 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8571 * xterm.h (x_set_frame_alpha): Declare.
8572
85732008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8574
8575 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8576 (create_menus): Connect selection-done to menu_nav_ended.
8577
85782008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8579
8580 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8581 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8582 parameter with read of 'alpha' one.
8583 (Qns_frame_parameter): Remove.
5582fbc7 8584 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8585 (next-selection-coding-system, Vselection_coding_system)
8586 (Vnext_selection_coding_system): Drop.
8587
85882008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8589
8590 * nsfns.m (do-applescript, do_applescript): Rename to
8591 ns-do-applescript, ns_do_applescript, and move within file.
8592
85932008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8594
8595 Remove support for Mac Carbon.
8596 * mactoolbox.c:
8597 * macterm.h:
8598 * macterm.c:
8599 * macselect.c:
8600 * macmenu.c:
8601 * macgui.h:
8602 * macfns.c:
8603 * mac.c: Remove file.
8604 * s/darwin.h:
8605 * m/intel386.h:
8606 * xfaces.c:
8607 * xdisp.c:
8608 * window.c:
8609 * tparam.c:
8610 * termhooks.h:
8611 * termcap.c:
8612 * term.c:
8613 * syssignal.h:
8614 * sysselect.h:
8615 * sysdep.c:
8616 * process.c:
8617 * lread.c:
8618 * lisp.h:
8619 * keyboard.c:
8620 * image.c:
8621 * fringe.c:
8622 * frame.h:
8623 * frame.c:
8624 * fontset.c:
8625 * font.h:
8626 * font.c:
8627 * fns.c:
8628 * fileio.c:
8629 * emacs.c:
8630 * dispnew.c:
8631 * dispextern.h:
8632 * config.in:
8633 * atimer.c:
2ae37cf0 8634 * Makefile.in: Remove code for Carbon.
aac0c6e3 8635
f0131492 86362008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8637
8638 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8639
86402008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8641
8642 * macterm.h (kCGBitmapByteOrder32Host): New define for
8643 non-universal SDKs.
8644
8645 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8646 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8647
8648 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8649 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8650
86512008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8652
8653 * w32inevt.c: Include dispextern.h.
8654
86552008-07-26 Andreas Schwab <schwab@suse.de>
8656
8657 * print.c (print_object): Fix off-by-one in last change.
8658
86592008-07-25 Juanma Barranquero <lekktu@gmail.com>
8660
8661 * term.c (syms_of_term): Don't initialize default_orig_pair,
8662 default_set_foreground and default_set_background on Windows.
8663
86642008-07-25 Jason Rumney <jasonr@gnu.org>
8665
8666 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8667 ScriptItemize. Clean up return value checking. Remove unused
8668 variables.
8669 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8670 shaping engine.
8671
8672 * w32font.c (w32font_has_char): Handle the case where we can't
8673 determine the script for a character.
8674
86752008-07-25 Chong Yidong <cyd@stupidchicken.com>
8676
8677 * term.c (syms_of_term): Initialize default_orig_pair,
8678 default_set_foreground, and default_set_background.
8679
8680 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8681 clash (bug#86).
8682 (getloadavg): Callers changed.
8683
8684 * image.c (svg_load_image): Fix last change.
8685 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8686 image size is valid. Use g_object_unref instead of deprecated
8687 rsvg_handle_free to free rsvg handle.
8688 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8689
86902008-07-25 Jason Rumney <jasonr@gnu.org>
8691
8692 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8693 surrogates before looking up glyph index.
8694 (w32font_text_extents): Encode as surrogates if falling back to
8695 functions that need UTF-16 wide chars.
8696
8697 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8698 BMP as surrogates before looking up glyph index.
8699
87002008-07-25 Chong Yidong <cyd@stupidchicken.com>
8701
8702 * image.c (svg_load_image): Check for failure in return value of
8703 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8704
87052008-07-25 Jason Rumney <jasonr@gnu.org>
8706
8707 * w32font.c (Fx_select_font): Reverse sense of second arg.
8708
87092008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8710
8711 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8712 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8713
8714 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8715 (PURESIZE): Use it.
8716
87172008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8718
8719 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8720 * m/alpha.h (TEXT_END):
8721 * m/ibmrs6000.h (TEXT_END):
8722 * m/macppc.h (TEXT_END):
8723 * s/darwin.h (TEXT_END):
8724 * s/msdos.h (TEXT_END): Remove, unused.
8725 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8726 * s/cygwin.h: Remove comment.
8727
8728 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8729 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8730 * m/intel386.h (DOT_GLOBAL_START):
8731 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8732 (USG): Remove, file not used on USG platforms.
8733
8734 * Makefile.in (HAVE_X11): Remove empty #else.
8735
87362008-07-24 Andreas Schwab <schwab@suse.de>
8737
8738 * fileio.c (Finsert_file_contents): Properly adjust undo list
8739 after format conversion.
8740
87412008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8742
8743 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8744 (menu_nav_ended): Remove.
8745 (create_menus): Remove signal connect for menu_nav_ended.
8746 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8747 create_menus.
8748 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8749
87502008-07-23 Jason Rumney <jasonr@gnu.org>
8751
8752 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8753 with opened font.
8754 (w32font_open): Set font type to gdi.
8755
8756 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8757
87582008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8759
8760 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8761 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8762 defines it.
8763 * unexec.c (ADDR_CORRECT): Define unconditionally.
8764
8765 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8766
8767 * unexec.c: Remove code depending on !COFF and USG, the file is
8768 not used for such systems.
8769
8770 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8771 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8772 (LD_SWITCH_SYSTEM_1): Remove, update users.
8773
8774 * s/darwin.h (DATA_END):
8775 * m/intel386.h (DATA_END):
8776 * m/ibmrs6000.h (DATA_END):
8777 * m/alpha.h (DATA_END): Remove, unused.
8778
8779 * config.in: Regenerate.
8780 * s/ms-w32.h (subprocesses): Define unconditionally.
8781 * s/template.h (subprocesses): Update comment.
8782 * s/vms.h (subprocesses):
8783 * s/usg5-4.h (subprocesses):
8784 * s/hpux10-20.h (subprocesses):
8785 * s/gnu-linux.h (subprocesses):
8786 * s/cygwin.h (subprocesses):
8787 * s/bsd-common.h (subprocesses):
8788 * s/aix4-2.h (subprocesses):
8789 * s/darwin.h (subprocesses): Do not define, defined by default now.
8790
8791 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8792 Remove all references.
8793 (temacs): Add GNUstep specific ld flags.
8794
8795 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8796 similarly to what X does.
8797
87982008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8799
8800 * nsfns.m (x-list-fonts): Remove.
8801 (syms_of_nsfns): Drop the x-list-fonts declaration.
8802 * nsterm.m: Get rid of remaining "//" comments.
8803
88042008-07-22 Chong Yidong <cyd@stupidchicken.com>
8805
8806 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8807
8808 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8809 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8810 (Fns_own_selection_internal, Fx_disown_selection_internal)
8811 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8812
8813 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8814 ... */' style of docstrings. Doc fixes.
8815
88162008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8817
8818 * terminfo.c (UP, BC, PC): Undo previous change.
8819
8820 * nsfns.m: Rename ns prefixed functions/variables to the
8821 corresponding x versions. Update references.
8822
88232008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8824
8825 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8826
88272008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8828
8829 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8830 Remove forwarding functions.
8831 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8832 non-static.
8833 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8834 non-static.
8835 (ns_frame_parm_handlers): Use the new names.
8836 (syms_of_nsfns): Move to the end of file.
8837
8838 * nsterm.m (syms_of_nsterm): Move to the end of file.
8839
8840 * dispnew.c (init_display): Remove code for X10.
8841
88422008-07-22 Jason Rumney <jasonr@gnu.org>
8843
8844 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8845 bare drive.
8846
88472008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8848
8849 * nsterm.m (syms_of_nsterm): Remove debugging println.
8850
88512008-07-22 David Reitter <david.reitter@gmail.com>
8852
8853 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8854 Carbon implementation of the same functionality: execute arbitrary
8855 AppleScript code.
8856
88572008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8860 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8861 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8862 (Fx_display_mm_height, Fx_display_mm_width)
8863 (Fx_display_backing_store, Fx_display_visual_class)
8864 (Fx_display_save_under, Fx_open_connection)
8865 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8866 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8867 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8868 (Fx_display_pixel_width, Fx_display_pixel_height)
8869 (Fx_display_usable_bounds, Fx_display_planes)
8870 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8871 ... */' style of docstrings.
8872
88732008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8874
8875 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8876 on this platform.
8877 (mips):
8878 * m/iris4d.h (mips): Do not define.
8879 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8880
8881 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8882
8883 * image.c:
8884 * nsfns.m:
8885 * nsselect.m:
8886 * nsterm.h:
8887 * nsterm.m: Rename ns prefixed functions/variables to the
8888 corresponding x versions. Update references.
8889
8890 * m/ibms390x.h (NO_REMAP): Do not undefine.
8891
8892 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8893
88942008-07-21 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8897 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8898 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8899 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8900 (Fns_display_mm_height, Fns_display_mm_width)
8901 (Fns_display_backing_store, Fns_display_visual_class)
8902 (Fns_display_save_under, Fns_open_connection)
8903 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8904 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8905 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8906 (Fns_display_pixel_width, Fns_display_pixel_height)
8907 (Fns_display_usable_bounds, Fx_display_planes)
8908 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8909
89102008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8911
8912 * print.c (print_object): Check print_depth before searching for
8913 circularities.
8914
89152008-07-21 Michael Albinus <michael.albinus@gmx.de>
8916
8917 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8918 only sprintf.
8919
89202008-07-21 Kenichi Handa <handa@m17n.org>
8921
8922 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8923
89242008-07-20 Andreas Schwab <schwab@suse.de>
8925
8926 * syntax.c (find_start_pos, find_start_value)
8927 (find_start_value_byte, find_start_begv, find_defun_start)
8928 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8929
89302008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8931
8932 * s/sol2-3.h: Insert contents of s/sol2.h.
8933 (LD_SWITCH_SYSTEM): Remove redundant definition.
8934 * s/sol2.h: Remove, unused.
8935
89362008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8939
89402008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8941
8942 * Makefile.in (ns_appdir): Fix typo in find command.
8943
89442008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8945
8946 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8947
8948 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8949 added not supported anymore.
8950
8951 * s/usg5-4-2.h (LIBS_SYSTEM):
8952 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8953
8954 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8955 * s/lynxos.h (GETPGRP_NO_ARG):
8956 * s/hpux10-20.h (NO_SIOCTL_H):
8957 * s/gnu.h (GETPGRP_NO_ARG):
8958 * s/gnu-linux.h (NO_SIOCTL_H):
8959 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8960 * s/cygwin.h (GETPGRP_NO_ARG):
8961 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8962 (C_DEBUG_SWITCH): Remove duplicate definition.
8963
8964 * m/ibms390.h: Remove boilerplate comments.
8965
8966 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8967
8968 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8969 (wait_reading_process_output): Remove code for SunOS, platform not
8970 supported anymore. Use SOLARIS2 instead of sun.
8971
89722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8973
8974 * font.c (font_open_by_name): Under NS, default lface height to zero.
8975 (font_open_for_lface): Under NS, set size based on frame fontsize.
8976 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8977 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8978
89792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8980
8981 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8982 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8983 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8984 YES/NO.
8985 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8986 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8987 * Makefile.in (clean): Clear out build destination dir.
8988
89892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8990
8991 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8992 xterm, xselect.
8993 * lisp.h: Remove declaration of hash_remove.
8994 * nsgui.h: Remove redefinitions of hash_remove.
8995 * fns.c (hash_remove): Rename to hash_remove_from_table.
8996
89972008-07-19 Seiji Zenitani <zenitani@mac.com>
8998
8999 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9000 strdup() the family UTF8String before modifying it.
9001
90022008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9003
9004 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9005 NS_FACE_BACKGROUND with 0 instead of nil.
9006 * nsfont.m (nsfont_draw): Same.
9007
90082008-07-19 Chong Yidong <cyd@stupidchicken.com>
9009
9010 * nsfns.m (ns_set_background_color): Fix crash.
9011
90122008-07-18 Chong Yidong <cyd@stupidchicken.com>
9013
9014 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9015
90162008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9017
9018 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9019
90202008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9021
9022 * gtkutil.c: Include <config.h> instead of "config.h".
9023
9024 * lisp.h (Foverlay_buffer): Add EXFUN.
9025
9026 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9027 child process to complete child_setup. Undo 2005-09-21 change.
9028
9029 * s/darwin.h: Mention setsid after vfork.
9030
90312008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9032
9033 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9034 Depend on macgui.h.
9035
9036 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9037 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9038
9039 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9040 and f19.
9041 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9042
9043 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9044 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9045 Remove enumerators.
9046
9047 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9048 Check if FACE_FROM_ID returns NULL.
9049
90502008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9051
9052 * w32inevt.c (change_frame_size): Remove extern declaration.
9053 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9054 change_frame_size.
9055
90562008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9057
9058 * getloadavg.c: Revert last change (2008-07-15).
9059
90602008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9061
9062 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9063 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9064 from configure.
9065
90662008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9067
9068 * s/sol2.h:
9069 * s/sol2-4.h: Reorganize conditionals.
9070
9071 * ecrt0.c: Remove code depending on m68000, not used anymore.
9072
9073 * fns.c (hash_remove): Make static.
9074 * lisp.h (hash_remove): Don't prototype.
9075
9076 * m/ibmrs6000.h:
9077 * m/ibms390x.h:
9078 * m/macppc.h: Remove boilerplate comments.
9079
9080 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9081 Solaris, which does not need them.
9082
9083 * m/vax.h: Remove comments about unsupported systems.
9084
9085 * s/darwin.h: Reorganize ifdefs.
9086
90872008-07-17 Andreas Schwab <schwab@suse.de>
9088
9089 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9090
90912008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9092
9093 Use SDATA. Follow coding convention of placing operators at
9094 beginning of next line rather than end of previous line, and placing
9095 spaces around infix operators.
9096
9097 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9098 in case it was defined already.
9099 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9100 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9101 ns_default.
9102 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9103 Lisp_Objects.
9104 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9105 (ns_defined_color, ns_color_to_lisp): Declare.
9106 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9107 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9108 it's accepted even with USE_LISP_UNION_TYPE.
9109 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9110 (update_frame_tool_bar): Remove apparently obsolete tests for
9111 non-integerness of f->tool_bar_lines.
9112 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9113 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9114 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9115 (nsfont_open): Don't confuse NULL for Qnil.
9116 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9117 * menu.h (find_and_call_menu_selection):
9118 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9119 (find_and_return_menu_selection): Always return something.
9120 * frame.h: Include dispextern.h for Display_Info.
9121 (display_x_get_resource): Declare.
9122
91232008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9124
9125 * syntax.c: Remove stdio.h include accidentally introduced in
9126 Emacs.app commit.
9127 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9128 NS_IMPL_COCOA.
9129 * keyboard.c (handle_async_input, input_available_signal): Remove
9130 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9131
91322008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9133
9134 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9135 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9136 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9137 Use SDATA.
9138
9139 * keymap.c: Remove all NS-specific code.
9140 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9141 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9142 where_is_preferred_modifier, return a different value depending on how
9143 preferred is the binding.
9144 (where_is_internal): Adjust accordingly.
9145 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9146 Adjust to new preferred_sequence_p.
9147 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9148 * keyboard.c (parse_solitary_modifier): Not static any more.
9149 * keyboard.h (parse_solitary_modifier): Declare.
9150
91512008-07-16 Andreas Schwab <schwab@suse.de>
9152
9153 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9154 of easymenu.
9155
91562008-07-16 Chong Yidong <cyd@stupidchicken.com>
9157
9158 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9159 that we don't move off the line.
9160
91612008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9162
9163 * keyboard.c (Qsuper): Remove.
9164 (parse_menu_item): Don't call where_is_internal specially for NS.
9165
91662008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9167
9168 * s/gnu-linux.h: Remove boilerplate comments.
9169
9170 * m/alpha.h (__ELF__): Consolidate conditions.
9171
9172 * m/m68k.h (linux): Use GNU_LINUX instead.
9173 Remove boilerplate comments.
9174
9175 * m/intel386.h: Undo refactoring from previous change.
9176 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9177 too, remove dead code.
9178 (linux): Use GNU_LINUX instead.
9179
91802008-07-16 Jason Rumney <jasonr@gnu.org>
9181
9182 * w32gui.h: Repeat 26 June changes lost by last change.
9183
91842008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9185
9186 * systty.h: Remove code for Aix on 386, unsupported platform.
9187
9188 * s/ms-w32.h: Remove boilerplate comments.
9189 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9190
9191 * s/gnu-linux.h (TERM): Remove support.
9192 (HAVE_SYSVIPC): Remove, unused.
9193 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9194 for this system.
9195
9196 * process.c: Remove support for IRIS, unused.
9197 Remove support for TERM, not relevant anymore.
9198
9199 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9200 used with the definition.
9201
9202 * s/aix4-2.h (static): Do not undef.
9203
9204 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9205 only used on Aix.
9206 (HAVE_SYSVIPC): Remove, unused.
9207
9208 * m/hp800.h (CANNOT_DUMP): Do not undef.
9209
9210 * m/alpha.h: Fix comment.
9211
9212 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9213 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9214 used by this configuration.
9215 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9216 * unexec.c: Remove code depending on HPUX and
9217 USG_SHARED_LIBRARIES, not used with this file. Remove code
9218 depending on IRIS, unused. Remove if 0-ed code.
9219
9220 * s/template.h: Remove comments about static.
9221
9222 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9223 Remove if 0-ed code.
9224 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9225 were the same as the default.
9226 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9227 Remove boilerplate comments.
9228 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9229 (HAVE_SYSVIPC): Remove, unused.
9230 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9231
9232 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9233 Remove boilerplate comments.
9234 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9235 Remove boilerplate comments.
9236 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9237 Remove boilerplate comments.
9238 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9239
9240 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9241 USG systems which do not use DATA_SEG_BITS.
9242 Refactor code. Remove boilerplate comments.
9243
9244 * m/ibms390.h:
9245 * m/m68k.h:
9246 * s/bsd-common.h:
9247 * s/cygwin.h:
9248 * s/darwin.h:
9249 * s/freebsd.h:
9250 * s/gnu.h:
9251 * s/msdos.h: Remove boilerplate comments.
9252
9253 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9254 do not use this file.
aac0c6e3
MR
9255 (IRIS_4D): Remove, unused.
9256
9257 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9258 do not use this file.
aac0c6e3
MR
9259 (SIGN_EXTEND_CHAR):
9260 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9261 * unexmips.c: Remove file, unused.
9262
9263 * editfns.c (Fuser_full_name): Replace the only use of
9264 USER_FULL_NAME with its value.
9265 * config.in: Regenerate.
9266
92672008-07-16 David Reitter <david.reitter@gmail.com>
9268
9269 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9270 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9271
92722008-07-16 Glenn Morris <rgm@gnu.org>
9273
9274 * emacs.c (system-type): Doc fix.
9275
92762008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9277
9278 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9279 If the cache doesn't work, let's fix it, rather than work around it.
9280
92812008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9282
9283 * Makefile.in: Correct additions for nsfont.o in last commit.
9284 * nsfont.m: New file (forgot last commit).
9285
92862008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9287
9288 * callproc.c (set_initial_environment): Initialize
9289 Vprocess_environment under CANNOT_DUMP (fixes crash when
9290 batch-compiling for bootstrap).
9291
92922008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9293 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9294
9295 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9296 fix crash due to different init order.
9297
92982008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9299
9300 Changes and additions for NeXTstep windowing system (Cocoa and
9301 GNUstep) support.
9302
9303 * Makefile.in:
9304 * config.in: Support defines and build commands for NS port.
9305 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9306 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9307 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9308 windowing.
9309 (struct face): Add synth_ital field.
9310 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9311 (init_display): Initialize Vinitial_window_system to "ns" when so
9312 compiled.
9313 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9314 (display_arg): Use under NS.
9315 (main): Under NS, allocate autorelease pool and handle command line
9316 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9317 (standard_args): Add NS-specific args.
9318 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9319 * font.c (DEFAULT_ENCODING): New variable.
9320 (font_find_for_lface): Use it.
9321 (syms_of_font): Load syms_of_nsfont under NS.
9322 * font.h: Declare nsfont_driver when compiled under NS.
9323 * fontset.c: When compiling under NS, include nsterm.h.
9324 (fontset_from_font): Autoconstruct fontset under NS.
9325 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9326 symbol, document and use it.
9327 (do_switch_frame): When for_deletion under Cocoa, add
9328 Fraise_frame(Qnil).
9329 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9330 (x_get_arg): Allow "yes" and "no" as boolean values.
9331 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9332 Qright under Cocoa.
9333 (focus-follows-mouse): Default to 0 under NS.
9334 * frame.h (enum output_method): Add output_ns.
9335 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9336 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9337 (FRAME_WINDOW_P): NS-specific definition.
9338 * fringe.c (max_used_fringe_bitmap): Make public.
9339 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9340 (getloadavg): Use NeXT code under descendant OS's.
9341 * image.c (includes and header section, x_create_bitmap_from_data)
9342 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9343 (image_background_transparent, x_clear_image_1)
9344 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9345 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9346 (x_to_xcolors, x_from_xcolors, x_disable_image)
9347 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9348 other GUIs, including XPM support using code originally written for
9349 Carbon GUI.
9350 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9351 using NS API.
9352 (image_ascent): Use font metrics macros instead of direct struct field
9353 access.
9354 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9355 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9356 Also, handle NS as GTK for menu bar purposes.
9357 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9358 toolkit where they differ.
9359 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9360 use cachelist, still needed under NS.
9361 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9362 (struct widget_value): Define it here for menu.c.
9363 * keymap.c (includes): Include modifier internals.
9364 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9365 NS.
9366 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9367 support for preferring sequences using certain modifiers, specified by
9368 the FIRSTONLY argument.
9369 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9370 under NS GNUstep implementation.
9371 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9372 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9373 * menu.c: Include nsterm.h under NS.
9374 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9375 (free_menubar_widget_tree_value, update_submenu_strings)
9376 (find_and_call_menu_selection): Treat NS as X and NT.
9377 (find_and_return_menu_selection): New function, used for popup menus.
9378 * nsgui.h:
9379 * nsterm.h:
9380 * nsfns.m:
9381 * nsimage.m:
9382 * nsmenu.m:
9383 * nsselect.m:
9384 * nsterm.m: New files.
9385 * process.c (wait_reading_process_output): Under NS, call ns_select()
9386 instead of plain select().
9387 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9388 beginning of buffer.
9389 * sysselect.h (init_process): Rename when compiling under Cocoa to
9390 avoid name conflict.
9391 * termhooks.h (display_info): Add ns_display_info to union.
9392 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9393 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9394 COCOA environment.
9395 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9396 unexec() signature. (Note, this will dump, but the resulting file
9397 crashes; unexosx is used instead; keeping around for reference and
9398 possible aid in getting dump working under GNUstep.)
9399 * w32gui.h (button_type, widget_value): Remove definitions (now in
9400 keyboard.h).
9401 * window.c: Include nsterm.h when compiling under NS.
9402 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9403 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9404 other GUI windowing systems.
9405 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9406 GTK.
9407 (x_consider_frame_title): Under NS, set icon type and frame
9408 modified-state indicator; use ns_set_name_as_filename() when using
9409 formatted title.
9410 (update_window_cursor): Make public when compiling under NS.
9411 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9412 (hourglass_atimer, Vhourglass_delay
9413 * xfaces.c (header section, init_frame_faces, clear_font_table)
9414 (defined_color, unload_color, x_face_list_fonts)
9415 (prepare_face_for_display): Add NS support parallel to other GUIs.
9416 Emulate GCs like other non-X GUIs.
9417 (split_font_name): Don't lowercase font name under NS.
9418 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9419 under NS.
9420 * s/darwin.h: Add support for compilation under NS.
9421
94222008-07-15 Jason Rumney <jasonr@gnu.org>
9423
9424 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9425 (w32_show_hourglass): Rename from show_hourglass.
9426 (w32_hide_hourglass): Rename from hide_hourglass.
9427 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9428 (Vhourglass_delay): Declare extern.
9429 (hourglass_started): Remove.
9430
9431 * xdisp.c (Vhourglass_delay): Remove static.
9432 (hourglass_started, start_hourglass, cancel_hourglass):
9433 Don't include these versions on WINDOWSNT.
9434
94352008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9436
9437 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9438 variables (formerly in xfns.c).
9439 (show_hourglass, hide_hourglass): New prototypes (same).
9440 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9441 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9442 in xfns.c).
9443 (syms_of_xdisp): Declare/initialize display-hourglass,
9444 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9445 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9446 formerly in xfns.c.
9447 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9448 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9449 (start_hourglass, cancel_hourglass): Remove.
9450 (show_hourglass, hide_hourglass): Remove prototypes and static
9451 modifiers.
9452 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9453 hourglass_atimer, hourglass_shown_p declaration/initialization.
9454 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9455 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9456 (start_hourglass, cancel_hourglass): Remove.
9457 (show_hourglass, hide_hourglass): Remove prototypes and static
9458 modifiers.
9459 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9460 hourglass_atimer, hourglass_shown_p declaration/initialization.
9461 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9462 (DEFAULT_HOURGLASS_DELAY): Remove.
9463 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9464 hourglass_shown_p declaration/initialization.
9465
94662008-07-14 Jason Rumney <jasonr@gnu.org>
9467
9468 * w32fns.c (w32_get_arg): Remove wrapper function.
9469 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9470 directly.
9471 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9472
94732008-07-14 Kenichi Handa <handa@m17n.org>
9474
9475 * xfont.c (xfont_open): Add workaround for X's bug.
9476
94772008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9478
9479 * fontset.c: Include <stdio.h> unconditionally.
9480
94812008-07-13 Michael Albinus <michael.albinus@gmx.de>
9482
9483 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9484 for filtering.
9485
94862008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9487
9488 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9489
9490 * m/macppc.h:
9491 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9492
9493 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9494 (SPECIAL_EMACS_INT):
9495 * m/ia64.h (SPECIAL_EMACS_INT):
9496 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9497 * s/gnu.h (NLIST_STRUCT):
9498 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9499 * s/gnu-linux.h (LINUX):
9500 * s/msdos.h (HAVE_FACES):
9501 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9502
9503 * systty.h:
9504 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9505 anymore.
9506
95072008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9508
9509 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9510 always defined as int.
9511
9512 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9513 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9514 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9515 * s/freebsd.h (HAVE_WAIT_HEADER):
9516 * s/bsd-common.h (HAVE_UNION_WAIT):
9517 * s/aix4-2.h (HAVE_WAIT_HEADER):
9518 * m/mips.h (HAVE_UNION_WAIT):
9519 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9520 (COFF, static): Do not define, they are undefined later in the file.
9521
9522 * process.c (update_status): Don't use a union.
9523 (status_convert):
9524 (sigchld_handler): Use int instead of WAITTYPE.
9525
95262008-07-12 Chong Yidong <cyd@stupidchicken.com>
9527
9528 * indent.c (Fvertical_motion): Restore hscroll before moving to
9529 goal column.
9530
95312008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9532
9533 * lisp.h: Remove left over code.
9534
95352008-07-11 Andreas Schwab <schwab@suse.de>
9536
9537 * lisp.h: Fix logic in last change.
9538
9539 * menu.h: New file.
9540 * menu.c: Include it.
9541 * xmenu.c: Likewise.
9542 * Makefile.in: Update dependencies.
9543
95442008-07-11 Kenichi Handa <handa@m17n.org>
9545
9546 * fontset.c (fontset_from_font): Cancel the previous change.
9547
95482008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9549
9550 * lisp.h:
9551 * w32heap.c:
9552 * emacs.c:
9553 * alloc.c: Replace all references of NO_UNION_TYPE with
9554 USE_LISP_UNION_TYPE.
9555
9556 * m/xtensa.h (NO_UNION_TYPE):
9557 * m/vax.h (NO_UNION_TYPE):
9558 * m/template.h (NO_UNION_TYPE):
9559 * m/sparc.h (NO_UNION_TYPE):
9560 * m/mips.h (NO_UNION_TYPE):
9561 * m/macppc.h (NO_UNION_TYPE):
9562 * m/m68k.h (NO_UNION_TYPE):
9563 * m/iris4d.h (NO_UNION_TYPE):
9564 * m/intel386.h (NO_UNION_TYPE):
9565 * m/ibms390x.h (NO_UNION_TYPE):
9566 * m/ibms390.h (NO_UNION_TYPE):
9567 * m/ibmrs6000.h (NO_UNION_TYPE):
9568 * m/ia64.h (NO_UNION_TYPE):
9569 * m/hp800.h (NO_UNION_TYPE):
9570 * m/arm.h (NO_UNION_TYPE):
9571 * m/amdx86-64.h (NO_UNION_TYPE):
9572 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9573 defining it the same.
9574
95752008-07-10 Chong Yidong <cyd@stupidchicken.com>
9576
9577 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9578
95792008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9580
9581 * fileio.c:
50426a04 9582 * sysdep.c:
aac0c6e3
MR
9583 * systty.h:
9584 * m/ibmrs6000.h:
9585 * m/iris4d.h:
9586 * s/aix4-2.h:
9587 * s/freebsd.h:
9588 * s/gnu-linux.h:
9589 * s/hpux10-20.h:
9590 * s/hpux11.h:
9591 * s/netbsd.h:
9592 * s/sol2-3.h:
9593 * s/sol2-4.h:
9594 * s/sol2.h:
9595 * s/usg5-4.h:
9596 * s/vms.h: Remove references to unused variables.
9597
95982008-07-10 Andreas Schwab <schwab@suse.de>
9599
9600 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9601 pattern before matching the generic family.
9602
96032008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9604
9605 * unexec.c:
9606 * s/vms.h:
9607 * s/usg5-4-2.h:
9608 * s/sol2-5.h:
9609 * s/freebsd.h:
9610 * s/darwin.h: Remove dead code.
9611
9612 * m/template.h:
9613 * m/sparc.h:
9614 * m/mips.h:
9615 * m/m68k.h:
9616 * m/iris4d.h:
9617 * m/intel386.h:
9618 * m/ibms390x.h:
9619 * m/ibms390.h:
9620 * m/ia64.h:
9621 * m/hp800.h:
9622 * m/arm.h:
9623 * m/amdx86-64.h: Remove dead code and references to unused
9624 and compiler defined symbols.
9625
9626 * unexmips.c:
9627 * unexelf.c: Remove references to desupported systems.
9628
9629 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9630
9631 * m/powermac.h: Remove boilerplate comments.
9632 (NO_REMAP): Remove unused definition.
9633
9634 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9635 define them.
9636
96372008-07-10 Kenichi Handa <handa@m17n.org>
9638
9639 * xfont.c (xfont_open): Log the reason of failure.
9640
96412008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9642
9643 * fontset.c (fontset_get_font_group):
9644 * font.c (font_check_otf): Specify argument types.
9645
96462008-07-09 Kenichi Handa <handa@m17n.org>
9647
9648 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9649 non-ASCII char is found.
9650
9651 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9652 (reorder_font_vector): Change the arg preferred_family to font.
9653 Prefer the spec matching with font.
9654 (fontset_get_font_group): New function.
9655 (fontset_find_font): Change the format of an element of a realized
9656 fontset. Use fontset_get_font_group.
9657 (fontset_font): Try the current fontset, the default fontset, the
9658 fallbacks of the current fontset, and the fallbacks of the default
9659 fontset in this order.
9660 (face_for_char): Delete the shortcut to use the current font.
9661 (fontset_from_font): Don't set fonts for Latin in the fontset.
9662
9663 * font.h (font_make_object, font_match_p): Adjust prototypes.
9664
9665 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9666
9667 * font.c (font_make_object): New arg entity and pixelsize.
9668 (font_check_otf_features, font_check_otf): New functions.
9669 (font_match_p): Check :lang, :script, and :otf properties.
9670
9671 * xfont.c (xfont_open): Adjust it for the change of
9672 font_make_object.
9673 (xfont_text_extents): Fix initial setting of metrics.
9674
9675 * ftfont.c (struct ftfont_info): New member index, delete member
9676 fc_charset_idx. Make the member order compatible with struct
9677 xftfont_info.
9678 (fc_charset_table): Change charset names to registry names.
9679 (ftfont_pattern_entity): Delete the args registry and
9680 fc_charset_idx. Change the value of :font-entity property
9681 to (FONTNAME . INDEX). Always set :registry property to
9682 `iso10646-1'.
9683 (struct ftfont_cache_data): New struct.
9684 (ftfont_lookup_cache): New arg for_face.
9685 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9686 (ftfont_driver): Set the member otf_capability.
9687 (ftfont_get_charset): Adjust it for the change of
9688 fc_charset_table.
9689 (OTF_TAG_SYM): New macro.
9690 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9691 for the change of fc_charset_table.
9692 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9693 ftfont_pattern_entity. Add FC_INDEX to objset.
9694 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9695 and ftfont_pattern_entity.
9696 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9697 font_make_object, struct ftfont_info.
9698 (ftfont_has_char): Use ftfont_get_fc_charset.
9699 (ftfont_otf_features, ftfont_otf_capability): New functions.
9700 (ftfont_shape): Use ftfont_get_otf.
9701 (ftfont_text_extents): Fix initial setting of metrics.
9702
9703 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9704 member order compatible with struct ftfont_info.
9705 (xftfont_open): Add FC_CHARSET to the pattern. Set
9706 xftfont_info->ft_size. Don't unlock the face. Check BDF
9707 properties if appropriate.
9708 (xftfont_close): Unlock the face.
9709 (xftfont_anchor_point, xftfont_shape): Deleted.
9710 (syms_of_xftfont): Don't set members anchor_point and shape of
9711 xftfont_driver.
9712
9713 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9714 font_make_object.
9715
9716 * w32font.c (w32font_open): Adjust it for the change of
9717 font_make_object.
9718 (w32font_open_internal): Don't set properties of font_object here.
9719
97202008-07-08 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * macfns.c (x_create_tip_frame):
9723 * w32fns.c (x_create_tip_frame):
9724 * xfns.c (x_create_tip_frame): Pass parameter argument to
9725 face-set-after-frame-default.
9726
9727 * xfaces.c (Finternal_merge_in_global_face): Save merged
9728 attributes for the default face back into the face vector.
9729
97302008-07-08 Andreas Schwab <schwab@suse.de>
9731
9732 * fontset.h: Declare fontset_from_font. Don't declare
9733 new_fontset_from_font and fontset_from_font_name.
9734 * xterm.c: Include "fontset.h".
9735 * Makefile.in (xterm.o): Update dependencies.
9736
97372008-07-08 Glenn Morris <rgm@gnu.org>
9738
9739 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9740 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9741
97422008-07-07 Chong Yidong <cyd@stupidchicken.com>
9743
9744 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9745 (x_set_frame_parameters): Don't bind it.
9746
97472008-07-07 Juanma Barranquero <lekktu@gmail.com>
9748
9749 * w32fns.c (map_w32_filename): Declare extern.
9750
97512008-07-07 Jason Rumney <jasonr@gnu.org>
9752
9753 * w32term.c (WS_EX_LAYERED): Define if not already.
9754
97552008-07-06 Chong Yidong <cyd@stupidchicken.com>
9756
9757 * xfaces.c (set_font_frame_param): Don't try to set the font
9758 parameter if it is still unspecified in the lface.
9759
97602008-07-05 Chong Yidong <cyd@stupidchicken.com>
9761
9762 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9763 face if it didn't already exist.
9764
9765 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9766
97672008-07-05 Andreas Schwab <schwab@suse.de>
9768
9769 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9770
97712008-07-05 Chong Yidong <cyd@stupidchicken.com>
9772
9773 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9774 word-wrapping.
9775 (IT_DISPLAYING_WHITESPACE): New macro.
9776 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9777 when word-wrapping. Simplify word-wrapping logic. Use correct
9778 pixel positions when saving copies of the iterator.
9779 (display_line): Use proper wrap point if the last character on a
9780 line was preceded by whitespace.
9781
97822008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9783
9784 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9785
97862008-07-04 Kenichi Handa <handa@m17n.org>
9787
9788 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9789
9790 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9791
97922008-07-02 Jason Rumney <jasonr@gnu.org>
9793
9794 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9795 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9796
9797 * xdisp.c (next_element_from_display_vector): Move assignment out
9798 of if statement.
9799
98002008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9801
9802 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9803
9804 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9805 (syms_of_fileio): Initialize and export them.
9806 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9807
9808 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9809 (Fsystem_move_file_to_trash): New function.
9810 (syms_of_w32fns): Export it to lisp.
9811
98122008-07-01 Jason Rumney <jasonr@gnu.org>
9813
9814 * w32font.c (w32font_text_extents): Don't count overhang as part
9815 of width.
9816
98172008-06-30 Miles Bader <miles@gnu.org>
9818
9819 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9820 Add `avoid_cursor_p' field.
9821
9822 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9823 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9824 (append_glyph, append_composite_glyph, produce_image_glyph)
9825 (append_stretch_glyph): Initialize avoid_cursor_p.
9826 (get_it_property): Rename from `get_line_height_property'.
9827 (x_produce_glyphs): Use get_it_property.
9828 (handle_line_prefix, push_display_prop): New functions.
9829 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9830 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9831 New variables.
9832 (syms_of_xdisp): Initialize them.
9833
98342008-06-30 Kenichi Handa <handa@m17n.org>
9835
9836 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9837 XftDefaultSubstitute (they are called in XftFontMatch).
9838 (xftfont_open): Fix args to ftfont_font_format.
9839
9840 * ftfont.c (fc_charset_table): New member lang.
9841 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9842 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9843 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9844 (ftfont_open): Fix args to ftfont_font_format.
9845 (ftfont_font_format): New arg filename.
9846
98472008-06-30 Chong Yidong <cyd@stupidchicken.com>
9848
9849 * xfaces.c (Finternal_merge_in_global_face): If default face was
9850 modified, realize it again. Update the font face attribute.
9851
98522008-06-29 Jason Rumney <jasonr@gnu.org>
9853
9854 * w32term.c (x_set_frame_alpha): Fix logic.
9855
98562008-06-29 Kenichi Handa <handa@m17n.org>
9857
9858 * fontset.c (Finternal_char_font): Return font-object instead of
9859 font-name.
9860
9861 * composite.c (get_composition_id): Fix the width calculation for TAB.
9862
98632008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9864
9865 * indent.c (Fvertical_motion): Properly handle float column arg.
9866
98672008-06-28 Jason Rumney <jasonr@gnu.org>
9868
9869 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9870 (pfnSetLayeredWindowAttributes): New function pointer.
9871 (w32_initialize): Initialize it when supported.
9872 (x_set_frame_alpha): New function.
9873
9874 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9875 (w32_frame_parm_handlers): Set alpha handler.
9876
9877 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9878
98792008-06-27 Jason Rumney <jasonr@gnu.org>
9880
9881 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9882 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9883 (w32_to_x_charset, x_to_w32_charset)
9884 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9885 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9886 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9887 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9888 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9889 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9890 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9891 (Qw32_charset_unicode): Remove.
9892 (syms_of_w32fns): Update for above changes.
9893
9894 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9895 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9896 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9897 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9898 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9899 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9900 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9901 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9902 (syms_of_w32font): Update for above changes.
9903
99042008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9905
9906 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9907 removed #if.
9908 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9909
99102008-06-26 Juanma Barranquero <lekktu@gmail.com>
9911 Eli Zaretskii <eliz@gnu.org>
9912
9913 * makefile.w32-in (LOCAL_FLAGS):
9914 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9915
9916 * sysdep.c (_spawnlp, _getpid):
9917 Declare with explicit _cdecl instead of _CRTAPI1.
9918
9919 * editfns.c (Fget_internal_run_time):
9920 Check for WINDOWSNT with #ifdef, not #if.
9921
99222008-06-26 Jason Rumney <jasonr@gnu.org>
9923
9924 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9925
9926 * w32term.c (x_draw_glyph_string_foreground)
9927 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9928 Use FONT_HANDLE macro.
9929 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9930
9931 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9932 (uniscribe_encode_char): Use FONT_HANDLE macro.
9933
9934 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9935 (w32font_text_extents): Use precast w32_font.
9936 (w32font_close): Free cached metrics.
9937 (w32font_open_internal): Allocate space for name on stack.
9938
99392008-06-26 Chong Yidong <cyd@stupidchicken.com>
9940
9941 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9942
99432008-06-26 Jason Rumney <jasonr@gnu.org>
9944
9945 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9946 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9947
99482008-06-26 Juanma Barranquero <lekktu@gmail.com>
9949
9950 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9951
99522008-06-26 Jason Rumney <jasonr@gnu.org>
9953
9954 * w32bdf.c, w32bdf.h: Remove obsolete files.
9955
9956 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9957
9958 * w32gui.h: Don't include w32bdf.h.
9959 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9960 Remove obsolete font support.
9961
9962 * w32font.h (struct w32font_info): Remove compat_w32_font.
9963 Add hfont member.
9964 (FONT_COMPAT): Remove obsolete macro.
9965
9966 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9967 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9968 (w32font_open_internal): Remove compat code. Set new hfont member.
9969 (Fx_select_font): Use new hfont member.
9970
9971 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9972 (uniscribe_encode_char): Use new hfont member.
9973
9974 * w32term.c (x_draw_glyph_string_foreground)
9975 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9976 (x_draw_glyph_string): Use metrics in w32font_info.
9977
99782008-06-26 Kenichi Handa <handa@m17n.org>
9979
9980 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9981
99822008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9983
9984 * unexnext.c:
9985 * m/ews4800.h:
9986 * m/hp9000s300.h:
9987 * m/ibm370aix.h:
9988 * m/mips-siemens.h:
9989 * m/ncr386.h:
9990 * m/next.h:
9991 * m/pmax.h:
9992 * m/powerpcle.h:
9993 * m/tandem-s2.h:
9994 * s/386bsd.h:
9995 * s/bsd386.h:
9996 * s/bsd4-1.h:
9997 * s/bsd4-2.h:
9998 * s/bsdos2-1.h:
9999 * s/bsdos2.h:
10000 * s/bsdos3.h:
10001 * s/bsdos4.h:
10002 * s/nextstep.h:
10003 * s/ultrix4-3.h:
10004 * s/usg5-0.h:
10005 * s/usg5-2-2.h:
10006 * s/usg5-2.h:
10007 * s/usg5-4-3.h:
10008 * s/ux4800.h:
10009 * s/uxpds.h:
10010 * s/uxpv.h: Remove support for obsolete systems.
10011 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10012 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10013 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10014 Remove, insert contents in s/aix4-2.h.
10015 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10016 * s/bsd4-3.h: Rename to ...
10017 * s/bsd-common.h: ... this.
10018 * data.c:
10019 * doc.c:
10020 * ecrt0.c:
10021 * emacs.c:
10022 * fileio.c:
10023 * floatfns.c:
10024 * keyboard.c:
10025 * mem-limits.h:
10026 * print.c:
10027 * process.c:
10028 * sysdep.c:
10029 * syssignal.h:
10030 * systty.h:
10031 * syswait.h:
10032 * term.c:
10033 * unexec.c:
10034 * unexelf.c:
10035 * unexhp9k800.c:
10036 * m/hp800.h:
10037 * m/ibmrs6000.h:
10038 * m/mips.h:
10039 * m/vax.h:
10040 * s/darwin.h:
10041 * s/freebsd.h:
10042 * s/gnu.h:
10043 * s/ms-w32.h:
10044 * s/msdos.h:
10045 * s/netbsd.h:
10046 * s/template.h: Remove references to obsolete variables.
10047
10048 * Makefile.in: Add dependencies for all unexec files.
10049 (admindir): Remove unused variable.
10050 (UNEXEC_SRC): Remove references.
10051
100522008-06-25 Chong Yidong <cyd@stupidchicken.com>
10053
10054 * xfns.c (x_default_font_parameter): If Xft is available, first
10055 try Monospace-12 for the default font.
10056
100572008-06-25 Jason Rumney <jasonr@gnu.org>
10058
10059 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10060
100612008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10062
10063 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10064
10065 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10066
100672008-06-25 Juanma Barranquero <lekktu@gmail.com>
10068
10069 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10070 <scroll-conservatively>: Fix typo in docstring.
10071
10072 * xselect.c (Fx_send_client_event): Doc fix.
10073
100742008-06-25 Kenichi Handa <handa@m17n.org>
10075
10076 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10077
10078 * font.c (font_parse_fcname): Remove unused variables.
10079 (font_sort_entites): Delete the arg SPEC. Caller changed.
10080 Fix for the case of ! best_only.
10081 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10082
10083 * lisp.h (Fstring_to_unibyte): EXFUN it.
10084
10085 * character.h (str_to_unibyte): Extern it.
10086
10087 * character.c (str_to_unibyte): New function.
10088
10089 * fns.c (Fstring_to_unibyte): New function.
10090 (syms_of_fns): Defsubr it.
10091
100922008-06-24 Kenichi Handa <handa@m17n.org>
10093
10094 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10095 DPI too.
10096 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10097
100982008-06-24 Andreas Schwab <schwab@suse.de>
10099
10100 * Makefile.in (${lispsource}loaddefs.el): Rename from
10101 ../lisp/loaddefs.el.
10102 (bootstrap-clean): Do what distclean does but don't remove
10103 Makefile.
10104 (distclean): Depend on bootstrap-clean and remove Makefile.
10105
101062008-06-24 Chong Yidong <cyd@stupidchicken.com>
10107
10108 * buffer.h (struct buffer): New member word_wrap.
10109
10110 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10111 word-wrap.
10112 (init_buffer_once): Initialize them.
10113
10114 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10115 line_wrap enum possessing three possible values.
10116
10117 * termopts.h: Replace truncate_partial_width_windows with
10118 Vtruncate_partial_width_windows.
10119
10120 * dispnew.c (direct_output_for_insert): Avoid direct output when
10121 inserting a space with word wrap on.
10122
10123 * indent.c (compute_motion): Obey integer values of
10124 truncate-partial-width-windows.
10125
10126 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10127 replacing truncate_partial_width_windows.
10128 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10129 truncate only if the window width is below that integer.
10130 (start_display, resize_mini_window, produce_stretch_glyph)
10131 (display_string, move_it_in_display_line_to): Use line_wrap.
10132 (back_to_previous_visible_line_start, reseat_1): Reset
10133 string_from_display_prop_p.
10134 (display_line): Extend default face to end of line when wrapping.
10135
101362008-06-24 Kim F. Storm <storm@cua.dk>
10137
10138 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10139 to wrap continued lines at word boundaries.
10140
101412008-06-24 Jason Rumney <jasonr@gnu.org>
10142
10143 * font.c (Ffont_face_attributes): Multiply pixel size before point
10144 conversion to avoid multiplying rounding error.
10145
101462008-06-23 Jason Rumney <jasonr@gnu.org>
10147
10148 * w32term.c (x_draw_glyph_string_background)
10149 (x_draw_glyph_string): Remove old bdf font code.
10150
10151 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10152
101532008-06-22 Kenichi Handa <handa@m17n.org>
10154
10155 * font.c (font_find_for_lface): Try the adstyle specified in
10156 the property of LFACE_FONT of LFACE (if any).
10157
101582008-06-21 Seiji Zenitani <zenitani@mac.com>
10159 Ryo Yoshitake <ryo@shiftmode.net>
10160
10161 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10162
101632008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10164
10165 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10166 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10167 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10168 (witness-emacs): Remove.
10169 (lisp, shortlisp): Move loaddefs.el earlier.
10170 (mostlyclean): Forget about witness-emacs.
10171
101722008-06-22 Glenn Morris <rgm@gnu.org>
10173
10174 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10175 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10176
101772008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10178
10179 * Makefile.in (PRECOMP): Remove.
10180 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10181 (witness-emacs): Run `compile-first'.
10182 (.el.elc): Use the new compile-onefile target.
10183
101842008-06-21 Kenichi Handa <handa@m17n.org>
10185
10186 * xftfont.c (xftfont_open): Handle QCembolden only when
10187 FC_EMBOLDEN is defined.
10188
101892008-06-21 Andreas Schwab <schwab@suse.de>
10190
10191 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10192 (.el.elc): Likewise.
10193
101942008-06-21 Miles Bader <miles@gnu.org>
10195
10196 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10197 build dir, not the lisp source dir.
10198
101992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10200
10201 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10202 (bootstrapclean): Remove.
10203 (.el.elc): New rule.
10204 (PRECOMP): New var.
10205 (../lisp/subdirs.el): Remove.
10206 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10207 (witness-emacs): New target.
10208 (mostlyclean): Remove witness-emacs as well.
10209 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10210 Add witness-emacs dependency.
10211
102122008-06-20 Chong Yidong <cyd@stupidchicken.com>
10213
10214 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10215 defined by the font.
10216
102172008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10218
10219 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10220 (bootstrap-clean): New target that keeps TAGS around.
10221 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10222 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10223
102242008-06-20 Jason Rumney <jasonr@gnu.org>
10225
10226 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10227 Remove obsolete font code.
10228
10229 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10230 to determine language support.
10231
102322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10233
10234 * sysdep.c (cfsetspeed): New fun extracted from the code.
10235 (cfmakeraw): Move before first use.
10236
102372008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10238
10239 * sysdep.c (cfmakeraw): Provide fallback implementation.
10240 (serial_configure): Provide fallback implementation of cfsetspeed.
10241
102422008-06-20 Kenichi Handa <handa@m17n.org>
10243
10244 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10245 the pattern.
10246
10247 * fontset.c (fontset_from_font): Copy font_spec before changing
10248 the elements.
10249
10250 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10251
102522008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10253
10254 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10255 for explicit `font' parameters.
10256
10257 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10258
102592008-06-19 Kenichi Handa <handa@m17n.org>
10260
10261 * frame.c: Include <ctype.h>.
10262 (x_set_font_backend): Allow spacing characters in the X resource
10263 for FontBackend.
10264
102652008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10266
10267 * w32fns.c, xfns.c (Qfont_param): New var.
10268 (syms_of_w32fns): Initialize it.
10269 (x_default_font_parameter): Record explicit `font' into
10270 `font-parameter'.
10271
102722008-06-18 Kenichi Handa <handa@m17n.org>
10273
10274 * font.c (font_parse_xlfd): Fix previous change.
10275 (font_parse_fcname): Don't use :fc-unknown-spec.
10276 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10277 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10278 (font_add_log): Prepend the driver name to the resulting fonts.
10279
10280 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10281 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10282 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10283
10284 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10285 (QCembolden): New variables.
10286 (syms_of_xftfont): DEFSYM them.
10287 (xftfont_open): Call XftFontMatch. Don't trust the result of
10288 XftTextExtents8 if the pixel_size is less than 5.
10289
102902008-06-18 Andreas Schwab <schwab@suse.de>
10291
10292 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10293 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10294
102952008-06-18 Jason Rumney <jasonr@gnu.org>
10296
10297 * w32font.c (w32font_list, w32font_match): Add logging.
10298
10299 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10300
103012008-06-17 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * font.c (font_parse_fcname): Store divider characters for
10304 unknown-spec list. For known key symbols, intern using correct
10305 symbol name.
10306
103072008-06-17 Kenichi Handa <handa@m17n.org>
10308
10309 * xfaces.c (realize_default_face): If the frame is not on window
10310 system, set the fontset of face to nil.
10311
103122008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10313
10314 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10315
103162008-06-16 Juanma Barranquero <lekktu@gmail.com>
10317
10318 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10319 (build_font_name_from_vector): Delete externs.
10320
10321 * xfaces.c (struct font_name): Don't declare.
10322
103232008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10324
10325 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10326
103272008-06-16 Chong Yidong <cyd@stupidchicken.com>
10328
10329 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10330
103312008-06-16 Juanma Barranquero <lekktu@gmail.com>
10332
10333 * font.c (Ffont_spec): Fix usage in docstring.
10334 (Ffont_face_attributes): Doc fix.
10335
103362008-06-16 Andreas Schwab <schwab@suse.de>
10337
10338 * font.c (Ffont_face_attributes): Fix definition.
10339
103402008-06-16 Jason Rumney <jasonr@gnu.org>
10341
10342 * font.h (font_style_symbolic_from_value): Remove.
10343
10344 * font.c (font_style_symbolic_from_value): Remove.
10345 (font_style_symbolic): Revert to pre 2008-06-13 version.
10346
10347 * w32font.c (w32_to_fc_weight): New function.
10348 (w32font_full_name, logfont_to_fcname): Use it.
10349
103502008-06-16 Kenichi Handa <handa@m17n.org>
10351
10352 * font.c (font_check_object): Delete it.
10353 (font_clear_cache): Check if a font-object is alive.
10354 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10355 font-object to nil.
10356 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10357 (font_at): Don't call font_check_object.
10358 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10359
103602008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10361
10362 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10363
103642008-06-16 Chong Yidong <cyd@stupidchicken.com>
10365
10366 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10367
103682008-06-15 Chong Yidong <cyd@stupidchicken.com>
10369
10370 * font.c (font_parse_fcname): Only one decimal point.
10371 (font_unparse_fcname): Handle data in family and foundry indices
10372 as symbols, not strings.
10373 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10374
10375 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10376
10377 * font.h (font_unparse_gtkname): Add prototype.
10378
103792008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10380
10381 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10382
103832008-06-15 Andreas Schwab <schwab@suse.de>
10384
10385 * font.c (font_update_drivers): Fix crash when no drivers match.
10386
103872008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10388
10389 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10390 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10391
103922008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10395
103962008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10397
10398 * process.c (Fserial_process_configure, Fprocess_send_eof):
10399 Use EQ to compare Lisp_Objects.
10400
104012008-06-13 Jason Rumney <jasonr@gnu.org>
10402
10403 * w32fns.c (Fw32_select_font): Remove old font API function.
10404
10405 * w32font.c (logfont_to_fcname): New function.
10406 (Fx_select_font): New font dialog function compatible with
10407 GTK/fontconfig version.
10408
10409 * font.c (font_style_symbolic_from_value): New function.
10410 (font_style_symbolic): Use it.
10411
10412 * font.h (font_style_symbolic_from_value): Declare new function.
10413
104142008-06-13 Juanma Barranquero <lekktu@gmail.com>
10415
10416 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10417 <font-width-table>: Fix typos in docstrings.
10418
104192008-06-13 Daniel Engeler <engeler@gmail.com>
10420
10421 These changes add serial port access.
10422 * process.c: Add HAVE_SERIAL.
10423 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10424 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10425 (list_processes_1, select_wrapper, Fstop_process)
10426 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10427 (status_notify): Modify to handle serial processes.
10428 [HAVE_SERIAL] (Fserial_process_configure)
10429 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10430 New functions.
10431 * process.h (struct Lisp_Process): Add `type'.
10432 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10433 New functions.
10434 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10435 serial ports.
b71ac3dd 10436 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10437 * w32.h: Add FILE_SERIAL.
10438 (struct _child_process): Add ovl_read, ovl_write.
10439
104402008-06-13 Kenichi Handa <handa@m17n.org>
10441
10442 * dispextern.h (enum lface_attribute_index): New member
10443 LFACE_FOUNDRY_INDEX.
10444
10445 * font.c (font_score): Delete arg alternate_families. Check only
10446 weight, slant, width, and size. Ignore the difference of alias
10447 style symbols.
10448 (font_sort_entites): Adjust for the above change. Reflect the
10449 order of font-driver to scores.
10450 (font_list_entities): Don't check alternate_familes here.
10451 (font_clear_prop): Handle foundry.
10452 (font_update_lface): Don't parse "foundry-family" form here.
10453 Handle FONT_FOUNDRY_INDEX.
10454 (font_find_for_lface): Likewise. Handle alternate families here.
10455 If registry is nil, try iso8859-1 and ascii-0.
10456 (font_open_for_lface): Pay attention to size in ENTITY.
10457 (font_open_by_name): Simplify by calling font_load_for_lface.
10458 (free_font_driver_list): Delete it.
10459 (font_update_drivers): Preserve the order of backends.
10460 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10461 of font_score and font_sort_entites.
10462 (font_update_sort_order): Likewise.
10463
10464 * xfaces.c (LFACE_FOUNDRY): New macro.
10465 (check_lface_attrs): Check foundry.
10466 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10467 (merge_face_vectors): Check foundry.
10468 (merge_face_ref): Likewise.
10469 (Finternal_set_lisp_face_attribute): Likewise.
10470 (x_update_menu_appearance): Likewise.
10471 (Finternal_get_lisp_face_attribute): Likewise.
10472 (lface_hash): Likewise.
10473 (lface_same_font_attributes_p): Likewise.
10474 (x_supports_face_attributes_p): Likewise.
10475 (tty_supports_face_attributes_p): Likewise.
10476 (Finternal_set_alternative_font_family_alist): Intern strings.
10477 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10478 (realize_default_face): Set LFACE_FOUNDRY (lface).
10479
10480 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10481 font-driver at first.
10482
10483 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10484
104852008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10486
10487 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10488
104892008-06-12 Jim Meyering <meyering@redhat.com>
10490
10491 Make unexec_free handle NULL the same way free does.
10492 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10493
104942008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10497 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10498 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10499 (WEAK_ALIAS): Simplify.
10500 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10501 when searching a unibyte buffer.
10502
105032008-06-12 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10506
105072008-06-12 Juanma Barranquero <lekktu@gmail.com>
10508
10509 * w32font.c: Include ctype.h.
10510
105112008-06-11 Jason Rumney <jasonr@gnu.org>
10512
10513 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10514 misreported as space.
10515 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10516 as aliases for registry iso10646-1.
10517
105182008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10519
10520 * buffer.c (clone_per_buffer_values): Skip `name'.
10521
105222008-06-11 Chong Yidong <cyd@stupidchicken.com>
10523
10524 * font.c (font_parse_fcname): Fix last change; accept decimal
10525 points in font size.
10526
105272008-06-10 Jason Rumney <jasonr@gnu.org>
10528
10529 * w32uniscribe.c (add_opentype_font_name_to_list):
10530 Skip non unicode fonts.
10531
105322008-06-10 Chong Yidong <cyd@stupidchicken.com>
10533
10534 * xfns.c (Fx_font_dialog): New function.
10535
10536 * gtkutil.c (xg_dialog_response_cb): Rename from
10537 xg_file_response_callback.
10538 (pop_down_dialog): Rename from pop_down_file_dialog.
10539 (xg_get_file_name): Callers changed.
10540 (xg_get_font_name): New function.
10541
10542 * gtkutil.h (xg_get_font_name): Insert prototype.
10543
105442008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10545
10546 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10547 x_underline_minimum_display_offset.
10548 (syms_of_xdisp): Declare it here rather than in xterm.c.
10549 * dispextern.h (underline_minimum_offset): Declare it.
10550 * w32term.c (x_draw_glyph_string): Use it.
10551 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10552 (syms_of_xterm): Don't declare it any more.
10553 (x_draw_glyph_string): Adjust to the new name.
10554
8719abec 105552008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10556
10557 * xterm.c (x_underline_minimum_display_offset): New var.
10558 (x_draw_glyph_string): Use it.
10559 (syms_of_xterm): Declare it.
10560
105612008-06-10 Chong Yidong <cyd@stupidchicken.com>
10562
10563 * font.c (font_parse_fcname): Accept GTK-style font names too.
10564
105652008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10566
10567 * dired.c (file_name_completion): Don't return t if the match is exact
10568 but with different capitalization.
10569 * minibuf.c (Ftry_completion): Simplify.
10570
10571 * window.c (Vwindow_point_insertion_type): New var.
10572 (set_window_buffer): Use it.
10573 (syms_of_window): Init and export it to Lisp.
10574
105752008-06-10 Kenichi Handa <handa@m17n.org>
10576
10577 * font.h (font_intern_prop): Prototype adjusted.
10578
10579 * font.c (font_intern_prop): New arg force_symbol.
10580 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10581 Adjust for the change of font_intern_prop.
10582
10583 * ftfont.c (ftfont_pattern_entity):
10584 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10585 (w32_registry):
10586 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10587 the change of font_intern_prop.
10588
105892008-06-09 Juanma Barranquero <lekktu@gmail.com>
10590
10591 * w32menu.c (digest_single_submenu): Declare extern.
10592
105932008-06-09 Jason Rumney <jasonr@gnu.org>
10594
10595 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10596
10597 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10598 (parse_single_submenu): Remove.
10599 (digest_single_submenu): Remove.
10600 (syms_of_w32menu): Don't initialise variables that have moved
10601 to menu.c.
10602 (set_frame_menubar): Sync with version in xmenu.c.
10603 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10604
10605 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10606 Make static again.
10607
106082008-06-09 Jason Rumney <jasonr@gnu.org>
10609
10610 Changes to w32 files related to the move of common menu code
10611 to menu.c on 2008-06-08 by Chong Yidong.
10612
10613 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10614 defs to w32gui.h.
10615 (single_keymap_panes, push_menu_item, push_menu_pane):
10616 Make globally visible.
10617
10618 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10619 (local_free, malloc_widget_value, free_widget_value)
10620 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10621 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10622 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10623 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10624 (menu_items, menu_items_allocated, menu_items_used)
10625 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10626 (init_menu_items, finish_menu_items, discard_menu_items)
10627 (grow_menu_items, push_submenu_start, push_submenu_end)
10628 (push_left_right_boundary, push_menu_pane, push_menu_item)
10629 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10630 (free_menubar_widget_tree_value, parse_single_submenu)
10631 (update_submenu_strings): Remove functions.
10632 (xmalloc_widget_value): Remove and declare extern.
10633
10634 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10635 (OBJ1): Build it.
10636
10637 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10638 (local_heap, local_alloc, local_free, malloc_widget_value)
10639 (free_widget_value): Define here.
10640
106412008-06-09 Kenichi Handa <handa@m17n.org>
10642
10643 * font.h (Qascii_0): Extern it.
10644
10645 * font.c (Qascii_0): New variable.
10646 (syms_of_font): DEFSYM it.
10647 (font_open_by_name): If the registry "iso8859-1" fails, try also
10648 "ascii-0".
10649
10650 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10651
106522008-06-08 Kenichi Handa <handa@m17n.org>
10653
10654 * .gdbinit (xfont): New command.
10655
106562008-06-08 Andreas Schwab <schwab@suse.de>
10657
10658 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10659 * Makefile.in (menu.o): Update dependencies.
10660
10661 * Makefile.in (obj): Always add menu.o.
10662 * emacs.c (main): Always call syms_of_menu.
10663 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10664
106652008-06-08 Chong Yidong <cyd@stupidchicken.com>
10666
10667 * Makefile.in: Compile menu.c.
10668
10669 * lisp.h: Declare syms_of_menu.
10670
10671 * emacs.c (main): Call syms_of_menu.
10672
10673 * keyboard.h: Relocate platform-independent menu definitions from
10674 xmenu.c.
10675
10676 * menu.c: New file. Relocate platform-independent menu
10677 definitions from xmenu.c. Suggested by Adrian Robert.
10678
10679 * xmenu.c: Remove platform-independent menu definitions.
10680 (menu_items menu_items_inuse, menu_items_allocated)
10681 (menu_items_used, menu_items_n_panes)
10682 (menu_items_submenu_depth): Move to keyboard.h.
10683 (init_menu_items, finish_menu_items, unuse_menu_items)
10684 (discard_menu_items, restore_menu_items, save_menu_items)
10685 (grow_menu_items, push_submenu_start, push_submenu_end)
10686 (push_left_right_boundary, push_menu_pane, push_menu_item)
10687 (keymap_panes, single_keymap_panes, single_menu_item)
10688 (list_of_panes, list_of_items, find_and_call_menu_selection)
10689 (xmalloc_widget_value, free_menubar_widget_value_tree)
10690 (parse_single_submenu, digest_single_submenu)
10691 (update_submenu_strings): Move to menu.c.
10692
106932008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10694
10695 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10696
106972008-06-06 Miles Bader <miles@gnu.org>
10698
10699 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10700 face, not frame default.
10701
107022008-06-05 Martin Rudalics <rudalics@gmx.at>
10703
10704 * window.c (pop_up_windows, pop_up_frames)
10705 (display_buffer_reuse_frames, Vpop_up_frame_function)
10706 (Vdisplay_buffer_function, Veven_window_heights)
10707 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10708 (Vspecial_display_function, Vsame_window_buffer_names)
10709 (Vsame_window_regexps, split_height_threshold)
10710 (Vsplit_window_preferred_function): Move those vars to window.el.
10711 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10712 (Fdisplay_buffer): Move those functions to window.el.
10713 (syms_of_window): Remove corresponding declarations.
10714 (display_buffer): New function.
10715 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10716 * dispnew.c (Flast_nonminibuf_frame): New function.
10717 * buffer.c (Fpop_to_buffer): Move to window.el.
10718
107192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10720
10721 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10722
107232008-06-05 Kenichi Handa <handa@m17n.org>
10724
10725 * coding.c (detect_coding): Fix previous change.
10726 (detect_coding_system): Likewise.
10727
107282008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10731
10732 * keymap.c (Vminibuffer_local_filename_must_match_map):
10733 Rename from Vminibuffer_local_must_match_filename_map.
10734 (syms_of_keymap):
10735 * minibuf.c (Fcompleting_read): Adjust accordingly.
10736 * commands.h: Rename declaration as well.
10737
107382008-06-05 Kenichi Handa <handa@m17n.org>
10739
10740 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10741 family name.
10742 (Ffont_put): Likewise.
10743
10744 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10745 current font-spec.
10746
10747 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10748 is unspecified.
10749
10750 * xfaces.c (realize_x_face): If the font-related face attributes
10751 are the same as those of default face, realize a new fontset from
10752 default->fontset.
10753 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10754
107552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10756
10757 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10758 (move_it_in_display_line): New wrapper.
10759
10760 * window.c (window_scroll_pixel_based_preserve_x)
10761 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10762 (window_scroll_pixel_based, window_scroll_line_based):
10763 Use them to preserve column positions.
10764 (syms_of_window): Initialize them.
10765
10766 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10767 (HPOS . VPOS) pair.
10768
10769 * dispextern.h (move_it_in_display_line): Declare.
10770
107712008-06-05 Juanma Barranquero <lekktu@gmail.com>
10772
10773 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10774 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10775 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10776
107772008-06-04 Juanma Barranquero <lekktu@gmail.com>
10778
10779 * window.c (Fset_window_parameter): Doc fix.
10780 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10781
107822008-06-04 Joakim Verona <joakim@verona.se>
10783
10784 * window.h (struct window): Add new member window_parameters.
10785
10786 * window.c (Fwindow_parameters, Fwindow_parameter)
10787 (Fset_window_parameter): New defuns.
10788 (syms_of_window): Defsubr the new defuns.
10789 (make_window): Initialize window_parameters to nil.
10790
107912008-06-04 John Paul Wallington <jpw@pobox.com>
10792
10793 * eval.c (Fdefmacro): Doc fix.
10794
107952008-06-04 Kenichi Handa <handa@m17n.org>
10796
10797 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10798 Be sure to call setup_coding_system when we find a proper coding system.
10799 (detect_coding_system): Fix handling of coding->head_ascii.
10800
108012008-06-03 Andreas Schwab <schwab@suse.de>
10802
10803 * font.c (font_prop_validate_spacing): Fix last change.
10804
108052008-06-03 Kenichi Handa <handa@m17n.org>
10806
10807 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10808 (font_parse_fcname): Fix handling of unknown key.
10809
10810 * xfont.c (xfont_list): Try an alias.
10811
10812 * charset.c (char_charset): Return NULL if the arg charset_list is
10813 specified and C doesn't belong to any of them.
10814
108152008-06-02 Chip Coldwell <coldwell@redhat.com>
10816
10817 * font.c (font_pixel_size): Don't take cdr of an integer.
10818
108192008-06-02 Jim Meyering <meyering@redhat.com>
10820
10821 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10822 * alloc.c (xfree): Return right away for a NULL arg.
10823 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10824 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10825 * mac.c (create_apple_event_from_event_ref): Likewise.
10826 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10827 Likewise.
10828 * doprnt.c (doprnt1): Likewise.
10829 * frame.c (frame): Likewise.
10830 * keyboard.c (wipe_kboard): Likewise.
10831 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10832 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10833 * term.c (tty_default_color_capabilities, maybe_fatal)
10834 (delete_tty): Likewise.
10835 * w16select.c (string): Likewise.
10836 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10837 * w32bdf.c (w32_free_bdf_font): Likewise.
10838 * w32fns.c (w32_unload_font): Likewise.
10839 * w32font.c (w32font_close): Likewise.
10840 * window.c (size_window): Likewise.
10841 * xselect.c (receive_incremental_selection): Likewise.
10842 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10843 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10844 * w32.c (stat): Likewise.
10845
10846 Remove useless if-before-free tests.
10847 * editfns.c (Fset_time_zone_rule): Likewise.
10848 * lread.c (nosuffix): Likewise.
10849 * ralloc.c (get_bloc): Likewise.
10850 * regex.c (reg_free): Likewise.
10851 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10852 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10853 * xsmfns.c (smc_save_yourself_CB): Likewise.
10854
108552008-06-02 Kenichi Handa <handa@m17n.org>
10856
10857 * font.c (font_find_for_lface): Handle float font size.
10858 (font_open_for_lface): Likewise.
10859
10860 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10861 comparing the properties.
10862
108632008-06-01 Jason Rumney <jasonr@gnu.org>
10864
10865 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10866 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10867 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10868 Don't add empty script list.
10869 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10870
108712008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10872
10873 * Makefile.in (dot, dotdot): Remove, update users.
10874 ".." has been used elsewhere in the file for a long time.
10875 (LIBXT_STATIC): Remove conditional based on unused variable.
10876
108772008-06-01 Miles Bader <miles@gnu.org>
10878
10879 * xfaces.c (Vface_remapping_alist): New variable.
10880 (syms_of_xfaces): Initialize it.
10881 (enum named_merge_point_kind): New type.
10882 (struct named_merge_point): Add `named_merge_point_kind' field.
10883 (push_named_merge_point): Make cycle detection respect different
10884 named-merge-point kinds.
10885 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10886 Remove face-name alias resolution.
10887 (lface_from_face_name): New definition using
10888 `lface_from_face_name_no_resolve'.
10889 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10890 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10891 (get_lface_attributes): New definition that layers face-remapping on
10892 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10893 (lookup_basic_face): New function.
10894 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10895 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10896 `get_lface_attributes'.
10897 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10898 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10899 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10900
10901 * xdisp.c (init_iterator): Pass base_face_id through
10902 `lookup_basic_face' when we actually use it as a face-id.
10903 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10904 DEFAULT_FACE_ID.
10905
10906 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10907 lookup the initial face-id.
10908
10909 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10910
109112008-06-01 Juanma Barranquero <lekktu@gmail.com>
10912
10913 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10914 (Fremove_text_properties): Fix typos in docstrings.
10915
109162008-05-31 Kenichi Handa <handa@m17n.org>
10917
10918 * font.c (font_list_entities): Fix the car part of data to be
10919 stored in the cache.
10920
10921 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10922
109232008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10924
10925 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10926 Add a `test' argument so another predicate than `equal' can be used.
10927 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10928 (map_char_table): Remove unused vars `c' and `i'.
10929 * lisp.h (Foptimize_char_table): Adjust declaration.
10930 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10931
109322008-05-30 Kenichi Handa <handa@m17n.org>
10933
10934 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10935 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10936 defined.
10937
109382008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10939
10940 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10941 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10942 frame-local settings for the same variable.
10943
109442008-05-30 Kenichi Handa <handa@m17n.org>
10945
10946 * fontset.c (Ffont_info): Move to font.c.
10947 (syms_of_fontset): Delete defsubr of Sfont_info.
10948
10949 * font.c (font_style_to_value, font_score): Delete casting of the
10950 args to xstcasecmp.
10951 (register_font_driver): Increment num_font_drivers only when
10952 registering the driver globally.
10953 (Ffont_info): Move from fontset.c. Handle a font object too.
10954 (syms_of_font): Defsubr Sfont_info.
10955
109562008-05-29 Kenichi Handa <handa@m17n.org>
10957
10958 * coding.h (enum define_coding_utf8_arg_index): New enum.
10959 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10960 coding_attr_utf_bom.
10961 (enum utf_bom_type): Rename from utf_16_bom_type.
10962 (struct utf_16_spec): Adjust for the above change.
10963 (struct coding_system): Add utf_8_bom in `spec' union.
10964
10965 * coding.c (CODING_UTF_8_BOM): New macro.
10966 (enum coding_category): Delete coding_category_utf_8, add
10967 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10968 coding_category_utf_8_sig.
10969 (CATEGORY_MASK_UTF_8): Delete it.
10970 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10971 (CATEGORY_MASK_UTF_8_SIG): New macros.
10972 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10973 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10974 CATEGORY_MASK_UTF_8_SIG.
10975 (CATEGORY_MASK_UTF_8): New macro.
10976 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10977 (detect_coding_utf_8): Check BOM.
10978 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10979 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10980 (encode_coding_utf_16): Likewise.
10981 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10982 (detect_coding, detect_coding_system): Handle utf-8-auto.
10983 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10984 (syms_of_coding): Fix setting up of Vcoding_category_table.
10985
109862008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10987
10988 * process.c (Faccept_process_output): If `millisec' is non-nil,
10989 `seconds' default to 0.
10990 (wait_reading_process_output): Also return non-nil if we read output
10991 from a non-running process.
10992
109932008-05-29 Jason Rumney <jasonr@gnu.org>
10994
10995 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10996 `raster' specified.
10997 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10998 in the uniscribe backend, but disallow any font that has no
10999 unicode subrange support.
11000
110012008-05-29 Juanma Barranquero <lekktu@gmail.com>
11002
11003 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11004 Fix typos in docstrings.
11005
110062008-05-29 Kenichi Handa <handa@m17n.org>
11007
11008 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11009 (Fx_family_fonts): Set frame correctly.
11010
110112008-05-28 Jason Rumney <jasonr@gnu.org>
11012
11013 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11014
110152008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11016
11017 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11018 calling build_annotations.
11019
110202008-05-28 Juanma Barranquero <lekktu@gmail.com>
11021
11022 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11023 (Fencode_coding_string):
11024 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11025 <latin-extra-code-table>: Fix typos in docstrings.
11026 (syms_of_coding) <coding-system-alist>: Doc fix.
11027 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11028
110292008-05-28 Kenichi Handa <handa@m17n.org>
11030
11031 * fontset.c (Ffont_info): Don't call font_close_object.
11032
11033 * font.c (font_parse_family_registry): Use Ffont_put to validate
11034 foundry and family.
11035 (font_delete_unmatched): Don't check spacing.
11036 (font_list_entities): Add spacing to the spec to list fonts.
11037
11038 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11039 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11040
11041 * coding.c (encode_coding_raw_text): Fix previous change.
11042 (encode_coding_object): When the dst_object is a buffer and is
11043 different from src_object, move gap to PT.
11044
110452008-05-27 Chong Yidong <cyd@stupidchicken.com>
11046
11047 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11048
110492008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11050
11051 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11052 all branches. Compute it differently.
11053
11054 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11055
110562008-05-27 Juanma Barranquero <lekktu@gmail.com>
11057
11058 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11059 into "else if () ... else ...".
11060
110612008-05-27 Jason Rumney <jasonr@gnu.org>
11062
11063 * w32font.c (w32font_open_internal): Determine if glyph indices
11064 are likely to work here.
11065
110662008-05-27 Chong Yidong <cyd@stupidchicken.com>
11067
11068 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11069 draw overlap glyphs with appropriate highlighting.
11070
110712008-05-27 Kenichi Handa <handa@m17n.org>
11072
11073 * xfont.c (xfont_open): Fix calculation of font->average_width.
11074
110752008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11076
11077 * casefiddle.c (casify_object): Try to guess better whether the
11078 argument is a byte or a char.
11079
110802008-05-26 Andreas Schwab <schwab@suse.de>
11081
11082 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11083 Always send multiples of format size.
11084
11085 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11086
110872008-05-26 Jason Rumney <jasonr@gnu.org>
11088
11089 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11090 (compute_metrics): Don't set failure if we just cleared the cache.
11091 (w32_weight_table): Remove unused variable.
11092 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11093 backwards compatibility.
11094
110952008-05-25 Kenichi Handa <handa@m17n.org>
11096
11097 * w32term.c (x_draw_glyph_string):
11098 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11099
11100 * xfaces.c: Delete unused function prototypes.
11101 (xstrlwr, font_frame): Delete them.
11102 (clear_face_cache): Delete unused variable.
11103
11104 * xftfont.c (xftfont_open): Delete unused variable.
11105 If underline_thickness is not 1, adjust underline_position.
11106
11107 * ftxfont.c (ftxfont_open): Delete unused variable.
11108
11109 * fontset.c (face_for_char): Optimize for the case of no charset
11110 property.
11111
11112 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11113 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11114 (otf_open, font_otf_capability, generate_otf_features)
11115 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11116 Comment out by surrounding "#if 0" and "#endif" for the moment.
11117 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11118 (syms_of_font): Codes for accessing above commented out.
11119
111202008-05-24 Eli Zaretskii <eliz@gnu.org>
11121
11122 * w32proc.c: Include dispextern.h.
11123
11124 * w32.c: Include dispextern.h.
11125
111262008-05-23 Juanma Barranquero <lekktu@gmail.com>
11127
11128 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11129 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11130 Fix typos in docstrings.
11131
111322008-05-23 Jason Rumney <jasonr@gnu.org>
11133
11134 * xsmfns.c: Remove includes that are already included by config.h.
11135
111362008-05-23 Kenichi Handa <handa@m17n.org>
11137
11138 * charset.c (Qemacs, charset_emacs): New variables.
11139 (char_charset): Fix for non-Unicode characters.
11140 (syms_of_charset): Define charset_emacs.
11141
11142 * w32term.c (x_draw_glyph_string): Be sure to update
11143 s->underline_thickness and s->underline_position. Be sure to draw
11144 underline within the current line area.
11145
11146 * xterm.c (x_draw_glyph_string): Be sure to update
11147 s->underline_thickness and s->underline_position. Be sure to draw
11148 underline within the current line area.
11149
11150 * fontset.c: Delete unused variables and add casting for char *
11151 throughout the file.
11152 (fontset_font): Try the fallback fonts of the current fontset
11153 before consulting the default fontset.
11154
11155 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11156
11157 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11158
111592008-05-22 Jason Rumney <jasonr@gnu.org>
11160
11161 * font.c: Don't include strings.h.
11162
11163 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11164
11165 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11166 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11167 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11168 to call xstrcasecmp.
11169
11170 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11171
11172 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11173
11174 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11175
11176 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11177
111782008-05-22 Kenichi Handa <handa@m17n.org>
11179
11180 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11181
11182 * font.c (font_prop_validate_style): Adjust for the format
11183 change of font_style_table.
11184
11185 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11186 two args.
11187
11188 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11189 two args.
11190
111912008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11192
11193 * minibuf.c (keys_of_minibuf): Delete.
11194 * lisp.h (keys_of_minibuf): Delete.
11195 * emacs.c (main): Don't call keys_of_minibuf.
11196
111972008-05-22 Kenichi Handa <handa@m17n.org>
11198
11199 * ftfont.c (ftfont_resolve_generic_family): Rename from
11200 ftfont_list_generic_family. Return a single family for each
11201 generic family.
11202 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11203 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11204 Call font_add_log.
11205 (ftfont_match): Call font_add_log.
11206
11207 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11208 (FONT_DEBUG): Define it.
11209 (font_add_log): Extern it.
11210 (font_assert): Rename from xassert.
11211
11212 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11213 (xfont_list_family): Call font_add_log.
11214 (xfont_match): Likewise.
11215 (memq_no_quit): Delete.
11216
11217 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11218 call of Ffont_xlfd_name.
11219
11220 * xfaces.c (struct table_entry, slant_table, weight_table)
11221 (swidth_table): Move to font.c.
11222
11223 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11224 xassert are changed to font_assert. Delete many unused variables.
11225 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11226 New variables.
11227 (struct table_entry): Move from xfaces.c and modified.
11228 (weight_table, slant_table, width_table): Move from xfaces.c and
11229 contents adjusted for the change of struct table_entry.
11230 (font_style_to_value, font_style_symbolic): Adjust for the
11231 format change of font_style_table.
11232 (font_parse_family_registry): Don't overwrite existing foundry and
11233 family of font_spec.
11234 (font_score): Fix calculation of diff for sizes.
11235 (font_sort_entites): Call font_add_log.
11236 (font_delete_unmatched): Return a newly created list.
11237 (font_list_entities): Fix previous change. Call font_add_log.
11238 (font_matching_entity, font_open_entity, font_close_entity):
11239 Call font_add_log.
11240 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11241 (Finternal_set_font_style_table): Delete.
11242 (BUILD_STYLE_TABLE): New macro.
11243 (build_style_table): New function.
11244 (Vfont_log, font_log_env_checked): New variables.
11245 (font_add_log): New function.
11246 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11247 Declare Lisp variables "font-weight-table", "font-slant-table",
11248 "font-width-table", and "font-log". Initialize font_style_table.
11249
112502008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11251
11252 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11253
112542008-05-21 Seiji Zenitani <zenitani@mac.com>
11255 Ryo Yoshitake <ryo@shiftmode.net>
11256
11257 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11258 (Vframe_alpha_lower_limit): New variable.
11259 (x_set_alpha): New function.
11260
11261 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11262
11263 * xfns.c (x-create-frame, Qalpha):
11264 Initialize the frame parameter `alpha'.
11265 * xterm.c (OPAQUE, OPACITY): New.
11266 (x_set_frame_alpha): New function.
11267 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11268
11269 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11270 * w32fns.c (w32_frame_parm_handlers): Likewise.
11271
112722008-05-20 Jason Rumney <jasonr@gnu.org>
11273
11274 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11275 truetype fonts to opentype list.
11276
112772008-05-20 Juanma Barranquero <lekktu@gmail.com>
11278
11279 * fontset.c (Ffontset_info): Doc fix.
11280 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11281 <ignore-relative-composition>: Fix typos in docstrings.
11282
11283 * font.c (syms-of-font) <font-encoding-alist>:
11284 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11285 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11286 (Ffont_otf_alternates): Doc fixes.
11287
112882008-05-20 Kenichi Handa <handa@m17n.org>
11289
11290 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11291 font.h through out the file.
11292 (FONT_DRIVERS): Rename from FONTOBJ.
11293 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11294 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11295
11296 * emacs.c (main): Call syms_of_font unconditionally.
11297
11298 * font.h (find_font_encoding): Extern it.
11299
11300 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11301 fontset.c.
194d44e7 11302 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11303 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11304 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11305 only when HAVE_WINDOW_SYSTEM is defined.
11306 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11307 when HAVE_WINDOW_SYSTEM is defined.
11308
11309 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11310 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11311
11312 * xfaces.c: Include font.h unconditionally.
11313 (merge_face_ref, merge_face_vectors)
11314 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11315
113162008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11319 indirect_variable.
11320 * eval.c (lisp_indirect_variable): New fun.
11321 (Fuser_variable_p): Use it.
11322
113232008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11324
11325 * lisp.h (indirect_variable):
11326 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11327 Use Lisp_Symbol pointers rather than Lisp_Object.
11328 Adjust callers.
11329 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11330 To this end, change calling-convention.
11331
11332 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11333 if some non-hidden buffers are selected by string&pred.
11334
113352008-05-19 Chong Yidong <cyd@stupidchicken.com>
11336
11337 * process.c (wait_reading_process_output): Always check status
11338 when in batch mode.
11339
113402008-05-19 Kenichi Handa <handa@m17n.org>
11341
11342 * font.c (font_list_entities): Fix handling of cache.
11343 (font_matching_entity): Likewise.
11344
11345 * ftfont.c (cs_iso8859_1): Delete.
11346 (ft_face_cache): New variable.
11347 (struct ftfont_info): New member fc_charset_idx.
11348 (ftfont_build_basic_charsets): Delete.
11349 (fc_charset_table): New variable.
11350 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11351 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11352 Callers changed.
11353 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11354 (ftfont_spec_pattern): New argument fc_charset_idx.
11355 Check registry more rigidly. Change callers.
11356 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11357 change of :font-entity property of the font.
11358
11359 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11360 property of the font.
11361
113622008-05-18 Juanma Barranquero <lekktu@gmail.com>
11363
11364 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11365 (Funencodable_char_position, Fcheck_coding_systems_region)
11366 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11367 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11368 (Ffind_operation_coding_system, Fset_coding_system_priority)
11369 (Fcoding_system_eol_type): Doc fixes.
11370
113712008-05-17 Glenn Morris <rgm@gnu.org>
11372
11373 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11374
113752008-05-16 Eli Zaretskii <eliz@gnu.org>
11376
11377 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11378 and st_gid.
11379
11380 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11381 HAVE_WINDOW_SYSTEM is not defined.
11382
11383 * xfaces.c (merge_face_ref, merge_face_vectors)
11384 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11385 HAVE_WINDOW_SYSTEM is defined.
11386 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11387
113882008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11389
11390 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11391
113922008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11393
11394 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11395
113962008-05-15 Kenichi Handa <handa@m17n.org>
11397
11398 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11399 preference.
11400
114012008-05-15 Glenn Morris <rgm@gnu.org>
11402
11403 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11404
114052008-05-15 Chong Yidong <cyd@stupidchicken.com>
11406
11407 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11408 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11409
11410 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11411
114122008-05-15 Kenichi Handa <handa@m17n.org>
11413
11414 * ftfont.c (ftfont_list): Downcase family name to check generic
11415 families.
11416
11417 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11418 font-spec for QCfont value.
11419
11420 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11421 buffer. Check the return value of it.
11422
114232008-05-14 Jason Rumney <jasonr@gnu.org>
11424
11425 * w32term.c (w32_get_glyph_overhangs): Remove.
11426 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11427
114282008-05-14 Kenichi Handa <handa@m17n.org>
11429
11430 * font.c (font_prop_validate): Make nil a valid value.
11431 (font_clear_cache): Check if the cached vector of entities is nil
11432 or not.
11433
114342008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11435
11436 * emacs.c (main_thread): Conditionalize on
11437 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11438 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11439
11440 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11441 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11442 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11443
114442008-05-14 Kenichi Handa <handa@m17n.org>
11445
11446 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11447 has no corresponding coding system.
11448
114492008-05-14 Jason Rumney <jasonr@gnu.org>
11450
11451 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11452
11453 * w32font.h (w32font_open_internal): Update declaration.
11454
11455 * w32font.c (w32font_open_internal): Change last argument from
11456 w32font_info struct to font object. Fill in font object from
11457 font_entity. Get Outline metrics if possible. Use them to
11458 calculate underline position and thickness. Use xlfd name as name
11459 property. Don't set codepage.
11460 (w32font_open): Pass font_object to w32font_open_internal. Don't
11461 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11462 (w32font_draw): Use s->font.
11463 (clear_cached_metrics): Don't clear non-existent blocks.
11464
11465 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11466 font was not found.
11467 (x_draw_glyph_string): Use underline position and thickness from font.
11468
11469 * w32uniscribe.c (uniscribe_open): Pass font_object to
11470 w32font_open_internal.
11471
114722008-05-14 Kenichi Handa <handa@m17n.org>
11473
11474 These changes are to delete all legacy font-handling codes, and
11475 make Emacs use only font-backends.
11476
11477 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11478 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11479
11480 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11481
11482 * charset.h (Vcharset_non_preferred_head)
11483 (Vcurrent_iso639_language): Extern them.
11484
11485 * charset.c (Vcharset_non_preferred_head): New variable.
11486 (Vcurrent_iso639_language): New variable.
11487 (syms_of_charset): Declare it as a Lisp variable.
11488 (char_charset): Don't check non preferred charsets. As a last
11489 resort, return charset_unicode.
11490 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11491
11492 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11493 conditionals. Don't check enable_font_backend. Delete all codes
11494 used only when USE_FONT_BACKEND is not defined.
11495
11496 * dispextern.h (struct glyph_string): Change type of `font' to
11497 `struct font *'.
11498 (struct glyph_string): New member underline_position and
11499 underline_thickness.
11500 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11501 (struct face): Change type of `font' to `struct font *'. Remove
11502 members `font_name', `font_info_id'.
11503 (per_char_metric, encode_char): Delete externs.
11504 (calc_pixel_width_or_height): Adjust the prototype.
11505
11506 * emacs.c (enable_font_backend): Delete extern.
11507 (main): Don't set enable_font_backend. Don't check the command
11508 line argument "-disable-font-backend".
11509
11510 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11511 (enum font_property_index): New members FONT_DPI_INDEX,
11512 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11513 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11514 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11515 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11516 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11517 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11518 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11519 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11520 (struct font_spec, struct font_entity): New structs.
11521 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11522 (struct font): Many members from old "struct font_info" moved to
11523 here. Members font and entity deleted.
11524 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11525 the new font-related objects.
11526 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11527 (CHECK_FONT_GET_OBJECT): Likewise.
11528 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11529 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11530 (struct font_driver): New members case_sensitive anc check. Type
11531 of the member list and open changed.
11532 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11533 (font_symbolic_width, font_find_object, font_get_spec)
11534 (font_set_lface_from_name): Delete extern.
11535 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11536
11537 * font.c: Include <strings.h>.
11538 (enable_font_backend): Delete it.
11539 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11540 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11541 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11542 (null_string): Delete it.
11543 (null_vector): Make it static.
11544 (font_family_alist): Delete it.
11545 (Qnormal): Extern it.
11546 (QCextra, QClanguage): Delete it.
11547 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11548 (font_make_spec, font_make_entity, font_make_object)
11549 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11550 the string. Callers changed.
11551 (font_pixel_size): Adjusted for the format change of font-related
11552 objects.
11553 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11554 (font_style_to_value, font_style_symbolic): New function.
11555 (build_font_family_alist): Delete it.
11556 (font_registry_charsets): Use Fassoc_string instead of
11557 assq_no_quit.
11558 (font_prop_validate_symbol): Don't return null_string.
11559 (font_prop_validate_style): Adjusted for the change of
11560 style-related values in a font vector.
11561 (font_property_table): Delete entries for QClanguage and
11562 QCantialias, add entries for QCavgwidth.
11563 (get_font_prop_index): Delete the 2nd argument FROM.
11564 (font_prop_validate): Arguments changed.
11565 (font_put_extra): Adjusted for the change of font-related objects.
11566 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11567 (font_parse_fcname, font_unparse_fcname)
11568 (font_prepare_composition): Likewise.
11569 (font_parse_family_registry): Renamed from font_merge_old_spec.
11570 (otf_open): Delete the 1st arg entity.
11571 (font_otf_capability): Adjusted for the above change.
11572 (font_score): New arg alternate_families. Adjusted for the change
11573 of font-related objects.
11574 (font_sort_entites): New arg best_only.
11575 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11576 Delete them.
11577 (font_match_p): Check alternate families.
11578 (font_find_object): Delete it.
11579 (font_check_object): New function.
11580 (font_clear_cache): Adjusted for the change of font-related objects.
11581 (font_delete_unmatched): New arg.
11582 (font_list_entities): Call font_driver->list with a spec that
11583 doesn't specify style-related properties.
11584 (font_matching_entity): Arguments changed. Caller changed.
11585 (font_open_entity): Adjusted for the change of font-related objects.
11586 (font_close_object, font_has_char, font_encode_char)
11587 (font_get_name, font_get_spec): Likewise.
11588 (font_spec_from_name, font_clear_prop, font_update_lface):
11589 New functions.
11590 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11591 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11592 (font_at): Adjusted for the change of font-related objects.
11593 (font_range): New function.
11594 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11595 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11596 (Fcopy_font_spec, Fmerge_font_spec): New function.
11597 (Ffont_family_list): Renamed from list-families.
11598 (Finternal_set_font_style_table): Arguments changed.
11599 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11600 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11601 change of font-related objects.
11602 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11603
11604 * fontset.h (struct font_info): Delete it. Most members go to
11605 struct font.
11606 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11607 (enum FONT_SPEC_INDEX): Delete it.
11608 (font_info, list_fonts_func, load_font_func, query_font_func)
11609 (set_frame_fontset_func, find_ccl_program_func)
11610 (get_font_repertory_func, new_fontset_from_font_name): Delete
11611 externs.
11612 (fontset_from_font_name): Extern it.
11613 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11614 (FONT_INFO_FROM_FACE): Deleted.
11615 (face_for_font): Adjust prototype.
11616
11617 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11618 conditionals. Don't check enable_font_backend. Delete all codes
11619 used only when USE_FONT_BACKEND is not defined.
11620 (get_font_info_func, list_font_func, load_font_func)
11621 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11622 (get_font_repertory_func): Delete them.
11623 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11624 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11625 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11626 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11627 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11628 (fontset_compare_rfontdef): New function.
11629 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11630 rfont-defs by qsort. Adjusted for the change of font-group vector.
11631 (load_font_get_repertory): Deleted.
11632 (fontset_find_font): Use new macros to ref/set elements of
11633 font-def and rfont-def.
11634 (fontset_font): Fix the timing of remembering that no font for C.
11635 (free_face_fontset): Do nothing if the face has no fontset.
11636 (face_suitable_for_char_p): Use new macros to ref/set elements of
11637 rfont-def.
11638 (face_for_char): Likewise. Call face_for_char with font_object.
11639 (fs_load_font): Delete. Delete #pragma surrounding it.
11640 (fs_query_fontset): Use strcasecmp instead of strcmp.
11641 (generate_ascii_font_name): Adjusted for the format change of
11642 font-spec.
11643 (Fset_fontset_font): Likewise. Use new macros to set elements of
11644 font-def.
11645 (Fnew_fontset): Use font_unparse_xlfd to generate
11646 FONTSET_ASCII (fontset).
11647 (new_fontset_from_font_name): Deleted.
11648 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11649 a fontset is already created for the font. FIx updating of
11650 Vfontset_alias_alist.
11651 (fontset_ascii_font): Deleted.
11652 (Ffont_info): Adjusted for the format change of font-spec.
11653 (Finternal_char_font): Likewise.
11654 (Ffontset_info): Likewise.
11655 (syms_of_fontset): Don't check load_font_func.
11656
11657 * fns.c (internal_equal): Handle PREV_FONT.
11658
11659 * frame.h: Delete USE_FONT_BACKEND conditional.
11660
11661 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11662 conditionals. Don't check enable_font_backend. Delete all codes
11663 used only when USE_FONT_BACKEND is not defined.
11664 (x_set_font): Call x_new_font, not x_new_fontset2.
11665 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11666 already set for the frame.
11667
11668 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11669 a font-entity by font_make_entity. Use font_intern_prop instead
11670 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11671 font property. If a font is scalable, set avgwidth property to 0.
11672 Set font-entity property by font_put_extra.
11673 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11674 (ffont_driver): Adjusted for the change of struct font_driver.
11675 (ftfont_spec_pattern): New function.
11676 (ftfont_list): Return a list, not vector.
11677 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11678 (ftfont_list_family): Don't downcase names.
11679 (ftfont_free_entity): Deleted.
11680 (ftfont_open): Return a font-object. Adjusted for the change of
11681 struct font. Get underline_thickness and underline_position from
11682 font property. Don't update dpyinfo->smallest_font_height and
11683 dpyinfo->smallest_char_width.
11684 (ftfont_close): Don't free `struct font'.
11685 (ftfont_has_char): Adjusted for the format change of font-entity.
11686 (ftfont_encode_char, ftfont_text_extents): Likewise.
11687
11688 * ftxfont.c (ftxfont_list): Return a list, not vector.
11689 (ftxfont_open): Return a font-object. Adjusted for the change of
11690 struct font. Get underline_thickness and underline_position from
11691 font property. Don't update dpyinfo->smallest_font_height and
11692 dpyinfo->smallest_char_width.
11693 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11694 (ftxfont_draw): Adjusted for the change of struct font.
11695
11696 * image.c (image_ascent): Don't include "charset.h". Include
11697 "character.h" and "font.h".
11698
11699 * lisp.h (enum pvec_type): New member PREV_FONT.
11700 (Fassoc_string): EXFUN it.
11701
11702 * print.c: Include font.h.
11703 (print_object): Handle font-related objects.
11704
11705 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11706 conditionals. Don't check enable_font_backend. Delete all codes
11707 used only when USE_FONT_BACKEND is not defined.
11708 (handle_auto_composed_prop): Do nothing if it->f is not on a
11709 window system. Check how many following characters can be
11710 displayed by the same font.
11711 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11712 'struct font *'.
11713 (get_char_face_and_encoding): Assign the whole encoding task to
11714 the `encode-char' method of a font driver.
11715 (fill_composite_glyph_string): Adjusted for the change of `struct
11716 face' and `struct glyph_string'.
11717 (fill_glyph_string): Likewise.
11718 (get_per_char_metric): Arguments changed.
11719 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11720 and `struct glyph_string'.
11721 (produce_stretch_glyph, calc_line_height_property)
11722 (x_produce_glyphs): Likewise.
11723
11724 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11725 conditionals. Don't check enable_font_backend. Delete all codes
11726 used only when USE_FONT_BACKEND is not defined. Use
11727 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11728 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11729 (Qp): Extern them.
11730 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11731 Deleted.
11732 (struct font_name): Deleted.
11733 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11734 (compare_fonts_by_sort_order): New function.
11735 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11736 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11737 Deleted.
11738 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11739 compare_fonts_by_sort_order.
11740 (Fx_font_family_list): Call Ffont_family_list.
11741 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11742 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11743 (face_symbolic_slant, face_symbolic_swidth)
11744 (split_font_name_into_vector, build_font_name_from_vector)
11745 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11746 (font_rescale_ratio, split_font_name, build_font_name)
11747 (free_font_names, sort_fonts, x_face_list_fonts)
11748 (face_font_available_p, sorted_font_list, cmp_font_names)
11749 (font_list_1, concat_font_list, font_list, remove_duplicates):
11750 Deleted.
11751 (Fx_list_fonts): Use Ffont_list.
11752 (LFACE_AVGWIDTH): Deleted.
11753 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11754 by FONTP.
11755 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11756 (set_lface_from_font_name): Delete it.
11757 (set_lface_from_font): Renamed from
11758 set_lface_from_font_and_fontset. Caller changed. Don't set
11759 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11760 for face.
11761 (merge_face_vectors): Copy font-spec if necessary.
11762 Clear properties of the font-spec if necessary.
11763 (merge_face_ref): Clear properties of the font-spec if necessary.
11764 (Finternal_set_lisp_face_attribute): Likewise.
11765 (set_font_frame_param): Use font_load_for_lface to load a
11766 font-object, and call Fmodify_frame_parameters with it.
11767 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11768 font name by Ffont_xlfd_name.
11769 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11770 QCslant, and QCwidth.
11771 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11772 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11773 Compare fonts by EQ.
11774 (lookup_non_ascii_face): Deleted.
11775 (face_for_font): The 2nd argument changed.
11776 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11777 Check atomic font properties by case insensitive.
11778 (realize_non_ascii_face): Set face->overstrike correctly.
11779 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11780 (dump_realized_face): Get font name from
11781 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11782
11783 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11784 conditionals. Don't check enable_font_backend. Delete all codes
11785 used only when USE_FONT_BACKEND is not defined.
11786 (xic_create_xfontset): Original code deleted and renamed from
11787 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11788 (x_make_gc): Don't set GCFont in GCs.
11789 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11790 opened by "fixed".
11791 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11792 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11793 get_font_repertory_func.
11794
11795 * xfont.c: Include <stdlib.h> and "ccl.h".
11796 (struct xfont_info): New structure.
11797 (xfont_query_font): Deleted.
11798 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11799 moved from xterm.c.
11800 (xfont_driver): Adjusted for the change of struct font_driver.
11801 (compare_font_names): New function.
11802 (xfont_list_pattern): Sort font names case insensitively. Make
11803 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11804 (xfont_list): Return a list, not vector.
11805 (xfont_match): If the font doesn't have QCname property, generate
11806 a name from the other font properties.
11807 (xfont_open): Return a font-object. Adjusted for the change of
11808 struct font. Get underline_thickness and underline_position from
11809 font property. Don't update dpyinfo->smallest_font_height and
11810 dpyinfo->smallest_char_width.
11811 (xfont_close): Don't free struct font.
11812 (xfont_prepare_face): Adjusted for the change of struct font.
11813 (xfont_done_face): Deleted.
11814 (xfont_has_char): Adjusted for the change of struct font.
11815 (xfont_encode_char, xfont_draw): Likewise.
11816 (xfont_check): New function.
11817
11818 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11819 callback function.
11820 (xftfont_match): Adjusted for the format change of font-entity.
11821 (xftfont_open): Adjusted for the format change of font-entity and
11822 font-object. Adjusted for the change of struct font. Return a
11823 font-object. Don't update dpyinfo->smallest_font_height and
11824 dpyinfo->smallest_char_width.
11825 (xftfont_close): Block input while calling XftFontClose.
11826 (xftfont_prepare_face): Don't block input while calling
11827 xftfont_get_colors. Adjusted for the change of struct font.
11828 (xftfont_shape): Return value of error case fixed.
11829
11830 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11831
11832 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11833 conditionals.
11834 (FONT_WIDTH): Return (f)->max_width.
11835 (struct x_display_info): Delete member `font'.
11836 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11837 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11838 (struct x_output): Change type of `font' to `struct font *'.
11839
11840 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11841 conditionals. Don't check enable_font_backend. Delete all codes
11842 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11843 (x_per_char_metric, x_encode_char): Deleted.
11844 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11845 (x_compute_glyph_string_overhangs): Adjusted for the change of
11846 `struct face'.
11847 (x_draw_glyph_string_foreground)
11848 (x_draw_composite_glyph_string_foreground): Likewise.
11849 (x_draw_glyph_string): Likewise. Use font->underline_position and
11850 font->underline_thickness.
11851 (x_new_font): Renamed from x_new_fontset2.
11852 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11853 (x_check_font): Call `check' method of a font driver.
11854 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11855 (x_query_font, x_get_font_repertory): Deleted.
11856 (x_find_ccl_program): Renamed and moved to xfont.c.
11857 (x_redisplay_interface): Adjusted for the change of `struct
11858 redisplay_interface'.
11859
11860 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11861 conditionals. Don't check enable_font_backend. Delete all codes
11862 used only when USE_FONT_BACKEND is not defined. Surround non-used
11863 code by "#ifdef OLD_FONT" and "endif".
11864 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11865
11866 * w32font.h (struct w32font_info): New member.
11867 (FONT_COMPAT): New macro.
11868 (w32font_open_internal): Prototype adjusted.
11869
11870 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11871 OLD_FONT" and "endif".
11872
11873 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11874 conditionals. Don't check enable_font_backend. Delete all codes
11875 used only when USE_FONT_BACKEND is not defined.
11876 (w32font_open): Return a font-object. Make a font-object by
11877 font_make_object. Adjusted for the change of struct w32font_info.
11878 (w32font_close): Don't free struct font. Adjusted for the change
11879 of struct w32font_info.
11880 (w32font_encode_char, w32font_text_extents, w32font_draw):
11881 Adjusted for the change of struct w32font_info.
11882 (w32font_draw): Likewise.
11883 (w32font_list_internal): Return a list, not vector.
11884 (w32font_open_internal): Change the 4th arg to font-object.
11885 Adjusted for the change of struct w32font_info and font-object format.
11886 (add_font_name_to_list): Don't downcase names.
11887 (w32_enumfont_pattern_entity): Make a font-entity by
11888 font_make_entity. Adjusted for the format change of font-entity.
11889 Use FONT_SET_STYLE to set a style-related font property. If a
11890 font is scalable, set avgwidth property to 0. Set font-entity
11891 property by font_put_extra.
11892 (font_matches_spec): Adjusted for the format change of font-entity.
11893 (w32_weight_table, w32_decode_weight): New variables.
11894 (w32_encode_weight): New function.
11895 (fill_in_logfont): Adjusted for the format change of font-spec.
11896 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11897 weight value.
11898 (w32font_driver): Adjusted for the change of struct font_driver.
11899
11900 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11901 conditionals. Don't check enable_font_backend. Surround non-used
11902 code by "#ifdef OLD_FONT" and "endif".
11903 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11904 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11905
11906 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11907 conditionals. Don't check enable_font_backend. Delete all codes
11908 used only when USE_FONT_BACKEND is not defined. Surround non-used
11909 code by "#ifdef OLD_FONT" and "endif".
11910
11911 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11912 (uniscribe_open): Return value changed to font-object.
11913 Adjusted for the format change of font-object.
11914 (uniscribe_otf_capability): Adjusted for the change of struct font.
11915 (add_opentype_font_name_to_list): Don't downcase names.
11916 (uniscribe_font_driver): Adjusted for the change of struct
11917 font_driver.
11918
119192008-05-13 Chong Yidong <cyd@stupidchicken.com>
11920
11921 * dispnew.c (update_frame_1): Check if tty output is still valid
11922 before flushing it.
11923
119242008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11925
11926 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11927 to Gtk+ menus.
11928
119292008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * dired.c (file_name_completion): Tweak the code so as to always do it
11932 in a single pass. Tighten the scope of some variables.
11933
11934 * dired.c (Qdefault_directory): New var.
11935 (file_name_completion): Use it instead of Fexpand_file_name.
11936 (syms_of_dired): Initialize it.
11937
119382008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * fileio.c (double_dollars): Remove dead code.
11941
119422008-05-10 Eli Zaretskii <eliz@gnu.org>
11943
11944 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11945 Mention w32-get-true-file-attributes in doc string.
11946
11947 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11948
119492008-05-09 Glenn Morris <rgm@gnu.org>
11950
11951 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11952 2008-04-23.
11953
119542008-05-09 Eli Zaretskii <eliz@gnu.org>
11955
11956 Support for reporting owner and group of each file on MS-Windows:
11957 * dired.c (stat_uname, stat_gname): New functions, with special
11958 implementation for w32.
11959 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11960
11961 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11962 (dflt_group_name): New static variable.
11963 (dflt_group): Rename from the_group.
11964 (init_user_info): Init dflt_group fields. Get user's group name
11965 from LookupAccountSid.
11966 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11967 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11968 New initialization states.
11969 (globals_of_w32): Initialize them to zero. Initialize the default
11970 group name to "None".
11971 (GetFileSecurity_Name): New global var, the name of the function
11972 to call for GetFileSecurity.
11973 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11974 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11975 (get_file_security, get_security_descriptor_owner)
11976 (get_security_descriptor_group, is_valid_sid)
11977 (get_file_security_desc, get_rid, get_name_and_id)
11978 (get_file_owner_and_group): New functions.
11979 (stat): Use get_file_security_desc and get_file_owner_and_group to
11980 report the owner and primary group of each file. Don't ignore the
11981 high 32 bits of file's size, now that st_size is 64-bit wide.
11982 Fix test when to get true file attributes.
11983 (init_user_info): Use get_rid instead of equivalent inline code.
11984 (fstat): Don't ignore the high 32 bits of file's size.
11985
119862008-05-09 Chong Yidong <cyd@stupidchicken.com>
11987
11988 * image.c (png_load): Use correct bit-depth for setting background
11989 color.
11990
119912008-05-08 Eli Zaretskii <eliz@gnu.org>
11992
11993 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11994 epa-hook.elc.
11995
119962008-05-08 Juanma Barranquero <lekktu@gmail.com>
11997
11998 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11999
120002008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12001
12002 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12003 because the original parameters are in pure storage now.
12004 (mac_window): Remove unused params. Update callers.
12005
120062008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12007
12008 * lread.c (substitute_object_recurse): Use lower-level primitives.
12009 Don't signal errors when traversing sub-char-tables.
12010 Don't loop over all the possible characters when traversing char-tables.
12011
12012 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12013 just like we do in print.c.
12014
120152008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12016
12017 * minibuf.c (Ftry_completion): Remove code left over from when we used
12018 scmp instead of Fcompare_strings.
12019
120202008-05-04 Juanma Barranquero <lekktu@gmail.com>
12021
12022 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12023
120242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12025
12026 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12027 Create bitmap context in native byte order.
12028
12029 * macterm.c (XDrawLine)
12030 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12031 context in native byte order.
12032
120332008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12034
12035 * config.in: Regenerate.
12036
12037 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12038 New definitions for Image I/O support.
12039 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12040 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12041 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12042 (mac_data_provider_release_data, image_load_image_io)
12043 [USE_MAC_IMAGE_IO]: New functions.
12044 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12045 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12046 (init_image_func_pointer) [MAC_OSX]: Remove function.
12047 (image_load_quartz2d) [MAC_OSX]: Check availability of
12048 CGImageCreateWithPNGDataProvider at compile time.
12049 Use lowercase `false' for boolean constant.
12050 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12051 Use image_load_image_io.
12052 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12053 Don't check MyCGImageCreateWithPNGDataProvider.
12054 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12055 Don't call init_image_func_pointer.
12056
12057 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12058
12059 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12060 Make variable non-static.
12061 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12062 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12063
12064 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12065 (RED_FROM_ULONG): Mask off higher bits.
12066 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12067
12068 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12069 Include AvailabilityMacros.h.
12070 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12071 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12072
120732008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12074
12075 * chartab.c (Fset_char_table_range): If range is t, really set all
12076 chars to that value.
12077
120782008-05-03 Eli Zaretskii <eliz@gnu.org>
12079
12080 * dired.c (Ffile_attributes): Don't allow the device number become
12081 negative.
12082
120832008-05-02 Daiki Ueno <ueno@unixuser.org>
12084
12085 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12086
120872008-05-02 Juri Linkov <juri@jurta.org>
12088
12089 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12090 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12091 DEFAULT argument as a list of default values in docstrings.
12092
120932008-05-01 Chong Yidong <cyd@stupidchicken.com>
12094
12095 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12096
120972008-05-01 Martin Rudalics <rudalics@gmx.at>
12098
12099 * dispnew.c (change_frame_size_1): Preserve small windows when
12100 shrinking frames by calling set_window_height|width with third
12101 arg 2.
12102
12103 * window.h (struct window): Replace field too_small_ok by field
12104 resize_proportionally.
12105
12106 * window.c (make_window): Initialize resize_proportionally.
12107 (enlarge_window): Temporarily set resize_proportionally to make
12108 sure that shrink_windows does scale the window proportionally.
12109 (shrink_windows): When window has resize_proportionally set try
12110 to shrink it proportionally by stealing from other windows.
12111 (struct saved_window, Fset_window_configuration)
12112 (compare_window_configurations): Handle resize_proportionally.
12113 (WINDOW_TOTAL_SIZE): New macro.
12114 (window_min_size, shrink_windows, size_window): Use it.
12115 (check_min_window_sizes): Remove. Invalid values of
12116 window-min-height|width are handled by window_min_size_2 now.
12117 (size_window, Fsplit_window, enlarge_window)
12118 (adjust_window_trailing_edge, grow_mini_window): Don't call
12119 check_min_window_sizes.
12120 (window_min_size_2, window_min_size_1, window_min_size):
12121 New argument safe_p for retrieving "safe" minimum sizes.
12122 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12123 (adjust_window_trailing_edge, grow_mini_window):
12124 Adjust arguments of window_min_size... functions.
12125 (shrink_windows): Argument min_size removed. New argument
12126 safe_p allows shrinking windows to their safe minimum sizes.
12127 Calculate minimum size and decide whether a window shall be
12128 deleted for each window individually.
12129 (size_window): When nodelete_p equals 2, tell shrink_windows to
12130 delete windows only if their new minimum size is no more safe.
12131 (shrink_window_lowest_first): Call window_min_size_1 to make
12132 sure to preserve modeline of bottom-most window when resizing
12133 the minibuffer.
12134 (Fset_window_configuration, Fcurrent_window_configuration)
12135 (compare_window_configurations): Do not handle
12136 window-min-height|width any more.
12137 (syms_of_window): Clarify window-min-height|width doc-strings.
12138
121392008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12140
12141 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12142 some more. Copy some of the code from Ftry_completions.
12143 Remove special case code that dates back to initial revision when the
12144 slash was only added when necessary and that can't trigger nowadays.
12145
121462008-04-27 Kenichi Handa <handa@m17n.org>
12147
12148 * font.c (font_prop_validate): Signal `error' instead of `font'.
12149
121502008-04-29 Jason Rumney <jasonr@gnu.org>
12151
12152 * w32fns.c (Fw32_battery_status): New defun.
12153 (syms_of_w32fns): Defsubr it.
12154
121552008-04-28 Andreas Schwab <schwab@suse.de>
12156
12157 * dired.c (file_name_completion): Fix another mixing of encoded
12158 and decoded names.
12159
121602008-04-28 Juanma Barranquero <lekktu@gmail.com>
12161
12162 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12163
121642008-04-27 Juanma Barranquero <lekktu@gmail.com>
12165
12166 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12167
121682008-04-27 Andreas Schwab <schwab@suse.de>
12169
12170 * dired.c (file_name_completion): Fix inappropriate mixing of
12171 encoded and decoded names.
12172
12173 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12174
12175 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12176
121772008-04-26 Eli Zaretskii <eliz@gnu.org>
12178
12179 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12180 2008-03-31, it's not needed anymore with `struct stat' definition
12181 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12182 for the same reasons.
12183
121842008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12185
12186 * m/sparc.h: Additional redefinitions for GNU/Linux.
12187
121882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12189
12190 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12191 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12192 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12193 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12194 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12195 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12196 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12197 Likewise.
12198
12199 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12200 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12201 (mac_ax_number_of_characters): Add externs.
12202 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12203 [USE_MAC_TSM]: Likewise.
12204 (mac_handle_text_input_event) [MAC_OSX]:
12205 Handle kEventTextInputOffsetToPos for no active input area case.
12206 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12207 (mac_handle_document_access_event)
12208 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12209 (install_application_handler) [MAC_OSX]: Register handlers for
12210 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12211 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12212 Register mac_handle_document_access_event.
12213
12214 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12215 Make functions non-static.
12216
122172008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12218
12219 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12220 (read_file_name_completion_ignore_case, insert_default_directory)
12221 (Qdefault_directory): Move to minibuffer.el.
12222 (Fread_file_name): Call the new `read-file-name' instead.
12223
122242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12225
12226 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12227 Make function non-static.
12228 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12229 Remove function.
12230 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12231 Move to mactoolbox.c.
12232 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12233
12234 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12235 (mac_rect_make): New macro.
12236
12237 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12238 instead of float.
12239 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12240 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12241 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12242 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12243 CGRectMake.
12244 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12245 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12246 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12247 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12248 instead of WindowRef in argument type.
12249 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12250 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12251 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12252 instead of DISPLAY. All uses changed.
12253 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12254 (x_calc_absolute_position): Simplify so as not to use
12255 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12256
12257 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12258 instead of WindowRef in argument type.
12259 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12260 [TARGET_API_MAC_CARBON]: Remove externs.
12261 (create_apple_event, mac_event_parameters_to_lisp)
12262 [TARGET_API_MAC_CARBON]: Add externs.
12263
12264 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12265 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12266 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12267 is clicked.
12268 (x_activate_menubar): Remove extern for saved_menu_event_location.
12269 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12270 Move from mac.c.
12271
122722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12273
12274 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12275 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12276
122772008-04-23 Jason Rumney <jasonr@gnu.org>
12278
12279 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12280 attributes only for local files.
12281
12282 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12283 default to Qlocal.
12284
122852008-04-22 Juri Linkov <juri@jurta.org>
12286
12287 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12288 read-buffer-to-switch instead of using the letter "B".
12289
122902008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12291
12292 * fileio.c (Qdefault_directory): New variable.
12293 (Fread_file_name): Use it to pass `dir' to the completion functions.
12294
122952008-04-20 Chong Yidong <cyd@stupidchicken.com>
12296
12297 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12298
122992008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12300
12301 * keyboard.c (Vpre_help_message): Remove.
12302 (show_help_echo): Remove default C code.
12303
12304 * dired.c (directory_files_internal, file_name_completion):
12305 Only call ENCODE_FILE if the string is indeed decoded.
12306
123072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12308
12309 * Makefile.in (TOOLKIT_DEFINES): Remove.
12310 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12311
123122008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12313
12314 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12315 (mactoolbox.o): New target.
12316
12317 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12318 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12319
12320 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12321 Use mac_set_frame_window_background instead of XSetWindowBackground.
12322 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12323 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12324 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12325 instead of SetWindowTitleWithCFString.
12326 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12327 Move function to mactoolbox.c.
12328 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12329 Use mac_set_window_modified instead of SetWindowModified.
12330 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12331 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12332 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12333 FrontNonFloatingWindow. Use mac_activate_window instead of
12334 ActivateWindow. Use mac_active_non_floating_window instead of
12335 ActiveNonFloatingWindow.
12336 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12337 Use mac_show_hourglass and mac_hide_hourglass.
12338 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12339 instead of GetGlobalMouse.
12340 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12341 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12342 Use mac_bring_window_to_front instead of BringToFront.
12343 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12344 mactoolbox.c.
12345 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12346 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12347 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12348 mactoolbox.c.
12349
12350 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12351 (XtPointer): Move typedef from macmenu.c.
12352 (enum button_type): Move enum from macmenu.c.
12353 (widget_value): Move typedef from macmenu.c.
12354 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12355 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12356 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12357 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12358 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12359 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12360 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12361 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12362 (Selection): Move typedef from macselect.c.
12363 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12364 macterm.c.
12365 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12366 (mac_is_window_collapsed, mac_bring_window_to_front)
12367 (mac_send_window_behind, mac_hide_window, mac_show_window)
12368 (mac_collapse_window, mac_front_non_floating_window)
12369 (mac_active_non_floating_window, mac_activate_window)
12370 (mac_move_window_structure, mac_move_window, mac_size_window)
12371 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12372
12373 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12374 (enum mac_menu_kind): Move enum to mactoolbox.c.
12375 (min_menu_id): Move variable to mactoolbox.c.
12376 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12377 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12378 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12379 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12380 [TARGET_API_MAC_CARBON]: Likewise.
12381 (XtPointer): Move typedef to macgui.h.
12382 (enum button_type): Move enum to macgui.h.
12383 (widget_value): Move typedef to macgui.h.
12384 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12385 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12386 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12387 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12388 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12389 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12390 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12391 (popup_activated_flag): Make variable non-static.
12392 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12393 (add_menu_item, fill_menu, dispose_menus):
12394 Move functions to mactoolbox.c.
12395 (restore_show_help_function, menu_target_item_handler)
12396 (install_menu_target_item_handler, mac_handle_dialog_event)
12397 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12398 [TARGET_API_MAC_CARBON]: Likewise.
12399 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12400 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12401 (find_and_call_menu_selection, name_is_separator): Make function
12402 non-static.
12403 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12404 to mactoolbox.c.
12405 (set_frame_menubar): Don't call install_menu_quit_handler.
12406 (menu_item_selection): New variable.
12407 (mac_menu_show): Use create_and_show_popup_menu.
12408 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12409 selection but set variable menu_item_selection. All uses changed.
12410 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12411 Call install_menu_quit_handler. Move to mactoolbox.c.
12412
12413 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12414 (Selection): Move typedef to macgui.h.
12415 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12416 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12417 Make variables non-static.
12418 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12419 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12420 Make functions non-static.
12421 (Vmac_service_selection) [MAC_OSX]: Likewise.
12422 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12423 (mac_valid_selection_target_p, mac_clear_selection)
12424 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12425 (mac_put_selection_value, mac_selection_has_target_p)
12426 (mac_get_selection_value, mac_get_selection_target_list)
12427 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12428 Move functions to mactoolbox.c.
12429 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12430 Likewise.
12431 (copy_scrap_flavor_data, mac_handle_service_event)
12432 (install_service_handler) [MAC_OSX]: Likewise.
12433 (syms_of_macselect) <Vmac_dnd_known_types>:
12434 Use mac_dnd_default_known_types.
12435
12436 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12437 Move to mactoolbox.c.
12438 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12439 (Fx_selection_owner_p): Add EXFUN.
12440 (install_window_handler, remove_window_handler, XSetWindowBackground):
12441 Remove externs.
12442 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12443 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12444 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12445 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12446 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12447 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12448 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12449 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12450 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12451 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12452 (mac_valid_selection_target_p, mac_clear_selection)
12453 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12454 (mac_put_selection_value, mac_selection_has_target_p)
12455 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12456 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12457 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12458 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12459 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12460 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12461 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12462 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12463 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12464
12465 * mactoolbox.c: New file.
12466
124672008-04-18 Jason Rumney <jasonr@gnu.org>
12468
12469 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12470
124712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12472
12473 * character.c (Fmultibyte_char_to_unibyte):
12474 Return latin1 chars unchanged.
12475
12476 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12477 relocated if it points to `name'.
12478
124792008-04-17 Kenichi Handa <handa@m17n.org>
12480
12481 * data.c (Faset): Allow setting a multibyte character in an
12482 ASCII-only unibyte string.
12483
12484 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12485
124862008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12487
12488 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12489 done in config.h.
12490
124912008-04-16 Juanma Barranquero <lekktu@gmail.com>
12492
12493 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12494 (Fchar_direction): Add usage in the docstring.
12495
124962008-04-15 Chong Yidong <cyd@stupidchicken.com>
12497
12498 * keyboard.c (read_key_sequence): Remove always-true checks.
12499
125002008-04-14 Jason Rumney <jasonr@gnu.org>
12501
12502 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12503 compatibility struct, for better underline positioning.
12504
125052008-04-13 David Hansen <david.hansen@gmx.net>
12506
12507 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12508 string.
12509
125102008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12511
12512 * m/hp800.h (XUINT, XSET): Remove.
12513
125142008-04-12 Juanma Barranquero <lekktu@gmail.com>
12515
12516 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12517 previous change.
12518
125192008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12520
12521 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12522 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12523
125242008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12525
12526 * keymap.h (map_keymap_canonical): Declare.
12527 * xmenu.c (single_keymap_panes): Use it.
12528
125292008-04-11 Glenn Morris <rgm@gnu.org>
12530
12531 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12532 set the target's value to that of the alias.
12533
125342008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12535
12536 * term.c (set_tty_color_mode): Left over typo.
12537
125382008-04-10 Michael Albinus <michael.albinus@gmx.de>
12539
12540 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12541 only after check for file name handler functions. Signal, when
12542 native functionality is not supported.
12543 (syms_of_fileio): Declare it unconditionally.
12544
125452008-04-10 Jason Rumney <jasonr@gnu.org>
12546
12547 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12548 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12549
12550 * w32.c (logon_network_drive): Also logon to remote drives that
12551 are mapped to drive letters.
12552
125532008-04-10 Glenn Morris <rgm@gnu.org>
12554
12555 * xdisp.c (truncate-partial-width-windows): Doc fix.
12556
125572008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12558
12559 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12560 Move functions to minibuffer.el.
12561 (syms_of_fileio): Don't declare them.
12562
125632008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12564
12565 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12566 (syms_of_minibuf): Remove its initialization.
12567
12568 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12569
125702008-04-09 Juanma Barranquero <lekktu@gmail.com>
12571
12572 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12573
125742008-04-09 Jason Rumney <jasonr@gnu.org>
12575
12576 * makefile.w32-in (distclean): Delete makefile too.
12577 (maintainer-clean): New target.
12578
12579 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12580
12581 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12582 for new font backend and composite cases.
12583
125842008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12585
12586 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12587 Most of the code moved to run_timers.
12588 (do_pending_atimers): Call run_timers.
12589 (run_timers): New function.
12590
12591 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12592 run atimers.
12593
12594 * process.c (wait_reading_process_output): The same as above.
12595
125962008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12597
12598 * minibuf.c (last_exact_completion): Remove variable.
12599 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12600 (complete_and_exit_1, complete_and_exit_2)
12601 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12602 (Fdisplay_completion_list, display_completion_list_1)
12603 (Fminibuffer_completion_help, Fself_insert_and_exit)
12604 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12605 minibuffer.el.
12606 (syms_of_minibuf): Remove corresponding initializations.
12607
12608 * keyboard.c (Qdeactivate_mark): New var.
12609 (command_loop_1): Use it to call `deactivate-mark'.
12610 (syms_of_keyboard): Initialize it.
12611
12612 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12613 to another frame.
12614 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12615 Don't call set_tty_color_mode.
12616 (store_frame_param): Reset previous_frame rather than call
12617 set_tty_color_mode.
12618 * term.c (set_tty_color_mode): Rewrite.
12619 * dispextern.h (set_tty_color_mode): New type.
12620 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12621
126222008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12623
12624 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12625 for generic chars, which do not exist any more in emacs-unicode.
12626
126272008-04-08 Michael Albinus <michael.albinus@gmx.de>
12628
12629 * coding.c (detect_coding_emacs_mule)
12630 (Ffind_operation_coding_system): Fix typo.
12631
126322008-04-08 Jason Rumney <jasonr@gnu.org>
12633
12634 * w32uniscribe.c (SNAME): Extract only symbol name.
12635
12636 * w32font.h (struct w32_metric_cache): New struct.
12637 (w32font_info): Use it.
12638 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12639 (CACHE_BLOCKSIZE): New constants.
12640
12641 * w32font.c (Qja, Qko, Qzh): New symbols.
12642 (syms_of_w32font): Initialise them.
12643 (font_matches_spec): Use them to filter by language.
12644 (recompute_cached_metrics): Remove function.
12645 (compute_metrics, clear_cached_metrics): New functions.
12646 (w32font_encode_char): Use them to manage metric cache.
12647 (w32font_text_extents): Cache metrics for all glyphs on demand.
12648 Delay converting glyph indices to WORD until needed.
12649 (w32font_open_internal): Initialize metric cache to empty.
12650 (registry_to_w32_charset): Charset should always be a symbol.
12651 (fill_in_logfont, list_all_matching_fonts): Family should
12652 always be a symbol.
12653
126542008-04-06 Jason Rumney <jasonr@gnu.org>
12655
12656 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12657 Give up if glyph indices not supported. Use uniscribe obtained
12658 ABC widths for individual metrics. Map glyph clusters back to
12659 characters using fClusterStart flag. Return number of glyphs
12660 produced, not chars processed.
12661 (uniscribe_shape): Map char at FROM to current glyph.
12662
126632008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12664
12665 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12666 Use SetMenuItemHierarchicalMenu.
12667
126682008-04-05 Jason Rumney <jasonr@gnu.org>
12669
12670 * image.c (pbm_load): Allow color values up to 65535.
12671 Throw an error if max_color_idx is outside the supported range.
12672 Report an error when image size is invalid.
12673 Read two bytes at a time when raw images have max_color_idx above 255.
12674
126752008-04-05 Eli Zaretskii <eliz@gnu.org>
12676
12677 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12678 cFileName a file name that includes `?' characters, use the 8+3
12679 alias in cAlternateFileName instead.
12680
126812008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12682
12683 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12684 append "CCL: Quitted" when the CCL program is quitted.
12685 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12686
12687 * ccl.h (struct ccl_program): New member quit_silently.
12688
126892008-04-05 Chong Yidong <cyd@stupidchicken.com>
12690
12691 * search.c (compile_pattern_1): Treat non-nil and non-string of
12692 search-spaces-regexp as nil.
12693
12694 * minibuf.c (Fassoc_string): Tweak docstring.
12695
126962008-04-05 Eli Zaretskii <eliz@gnu.org>
12697
12698 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12699 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12700 2008-03-14 to force inode be positive.
12701
12702 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12703 _S_* ones, since we now use our own sys/stat.h.
12704 (stat, fstat): Don't mangle the inode number.
12705 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12706
127072008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * frame.h (struct frame): Give one more bit to `visible' since we use
12710 values larger than 1 to indicate obscured frames on ttys.
12711
12712 * keymap.c (Qkeymap_canonicalize): New var.
12713 (Fmap_keymap_internal): New fun.
12714 (describe_map): Use keymap-canonicalize.
12715
12716 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12717 (Fundo_boundary): Set them.
12718 (syms_of_undo): Initialize them.
12719 (record_point): Use them instead of last_point_position*.
12720 (last_undo_buffer): Change type.
12721
127222008-04-04 Jason Rumney <jasonr@gnu.org>
12723
12724 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12725 (recompute_cached_metrics): Don't set ascent and descent per char.
12726
12727 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12728 (uniscribe_check_otf): Add GC protection before consing.
12729 Rearrange loop for counting features.
12730
127312008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12732
12733 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12734 buffer with byte-size of source buffer.
12735
127362008-04-03 Chong Yidong <cyd@stupidchicken.com>
12737
12738 * callint.c (Fcall_interactively): Handle temporary region even
12739 when shift-select-mode is off.
12740
127412008-04-03 Jason Rumney <jasonr@gnu.org>
12742
12743 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12744
127452008-04-03 Kenichi Handa <handa@m17n.org>
12746
12747 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12748 (CATEGORY_MASK_UTF_16): Likewise.
12749 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12750 binary file.
12751 (detect_coding): Add null-byte detection for a binary file.
12752 (detect_coding_system): Likewise.
12753
127542008-04-03 Jason Rumney <jasonr@gnu.org>
12755
12756 * w32uniscribe.c: New file.
12757
12758 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12759
12760 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12761
12762 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12763 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12764 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12765 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12766 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12767 (Qphonetic): New symbols.
12768 (syms_of_w32font): Initialize them.
12769 (font_supported_scripts): Use them.
12770 (w32font_list_family): List all charsets.
12771 (w32font_text_extents, recompute_cached_metrics): Fix metric
12772 calculations.
12773 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12774 Give opentype fonts their own format.
12775 (font_matches_spec): New arguments backend and logfont.
12776 Handle :otf spec for uniscribe backend.
12777 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12778 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12779
12780 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12781 font backend.
12782 (globals_of_w32fns): Initialize uniscribe font backend.
12783
12784 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12785 dependencies.
12786 (w32uniscribe.$(O)): New file to build.
12787 (FONT_OBJ): Include w32uniscribe.$(O).
12788 (LIBS): Add uniscribe libraries.
12789
12790 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12791
127922008-04-02 Chong Yidong <cyd@stupidchicken.com>
12793
12794 * callint.c (Vshift_select_mode): New var.
12795 (Finteractive): Document new ^ spec.
12796 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12797 is present.
12798
12799 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12800 (command_loop_1): Avoid running the direct display versions of
12801 forward-char and backward-char if shift-selection may occur.
12802 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12803 shift-translation takes place.
12804
12805 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12806 avoid clobbering by define-minor-mode.
12807
12808 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12809 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12810
12811 * syntax.c (Fforward_word): Add ^ interactive spec.
12812
12813 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12814 (Fscroll_right): Add ^ interactive spec.
12815
128162008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12817
12818 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12819
12820 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12821
12822 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12823
128242008-03-31 Juri Linkov <juri@jurta.org>
12825
12826 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12827
128282008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12829
12830 * gtkutil.c (xg_set_geometry): Fix indentation.
12831 (xg_resize_outer_widget): Remove.
12832 (x_wm_size_hint_off): Fix indentation.
12833 (xg_frame_set_char_size): Call flush_and_sync after
12834 gtk_window_resize.
12835 (x_wm_set_size_hint): Pass NULL as geometry window to
12836 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12837 Add menu bar and tool bar height to base height.
12838 (xg_update_frame_menubar, free_frame_menubar)
12839 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12840 (update_frame_tool_bar, free_frame_tool_bar):
12841 Change xg_resize_outer_widget to xg_frame_set_char_size.
12842
128432008-03-30 Michael Albinus <michael.albinus@gmx.de>
12844
12845 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12846 (Fdbus_call_method): New parameter TIMEOUT.
12847 (dbus-send-signal): Optimize UNGCPRO call.
12848
128492008-03-29 Juri Linkov <juri@jurta.org>
12850
12851 * window.c (Fdisplay_buffer): Move call to
12852 Vsplit_window_preferred_function out of conditions that check
12853 if window is eligible for vertical splitting.
12854 When Vsplit_window_preferred_function is non-nil, call it and use
12855 its non-nil return value as window. Otherwise, continue doing
12856 vertical splitting using Fsplit_window with arg horflag=nil.
12857 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12858 default value from `split-window' to nil.
12859
128602008-03-29 Juri Linkov <juri@jurta.org>
12861
12862 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12863 for interactive code letters 'b' and 'B'.
12864
128652008-03-29 Eli Zaretskii <eliz@gnu.org>
12866
12867 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12868 multibyte string.
12869
128702008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12871
12872 * keyboard.c (pending_funcalls): New var.
12873 (timer_check): Run it.
12874 (syms_of_keyboard): Initialize it.
12875 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12876 (Vdelete_terminal_functions): New vars.
12877 (syms_of_terminal): Initialize them.
12878 (Fdelete_terminal): Run delete-terminal-functions.
12879 * xdisp.c (safe_eval): Rewrite.
12880 (safe_call2): New fun.
12881 * frame.c (Qdelete_frame_functions): New var.
12882 (syms_of_frame): Initialize it.
12883 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12884 * lisp.h (safe_call2, pending_funcalls): Declare.
12885
128862008-03-28 Andreas Schwab <schwab@suse.de>
12887
12888 * indent.c (Fmove_to_column): Move declaration before statements.
12889
128902008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12893 (struct frame): Use bit fields for boolean vars.
12894
12895 * process.c (server_accept_connection): Simplify naming.
12896 (emacs_get_tty_pgrp): Use SDATA.
12897
12898 * coding.c (decode_coding_object): Fix last change.
12899
129002008-03-27 Jason Rumney <jasonr@gnu.org>
12901
12902 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12903
129042008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12905
12906 * charset.c (Fdefine_charset_internal): Change the way of
12907 registering charsets in Vcharset_order_list.
12908 (syms_of_charset): Make the charset `eight-bit' supplementary.
12909
129102008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12911
12912 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12913 operations, to avoid having the difference between pointers
12914 overflow.
12915
129162008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12917
12918 * indent.c (check_display_width): New fun.
12919 (scan_for_column): Use it.
12920
12921 * data.c (syms_of_data): Mark most-positive-fixnum and
12922 most-negative-fixnum as constants.
12923
12924 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12925
12926 * indent.c (scan_for_column): Extract from current_column_1.
12927 Merge with the same code from Fmove_to_column.
12928 (current_column_1, Fmove_to_column): Use it.
12929
129302008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12931
12932 * keymap.c (map_keymap_internal): New fun.
12933 (map_keymap): Use it.
12934 (Fmap_keymap_internal): New fun.
12935 (Fmap_keymap): Remove left-out test from before make_save_value.
12936
12937 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12938
12939 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12940 Use XCAR/XCDR.
12941
12942 * process.h (struct Lisp_Process): Remove filter_multibyte.
12943 * process.c (QCfilter_multibyte): Remove.
12944 (setup_process_coding_systems): Don't use filter_multibyte.
12945 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12946 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12947 (Fset_process_filter_multibyte): Change the coding-system to
12948 approximate the previous behavior.
12949 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12950 coding-system.
12951
12952 * coding.c (decode_coding_object): When not decoding into a buffer,
12953 obey the coding system's preference of (uni|multi)byte.
12954
129552008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12956
12957 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12958 every char is changed and has a different byte-length.
12959 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12960 Fix int -> EMACS_INT.
12961
129622008-03-23 David Hansen <david.hansen@gmx.net>
12963
12964 * dbusbind.c (xd_read_message): Remove extra copying of message
12965 strings. Check for NULL `interface' or `member'.
12966
129672008-03-22 Eli Zaretskii <eliz@gnu.org>
12968
12969 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12970 cFileName a file name that includes `?' characters, use the 8+3
12971 alias in cAlternateFileName instead.
12972
129732008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12976
129772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12978
12979 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12980 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12981 work on current_buffer only instead (that was already the case
12982 for some of the code anyway).
12983 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12984 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12985 (SET_PT, SET_PT_BOTH): Adjust.
12986 * intervals.h (set_point, temp_set_point, set_point_both)
12987 (temp_set_point_both): Remove redundant declarations.
12988
129892008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12990
12991 * fileio.c (Finsert_file_contents):
12992 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12993 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12994 when buffer != current_buffer anyway.
12995
129962008-03-20 Andreas Schwab <schwab@suse.de>
12997
12998 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12999 as default.
13000
130012008-03-19 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13004 (syms_of_w32fns): Initialize them.
13005 (HOURGLASS_ID): New constant.
13006 (x_window_to_frame): Don't check hourglass_window.
13007 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13008 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13009 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13010 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13011 Only change the cursor if hourglass is not active.
13012 (Fx_create_frame): Initialize frame's current_cursor.
13013 (hourglass_atimer): Remove.
13014 (hourglass_started): New function.
13015 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13016 (show_hourglass): Adapt to w32, changing argument to frame.
13017
13018 * w32term.h (struct w32_output): Remove hourglass_window.
13019 Add current_cursor.
13020
13021 * eval.c (call_debugger, Fsignal):
13022 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13023 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13024 (Fexecute_extended_command, cancel_hourglass_unwind):
13025 * minibuf.c (read_minibuf):
13026 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13027
130282008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13029
13030 * window.c (run_funs): New fun.
13031 (run_window_configuration_change_hook): Use it to run the buffer-local
13032 and the global part of the hook.
13033
13034 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13035 (unwind_format_mode_line): Restore selected window.
13036 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13037
130382008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13039
13040 * editfns.c (Fchar_equal): Check they are valid characters.
13041
13042 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13043
130442008-03-17 Andreas Schwab <schwab@suse.de>
13045
13046 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13047 against a charset.
13048
13049 * lisp.h (Fbuffer_list): Declare.
13050
130512008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13052
aac0c6e3
MR
13053 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13054 handlebox_widget is != 0.
13055
130562008-03-16 Juri Linkov <juri@jurta.org>
13057
13058 * callint.c (Fcall_interactively): For interactive code letters
13059 'b' and 'B' put the buffer list into the list of default "future"
13060 values of the minibuffer.
13061
130622008-03-16 Andreas Schwab <schwab@suse.de>
13063
13064 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13065 modifiers.
13066
13067 * regex.c (re_match_2_internal): Correct matching of a charset
13068 against latin-1 characters.
13069
130702008-03-16 Kenichi Handa <handa@m17n.org>
13071
13072 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13073 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13074 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13075 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13076 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13077 CHAR_STRING_ADVANCE.
13078 (produce_chars): Fix for the case that the source and the
13079 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13080 instead of CHAR_STRING_ADVANCE.
13081 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13082 STRING_CHAR_ADVANCE.
13083
130842008-03-15 Andreas Schwab <schwab@suse.de>
13085
13086 * regex.c (re_match_2_internal): Correct matching of eight bit
13087 characters in unibyte strings.
13088
130892008-03-15 Martin Rudalics <rudalics@gmx.at>
13090
13091 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13092 at end of range when it coincides with the end of the buffer.
13093
130942008-03-14 Eli Zaretskii <eliz@gnu.org>
13095
13096 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13097
13098 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13099
131002008-03-14 Jason Rumney <jasonr@gnu.org>
13101
13102 * editfns.c (initial_tz): New variable.
13103 (syms_of_editfns): Initialize it.
13104 (Fset_time_zone_rule): Set it when first called.
13105 Use it when TZSTRING is nil.
13106
13107 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13108 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13109 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13110 (globals_of_w32fns): Initialize them.
13111 (compute_tip_xy): Use them to position tooltips.
13112
131132008-03-14 Glenn Morris <rgm@gnu.org>
13114
13115 * emacs.c (main): Revert previous change.
13116 (standard_args): Revert -internal-script back to -scriptload,
13117 and remove the long-option form.
13118
131192008-03-13 Glenn Morris <rgm@gnu.org>
13120
13121 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13122 Remove option -enable-font-backend.
13123
131242008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13125
13126 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13127
131282008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13129
13130 * xterm.c (x_connection_closed): For GTK: If this is the last
13131 terminal just exit without closing the display.
13132
131332008-03-11 Jason Rumney <jasonr@gnu.org>
13134
13135 * w32font.c (w32font_full_name): Use floor to round.
13136
f0131492 131372008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13138
13139 * sound.c (alsa_configure): Declare vol at beginning of block.
13140
13141 * fontset.c (Ffontset_info): Remove extra semicolon.
13142
131432008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13144
13145 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13146 size of resulting string.
13147
131482008-03-10 Jason Rumney <jasonr@gnu.org>
13149
13150 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13151
131522008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13153
13154 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13155 Don't pretend as if characters with display property haven't been
13156 consumed for string-replacing-string case.
13157
131582008-03-08 Kim F. Storm <storm@cua.dk>
13159
13160 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13161 (get_next_display_element, next_element_from_string)
13162 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13163
131642008-03-08 Andreas Schwab <schwab@suse.de>
13165
13166 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13167
131682008-03-06 Jason Rumney <jasonr@gnu.org>
13169
13170 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13171 when charset not specified. Only translate ANSI to unicode when
13172 font_type is truetype.
13173 (w32font_coverage_ok): New function.
13174 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13175
131762008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13177
13178 * lread.c (Fread_char): Resolve modifiers.
13179 (Fread_char_exclusive): Likewise.
13180
13181 * character.c (char_resolve_modifier_mask): New function.
13182 (char_string): Use char_resolve_modifier_mask.
13183 (Fchar_resolve_modifiers): New function.
13184 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13185 function.
13186
131872008-03-04 Jason Rumney <jasonr@gnu.org>
13188
13189 * makefile.w32-in: Always include w32font.c in the build.
13190 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13191
131922008-03-04 Andreas Schwab <schwab@suse.de>
13193
13194 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13195 (versionclean): Likewise.
13196
131972008-03-04 Juanma Barranquero <lekktu@gmail.com>
13198
13199 * .cvsignore: Add oo.
13200
132012008-03-03 Andreas Schwab <schwab@suse.de>
13202
13203 * coding.c (decode_coding_object): Inhibit gap shrinking while
13204 decoding in place.
13205
132062008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13207
13208 * w32term.c: Remove unused include "gnu.h".
13209 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13210
13211 * gnu.h: Rename to ...
13212 * emacs-icon.h: ... this.
13213 * xterm.c: Use emacs-icon.h instead of gnu.h.
13214 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13215
132162008-03-03 Juanma Barranquero <lekktu@gmail.com>
13217
13218 * w32font.c: Include math.h.
13219
132202008-03-03 Jason Rumney <jasonr@gnu.org>
13221
13222 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13223 Compute options separately.
13224 (w32font_open_internal): Set glyph_idx before caching metrics.
13225
13226 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13227 Define if system headers don't.
13228 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13229 (w32font_encode_char): Don't declare here.
13230
13231 * w32font.c (Quniscribe, QCformat): New symbols.
13232 (syms_of_w32font): Define them.
13233 (w32font_has_char): Indicate uncertainty.
13234 (w32font_encode_char): Encode as glyph point. Make static.
13235 (recompute_cached_metrics): New function.
13236 (w32font_open_internal): Use it. Set font to use glyph points
13237 initially. Set format based on type of font.
13238 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13239 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13240 on it. Set format based on information available here.
13241 (add_font_entity_to_list): Identify backend based on opentype_only.
13242
132432008-03-02 Andreas Schwab <schwab@suse.de>
13244
13245 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13246
13247 * coding.c (decode_coding_big5, produce_chars):
13248 Fix typos in last change.
13249
132502008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13251
13252 * gnu.h: New icon.
13253
132542008-03-02 Kenichi Handa <handa@m17n.org>
13255
13256 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13257 `dos', don't decode '\r' if that is the last in the source.
13258 (decode_coding_utf_16, decode_coding_emacs_mule)
13259 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13260 (decode_coding_raw_text, decode_coding_charset): Likewise.
13261 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13262
132632008-03-01 Jason Rumney <jasonr@gnu.org>
13264
13265 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13266
132672008-03-01 Kim F. Storm <storm@cua.dk>
13268
13269 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13270
132712008-03-01 Jason Rumney <jasonr@gnu.org>
13272
13273 * w32font.c (w32font_full_name): New function.
13274 (w32font_open_internal): Use it.
13275
132762008-03-01 Kim F. Storm <storm@cua.dk>
13277
13278 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13279
132802008-03-01 Jason Rumney <jasonr@gnu.org>
13281
13282 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13283
132842008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13285
13286 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13287 xg_frame_resized when the event is for the edit widget.
13288
13289 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13290
13291 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13292 set_char_size.
13293 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13294 operations on widgets here. Just set frame size if needed.
13295 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13296 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13297 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13298 the whole frame.
13299 (xg_create_tool_bar): Move attachment of the tool bar to
13300 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13301 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13302
133032008-03-01 Jason Rumney <jasonr@gnu.org>
13304
13305 * w32fns.c (w32_msg_pump): Disable debug code.
13306
133072008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13308
13309 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13310
133112008-02-29 Chong Yidong <cyd@stupidchicken.com>
13312
13313 * xdisp.c (next_overlay_string): Don't set
13314 overlay_strings_at_end_processed_p if we're currently reading from
13315 a display string.
13316
133172008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13318
13319 * xdisp.c (get_overlay_strings_1): Fix typo.
13320
133212008-02-29 Chong Yidong <cyd@stupidchicken.com>
13322
13323 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13324
133252008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13326
13327 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13328
13329 * xdisp.c (display_mode_element): Cancel the previous change.
13330 (decode_mode_spec): Likewise.
13331 (handle_auto_composed_prop): Don't make composition if it->string
13332 is a string.
13333
133342008-02-27 Kim F. Storm <storm@cua.dk>
13335
13336 * lisp.h (GLYPH): Change type from int to struct with separate char
13337 and face_id members.
13338 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13339 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13340 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13341 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13342 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13343 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13344 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13345 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13346 handle new Lisp glyph code encoding, either an integer or a cons.
13347
13348 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13349 (GLYPH_ALIAS): Delete.
13350 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13351 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13352 (GLYPH_FROM_CHAR): Replace macro by ...
13353 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13354
13355 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13356 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13357 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13358 (GLYPH_INVALID_P): New macro.
13359 (spec_glyph_lookup_face): Update prototype.
13360
13361 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13362 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13363 new glyph code encoding.
13364 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13365 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13366
13367 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13368 Adapt to new glyph type and new glyph code encoding.
13369
13370 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13371
13372 * indent.c (current_column, current_column_1, Fmove_to_column)
13373 (compute_motion): Adapt to new glyph code encoding.
13374
13375 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13376
133772008-02-27 Chong Yidong <cyd@stupidchicken.com>
13378
13379 * process.c (wait_reading_process_output): Check for window
13380 changes caused by timers.
13381 Suggested by Johan Bockgård.
13382
133832008-02-27 Glenn Morris <rgm@gnu.org>
13384
13385 * emacs.c (USAGE1): Add `--disable-font-backend'.
13386
133872008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13388
13389 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13390 is made to the buffer.
13391
133922008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13395 (face_at_string_position):
13396 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13397 (face_at_string_position):
13398 * xdisp.c (display_string, next_overlay_change):
13399 * buffer.h (overlays_at):
13400 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13401 Update callers.
13402
134032008-02-26 Chong Yidong <cyd@stupidchicken.com>
13404
13405 * editfns.c (Fformat): Doc fix.
13406
134072008-02-26 Juanma Barranquero <lekktu@gmail.com>
13408
13409 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13410 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13411 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13412
134132008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13414
13415 * buffer.c (Fbuffer_swap_text): New function.
13416 (syms_of_buffer): Defsubr it.
13417
134182008-02-25 Chong Yidong <cyd@stupidchicken.com>
13419
13420 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13421
134222008-02-25 Jason Rumney <jasonr@gnu.org>
13423
13424 * w32font.c (w32font_draw): Draw one character at a time when padding.
13425
134262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13427
13428 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13429 Handle a nil arg. Use run_window_configuration_change_hook.
13430 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13431 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13432 Use run_window_configuration_change_hook.
13433
134342008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13435
13436 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13437 1-pixel width.
13438
134392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13440
13441 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13442 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13443 if the glyph in the font is zero pixel with.
13444
13445 * dispextern.h (struct glyph_string): New member padding_p.
13446
13447 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13448
13449 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13450
13451 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13452
13453 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13454
13455 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13456
134572008-02-25 Jason Rumney <jasonr@gnu.org>
13458
13459 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13460
134612008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 Allow fine-grained image-cache flushing.
13464 * dispextern.h (struct image): Add `dependencies' field.
13465 (clear_image_caches): Change arg to Lisp_Object.
13466 * image.c (make_image): Initialize `dependencies' field.
13467 (clear_image_cache): Change arg to allow fine-grained flushing.
13468 Perform the flush even if image-cache-eviction-delay is nil.
13469 (clear_image_caches): Change arg to Lisp_Object.
13470 (Fclear_image_cache): Expand meaning of the argument.
13471 (mark_image): Mark `dependencies' field.
13472 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13473 (lface_hash): Use XHASH rather than XFASTINT.
13474 (face_at_buffer_position): Fix int -> EMACS_INT position.
13475 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13476 (select_frame_for_redisplay): Remove code duplication.
13477 (redisplay_internal): Adapt arg to call to clear_image_caches.
13478
134792008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13480
13481 * s/vms4-0.h:
13482 * s/vms4-2.h:
13483 * s/vms4-4.h:
13484 * s/vms5-5.h: Remove, unused.
13485
13486 * s/irix5-2.h:
13487 * s/irix6-0.h:
13488 * s/riscos5.h:
13489 * s/mach-bsd4-3.h:
13490 * m/mips4.h: Remove files for obsolete systems.
13491
13492 * Makefile.in:
13493 * filelock.c:
13494 * unexmips.c:
13495 * m/hp9000s300.h:
13496 * m/iris4d.h:
13497 * s/aix3-1.h:
13498 * s/hpux.h:
13499 * s/msdos.h:
13500 * s/usg5-0.h:
13501 * s/usg5-2-2.h:
13502 * s/usg5-2.h:
13503 * s/usg5-3.h: Remove references to obsolete variables.
13504
13505 * s/irix5-0.h: Remove, move all the contents ...
13506 * s/irix6-5.h: ... here. Simplify.
13507 * config.in: Regenerate.
13508
135092008-02-24 Jason Rumney <jasonr@gnu.org>
13510
13511 * w32term.c (x_draw_glyph_string_background): Clear the background
13512 manually when cleartype is in use.
13513 (x_draw_glyph_string_foreground): Draw text transparently when
13514 cleartype is in use.
13515
13516 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13517 a font into it unless we have to.
13518
135192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13520
13521 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13522 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13523
aac0c6e3
MR
135242008-02-18 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32fns.c (Fw32_shell_execute): Encode parameters.
13527
135282008-02-09 Eli Zaretskii <eliz@gnu.org>
13529
13530 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13531
135322008-02-05 Juanma Barranquero <lekktu@gmail.com>
13533
13534 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13535
135362008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13537
13538 * xterm.c (x_set_offset): Don't change the gravity if
13539 CHANGE_GRAVITY is -1.
13540
135412008-02-23 Chong Yidong <cyd@stupidchicken.com>
13542
13543 * fileio.c (auto_save_error_occurred): New var.
13544 (auto_save_error): Set it.
13545 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13546 error occurred.
13547
135482008-02-23 Eli Zaretskii <eliz@gnu.org>
13549
13550 * w32.c (globals_of_w32): Add initializations for
13551 g_b_init_get_sid_sub_authority and
13552 g_b_init_get_sid_sub_authority_count.
13553
135542008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13555
13556 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13557 (font_parse_xlfd): Use them for sanity check.
13558 (Finternal_set_font_style_table): Make sure the table is bijective.
13559
13560 Consolidate the image_cache to the terminal struct.
13561 * termhooks.h (P_): Remove redundant def.
13562 (struct terminal): New field `image_cache'.
13563 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13564 of FRAME_X_IMAGE_CACHE.
13565 * xterm.h (struct x_display_info): Remove image_cache field.
13566 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13567 * w32term.h (struct w32_display_info): Remove image_cache field.
13568 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13569 * macterm.h (struct mac_display_info): Remove image_cache field.
13570 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13571 * xterm.c (x_term_init):
13572 * w32term.c (w32_term_init):
13573 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13574 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13575 Remove declarations.
13576 (clear_image_caches, mark_image_cache): New declarations.
13577 * xfaces.c (clear_face_cache):
13578 * xdisp.c (redisplay_internal): Use clear_image_caches.
13579 * image.c (clear_image_cache): Don't check that a frame is on
13580 a window-system before checking if it shares the same cache.
13581 (clear_image_caches): New function.
13582 (Fclear_image_cache): Use it.
13583 (mark_image): Move from allo.c.
13584 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13585 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13586 (mark_object): Don't call mark_image_cache for frames.
13587 (mark_terminals): Call mark_image_cache.
13588
13589 * lisp.h (Fdelete_terminal): Declare.
13590
13591 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13592 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13593 wrong_type_argument.
13594
135952008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13596
13597 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13598 malayalam.el, and tamil.el. Add sinhala.el.
13599
136002008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13601
13602 * xterm.c (x_connection_closed): Consolidate identical tests.
13603 (x_delete_terminal): Don't crash if called via x_connection_closed.
13604
136052008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13606
13607 * xdisp.c (decode_mode_spec): New arg string.
13608 (display_mode_element): Adjust for the above change.
13609
136102008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13611
13612 * callint.c (Fcall_interactively): Use AREF.
13613
136142008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13615
13616 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13617
136182008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13619
13620 * xfns.c (Fx_show_tip): Set string to " " if empty.
13621
136222008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13623
13624 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13625 with Qt.
13626
136272008-02-17 Kenichi Handa <handa@m17n.org>
13628
13629 * ftfont.c (ftfont_shape): Return Lispy number.
13630
13631 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13632 for GCs.
13633 (Finternal_set_font_selection_order): Call font_update_sort_order
13634 only when enable_font_backend is set.
13635 (realize_x_face): Set face->font_info to that of default face only
13636 when enable_font_backend is set.
13637
13638 * xdisp.c (handle_composition_prop): Set it->c to the fist
13639 character of the composed region.
13640 (fill_composite_glyph_string): Set base_face->font_info to
13641 s->font_info. Get a face for ascii from base_face->ascii_face.
13642 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13643 with a face already decided.
13644 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13645 non-negative.
13646 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13647 call font_prepare_composition unconditionally.
13648
13649 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13650
13651 * xterm.h (struct x_display_info): New member font.
13652
13653 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13654 (x_set_mouse_face_gc, x_new_font): Likewise.
13655 (x_term_init): Setup display_info->font.
13656 (x_delete_terminal): Free display_info->font.
13657
13658 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13659
13660 * ftxfont.c (ftxfont_default_fid): Delete it.
13661 (ftxfont_open): Set xfont->fid to 0.
13662 (ftxfont_end_for_frame): Clear data specific to the frame and the
13663 font-driver.
13664
13665 * xftfont.c (xftfont_default_fid): Delete it.
13666 (xftfont_open): Set xfont->fid to 0.
13667
13668 * fontset.c (FONTSET_OBJLIST): New macro.
13669 (fontset_find_font): Update font-object list of the fontset.
13670 (free_realized_fontset): New function.
13671 (free_face_fontset): Call free_realized_fontset.
13672 (Ffont_info): Call font_close_object only when enable_font_backend
13673 is set.
13674
13675 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13676 [HAVE_NTGUI]: Include w32term.h.
13677 [MAC_OS]: Include macterm.ch.
13678 (font_otf_ValueRecord): Use make_number.
13679 (font_finish_cache): Fix handling of reference count.
13680 (font_clear_cache): Update num_fonts.
13681 (font_open_entity): Update smallest_char_width and
13682 smallest_font_height of the frame.
13683 (font_close_object): Update num_fonts.
13684 (Fclear_font_cache): Fix finding the target cache data.
13685
136862008-02-16 Glenn Morris <rgm@gnu.org>
13687
13688 * fontset.c (Finternal_char_font): Fix compilation warning.
13689
136902008-02-16 Eli Zaretskii <eliz@gnu.org>
13691
13692 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13693 instead of char arrays. Enlarge the size of array passed to
13694 get_token_information.
13695
13696 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13697 warnings.
13698
136992008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13700
13701 * .gdbinit: Don't set `args', it breaks gdb --args.
13702
137032008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13704
13705 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13706 within a narrowed buffer.
13707
137082008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13709
13710 * coding.c (decode_coding_object, encode_coding_object):
13711 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13712
137132008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13714
13715 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13716 hardcoding 1.
13717 (detect_coding_system):
13718 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13719 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13720 * insdel.c (insert_from_gap):
13721 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13722 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13723 (string_to_multibyte):
13724 * character.c (chars_in_text, multibyte_chars_in_text):
13725 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13726
13727 * character.h (FETCH_STRING_CHAR_ADVANCE)
13728 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13729 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13730 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13731
13732 * casefiddle.c (casify_region): Only call after-change and composition
13733 functions on the part of the region that was changed.
13734
13735 * keyboard.c (read_avail_input):
13736 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13737
137382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13739
13740 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13741 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13742
137432008-02-11 Juanma Barranquero <lekktu@gmail.com>
13744
13745 * w32menu.c (push_submenu_start, push_submenu_end)
13746 (push_left_right_boundary, push_menu_pane, push_menu_item):
13747 * keyboard.c (read_key_sequence): Don't pass args with side effects
13748 to AREF, it fails when compiling with -DENABLE_CHECKING.
13749
137502008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13751
13752 * Makefile.in (${lispsource}international/charprop.el):
13753 Delete this target.
13754
13755 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13756 emacs-unicode-2.
13757
137582008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13759
13760 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13761
137622008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13763
13764 * frame.c (Qnoelisp): New symbol.
13765 (syms_of_frame): Initialize it.
13766 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13767 harmless Elisp code, from a strong `force' from x_connection_closed.
13768 * frame.h (Qnoelisp): Declare.
13769 * xterm.c (x_connection_closed): Pass `noelisp'.
13770
13771 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13772 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13773 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13774 rather than `int' for the type of `type'.
13775
137762008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13777
13778 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13779
13780 * Makefile.in (GNUC): Remove support for gcc-1.x.
13781
137822008-02-10 Richard Stallman <rms@gnu.org>
13783
13784 * lisp.h (ASET): Use AREF, not ASLOT.
13785
137862008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13787
13788 * lisp.h (ASET): Check bounds.
13789
137902008-02-10 Glenn Morris <rgm@gnu.org>
13791
13792 * buffer.c (mode-name): Doc fix.
13793
137942008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13795
13796 * Makefile.in:
13797 * emacs.c:
13798 * gmalloc.c:
13799 * keyboard.c:
13800 * lisp.h:
13801 * m/ibm370aix.h:
13802 * process.c:
13803 * regex.c:
13804 * s/hpux.h:
13805 * sysdep.c:
13806 * sysselect.h:
13807 * systty.h:
13808 * unexec.c:
13809 * w32term.c:
13810 * xsmfns.c:
13811 * xterm.c: Remove code that deals with obsolete variables.
13812
13813 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13814
13815 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13816 nothing else needs it anymore.
13817
138182008-02-09 Eli Zaretskii <eliz@gnu.org>
13819
13820 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13821 instead of unibyte_char_to_multibyte.
13822
138232008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13824
13825 * s/gnu-linux.h: Remove commented out code.
13826
13827 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13828
13829 * Makefile.in: Update what RMS says about using autoconf.
13830 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13831 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13832 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13833 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13834
138352008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13836
13837 * keymap.c (Fkey_description): Move side effect outside of macro call.
13838
13839 * xfaces.c (Finternal_make_lisp_face):
13840 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13841
13842 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13843 (syms_of_fontset): Use ASET.
13844
13845 * fns.c (concat): Move side effect outside of macro call.
13846 (hash_clear): Use ASET.
13847
138482008-02-08 Richard Stallman <rms@gnu.org>
13849
13850 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13851 If FORCE, and frame has a surrogate minibuffer for another frame,
13852 delete the other frame first.
13853
138542008-02-07 Timo Savola <timo.savola@iki.fi>
13855
13856 * xterm.c (x_detect_focus_change): Handle embed client message.
13857 (handle_one_xevent): Ditto.
13858 (handle_one_xevent): If embedded and we get a button press/release,
13859 request focus.
13860 (xembed_set_info, xembed_send_message): New functions.
13861 (x_make_frame_visible): Call xembed_set_info if embedded.
13862 (x_make_frame_invisible): Call xembed_set_info if embedded.
13863 (x_term_init): Initialize Xatom_XEMBED.
13864 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13865 (x_iconify_frame): Ditto.
13866
13867 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13868 (enum xembed_info, enum xembed_message, enum xembed_focus)
13869 (enum xembed_modifier, enum xembed_accelerator): New.
13870 (xembed_set_info, xembed_send_message): Declare.
13871 (FRAME_X_EMBEDDED_P): New.
13872
13873 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13874 gtk_plug_new.
13875
13876 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13877 window ID of a frame.
13878 (x_window): Reparent frame if embedded.
13879 (Fx_create_frame): Don't set border width if embedded.
13880
13881 * emacs.c (USAGE3): Add --parent-id.
13882 (standard_args): Ditto.
13883
138842008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13885
13886 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13887
138882008-02-07 Jim Meyering <meyering@redhat.com>
13889
13890 Use "do...while (0)", not "if (1)...else" in macro definitions.
13891 The latter provokes a warning from gcc about the empty else, when
13892 followed by ";". Also, without that trailing semicolon, it would
13893 silently swallow up any following statement.
13894 * syntax.h (SETUP_SYNTAX_TABLE)
13895 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13896 * buffer.h (DECODE_POSITION): Likewise.
13897 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13898 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13899 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13900 (FETCH_CHAR_ADVANCE): Likewise.
13901 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13902
139032008-02-07 Jim Meyering <meyering@redhat.com>
13904
13905 * lread.c [lint]: Don't include <sys/inode.h>.
13906
139072008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13908
13909 * xselect.c (x_handle_dnd_message):
13910 * xmenu.c (digest_single_submenu, xmenu_show):
13911 * xdisp.c (with_echo_area_buffer_unwind_data)
13912 (format_mode_line_unwind_data, unwind_format_mode_line)
13913 (display_menu_bar):
13914 * eval.c (Ffetch_bytecode):
13915 * doc.c (store_function_docstring):
13916 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13917 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13918 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13919
139202008-02-07 Kenichi Handa <handa@m17n.org>
13921
13922 * ftxfont.c (ftxfont_open): Don't set
13923 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13924
13925 * ftfont.c (ftfont_open): Fix previous change.
13926
139272008-02-06 Jason Rumney <jasonr@gnu.org>
13928
13929 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13930 Use cached metrics for ASCII characters.
13931 (w32font_open_internal): Don't set font's owning_frame.
13932 Cache metrics for ASCII characters.
13933
13934 * w32font.h (struct w32font_info): Add ascii_metrics.
13935 Remove owning_frame.
13936
139372008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13938
13939 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13940 to negative value.
13941
13942 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13943
13944 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13945
13946 * charset.c (syms_of_charset): Set QCtest and Qeq.
13947
139482008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13949
13950 * process.c (Fstart_process):
13951 * callproc.c (Fcall_process): Handle the case where
13952 Funhandled_file_name_directory returns nil.
13953
13954 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13955 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13956 * font.c (check_gstring): Use them and AREF to access the vector before
13957 we know it's really a gstring.
13958 (Ffont_shape_text): Fix typo.
46e722a9 13959 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13960
13961 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13962 Declare.
13963
13964 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13965
139662008-02-05 Jason Rumney <jasonr@gnu.org>
13967
13968 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13969 Set smallest_font_height and smallest_char_width in display info.
13970
139712008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13972
13973 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13974
139752008-02-05 Miles Bader <miles@gnu.org>
13976
13977 * xfaces.c (get_lface_attributes, merge_named_face)
13978 (lookup_named_face, lookup_derived_face, realize_named_face):
13979 Revert 2008-02-01 change by cyd@stupidchicken.com.
13980
139812008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13982
13983 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13984 fallback fonts.
13985 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13986
139872008-02-04 Jason Rumney <jasonr@gnu.org>
13988
13989 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13990 set full_name.
13991 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13992
139932008-02-03 Jason Rumney <jasonr@gnu.org>
13994
13995 * makefile.w32-in (OBJ1): Include font.o here.
13996 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13997
139982008-02-02 Jason Rumney <jasonr@gnu.org>
13999
14000 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14001
140022008-02-01 Jason Rumney <jasonr@gnu.org>
14003
14004 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14005
14006 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14007
140082008-02-01 Andreas Schwab <schwab@suse.de>
14009
14010 * Makefile.in (shortlisp, lisp): Update for rename of
14011 ../lisp/language/myanmar.el.
14012
140132008-02-01 Chong Yidong <cyd@stupidchicken.com>
14014
14015 * xfaces.c (get_lface_attributes): Delete function.
14016 (merge_named_face, lookup_named_face, lookup_derived_face)
14017 (realize_named_face): Call lface_from_face_name directly, and use
14018 the fact that merge_face_vectors does not alter its FROM argument.
14019
140202008-02-01 Jason Rumney <jasonr@gnu.org>
14021
14022 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14023 input in the default locale. Handle non-Unicode multibyte input.
14024
140252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14026
14027 * fontset.c (reorder_font_vector): Exclude nil elements from the
14028 font group. Don't try multiple fonts.
14029 (fontset_font): Adjust for the above change.
14030 (Finternal_char_font): Return nil if the found font doesn't
14031 contain the character ch.
14032
14033 * Makefile.in (lisp, shortlisp): Add cham.el.
14034
140352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14036
14037 * font.h (FONTP): Make it return 1 also for a font-object.
14038
14039 * .gdbinit (xfontset): New function.
14040
14041 * font.c (font_find_for_lface): Check if the character C is
14042 supported or not only for the first font.
14043
14044 * fontset.c (reorder_font_vector): Fix typo.
14045 (fontset_find_font): Don't add a font-spec specifying a script.
14046 Use 0 (not Qt) for the indication of empty font-group. Change the
14047 format of RFONT-DEF. Return Qt if no font in the font-group
14048 support the character.
14049 (fontset_font): Adjust for the above change. If no font was
14050 found the character, remember that.
14051 (face_for_char): Adjust for the change of RFONT-DEF.
14052 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14053 no font for the target.
14054 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14055
140562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14057
14058 * font.c (font_load_for_face): Handle the case that the font in
14059 face->lface is a string.
14060
140612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14062
14063 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14064
140652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14066
14067 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14068 Fix previous change. If the frame is not on a window system,
14069 signal an error.
14070
140712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14072
14073 * coding.c (decode_coding_object, encode_coding_object): Adjust
14074 marker positions after conversion.
14075
14076 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14077
140782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14079
14080 * font.c (font_find_for_lface): Fix the handling of the return
14081 value of font_has_char.
14082 (Ffont_shape_text): Fix previous change.
14083
14084 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14085 (fontset_ref_and_range): Delete it.
14086 (fontset_find_font): Call char_table_ref_and_range instead of
14087 FONTSET_REF_AND_RANGE.
14088 (make_fontset): Don't setup font groups of Latin here.
14089 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14090 (new_fontset_from_font): Make the specified font the default for
14091 all Latin characters.
14092
140932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14094
14095 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14096 is on a window system before accessing the fontset of the frame.
14097
140982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14099
14100 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14101
14102 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14103 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14104
14105 * font.c (Ffont_shape_text): If the font driver doesn't have a
14106 shaper function, make zero-width glyphs to have at least one-pixel
14107 width. Fix setting of `to' field of glyphs.
14108
141092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14110
14111 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14112 glyphs.
14113
14114 * font.h (struct font_driver): Improve docstring of member `shape'.
14115
141162008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 * composite.c (syms_of_composite): Fix docstring of
14119 auto-composition-function.
14120
14121 * font.h (LGLYPH_SIZE): New macro.
14122
14123 * font.c (Ffont_fill_gstring): Stop filling when a character not
14124 supported by the font is found.
14125 (Ffont_shape_text): When a shape callback function returns nil,
14126 try at most two more times with larger gstring.
14127 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14128
14129 * xdisp.c (handle_auto_composed_prop): Change the argument to
14130 auto-composition-function.
14131
14132 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14133 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14134 Lispy glyph and store it in the lgstring.
14135
14136 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14137
14138 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14139
141402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14141
14142 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14143
14144 * fontset.c (Vfont_encoding_charset_alist): New variable.
14145 (syms_of_fontset): DEFVAR it.
14146 (reorder_font_vector, fontset_find_font): Optimize for the case of
14147 no need of reordering.
14148 (face_for_char): Map the charset property by
14149 Vfont_encoding_charset_alist.
14150
141512008-02-01 Jason Rumney <jasonr@gnu.org>
14152
14153 * w32font.c (logfonts_match): Don't check adstyle here.
14154 (font_matches_spec): Check here against physical font instead.
14155 (add_font_entity_to_list): Avoid some substitutions.
14156
14157 * font.c (font_parse_fcname): Default weight and slant to normal.
14158 (font_score): Prefer normal fonts if weight or slant unspecified.
14159 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14160 match freetype scores.
14161
141622008-02-01 Jason Rumney <jasonr@gnu.org>
14163
14164 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14165 font, as it may have been deleted.
14166 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14167 most common hyphenless variation.
14168 (logfonts_match): Check generic family.
14169 (font_matches_spec): Don't check generic family here.
14170 (fill_in_logfont): Set generic family based on adstyle.
14171
14172 * w32font.h (w32font_get_cache): Update declaration.
14173
141742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14175
14176 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14177
14178 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14179 If none of the new drivers are available, call font_update_drivers
14180 with the old drivers.
14181
14182 * w32font.c (w32font_get_cache): Adjust the argument type.
14183
14184 * xfont.c (xfont_get_cache): Adjust the argument type.
14185
14186 * font.h (struct font_driver): Change argument type of get_cache.
14187
14188 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14189
14190 * font.c (Ffont_get): Fix arguments to Fassoc.
14191 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14192 (font_clear_cache): New function.
14193 (font_list_entities, font_matching_entity): Use font_get_cache.
14194 (font_update_drivers): Call font_clear_cache when finishing a driver.
14195
14196 * fontset.c (fontset_find_font): Fix previous change.
14197
141982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14199
14200 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14201 dpyinfo->font_table.
14202 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14203 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14204
14205 * font.c (font_at): Handle the case that the arg C is negative.
14206 Handle the unibyte case.
14207 (Ffont_at): Call font_at with the arg C -1.
14208
14209 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14210 the position here, and call font_at with the arg C -1.
14211 Don't check the range of the existing composition at the point.
14212
142132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14214
14215 * fontset.c (fontset_add): New args charset_id and family.
14216 Change caller.
14217 (load_font_get_repertory, fontset_find_font): Assume that
14218 font_spec is always a font-spec object.
14219 (Fset_fontset_font): Always store a font-spec object in a fontset.
14220
14221 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14222 instead of get_property_and_range.
14223
142242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14225
14226 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14227 (xftfont_open): Don't keep locking face.
14228 (xftfont_close): Don't unlock face.
14229 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14230
14231 * fontset.c (fontset_find_font): Don't prefer a font of
14232 supplementary charset.
14233
142342008-02-01 Kenichi Handa <handa@m17n.org>
14235
14236 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14237 script, langsys_tag to langsys, new member script.
14238 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14239 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14240 listing to the script specified in that property. Fix arg to
14241 OTF_check_features.
14242
142432008-02-01 Jason Rumney <jasonr@gnu.org>
14244
14245 * w32font.h: New file.
14246
14247 * w32font.c: Include it.
14248 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14249 (w32font_open): Set owning_frame.
14250 (w32font_text_extents): Use owning_frame.
14251 (struct font_callback_data): Add opentype_only field.
14252 (add_font_entity_to_list): Use it to filter fonts.
14253 Don't check against full name.
14254 (w32font_list_internal): New function.
14255 (w32font_list): Use it.
14256 (w32font_match_internal): New function.
14257 (w32font_match): Use it.
14258 (w32font_open_internal): New function.
14259 (w32font_open): Use it.
14260 (w32font_get_cache, w32font_close, w32font_has_char)
14261 (w32font_encode_char, w32font_text_extents, w32font_draw):
14262 Make non-static.
14263
14264 * makefile.w32-in (w32font.o): Depend on w32font.h.
14265
142662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14267
14268 * charset.c (Fdefine_charset_internal): Record a supplementary
14269 charset at the tail of Vcharset_order_list.
14270
14271 * font.c (Ffont_shape_text): Fix the return value.
14272
14273 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14274
14275 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14276
142772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14278
14279 * ftfont.c (struct OpenTypeSpec): New struct.
14280 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14281 (ftfont_get_open_type_spec): New function.
14282 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14283
14284 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14285
142862008-02-01 Jason Rumney <jasonr@gnu.org>
14287
14288 * w32font.c (add_font_entity_to_list): Compare only the beginning
14289 of full name.
14290
142912008-02-01 Kenichi Handa <handa@m17n.org>
14292
14293 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14294 Never return HANDLED_RECOMPUTE_PROPS.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * font.c (font_gstring_produce): Delete it.
14299
14300 * composite.h (COMPOSITION_METHOD):
14301 Handle COMPOSITION_WITH_GLYPH_STRING.
14302
143032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14304
14305 * xfont.c (Qx): Delete.
14306 (syms_of_xfont): Don't initialize Qx.
14307
14308 * composite.h (enum composition_method):
14309 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14310
143112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14312
14313 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14314 (choose_face_font): Accept new form of font-spec.
14315
14316 * frame.h (font_driver_list): Declare it unconditionally.
14317 (struct frame): Define members font_driver_list and font_data_list
14318 unconditionally.
14319
14320 * fontset.c: Include "font.h" unconditionally.
14321 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14322 (Fset_fontset_font): Accept a font-spec object.
14323
14324 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14325 PIXEL_SIZE part a wild card.
14326
14327 * dispextern.h (struct glyph_string): Define members clip and
14328 num_clips unconditionally.
14329 (struct face): Define members font_info and extra unconditionally.
14330
14331 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14332 ftfont_info only when HAVE_LIBOTF is defined.
14333
143342008-02-01 Andreas Schwab <schwab@suse.de>
14335
14336 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14337 and end.
14338
143392008-02-01 Jason Rumney <jasonr@gnu.org>
14340
14341 * w32font.c (w32font_driver): Add new fields.
14342
143432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14344
14345 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14346 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14347 (LIBES): Add @M17N_FLT_CFLAGS@.
14348
14349 * composite.c (compose_text): Don't treat the new style
14350 composition specially.
14351
14352 * emacs.c (main): Call syms_of_font unconditionally.
14353
14354 * font.h (FONT_ENTITY_NOT_LOADABLE)
14355 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14356 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14357 (struct font_driver): New member shape.
14358 (font_registry_charsets): Extern it.
14359 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14360 (font_otf_capability, font_drive_otf): Delete their externs.
14361
14362 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14363 (font_charset_alist, font_registry_charsets): Move from xfont.c
14364 and rename.
14365 (font_prop_validate_otf): New function.
14366 (font_property_table): Register it for QCotf.
14367 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14368 (font_drive_otf): Delete.
14369 (font_prepare_composition): New arg F. Adjust for the change of
14370 lispy gstring.
14371 (font_find_for_lface): New arg C.
14372 (font_load_for_face): Adjust for the change of font_find_for_lface.
14373 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14374 lispy gstring.
14375 (Ffont_shape_text): New function.
14376 (Fopen_font): If the font size is not given, use 12-pixel.
14377 (Ffont_at): New arg STRING.
14378 (syms_of_font): Initalize font_charset_alist.
14379 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14380 conditionally.
14381
14382 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14383 fonts of the same font-spec. Change the format of RFONT-DEF.
14384 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14385 Adjust for the change of RFONT-DEF.
14386 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14387
14388 * ftfont.h: New file.
14389
14390 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14391 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14392 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14393 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14394 font_otf_capability and font_drive_otf, set ftfont_shape.
14395 (ftfont_list): Adjust for the change of :otf property value.
14396 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14397 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14398 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14399 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14400 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14401 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14402
14403 * w32term.c (x_draw_composite_glyph_string_foreground):
14404 Adjust for the change of lispy gstring.
14405
14406 * xdisp.c (handle_composition_prop): Adjust for the change of
14407 lispy gstring. Call a function for auto-composition with the
14408 third arg it->window.
14409 (fill_composite_glyph_string): Adjust for the change of lispy string.
14410 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14411
14412 * xfaces.c (set_font_frame_param): Adjust for the change of
14413 font_find_for_lface.
14414
14415 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14416 (xfont_registry_charsets): Likewise. Change caller.
14417 (syms_of_xfont): Don't handle x_font_charset_alist.
14418
14419 * xftfont.c: Include "ftfont.h".
14420 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14421 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14422 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14423 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14424 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14425 Set xftfont_driver.shape to xftfont_shape.
14426
14427 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14428 the change of lispy gstring.
14429
144302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14431
14432 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14433
144342008-02-01 Jason Rumney <jasonr@gnu.org>
14435
14436 * w32font.c (w32font_draw): Fill background manually.
14437
144382008-02-01 Jason Rumney <jasonr@gnu.org>
14439
14440 * font.c (Qfontp): Remove unused symbol.
14441 (QCantialias): New symbol.
14442 (syms_of_font): Define it.
14443 (font_property_table): Set a validator for QCantialias.
14444
14445 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14446 Define if not already.
14447 (QCfamily): Share with xfaces.c.
14448 (Qstandard, Qsubpixel, Qnatural): New symbols.
14449 (syms_of_w32font): Define them. Don't define QCfamily here.
14450 (w32_antialias_type, lispy_antialias_type): New functions.
14451 (w32_enumfont_pattern_entity): New arg requested_font.
14452 Set antialias parameter if non-default was requested.
14453 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14454
144552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14456
14457 * lread.c (read1): Undo the previous change.
14458
144592008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14460
14461 * frame.c (Fdelete_frame): Call font_update_drivers only when
14462 USE_FONT_BACKEND is defined.
14463
144642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14465
14466 * font.h (struct font_bitmap): New member bits_per_pixel.
14467 (struct font_driver): New members start_for_frame and end_for_frame.
14468 (struct font_data_list): New struct.
14469 (font_put_frame_data, font_get_frame_data): Extern them.
14470
14471 * frame.h (struct frame): New member font_data_list.
14472
14473 * font.c (font_update_drivers): Call driver->start_for_frame and
14474 driver->end_for_frame at proper timings.
14475 (font_put_frame_data, font_get_frame_data): New functions.
14476 (Ffont_spec): Add usage in the docstring.
14477
14478 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14479 (Fdelete_frame): Call font_update_drivers.
14480
14481 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14482 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14483 (xftfont_get_xft_draw): New function.
14484 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14485 (xftfont_end_for_frame): New function.
14486 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14487
14488 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14489 Change argument. Cache GCs in the per-frame data.
14490 (struct ftxfont_frame_data): New struct.
14491 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14492 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14493 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14494 (ftxfont_end_for_frame): New function.
14495 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14496
14497 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14498
144992008-02-01 Kenichi Handa <handa@m17n.org>
14500
14501 * xselect.c (Vselection_coding_system)
14502 (Vnext_selection_coding_system): Delete them.
14503 (syms_of_xselect): Don't declare selection-coding-system and
14504 next-selection-coding-system. They are declared in select.el.
14505
145062008-02-01 Jason Rumney <jasonr@gnu.org>
14507
14508 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14509
14510 * w32fns.c: Include imm.h.
14511 (get_composition_string_fn, get_ime_context_fn): New optional
14512 system functions.
14513 (globals_of_w32fns): Load them from imm32.dll.
14514 (ignore_ime_char): New flag.
14515 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14516 WM_IME_ENDCOMPOSITION messages.
14517
14518 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14519 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14520
145212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14522
14523 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14524 (READCHAR_REPORT_MULTIBYTE): New macro.
14525 (readchar): New 2nd arg MULTIBYTE.
14526 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14527 Make symbol's name multibyte according to the multibyteness of the
14528 source.
14529
145302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14531
14532 * xfaces.c (face_for_overlay_string): Call lookup_face with
14533 correct arguments (fix of synching with the trunk).
14534
145352008-02-01 Kenichi Handa <handa@m17n.org>
14536
14537 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14538 (font_prop_validate_non_neg, font_prop_validate_spacing):
14539 Delete argument prop_index.
14540 (font_property_table): Change arguments to validater. Change Callers.
14541 (font_lispy_object): Delete.
14542 (font_at): Use font_find_object instead fo font_lispy_object.
14543
145442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14545
14546 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14547 and file names.
14548
145492008-02-01 Jason Rumney <jasonr@gnu.org>
14550
14551 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14552 (font_matches_spec): Remove debug output.
14553 (add_font_entity_to_list): Avoid using substituted fonts.
14554
145552008-02-01 Jason Rumney <jasonr@gnu.org>
14556
14557 * doc.c (Fsnarf_documentation):
14558 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14559
145602008-02-01 Miles Bader <miles@gnu.org>
14561
14562 * dispextern.h (struct glyph_row): Only define "clip" field if
14563 HAVE_WINDOW_SYSTEM is defined.
14564
145652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14566
14567 Fix up multi-tty merge.
14568
14569 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14570 and indentation.
14571
14572 * xfaces.c (free_realized_face, clear_face_gcs):
14573 Include font_done_for_face in the input_blocked section, just in case.
14574
14575 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14576 (get_char_face_and_encoding): Undo last change and remove the *other*
14577 duplicate definition (i.e. keep the one that's better scoped and that
14578 includes code for the font-backend).
14579
14580 * terminal.c (create_terminal): Default keyboard_coding to
14581 `no-conversion' and terminal_coding to `undecided'.
14582
14583 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14584
14585 * fontset.c (free_realized_fontsets): Check that the table entry does
14586 contain a fontset before trying to compare it to `base'.
14587
14588 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14589 syms_of_charset, and syms_of_coding earlier because init_window_once
14590 now needs Vcoding_system_hash_table to be setup.
14591
14592 * coding.h (default_buffer_file_coding): Remove.
14593
14594 * coding.c (default_buffer_file_coding): Remove.
14595 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14596 than ->symbol, and use the terminal-local coding system.
14597 (syms_of_coding): Don't setup the coding-systems that are not
14598 terminal-local.
14599 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14600
14601 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14602 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14603
14604 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14605 in chartab.c and were re-added here by mistake.
14606 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14607
14608 * doc.c (Fsnarf_documentation):
14609 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14610 src to etc.
14611
14612 * ChangeLog.10: Add mistakenly removed entry.
14613
146142008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14615
14616 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14617
146182008-02-01 Miles Bader <miles@gnu.org>
14619
14620 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14621 Add extra args to FACE_FOR_CHAR.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14626 in sequence.
14627
14628 * chartab.c (map_sub_char_table, map_char_table): If the range
14629 contains just one character, call the function with that character
14630 even if the depth is not 3.
14631
146322008-02-01 Jason Rumney <jasonr@gnu.org>
14633
14634 * w32font.c (w32font_text_extents): Calculate metrics for the
14635 whole string.
14636
146372008-02-01 Jason Rumney <jasonr@gnu.org>
14638
14639 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14640
146412008-02-01 Jason Rumney <jasonr@gnu.org>
14642
14643 * w32term.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 * w32font.c (w32font_draw): Do clipping here.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * xftfont.c (xftfont_draw): Adjust for the change of struct
14653 glyph_string.
14654
14655 * xterm.c (x_set_glyph_string_clipping): Use
14656 get_glyph_string_clip_rects.
14657 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14658 Adjust for the change of struct glyph_string.
14659
14660 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14661 the resulting clip(s}.
14662 (expose_overlaps): Add arg r. Change callers. Set it to
14663 row->clip temporarily.
14664 (expose_window): Redraw rows overlapping the exposed area.
14665
14666 * dispextern.h (struct glyph_row): New member clip.
14667 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14668 clip_height, new member clip, and num_clips.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * data.c (Fchar_or_string_p): Fix docstring.
14673
146742008-02-01 Kenichi Handa <handa@m17n.org>
14675
14676 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14677 create a temporary XftDraw object.
14678
146792008-02-01 Kenichi Handa <handa@m17n.org>
14680
14681 * font.c (Ffontp): Fix docstring.
14682
14683 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14684 strong evidence of ISO-2022.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14689 SYNTAX_ENTRY_FOLLOW_PARENT.
14690
146912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14692
14693 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14694 its type.
14695 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14696 Update to the new type of weak_hash_tables and next_weak.
14697
14698 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14699 a plain C pointer to Lisp_Hash_Table.
14700
14701 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14702 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14703 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14704 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14705 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14706 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14707 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14708 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14709 (GC_EQ): Remove since they've been identical to their non-GC_
14710 alter-egos ever since the markbit was eradicated.
14711
14712 * alloc.c:
14713 * buffer.c:
14714 * buffer.h:
14715 * data.c:
14716 * fileio.c:
14717 * filelock.c:
14718 * fns.c:
14719 * frame.h:
14720 * lisp.h:
14721 * macterm.c:
14722 * print.c:
14723 * process.c:
14724 * w32fns.c:
14725 * w32menu.c:
14726 * w32term.c:
14727 * xfns.c:
14728 * xmenu.c:
14729 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14730
147312008-02-01 Kenichi Handa <handa@m17n.org>
14732
14733 * chartab.c (map_sub_char_table): Make it work for the top-level
14734 char-table. Fix handling of parent char-table.
14735 (map_char_table): Adjust for the above change.
14736
147372008-02-01 Jason Rumney <jasonr@gnu.org>
14738
14739 * w32font.c (Qgdi): Rename from Qw32.
14740
147412008-02-01 Jason Rumney <jasonr@gnu.org>
14742
14743 * w32bdf.c (get_quoted_string): Make function static.
14744
147452008-02-01 Kenichi Handa <handa@m17n.org>
14746
14747 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14748 bigger ascent and descent than those of the font, use them as
14749 font's ascent and descent.
14750
147512008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * Makefile.in (${lispsource}international/charprop.el): Move this
14754 target within "#ifdef HAVE_UNIDATA" and "#endif".
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14759 (shortlisp): Add ../lisp/language/tai-viet.el.
14760
147612008-02-01 Ulrich Mueller <ulm@gentoo.org>
14762
14763 * Makefile.in (${lispsource}international/charprop.el): Depend on
14764 temacs${EXEEXT}.
14765
147662008-02-01 Jason Rumney <jasonr@gnu.org>
14767
14768 * w32font.c (w32font_close): Delete the GDI font object.
14769
14770 * w32menu.c: Include character.h.
14771
14772 * w32proc.c: Likewise.
14773
14774 * w32select.c: Likewise.
14775
14776 * makefile.w32-in (w32proc.o): Depend on character.h.
14777
147782008-02-01 Jason Rumney <jasonr@gnu.org>
14779
14780 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14781
14782 * w32menu.c (syms_of_w32menu): Likewise.
14783
14784 * w32proc.c (syms_of_ntproc): Likewise.
14785
14786 * w32select.c (syms_of_w32select): Likewise.
14787
14788 * w32term.c (syms_of_w32term): Likewise.
14789
147902008-02-01 Jason Rumney <jasonr@gnu.org>
14791
14792 * w32font.c (w32font_draw): Delete brush after using it.
14793
147942008-02-01 Jason Rumney <jasonr@gnu.org>
14795
14796 * w32font.c (w32font_open): Don't set font_idx.
14797 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14798 to font settings.
14799 (w32font_draw): Fill background explicitly.
14800
148012008-02-01 Jason Rumney <jasonr@gnu.org>
14802
14803 * w32term.c (w32_initialize): Don't call w32font_initialize.
14804
14805 * w32font.c (w32font_info): Remove subranges.
14806 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14807 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14808 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14809 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14810 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14811 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14812 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14813 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14814 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14815 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14816 New symbols.
14817 (font_callback_data): New struct.
14818 (w32font_list, w32font_match): Use it.
14819 (w32font_open): Don't populate subranges.
14820 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14821 (w32font_encode_char): Always return unicode code-point as-is.
14822 (w32font_text_extents): Supply a transformation matrix to
14823 GetGlyphOutline. Never look up by glyph index. Avoid looping
14824 twice. Use unicode version of GetTexExtentPoint32 instead of
14825 glyph index version.
14826 (set_fonts_frame): Remove.
14827 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14828 set frame parameter. Use backward compatible fake foundries.
14829 Save generic family in extra slot under QCfamily. Make width slot
14830 constant. Save QCspacing value. Save list of scripts instead of
14831 binary subranges.
14832 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14833 (add_font_entity_to_list): Use font_callback_data struct. Filter
14834 unwanted fonts.
14835 (add_one_font_entity_to_list): Use font_callback_data struct.
14836 (w32_registry): Default to iso10646_1.
14837 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14838 string font registries. Don't fill in font name if it is a generic
14839 family name, fill family instead. Use spacing, family and script
14840 extra info to fill pitch, family and charset fields.
14841 (list_all_matching_fonts): Use font_callback_data struct.
14842 (unicode_range_for_char): Remove.
14843 (font_supported_scripts): New function.
14844 (w32font_initialize): Remove.
14845 (syms_of_w32font): Update which symbols are defined.
14846
148472008-02-01 Jason Rumney <jasonr@gnu.org>
14848
14849 * font.c (font_pixel_size): Reverse assq_no_quit args.
14850
14851 * w32term.h (FONT_WIDTH): Report max width, not average.
14852 (FONT_MAX_WIDTH): Remove.
14853 (FONT_AVG_WIDTH): New macro.
14854
14855 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14856 redefinition of FONT_WIDTH.
14857
14858 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14859 (w32_cache_char_metrics): Use FONT_WIDTH.
14860
14861 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14862
148632008-02-01 Jason Rumney <jasonr@gnu.org>
14864
14865 * w32font.c (w32font_open): Make lfHeight negative.
14866
14867 * w32fns.c (x_default_font_parameter): Use new style font name.
14868 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14869
148702008-02-01 Jason Rumney <jasonr@gnu.org>
14871
14872 * w32font.c (QCsubranges): New symbol.
14873 (w32font_open, w32font_has_char): Get subranges from subproperty
14874 of extra.
14875 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14876 (syms_of_w32font): Define :subranges symbol.
14877
14878 * font.c (font_put_extra): Expose externally.
14879
14880 * font.h (font_put_extra): Move declaration from font.c.
14881
14882 * font.c (Ffont_get): Use font driver to determine otf capability.
14883 (adjust_anchor): Check if driver defines anchor_point before using.
14884
14885 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14886 (w32font_draw): Use options.
14887 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14888 Fix detection of truetype fonts.
14889 (registry_to_w32_charset): Handle charsets other than iso8859-1
14890 expressed as lisp symbols.
14891 (w32_registry): Express charset as lisp symbol.
14892 (fill_in_logfont): Reverse pixel and point height logic.
14893 Don't set width here. Set quality to default.
14894
14895 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14896 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14897
14898 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14899 Remove redundant loop and allocation.
14900
14901 * makefile.w32-in (font.o, w32font.o): New objects.
14902 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14903 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14904
14905 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14906 STORE_XCHARB a valid l-value.
14907
14908 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14909 calculations for non-Truetype fonts.
14910 (x_draw_glyph_string): Sync with xterm.c.
14911 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14912 Remove redundant code.
14913 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14914
14915 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14916 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14917
14918 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14919 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14920
14921 * w32font.c: New file for w32 font backend.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * term.c: Don't include "buffer.h" twice.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * character.c (Funibyte_string): New function.
14930 (syms_of_character): Defsubr it.
14931
149322008-02-01 Jason Rumney <jasonr@gnu.org>
14933
14934 * w32term.c [USE_FONT_BACKEND]:
14935 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14936 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14937 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14938 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14939 (x_free_frame_resources): Sync with xterm.c.
14940
149412008-02-01 Andreas Schwab <schwab@suse.de>
14942
14943 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14944 char-table size.
14945
149462008-02-01 Kenichi Handa <handa@m17n.org>
14947
14948 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14949
149502008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14953 font_otf_gpos, add font_drive_otf.
14954
14955 * fontset.c (fontset_find_font): Pay attention to font size
14956 specified for a font.
14957 (reorder_font_vector): Check contents of font_def.
14958
14959 * font.c (struct otf_list): Delete it.
14960 (otf_list): Make it a lisp variable.
14961 (otf_open): Use lispy otf_list.
14962 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14963 (check_otf_features): New function.
14964 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14965 New functions.
14966 (font_drive_otf): New function merging font_otf_gsub and
14967 font_otf_gpos.
14968 (font_open_for_lface): New arg spec. Change argument order.
14969 (font_load_for_face): Adjust for the change of font_open_for_lface.
14970 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14971 Ffont_otf_gpos.
14972 (syms_of_font): Staticpro otf_list. Delete defsubr of
14973 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14974
14975 * xfaces.c (set_font_frame_param): Adjust for the change of
14976 font_open_for_lface.
14977
14978 * font.h (font_open_for_lface): Adjust prototype.
14979 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14980 member otf_drive.
14981 (font_otf_gsub, font_otf_gpos): Delete externs.
14982 (font_drive_otf): Extern it.
14983
149842008-02-01 Kenichi Handa <handa@m17n.org>
14985
14986 * font.c (font_at): If the window W is not on a window system,
14987 return Qnil.
14988
14989 * coding.c (produce_chars, encode_coding): Don't call
14990 insert_from_gap if no characters to produce.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14995 Fclear_face_cache.
14996
14997 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14998
149992008-02-01 Miles Bader <miles@gnu.org>
15000
15001 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15002 Parse "--disable-font-backend" option.
15003 (standard_args): Add "--disable-font-backend" option.
15004
150052008-02-01 Kenichi Handa <handa@m17n.org>
15006
15007 * fontset.c (fontset_find_font): New function.
15008 (fontset_font): Use fontset_find_font.
15009 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15010 Register the specified font for all Latin characters.
15011 (new_fontset_from_font): Register the specified font for all Latin
15012 characters.
15013 (dump_fontset): For a realized fontset, include the base fontset
15014 name in the returned vector.
15015
150162008-02-01 Kenichi Handa <handa@m17n.org>
15017
15018 * character.h (CHAR_STRING): Cast C to unsigned on calling
15019 char_string.
15020
15021 * character.c (char_string): Type of arg C changed to unsigned.
15022 Signal an error if C is an invalid character code.
15023
15024 * editfns.c (general_insert_function, Fchar_to_string):
15025 Use CHARACTERP, not INTEGERP.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15030 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15031
15032 * regex.c (analyse_first): Fix for multibyte characters in "case
15033 charset:" and "case categoryspec:".
15034
150352008-02-01 Andreas Schwab <schwab@suse.de>
15036
15037 * Makefile.in (LIBES): Move standard libraries to the end.
15038
150392008-02-01 Kenichi Handa <handa@m17n.org>
15040
15041 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15042 nonzero, don't shrink the buffer nextb.
15043
15044 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15045
15046 * coding.c (coding_alloc_by_making_gap): New arg offset.
15047 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15048 offset.
15049 (decode_coding_iso_2022): Update coding->safe_charsets.
15050 (decode_coding_gap): Temporarily set
15051 current_buffer->text->inhibit_shrinking to 1.
15052
150532008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15056 indexing into elements of s->cmp and s->char2b.
15057
150582008-02-01 Juanma Barranquero <lekktu@gmail.com>
15059
15060 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15061
150622008-02-01 Kenichi Handa <handa@m17n.org>
15063
15064 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15065 target_multibyte instead of multibyte.
15066 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15067 (bcmp_translate): Change the argument name from multibyte to
15068 target_multibyte.
15069
150702008-02-01 Kenichi Handa <handa@m17n.org>
15071
15072 These changes are to compile a regexp into a pattern that can be
15073 used both for multibyte and unibyte targets.
15074
15075 * Makefile.in (search.o): Depend on charset.h.
15076
15077 * character.c (multibyte_char_to_unibyte_safe): New function.
15078
15079 * search.c: Include "charset.h".
15080 (compile_pattern_1): Delete argument multibyte. Don't set
15081 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15082 (compile_pattern): Don't compare cp->buf.target_multibyte.
15083 Compare cp->buf.charset_unibyte.
15084 (compile_pattern): Set cp->buf.target_multibyte.
15085
15086 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15087
15088 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15089
15090 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15091 multibyte. Change callers.
15092 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15093 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15094 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15095 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15096 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15097 (regex_compile): Make the compiled pattern usable both for
15098 multibyte and unibyte targets.
15099 (analyse_first): Make the fastmap usable both for multibyte and
15100 unibyte targets.
15101 (TRANSLATE_VIA_MULTIBYTE): Delete.
15102 (re_match_2_internal): Pay attention to the case that the
15103 multibyteness of bufp and target may be different.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15108 empty box occupy at least one column width.
15109
151102008-02-01 Miles Bader <miles@gnu.org>
15111
15112 * Makefile.in: Remove redundant HAVE_XFT clause.
15113
151142008-02-01 Kenichi Handa <handa@m17n.org>
15115
15116 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15117
151182008-02-01 Kenichi Handa <handa@m17n.org>
15119
15120 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15121 being nil.
15122
151232008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15126
151272008-02-01 Kenichi Handa <handa@m17n.org>
15128
15129 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15130
151312008-02-01 Kenichi Handa <handa@m17n.org>
15132
15133 * search.c (simple_search): Fix previous change.
15134
151352008-02-01 Kenichi Handa <handa@m17n.org>
15136
15137 * xftfont.c (ftfont_font_format): Extern declaration.
15138
15139 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15140
15141 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15142 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15143
15144 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15145 (ftfont_font_format): Fix previous change.
15146
15147 * font.h (Ffont_xlfd_name): EXFUN it.
15148
15149 * font.c (font_parse_xlfd): Fix the array size of `f'.
15150 (register_font_driver): Use EQ to compare driver->type.
15151
15152 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15153 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15154 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15159 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * xfont.c (xfont_open): Set font->format.
15164
15165 * xftfont.c (xftfont_open): Set font->format.
15166
15167 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15168 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15169 (ftfont_open): Set font->format.
15170 (ftfont_font_format): New function.
15171
15172 * font.h (struct font): New member format.
15173
15174 * font.c (Qopentype): New variable.
15175 (syms_of_font): Defsym it.
15176 (Fquery_font): Change the format of the last element of the return
15177 value.
15178
151792008-02-01 Kenichi Handa <handa@m17n.org>
15180
15181 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15182 last resort.
15183
151842008-02-01 Kenichi Handa <handa@m17n.org>
15185
15186 * coding.c (detect_coding_charset): Fix detection of multi-byte
15187 charset.
15188
151892008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15190
15191 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15192
151932008-02-01 Kenichi Handa <handa@m17n.org>
15194
15195 * xdisp.c (get_next_display_element): Set it->face_id for the
15196 first component of a composition.
15197 (x_produce_glyphs): Check if the font is changed or not for composition.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * fontset.c (Qlatin): New variable.
15202 (syms_of_fontset): Define it as a lisp symbol.
15203 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * font.c (font_unparse_fcname): Pay attention to the case that
15208 some of font property is a null string.
15209
152102008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * term.c: Include "composite.h".
15213 (encode_terminal_code): Output all components of composition.
15214 Check the size of encode_terminal_src.
15215 (produce_glyphs): For composition, call produce_composite_glyph.
15216 (append_composite_glyph, produce_composite_glyph): New functions.
15217
15218 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15219 is not found, get font_info from the current ascii face.
15220
152212008-02-01 Kenichi Handa <handa@m17n.org>
15222
15223 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15224 buffer-file-name to Qnil before calling insert_from_buffer.
15225
15226 * font.c (font_unparse_fcname): Pay attention to the case that
15227 foundry is a null string.
15228
152292008-02-01 Kenichi Handa <handa@m17n.org>
15230
15231 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15232
15233 * font.c (Qunicode_sip): New variable.
15234 (syms_of_font): Declare it as a Lisp symbol.
15235
15236 * font.h (Qunicode_sip): Extern it.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * composite.c (get_composition_id): Pay attention to TAB component.
15241
15242 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15243 TAB. Adjust for the change of s->char2b which always points to
15244 the first element of allocated memory.
15245
15246 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15247
15248 * xdisp.c (handle_composition_prop): Set it->c to the first
15249 non-TAB component.
15250 (fill_composite_glyph_string): Change argument.
15251 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15252 (x_produce_glyphs): Fix handling of left/right padding.
15253
152542008-02-01 Kenichi Handa <handa@m17n.org>
15255
15256 * coding.c (detect_coding_system): Fix for handling off
15257 inhibit_iso_escape_detection. Fix for the case that no coding
15258 system is defined for a specific coding category.
15259
152602008-02-01 Kenichi Handa <handa@m17n.org>
15261
15262 * font.c (font_matching_entity): Delete unused local var.
15263
15264 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15265 opening a font.
15266
15267 * fileio.c (Finsert_file_contents): On recovering a file, assume
15268 Unix-like eol.
15269 (choose_write_coding_system): On auto-saving a file, force
15270 Unix-like eol.
15271
15272 * coding.c (setup_coding_system): Fix setting of
15273 coding->common_flags based on eol_type.
15274 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15275 inherit from it.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * alloc.c (NSTATICS): Increas to 0x600.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15284 (ftfont_list): Don't check :name property.
15285 (ftfont_match): New function.
15286 (ftfont_pattern_entity): If the pattern doesn't contain
15287 FC_SPACING, don't assume FC_MONO.
15288
15289 * font.h (struct font_driver): New member `match'.
15290 (font_update_drivers): Adjust prototype.
15291
15292 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15293 property of FONT.
15294 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15295 them unconditionally.
15296 (font_matching_entity): New function.
15297 (font_open_by_name): Try font_matching_entity if exact match is
15298 not found.
15299 (font_update_drivers): Delete the arg FONT. Return a list of
15300 actually used backends. Don't free faces, font caches here.
15301 Don't store data in frame parameters. Don't call x_set_font.
15302 (Ffont_spec): Store :name property as is.
15303 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15304 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15305 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15306 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15307 Call font->driver->otf_gsub instead of font_otf_gsub.
15308
15309 * frame.c (x_set_font_backend): Do more works that were done in
15310 font_update_drivers before.
15311
15312 * xfont.c (xfont_match): New function.
15313 (xfont_driver): Set xfont_driver.match to xfont_match.
15314 (xfont_draw): Set font in GC if necessary.
15315
15316 * ftxfont.c (ftxfont_match): New function.
15317 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15318
15319 * xftfont.c (xftfont_match): New function.
15320 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15321
153222008-02-01 Kenichi Handa <handa@m17n.org>
15323
15324 * font.h (struct font): New member scalable.
15325 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15326 (font_otf_gsub): Adjust prototype.
15327
15328 * font.c (font_otf_capability): Fix handling of the default langsys.
15329 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15330 Check the contents of SPEC.
15331 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15332 (check_gstring): New function.
15333 (REPLACEMENT_CHARACTER): New macro.
15334 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15335 glyph codes of GSTRING.
15336 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15337 (font_prepare_composition): Set cmp->glyph_len.
15338 (font_open_entity): Set font->scalable.
15339 (Ffont_get): Handle :otf property.
15340 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15341 functions.
15342 (Fquery_font): Use font->font.full_name.
15343 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15344 Sfont_otf_alternates.
15345
15346 * ftfont.c (ftfont_open): Set font->font.full_name and
15347 font->font.name properly. Fix calculation of font->font.height
15348 and font->min_width.
15349
15350 * ftxfont.c (ftxfont_create_gcs): New function.
15351 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15352 (ftxfont_draw_backgrond): Fix filling region.
15353 (ftxfont_default_fid): New function.
15354 (ftxfont_open): Set xfont->fid to the return value of
15355 ftxfont_default_fid.
15356 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15357 (ftxfont_done_face): Free only GCs that are created by
15358 ftxfont_create_gcs.
15359 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15360
15361 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15362 Clip to src->width, etc (not src->clip_XXX).
15363
15364 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15365 FontBackend frame parameter.
15366
153672008-02-01 Kenichi Handa <handa@m17n.org>
15368
15369 * font.h (struct font_driver_list): New member `on'.
15370 (Fclear_font_cache): EXFUN it.
15371 (font_update_drivers): Extern it.
15372
15373 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15374 (font_list_entities): Check driver_list->on.
15375 (register_font_driver): Initalize `on' member to 0.
15376 (font_update_drivers): New function.
15377 (Fclear_font_cache): Check driver_list->on.
15378
15379 * frame.h (Qfont_backend): Extern it.
15380 (x_set_font_backend): Extern it.
15381
15382 * frame.c (Qfont_backend): New variable.
15383 (frame_parms): New element for font-backend.
15384 (x_set_font_backend): New function.
15385
15386 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15387 FontBackend frame parameter.
15388 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15389 x_set_font_backend.
15390
15391 * xfont.c (xfont_list): Don't try listing by :name property if the
15392 name is not for XLFD.
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15397 (LGLYPH_SET_TO): New macros.
15398 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15399 element of G is vector or not.
15400 (font_at): Extern it.
15401
15402 * font.c: Include window.h.
15403 (font_lispy_object): New function.
15404 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15405 end of valid glyph.
15406 (font_close_object): Fix getting (struct font *).
15407 (font_at): New function.
15408 (Ffont_get): If FONT is a font-object, get entity from it.
15409 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15410 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15411 range check.
15412 (Ffont_at): New function.
15413 (syms_of_font): Defsubr Sfont_at.
15414
15415 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15416 before the entry for Qcomposition.
15417 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15418 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15419 the font in gstring.
15420 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15421 LGLYPH_FORM (g) to detect the end of valid glyph.
15422 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15423 we are composing with gstring.
15424
15425 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15426 Check if adjustment is vector or not.
15427
15428 * Makefile.in (font.o): Make it depends on window.h.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15433 adjustment is vector or not.
15434
154352008-02-01 Miles Bader <miles@gnu.org>
15436
15437 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15438
154392008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15442 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15443 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15444
15445 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15446 (DEVICE_DELTA): Fix typo.
15447 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15448 LGLYPH format.
15449
15450 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15451 the change of LGLYPH format.
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * ftfont.c (ftfont_list): Fix typo.
15456 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15457
154582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15459
15460 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15461
15462 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15463 xftface_info is non-NULL.
15464
154652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15466
15467 * ftfont.c (ftfont_list): Move misplaced #endif.
15468
154692008-02-01 Kenichi Handa <handa@m17n.org>
15470
15471 * ftfont.c (ftfont_list): Pay attention to the case that
15472 FC_CAPABILITY is not defined.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 * xftfont.c (xftfont_open): Set charset related members to -1.
15477
15478 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15479 QCname.
15480 (ftfont_open): Set charset related members to -1.
15481
15482 * fontset.c (Votf_script_alist): New variable.
15483 (syms_of_fontset): Initialize it.
15484 (fontset_font): Delete unused variable.
15485
15486 * fontset.h (Votf_script_alist): Extern it.
15487
15488 * font.c (font_find_for_lface): Optimize code.
15489
15490 * font.h (font_close_object, font_merge_old_spec): Extern them.
15491
154922008-02-01 Kenichi Handa <handa@m17n.org>
15493
15494 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15495 (syms_of_font): Initialize them.
15496 (font_pixel_size): Allow float value in dpi.
15497 (font_prop_validate_type): Delete.
15498 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15499 Change caller.
15500 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15501 (font_prop_validate_extra): Delete.
15502 (font_prop_validate_spacing): New function.
15503 (font_property_table): Add elements for all known properties.
15504 (get_font_prop_index): Rename from check_font_prop_name. New
15505 argument FROM. Change caller.
15506 (font_prop_validate): Validate all known properties.
15507 (font_put_extra): Delete argument force. Change caller.
15508 (font_expand_wildcards): Make it static. Fix the way of shrinking
15509 the possible range.
15510 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15511 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15512 Change caller.
15513 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15514 (font_parse_fcname): Delete argument merge. Fix parsing of point
15515 size. Don't validate properties values here. Change caller.
15516 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15517 (font_open_by_name): Delete unused variable.
15518 (Ffont_spec): Likewise. Validate property values.
15519 (Ffont_match_p): New function.
15520
15521 * font.h (QCscalable): Extern it.
15522 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15523
15524 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15525
15526 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15527 (xfont_list_pattern): New function.
15528 (xfont_list): Use xfont_list_pattern.
15529
155302008-02-01 Kenichi Handa <handa@m17n.org>
15531
15532 * font.h (Flist_fonts): EXFUN it.
15533
155342008-02-01 Jason Rumney <jasonr@gnu.org>
15535
15536 * w32term.c (w32_initialize): Add back smoothing_type and
15537 smoothing_enabled definitions.
15538
155392008-02-01 Kenichi Handa <handa@m17n.org>
15540
15541 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15542 s->face->font on determining underline position.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15547 (font_has_char): Accept font-object too.
15548 (font_find_for_lface): Try at first with a size specified in face.
15549
155502008-02-01 Kenichi Handa <handa@m17n.org>
15551
15552 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15553 font_open_by_name.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * font.h (QCspacing, QCdpi): Extern them.
15558 (enum font_spacing): New enum.
15559 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15560
15561 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15562 (QCspacing, QCdpi): New variables.
15563 (syms_of_font): Initialize them.
15564 (font_pixel_size): New function.
15565 (font_put_extra): New function.
15566 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15567 in FONT_EXTRA.
15568 (font_parse_fcname): Handle enumerated values (e.g. bold).
15569 Fix handling font size. Add QCname property that contains only
15570 unknown properties.
15571 (font_score): Change argument. Change caller. Pay attention to
15572 FONT_PIXEL_SIZE_QUANTUM.
15573 (font_sort_entites, font_list_entities, font_find_for_lface)
15574 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15575 (Ffont_spec): Add QCname property that contains only unknown properties.
15576
15577 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15578 include weight in listing pattern, instead check weight of each
15579 listed font. Don't include scalable in pattern. Pay attention to
15580 FONT_PIXEL_SIZE_QUANTUM.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * font.c (font_parse_fcname): Fix parsing of point-size.
15585 (font_unparse_fcname): Produce symbolic names for style properties.
15586 (font_list_entities): Handle float size correctly.
15587 (font_open_by_name): Prefer `normal' property values if the name
15588 doesn't specify them.
15589
15590 * fontset.c (Finternal_char_font): Use font_get_name, not
15591 Ffont_xlfd_name.
15592
15593 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15594 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15595 pattern. Don't force scalable.
15596
15597 * xftfont.c (xftfont_open): For generating a name, start from
15598 96-byte buffer.
15599
156002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15601
15602 * frame.h (x_new_fontset2): Fix prototype.
15603
156042008-02-01 Kenichi Handa <handa@m17n.org>
15605
15606 * font.h (struct font_driver): Delete member parse_name.
15607 (font_match_p, font_get_spec, font_parse_fcname)
15608 (font_unparse_fcname): Extern them.
15609 (font_get_name): Adjust prototype.
15610
15611 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15612 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15613 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15614 unnecessary checks for weight, slant, and swidth.
15615 (font_parse_fcname): New function.
15616 (font_unparse_fcname): New function.
15617 (font_parse_name): New function.
15618 (font_match_p): New function.
15619 (font_get_name): Change return value to Lisp string.
15620 (font_get_spec): New function.
15621 (Qunspecified, Qignore_defface): Don't extern them.
15622 (font_find_for_lface): Assume that LFACE is fully specified.
15623 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15624 object, use it for FACE.
15625 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15626 driver->parse_name.
15627 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15628
15629 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15630 prototype.
15631
15632 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15633 argument F. Don't call Fnew_fontset. Instead, directly call
15634 make_fontset.
15635
15636 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15637
15638 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15639 of x_new_fontset2.
15640
15641 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15642 (Qsans__serif): New variables.
15643 (ftfont_generic_family_list): New variable.
15644 (syms_of_ftfont): Initialize the above variables.
15645 (ftfont_pattern_entity): Delete argument NAME.
15646 (ftfont_list_generic_family): New function.
15647 (ftfont_parse_name): Delete this function.
15648 (ftfont_list): Try generic family only when FcFontList found no font.
15649 (ftfont_list_family): Fix args to FcObjectSetBuild.
15650
15651 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15652 object in attrs[LFACE_FONT_INDEX].
15653 (set_lface_from_font_name): Cancel all changes for font-backend.
15654 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15655 function.
15656 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15657 font object in QCfont attribute.
15658 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15659 (realize_default_face) [USE_FONT_BACKEND]: Call
15660 set_lface_from_font_and_fontset.
15661
15662 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15663 "fixed", and signal error here if no suitable font was found.
15664
15665 * xfont.c (xfont_parse_name): Delete this function.
15666
15667 * xftfont.c (xftfont_open): Change coding style of error
15668 handling. Generate fontconfig's fontname pattern.
15669
15670 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15671 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15672
15673 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15674 Both args FONTSET and FONT_OBJECT must be existing ones.
15675
156762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15677
15678 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15683
15684 * font.h (struct font): Fix typo.
15685
15686 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15687 XLFD_XXX_INDEX.
15688 (enum xlfd_field_mask): New enum.
15689 (intern_font_field): Changed argument. Change caller. If digits
15690 are followed by non-digits, return a symbol.
15691 (font_expand_wildcards): New function.
15692 (font_parse_xlfd): Fix wildcard handling.
15693 (Ffont_spec): If :name is specified, reflect the info in the other
15694 properties.
15695
15696 * ftfont.c (ftfont_pattern_entity): Fix typo.
15697 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15698 locale.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15703
15704 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15705 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15706 registry doesn't specify encoding part.
15707 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15708 (font_open_by_name): At first try parsing the name.
15709 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15710 as Lisp symbols.
15711
15712 * fontset.c (reorder_font_vector): Pay attention to the case that
15713 the 3rd element of font_def is nil.
15714 (fontset_font): For the default fontset, append one more fontset
15715 elements for a script-based font specification. Don't add script
15716 attribute on finding a font.
15717 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15718 font name.
15719 (fontset_ascii_font): If a font can't be opened, return nil.
15720
15721 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15722 (ftfont_pattern_entity): New function.
15723 (ftfont_get_cache): Assume that freetype_font_cache is already
15724 initialized.
15725 (ftfont_list): Handle the case that a file is specified in font
15726 name. Use ftfont_pattern_entity to generate entities.
15727 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15728 (syms_of_ftfont): Initialize freetype_font_cache.
15729
15730 * xftfont.c (xftfont_open): Make the font name fontconfig's
15731 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15732 (xftfont_close): Free font->font.name if not NULL.
15733
15734 * xfont.c (xfont_list): If script is specified for a font, return
15735 null_vector.
15736 (xfont_list_family): Declare argument type.
15737
15738 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15739 name, set LFACE_FONT (lface) to nil.
15740
15741 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15742 return Qnil.
15743
157442008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15747 (standard_args): Add "-enable-font-backend".
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15752 (struct xftdraw_list, xftdraw_list): Delete them.
15753 (register_xftdraw, check_xftdraw): Delete them.
15754 (xftfont_prepare_face): Don't call register_xftdraw.
15755 (xftfont_done_face): Don't call check_xftdraw.
15756 (xftfont_draw): Get background color only when with_background is
15757 nonzero.
15758
15759 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 These changes are for the new font handling codes.
15764
15765 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15766 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15767 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15768 (FONTSRC, FONTOBJ): New variables.
15769 (obj): Add $(FONTOBJ).
15770 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15771 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15772 @LIBOTF_LIBS@.
15773 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15774 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15775
15776 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15777
15778 * character.h (Vscript_representative_chars): Extern it.
15779
15780 * character.c (Vscript_representative_chars): New variable.
15781 (syms_of_character): Declare it as a Lisp variable.
15782
15783 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15784 enable_font_backend is nonzero, accept the composition method
15785 COMPOSITION_WITH_GLYPH_STRING.
15786
15787 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15788 enumeration COMPOSITION_WITH_GLYPH_STRING.
15789
15790 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15791 members clip_x, clip_y, clip_width, and clip_height.
15792 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15793
15794 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15795 --enable-font-backend. Call syms_of_font.
15796
15797 * fns.c (assoc_no_quit): New function.
15798
15799 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15800 (face_for_font, new_fontset_from_font)
15801 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15802
15803 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15804 (fontset_font, fontset_ascii, face_for_char)
15805 (make_fontset_for_ascii_face, Ffont_info)
15806 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15807 is nonzero, use font-backend mechanism.
15808 (find_font_encoding): Make it non-static.
15809 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15810 New functions.
15811
15812 * frame.h (struct frame): New members resx and resy.
15813 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15814 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15815
15816 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15817 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15818
15819 * lisp.h (assoc_no_quit): Extern it.
15820
15821 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15822 Through out the file, use FONT_INFO_FROM_FACE instead of
15823 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15824 rif->per_char_metric.
15825 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15826 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15827 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15828 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15829 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15830 nonzero, use font-backend mechanism.
15831 (get_per_char_metric): New function.
15832
15833 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15834 (set_lface_from_font_name)
15835 (set_font_frame_param, free_realized_face)
15836 (prepare_face_for_display, clear_face_gcs)
15837 (Finternal_set_font_selection_order, realize_x_face)
15838 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15839 font-backend mechanism.
15840 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15841 (load_face_font) [USE_FONT_BACKEND]: Abort.
15842 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15843 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15844
15845 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15846 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15847 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15848 nonzero, register all available font drivers. Call
15849 x_default_font_parameter for deciding a font.
15850 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15851
15852 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15853 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15854 (x_set_glyph_string_clipping_exactly)
15855 (x_compute_glyph_string_overhangs)
15856 (x_draw_glyph_string_foreground)
15857 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15858 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15859 enable_font_backend is nonzero, use font-backend mechanism.
15860 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15865 system_eol_type.
15866 (syms_of_coding): Initialize system_eol_type.
15867
15868 * process.c (Fset_process_coding_system): Inherit system's eol
15869 format if necessary.
15870
158712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15872
15873 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15874
158752008-02-01 Kenichi Handa <handa@m17n.org>
15876
15877 * coding.c (decode_eol): Pay attention to buffer relocation in
15878 del_range_2.
15879 (decode_coding): Call decode_eol before restoring undo_list.
15880
158812008-02-01 Kenichi Handa <handa@m17n.org>
15882
15883 * charset.c (Fdefine_charset_internal): Fix setting of
15884 emacs_mule_bytes.
15885
158862008-02-01 Kenichi Handa <handa@m17n.org>
15887
15888 * keyboard.c (read_char): Check if C is a character or not before
15889 looking up Vkeyboard_translate_table.
15890
158912008-02-01 Kenichi Handa <handa@m17n.org>
15892
15893 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15894 condition to terminate the loop.
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * coding.c (produce_composition): Compare charbuf[i] instead of
15899 args[i] against 0.
15900 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15901
159022008-02-01 Kenichi Handa <handa@m17n.org>
15903
15904 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15905 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15906 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15907 detect_coding.
15908 (emacs_mule_char): Handle old style (Emacs 20) component character
15909 of a composition.
15910 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15911 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15912 composition rule.
15913 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * coding.c (encode_coding_ccl): Allocate destination dynamically
15918 when necessary.
15919
159202008-02-01 Kenichi Handa <handa@m17n.org>
15921
15922 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15923 the loop. When quitted, show a proper error message.
15924
159252008-02-01 Kenichi Handa <handa@m17n.org>
15926
15927 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15928 src->clip_head and src->clip_tail temporarily instead of src->hl.
15929
15930 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15931 character sequence.
15932 (Fccl_execute_on_string): Use ASET, not XSET.
15933
159342008-02-01 Kenichi Handa <handa@m17n.org>
15935
15936 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15937
159382008-02-01 Kenichi Handa <handa@m17n.org>
15939
15940 * coding.c (decode_coding): Fix the condition of terminating the
15941 decoding loop.
15942
159432008-02-01 Kenichi Handa <handa@m17n.org>
15944
15945 * data.c (Faset): On setting a character bigger than 255 in a
15946 unibyte string, signal an error instead of make the string multibyte.
15947
159482008-02-01 Kenichi Handa <handa@m17n.org>
15949
15950 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15951 made by a mapping table.
15952
159532008-02-01 Kenichi Handa <handa@m17n.org>
15954
15955 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15956 not.
15957 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15958 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15959
15960 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15961 s->face is NULL or not.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15966 (x_draw_glyph_string): Fix drawing of right_overhang and
15967 left_overhang around/on cursor.
15968
15969 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15970
159712008-02-01 Kenichi Handa <handa@m17n.org>
15972
15973 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15974
159752008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * coding.c (Fdefine_coding_system_internal)
15978 (Fdefine_coding_system_alias): Avoid a duplicated element in
15979 Vcoding_system_alist.
15980
159812008-02-01 Kenichi Handa <handa@m17n.org>
15982
15983 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15984
15985 * coding.c (Qcoding_system_define_form): New variable.
15986 (syms_of_coding): Intern and staticpro it.
15987 (Fcoding_system_p): Check Qcoding_system_define_form.
15988 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15989
15990 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15991 Fcoding_system_p.
15992 (CHECK_CODING_SYSTEM): If ID is not available, call
15993 Fcheck_coding_system.
15994 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15995 Try also Fcheck_coding_system.
15996
159972008-02-01 Kenichi Handa <handa@m17n.org>
15998
15999 * coding.c (code_conversion_restore): GCPRO arg.
16000
160012008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * character.c (lisp_string_width): Check multibyteness of STRING.
16004
160052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16006
16007 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16008 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16009 (decode_mac_font_name): Use decode_coding_c_string instead of
16010 decode_coding.
16011 (x_load_font): Initialize fontp->fontset to -1. Set
16012 fontp->encoding_type.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * search.c (search_buffer): Give up BM search on case-fold-search
16017 if one of a target character has a case-equivalence of different
16018 byte length even if that target charcter is an ASCII.
16019 (simple_search): Fix calculation of byte length of matched text.
16020 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * coding.c (decode_coding): Fix handling of invalid bytes.
16025
160262008-02-01 Kenichi Handa <handa@m17n.org>
16027
16028 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16029 Unicode characters.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * coding.c (encode_coding_object): If a pre-write-conversion
16034 function makes a new buffer, kill it.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * coding.c (QCascii_compatible_p): New variable.
16039 (syms_of_coding): Initialize it.
16040 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16041 calling string_char.
16042 (record_conversion_result): Add `default:' case.
16043 (coding_charset_list): Delete unused variable `coding_type'.
16044 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16045 property in the plist of the coding system.
16046 (Fcoding_system_put): Check QCascii_compatible_p.
16047
160482008-02-01 Miles Bader <miles@gnu.org>
16049
16050 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16051 removed calculation of frame `f', as it's now used.
16052
160532008-02-01 Kenichi Handa <handa@m17n.org>
16054
16055 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16056 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16057 (UNIDATA): New variable.
16058 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16059 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16060 $(RUN_TEMACS) unconditionally.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16065 (admindir): New variable.
16066 ($(lispsource)international/charprop.el): New target.
16067
160682008-02-01 Miles Bader <miles@gnu.org>
16069
16070 * character.c (chars-in-region): Remove obsolete function.
16071 (syms_of_character): Remove its initialization.
16072
160732008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16074
16075 * w32select.c (validate_coding_system)
16076 (setup_windows_coding_system): New functions.
16077 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16078 setup_windows_coding_system.
16079 (setup_config, Fw32_get_clipboard_data): Use
16080 validate_coding_system.
16081 (Fx_selection_exists): Move call to setup_config to a place
16082 where signals are allowed.
16083
16084 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16085 (Fcheck_coding_system): Add declarations.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16090
160912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16092
16093 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16094 string as the second argument for x_new_fontset.
16095
160962008-02-01 Kenichi Handa <handa@m17n.org>
16097
16098 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16099 (encode_coding_object): Use safe_call instead of call2.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16104
16105 * Makefile.in (lisp): Include charprop.el.
16106
161072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16108
16109 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16110 Not sure if it's unnecessary.
16111
161122008-02-01 Steven Tamm <steventamm@mac.com>
16113
16114 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16115 some possibly unnecessary fontset checking code that crashed
16116 when creating a new frame.
16117
161182008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16121 lookup_face.
16122
16123 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16124
16125 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16126
161272008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16130 (coding_charset_list): New function.
16131
16132 * coding.h (coding_charset_list): Extern it.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16137 concatenation of family and registry.
16138
161392008-02-01 Kenichi Handa <handa@m17n.org>
16140
16141 * character.h (BYTE8_STRING): Fix typo.
16142
16143 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16144 string to multibyte (sync to HEAD).
16145
16146 * casefiddle.c (casify_region): Handle changes in byte-length
16147 using replace_range_2 (sync to HEAD).
16148
161492008-02-01 Andreas Schwab <schwab@suse.de>
16150
16151 * chartab.c (map_char_table): GCPRO table and arg.
16152
161532008-02-01 Kenichi Handa <handa@m17n.org>
16154
16155 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16156 already at limit.
16157
161582008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16161 instead of fast_c_string_match_ignore_case.
16162 (find_font_encoding): Change argument to Lisp_Object. Use
16163 fast_string_match_ignore_case instead of
16164 fast_c_string_match_ignore_case. Change caller.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * xdisp.c (get_next_display_element): In unibyte case, decide to
16169 display in octal form by checking a character by
16170 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16171
16172 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16173
16174 * character.c (unibyte_has_multibyte_table): New variable.
16175
16176 * character.h (unibyte_has_multibyte_table): Extern it.
16177 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16178
161792008-02-01 Kenichi Handa <handa@m17n.org>
16180
16181 * coding.c (encode_coding_iso_2022): Fix handling of charset
16182 annotation.
16183
161842008-02-01 Kenichi Handa <handa@m17n.org>
16185
16186 * coding.c (setup_coding_system): If coding_system is nil, use
16187 Qundecided.
16188 (Fterminal_coding_system): Return nil if terminal coding system is
16189 `undecided'.
16190 (syms_of_coding): Define coding-system `undecided' here. Setup
16191 terminal_coding as `undecided'.
16192
161932008-02-01 Kenichi Handa <handa@m17n.org>
16194
16195 * xdisp.c (message_dolog, set_message_1): Call
16196 unibyte_char_to_multibyte with arg type int.
16197
16198 * lread.c (read1): Fix reading of a char-table.
16199
16200 * print.c (print_object): Include sub char-table in circularities
16201 detection.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16206 Append the found sequences in car of ARGS instead of prepending.
16207
162082008-02-01 Kenichi Handa <handa@m17n.org>
16209
16210 * fileio.c (report_file_error): Make a unibyte string from
16211 strerror (errorno).
16212 (Fsubstitute_in_file_name): Fix the arg to
16213 unibyte_char_to_multibyte. It is evaluated twice.
16214
162152008-02-01 Kenichi Handa <handa@m17n.org>
16216
16217 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16222 BOM is not found.
16223 (detect_coding, detect_coding_system): Optimization for ISO-2022
16224 when no 8-bit data is found.
16225
162262008-02-01 Jason Rumney <jasonr@gnu.org>
16227
16228 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16229
162302008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16233 CHARS.
16234
162352008-02-01 Steven Tamm <steventamm@mac.com>
16236
16237 * macterm.c (mac_encode_char): Add charset argument and update
16238 to use encoding_type.
16239 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16240 switch to pure fontset.
16241 (decode_mac_font_name): Temporarily remove decoding.
16242 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16243 (x_load_font): Temporarily remove encoding.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * xfaces.c (Fface_font): If frame is not on a window system,
16248 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16249 refer to face->font.
16250 (split_font_name_into_vector, build_font_name_from_vector)
16251 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16252 when HAVE_WINDOW_SYSTEM is defined.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16257 (x_produce_glyphs): Fix setting of members of cmp in case
16258 cmp->glyph_len is zero.
16259
16260 * fontset.c (Fset_fontset_font): Fix docstring.
16261 (Ffontset_info): Make it backward compatible. New arg ALL.
16262
162632008-02-01 Kim F. Storm <storm@cua.dk>
16264
16265 * process.c (read_process_output): Grow decoding_buf when needed;
16266 this could cause a crash in allocate_string and compact_small_strings.
16267
162682008-02-01 Kenichi Handa <handa@m17n.org>
16269
16270 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16271
162722008-02-01 Kenichi Handa <handa@m17n.org>
16273
16274 * coding.c (setup_coding_system): Set coding->common_flags
16275 correctly for raw-text.
16276 (consume_chars): On encoding unibyte text by raw-text, don't check
16277 multibyte form.
16278 (encode_coding): On encoding by raw-text, never use translation tables.
16279
16280 * fileio.c (e_write): Short cut for the case of no encoding.
16281
162822008-02-01 Kenichi Handa <handa@m17n.org>
16283
16284 * coding.c (detect_coding, detect_coding_system): Delete unused
16285 variables.
16286
162872008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16290 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16291
162922008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * coding.c (Ffind_coding_systems_region_internal): Include
16295 raw-text and no-conversion in the result.
16296
162972008-02-01 Kenichi Handa <handa@m17n.org>
16298
16299 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16300 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16301 FONT_DEF.
16302 (font_def_arg, add_arg, from_arg, to_arg): New args.
16303 (set_fontset_font): Change argument.
16304 (Fset_fontset_font): Fix for the case that TARGET is a script
16305 name and charset name.
16306 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16307
163082008-02-01 Kenichi Handa <handa@m17n.org>
16309
16310 * fontset.c (fontset_font): Rename from fontset_face. Change return
16311 value.
16312 (face_suitable_for_char_p, face_for_char): Adjust for the change
16313 of fontset_font.
16314 (make_fontset_for_ascii_face): Fix setting of the fontset element
16315 for ASCII.
16316 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16317 to get a font name.
16318 (Ffontset_info): Adjust for the change of fontset_font.
16319
16320 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16321
16322 * character.h (LEADING_CODE_LATIN_1_MIN)
16323 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16324
163252008-02-01 Kenichi Handa <handa@m17n.org>
16326
16327 * editfns.c (check_translation): New function.
16328 (Ftranslate_region_internal): Handle M:N mapping.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16337 goto invalid_code.
16338 (decode_coding_iso_2022): Fix handling of invalid designation.
16339
16340 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16341 after calling code_conversion_save.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16346
16347 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16348
16349 * fontset.c: Include "intervals.h".
16350 (fontset_face): Fix comparing of Lisp_Objects.
16351 (free_face_fontset, new_fontset_from_font_name): Fix
16352 Lisp_Object/int mixup.
16353
16354 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16355
16356 * coding.c: Add many prototypes for static functions.
16357 (get_translation_table): Allow max_lookup to be NULL.
16358 (decode_coding, Ffind_coding_systems_region_internal)
16359 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16360 get_translation_table with max_lookup NULL.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * coding.c (get_translation_table): Declare it as Lisp_Object.
16365 (LOOKUP_TRANSLATION_TABLE): New macro.
16366 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16367 instead of CHAR_TABLE_REF.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16372 annotation data format.
16373 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16374 Change arguments FROM and TO to single argument NCHARS. Change caller.
16375 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16376 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16377 (decode_coding_ccl, decode_coding_charset): Pay attention to
16378 coding->charbuf_used.
16379 (get_translation): New function.
16380 (produce_chars): New arguments translation_table and last_block.
16381 Translate characters here. Return number of carryover chars.
16382 Change caller.
16383 (produce_composition): New argument pos. Change caller.
16384 Adjust for the change of annotation data format.
16385 (produce_charset, produce_annotation): Likewise.
16386 (decode_coding, encode_coding): Don't call translate_chars.
16387 (consume_chars): New arg translation_table. Change caller.
16388 (translate_chars): Delete.
16389 (syms_of_coding): Make translation-table's number of extra slots 2.
16390
163912008-02-01 Kenichi Handa <handa@m17n.org>
16392
16393 * search.c (simple_search): Fix setting this_pos_byte in backward
16394 search.
16395
16396 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16397 byte sequence.
16398 (detect_coding_ccl): Fix setting of the variable valids.
16399
164002008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16403
16404 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16405
16406 * editfns.c (Ftranslate_region_internal): Rename from
16407 Ftranslate_region. Accept a char-table in TABLE.
16408 (syms_of_editfns): Defsubr Stranslate_region_internal.
16409
16410 * xfaces.c (set_lface_from_font_name): If a font is specified for
16411 a frame, generate a fontset from the font.
16412 (build_scalable_font_name): If the scalable font is requested for
16413 a specific size, don't change that size.
16414 (try_font_list): Try a scalable font also in the case that a
16415 pattern string is specified.
16416
164172008-02-01 Kenichi Handa <handa@m17n.org>
16418
16419 * xfaces.c (Fface_font): New optional arg CHARACTER.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * charset.h (CHARSET_OFFSET): New macro.
16424
164252008-02-01 Kenichi Handa <handa@m17n.org>
16426
16427 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16428
16429 * fontset.c (fontset_face): Handle the case that repertory is a
16430 char-table.
16431 (find_font_encoding): Return nil for unknown encoding.
16432 (Fset_fontset_font): Ignore a font of unknown encoding.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * keymap.c (describe_vector): Handle default value of a char table.
16437
16438 * fontset.c (fontset_face): Handle fallback fonts correctly.
16439 (Ffontset_info): Return infomation about fallback fonts.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * fontset.c (FONTSET_DEFAULT): New macro.
16444 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16445 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16446 the case that it is nil.
16447 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16448 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16449
16450 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16451 subset or superset.
16452
164532008-02-01 Kenichi Handa <handa@m17n.org>
16454
16455 * emacs.c (main): Call init_charset after syms_of_XXX.
16456
16457 * charset.c (Vcharset_map_directory): Delete.
16458 (Vcharset_map_path): New variable.
16459 (load_charset_map_from_file): Use Vcharset_map_path instead.
16460 (init_charset): Initialize Vcharset_map_path.
16461 (syms_of_charset): Delete declaration of "charset-map-directory",
16462 add declaration of "charset-map-path".
16463
164642008-02-01 Kenichi Handa <handa@m17n.org>
16465
16466 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16467 ASCII only string.
16468
16469 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16470
16471 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16472 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16473
164742008-02-01 Kenichi Handa <handa@m17n.org>
16475
16476 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16477
16478 * coding.c (QCmnemonic, QCdefalut_char)
16479 (QCdecode_translation_table, QCencode_translation_table)
16480 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16481 (get_translation_table): Return a list of translation tables if
16482 necessary.
16483 (decode_coding): Call get_translation_table with ENCODEP 0.
16484 (char_encodable_p): If translation_table is non-nil, always call
16485 translate_char.
16486 (Fdefine_coding_system_internal): Accept list of translation
16487 tables as :encode-translation-table and :decode-translation-table.
16488 (Fcoding_system_put): New function.
16489 (syms_of_coding): Declare new symbols. Defsubr
16490 Scoding_system_put.
16491 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16492 typically JISX0212.
16493
16494 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16495 when the charset is superset type.
16496
16497 * character.c (translate_char): Accept list of translation tables.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16502 (CODING_ATTR_TRANS_TBL): New macro.
16503
16504 * coding.c (get_translation_table): New function.
16505 (translate_chars): Fix the bug of skipping annotation data.
16506 (decode_coding, encode_coding): Utilize get_translation_table.
16507 (char_encodable_p, Funencodable_char_position): Translate char if
16508 necessary.
16509 (Ffind_coding_systems_region_internal)
16510 (Fcheck_coding_systems_region): Setup translation table for encode
16511 in a coding system attribute vector in advance.
16512 (Fdefine_coding_system_internal): Allow a symbol as translation
16513 table. For shift-jis type coding system, allow 4th charset.
16514
165152008-02-01 Kenichi Handa <handa@m17n.org>
16516
16517 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16518
16519 * xdisp.c (get_next_display_element): Pass -1 as POS to
16520 FACE_FOR_CHAR if displaying a C-string.
16521
165222008-02-01 Kenichi Handa <handa@m17n.org>
16523
16524 * composite.c (get_composition_id): Handle xoff and yoff in a
16525 composition rule.
16526
16527 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16528 (struct composition): New member lbearing and rbearing.
16529
16530 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16531 (x_get_glyph_overhangs): Handle a composition glyph.
16532 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16533
16534 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16535 composition glyph.
16536
165372008-02-01 Kenichi Handa <handa@m17n.org>
16538
16539 * print.c: Include charset.h.
16540 (Vprint_charset_text_property): New variable.
16541 (Qdefault): Extern it.
16542 (PRINT_STRING_NON_CHARSET_FOUND)
16543 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16544 (print_check_string_result): New variable.
16545 (print_check_string_charset_prop): New function.
16546 (print_prune_charset_plist): New variable.
16547 (print_prune_string_charset): New function.
16548 (print_object): Call print_prune_string_charset if
16549 Vprint_charset_text_property is not t.
16550 (print_interval): Print nothing if interval->plist is nil.
16551 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16552 variable. Init and staticpro print_prune_charset_plist.
16553
165542008-02-01 Kenichi Handa <handa@m17n.org>
16555
16556 * fontset.c (new_fontset_from_font_name): Use the specified font
16557 for all characters in the new fontset.
16558
16559 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16560 OBJECT args.
16561
16562 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16563 OBJECT args for composition too.
16564
16565 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16566 OBJECT args.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16571
16572 * fontset.c (reorder_font_vector): Adjust for the change of
16573 FONT_DEF format.
16574 (fontset_face): New arg id. Change caller.
16575 (face_for_char): New args pos and object.
16576 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16577 (fs_query_fontset): Check NAME by Fassoc too.
16578 (Fset_fontset_font): Allow non-XLFD font name.
16579 (Ffontset_info): Adjust for the change of FONT_DEF format.
16580
16581 * fontset.h (face_for_char): Adjust prototype.
16582
16583 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16584 (append_space, extend_face_to_end_of_line)
16585 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16586 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16587
16588 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16589 POS and OBJECT args.
16590
16591 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16592 POS and OBJECT args.
16593
165942008-02-01 Jason Rumney <jasonr@gnu.org>
16595
16596 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16597 of GlobalAlloc'ed memory.
16598
165992008-02-01 Kenichi Handa <handa@m17n.org>
16600
16601 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16602
16603 * charset.h (charset_table_used): Delete extern.
16604
16605 * charset.c (charset_table_used): Make it static.
16606 (map_charset_chars): Fix args to c_function with.
16607
16608 * chartab.c (map_sub_char_table_for_charset): Fix args to
16609 c_function with.
16610
16611 * coding.h (enum coding_result_code): Delete
16612 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16613
16614 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16615 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16616 (Vlast_code_conversion_error): New variables.
16617 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16618 (ONE_MORE_BYTE): Record error if any instead of signaling an
16619 error. If non-ASCII multibyte char is found, return the negative
16620 value of the code. All callers changed to check it.
16621 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16622 (record_conversion_result): New function. Change all codes setting
16623 coding->result to call this function.
16624 (detect_coding_utf_8, decode_coding_utf_8)
16625 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16626 Don't use the local variable incomplete.
16627 (emacs_mule_char): Change the second arg to `const'.
16628 (decode_coding): Fix of flushing out unprocessed data.
16629 (make_conversion_work_buffer): Fix making of a work buffer.
16630 (decode_coding_object): Return coding->dst_object.
16631
16632 * fontset.c (set_fontset_font): Fix args.
16633
16634 * lisp.h (CHARACTERBITS): Define as 22.
16635
16636 * process.c (send_process): Be sure to set coding->src_multibyte.
16637
16638 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * xdisp.c (handle_auto_composed_prop): Give limit to
16643 Fnext_single_char_property_change.
16644
166452008-02-01 Kenichi Handa <handa@m17n.org>
16646
16647 * composite.c (syms_of_composite): Don't make the composition hash
16648 table weak.
16649
16650 * fontset.c (Fset_fontset_font): Fix docstring.
16651
16652 * lisp.h (detect_coding_system): Adjust prototype.
16653
16654 * fileio.c (kill_workbuf_unwind): Delete this function.
16655 (Finsert_file_contents): Adjust the call of detect_coding_system.
16656 Get conversion_buffer by code_conversion_save. Use the macro
16657 CODING_MAY_REQUIRE_DECODING. After decoding, update
16658 coding_system.
16659
16660 * coding.h (make_conversion_work_buffer): Delete extern.
16661 (code_conversion_save): Extern it.
16662
16663 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16664 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16665 (decode_coding_utf_8): Don't do eol converion.
16666 (detect_coding_utf_16): Check coding->src_chars, not
16667 coding->src_bytes. Add heuristics for those that have no signature.
16668 (decode_coding_emacs_mule, decode_coding_iso_2022)
16669 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16670 Don't do eol converion.
16671 (adjust_coding_eol_type): Return a new coding system.
16672 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16673 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16674 each change.
16675 (decode_coding): Pay attention to undo_list. Do eol conversion for
16676 all types of coding-systems (if necessary).
16677 (Vcode_conversion_work_buf_list): Delete it.
16678 (Vcode_conversion_reused_workbuf): Rename from
16679 Vcode_conversion_reused_work_buf.
16680 (Vcode_conversion_workbuf_name): New variable.
16681 (reused_workbuf_in_use): New variable.
16682 (make_conversion_work_buffer): Delete the arg DEPTH.
16683 (code_conversion_restore): Change argument to cons.
16684 (code_conversion_save): Delete the argument BUFFER. Change callers.
16685 (detect_coding_system): New argument src_chars. Change callers.
16686 Fix for utf-16 detection.
16687 (init_coding_once): Don't use ISO_carriage_return.
16688 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16689 reused_workbuf_in_use.
16690
166912008-02-01 Kenichi Handa <handa@m17n.org>
16692
16693 * keymap.c (store_in_keymap): Pay attention to the case that idx
16694 is a cons specifying a character range.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16699 HANDLED_RECOMPUTE_PROPS.
16700
16701 * coding.c (Fdefine_coding_system_internal): Fix checking of
16702 ascii compatibility.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * charset.c (find_charsets_in_text): Delete unused locale variable.
16707 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16708
16709 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16710 Resync charset_list to Vemacs_mule_charset_list.
16711
16712 * keymap.c (store_in_keymap): Pay attention to the case that idx
16713 is a cons specifying a character range.
16714
167152008-02-01 Kenichi Handa <handa@m17n.org>
16716
16717 * composite.c (update_compositions): Bind inhibit-read-only, etc
16718 to t before calling remove-list-of-text-properties.
16719
16720 * print.c (print_object): Always print ASCII chars as is.
16721
167222008-02-01 Kenichi Handa <handa@m17n.org>
16723
16724 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16725
16726 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16727 is a char table.
16728
167292008-02-01 Kenichi Handa <handa@m17n.org>
16730
16731 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * xfaces.c (set_lface_from_font_name): Fix for the case that
16736 FONTNAME is not fontset name.
16737
167382008-02-01 Kenichi Handa <handa@m17n.org>
16739
16740 * fns.c (base64_encode_1): Fix previous change.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * fontset.c (set_fontset_font): New function.
16745 (Fset_fontset_font): If a font is specified for a charset, use
16746 map_charset_chars to store the font spec in a fontset.
16747
167482008-02-01 Kenichi Handa <handa@m17n.org>
16749
16750 * fontset.c (fontset_face): Create a fallback fontset on demand.
16751 (make_fontset): Don't create a fallback fontset here.
16752 (free_face_fontset): Free a fallback fontset (if any) too.
16753 (n_auto_fontsets): Delete this variable.
16754 (auto_fontset_alist): New variable.
16755 (new_fontset_from_font_name): Check auto_fontset_alist.
16756 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16757 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16758 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16759 Defsubr Sfontset_list_all.
16760
167612008-02-01 Kenichi Handa <handa@m17n.org>
16762
16763 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16768
167692008-02-01 Kenichi Handa <handa@m17n.org>
16770
16771 * editfns.c (Fgoto_char): Fix docstring.
16772
167732008-02-01 Kenichi Handa <handa@m17n.org>
16774
16775 * insdel.c (insert_from_gap): Adjust intervals correctly.
16776
167772008-02-01 Jason Rumney <jasonr@gnu.org>
16778
16779 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16780 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16781 (w32_initialize): Try to load it.
16782 (x_get_font_repertory): Use it if available.
16783 (w32_encode_char): Add shortcut for unicode output.
16784
16785 * w32fns.c (w32_load_system_font): Default charset to -1.
16786 (x_to_w32_charset): Match all fonts for unicode.
16787 (w32_to_x_charset): New parameter matching. Don't return partial
16788 or wildcard charsets.
16789 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16790 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16791 (w32_to_x_font): Match charset to real charset.
16792 (enum_font_cb2): Always list unicode versions.
16793
16794 * makefile.w32-in (temacs): Increase EMHEAP.
16795
167962008-02-01 Jason Rumney <jasonr@gnu.org>
16797
16798 * w32term.c (w32_encode_char): New charset parameter.
16799 font_info.encoding becomes encoding_type.
16800 (x_get_font_repertory): New function. Warning: stub only!
16801 (x_new_font): Return quickly if font already set.
16802 (x_new_fontset): fontsetname parameter is Lisp_Object.
16803 Use new fs_query_fontset. Try new_fontset_from_font_name.
16804 Use fontset_name for return value.
16805
16806 * w32term.h: Declare x_get_font_repertory.
16807
16808 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16809 place of find_charset_in_text. Use encode_coding_object in place
16810 of encode_coding.
16811 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16812 decode_coding.
16813
16814 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16815 of x_new_fontset.
16816 (w32_load_system_font): Initialize charset as unicode.
16817 font_info.encoding becomes encoding_type.
16818 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16819 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16820 (syms_of_w32fns): Set get_font_repertory_func.
16821
16822 * w32console.c: Include character.h. Use terminal_encode_buffer
16823 from term.c.
16824 (write_glyphs): Use new version of encode_terminal_code. Use
16825 encode_coding_object in place of encode_coding.
16826
16827 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16828 encoding becomes encoding_type.
16829
16830 * term.c (terminal_encode_buffer): Make externally visible.
16831
16832 * makefile.w32-in: Add character.h dependancies.
16833 (character.o, chartab.o): New targets.
16834
168352008-02-01 Kenichi Handa <handa@m17n.org>
16836
16837 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16838 CODING_ID_EOL_TYPE.
16839
168402008-02-01 Andreas Schwab <schwab@suse.de>
16841
16842 * coding.c (produce_chars): Revert last change.
16843
168442008-02-01 Kenichi Handa <handa@m17n.org>
16845
16846 * charset.h (charset_unicode): Extern it.
16847
16848 * charset.c (string_xstring_p): Check by (C >= 0x100).
16849 (find_charsets_in_text): Change format of the arc CHARSETS. New
16850 arg MULTIBYTE.
16851 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16852 change of find_charsets_in_text.
16853 (Fsplit_char): Fix doc. Never return unknown.
16854
16855 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16856
16857 * coding.c (Fdefine_coding_system_alias): Update
16858 Vcoding_system_list.
16859
16860 * fontset.c (load_font_get_repertory): Pay attention to the case
16861 that ENCODING of a font is specified by a char-table.
16862
16863 * xterm.c (x_get_font_repertory): Handle the case that the
16864 encoding of font is other than Unicode.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16869 if a character is encodable by the terminal coding system. If
16870 not, produces proper number of `?'s. Update
16871 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16872 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16873
168742008-02-01 Kenichi Handa <handa@m17n.org>
16875
16876 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16877 variables.
16878 (encode_terminal_code): Change argument. Encode multiple
16879 characters at once. Store the result of encoding in
16880 terminal_encode_buffer.
16881 (write_glyphs, insert_glyphs): Adjust for the change of
16882 encode_terminal_code.
16883 (term_init): Initialize terminal_encode_buffer and
16884 terminal_encode_buf_size.
16885
16886 * coding.c (consume_chars): If coding->src_object is nil, don't
16887 check annotation.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * character.c (char_string): Use ASCII_CHAR_P instead of
16892 SINGLE_BYTE_CHAR_P.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * xdisp.c (handle_auto_composed_prop): Check if the last
16897 characters of auto-composed region is newly composed with the
16898 following characters.
16899 (handle_composition_prop): Fix checking of point being inside
16900 composition.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * fns.c (concat): Don't change multibyteness of the result by
16905 concatenating an 8-bit character.
16906
16907 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16908 multibyteness of the result when newelt is an 8-bit character.
16909
169102008-02-01 Dave Love <fx@gnu.org>
16911
16912 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16913 EMACS_INT.
16914
16915 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16916
16917 * xfaces.c (face_numeric_value): Declare dim size_t.
16918 (Finternal_lisp_face_equal_p): Remove unused f.
16919
16920 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16921 (MATRIX_ROW): Remove unused vars.
16922 (draw_glyphs, x_insert_glyphs, fast_find_position)
16923 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16924 byte/char counts.
16925
16926 * regex.c (regex_compile): Remove unused var.
16927
16928 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16929
16930 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16931 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16932
16933 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16934
16935 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16936
16937 * fileio.c (Fwrite_region): Remove unused var.
16938
16939 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16940 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16941
16942 * composite.c (Fremove_list_of_text_properties): Declare.
16943
16944 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16945 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16946 (coding_inherit_eol_type): Remove unused attrs.
16947 (detect_coding): Cast arg of detect_eol.
16948
16949 * charset.c (syms_of_charset): Remove unused var p.
16950 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16951 byte/char counts.
16952
16953 * casetab.c (set_case_table): Remove unused var.
16954
16955 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16956 unused vars.
16957
169582008-02-01 Dave Love <fx@gnu.org>
16959
16960 * xterm.c (x_bitmap_mask): Declare.
16961
169622008-02-01 Dave Love <fx@gnu.org>
16963
16964 * xterm.c (x_term_init): Fix type error.
16965
16966 * lisp.h: Add Funibyte_char_to_multibyte.
16967
16968 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16969 (Fset_coding_system_priority): Doc fix.
16970
16971 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16972
16973 * indent.c (check_composition): Make start and end EMACS_INT.
16974
16975 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16976
16977 * xdisp.c (handle_composition_prop, check_point_in_composition):
16978 Make buffer positions EMACS_INT.
16979
16980 * composite.c (find_composition, run_composition_function)
16981 (update_compositions, Ffind_composition_internal): Make buffer
16982 positions EMACS_INT.
16983
16984 * composite.h (find_composition, update_compositions): Make
16985 position args EMACS_INT.
16986
16987 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16988
16989 * intervals.c (get_property_and_range):
16990 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16991
16992 * unexalpha.c: Don't include varargs.h.
16993
169942008-02-01 Dave Love <fx@gnu.org>
16995
16996 * coding.h (ENCODE_UTF_8): New.
16997
16998 * Makefile.in (gtkutil.o): Depend on coding.h.
16999
17000 * coding.c (Fset_coding_system_priority): Doc fix.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17005 the case of auto saving.
17006
170072008-02-01 Andreas Schwab <schwab@suse.de>
17008
17009 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17010 `range' from GC.
17011
170122008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * fileio.c (choose_write_coding_system): Return a decided coding system.
17019 (Fwrite_region): Set Vlast_coding_system_used to the return value
17020 of choose_write_coding_system.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * charset.c (Fset_charset_priority): Pay attention to duplicated
17025 arguments.
17026
17027 * coding.c (QCcategory): New variable.
17028 (syms_of_coding): Defsym it. Set all elements of
17029 Vcoding_category_table and their symbol values.
17030 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17031 coding-category-XXX, and coding-category-list.
17032 (Fdefine_coding_system_internal): Add category in the plist.
17033
170342008-02-01 Kenichi Handa <handa@m17n.org>
17035
17036 * callproc.c (Fcall_process): Handle carryover correctly.
17037
17038 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17039 (raw_text_coding_system): Check NILP (coding_system).
17040 (coding_inherit_eol_type): Check NILP (coding_system) and
17041 NILP (parent).
17042 (consume_chars): Fix for the case of raw-text.
17043
17044 * process.c (read_process_output): Handle carryover correctly.
17045
170462008-02-01 Dave Love <fx@gnu.org>
17047
17048 * regex.c (re_search_2): Fix last change.
17049
170502008-02-01 Kenichi Handa <handa@m17n.org>
17051
17052 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17053 target_multibyte. Even in a unibyte case, return a converted
17054 multibyte char.
17055 (GET_CHAR_AFTER): New macro.
17056 (PATFETCH): Translate via multibyte char.
17057 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17058 (SETUP_MULTIBYTE_RANGE): New macro.
17059 (regex_compile): Setup compiled code so that its multibyteness
17060 matches that of a target. Fix the handling of "[X-YZ]" using
17061 SETUP_MULTIBYTE_RANGE.
17062 (analyse_first) <charset>: For filling fastmap for all multibyte
17063 characters, don't check by BASE_LEADING_CODE_P.
17064 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17065 the same as RE_MULTIBYTE_P (bufp) now.
17066 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17067 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17068 (TRANSLATE_VIA_MULTIBYTE): New macro.
17069 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17070 It is the same as RE_MULTIBYTE_P (bufp) now.
17071 <exactn>: Translate via multibyte.
17072 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17073 translate it.
17074 <charset, charset_not>: Fetch a character by
17075 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17076 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17077 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17078 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17079 by GET_CHAR_AFTER.
17080 (bcmp_translate): Likewise.
17081
17082 * search.c (compile_pattern): Check the member target_multibyte,
17083 not the member multibyte of buf.
17084
17085 * lread.c (read1): While reading a string, set force_singlebyte
17086 and force_multibyte correctly.
17087
17088 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17089 up of unibyte_to_multibyte_table.
17090
170912008-02-01 Kenichi Handa <handa@m17n.org>
17092
17093 * coding.c (setup_coding_system): If coding has
17094 post-read-conversion or pre-write-conversion, set
17095 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17096 respectively.
17097 (decode_coding_gap): Run post-read-conversion if any.
17098
17099 * fileio.c (Finsert_file_contents): Even if we read into a
17100 unibyte buffer, check if we must decode the result or not.
17101
171022008-02-01 Kenichi Handa <handa@m17n.org>
17103
17104 * coding.c (make_conversion_work_buffer): Change the work buffer
17105 name to the same one as that of Emacs 21.
17106
171072008-02-01 Kenichi Handa <handa@m17n.org>
17108
17109 * coding.h (make_conversion_work_buffer): Adjust prototype.
17110 (code_conversion_restore): Don't extern it.
17111
17112 * coding.c (detected_mask): Delete unused variable.
17113 (decode_coding_iso_2022): Pay attention to the byte sequence of
17114 CTEXT extended segment, and retain those bytes as is.
17115 (decode_coding_ccl): Delete unused variable `valids'.
17116 (setup_coding_system): Delete unused variable `category'.
17117 (consume_chars): Delete unused variable `category'. Make it work
17118 for non-multibyte case.
17119 (make_conversion_work_buffer): Change argument.
17120 (saved_coding): Delete unused variable.
17121 (code_conversion_restore): Don't check saved_coding->destination.
17122 (code_conversion_save): New function.
17123 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17124 instead of record_unwind_protect.
17125 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17126 (detect_coding_system): Delete unused variable `mask'.
17127 (Fdefine_coding_system_internal): Delete unused variable id.
17128
17129 * fileio.c (kill_workbuf_unwind): New function.
17130 (Finsert_file_contents): On replacing, call
17131 make_conversion_work_buffer with correct args, and call
17132 record_unwind_protect with the first arg kill_workbuf_unwind.
17133
17134 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17139 (fontset_add): Fix for the case that TO is less than TO1.
17140 (Ffontset_info): Don't use fallback fontset on checking the
17141 default fontset.
17142 (dump_fontset): New function for debugging.
17143
17144 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17145 coding_type is Qcharset.
17146
171472008-02-01 Kenichi Handa <handa@m17n.org>
17148
17149 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17150 (map_char_table): Don't inherit the value from the parent on
17151 initializing VAL. Adjust for the above change.
17152
171532008-02-01 Kenichi Handa <handa@m17n.org>
17154
17155 * coding.c (Qsignature, Qendian): Delete these variables.
17156 (syms_of_coding): Don't initialize them.
17157 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17158 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17159 detect_info->found.
17160 (decode_coding_utf_16): Don't detect BOM here.
17161 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17162 is NOT utf_16_without_bom.
17163 (setup_coding_system): For a coding system of type utf-16, check
17164 if the attribute :endian is Qbig or not (not nil or not), and set
17165 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17166 (detect_coding): If coding type is utf-16 and BOM detection is
17167 required, detect it.
17168 (Fdefine_coding_system_internal): For a coding system of type
17169 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17170
171712008-02-01 Kenichi Handa <handa@m17n.org>
17172
17173 * coding.c (coding_set_source): Fix for the case that the current
17174 buffer is different from coding->src_object.
17175 (decode_coding_object): Don't use the conversion work buffer if
17176 DST_OBJECT is a buffer.
17177
171782008-02-01 Dave Love <fx@gnu.org>
17179
17180 * lread.c (read_emacs_mule_char) [len==2]: Index
17181 emacs_mule_charset correctly.
17182
171832008-02-01 Dave Love <fx@gnu.org>
17184
17185 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17186 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17187 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17188 treated specially.)
17189 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17190 (detected_mask): Remove Big5 bits.
17191
171922008-02-01 Kenichi Handa <handa@m17n.org>
17193
17194 The following changes are to make the font rescaling facility
17195 compatible with Emacs 21.
17196
17197 * xfaces.c (Vface_font_rescale_alist): Rename from
17198 Vface_resizing_fonts.
17199 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17200 (font_rescale_ratio): Rename from font_resizing_ratio.
17201 (split_font_name): Set font->rescale_ratio.
17202 (better_font_p): Pay attention to font->rescale_ratio.
17203 (build_scalable_font_name): Likewise. Change RESX, and RESY
17204 fields.
17205 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17210 (Qutf_16_le): Remove these variables.
17211 (syms_of_coding): Don't DEFSYM them.
17212 (decode_coding_utf_16): Fix handling of BOM.
17213 (encode_coding_utf_16): Fix handling of BOM.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * fileio.c (Finsert_file_contents): On replacing, before decoding
17218 the file into the work buffer, set point of the work buffer to the end.
17219
172202008-02-01 Dave Love <fx@gnu.org>
17221
17222 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17223
172242008-02-01 Dave Love <fx@gnu.org>
17225
17226 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17227 and fix C types.
17228
172292008-02-01 Kenichi Handa <handa@m17n.org>
17230
17231 * xdisp.c (SKIP_GLYPHS): New macro.
17232 (set_cursor_from_row): Pay attention to string display properties.
17233
17234 * category.c (copy_category_entry): Fix for the case that RANGE
17235 is an integer.
17236
17237 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17238
17239 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * charset.c (Fcharset_id_internal): New function.
17244 (syms_of_charset): Defsubr it.
17245
17246 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17247 with the last arg charset_list acquired from coding.
17248 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17249 the attribute coding_attr_ccl_valids.
17250
17251 * coding.h (enum define_coding_ccl_arg_index): Set the first
17252 member coding_arg_ccl_decoder to coding_arg_max.
17253
17254 * ccl.h (ccl_driver): Adjust prototype.
17255
17256 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17257 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17258 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17259 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17260 last arg Qnil.
17261
172622008-02-01 Kenichi Handa <handa@m17n.org>
17263
17264 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17265 call encode_char.
17266
17267 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17268
172692008-02-01 Dave Love <fx@gnu.org>
17270
17271 * composite.c (syms_of_composite): Make composition_hash_table weak.
17272
172732008-02-01 Kenichi Handa <handa@m17n.org>
17274
17275 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17276 (font_name_registry): Don't extern them.
17277 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17278
17279 * fontset.h (Qfontset): Don't extern it.
17280 (new_fontset_from_font_name): Extern it.
17281
17282 * fontset.c: Give 8 extra slots to fontset objects.
17283 (Qfontset_info): New variable.
17284 (syms_of_fontset): Defsym it.
17285 (FONTSET_FALLBACK): New macro.
17286 (fontset_face): Try also the default fontset.
17287 (make_fontset): Realize a fallback fontset from the default fontset.
17288 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17289 using split_font_name_into_vector and build_font_name_from_vector.
17290 (Fset_fontset_font): Access the elements of font_spec by enum
17291 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17292 name by using split_font_name_into_vector.
17293 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17294 generate a proper font name from the fontset name. Update
17295 Vfontset_alias_alist.
17296 (n_auto_fontsets): New variable.
17297 (new_fontset_from_font_name): New function.
17298 (Ffont_info): Store the information about fonts generated from the
17299 default fontset in the first extra slot of the returned char-table.
17300
17301 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17302 (font_name_registry): Delete function.
17303 (split_font_name_into_vector): New function.
17304 (build_font_name_from_vector): New function.
17305 (font_list): The argument REGISTRY is now a list of registry names.
17306 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17307 specifies an explicit font name, return the name as is. Make a
17308 list of registy names.
17309
17310 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17311 of x_new_fontset.
17312 (Fx_create_frame): Don't call x_new_fontset here. Just use
17313 x_list_fonts to check the existence of fonts.
17314
17315 * xterm.h (x_new_fontset): Adjust prototype.
17316
17317 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17318 string. Use new_fontset_from_font_name to create a fontset from a
17319 font name.
17320
173212008-02-01 Kenichi Handa <handa@m17n.org>
17322
17323 * syntax.c (Vfind_word_boundary_function_table): New name for
17324 Vnext_word_boundary_function_table.
17325 (find-word-boundary-function-table): New name for
17326 next-word-boundary-function-table.
17327
173282008-02-01 Dave Love <fx@gnu.org>
17329
17330 * Makefile.in: Fix some dependencies.
17331
17332 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17333 set it to nil before returning.
17334
17335 * composite.c (update_compositions): Fix type error.
17336
17337 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * xterm.c (x_new_font): Optimize for the case that the font is
17342 already set for the frame.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * chartab.c (char_table_ascii): Check if the char table contents
17347 is sub-char-table or not.
17348 (char_table_set, char_table_set_range): Fix argument to
17349 char_table_ascii.
17350
17351 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17352 (detect_coding_utf_8, detect_coding_utf_16)
17353 (detect_coding_emacs_mule, detect_coding_iso_2022)
17354 (detect_coding_sjis, detect_coding_big5)
17355 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17356 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17357 sequence is valid in this coding system. Change callers.
17358 (MAX_ANNOTATION_LENGTH): New macro.
17359 (ADD_ANNOTATION_DATA): New macro.
17360 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17361 ADD_ANNOTATION_DATA. Change the format of annotation data.
17362 (ADD_CHARSET_DATA): New macro.
17363 (emacs_mule_char): New argument ID. Change callers.
17364 (decode_coding_emacs_mule, decode_coding_iso_2022)
17365 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17366 Produce charset annotation data in coding->charbuf.
17367 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17368 to charset annotation data in coding->charbuf.
17369 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17370 coding->common_flags if the coding system is iso-2022 based and
17371 uses designation.
17372 (produce_composition): Adjust for the new annotation data format.
17373 (produce_charset): New function.
17374 (produce_annotation): Handle charset annotation.
17375 (handle_composition_annotation, handle_charset_annotation): New
17376 functions.
17377 (consume_chars): Handle charset annotation. Utilize the above two
17378 functions.
17379 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17380 buffer, get the deleted text as a string and set
17381 coding->src_object to that string.
17382 (detect_coding, detect_coding_system): Use the new struct
17383 coding_detection_info.
17384
17385 * coding.h (struct coding_detection_info): New structure.
17386 (struct coding_system): Adjust prototype of the member `detector'.
17387 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17392
173932008-02-01 Dave Love <fx@gnu.org>
17394
17395 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17396 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17397 to new local and nullify apropos_accumulate before returning.
17398 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17399
174002008-02-01 Kenichi Handa <handa@m17n.org>
17401
17402 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17403 correctly.
e3eea1fc 17404
aac0c6e3
MR
174052008-02-01 Dave Love <fx@gnu.org>
17406
17407 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 The following changes are to make character composition happen
17412 automatically on displaying.
17413
17414 * Makefile.in (lisp, shortlisp): Add composite.elc.
17415
17416 * composite.h (Qauto_composed, Vauto_composition_function)
17417 (Qauto_composition_function): Extern them.
17418
17419 * composite.c (Vcomposition_function_table)
17420 (Qcomposition_function_table): Delete variables.
17421 (Qauto_composed, Vauto_composition_function)
17422 (Qauto_composition_function): New variables.
17423 (run_composition_function): Don't call
17424 compose-chars-after-function.
17425 (update_compositions): Clear `auto-composed' text property.
17426 (compose_chars_in_text): Delete this function.
17427 (syms_of_composite): Staticpro Qauto_composed and
17428 Qauto_composition_function. Declare Vauto_composition_function as
17429 a Lisp variable.
17430
17431 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17432
17433 * xdisp.c (it_props): Add an entry for Qauto_composed.
17434 (handle_auto_composed_prop): New function.
17435
17436 * xselect.c (selection_data_to_lisp_data): Don't call
17437 compose_chars_in_text.
17438
174392008-02-01 Dave Love <fx@gnu.org>
17440
17441 * keyboard.c (read_char): Modify checking around use of
17442 Vkeyboard_translate_table.
17443
17444 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17445 and fix C types.
17446
174472008-02-01 Kenichi Handa <handa@m17n.org>
17448
17449 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17450 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17451 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17452 the case that the last byte is '\r' correctly.
17453 (decode_coding): Flush out the unprocessed data correctly.
17454 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17455
174562008-02-01 Dave Love <fx@gnu.org>
17457
17458 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17459 Add XK_ISO... case.
17460 (xaw_scroll_callback): Revert last change.
17461
174622008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17465
174662008-02-01 Kenichi Handa <handa@m17n.org>
17467
17468 * xfaces.c (Vface_resizing_fonts): New variable.
17469 (struct font_name): New member `resizing_ratio'.
17470 (font_resizing_ratio): New function.
17471 (split_font_name): Set font->resizing_ratio.
17472 (better_font_p): Pay attention to font->resizing_ratio.
17473 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17474 RESX, and RESY fields.
17475 (try_alternative_families): Try scalable fonts if
17476 Vscalable_fonts_allowed is not Qt.
17477 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17478
174792008-02-01 Dave Love <fx@gnu.org>
17480
17481 * xterm.c (xaw_scroll_callback): Cast correctly.
17482
174832008-02-01 Dave Love <fx@gnu.org>
17484
17485 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17486 (lispy_kana_keys): Comment out.
17487 (make_lispy_event) [XK_kana_A]: Comment out.
17488
17489 * xterm.c (xaw_scroll_callback): Cast call_data.
17490 (XTread_socket): Deal with ASCII keysyms.
17491 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17492
174932008-02-01 Dave Love <fx@gnu.org>
17494
17495 * xterm.c (Vx_keysym_table): New.
17496 (syms_of_xterm): Initialize it.
17497 (XTread_socket): Use it.
17498 From head: Eliminate incorrect optimization that tried to avoid
17499 decoding the output of X*LookupString.
17500 (x_get_font_repertory): Delete charset declaration.
17501
175022008-02-01 Kenichi Handa <handa@m17n.org>
17503
17504 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17505 return 0.
17506 (Fdefine_coding_system_internal): Setup
17507 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17508
175092008-02-01 Dave Love <fx@gnu.org>
17510
17511 * coding.c (Fcheck_coding_system): Doc fix.
17512
17513 * editfns.c (Finsert_byte): Return a proper value.
17514
175152008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * coding.c (decode_coding): Fix args to translate_chars. Pay
17518 attention to Vstandard_translation_table_for_decode.
17519 (encode_coding): Fix args to translate_chars. Pay attention to
17520 Vstandard_translation_table_for_encode.
17521
17522 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17523 SINGLE_BYTE_CHAR_P.
17524
17525 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17526 not by SINGLE_BYTE_CHAR_P.
17527
17528 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17529 SINGLE_BYTE_CHAR_P.
17530
17531 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17532 SINGLE_BYTE_CHAR_P.
17533
17534 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17535 by SINGLE_BYTE_CHAR_P.
17536
17537 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17538 SINGLE_BYTE_CHAR_P.
17539
175402008-02-01 Dave Love <fx@gnu.org>
17541
17542 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17543
175442008-02-01 Dave Love <fx@gnu.org>
17545
17546 * fns.c (Flanginfo): Fix typo.
17547
17548 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17553 (detect_coding_emacs_mule, detect_coding_iso_2022)
17554 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17555 incomplete byte sequence. Don't update *mask when correctly detected.
17556 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17557 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17558 (detect_coding, detect_coding_system): Adjust for the changes above.
17559
175602008-02-01 Kenichi Handa <handa@m17n.org>
17561
17562 * character.c (char_string): Rename from
17563 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17564 (string_char): Rename from string_char.
17565
17566 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17567 if C is greater than MAX_3_BYTE_CHAR.
17568 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17569 string_char instead of string_char_with_unification.
17570
175712008-02-01 Dave Love <fx@gnu.org>
17572
17573 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17574
175752008-02-01 Kenichi Handa <handa@m17n.org>
17576
17577 * keymap.c (push_key_description): Pay attention to force_multibyte.
17578
17579 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17580
175812008-02-01 Dave Love <fx@gnu.org>
17582
17583 * charset.c (define_charset_internal): Rename `supprementary'.
17584
17585 * Makefile.in (lisp, shortlisp): Remove latin-N.
17586
175872008-02-01 Dave Love <fx@gnu.org>
17588
17589 * xfns.c (x_window, x_window): Use use_xim.
17590
17591 * xterm.c (use_xim): Initialize.
17592 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17593 (x_term_init): Maybe set use_xim.
17594
17595 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17596
175972008-02-01 Kenichi Handa <handa@m17n.org>
17598
17599 * search.c (search_buffer): Fix case-fold-search of multibyte
17600 characters.
17601 (boyer_moore): Rename the last argument to char_high_bits.
17602
176032008-02-01 Kenichi Handa <handa@m17n.org>
17604
17605 * xdisp.c (display_string): Fix for the case of zero width glyph.
17606
17607 * xfns.c (x_set_font): Change the error message of the case that
17608 x_new_fontset returns Qt.
17609
17610 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17611 (Finternal_set_lisp_face_attribute): Use signal_error for the
17612 error of invalid fontset.
17613
17614 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17615 fontset, return Qt.
17616
176172008-02-01 Dave Love <fx@gnu.org>
17618
17619 * unexelf.c (unexec): Make .got handling not SGI-specific.
17620
17621 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17622
17623 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17624
17625 * keyboard.c (read_key_sequence): Fix type error.
17626
17627 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17628 type error.
17629
17630 * fontset.c (fontset_add): Return Lisp_Object.
17631
176322008-02-01 Dave Love <fx@gnu.org>
17633
17634 * charset.h (charset_ordered_list_tick): Declare extern.
17635
176362008-02-01 Kenichi Handa <handa@m17n.org>
17637
17638 The following changes (and some of 2008-02-01 changes of mine) are
17639 for handling syntax, category, and case conversion for unibyte
17640 characters by converting them to multibyte on the fly. With these
17641 changes, we don't have to setup syntax and case tables for unibyte
17642 characters in each language environment.
17643
17644 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17645 multibyte if necessary.
17646
17647 * bytecode.c (Fbyte_code): Likewise.
17648
17649 * character.h (LEADING_CODE_LATIN_1_MIN)
17650 (LEADING_CODE_LATIN_1_MAX): New macros.
17651 (unibyte_to_multibyte_table): Extern it.
17652 (unibyte_char_to_multibyte): New macro.
17653 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17654 (CHAR_LEADING_CODE): New macro.
17655 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17656
17657 * character.c (unibyte_to_multibyte_table): New variable.
17658 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17659 (multibyte_char_to_unibyte): If C is an eight-bit character,
17660 convert it to the corresponding byte value.
17661
17662 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17663 not 1, signals an error. Update the elements of
17664 unibyte_to_multibyte_table.
17665 (init_charset_once): Initialize unibyte_to_multibyte_table.
17666 (syms_of_charset): Define the charset `iso-8859-1'.
17667
17668 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17669 as is without converting it to unibyte. In a unibyte buffer,
17670 convert C to multibyte before checking the syntax.
17671
17672 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17673
17674 * minibuf.c (Fminibuffer_complete_word): Use the macro
17675 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17676
17677 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17678
17679 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17680 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17681 that is zero, convert an eight-bit char to multibyte.
17682 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17683 non-emacs case.
17684 (PATFETCH): Convert an eight-bit char to multibyte.
17685 (HANDLE_UNIBYTE_RANGE): New macro.
17686 (regex_compile): Setup the compiled pattern for multibyte chars
17687 even if the given regex string is unibyte. Use PATFETCH_RAW
17688 instead of PATFETCH in many places. To handle `charset'
17689 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17690 only for ASCII chars.
17691 (analyse_first) <exactn>: Simplify because the compiled pattern
17692 is multibyte.
17693 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17694 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17695 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17696 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17697 multibyte always 1.
17698 (re_search_2): In emacs, set the locale variable multibyte to 1,
17699 otherwise to 0. New local variable target_multibyte. Check it
17700 to decide the multibyteness of STR1 and STR2. If
17701 target_multibyte is zero, convert unibyte chars to multibyte
17702 before translating and checking fastmap.
17703 (TARGET_CHAR_AND_LENGTH): New macro.
17704 (re_match_2_internal): In emacs, set the locale variable multibyte
17705 to 1, otherwise to 0. New local variable target_multibyte. Check
17706 it to decide the multibyteness of STR1 and STR2. Use
17707 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17708 <charset, charset_not>: If multibyte is nonzero, check fastmap
17709 only for ASCII chars. Call bcmp_translate with
17710 target_multibyte, not with multibyte.
17711 <begline>: Declare the local variable C as `unsigned'.
17712 (bcmp_translate): Change the last arg name to target_multibyte.
17713
17714 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17715 the regexp pattern and the matching target. Set cp->buf.multibyte
17716 to the multibyteness of the regexp pattern. Set
17717 cp->but.target_multibyte to the multibyteness of the matching target.
17718 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17719 FETCH_STRING_CHAR_ADVANCE.
17720 (Freplace_match): Convert unibyte chars to multibyte.
17721
17722 * syntax.c (char_quoted, back_comment, scan_words)
17723 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17724 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17725 unibyte chars to multibyte.
17726 (skip_chars): Delete the arg syntaxp, and move the code for
17727 handling syntaxes to skip_syntaxes. Change callers.
17728 Fix the case that the multibyteness of STRING and the current
17729 buffer doesn't match.
17730 (skip_syntaxes): New function.
17731 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17732 SINGLE_BYTE_CHAR_P.
17733
177342008-02-01 Kenichi Handa <handa@m17n.org>
17735
17736 * xfaces.c (QCfontset): New variable.
17737 (LFACE_FONTSET): New macro.
17738 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17739 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17740 (Finternal_set_lisp_face_attribute)
17741 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17742 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17743 check also LFACE_FONTSET_INDEX.
17744 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17745 attrs[LFACE_FONT_INDEX].
17746 (syms_of_xfaces): Intern and staticpro QCfontset.
17747
17748 * dispextern.h (enum lface_attribute_index): New member
17749 LFACE_FONTSET_INDEX.
17750
17751 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * coding.c (coding_set_destination): Fix coding->destination for
17756 the case converting a region.
17757 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17758 (encode_coding_object): Fix coding->dst_pos and
17759 coding->dst_pos_byte for the case converting a region.
17760
17761 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17762
17763 * character.h (BYTE8_STRING): New macro.
17764
17765 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17766
177672008-02-01 Kenichi Handa <handa@m17n.org>
17768
17769 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17770 characters by octal form.
17771
17772 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17773
17774 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17775 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17776 _fetch_multibyte_char_len.
17777 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17778
17779 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17780
17781 * casefiddle.c (casify_object): Simplify. Handle the case that
17782 the case conversion change the byte length.
17783 (casify_region): Likewise.
17784
17785 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17786
17787 * character.c (_fetch_multibyte_char_len): Delete this variable.
17788 (syms_of_character): Setup Vprintable_chars.
17789
17790 * editfns.c (Fchar_equal): Fix for the unibyte case.
17791 (Finsert_byte): New function.
17792 (syms_of_editfns): Defsubr it.
17793
17794 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17795 of direct code 0x3ffff.
17796
17797 * search.c (Freplace_match): Fix for the unibyte case.
17798
177992008-02-01 Kenichi Handa <handa@m17n.org>
17800
17801 * lread.c (safe_to_load_p): Fix the logic.
17802
17803 * syntax.c (scan_words): Don't treat characters belonging to
17804 different scripts as constituting a word.
17805
17806 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17807
17808 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17809
17810 * emacs.c (main): In the case of --unibyte, instead of aborting on
17811 finding non-empty buffer, make it unibyte.
17812
178132008-02-01 Kenichi Handa <handa@m17n.org>
17814
17815 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17816 to create a fontset.
17817
178182008-02-01 Dave Love <fx@gnu.org>
17819
17820 * character.c (Funibyte_char_to_multibyte): Doc fix.
17821
17822 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17823
178242008-02-01 Kenichi Handa <handa@m17n.org>
17825
17826 * fontset.c (fontset_add): Make the type `int'.
17827 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17828
17829 * character.c (unibyte_char_to_multibyte)
17830 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17831 charset_unibyte, not charset_primary.
17832
17833 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17834
17835 * charset.c (charset_unibyte): Rename from charset_primary.
17836 (Funibyte_charset): Rename from Fprimary_charset.
17837 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17838 (syms_of_charset): Adjust for the above changes.
17839
17840 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17841 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17842 it->multibyte_p is zero.
17843
17844 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17845 Delete extern.
17846
178472008-02-01 Kenichi Handa <handa@m17n.org>
17848
17849 * coding.c (Fdefine_coding_system_internal): Fix category setting
17850 for a coding system of type iso-2022.
17851
178522008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17855
178562008-02-01 Kenichi Handa <handa@m17n.org>
17857
17858 * syntax.c (Vnext_word_boundary_function_table): New variable.
17859 (next-word-boundary-function-table): Declare it as a Lisp variable
17860 in syms_of_syntax.
17861 (scan_words): Call functions in Vnext_word_boundary_function_table
17862 if any.
17863
17864 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17865
17866 * fontset.c (fs_load_font): If fontp->charset is not negative,
17867 return fontp without setting its members.
17868
178692008-02-01 Dave Love <fx@gnu.org>
17870
17871 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17872
17873 * m/sparc.h (HAVE_ALLOCA): Delete.
17874
17875 * s/irix6-5.h: Don't include strings.h.
17876 (bcopy, bzero, bcmp): Don't undef.
17877
17878 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17879
17880 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17881 (TIOCSIGSEND): Don't test IRIX6.
17882 (bcopy, bzero, bcmp): Define conditionally.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * buffer.c (Qas, Qmake, Qto): New variables.
17887 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17888 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17889
17890 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17891 we are inserting a process output into a multibyte buffer.
17892
17893 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17894 multibyte_char_to_unibyte.
17895
17896 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17897 by the primary charset, make it eight-bit char.
17898 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17899
17900 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17901 (charset_8_bit__control, charset_8_bit_graphic)
17902 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17903 (define_charset_internal): New function.
17904 (syms_of_charset): Call define_charset_internal for pre-defined
17905 charsets.
17906
17907 * charset.h (charset_8_bit): Extern it.
17908
17909 * coding.c (make_conversion_work_buffer): Adjust for the change
17910 of Fset_buffer_multibyte.
17911 (encode_coding_raw_text): Increment p0 in the loop.
17912
17913 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17914
17915 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17916 for the change of Fset_buffer_multibyte.
17917
17918 * fns.c (Fstring_to_multibyte): New function.
17919 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17920
179212008-02-01 Dave Love <fx@gnu.org>
17922
17923 * xfns.c (x_put_x_image): Declare args.
17924
17925 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17926 (try_font_list): Declare an arg.
17927
17928 * xdisp.c (message2_nolog, set_message): Declare an arg.
17929
17930 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17931
17932 * syntax.c (scan_sexps_forward): Declare an arg.
17933
17934 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17935 Declare an arg.
17936
17937 * lisp.h (Fnew_fontset): Declare.
17938
17939 * keymap.c (push_key_description): Call CHARACTERP correctly.
17940
17941 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17942 (face_for_char): Delete unused vars.
17943 (Fset_fontset_font): Doc fix. Delete unused vars.
17944
17945 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17946
17947 * composite.c (update_compositions): Declare arg.
17948
17949 * cm.c (calccost, cmgoto): Declare args.
17950
17951 * charset.c: Remove `emacs' conditional. Doc fixes.
17952 (map_char_table_for_charset): Declare.
17953
17954 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17955
17956 * ccl.c: Remove `emacs' conditional.
17957
179582008-02-01 Kenichi Handa <handa@m17n.org>
17959
17960 The following changes are to allow specifying multiple font
17961 patterns for a character range (specified by script or charset).
17962
17963 * Makefile.in (abbrev.o): Depend on syntax.h.
17964 (xfaces.o): Depend on charset.h.
17965
17966 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17967 SINGLE_BYTE_CHAR_P.
17968
17969 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17970
17971 * character.h (Vchar_script_table): Extern it.
17972
17973 * character.c (Vscript_alist): Delete.
17974 (Vchar_script_table, Qchar_script_table): New variable.
17975 (syms_of_character): Declare Vchar_script_table as a lisp variable
17976 and initialize it.
17977
17978 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17979 have property char-table-extra-slots, make no extra slot.
17980
17981 * dispextern.h (struct face): Delete member `charset'.
17982 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17983 SINGLE_BYTE_CHAR_P.
17984 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17985 Add prototypes.
17986 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17987 (generate_ascii_font_name): Rename from generate_ascii_font.
17988
17989 * fontset.h (get_font_repertory_func): New prototype.
17990 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17991 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17992
17993 * fontset.c (Qprepend, Qappend): New variables.
17994 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17995 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17996 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17997 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17998 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17999 (load_font_get_repertory): New functions.
18000 (fontset_set): Delete.
18001 (fontset_face): New arg FACE. Return face ID, not face.
18002 Complete re-write to handle new fontset structure. Change caller.
18003 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18004 (face_for_char): Don't call lookup_face.
18005 (make_fontset_for_ascii_face): New arg FACE.
18006 (fs_load_font): New arg CHARSET_ID. Don't check
18007 Vfont_encoding_alist here.
18008 (find_font_encoding): New function.
18009 (list_fontsets): Use STRINGP, not ! NILP.
18010 (accumulate_script_ranges): New function.
18011 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18012 re-written to handle new fontset structure.
18013 (Ffontset_font): Return a copy of element.
18014 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18015 docstring of font-encoding-alist.
18016
18017 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18018 (Fset_fotset_font): Fix arguments to 5.
18019
18020 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18021
18022 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18023 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18024 (highlight_trailing_whitespace): Adjust for the change of
18025 lookup_named_face.
18026
18027 * xfaces.c: Include charset.h.
18028 (load_face_font): Delete argument C. Change caller.
18029 (generate_ascii_font_name): Rename from generate_ascii_font.
18030 (font_name_registry): New function.
18031 (cache_face): Store ascii faces before non-ascii faces in buckets.
18032 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18033 Lookup only ascii faces.
18034 (lookup_non_ascii_face): New function.
18035 (lookup_named_face): Delete argument C. Change caller.
18036 (lookup_derived_face): Delete argument C. Change caller.
18037 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18038 a string, just call font_list with it.
18039 (choose_face_font): Delete arguments FACE and C. New arg
18040 FONT_SPEC. Change caller.
18041 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18042 Change caller.
18043 (realize_non_ascii_face): New function.
18044 (realize_x_face): Call load_face_font here.
18045 (realize_tty_face): Delete argument C. Change caller.
18046 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18047 get a face ID.
18048 (dump_realized_face): Don't print charset of FACE.
18049
18050 * xfns.c (x_set_font): Always call x_new_fontset and
18051 store_frame_parameter.
18052 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18053 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18054
18055 * xterm.h (x_get_font_repertory): Extern it.
18056
18057 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18058 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18059 it->multibyte_p is zero.
18060 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18061 (x_new_fontset): If FONTSETNAME doesn't match any existing
18062 fontsets, create a new one.
18063 (x_get_font_repertory): New function.
18064
180652008-02-01 Kenichi Handa <handa@m17n.org>
18066
18067 * coding.c (Ffind_coding_systems_region_internal): Detect an
18068 ASCII only string correctly.
18069
18070 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18071 version is 0.
18072
180732008-02-01 Kenichi Handa <handa@m17n.org>
18074
18075 * lread.c: Include "coding.h".
18076 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18077 (load_each_byte, unread_char): New variables.
18078 (readchar_backlog): Delete.
18079 (readchar): Return a character unless load_each_byte is nonzero.
18080 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18081 cons. If unread_char is not -1, simply return it.
18082 (unreadchar): Handle the case that readcharfun is
18083 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18084 (read_multibyte): Delete.
18085 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18086 (read_emacs_mule_char): New functions.
18087 (Fload): Even if the file doesn't have the extension ".elc", if
18088 safe_to_load_p returns a positive version number, assume that the
18089 file contains bytecompiled code. If the version is less than 22,
18090 load the file while decoding multibyte sequences by emacs-mule.
18091 (readevalloop): Don't use readchar_backlog.
18092 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18093 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18094 (read_escape): Delete the arg BYTEREP.
18095 (read1): Set load_each_byte to 1 temporarily while handling
18096 #@NUMBER. Don't call read_multibyte.
18097 (read_vector): Call Fread with a cons. If readcharfun is
18098 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18099 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18100 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18101 and Qload_force_doc_strings.
18102
181032008-02-01 Kenichi Handa <handa@m17n.org>
18104
18105 * xdisp.c (face_before_or_after_it_pos): Call
18106 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * character.h (TRAILING_CODE_P): New macro.
18111 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18112 (string_char_with_unification): Fix prototype.
18113 (Vscript_alist): Extern it.
18114
18115 * character.c (Vscript_alist): New variable.
18116 (string_char_with_unification, str_as_unibyte)
18117 (string_escape_byte8): Add `const' to local variables.
18118 (syms_of_character): Declare script-alist as a Lisp variable.
18119
18120 * charset.h (Vcharset_ordered_list): Extern it.
18121 (charset_ordered_list_tick): Extern it.
18122 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18123 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18124 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18125 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18126 (Funify_charset): Adjust for the change of Funify_charset.
18127
18128 * charset.c (charset_ordered_list_tick): New variable.
18129 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18130 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18131 deunify intead of unify a charset.
18132 (string_xstring_p): Add `const' to local variables.
18133 (find_charsets_in_text): Add `const' to arguments and local variables.
18134 (encode_char): Adjust for the change of Funify_charset. Fix
18135 detecting of invalid code.
18136 (Fset_charset_priority): Increment charset_ordered_list_tick.
18137 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18138 and TO_CODE.
18139
18140 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18141 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18142 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18143 (decode_coding_ccl, consume_chars)
18144 (Ffind_coding_systems_region_internal)
18145 (Fcheck_coding_systems_region): Add `const' to local variables.
18146
18147 * print.c (print_object): Use octal form for printing the
18148 contents of a bool vector.
18149
181502008-02-01 Dave Love <fx@gnu.org>
18151
18152 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18153 <version == 20>: Refuse to load.
18154
181552008-02-01 Dave Love <fx@gnu.org>
18156
18157 * fns.c: Move coding.h.
18158 (Qcodeset, Qdays, Qmonths): New.
18159 (concat): Use CHARACTERP instead of INTEGERP.
18160 (Flocale_codeset): Delete.
18161 (Flanginfo): New function.
18162 (syms_of_fns): Change accordingly.
18163
18164 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18165
181662008-02-01 Dave Love <fx@gnu.org>
18167
18168 * casetab.c (init_casetab_once, init_casetab_once): Fix
18169 CHAR_TABLE_SET call.
18170
18171 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18172
18173 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18174
18175 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18176 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18177 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18178
18179 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18180
18181 * coding.c (ENCODE_DESIGNATION, decode_eol)
18182 (make_conversion_work_buffer, code_conversion_restore)
18183 (Fdefine_coding_system_internal): Convert Lisp types.
18184 (code_conversion_restore): Use EQ, not ==.
18185 (Fencode_coding_string): Fix code_convert_string call.
18186
18187 * coding.h (code_convert_region): Fix prototype.
18188
18189 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18190
18191 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18192 (Ffontset_info): Convert Lisp types.
18193
18194 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18195
18196 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18197
18198 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18199
18200 * chartab.c: Include "...h", not <...h> in some cases.
18201
18202 * callproc.c (Fcall_process): Remove unused variables.
18203
182042008-02-01 Dave Love <fx@gnu.org>
18205
18206 * coding.c (Fset_coding_system_priority): Allow null arg list.
18207
182082008-02-01 Dave Love <fx@gnu.org>
18209
18210 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18211 (Fself_insert_and_exit): Use CHARACTERP.
18212
18213 * callproc.c (Fcall_process): Remove unused vars.
18214
18215 * xterm.c (XTread_socket): Add extra dead keysyms.
18216
18217 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18218
18219 * dispextern.h: Remove prototypes for redraw_frame,
18220 redraw_garbaged_frames.
18221
18222 * cmds.c (Fself_insert_command): Use CHARACTERP.
18223
18224 * chartab.c (make_sub_char_table): Remove unused var.
18225 (Fset_char_table_default, Fmap_char_table): Doc fix.
18226
18227 * keymap.c (access_keymap): Remove generic char code.
18228 (push_key_description): Use CHARACTERP.
18229
182302008-02-01 Dave Love <fx@gnu.org>
18231
18232 * charset.c: Doc fixes.
18233 (Funify_charset): Extra checking.
18234
182352008-02-01 Dave Love <fx@gnu.org>
18236
18237 * lread.c: Remove some unused variables.
18238 (safe_to_load_p): If safe, return the magic number version byte.
18239 (Fload): Maybe use load-with-code-conversion.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * category.c (Fmodify_category_entry): Don't modify the contents
18244 of category_set for characters out of the range. Avoid
18245 unnecessary modification.
18246
18247 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18248 Vchar_unify_table. The default value of the table is now nil.
18249
18250 * character.c (syms_of_character): Setup Vchar_width_table for
18251 eight-bit-control and raw-byte chars.
18252
18253 * charset.h (enum define_charset_arg_index): Delete
18254 charset_arg_parents and add charset_arg_subset and
18255 charset_arg_superset.
18256 (enum charset_attr_index): Delete charset_parents and add
18257 charset_subset and charset_superset.
18258 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18259 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18260 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18261 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18262 (CHARSET_SUPERSET): New macros.
18263 (charset_work): Extern it.
18264 (ENCODE_CHAR): Use charset_work.
18265 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18266 (map_charset_chars): Extern it.
18267
18268 * charset.c (load_charset_map): Set the default value of encoder
18269 and deunifier char-tables to nil.
18270 (map_charset_chars): Change argument. Change callers. Use
18271 map_char_table_for_charset instead of map_char_table.
18272 (Fmap_charset_chars): New optional args from_code and to_code.
18273 (Fdefine_charset_internal): Adjust for the change of
18274 `define-charset' (:parents -> :subset or :superset).
18275 (charset_work): New variable.
18276 (encode_char, syms_of_charset): Adjust for the change of
18277 Fdefine_charset_internal.
18278 (Ffind_charset_string): Setup the vector `charsets' correctly.
18279
18280 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18281 the previous change.
18282 (char_table_ref_and_range): Adjust for the above change.
18283 (map_sub_char_table_for_charset): New function.
18284 (map_char_table_for_charset): New function.
18285
18286 * keymap.c (describe_vector): Handle a char-table directly here.
18287 (describe_char_table): Delete.
18288
18289 * lisp.h (map_charset_chars): Delete.
18290
182912008-02-01 Dave Love <fx@gnu.org>
18292
18293 * fns.c (count_combining): Comment out (unused).
18294 (Flocale_codeset): New.
18295 (syms_of_fns): Defsubr it.
18296
18297 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18298 (size_t): Remove.
18299
183002008-02-01 Dave Love <fx@gnu.org>
18301
18302 * Makefile.in (chartab.o): Depend on charset.h.
18303
183042008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * character.c (syms_of_character): Set the default value of
18307 Vprintable_chars to Qnil.
18308
183092008-02-01 Dave Love <fx@gnu.org>
18310
18311 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18312
183132008-02-01 Kenichi Handa <handa@m17n.org>
18314
18315 * charset.c (load_charset_map): Handle the case that from < to
18316 correctly.
18317
18318 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18319 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18320 Pay attention to raw-8-bit chars.
18321
183222008-02-01 Kenichi Handa <handa@m17n.org>
18323
18324 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18325 It is not bytecompiled now.
18326
18327 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18328 (charset_jisx0208): New variables.
18329 (Fdefine_charset_internal): Setup them if appropriate.
18330 (init_charset_once): Initialize them to -1.
18331
18332 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18333 (charset_jisx0208): Extern them.
18334
18335 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18336 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18337 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18338 (setup_iso_safe_charsets): Fix arguments to Fassq.
18339 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18340 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18341 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18342 (encode_coding_iso_2022): Change the 1st arg to
18343 ENCODE_ISO_CHARACTER to a variable.
18344
183452008-02-01 Kenichi Handa <handa@m17n.org>
18346
18347 * charset.h (enum define_charset_arg_index): New enums
18348 charset_arg_min_code and charset_arg_max_code.
18349 (struct charset): New member char_index_offset.
18350
18351 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18352 Take charset->char_index_offset into account.
18353 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18354 args[charset_arg_max_code]. Setup charset.char_index_offset.
18355 (syms_of_charset): Fix args to Fdefine_charset_internal.
18356
183572008-02-01 Dave Love <fx@gnu.org>
18358
18359 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18360
183612008-02-01 Dave Love <fx@gnu.org>
18362
18363 * coding.c: Doc fixes.
18364 (Fcoding_system_aliases): Fix return value.
18365 (Qmac): Remove (duplicated) definition.
18366
183672008-02-01 Dave Love <fx@gnu.org>
18368
362654a6
JB
18369 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18370 New functions.
aac0c6e3
MR
18371
18372 * character.c (Fstring): Doc fix.
18373
18374 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18375
362654a6 18376 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18377 (font-encoding-alist): Doc fix.
18378
183792008-02-01 Dave Love <fx@gnu.org>
18380
18381 * term.c (costs_set): Declare static, non-initialized for pcc.
18382 (encode_terminal_code): Remove unused var.
18383
18384 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18385 for K&R.
18386
18387 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18388
18389 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18390 (suffixes): Move out of make_subsidiaries for K&R.
18391
18392 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18393
18394 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18395
183962008-02-01 Dave Love <fx@gnu.org>
18397
18398 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18399
18400 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18401
184022008-02-01 Yong Lu <lyongu@asia-infonet.com>
18403
18404 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18405
18406 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18407
184082008-02-01 Kenichi Handa <handa@m17n.org>
18409
18410 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18411 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18412
184132008-02-01 Kenichi Handa <handa@m17n.org>
18414
18415 * coding.c (decode_coding_charset): Adjust for the change of
18416 Fdefine_coding_system_internal.
18417 (Fdefine_coding_system_internal): For a coding system of
18418 `charset' type, store a list of charset IDs in
18419 `charset_attr_charset_valids' element of coding attributes.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18424 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18425 caller. Handle 2-byte and 3-byte charsets correctly.
18426 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18427 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18428 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18429 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18430 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18431 sequence.
18432 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18433 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18434 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18435 and alt&rule composition.
18436 (decode_coding_iso_2022): Handle composition correctly.
18437 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18438
18439 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18440 re-defining a charset. If the charset has :emacs-mule-id, setup
18441 emacs_mule_bytes.
18442 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18447 (encode_coding_big5, encode_coding_charset): If coding requires safe
18448 encoding, produce a character specified by
18449 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18450
184512008-02-01 Dave Love <fx@gnu.org>
18452
18453 * xterm.c (XSetIMValues): Declare.
18454
18455 * process.c: Conditionally include sys/wait.h, pty.h.
18456
18457 * print.c (print_object): Fix print format for 64-bit systems.
18458
18459 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18460
18461 * buffer.c (emacs_strerror): Declare.
18462
18463 * fontset.c (Fclear_face_cache): Declare.
18464 (accumulate_font_info): Comment-out (unused).
18465 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18466 variables.
18467
18468 * character.h (string_escape_byte8): Declare.
18469
18470 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18471 unused vars.
18472 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18473 (Fmap_charset_chars): Doc fix.
18474
18475 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18476 (Fset_coding_system_priority, Fset_coding_system_priority)
18477 (Fdefine_coding_system_internal): Doc fix.
18478
184792008-02-01 Dave Love <fx@gnu.org>
18480
18481 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * character.c (string_escape_byte8): Make multibyte string with
18486 correct size.
18487
18488 * charset.c (Fmake_char): Delete unnecessary code.
18489
184902008-02-01 Kenichi Handa <handa@m17n.org>
18491
18492 * xfns.c (x_encode_text): Allocate coding.destination here, and
18493 call encode_coding_object with dst_object Qnil.
18494
18495 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18496 multibyte form correctly.
18497
18498 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18499 against Vfont_encoding_alist.
18500
18501 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18502 handling of charset list.
18503 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18504 (decode_coding_object): Move point to coding->dst_pos before
18505 calling post-read-conversion function.
18506 (encode_coding_object): Give correct arguments to
18507 pre-write-conversion. Ignore the return value of
18508 pre-write-conversion function. Pay attention to the case that
18509 pre-write-conversion changes the current buffer. If dst_object is
18510 Qt, even if coding->src_bytes is zero, allocate at least one byte
18511 to coding->destination.
18512
18513 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18514
18515 * charset.c (Fmake_char): Make it more backward compatible.
18516 (Fmap_charset_chars): Fix docstring.
18517
185182008-02-01 Dave Love <fx@gnu.org>
18519
18520 * coding.c: Doc fixes.
18521 (Fdefine_coding_system_alias): Use names, not symbols, in
18522 coding-system-alist.
18523
185242008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18527 of calling free_realized_face.
18528
185292008-02-01 Yong Lu <lyongu@asia-infonet.com>
18530
18531 * charset.c (read_hex): Don't treat SPC as a comment starter.
18532 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18533 (Fdecode_char): Fix typo.
18534
185352008-02-01 Kenichi Handa <handa@m17n.org>
18536
18537 * charset.h (struct charset): New member `code_space_mask'.
18538
18539 * coding.c (coding_set_source): Delete the local variable beg_byte.
18540 (encode_coding_charset, Fdefine_coding_system_internal):
18541 Delete the local variable charset.
18542 (Fdefine_coding_system_internal): Setup
18543 attrs[coding_attr_charset_valids] correctly.
18544
18545 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18546 member to check if CODE is valid or not.
18547 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18548 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18549 is within the range of charset->min_code and carset->max_code.
18550
185512008-02-01 Dave Love <fx@gnu.org>
18552
18553 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18554
18555 * dispextern.h (generate_ascii_font): Fix return type.
18556
18557 * xfaces.c (generate_ascii_font): Fix arg declaration.
18558
18559 * coding.c (coding_inherit_eol_type)
18560 (Fset_terminal_coding_system_internal)
18561 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18566 multiple charsets correctly.
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * search.c (boyer_moore): Fix handling of multibyte character
18571 translation.
18572
18573 * xdisp.c (display_mode_element): When the variable `elt' is
18574 changed, update `this' and `lisp_string'.
18575
185762008-02-01 Kenichi Handa <handa@m17n.org>
18577
18578 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18579
18580 * callproc.c (Fcall_process): Be sure to give the current buffer
18581 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18582
18583 * charset.c (struct charset_map_entries): New struct.
18584 (load_charset_map): Rename from parse_charset_map. New args
18585 entries and n_entries. Change caller.
18586 (load_charset_map_from_file): Rename from load_charset_map.
18587 Change caller. New arg control_flag. Call load_charset_map at
18588 the tail.
18589 (load_charset_map_from_vector): New function.
18590 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18591 (encode_char): If the charset is compact, change a character index
18592 to a code point.
18593
18594 * coding.c (coding_alloc_by_making_gap): Check the case that the
18595 source and destination are the same correctly.
18596 (decode_coding_raw_text): Set coding->consumed_char and
18597 coding->consumed to 0.
18598 (produce_chars): If coding->chars_at_source is nonzero, update
18599 coding->consumed_char and coding->consumed before calling
18600 alloc_destination.
18601 (Fdefine_coding_system_alias): Register ALIAS in
18602 Vcoding_system_alist.
18603 (syms_of_coding): Define `no-conversion' coding system at the tail.
18604
18605 * fileio.c (Finsert_file_contents): Set coding_system instead of
18606 val. If the current buffer is multibyte, always call
18607 decode_coding_gap.
18608
18609 * xfaces.c (try_font_list): Give higher priority to fontset's
18610 family than face's family.
18611
186122008-02-01 Kenichi Handa <handa@m17n.org>
18613
18614 * callproc.c (Fcall_process): Be sure to give the current buffer
18615 to decode_coding_c_string.
18616
18617 * xfaces.c (try_font_list): Give a family specified in a fontset
18618 higher priority than a family specified in a face.
18619
186202008-02-01 Kenichi Handa <handa@m17n.org>
18621
18622 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18623 Fix arguments to insert_from_buffer.
18624
18625 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18626
186272008-02-01 Kenichi Handa <handa@m17n.org>
18628
18629 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18630 (decode_coding_gap): Set coding->dst_multibyte correctly.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18635 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18636 (encode_coding_utf_16): Substitute coding->default_char for
18637 non-Unicode characters.
18638 (decode_coding): Don't call record_insert here.
18639 (setup_coding_system): Initialize `surrogate' of
18640 coding->spec.utf_16 to 0.
18641 (EMIT_ONE_BYTE): Fix for multibyte case.
18642
18643 * insdel.c (insert_from_gap): Call record_insert.
18644
186452008-02-01 Kenichi Handa <handa@m17n.org>
18646
18647 * casefiddle.c (casify_region): Fix multibyte case.
18648
18649 * character.c (c_string_width): Add return type `int'.
18650 (char_string_with_unification): Delete arg ADVANCED.
18651
18652 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18653 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18654 (CHAR_STRING_ADVANCE): Make it do-while statement.
18655
18656 * chartab.c (sub_char_table_set_range): Optimize for the case
18657 DEPTH == 3. Add workaround code for a GCC optimization bug.
18658
18659 * charset.c (parse_charset_map): Remove an unused variable.
18660
18661 * coding.c: Delete unused variables.
18662
18663 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18664 earlier. If inserted is zero and the coding system doesn't
18665 require flushing, don't call decode_coding_gap.
18666
18667 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18668
186692008-02-01 Kenichi Handa <handa@m17n.org>
18670
18671 The following changes are for using Unicode as an internal
18672 character model, and use UTF-8 format for buffer/string
18673 representation.
18674
18675 * .gdbinit (xchartable): Adjust for the change of char table structure.
18676 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18677
18678 * Makefile.in (obj): Add character.o and chartab.o.
18679 (lisp, shortlisp): Remove utf-8.elc.
18680 (*.o): For many files, change dependency on charset.h to
18681 character.h, and add dependency on character.h.
18682 (character.o, chartab.o): New targets.
18683
18684 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18685 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18686 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18687 of "charset.h".
18688
18689 * dired.c, filelock.c: Include "character.h".
18690
18691 * alloc.c: Include "character.h" instead of "charset.h".
18692 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18693 (syms_of_alloc): Remove defsubr for Smake_char_table.
18694
18695 * buffer.c: Include "character.h" instead of "charset.h", don't
18696 include "coding.h".
18697 (Fset_buffer_multibyte): Adjust for UTF-8.
18698
18699 * buffer.h: EXFUN Fbuffer_live_p.
18700
18701 * callproc.c: Include "character.h" instead of "charset.h".
18702 (Fcall_process): Big change for the new code-conversion APIs.
18703
18704 * casetab.c: Include "character.h" instead of "charset.h".
18705 (set_canon, set_identity, shuffle): Adjust for the new
18706 map_char_table spec.
18707 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18708 accessing the char table structure.
18709
18710 * chartab.c: New file that implements char table.
18711
18712 * category.c: Include "character.h".
18713 (copy_category_entry): New function.
18714 (copy_category_table): Call map_char_table and copy_category_entry.
18715 (Fmake_category_table): Initialize all top-level slots.
18716 (char_category_set): New function.
18717 (modify_lower_category_set): Delete.
18718 (Fmodify_category_entry): Call char_table_ref_and_range.
18719
18720 * category.h (CATEGORY_SET): Just call char_category_set.
18721
18722 * ccl.c: Include "character.h".
18723 (Qccl, Qcclp): New variables.
18724 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18725 it's less than 256.
18726 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18727 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18728 and DST type.
18729 (ccl_driver): Change types of argument, adjust code accordingly.
18730 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18731 ccl_driver.
18732 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18733
18734 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18735 New members src_multibyte, dst_multibyte, consumed, and produced.
18736 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18737 (CODING_SPEC_CCL_PROGRAM): New macro.
18738 (ccl_driver): Update prototype.
18739 (Qccl, Qcclp, Fccl_program_p): Extern them.
18740 (CHECK_CCL_PROGRAM): New macro.
18741
18742 * character.c, character.h, chartab.c: New files.
18743
18744 * charset.c: Mostly re-written. Move character and multibyte sequence
18745 handling codes to character.c.
18746
18747 * charset.h: Mostly re-written. Move character and multibyte sequence
18748 handling codes to character.h.
18749
18750 * coding.c, coding.h: Mostly re-written.
18751
18752 * composite.c: Include "character.h" instead of "charset.h".
18753 (CHAR_WIDTH): Move to character.h.
18754 (HASH_KEY, HASH_VALUE): Delete.
18755
18756 * composite.h (enum composition_method): Change order of enumeration
18757 symbols.
18758
18759 * data.c: Include "character.h" instead of "charset.h".
18760 (Faref): Call CHAR_TABLE_REF for a char table.
18761 (Faset): Call CHAR_TABLE_SET for a char table.
18762
18763 * dispextern.h (free_realized_face, check_face_attribytes)
18764 (generate_ascii_font): Extern them.
18765 (free_realized_multibyte_face): Delete extern.
18766
18767 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18768 table structure.
18769
18770 * editfns.c: Include "character.h" instead of "charset.h".
18771 (Fchar_to_string): Always call CHAR_STRING.
18772
18773 * emacs.c (main): Call init_charset_once, init_charset,
18774 syms_of_chartab, and syms_of_character.
18775
18776 * fileio.c: Include "character.h" instead of "charset.h".
18777 (Finsert_file_contents): Big change for the new code-conversion API.
18778 (choose_write_coding_system, Fwrite_region): Likewise.
18779 (build_annotations_2): Delete.
18780 (e_write): Big change for the new code-conversion API.
18781
18782 * fns.c: Include "character.h" instead of "charset.h".
18783 (copy_sub_char_table): Move to chartab.c.
18784 (Fcopy_sequence): Call copy_char_table for a char table.
18785 (concat): Delete codes calling count_multibyte.
18786 (string_char_to_byte, string_byte_to_char): Adjust for the new
18787 multibyte form.
18788 (internal_equal): Adjust for the change of char table structure.
18789 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18790 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18791 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18792 (char_table_translate, optimize_sub_char_table)
18793 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18794 chartab.c.
18795 (char_table_ref_and_index): Delete.
18796 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18797 (Fmd5): Call preferred_coding_system instead of accessing
18798 Vcoding_category_list. Adjust for the new code-conversion API.
18799 (syms_of_fns): Move defsubr for char table related functions to
18800 chartab.c.
18801
18802 * fontset.c: Mostly re-written.
18803
18804 * fontset.h (struct font_info): Change type of the member encoding_type.
18805 (enum FONT_SPEC_INDEX): New enum.
18806 (fontset_font_pattern, fs_load_font): Update prototype.
18807 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18808
18809 * indent.c: Include "character.h" instead of "charset.h".
18810 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18811
18812 * insdel.c: Include "character.h" instead of "charset.h".
18813 (copy_text): Don't refer to Vnonascii_translation_table.
18814 (insert_from_gap): New function.
18815
18816 * keyboard.c: Include "character.h" instead of "charset.h".
18817 (command_loop_1): Never call direct_output_forward_char before
18818 a non-ASCII character.
18819 (read_char): If Vkeyboard_translate_table is a char table, always
18820 translate a character.
18821
18822 * keymap.c: Include "character.h".
18823 (store_in_keymap): Handle the case that IDX is a cons.
18824 (Fdefine_key): Handle the case that KEY is a cons and the car part
18825 is also a cons (range).
18826 (push_key_description): Adjust for the new character code.
18827 (describe_vector): Call describe_char_table for a char table.
18828 (describe_char_table): New function.
18829
18830 * keymap.h (describe_char_table): Extern it.
18831
18832 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18833 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18834 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18835 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18836 Delete.
18837 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18838 structure.
18839 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18840 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18841 (CHARTAB_SIZE_BITS_3): New macros.
18842 (chartab_size): Extern it.
18843 (struct Lisp_Char_Table): Re-design.
18844 (struct Lisp_Sub_Char_Table): New structure.
18845 (HASH_KEY, HASH_VALUE): Move from fns.c.
18846 (CHARACTERBITS): Define as 22.
18847 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18848 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18849 (GC_SUB_CHAR_TABLE_P): New macro.
18850 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18851 (code_convert_string_norecord): Deleted extern.
18852 (init_character_once, syms_of_character, init_charset)
18853 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18854
18855 * lread.c: Include "character.h".
18856 (read_multibyte): New arg NBYTES.
18857 (read_escape): Change the meaning of returned *BYTEREP.
18858 (to_multibyte): Delete.
18859 (read1): Adjust the handling of char table and string.
18860
18861 * print.c: Include "character.h" instead of "charset.h".
18862 (print_string): Convert 8-bit raw bytes to octal form by
18863 string_escape_byte8.
18864 (print_object): Adjust for the new multibyte form. Print 8-bit
18865 raw bytes always in octal form. Handle sub char table correctly.
18866
18867 * process.c: Include "character.h" instead of "charset.h".
18868 (read_process_output, send_process): Adjust for the new
18869 code-conversion API.
18870
18871 * puresize.h (BASE_PURESIZE): Increase.
18872
18873 * regex.c: Include "character.h" instead of "charset.h".
18874 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18875 (regex_compile): Accept a range whose starting and ending
18876 character have different leading bytes.
18877 (analyse_first): Adjust for the above change.
18878
18879 * search.c: Include "character.h" instead of "charset.h".
18880 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18881 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18882
18883 * syntax.c: Include "character.h" instead of "charset.h".
18884 (syntax_parent_lookup): Delete.
18885 (Fmodify_syntax_entry): Accept a cons as CHAR.
18886 (skip_chars): Adjust for the new multibyte form.
18887 (init_syntax_once): Call char_table_set_range instead of directly
18888 accessing the structure of a char table.
18889
18890 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18891 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18892 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18893 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18894
18895 * term.c: Include "buffer.h" and "character.h".
18896 (encode_terminal_code, write_glyphs): Adjust for the new
18897 code-conversion API.
18898 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18899
18900 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18901
18902 * xdisp.c: Include "character.h".
18903 (get_next_display_element): Adjust for the new multibyte form.
18904 (disp_char_vector): Adjust for the new char table structure.
18905 (decode_mode_spec_coding): Adjust for the new structure of
18906 coding system.
18907 (decode_mode_spec): Adjust for the new code-conversion API.
18908
18909 * xfaces.c: Include "character.h" instead of "charset.h".
18910 (load_face_font): Adjust for the change of choose_face_font and
18911 FS_LOAD_FONT.
18912 (generate_ascii_font): New function.
18913 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18914 (set_font_frame_param): Adjust for the change of choose_face_font.
18915 (free_realized_face): Make it public.
18916 (free_realized_faces_for_fontset): Rename from
18917 free_realized_multibyte_face. Free also faces realized for ASCII.
18918 (choose_face_font): Change arguments. Adjust for the change of
18919 fontset_font_pattern and FS_LOAD_FONT.
18920
18921 * xfns.c: Include "character.h".
18922 (x_encode_text): Adjust for the new code-conversion API.
18923
18924 * xselect.c: Don't include "charset.h".
18925 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18926
18927 * xterm.c: Include "character.h".
18928 (x_encode_char): New argument CHARSET. Change caller.
18929 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18930 Call ENCODE_CHAR instead of SPLIT_CHAR.
18931 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18932 CHAR_WIDTH instead of CHARSET_WIDTH.
18933 (XTread_socket): Adjust for the new code-conversion API.
18934 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18935 (x_load_font): Adjust for the change of struct font.
18936
189372008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18938
18939 * xfaces.c (face_at_buffer_position): Remove unused vars.
18940
189412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18942
18943 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18944 Fix overflow checking.
18945
189462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18947
18948 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18949 Cancel previous change.
18950
189512008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18952
18953 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18954 ccl->eight_bit_control. Fix check for buffer overflow.
18955 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18956 (ccl_driver): Initialize extra_bytes to 0.
18957
189582008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18959
18960 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18961 return it ORed with ctrl_modifier.
18962
189632008-01-29 Miles Bader <miles@gnu.org>
18964
18965 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18966
189672008-01-28 Jason Rumney <jasonr@gnu.org>
18968
18969 * w32.c (stat): Don't double check for networked drive.
18970
189712008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18972
18973 * window.c (run_window_configuration_change_hook): New function.
18974 Code extracted from set_window_buffer. Set the selected frame.
18975 (set_window_buffer): Use it.
18976 * window.h (run_window_configuration_change_hook): Declare.
18977 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18978
18979 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18980
189812008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18982
18983 * Makefile.in: Remove references to unused macros.
18984
189852008-01-26 Eli Zaretskii <eliz@gnu.org>
18986
18987 * w32.c (g_b_init_get_sid_sub_authority)
18988 (g_b_init_get_sid_sub_authority_count): New static variables.
18989 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18990 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18991 (init_user_info): Use them to retrieve uid and gid.
18992 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18993 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18994 st_uid and st_gid of the file.
18995
189962008-01-26 Jason Rumney <jasonr@gnu.org>
18997
18998 * w32.c (logon_network_drive): New function.
18999 (stat): Use it.
19000
190012008-01-26 Chong Yidong <cyd@stupidchicken.com>
19002
19003 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19004 invisible text covered with an ellipsis.
19005
190062008-01-25 Richard Stallman <rms@gnu.org>
19007
19008 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19009 jump back to beginning. Move some other initializations after that.
19010 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19011 New variables.
19012 (syms_of_xdisp): Init them.
19013
19014 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19015
19016 * buffer.c (reset_buffer_local_variables):
19017 Implement `permanent-local-hook'.
19018 (Qpermanent_local_hook): New variable.
19019 (syms_of_buffer): Init and staticpro it.
19020
190212008-01-25 Michael Albinus <michael.albinus@gmx.de>
19022
19023 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19024
190252008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19026
19027 * fns.c (Fclrhash): Return TABLE.
19028
190292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19030
19031 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19032 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19033 is set even without positional changes.
19034 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19035
19036 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19037
190382008-01-23 Jason Rumney <jasonr@gnu.org>
19039
19040 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19041
19042 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19043 the unicode range available in MULE by locale-coding-system.
19044 Improve dbcs lead byte detection. Set event timestamp and modifiers
19045 earlier.
19046
190472008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19048
19049 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19050 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19051 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19052 when used on child processes.
19053
190542008-01-21 Michael Albinus <michael.albinus@gmx.de>
19055
19056 * dbusbind.c (Fdbus_method_return_internal): Rename from
19057 Fdbus_method_return.
19058 (Fdbus_unregister_object): Move to dbus.el.
19059 (Fdbus_call_method, Fdbus_method_return_internal)
19060 (Fdbus_send_signal): Improve debug messages.
19061
190622008-01-20 Martin Rudalics <rudalics@gmx.at>
19063
19064 * undo.c (undo_inhibit_record_point): New variable.
19065 (syms_of_undo): Initialize it.
19066 (record_point): Don't record point when undo_inhibit_record_point
19067 is set.
19068
190692008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19070
19071 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19072
19073 * xdisp.c (Qauto_hscroll_mode): New var.
19074 (syms_of_xdisp): Initialize it.
19075 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19076 window's buffer.
19077 (hscroll_windows): Don't check automatic_hscrolling_p here.
19078
19079 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19080 vscroll if we're setting window-buffer to the value it already has.
19081
190822008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19083
19084 * m/intel386.h: Remove references to XENIX.
19085
190862008-01-17 Andreas Schwab <schwab@suse.de>
19087
19088 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19089 instead of HAVE_X86_64_LIB64_DIR.
19090 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19091
190922008-01-17 Glenn Morris <rgm@gnu.org>
19093
19094 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19095 to HAVE_X86_64_LIB64_DIR.
19096
190972008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19098
19099 * s/irix3-3.h:
19100 * s/irix4-0.h:
19101 * s/386-ix.h:
19102 * s/domain.h:
19103 * s/hpux9-x11r4.h:
19104 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19105
19106 * sysdep.c: Remove code containing references to symbols defined
19107 by unsupported systems.
19108
191092008-01-16 Glenn Morris <rgm@gnu.org>
19110
19111 * coding.c (select-safe-coding-system-function): Doc fix.
19112
191132008-01-15 Glenn Morris <rgm@gnu.org>
19114
19115 * config.in: Revert 2008-01-13 change: this is a generated file.
19116
191172008-01-13 Tom Tromey <tromey@redhat.com>
19118
19119 * lisp.h: Fix typo.
19120
191212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19122
19123 * m/sequent-ptx.h:
19124 * m/sequent.h:
19125 * s/ptx.h:
19126 * s/ptx4-2.h:
19127 * s/ptx4.h: Remove files for systems no longer supported.
19128
19129 * callproc.c (Fcall_process): Fix previous change.
19130
191312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19132
19133 * unexsunos4.c: Remove file, system not supported anymore.
19134
19135 * m/mips.h:
19136 * m/intel386.h:
19137 * callproc.c:
19138 * config.in:
19139 * ecrt0.c:
19140 * emacs.c:
19141 * fileio.c:
19142 * frame.c:
19143 * getpagesize.h:
19144 * keyboard.c:
19145 * lread.c:
19146 * process.c:
19147 * puresize.h:
19148 * sysdep.c:
19149 * systty.h:
19150 * syswait.h:
19151 * unexec.c:
19152 * xdisp.c:
19153 * alloc.c: Remove code containing references to symbols defined by
19154 unsupported systems.
19155
191562008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19157
19158 * coding.c (detect_coding_mask): Fix previous change.
19159
191602008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19161
19162 * coding.c (detect_coding_iso2022): New arg
19163 latin_extra_code_state. Allow Latin extra codes only
19164 when *latin_extra_code_state is nonzero.
19165 (detect_coding_mask): If there is a NULL byte, detect the encoding
19166 as UTF-16 or binary. If Latin extra codes exist, detect the
19167 encoding as ISO-2022 only when there's no other proper encoding is
19168 found.
19169
191702008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19171
19172 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19173 #ifdef MAC_OS.
19174
191752008-01-08 Richard Stallman <rms@gnu.org>
19176
19177 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19178
191792008-01-06 Nick Roberts <nickrob@snap.net.nz>
19180
19181 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19182 menu bar in parentheses.
19183
191842008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19185
19186 * m/7300.h:
19187 * m/acorn.h:
19188 * m/alliant-2800.h:
19189 * m/alliant.h:
19190 * m/alliant1.h:
19191 * m/alliant4.h:
19192 * m/altos.h:
19193 * m/amdahl.h:
19194 * m/apollo.h:
19195 * m/att3b.h:
19196 * m/aviion-intel.h:
19197 * m/aviion.h:
19198 * m/celerity.h:
19199 * m/clipper.h:
19200 * m/cnvrgnt.h:
19201 * m/convex.h:
19202 * m/cydra5.h:
19203 * m/delta88k.h:
19204 * m/dpx2.h:
19205 * m/dual.h:
19206 * m/elxsi.h:
19207 * m/f301.h:
19208 * m/gould-np1.h:
19209 * m/gould.h:
19210 * m/i860.h:
19211 * m/ibmps2-aix.h:
19212 * m/ibmrt-aix.h:
19213 * m/ibmrt.h:
19214 * m/irist.h:
19215 * m/is386.h:
19216 * m/isi-ov.h:
19217 * m/mega68.h:
19218 * m/mg1.h:
19219 * m/news-r6.h:
19220 * m/news-risc.h:
19221 * m/news.h:
19222 * m/nh3000.h:
19223 * m/nh4000.h:
19224 * m/ns16000.h:
19225 * m/ns32000.h:
19226 * m/nu.h:
19227 * m/orion.h:
19228 * m/orion105.h:
19229 * m/paragon.h:
19230 * m/pfa50.h:
19231 * m/plexus.h:
19232 * m/pyramid.h:
19233 * m/pyrmips.h:
19234 * m/sh3el.h:
19235 * m/sps7.h:
19236 * m/sr2k.h:
19237 * m/stride.h:
19238 * m/sun1.h:
19239 * m/sun2.h:
19240 * m/sun3-68881.h:
19241 * m/sun3-fpa.h:
19242 * m/sun3-soft.h:
19243 * m/sun3.h:
19244 * m/sun386.h:
19245 * m/symmetry.h:
19246 * m/tad68k.h:
19247 * m/tahoe.h:
19248 * m/targon31.h:
19249 * m/tek4300.h:
19250 * m/tekxd88.h:
19251 * m/tower32.h:
19252 * m/tower32v3.h:
19253 * m/ustation.h:
19254 * m/wicat.h:
19255 * m/xps100.h:
19256 * s/cxux.h:
19257 * s/cxux7.h:
19258 * s/dgux.h:
19259 * s/dgux4.h:
19260 * s/dgux5-4-3.h:
19261 * s/dgux5-4r2.h:
19262 * s/esix.h:
19263 * s/esix5r4.h:
19264 * s/hiuxmpp.h:
19265 * s/hiuxwe2.h:
19266 * s/iris3-5.h:
19267 * s/iris3-6.h:
19268 * s/isc2-2.h:
19269 * s/isc3-0.h:
19270 * s/isc4-0.h:
19271 * s/isc4-1.h:
19272 * s/newsos5.h:
19273 * s/newsos6.h:
19274 * s/osf1.h:
19275 * s/osf5-0.h:
19276 * s/riscix1-1.h:
19277 * s/riscix12.h:
19278 * s/sco4.h:
19279 * s/sco5.h:
19280 * s/sunos4-0.h:
19281 * s/sunos4-1.h:
19282 * s/sunos413.h:
19283 * s/sunos4shr.h:
19284 * s/umax.h:
19285 * s/unipl5-2.h:
19286 * s/xenix.h:
19287 * cxux-crt0.s:
19288 * unexapollo.c:
19289 * unexconvex.c:
19290 * unexenix.c:
19291 * unexsni.c: Remove files for systems no longer supported.
19292
19293 * m/intel386.h: Remove references to unsupported systems.
19294
19295 * w32.c (get_emacs_configuration): Remove reference to i860.
19296
19297 * sysdep.c: Remove dead code.
19298
192992008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19300
19301 * s/rtu.h:
19302 * m/masscomp.h: Remove files. Platform is obsolete.
19303
193042008-01-04 Michael Albinus <michael.albinus@gmx.de>
19305
19306 * dbusbind.c (Fdbus_method_return): New function.
19307 (xd_read_message): Add the serial number to the event.
19308 (Fdbus_register_method): Activate the function.
19309
193102008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19311
19312 * keyboard.c (read_key_sequence): Fix typo.
19313
193142008-01-03 Michael Albinus <michael.albinus@gmx.de>
19315
19316 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19317 (xd_signature, xd_append_arg): Handle element type detection for
19318 empty arrays.
19319 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19320 SDATA () calls; this must be solved more general.
19321 (Fdbus_register_signal): Use SBYTES instead of strlen.
19322
193232008-01-03 Magnus Henoch <magnus@zemdatav>
19324
19325 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19326 unsigned int for byte values (necessary for big-endian platform).
19327 (Fdbus_call_method): Handle the case of no returned arguments.
19328
193292007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19330
19331 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19332
193332007-12-31 Magnus Henoch <mange@freemail.hu>
19334
19335 * dbusbind.c (xd_signature): Signature of variant is just "v".
19336
193372007-12-30 Michael Albinus <michael.albinus@gmx.de>
19338
19339 * dbusbind.c: Fix several errors and compiler warnings.
19340 Reported by Tom Tromey <tromey@redhat.com>.
19341 (XD_ERROR, XD_DEBUG_MESSAGE)
19342 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19343 (xd_append_arg): Part for basic D-Bus types rewritten.
19344 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19345 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19346 appropriate.
19347 (xd_read_message): Return Qnil. Don't signal an error; it is not
19348 useful during event reading.
19349 (Fdbus_register_signal): Signal an error if the check for
19350 FUNCTIONP fails.
19351 (Fdbus_register_method): New function. The implementation is not
19352 complete, the call of the function signals an error therefore.
19353 (Fdbus_unregister_object): New function, renamed from
19354 Fdbus_unregister_signal. The initial check signals an error, if
19355 the object is not well formed.
19356
193572007-12-30 Richard Stallman <rms@gnu.org>
19358
19359 * textprop.c (get_char_property_and_overlay):
19360 Signal error if POSITION is out of range in a buffer.
19361
193622007-12-29 Martin Rudalics <rudalics@gmx.at>
19363
19364 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19365 because the original parameters are in pure storage now.
19366
193672007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19368
19369 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19370
193712007-12-22 Eli Zaretskii <eliz@gnu.org>
19372
19373 * callint.c (syms_of_callint) <command-history>: Add reference to
19374 history-length in the doc string.
19375
193762007-12-17 Jason Rumney <jasonr@gnu.org>
19377
19378 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19379 before passing as wParam.
19380
193812007-12-22 Michael Albinus <michael.albinus@gmx.de>
19382
19383 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19384 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19385 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19386 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19387 as number.
19388 (Fdbus_call_method): Fix docstring.
19389
193902007-12-21 Michael Albinus <michael.albinus@gmx.de>
19391
19392 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19393 New macros.
19394 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19395 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19396 Simplify.
19397 (xd_signature): New function.
19398 (xd_append_arg): Compute also signatures. Major rewrite.
19399 (xd_retrieve_arg): Make debug messages friendly.
19400 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19401 Check for signatures of arguments.
19402
194032007-12-19 Michael Albinus <michael.albinus@gmx.de>
19404
19405 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19406 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19407 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19408 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19409 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19410 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19411 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19412 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19413 (xd_retrieve_value): Remove. Functionality included in ...
19414 (xd_append_arg): New function.
19415 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19416
194172007-12-16 Michael Albinus <michael.albinus@gmx.de>
19418
19419 * dbusbind.c (top): Include <stdio.h>.
19420 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19421 dbus_message_new_method_call and dbus_message_new_signal.
19422 (Fdbus_register_signal): Rename unique_name to uname.
19423 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19424 non-existing unique name. Fix typos in matching rule. Return an
19425 object which is useful in Fdbus_unregister_signal.
19426 (Fdbus_unregister_signal): Reimplementation, in order to remove
19427 only the corresponding entry.
19428 (Vdbus_registered_functions_table): Change the order of entries.
19429 Apply these changes in xd_read_message and Fdbus_register_signal.
19430
194312007-12-16 Andreas Schwab <schwab@suse.de>
19432
19433 * fileio.c (Finsert_file_contents): Fix overflow check to not
19434 depend on undefined integer overflow.
19435
194362007-12-14 Jason Rumney <jasonr@gnu.org>
19437
19438 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19439 for characters above 127.
19440
194412007-12-13 Jason Rumney <jasonr@gnu.org>
19442
19443 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19444 before dereferencing array.
19445 (lookup_vk_code): Remove zero comparison.
19446
194472007-12-14 Michael Albinus <michael.albinus@gmx.de>
19448
19449 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19450 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19451 Use `unsigned int' instead of `uint'.
19452 (xd_read_message, Fdbus_register_signal): Split expressions into
19453 multiple lines before operators "&&" and "||", according to the
19454 GNU Coding Standards.
19455
194562007-12-14 Eli Zaretskii <eliz@gnu.org>
19457
19458 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19459
194602007-12-12 Juri Linkov <juri@jurta.org>
19461
19462 * buffer.c (Frename_buffer): In interactive spec replace
19463 `read-buffer' with `read-string' that uses `buffer-name-history'
19464 as history, and the current buffer's name as default.
19465
194662007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19467
19468 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19469 manipulating the backtrace manually.
19470 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19471 (struct backtrace, backtrace_list): Remove.
19472 (command_loop_1): Remove dead var `no_direct'.
19473
19474 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19475 preserve non-built-in buffer-local variables.
19476 (Fkill_all_local_variables): Don't re-create&re-set permanent
19477 buffer-local variables.
19478
194792007-12-09 Juri Linkov <juri@jurta.org>
19480
19481 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19482 Lisp code that uses `read-buffer' with current buffer as default.
19483
194842007-12-08 Michael Albinus <michael.albinus@gmx.de>
19485
19486 * dbusbind.c (xd_read_message): Generate an event for every
19487 registered handler. There might be several handlers registered
19488 for the same signal.
19489 (Fdbus_register_signal): Don't overwrite a registration for the
19490 same signal. Add a new registration if handlers are different.
19491 (Vdbus_registered_functions_table): Rework doc string.
19492
194932007-12-07 Michael Albinus <michael.albinus@gmx.de>
19494
19495 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19496 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19497 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19498 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19499 Unify argument lists.
19500 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19501 arguments and hash table keys. Use unique name for service.
19502 (Fdbus_unregister_signal): Remove checks.
19503 (Vdbus_registered_functions_table): Fix doc string.
19504
195052007-12-05 Magnus Henoch <mange@freemail.hu>
19506
19507 * process.c (make_process): Initialize pty_flag to 0.
19508
195092007-12-05 Jason Rumney <jasonr@gnu.org>
19510
19511 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19512 specified XBMs.
19513
195142007-12-05 Richard Stallman <rms@gnu.org>
19515
19516 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19517
195182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19519
19520 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19521 New variable.
19522 (mac_try_close_socket) [MAC_OSX]: New function.
19523 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19524 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19525
19526 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19527 Use mac_try_close_socket.
19528
195292007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19530
19531 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19532 reloc_base.
19533 (copy_dysymtab): Compute relocation base here.
19534 (rebase_reloc_address) [__ppc64__]: New function.
19535 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19536 changed.
19537
195382007-12-05 Jason Rumney <jasonr@gnu.org>
19539
19540 * w32proc.c (sys_spawnve): Quote args with wildcards.
19541
195422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19543
19544 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19545 __objc_* sections.
19546 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19547
195482007-12-05 Michael Albinus <michael.albinus@gmx.de>
19549
19550 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19551 Move check for Vdbus_registered_functions_table to
19552 xd_read_queued_messages.
19553 (xd_read_queued_messages): Protect xd_read_message calls by
19554 internal_condition_case_1.
19555
195562007-12-04 Michael Albinus <michael.albinus@gmx.de>
19557
19558 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19559 Qdbus_system_bus and Qdbus_session_bus, respectively.
19560 (Vdbus_intern_symbols): Remove.
19561 (Vdbus_registered_functions_table): New hash table.
19562 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19563 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19564 Rewrite in order to manage registered functions by hash table
19565 Vdbus_registered_functions_table.
19566
195672007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19568
19569 * xterm.c: Update URL to Window Manager Specification in comment.
19570
195712007-12-02 Michael Albinus <michael.albinus@gmx.de>
19572
19573 * config.in (HAVE_DBUS): Add.
19574
19575 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19576 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19577 (obj): Add $(DBUS_OBJ).
19578 (LIBES): Add $(DBUS_LIBS).
19579 (dbusbind.o): New target.
19580
19581 * dbusbind.c: New file.
19582
19583 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19584
19585 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19586 (Qdbus_event): New Lisp symbol.
19587 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19588 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19589 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19590
19591 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19592
195932007-12-01 Richard Stallman <rms@gnu.org>
19594
19595 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19596
195972007-11-30 Jason Rumney <jasonr@gnu.org>
19598
19599 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19600 (w32con_reset_terminal_modes): Clear screen buffer.
19601 (w32_face_attributes): Don't use color indexes that are out of range.
19602 Only reverse the default colors.
19603
19604 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19605 WINDOWSNT.
19606
19607 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19608
196092007-11-29 Jason Rumney <jasonr@gnu.org>
19610
19611 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19612 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19613 if the terminal colors are initialized.
19614 (unspecified_fg, unspecified_bg): Remove unused declarations.
19615
196162007-11-29 Andreas Schwab <schwab@suse.de>
19617
19618 * keyboard.c (apply_modifiers): Fix typo.
19619
196202007-11-29 Richard Stallman <rms@gnu.org>
19621
19622 * keymap.c (Fcurrent_local_map): Doc fix.
19623
196242007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19625
19626 * s/gnu-kfreebsd.h: New file.
19627
196282007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19629
19630 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19631 Don't cast redundantly.
19632
19633 * keyboard.c (KEY_TO_CHAR): New macro.
19634 (parse_modifiers, apply_modifiers): Accept integer arguments.
19635 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19636 for chars and symbol keys.
19637 After doing such remapping, apply function-key-map again.
19638
196392007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19640
19641 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19642 compiled anymore.
19643
196442007-11-26 Andreas Schwab <schwab@suse.de>
19645
19646 * process.c (list_processes_1): Fix indentation level of the
19647 command column.
19648
196492007-11-23 Andreas Schwab <schwab@suse.de>
19650
19651 * editfns.c (Fformat): Handle %c specially since it requires the
19652 argument to be of type int.
19653
196542007-11-23 Markus Triska <markus.triska@gmx.at>
19655
19656 * emacs.c (main): Call init_editfns before init_process, since
19657 init_process sets Vprocess_connection_type depending on OS release.
19658
196592007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19660
19661 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19662 (find_symbol_value): Use do_symval_forwarding.
19663
19664 * data.c (set_internal): Set the value in the `cons-cell' (for
19665 Buffer_Local_values) not only for frame-local variables.
19666
196672007-11-22 Andreas Schwab <schwab@suse.de>
19668
19669 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19670 values to sprintf.
19671 * keymap.c (Fsingle_key_description): Likewise.
19672 * print.c (print_object): Likewise.
19673
196742007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19675
19676 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19677 file for image is nil.
19678
196792007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19680
19681 * term.c: Include stdarg.h.
19682 (fatal): Implement using varargs.
19683 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19684
196852007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19686
19687 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19688 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19689 Update call to buffer_slot_type_mismatch.
19690 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19691 (buffer_slot_type_mismatch): Update.
19692 * buffer.c (buffer_local_types): Remove.
19693 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19694 (defvar_per_buffer): Set the type in the buffer_objfwd.
19695
196962007-11-21 Jason Rumney <jasonr@gnu.org>
19697
19698 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19699 CreateFileMapping returns NULL on failure.
19700
197012007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19702
19703 * search.c (Fset_match_data): Remove the `evaporate' feature.
19704 (unwind_set_match_data): Don't use the `evaporate' feature.
19705
197062007-11-21 Jason Rumney <jasonr@gnu.org>
19707
19708 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19709
19710 * w32console.c (w32con_write_glyphs): Remove unused variables.
19711
197122007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19713
19714 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19715
19716 * s/darwin.h (MULTI_KBOARD): Remove.
19717
19718 * macfns.c (x_create_tip_frame, Fx_create_frame)
19719 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19720
197212007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19722
19723 * buffer.c (Fbuffer_local_value): Remove redundant test.
19724 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19725 than in `current-buffer' to match the comment.
19726 Do the swap using swap_in_global_binding.
19727
19728 * data.c (store_symval_forwarding, set_internal):
19729 * eval.c (specbind): Remove dead code.
19730
19731 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19732 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19733 Since we do not want to see internal Lisp_*fwd objects here.
19734
197352007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19736
19737 * sysdep.c (init_system_name): Use getaddrinfo if available.
19738
19739 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19740 (x_scroll_bar_note_movement): start, end, with, height in struct
19741 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19742
197432007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19744
19745 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19746
197472007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19748
19749 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19750 This undoes Richard's change of 14-Oct-2002.
19751
19752 * alloc.c (allocate_other_vector):
19753 * lisp.h (allocate_other_vector): Remove.
19754
19755 * window.c (struct save_window_data): Move non-lisp data to the end
19756 and make it `int' rather than Lisp_Object.
19757 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19758 Done wrap/unwrap integer values.
19759 (Fset_window_configuration, compare_window_configurations):
19760 Update use of fields to their new types.
19761
19762 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19763 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19764 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19765 (SET_SCROLL_BAR_X_WINDOW): Remove.
19766 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19767 Access the new x_window field directly.
19768 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19769 Don't wrap/unwrap integers into Lisp_Objects.
19770 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19771 (x_scroll_bar_report_motion):
19772 Don't wrap/unwrap integers into Lisp_Objects.
19773 (x_term_init): Use SDATA.
19774 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19775 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19776 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19777 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19778 * xfns.c (x_set_background_color):
19779 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19780 Access the new x_window field directly.
19781
19782 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19783 (allocate_pseudovector): Make non-static.
19784
19785 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19786 (allocate_pseudovector): Declare.
19787 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19788
197892007-11-15 Andreas Schwab <schwab@suse.de>
19790
19791 * editfns.c (Fformat): Correctly format EMACS_INT values.
19792 Also take precision into account when formatting an integer.
19793
19794 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19795
197962007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19797
19798 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19799 (syms_of_keyboard): Defsubr it.
19800
19801 * data.c (swap_in_global_binding): Fix longstanding bug where
19802 store_symval_forwarding was not called with the right second argument,
19803 thus causing objfwd-ing from being dropped.
19804
198052007-11-14 Juanma Barranquero <lekktu@gmail.com>
19806
19807 * macfns.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_visual_class, Fx_display_save_under):
19812 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19813 (Fx_display_pixel_height, Fx_display_planes)
19814 (Fx_display_color_cells, Fx_server_max_request_size)
19815 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19816 (Fx_display_mm_height, Fx_display_mm_width)
19817 (Fx_display_backing_store, Fx_display_visual_class)
19818 (Fw32_select_font, Fx_display_save_under):
19819 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19820 (Fx_display_pixel_height, Fx_display_planes)
19821 (Fx_display_color_cells, Fx_server_max_request_size)
19822 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19823 (Fx_display_save_under): Fix typos in docstrings.
19824
198252007-11-14 Juanma Barranquero <lekktu@gmail.com>
19826
19827 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19828 corresponding to deleted entries; they are an implementation detail.
19829 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19830 Remove variables.
19831 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19832 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19833 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19834 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19835 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19836 (Fw32_define_rgb_color, Fw32_load_color_file)
19837 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19838 Fix typos in docstrings.
19839 (Fx_server_version): Reflow docstring.
19840 (Fw32_shell_execute): Doc fixes.
19841
198422007-11-13 Juanma Barranquero <lekktu@gmail.com>
19843
19844 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19845 if w32_parse_hot_key returned nil.
19846
198472007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19848
19849 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19850
198512007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19852
aac0c6e3
MR
19853 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19854
19855 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19856
19857 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19858 Remove W32_SCROLL_BAR_CLICK_EVENT.
19859
19860 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19861 Add MULTIMEDIA_KEY_EVENT.
19862
19863 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19864 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19865 (make_lispy_event) [WINDOWSNT]: Use it to translate
19866 MULTIMEDIA_KEY_EVENT.
19867
19868 * w32term.h (WM_APPCOMMAND): Define if not already.
19869 (GET_APPCOMMAND_LPARAM): Likewise.
19870
19871 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19872 WM_APPCOMMAND.
19873
19874 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19875 (syms_of_w32fns): Export and initialize it.
19876 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19877
198782007-11-09 Chong Yidong <cyd@stupidchicken.com>
19879
19880 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19881 twice.
19882
19883 * xdisp.c (handle_face_prop): Fix last change.
19884
198852007-11-09 Richard Stallman <rms@gnu.org>
19886
19887 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19888 not just for after-strings and before-strings.
19889 Call face_for_overlay_string and pass the overlay to it.
19890 (handle_display_prop): Determine whether property came from an overlay.
19891 Pass OVERLAY arg to handle_single_display_spec.
19892 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19893 (load_overlay_strings): Fill in it->string_overlays.
19894 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19895
19896 * xfaces.c (face_for_overlay_string): Function renamed from
19897 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19898
19899 * dispextern.h (struct it): New elt string_overlays.
19900 New elt from_overlay, also in stack.
19901 Rearrange a few elements.
19902 (face_for_overlay_string): Decl renamed from
19903 face_at_buffer_position_no_overlays, and add argument.
19904
199052007-11-09 Richard Stallman <rms@gnu.org>
19906
19907 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19908 to get the base face for an overlay string.
19909
19910 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19911
19912 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19913
19914 * xdisp.c (handle_stop): Move some code out of loop.
19915
199162007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19917
19918 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19919 Fix conversion from Lisp object to ATSUFontID.
19920
199212007-11-09 Jason Rumney <jasonr@gnu.org>
19922
19923 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19924
199252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19926
19927 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19928 Don't assume regions are aligned to page boundary.
19929 (print_load_command_name): Add LC_UUID if defined.
19930
199312007-11-09 Richard Stallman <rms@gnu.org>
19932
19933 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19934
199352007-11-07 Jason Rumney <jasonr@gnu.org>
19936
19937 * s/windows95.h: Remove.
19938
199392007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19940
19941 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19942 abort with a message on unhandled store_type values.
19943
199442007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19945
19946 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19947 Remove HAVE_X11R5 and HAVE_X11R4.
19948
199492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19950
19951 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19952
199532007-11-01 Johan Bockgård <bojohan@gnu.org>
19954
19955 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19956 Don't set s->stippled_p here, since it has already been set by
19957 x_set_glyph_string_gc from x_draw_glyph_string.
19958
199592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19960
19961 * sunfns.c: Remove file.
19962
19963 * m/sun386.h:
19964 * m/sun2.h:
19965 * m/sparc.h: Remove Sun windows code.
19966
199672007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19968
19969 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19970 (init_keyboard): Set current_kboard's window-system to nil.
19971 (tty_read_avail_input): Typo.
19972 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19973
199742007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19975
19976 * s/usg5-4.h:
19977 * s/usg5-3.h:
19978 * s/ptx.h:
19979 * m/is386.h:
19980 * m/ibmps2-aix.h:
19981 * Makefile.in: Remove all mentions of X10.
19982
19983 * dispnew.c (syms_of_display): Don't mention version 10.
19984
199852007-10-28 Juanma Barranquero <lekktu@gmail.com>
19986
19987 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19988 ($(BLD)/abbrev.$(O)): Remove.
19989
199902007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19991
19992 Rewrite abbrev.c in Elisp.
19993 * image.c (Qcount): Don't declare as extern.
19994 (syms_of_image): Initialize and staticpro `Qcount'.
19995 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19996 * emacs.c (main): Don't call syms_of_abbrev.
19997 * Makefile.in (obj): Remove abbrev.o.
19998 (abbrev.o): Remove.
19999 * abbrev.c: Remove.
20000
200012007-10-26 Martin Rudalics <rudalics@gmx.at>
20002
20003 * window.c (window_min_size_2): Don't count header-line.
20004
200052007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20006
20007 * frame.h (struct frame): Move all bit fields after the first bit
20008 field to take advantage of the available space. Group all the
20009 chars together to reduce wasted space due to padding.
20010
200112007-10-26 Juanma Barranquero <lekktu@gmail.com>
20012
20013 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20014
20015 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20016 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20017 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20018 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20019 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20020 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20021 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20022 (last_marked, mark_object_loop_halt): Make static.
20023
20024 * frame.c (syms_of_frame) <delete-frame-functions>:
20025 Fix typo in docstring.
20026
200272007-10-25 Juanma Barranquero <lekktu@gmail.com>
20028
20029 * w32.c (init_environment): Fix tiny memory leak.
20030 (w32_get_resource): Remove unused variable `ok'.
20031
200322007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20033
20034 Make `window-system' into a keyboard-local variable (rather than
20035 frame-local as done originally by multi-tty).
20036
20037 * keyboard.h (struct kboard): Add Vwindow_system.
20038 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20039 (mark_kboards): Mark Vwindow_system.
20040
20041 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20042 (init_display): Don't set the obsolete `window-system' frame-param.
20043
20044 * xterm.c (x_term_init):
20045 * w32term.c (w32_create_terminal):
20046 * term.c (init_tty): Set Vwindow_system.
20047 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20048 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20049
20050 * xfns.c (Fx_create_frame, x_create_tip_frame):
20051 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20052 * macfns.c (Fx_create_frame):
20053 Don't set the obsolete `window-system' frame-param.
20054
20055 * frame.h (Qwindow_system): Remove.
20056 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20057 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20058
200592007-10-24 Richard Stallman <rms@gnu.org>
20060
20061 * frame.c (x_figure_window_size): For fullscreen case,
20062 set USPosition | PPosition without clobbering rest of window_prompting.
20063
20064 * keyboard.c (Fcurrent_idle_time): Doc fix.
20065
20066 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20067
200682007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20069
20070 * process.c (unwind_request_sigio): Only define if __ultrix__.
20071
20072 * callproc.c (child_setup): Remove spurious *.
20073
20074 * lisp.h (Fget_text_property): Declare.
20075 (have_menus_p): Declare it here rather than in sys-dep header files.
20076 * macterm.h (have_menus_p):
20077 * msdos.h (have_menus_p):
20078 * xterm.h (have_menus_p): Remove.
20079
20080 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20081 (Fmake_variable_frame_local): Just check the variable's const-ness
20082 rather than checking nil or t.
20083
200842007-10-22 Jason Rumney <jasonr@gnu.org>
20085
20086 * w32fns.c: Include math.h.
20087 (w32_abort): Declaration moved to nt/config.nt.
20088
20089 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20090 (abort): Redefinition moved to nt/config.nt.
20091
20092 * m/windowsnt.h: Remove.
20093
200942007-10-22 Juanma Barranquero <lekktu@gmail.com>
20095
20096 * emacs.c (Fdump_emacs): Fix typo in message.
20097 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20098 <installation-directory>: Reflow docstring.
20099
201002007-10-22 Juri Linkov <juri@jurta.org>
20101
20102 * minibuf.c: Allow minibuffer default to be a list of default values.
20103 With empty input use the first element of this list as returned default.
20104 (string_to_object)
20105 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20106 (read_minibuf): If defalt is cons, set histstring to its car.
20107 (Fread_string): If default_value is cons, set val to its car.
20108 (Fread_buffer): If def is cons, use its car.
20109 (Fcompleting_read): If defalt is cons, set val to its car.
20110
201112007-10-21 Michael Albinus <michael.albinus@gmx.de>
20112
20113 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20114
201152007-10-20 Juanma Barranquero <lekktu@gmail.com>
20116
20117 * doc.c (Fdocumentation): Check for advice in all cases.
20118
201192007-10-19 Chong Yidong <cyd@stupidchicken.com>
20120
20121 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20122
201232007-10-19 Richard Stallman <rms@gnu.org>
20124
20125 * doc.c (Fdocumentation): Check for and handle an advised function.
20126
201272007-10-19 Juanma Barranquero <lekktu@gmail.com>
20128
20129 * process.c (Fset_process_filter): Doc fix.
20130
201312007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20134 which caused key-translation-map to applied repeatedly (thus breaking
20135 double-mode).
20136
201372007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20138
20139 * xselect.c (x_own_selection, x_handle_selection_clear)
20140 (x_clear_frame_selections):
20141 * w32menu.c (list_of_panes, list_of_items):
20142 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20143 * textprop.c (validate_plist, interval_has_all_properties)
20144 (interval_has_some_properties, interval_has_some_properties_list)
20145 (add_properties, text_property_list):
20146 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20147 * minibuf.c (Fassoc_string):
20148 * macselect.c (x_own_selection, x_clear_frame_selections)
20149 (Fx_disown_selection_internal):
20150 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20151 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20152
201532007-10-17 Chong Yidong <cyd@stupidchicken.com>
20154
20155 * process.c: Link to libs for calling res_init() if available.
20156 (Fmake_network_process): Call res_init() before getaddrinfo or
20157 gethostbyname, if possible.
20158
201592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20160
20161 * lread.c (read1): Set pvectype for char_tables.
20162
20163 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20164 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20165 Add type checks.
20166 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20167
20168 * alloc.c (free_misc): Use XMISCTYPE.
20169 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20170
201712007-10-17 Glenn Morris <rgm@gnu.org>
20172
20173 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20174 (syms_of_minibuf): Add Qcompletion_ignore_case.
20175 * dired.c (Qcompletion_ignore_case): Change to external.
20176 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20177 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20178 (Fread_file_name): Use it rather than intern'ing.
20179
20180 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20181 (Fread_coding_system): Ignore case of user input.
20182
201832007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20184
20185 * xdisp.c (handle_display_prop): Ignore display specs after
20186 replacing one when string text is being replaced.
20187 (handle_single_display_spec): Pretend as if characters with display
20188 property haven't been consumed only when buffer text is being replaced.
20189
201902007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20191
20192 * xfns.c (Fx_create_frame, Fx_display_list):
20193 * window.c (window_fixed_size_p, enlarge_window)
20194 (shrink_window_lowest_first):
20195 * macterm.c (init_font_name_table):
20196 * macfns.c (Fx_create_frame, Fx_display_list):
20197 * lread.c (close_load_descs):
20198 * keyboard.c (read_char_x_menu_prompt):
20199 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20200 * coding.c (code_convert_region_unwind): Test the type of an object
20201 rather than just !NILP before extracting data from it.
20202
20203 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20204
20205 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20206 (XMISCANY): New macro.
20207 (XMISCTYPE): Use it.
20208 (struct Lisp_Misc_Any): New type.
20209 (union Lisp_Misc): Use it.
20210 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20211 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20212 (find_symbol_value, set_internal, default_value, Fset_default)
20213 (Fmake_variable_buffer_local, Fmake_local_variable)
20214 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20215 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20216 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20217 * alloc.c (allocate_buffer): Set the size and tag.
20218 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20219 Use XMISCANY.
20220 (die): Follow the GNU convention for error messages.
20221 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20222 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20223 tag any more.
20224 (set_buffer_internal_1):
20225 * frame.c (store_frame_param):
20226 * eval.c (specbind):
20227 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20228
20229 * doc.c (Fsnarf_documentation): Simplify.
20230
202312007-10-14 Juanma Barranquero <lekktu@gmail.com>
20232
20233 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20234 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20235
202362007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20239
202402007-10-14 Juanma Barranquero <lekktu@gmail.com>
20241
20242 * eval.c (do_autoload): Don't save autoloads.
20243
20244 * data.c (Ffset): Save autoload of the function being set.
20245
202462007-10-07 John Paul Wallington <jpw@pobox.com>
20247
20248 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20249 parameter before setting up faces.
20250
202512007-10-13 Eli Zaretskii <eliz@gnu.org>
20252
20253 * ccl.c (Fregister_code_conversion_map):
20254 * keyboard.c (append_tool_bar_item): Reformat last change.
20255
20256 * lisp.h (eabs): Rename from `abs'. All callers changed.
20257
202582007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20259
20260 * buffer.c (add_overlay_mod_hooklist):
20261 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20262 * fontset.c (make_fontset):
20263 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20264 (append_tool_bar_item):
20265 * macmenu.c (grow_menu_items):
20266 * w32menu.c (grow_menu_items):
20267 * xmenu.c (grow_menu_items): Use larger_vector.
20268
202692007-10-13 Eli Zaretskii <eliz@gnu.org>
20270
20271 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20272 selected frame'' on MSDOS).
20273
202742007-10-12 Martin Rudalics <rudalics@gmx.at>
20275
20276 * frame.c (Qexplicit_name): New variable.
20277 (x_report_frame_params): Report it in parameter alist.
20278 (syms_of_frame): Intern and staticpro it.
20279
202802007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20281
20282 * macfns.c (x_create_tip_frame): Set terminal for frame.
20283
202842007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20285
20286 * frame.c (Qenvironment): Remove.
20287 (syms_of_frame) <Qenvironment>: Don't initialize.
20288 (Fdelete_frame): Don't treat the `environment' param specially.
20289 * frame.h (Qenvironment): Don't declare.
20290 * callproc.c (set_initial_environment): Don't set unused frame param.
20291
20292 * frame.c (Fframe_with_environment): Remove.
20293 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20294
20295 * lisp.h (Fframe_with_environment): Don't declare.
20296
202972007-10-10 Juanma Barranquero <lekktu@gmail.com>
20298
20299 * indent.c (indent_tabs_mode, last_known_column)
20300 (last_known_column_modified): Make static.
20301 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20302
203032007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20304
20305 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20306
203072007-10-09 Jason Rumney <jasonr@gnu.org>
20308
20309 * w32term.c (x_set_window_size): Disable code that attempts to tell
20310 Lisp code about a size change before it actually happens.
20311
203122007-10-09 Richard Stallman <rms@gnu.org>
20313
20314 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20315 return HANDLED_RETURN.
20316
203172007-10-08 Martin Rudalics <rudalics@gmx.at>
20318
20319 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20320 when there's an unread command event.
20321
20322 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20323 window autoselection act appropriately when leaving selected frame.
20324 (syms_of_frame): Initialize focus_follows_mouse.
20325 * frame.h (focus_follows_mouse): Extern it.
20326 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20327 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20328 * msdos.c (dos_rawgetc): Likewise.
20329 * w32term.c (w32_read_socket): Likewise.
20330 * xterm.c (handle_one_xevent): Likewise.
20331 * xdisp.c (syms_of_xdisp): In doc-string of
20332 mouse-autoselect-window mention focus-follows-mouse.
20333
203342007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20335
20336 * macterm.c (mac_load_query_font): Fix missing return value.
20337 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20338 Add BLOCK_INPUT.
20339
203402007-10-08 Richard Stallman <rms@gnu.org>
20341
20342 * xdisp.c (get_window_cursor_type): Implement documented behavior
20343 for cursor-in-non-selected-windows = t.
20344
203452007-10-08 Jason Rumney <jasonr@gnu.org>
20346
20347 * w32.c (w32_get_resource): Always close registry keys.
20348
203492007-10-08 Jason Rumney <jasonr@gnu.org>
20350
20351 * makefile.w32-in (LIBS): Add COMCTL32.
20352
20353 * w32fns.c (globals_of_w32fns): Init common controls.
20354
203552007-10-08 Richard Stallman <rms@gnu.org>
20356
20357 * image.c (our_memory_buffer): Rename from omfib_buffer.
20358
203592007-10-08 Richard Stallman <rms@gnu.org>
20360
20361 * buffer.c (Foverlays_at): Doc fix.
20362
203632007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20364
20365 * fns.c (Fplist_put): Preserve uneven tail data.
20366
203672007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20368
20369 * termhooks.h (enum event_kind): Remove trailing comma.
20370
20371 * frame.h (enum): Remove trailing comma.
20372
203732007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20374
20375 * w32proc.c (delete_child): Don't terminate threads of zombies.
20376
203772007-10-08 Martin Rudalics <rudalics@gmx.at>
20378
20379 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20380
20381 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20382 last-repeatable-command.
20383 (init_kboard): Initialize Vlast_repeatable_command.
20384 (command_loop_1): Set it to real_this_command unless that was
20385 bound to an input event.
20386 (mark_kboards): Mark it.
20387
203882007-10-08 Richard Stallman <rms@gnu.org>
20389
20390 * eval.c (condition-case): Doc fix.
20391
203922007-10-08 Masatake YAMATO <jet@gyve.org>
20393
20394 * xfaces.c (tty_supports_face_attributes_p): Fix code
20395 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20396 was copied and not edited.
20397
203982007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20399
20400 Add new `input-decode-map' keymap and use it for terminal
20401 escape sequences.
20402 * keyboard.h (struct kboard): Add Vinput_decode_map.
20403 Remove Vlocal_key_translation_map.
20404 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20405 (init_kboard): Init input-decode-map.
20406 Replace local-key-translation-map back with key-translation-map.
20407 (syms_of_keyboard): Declare input-decode-map.
20408 Remove local-key-translation-map. Update docstrings.
20409 (mark_kboards): Mark Vinput_decode_map.
20410 Don't mark Vlocal_key_translation_map.
20411 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20412 Replace local-key-translation-map back with key-translation-map.
20413 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20414 Bind in input-decode-map rather than function-key-map.
20415
20416 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20417 This was made redundant by the previous introduction of XSETPVECTYPE.
20418
204192007-10-09 Richard Stallman <rms@gnu.org>
20420
20421 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20422
204232007-09-29 Richard Stallman <rms@gnu.org>
20424
20425 * eval.c (internal_condition_case_2, internal_condition_case_1)
20426 (internal_condition_case): Reenable abort if x_catching_errors ()
20427 to see if that really happens and why.
20428
204292007-10-06 Andreas Schwab <schwab@suse.de>
20430
20431 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20432
204332007-10-04 Juanma Barranquero <lekktu@gmail.com>
20434
20435 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20436
204372007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20438
20439 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20440
204412007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20442
20443 * window.h (struct window):
20444 * window.c (struct save_window_data, struct saved_window):
20445 * termhooks.h (struct terminal):
20446 * process.h (struct Lisp_Process):
20447 * frame.h (struct frame):
20448 * buffer.h (struct buffer):
20449 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20450 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20451 The size field of (pseudo)vectors is now unsigned.
20452 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20453
20454 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20455 Turn `count' into an integer.
20456
20457 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20458 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20459 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20460 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20461 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20462
20463 * alloc.c (allocate_pseudovector): New fun.
20464 (ALLOCATE_PSEUDOVECTOR): New macro.
20465 (allocate_window, allocate_terminal, allocate_frame)
20466 (allocate_process): Use it.
20467 (mark_vectorlike): New function.
20468 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20469 (mark_terminals): Use it.
20470 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20471 (Fmake_byte_code): Use XSETPVECTYPE.
20472
20473 * frame.c (Fframe_parameters): Minor simplification.
20474
20475 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20476
20477 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20478
20479 * buffer.c (Fget_buffer_create, init_buffer_once):
20480 * lread.c (defsubr):
20481 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20482
20483 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20484 defined differently in the m/*.h files.
20485 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20486 (XSETPVECTYPE): New macro.
20487 (XSETPSEUDOVECTOR): Use it.
20488
20489 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20490 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20491
20492 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20493 * lread.c (defvar_per_buffer):
20494 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20495
20496 * window.c (candidate_window_p): Only consider as visible frames that
20497 are on the same terminal.
20498
20499 * m/ibms390x.h (MARKBIT): Remove unused macro.
20500
205012007-10-01 Juanma Barranquero <lekktu@gmail.com>
20502
20503 * lread.c (Fload): Fix typo in docstring.
20504
205052007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20506
20507 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20508 of a non-zero value can't yield zero.
20509
205102007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * term.c (term_clear_mouse_face, term_mouse_highlight)
20513 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20514
20515 * print.c (safe_debug_print): Use XHASH.
20516
20517 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20518 Lisp elements such as tags.
20519 (XHASH): New macro.
20520 (EQ): Use it.
20521 (SREF, SSET, STRING_COPYIN): Use SDATA.
20522 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20523
20524 * alloc.c (mark_terminal): Remove left-over declaration.
20525 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20526 (allocate_vectorlike): Remove type argument. Adjust callers.
20527 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20528 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20529
20530 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20531 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20532 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20533 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20534 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20535 Use them.
20536
20537 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20538 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20539 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20540
205412007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20542
20543 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20544 loaded by default.
20545
205462007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20549 on this tty.
20550 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20551
20552 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20553 Update all users.
20554 (handle_one_term_event): Use Gpm_DrawPointer.
20555 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20556 Signal errors instead of returning nil. Always return nil.
20557 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20558 Make it a noop if gpm-mouse was not activated.
20559 (syms_of_term): Update names.
20560
205612007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20562
20563 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20564 (init_sys_modes): Check that gpm_tty is the current tty.
20565
20566 * alloc.c (allocate_terminal): Set the vector size to only count the
20567 lisp fields. Initialize those to nil.
20568 (mark_object): Don't treat terminals specially.
20569 (mark_terminal): Remove.
20570 (mark_terminals): Use mark_object instead.
20571
20572 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20573 the GC to the beginning.
20574
20575 * indent.h:
20576 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20577
20578 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20579
205802007-09-25 Jason Rumney <jasonr@gnu.org>
20581
20582 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20583
20584 * w32console.c (create_w32cons_output): Remove.
20585
20586 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20587
20588 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20589 (reset_sys_modes): Use reset_terminal_modes_hook.
20590
205912007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20592
20593 * eval.c (do_autoload): Don't output any message.
20594
205952007-09-24 Juri Linkov <juri@jurta.org>
20596
20597 * emacs.c (standard_args): Change priority of "--no-splash"
20598 from 40 to 3. Add "--no-desktop" with the same priority.
20599
206002007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20601
20602 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20603 and optimize the case where they are all 1.
20604
206052007-09-23 Johannes Weiner <hannes@saeurebad.de>
20606
20607 * lisp.h (abs): Define if not defined.
20608 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20609 Don't define `abs', since it's defined in lisp.h.
20610
206112007-09-22 Eli Zaretskii <eliz@gnu.org>
20612
20613 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20614 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20615 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20616 (init_tty): Use DEV_TTY instead of "/dev/tty".
20617 [WINDOWSNT]: No need to protect from NAME arg being null.
20618
206192007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20620
20621 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20622 up the tty state.
20623
206242007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20625
20626 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20627 (gpm_tty): Change its type.
20628 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20629 (gpm_tty): Change its type and initialize it.
20630 (Fterm_open_connection): Check the frame is indeed a tty.
20631 Use the new gpm_tty.
20632 (Fterm_close_connection): Use the new gpm_tty.
20633 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20634 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20635
206362007-09-21 Juanma Barranquero <lekktu@gmail.com>
20637
20638 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20639 underline_color, to draw strike-through.
20640
206412007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20642
20643 * lisp.h (allocate_terminal): Declare.
20644
20645 * window.c (candidate_window_p): Consider frames that are being placed
20646 by the user as somewhere between visible and iconified.
20647 (window_loop): Prefer windows on the current frame.
20648 (Fselect_window): Move the use of select-frame to the beginning so we
20649 can just delegate all the work (it'll call us back anyway).
20650
20651 * frame.c (Qdisplay_environment_variable):
20652 * frame.h (Qdisplay_environment_variable): Delete.
20653
20654 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20655 of the first arg, since that value may be a union.
20656
20657 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20658 parameter rather than Qdisplay_environment_variable. If all else
20659 fails, look for DISPLAY in initial-environment.
20660
206612007-09-21 Glenn Morris <rgm@gnu.org>
20662
20663 * Makefile.in (emacstool): Remove target.
20664 (lisp, shortlisp): Remove termdev.elc.
20665
206662007-09-21 Markus Triska <markus.triska@gmx.at>
20667
20668 * xterm.c (x_delete_display): Compile session management conditionally.
20669
206702007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20671
20672 * callproc.c (getenv_internal_1): New function.
20673 (getenv_internal): Use it.
20674 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20675
20676 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20677 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20678 (Fset_terminal_parameter): Work with dead terminals as well.
20679 (Fmodify_terminal_parameters): Remove.
20680
20681 * terminal.c (get_terminal): Handle terminals.
20682 Make sure the terminal returned is live.
20683 (create_terminal): Use allocate_terminal.
20684 (mark_terminals): Move to alloc.c.
20685 (delete_terminal): Use terminal->name as liveness status.
20686 NULL out fields after freeing their contents.
20687 Don't deallocate the object.
20688 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20689 rather than an int.
20690 (Fterminal_live_p): Accept non-integer arguments.
20691 (Fterminal_list): Return terminal objects rather than an ints.
20692
20693 * alloc.c (enum mem_type): New member for `terminal' objects.
20694 (allocate_terminal): New function.
20695 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20696 Handle terminals.
20697 (mark_terminal): New fun.
20698 (mark_terminals): Move from terminal.c.
20699
20700 * term.c (get_tty_terminal): Don't treat output_initial specially.
20701 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20702 (delete_tty): Use terminal->name as liveness status.
20703
20704 * termhooks.h (struct terminal): Make it into a pseudovector.
20705 Remove `deleted' replaced by checking `name's nullness.
20706
20707 * print.c (print_object): Handle terminals.
20708
20709 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20710 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20711
20712 * frame.c (make_terminal_frame):
20713 * keyboard.c (tty_read_avail_input):
20714 * w32term.c (x_delete_terminal):
20715 * xfns.c (Fx_create_frame, x_create_tip_frame):
20716 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20717
207182007-09-20 Glenn Morris <rgm@gnu.org>
20719
20720 * process.c (Fmake_network_process): Doc fix.
20721
207222007-09-19 Jason Rumney <jasonr@gnu.org>
20723
20724 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20725
207262007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20727
20728 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20729 Fix a C warning regarding variable constness.
20730
20731 * xterm.c (handle_one_xevent): Fix a C warning.
20732
207332007-09-18 Jason Rumney <jasonr@gnu.org>
20734
20735 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20736
207372007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20738
20739 * gtkutil.c (gdpy_def): New variable.
20740 (xg_initialize): Initialize gdpy_def.
20741 (xg_display_close): If no other display exists, set gdpy_def to a
20742 new connection.
20743
207442007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20745
20746 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20747 when we have no file name for the icon.
20748 (xg_tool_bar_expose_callback): Remove.
20749 (xg_create_tool_bar): Don't connect expose signal to
20750 xg_tool_bar_expose_callback.
20751 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20752
207532007-09-16 Andreas Schwab <schwab@suse.de>
20754
20755 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20756 values instead of zapping them.
20757
207582007-09-14 Glenn Morris <rgm@gnu.org>
20759
20760 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20761 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20762 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20763 scope and rename to omfib_buffer for clarity.
20764 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20765
207662007-09-14 Kenichi Handa <handa@m17n.org>
20767
20768 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20769
207702007-09-13 Jason Rumney <jasonr@gnu.org>
20771
20772 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20773
20774 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20775
20776 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20777 (mac_term_init): Call here instead, passing rif.
20778
207792007-09-13 Glenn Morris <rgm@gnu.org>
20780
20781 * s/hpux.h: No longer define `static' as nothing.
20782
207832007-09-13 Johan Bockgård <bojohan@gnu.org>
20784
20785 * callint.c (Fcall_interactively): Remove unused var `fun'.
20786
207872007-09-12 Romain Francoise <romain@orebokech.com>
20788
20789 * window.c (prefer_window_split_horizontally, display_buffer):
20790 Revert 2007-09-08 change.
20791
207922007-09-12 Glenn Morris <rgm@gnu.org>
20793
20794 * alloca.c: Remove file.
20795 * Makefile.in (alloca): Do not undef.
20796 (allocaobj, alloca.o): Remove.
20797 (otherobj): Remove allocaobj.
20798 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20799 * regex.c (C_ALLOCA): Remove all references and code that was only
20800 used when this was defined.
20801 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20802 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20803 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20804
20805 * Makefile.in (SOURCES, unlock, relock): Delete.
20806
20807 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20808 (menu_grab_callback): All uses changed.
20809
20810 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20811 (x_reply_selection_request): All uses changed.
20812
208132007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20814
20815 * lread.c (load_warn_old_style_backquotes): Change message to look
20816 better when it appears in the middle of byte-compiler messages.
20817
208182007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20819
20820 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20821
20822 * xterm.c (x_create_terminal): Add comment.
20823
20824 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20825
208262007-09-10 Richard Stallman <rms@gnu.org>
20827
20828 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20829
208302007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20831
20832 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20833 (DEFUN): Document `intspec', use it instead of `prompt'.
20834
20835 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20836
20837 * data.c (Finteractive_form): If the interactive specification starts
20838 with a `(', use it as a Lisp form.
20839
20840 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20841 name and file modes.
20842
20843 * callint.c (Fcall_interactively): Comment fixes.
20844
208452007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20846
20847 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20848 and compiled functions.
20849
208502007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20851
20852 * window.c (prefer_window_split_horizontally): New variable.
20853 (display_buffer): Consider splitting window horizontally depending
20854 on prefer_window_split_horizontally.
20855
208562007-09-08 Eli Zaretskii <eliz@gnu.org>
20857
20858 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20859
208602007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20861
20862 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20863
20864 * frame.c (x_set_frame_parameters): Check number is positive before
20865 using XFASTINT.
20866
20867 * window.c (freeze_window_start): Don't presume selected_window holds
20868 a window object.
20869 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20870
208712007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20872
20873 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20874
208752007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20876
20877 * window.c (Vsplit_window_preferred_function): New var.
20878 (Fdisplay_buffer): Use it.
20879 (syms_of_window): Export, and initialize it.
20880
208812007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20882
20883 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20884
208852007-09-06 Glenn Morris <rgm@gnu.org>
20886
20887 * gtkutil.c (menu_grab_callback) <cnt>:
20888 * xselect.c (x_reply_selection_request) <cnt>: Move static
20889 variable to file scope.
20890
208912007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20892
20893 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20894 consistent values of selected_frame and selected_window.
20895
208962007-09-04 Jason Rumney <jasonr@gnu.org>
20897
20898 * w32console.c (initialize_w32_display): Zero unused hooks.
20899
209002007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20901
20902 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20903 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20904
209052007-09-04 Jason Rumney <jasonr@gnu.org>
20906
20907 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20908 in w32console.c. Set up input. Remove XXX comments that have been
20909 confirmed as correct.
20910
20911 * s/ms-w32.h (MULTI_KBOARD): Define.
20912
20913 * w32console.c (one_and_only_w32cons): Remove.
20914 (initialize_w32_display): Take terminal argument.
20915
20916 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20917 initialize_w32_display.
20918 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20919
20920 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20921
20922 * keyboard.c (discard_mouse_events): Discard it.
20923 (make_lispy_event): Translate it to a lisp event.
20924 (lispy_wheel_names): Add wheel-left and right events.
20925 (syms_of_keyboard): Enlarge wheel_syms.
20926
20927 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20928 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20929
20930 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20931
20932 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20933 from WM_MOUSEHWHEEL.
20934 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20935
20936 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20937 terminal.
20938
20939 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20940 keyboard for the terminal.
20941
209422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20943
20944 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20945 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20946 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20947 and resume-tty-function to resume-tty-hook.
20948 (Fsuspend_tty, Fresume_tty): Use new names.
20949
209502007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20951
20952 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20953 if it starts with "n:".
20954
209552007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20956
20957 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20958
209592007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20960
20961 * frame.h:
20962 * frame.c (Qterm_environment_variable): Remove.
20963 (syms_of_frame): Don't init and staticpro it.
20964
20965 * callproc.c (getenv_internal): Remove special case for $TERM.
20966
20967 * callproc.c (Vinitial_environment): New variable.
20968 (set_initial_environment): Initialize it.
20969 (syms_of_callproc): Declare it.
20970 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20971 TERM under which a process runs is never related to the TERM in which
20972 Emacs is running.
20973
209742007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20975
20976 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20977 * s/darwin.h: ... do it here.
20978
209792007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20980
20981 * lisp.h (set_initial_environment): Rename from set_global_environment.
20982
20983 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20984 removed by mistake on the multi-tty branch.
20985
20986 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20987 (Fmodify_frame_parameters): Return a value.
20988
20989 * image.c (png_load): Comment-out var only used in commented-out code.
20990
20991 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20992 before passing it to mark_object.
20993
20994 * xfaces.c (internal_resolve_face_name): Return a value.
20995 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20996
20997 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20998 (x_icon): Comment-out var only used in commented-out code.
20999
210002007-08-29 Romain Francoise <romain@orebokech.com>
21001
21002 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21003 QUIT hasn't been provided.
21004
210052007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21006
21007 * callproc.c (child_setup, getenv_internal): Use the
21008 display-environment-variable and term-environment-variable frame params.
21009 (set_initial_environment): Initialise Vprocess_environment.
21010
21011 * config.in: Disable multi-keyboard support on a mac.
21012
21013 * frame.c (Qterm_environment_variable)
21014 (Qdisplay_environment_variable): New variables.
21015 (syms_of_frame): Intern and staticpro them.
21016 (Fmake_terminal_frame): Disable output method test.
21017
21018 * frame.h: Declare them here.
21019
21020 * macfns.c (x_set_mouse_color): Get rif from the frame.
21021 (x_set_tool_bar_lines): Don't use updating_frame.
21022 (mac_window): Add 2 new parameters for consistency with other systems.
21023 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21024 frame parameters following what is done in X11 and w32. Don't use
21025 FRAME_MAC_DISPLAY_INFO.
21026 (Fx_open_connection, start_hourglass): Remove window-system check.
21027 (x_create_tip_frame): Get the keyboard from the terminal.
21028
21029 * macmenu.c: Reorder includes.
21030 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21031
21032 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21033 terminal parameter.
21034 (x_clear_frame): Add a frame parameter.
21035 (note_mouse_movement): Get rif from the frame.
21036 (mac_term_init): Initialize the terminal.
21037 (mac_initialize): Make static and move terminal initialization ...
21038 (mac_create_terminal): ... to this new function.
21039
21040 * macterm.h (struct mac_display_info): Add terminal.
21041 (mac_initialize): Delete declaration.
21042
21043 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21044
21045 * sysdep.c: Comment out text after #endif.
21046
21047 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21048 is defined. Better initialize ttys in windows. Use terminal
21049 specific mouse_position_hook.
21050
21051 * termhooks.h (union display_info): Add mac_display_info.
21052
21053 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21054 Set the default minibuffer frame, window_system and the rest of the
21055 frame parameters following what is done in X11.
21056
21057 * w32term.c (w32_initialize): Make static.
21058
21059 * xselect.c (x_handle_selection_clear): Only access
21060 terminal->kboard when MULTI_KBOARD is defined.
21061
21062 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21063 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21064
210652007-08-29 Jason Rumney <jasonr@gnu.org>
21066
21067 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21068 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21069
21070 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21071 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21072
21073 * keyboard.c (restore_kboard_configuration): Only define when
21074 MULTI_KBOARD defined.
21075
21076 * makefile.w32-in: Update dependancies from Makefile.in.
21077 (OBJ1): Add terminal.$(O)
21078
21079 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21080 Don't define function body.
21081 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21082
21083 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21084
21085 * w32.c (request_sigio, unrequest_sigio): Remove.
21086
21087 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21088 (w32con_clear_frame, w32con_clear_end_of_line)
21089 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21090 (w32con_delete_glyphs, w32con_set_terminal_window)
21091 (scroll_line, w32_sys_ring_bell): Add frame arg.
21092 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21093 Add terminal arg.
21094 (PICK_FRAME): Remove.
21095 (w32con_write_glyphs): Use frame specific terminal coding.
21096 (one_and_only_w32cons): New global variable.
21097 (initialize_w32_display): Use it for storing hooks.
21098 (create_w32cons_output): New function.
21099
21100 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21101 arg a frame.
21102
21103 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21104 Set window_system.
21105 (x_set_tool_bar_lines): Don't use updating_frame.
21106 (Fx_create_frame): Set terminal and ref count.
21107 (Fx_open_connection): Remove window-system check.
21108
21109 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21110
21111 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21112 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21113 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21114 Add frame arg.
21115 (x_delete_terminal, w32_create_terminal): New functions.
21116 (w32_term_init): Create a terminal.
21117 (w32_initialize): Move terminal specific initialization to
21118 w32_create_terminal.
21119
21120 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21121 (w32_clear_rect, w32_clear_area): Use background from frame.
21122 (w32_display_info): Add terminal.
21123 (w32_sys_ring_bell, x_delete_display): Declare here.
21124
21125 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21126
21127 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21128
211292007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21130
21131 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21132 Fix get_named_tty calls for the controlling tty.
21133
211342007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21135
194d44e7 21136 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21137
211382007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21139
21140 * term.c (tty_insert_glyphs): Add missing first parameter.
21141
211422007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21143
21144 * buffer.c (Fbuffer_list, Fbury_buffer):
21145 Take frame->buried_buffer_list into account.
21146
21147 * cm.c (current_tty): New variable, for cmputc().
21148 (cmputc): Use it.
21149 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21150 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21151 (cmgoto): Add tty parameter. Pass it on to calccost().
21152 Use emacs_tputs() instead of tputs().
21153
21154 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21155 tputs().
21156 (current_tty): New variable, for cmputc().
21157 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21158
21159 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21160 (internal_condition_case, internal_condition_case_1)
21161 (internal_condition_case_2): Don't abort when x_catching_errors.
21162
21163 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21164 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21165 prevent crashes caused by bogus longjmps in read_char.
21166
21167 * keymap.h (Fset_keymap_parent): Add EXFUN.
21168
21169 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21170 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21171 Remove redundant definition.
21172
21173 * macfns.c (x_set_mouse_color, x_make_gc):
21174 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21175
21176 * w32term.c (x_free_frame_resources):
21177 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21178 (w32_initialize): Use the accessor macros for terminal characteristics.
21179
21180 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21181 Use the accessor macros for terminal characteristics.
21182 * msdos.c (internal_terminal_init): Use the accessor macros for
21183 terminal characteristics.
21184 (ScreenVisualBell, internal_terminal_init):
21185 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21186
21187 * termopts.h (no_redraw_on_reenter): Declare.
21188
21189 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21190 (mark_terminals, mark_ttys): Declare.
21191 (Fgarbage_collect): Call them.
21192 (mark_object): Mark buried_buffer_list.
21193
21194 * prefix-args.c: Include stdlib.h for exit.
21195
21196 * syssignal.h: Add comment.
21197
21198 * indent.c: Include stdio.h.
21199
21200 * window.h (Vinitial_window_system): Declare.
21201 (Vwindow_system): Delete declaration.
21202
21203 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21204
21205 * image.c (lookup_image): Don't initialize `c' until the xasserts
21206 have been run.
21207
21208 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21209 FRAME_FOREGROUND_PIXEL.
21210
21211 * print.c (print_preprocess): Don't lose print_depth levels while
21212 iterating.
21213
21214 * widget.c (update_from_various_frame_slots):
21215 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21216
21217 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21218 frames.
21219 (window_internal_height): Remove bogus make_number call.
21220 (init_window_once): Call make_terminal_frame with two zero parameters.
21221
21222 * fileio.c (Fread_file_name): Update comment.
21223
21224 * callint.c (Fcall_interactively):
21225 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21226 Make sure it is correctly unwound.
21227
21228 * xsmfns.c (x_session_close): New function.
21229
21230 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21231 Delete declarations.
21232
21233 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21234 (x_output): Remove background_pixel and foreground_pixel fields.
21235 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21236 (x_delete_device, x_session_close): Declare.
21237
21238 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21239 (read_filtered_event): Call `read_char' with a local
21240 `wrong_kboard_jmpbuf'.
21241
21242 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21243 Don't call single_kboard_state. Use FRAME_RIF.
21244
21245 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21246 systems.
21247
21248 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21249 (Fframe_with_environment, Fset_input_meta_mode)
21250 (Fset_quit_char): EXFUN.
21251 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21252 (init_sys_modes, reset_sys_modes): Update prototypes.
21253 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21254
21255 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21256 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21257 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21258 Delete declarations.
21259 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21260 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21261 New declarations.
21262
21263 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21264 already does that during init_display(). Call syms_of_keymap
21265 before syms_of_keyboard. Call `syms_of_terminal'.
21266 Call set_initial_environment, not set_process_environment.
21267 (shut_down_emacs): Call reset_all_sys_modes() instead of
21268 reset_sys_modes().
21269
21270 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21271 (internal_resolve_face_name, resolve_face_name_error): New functions.
21272 (resolve_face_name): Protect against loops and errors thrown by Fget.
21273 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21274 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21275
21276 * scroll.c: Replace CURTTY() with local variables throughout the
21277 file (where applicable).
21278 (calculate_scrolling, calculate_direct_scrolling)
21279 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21280 characteristics.
21281
21282 * keymap.c (Vfunction_key_map): Remove.
21283 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21284 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21285 (Vkey_translation_map): Remove.
21286 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21287 (Fdescribe_buffer_bindings)
21288 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21289 Update for terminal-local key-translation-map.
21290
21291 * Makefile.in (callproc.o): Update dependencies.
21292 (lisp, shortlisp): Add termdev.elc.
21293 (obj): Add terminal.o.
21294 (terminal.o): Add dependencies.
21295 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21296 (data.o, fns.o): Add termhooks.h dependency.
21297 (SOME_MACHINE_LISP): Add dnd.elc.
21298 (minibuf.o): Fix typo.
21299 Update dependencies.
21300
21301 * data.c (do_symval_forwarding, store_symval_forwarding)
21302 (find_symbol_value): Use the selected frame's keyboard, not
21303 current_kboard.
21304
21305 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21306 Vwindow_system.
21307
21308 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21309 Fmenu_bar_open.
21310 (syms_of_xmenu): Update defsubr.
21311 (mouse_position_for_popup, Fx_popup_menu)
21312 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21313 (set_frame_menubar, free_frame_menubar)
b97439ce 21314 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21315 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21316 an X frame.
21317
21318 * xselect.c (x_own_selection): Abort if not an X frame.
21319 (some_frame_on_display): Check if it is an X frame.
21320 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21321
21322 * coding.c: Include frame.h and termhooks.h.
21323 (terminal_coding, keyboard_coding): Delete.
21324 (Fset_terminal_coding_system_internal)
21325 (Fset_keyboard_coding_system_internal)
21326 (Fkeyboard_coding_system)
21327 (Fterminal_coding_system): Add a terminal parameter.
21328 Get terminal_coding from the terminal.
21329 (init_coding_once): Don't call setup_coding_system here.
21330
21331 * dispextern.h (set_scroll_region, turn_off_insert)
21332 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21333 (tty_clear_end_of_line, tty_setup_colors)
21334 (delete_tty, updating_frame)
21335 (produce_special_glyphs, produce_glyphs, write_glyphs)
21336 (insert_glyphs): Remove.
21337 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21338 (tty_turn_off_highlight, get_tty_size): Add declaration.
21339 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21340
21341 * frame.h (enum output_method): Add output_initial.
21342 (struct x_output): Delete.
21343 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21344 Access foreground_pixel and background_pixel directly from the frame.
21345 (tty_display): Delete.
21346 (struct frame): Add buried_buffer_list, foreground_pixel,
21347 background_pixel and terminal. Delete kboard.
21348 (union output_data): Add tty.
21349 (FRAME_KBOARD): Get the kboard from the terminal.
21350 (FRAME_INITIAL_P): New macro.
21351 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21352 (Qterm_environment_variable, Qdisplay_environment_variable)
21353 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21354 New declarations.
21355
21356 * termchar.h (tty_output, tty_display_info): New structures.
21357 (tty_list): Declare.
21358 (FRAME_TTY, CURTTY): New macros.
21359 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21360 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21361 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21362 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21363
21364 * callproc.c: Include frame.h and termhooks.h, for terminal
21365 parameters.
21366 (add_env): New function.
21367 (child_setup): Use it.
21368 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21369 (getenv_internal): Fix get_terminal_param call.
21370 (Fgetenv_internal, egetenv): Update doc.
21371 (syms_of_callproc): Initialize Vprocess_environment to nil.
21372 Register and initialize them. Remove obsolete defvars. Update doc
21373 strings.
21374 (child_setup): Handle Vlocal_environment_variables.
21375 (getenv_internal): Add terminal parameter.
21376 Handle Vlocal_environment_variables.
21377 (Fgetenv_internal): Add terminal parameter.
21378 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21379 environment in a frame (not terminal) parameter. Update doc strings.
21380 (set_initial_environment): Rename from set_global_environment.
21381 Store Emacs environment in initial frame parameter.
21382
21383 * xdisp.c (redisplay_internal): Update references to
21384 `previous_terminal_frame'.
21385 (display_mode_line, Fformat_mode_line): Replace calls to
21386 `push_frame_kboard' with `push_kboard'.
21387 (get_glyph_string_clip_rects): Add extra parentheses and
21388 braces to prevent compiler warnings.
21389 (calc_pixel_width_or_height): Add xassert to check that the
21390 frame is alive. Don't call `lookup_image' on a termcap frame.
21391 (message2_nolog, message3_nolog, redisplay_internal)
21392 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21393 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21394 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21395 (Fx_display_pixel_width, Fx_display_pixel_height)
21396 (Fx_display_planes, Fx_display_color_cells)
21397 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21398 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21399 (Fx_display_backing_store, Fx_display_visual_class)
21400 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21401 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21402
21403 * xfns.c (x_set_foreground_color x_set_background_color)
21404 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21405 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21406 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21407 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21408 terminal that is being deleted.
21409 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21410 frame parameter, and make sure it overrides any user-supplied setting.
21411 (Fx_close_connection, Fx_synchronize): Unify argument names with
21412 the rest of the DEFUNs.
21413
21414 * dispnew.c (Fsend_string_to_terminal): Update call to
21415 `get_tty_terminal'.
21416 (Fredraw_frame, Fsend_string_to_terminal)
21417 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21418 FRAME_TERMCAP_P and FRAME_TTY.
21419 (window_change_signal): Don't believe width/height values that are
21420 impossibly small.
21421 (Vinitial_window_system): Rename from Vwindow_system.
21422 (termscript, Wcm, rif): Delete.
21423
21424 * termhooks.h (struct terminal): New struct containing the
21425 previously global text display hooks and new members NAME,
21426 DELETED and PARAM_ALIST.
21427 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21428 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21429 (FRAME_RIF): New macros.
21430 (get_terminal_param, get_device): New declarations.
21431 (termscript): Delete declaration.
21432
21433 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21434 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21435 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21436 FRAME_FOREGROUND_PIXEL.
21437 (x_fully_uncatch_errors): Disable definition.
21438 (x_scroll_bar_expose): Fix reference to foreground pixel.
21439 (XTread_socket): Disable loop on all X displays.
21440 (x_delete_terminal): Don't set terminal->deleted and let
21441 delete_terminal delete the frames on the terminal.
21442 (x_delete_display): Doc update to reflect changes in
21443 delete_terminal.
21444 (x_display_info) <terminal>: Move member earlier in the struct.
21445 (deleting_tty): Remove old variable.
21446 (Fsuspend_tty): Call clear_tty_hooks.
21447 (Fresume_tty, init_tty): Call set_tty_hooks.
21448 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21449 errors on X frames.
21450 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21451 (handle_one_xevent): Initialize `f' to NULL.
21452 (x_delete_terminal, x_create_terminal): New functions.
21453 (XTset_terminal_modes, XTreset_terminal_modes)
21454 (XTread_socket, x_connection_closed, x_term_init)
21455 (x_term_init, x_delete_display): Add terminal parameter.
21456 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21457 X connections.
21458
21459 * frame.c: Include termchar.h.
21460 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21461 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21462 (Qdisplay_environment_variable): New vars.
21463 (Fframep): Deal with output_initial.
21464 (Fframe-live-p): Doc fix.
21465 (Fwindow-system): New function.
21466 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21467 (make_terminal_frame): Don't create frames on a terminal that is
21468 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21469 (store_frame_param): Check for found_for_frame before calling XFRAME.
21470 (Fmake_terminal_frame): Handle NULL tty names correctly.
21471 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21472 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21473 frames to refer to a deleted frame in their 'environment parameter.
21474 (Fframe_with_environment): New function.
21475 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21476 (get_future_frame_param): New function.
21477 (Fmake_terminal_frame): Use it.
21478 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21479
21480 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21481 * sysdep.c (reset_sys_modes): Update for renames.
21482
21483 * keyboard.c (tty_read_avail_input): New function.
21484 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21485 (syms_of_keyboard): Defsubr them.
21486 (Fset_input_meta_mode, Fset_quit_char): New functions.
21487 (Fset_input_mode): Split to above functions.
21488 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21489 parameter. Use it in call to `read_char'.
21490 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21491 Set wrong_kboard_jmpbuf correctly in recursive calls.
21492 Use current_kboard to access Vkeyboard_translate_table.
21493 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21494 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21495 Update longjmp invocations. Remember the original current_kboard,
21496 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21497 changes it. Comment out unnecessary calls to
21498 `record_single_kboard_state' and `any_kboard_state'.
21499 Update recursive calls.
21500 (wrong_kboard_jmpbuf): Remove global variable.
21501 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21502 Handle deleted interrupted_kboards correctly; that is a legal
21503 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21504 and read_char calls. Abort if interrupted_kboard died in read_char.
21505 (any_kboard_state, single_kboard_state)
21506 (push_frame_kboard): Remove function.
21507 (pop_kboard): Switch out of single_kboard mode if the kboard has
21508 been deleted. Remove unused variable. Help debugging by not
21509 changing current_kboard unnecessarily. Set current_kboard to the
21510 kboard of the selected frame when the stored kboard object has
21511 been deleted before pop_kboard.
21512 (temporarily_switch_to_single_kboard): Change first parameter to a
21513 frame pointer. Throw an error when caller wants to change kboards
21514 while in single_kboard mode. Don't push_kboard if we weren't in
21515 single kboard state. Don't pop_kboard if we popped into any
21516 kboard state.
21517 (restore_kboard_configuration): Abort if pop_kboard changed the
21518 kboard in single_kboard mode. Call pop_kboard only after setting
21519 up single_kboard mode.
21520 (Frecursive_edit): Switch to single_kboard mode only in nested
21521 command loops.
21522 (cmd_error, command_loop, command_loop_1, timer_check):
21523 Comment out unnecessary call to `any_kboard_state' and
21524 `record_single_kboard_state'.
21525 (delete_kboard): Exit single_kboard mode if we have just deleted
21526 that kboard. Use FRAME_KBOARD.
21527 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21528 `fatal_error_signal'.
21529 (record_single_kboard_state): Don't push_kboard if we weren't in
21530 single kboard state. Don't pop_kboard if we popped into any
21531 kboard state.
21532 (push_frame_kboard): Rename to push_kboard.
21533 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21534 (read_avail_input): Read input from all terminals.
21535 (mark_kboards): Also mark Vkeyboard_translate_table.
21536 (kbd_buffer_store_event_hold): Simplify condition.
21537 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21538 (Vkeyboard_translate_table): Move to struct kboard.
21539 (init_kboard): Initialize Vkeyboard_translate_table.
21540 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21541 Vkeyboard_translate_table. Update doc strings. Update docs of
21542 local-function-key-map and function-key-map.
21543
21544 * terminal.c: New file.
21545
21546 * term.c: Include errno.h.
21547 (Vring_bell_function, device_list, initial_device)
21548 (next_device_id, ring_bell, update_begin, update_end)
21549 (set_terminal_window, cursor_to, raw_cursor_to)
21550 (clear_to_end, clear_frame, clear_end_of_line)
21551 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21552 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21553 (syms_of_term): Move their initialization to terminal.c.
21554 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21555 (Ftty_display_color_cells)
21556 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21557 (clear_tty_hooks, set_tty_hooks)
21558 (init_tty, maybe_fatal): New functions.
21559 (Ftty_type): Return nil if terminal is not on a tty instead of
21560 throwing an error. Doc update.
21561 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21562 Doc update. Initialize new subrs and variables.
21563 (delete_tty): Use terminal->deleted.
21564 (tty_set_terminal_modes): Rename from set_terminal_modes.
21565 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21566 (set_scroll_region): Rename to `tty_set_scroll_region'.
21567 (turn_on_insert): Rename to `tty_turn_on_insert'.
21568 (turn_off_insert): Rename to `tty_turn_off_insert'.
21569 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21570 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21571 (toggle_highligh): Rename to `tty_toggle_highlight'.
21572 (background_highlight): Rename to `tty_background_highlight'.
21573 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21574 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21575 (tty_set_scroll_region, tty_background_highlight)
21576 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21577 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21578 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21579 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21580 Add static modifier.
21581 (tty_reset_terminal_modes, tty_set_terminal_window)
21582 (tty_set_scroll_region, tty_background_highlight)
21583 (tty_highlight_if_desired, tty_cursor_to)
21584 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21585 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21586 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21587 renames.
21588
215892007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21590
21591 * keyboard.c: Qrtl is new.
21592 (parse_tool_bar_item): Handle :rtl keyword.
21593 (syms_of_keyboard): Intern :rtl keyword.
21594
21595 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21596
21597 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21598 so no Lisp code is executed.
21599 (file_for_image, find_rtl_image): New functions.
21600 (xg_get_image_for_pixmap): Use file_for_image.
21601 (update_frame_tool_bar): If direction is RTL, use RTL image if
21602 defined. Use Gtk stock images if defined.
21603
216042007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21605
21606 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21607 for nonexistent or zero-width glyph in composition glyph.
21608
216092007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21610
21611 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21612
21613 * xdisp.c (Finvisible_p): New function.
21614 (syms_of_xdisp): defsubr it.
21615
216162007-08-24 Juanma Barranquero <lekktu@gmail.com>
21617
21618 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21619 Doc fixes.
21620
216212007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21622
21623 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21624
216252007-08-24 Martin Rudalics <rudalics@gmx.at>
21626
21627 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21628 whether decoding has modified buffer contents.
21629
216302007-08-24 Jason Rumney <jasonr@gnu.org>
21631
21632 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21633 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21634 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21635 (init_svg_functions) [HAVE_NTGUI]: New function.
21636 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21637 (svg_load_image): Use them.
21638 (svg_load_image) [HAVE_NTGUI]: Implement background.
21639
216402007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21641
21642 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21643 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21644 (LIBX): Remove @RSVG_LIBS@.
21645 (LIBES): Add $(RSVG_LIBS).
21646
21647 * image.c (svg_load_image): Blend with specified background if exists.
21648 Use IMAGE_BACKGROUND. Add Mac OS Support.
21649
21650 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21651 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21652 Remove macros.
21653 [MAC_OSX] (socket_callback): Do nothing.
21654 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21655 ReceiveNextEvent.
21656 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21657 socket_callback.
21658 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21659
216602007-08-22 Glenn Morris <rgm@gnu.org>
21661
21662 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21663
216642007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21665
21666 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21667
21668 * image.c: Add support for SVG images. Some additional comments
21669 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21670 (svg_image_p): New function to test for SVG image.
21671 (svg_load): New function to load SVG image.
21672 (svg_load_image): New function, helper for svg_load.
21673 (Qsvg): New Lisp_object.
21674 (svg_keyword_index): New enum.
21675 (svg_format): New static `image_keyword' struct.
21676 (svg_type): New static `image_type' struct.
21677 (librsvg/rsvg.h): Include it.
21678
216792007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21680
21681 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21682
216832007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21684
21685 * lread.c (Qold_style_backquotes): New var.
21686 (syms_of_lread): Init and staticpro it.
21687 (load_warn_old_style_backquotes): New fun.
21688 (Fload): Use them to warn about old style backquotes.
21689 (end_of_file_error, Fload): Remove unused vars.
21690
21691 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21692
21693 * lread.c (Vold_style_backquotes): New var.
21694 (syms_of_lread): Init and export it to Elisp.
21695 (read1): Set it when we find an old-style (back)quote.
21696
216972007-08-22 Jason Rumney <jasonr@gnu.org>
21698
21699 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21700
217012007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21702
21703 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21704
217052007-08-19 Richard Stallman <rms@gnu.org>
21706
21707 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21708
217092007-08-19 Andreas Schwab <schwab@suse.de>
21710
21711 * alloc.c (pure): Round PURESIZE up.
21712
217132007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21714
21715 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21716 active frame.
21717
217182007-08-16 Richard Stallman <rms@gnu.org>
21719
21720 * eval.c (Fcommandp): Add parens to clarify.
21721
21722 * minibuf.c (Fall_completions): Use enum for type of table.
21723
21724 * emacs.c (USAGE2): Improve text.
21725
217262007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21727
21728 * term.c (tty_default_color_capabilities): Declare static
21729 variables in file scope, to avoid HPUX compiler problem.
21730
217312007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21732
21733 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21734 to gtk_toolbar_insert.
21735
217362007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21737
21738 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21739
21740 * insdel.c (reset_var_on_error): New fun.
21741 (signal_before_change, signal_after_change):
21742 Use it to reset (after|before)-change-functions to nil in case of error.
21743 Bind inhibit-modification-hooks to t.
21744 Don't bind (after|before)-change-functions to nil while they run.
21745
217462007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21747
21748 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21749 filling pixmap with stippled background.
21750
217512007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21752
21753 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21754 Don't use invisible frame as parent window for repositioning.
21755
217562007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * print.c (new_backquote_output): Rename from old_backquote_output.
21759 (print): Inverse its logic (according to its name) so as to match the
21760 behavior of new_backquote_flag in lread.c.
21761
217622007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21763
21764 * gmalloc.c (posix_memalign): New function.
21765
21766 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21767 ActivateControl/DeactivateControl here.
21768 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21769 frame-notice-user-settings is non-nil.
21770 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21771 for kEventParamFMFontStyle.
21772 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21773 mac_pass_command_to_system and mac_pass_control_to_system here.
21774 (XTread_socket): Call ActivateControl/DeactivateControl here.
21775 (XTread_socket) [TARGET_API_MAC_CARBON]:
21776 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21777 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21778 for window repositioning.
21779
217802007-08-08 Glenn Morris <rgm@gnu.org>
21781
21782 * Replace `iff' in doc-strings and comments.
21783
217842007-08-07 Chong Yidong <cyd@stupidchicken.com>
21785
21786 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21787
217882007-08-07 Martin Rudalics <rudalics@gmx.at>
21789
21790 * fileio.c (Finsert_file_contents): Run format-decode and
21791 after_insert_file_functions on entire buffer when REPLACE is
21792 non-nil and inhibit modification_hooks and point_motion_hooks.
21793 For consistency, run after_insert_file_functions iff something
21794 got inserted. Move signal_after_change and update_compositions
21795 after code running after_insert_file_functions. Make sure that
21796 undo_list doesn't record intermediate steps of the decoding process.
21797
217982007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21799
21800 * emacs.c (main)
21801 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21802 Call malloc_enable_thread on interactive startup.
21803
21804 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21805 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21806 [USE_PTHREAD]: Conditionalize with it.
21807 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21808 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21809 New functions.
21810
218112007-08-06 Chong Yidong <cyd@stupidchicken.com>
21812
21813 * xdisp.c (redisplay_window): When restoring original buffer
21814 position, make sure it is still valid.
21815
21816 * image.c (png_load): Ignore png-supplied background color.
21817
218182007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21819
21820 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21821 Use kCFAbsoluteTimeIntervalSince1970.
21822
21823 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21824 New variable.
21825 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21826 event loop should be quit.
21827 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21828 Quit dialog event loop if quit_dialog_event_loop is set.
21829
21830 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21831 (Selection): New typedef. Use instead of ScrapRef.
21832 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21833 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21834 (mac_clear_selection): Rename from clear_scrap.
21835 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21836 scrap_has_target_type. All uses changed.
21837 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21838 (mac_selection_has_target_p): New functions.
21839 (mac_put_selection_value): Rename from put_scrap_string.
21840 (mac_get_selection_value): Rename from get_scrap_string.
21841 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21842 (put_scrap_private_timestamp, scrap_has_target_type)
21843 (get_scrap_private_timestamp): Remove functions.
21844 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21845 (x_own_selection, x_get_local_selection):
21846 Use mac_valid_selection_value_p.
21847 (x_own_selection): Don't use put_scrap_private_timestamp.
21848 Record OWNERSHIP-INFO into Vselection_alist instead.
21849 (x_get_local_selection): Don't check type if request is local.
21850 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21851 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21852
218532007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21854
21855 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21856 add comment explaining why.
21857
218582007-08-03 Richard Stallman <rms@gnu.org>
21859
21860 * fileio.c (Fvisited_file_modtime): Use make_time.
21861
218622007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21863
21864 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21865 build.
21866
218672007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21868
21869 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21870
218712007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21872
21873 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21874
218752007-07-30 Richard Stallman <rms@gnu.org>
21876
21877 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21878
218792007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21880
21881 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21882
218832007-07-28 Nick Roberts <nickrob@snap.net.nz>
21884
21885 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21886 remote default-directory.
21887
21888 * buffer.c (mode-line-format): Update doc string.
21889
218902007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21891
21892 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21893 scroll bar gap.
21894 (x_scroll_bar_create): Set bar->fringe_extended_p.
21895 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21896 on frame edge. Check fringe background extension. Don't clear
21897 extended fringe background area.
21898
21899 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21900 (w32_fill_area): Enclose multiple statements with do ... while (0).
21901
21902 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21903 Extend fringe background to scroll bar gap.
21904 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21905 Set bar->fringe_extended_p.
21906 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21907 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21908 background extension. Don't clear extended fringe background area.
21909
21910 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21911 New member fringe_extended_p.
21912
219132007-07-25 Glenn Morris <rgm@gnu.org>
21914
21915 * Relicense all FSF files to GPLv3 or later.
21916
21917 * COPYING: Switch to GPLv3.
21918
219192007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21920
21921 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21922
21923 * data.c (Finteractive_form): Check for the presence of an
21924 `interactive-form' symbol property more thoroughly.
21925
21926 * data.c (Finteractive_form): Use an `interactive-form' property if
21927 present, analogous to the function-documentation property.
21928
219292007-07-24 Jason Rumney <jasonr@gnu.org>
21930
21931 * w32fns.c (x_real_positions): Get real position from OS instead of
21932 calculating it.
21933
219342007-07-23 Jason Rumney <jasonr@gnu.org>
21935
21936 * filelock.c (current_lock_owner): Allow for @ sign in username.
21937
219382007-07-22 Nick Roberts <nickrob@snap.net.nz>
21939
21940 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21941 remote default-directory.
21942
21943 * buffer.c (mode-line-format): Describe above case in doc string.
21944
219452007-07-20 Eli Zaretskii <eliz@gnu.org>
21946
21947 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21948 Define if not defined.
21949
219502007-07-18 Jason Rumney <jasonr@gnu.org>
21951
21952 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21953
219542007-07-18 Richard Stallman <rms@gnu.org>
21955
21956 * data.c (Fsetq_default): Doc fix.
21957
21958 * eval.c (Fsetq): Doc fix.
21959
219602007-07-18 Juanma Barranquero <lekktu@gmail.com>
21961
21962 * coding.c (Ffind_operation_coding_system):
21963 * eval.c (For, Fand): Doc fixes.
21964 Reported by Johan Bockgård.
21965
219662007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21967
21968 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21969
21970 * xterm.h: Declare x_ewmh_activate_frame.
21971
21972 * xterm.c (x_ewmh_activate_frame): New function.
21973 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21974
219752007-07-17 Martin Rudalics <rudalics@gmx.at>
21976
21977 * window.c (Fdisplay_buffer): If largest or LRU window is the
21978 only window, split it even if it is not eligible for splitting.
21979 This restores the original behavior broken by the 2007-07-15
21980 change.
21981
219822007-07-17 Glenn Morris <rgm@gnu.org>
21983
21984 * abbrev.c (abbrev_check_chars): New function.
21985 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21986 Call abbrev_check_chars to check abbrev characters are word
21987 constituents. Doc fix.
21988
219892007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21990
21991 * process.c (Fstart_process, Fmake_network_process)
21992 (read_process_output): Fix up last changes.
21993
219942007-07-16 Eli Zaretskii <eliz@gnu.org>
21995
21996 * makefile.w32-in (clean): Don't delete *~.
21997
219982007-07-16 Andreas Schwab <schwab@suse.de>
21999
22000 * window.c (Fdisplay_buffer): Use NILP.
22001 (Fset_window_scroll_bars): Likewise.
22002
220032007-07-15 Martin Rudalics <rudalics@gmx.at>
22004
22005 * window.c (window_min_size_2): New function.
22006 (window_min_size_1, size_window, Fdisplay_buffer)
22007 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22008 windows without mode- or header-lines when window-min-height is
22009 too small.
22010 (size_window): Reset nodelete_p after testing it, following an
22011 earlier note by Kim F. Storm.
22012 (display_buffer): Do not set split_height_threshold to twice the
22013 value of window_min_height to avoid changing the value of a
22014 customizable variable. Rather explicitly check whether the
22015 height of the window that shall be splitted is at least as large
22016 as split_height_threshold.
22017 (Fwindow_full_width_p): New defun.
22018 (syms_of_window): Defsubr it.
22019
22020 * window.h: Add EXFUN for Fwindow_full_width_p.
22021
220222007-07-14 Jason Rumney <jasonr@gnu.org>
22023
22024 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22025
220262007-07-14 Richard Stallman <rms@gnu.org>
22027
22028 * eval.c (maybe_call_debugger): New function.
22029 (find_handler_clause): Use maybe_call_debugger.
22030 Call it when the handler says `debug'.
22031 Eliminate DEBUGGER_VALUE_PTR.
22032 (Fsignal): Eliminate debugger_value.
22033 (Qdebug): New variable.
22034 (syms_of_eval): Initialize it.
22035
220362007-07-14 Juanma Barranquero <lekktu@gmail.com>
22037
22038 * eval.c (Fprogn):
22039 * keyboard.c (Ftrack_mouse):
22040 * print.c (Fwith_output_to_temp_buffer):
22041 * window.c (Fsave_window_excursion): Doc fix.
22042
220432007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22044
22045 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22046
220472007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22048
22049 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22050 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22051 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22052 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22053 Remove unused encoding_carryover.
22054 * process.c: Adjust all functions accordingly.
22055
220562007-07-12 Richard Stallman <rms@gnu.org>
22057
22058 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22059
220602007-07-11 Jason Rumney <jasonr@gnu.org>
22061
22062 * makefile.w32-in (LIBS): Include OLE32.
22063
22064 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22065 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22066
220672007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22068
22069 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22070 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22071 from a Lisp_Object into a bare pointer.
22072 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22073 Adjust the code correspondingly.
22074
22075 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22076
22077 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22078 (term_show_mouse_face): Remove unused var `j'.
22079 (handle_one_term_event): Remove unused vars `i' and `j'.
22080 Don't cast return value of ttyname since it's not necessary.
22081
220822007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22083
22084 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22085 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22086
22087 * fns.c (map_char_table): Use an array of int for `indices' rather than
22088 an array of Lisp_Objects (which are only ever integers anyway).
22089 (Fmap_char_table): Update caller.
22090 * lisp.h: Update prototype.
22091 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22092 * fontset.c (Ffontset_info):
22093 * casetab.c (set_case_table): Update callers.
22094
22095 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22096
22097 * keymap.c (struct accessible_keymaps_data)
22098 (struct where_is_internal_data): New structures.
22099 (accessible_keymaps_1, where_is_internal_1): Use them to change
22100 interface to adhere to the one used by map_keymap.
22101 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22102 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22103
22104 * keymap.h (map_keymap_function_t): More informative prototype.
22105
221062007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22107
22108 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22109 (looking_at_1): Don't change search_regs and last_thing_searched
22110 if `inhibit-changing-match-data' is non-nil.
22111 (string_match_1, search_buffer, set_search_regs): Likewise.
22112 (syms_of_search): Add Lisp level definition for
22113 `inhibit-changing-match-data' and set it to nil.
22114 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22115 start and end of the match, instead of using values in search_regs.
22116
221172007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22118
22119 * minibuf.c (Fcompleting_read): New value `confirm-only'
22120 for `require-match'.
22121
221222007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22123
22124 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22125 part of the 2007-06-27 change to syms_of_fileio.
22126
221272007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22128
22129 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22130 Check WINDOWP before using XWINDOW. Consolidate return statements.
22131
221322007-06-27 Richard Stallman <rms@gnu.org>
22133
22134 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22135
221362007-06-27 Juanma Barranquero <lekktu@gmail.com>
22137
22138 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22139
221402007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22141
22142 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22143 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22144 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22145 (_free_internal, memalign): Use them.
22146 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22147 Initialize to PTHREAD_MUTEX_INITIALIZER.
22148 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22149 (morecore_nolock): Rename from morecore. All uses changed.
22150 Use only nolock versions of internal allocation functions.
22151 (_malloc_internal_nolock, _realloc_internal_nolock)
22152 (_free_internal_nolock): New functions created from
22153 _malloc_internal, _realloc_internal, and _free_internal.
22154 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22155 Copy hook value to automatic variable before its use.
22156 (memalign): Copy hook value to automatic variable before its use.
22157
221582007-06-26 Kenichi Handa <handa@m17n.org>
22159
22160 * coding.c (Ffind_operation_coding_system): Docstring improved.
22161 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22162
221632007-06-25 David Kastrup <dak@gnu.org>
22164
22165 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22166 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22167 cater for additional parameter.
22168
22169 * keymap.h: Adjust number of parameters to `current-active-maps'.
22170
22171 * doc.c (Fsubstitute_command_keys): Adjust call of
22172 `current-active-maps'.
22173
221742007-06-25 David Kastrup <dak@gnu.org>
22175
22176 * callint.c (Fcall_interactively): Make the parsing of interactive
22177 specs somewhat more readable.
22178
221792007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22180
22181 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22182 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22183 if extended background has already been filled.
22184
221852007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22186
22187 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22188 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22189
22190 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22191 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22192 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22193 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22194 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22195 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22196 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22197 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22198 Run timers during dialog popup.
22199 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22200
222012007-06-21 Jason Rumney <jasonr@gnu.org>
22202
22203 * image.c (convert_mono_to_color_image): Swap fore and background.
22204
222052007-06-20 Jason Rumney <jasonr@gnu.org>
22206
22207 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22208 (w32_free_bdf_font): Unmap memory not handle.
22209
222102007-06-20 Sam Steingold <sds@gnu.org>
22211
22212 * gmalloc.c (__morecore): Fix the declaration to comply with the
22213 definition.
22214
222152007-06-20 Juanma Barranquero <lekktu@gmail.com>
22216
22217 * w32term.c (w32_delete_display): Remove leftover declaration.
22218 (w32_define_cursor, w32_initialize): Make static.
22219
22220 * w32.c (_wsa_errlist): Fix typo in error message.
22221 (init_environment): Ignore any environment variable from the
22222 registry having a null value.
22223
222242007-06-20 Glenn Morris <rgm@gnu.org>
22225
22226 * Makefile.in (LIBGIF): Default to -lgif.
22227
222282007-06-17 Jason Rumney <jasonr@gnu.org>
22229
22230 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22231 unicode strings.
22232
222332007-06-16 Juanma Barranquero <lekktu@gmail.com>
22234
22235 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22236 Fix typo in docstring.
22237
222382007-06-16 Eli Zaretskii <eliz@gnu.org>
22239
22240 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22241 and their keybindings.
22242
222432007-06-15 Chong Yidong <cyd@stupidchicken.com>
22244
22245 * composite.c (update_compositions): Fix last fix.
22246
222472007-06-14 Jason Rumney <jasonr@gnu.org>
22248
22249 * w32.c (get_process_times_fn): New function pointer.
22250 (globals_of_w32): Intialize it if present in kernel32.dll.
22251 (w32_get_internal_run_time): New function.
22252
22253 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22254
222552007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22256
22257 * composite.c (update_compositions): Check the validness of
22258 compositions.
22259
222602007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22261
22262 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22263 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22264
22265 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22266 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22267
22268 * macgui.h (USE_MAC_TOOLBAR): New define.
22269
22270 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22271 Return immediately unless popup is activated.
22272
22273 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22274 background to scroll bar gap.
22275 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22276 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22277 scroll bars on frame edge. Check fringe background extension.
22278 Don't clear extended fringe background area.
22279 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22280 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22281 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22282 [USE_MAC_TOOLBAR]: New macros.
22283 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22284 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22285 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22286 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22287 [USE_MAC_TOOLBAR]: New functions.
22288 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22289 manually if previous repositioning has failed.
22290 (mac_handle_keyboard_event): Use precomputed event kind.
22291 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22292 as tool bar item click. Handle mouse movement over tool bar items.
22293
22294 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22295 toolbar_win_gravity.
22296 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22297 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22298 Add externs.
22299
22300 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22301 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22302
223032007-06-14 Chong Yidong <cyd@stupidchicken.com>
22304
22305 * image.c (search_image_cache): Remove unused variable.
22306
223072007-06-13 Chong Yidong <cyd@stupidchicken.com>
22308
22309 * xfns.c, xmenu.c: Link to xaw3d if available.
22310
223112007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22312
22313 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22314 frame_foreground and frame_background.
22315
22316 * image.c (lookup_image): Save frame foreground and background colors.
22317 (search_image_cache): Check if saved and current frame colors match.
22318
223192007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22320
22321 * regex.c (regex_compile): Remove the `regnum' counter.
22322 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22323
223242007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22325
22326 * term.c: Include intervals.h to declare Fget_text_property.
22327
223282007-06-10 Jason Rumney <jasonr@gnu.org>
22329
22330 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22331
223322007-06-08 Juanma Barranquero <lekktu@gmail.com>
22333
22334 * callint.c (Fcall_interactively):
22335 * editfns.c (Fdelete_and_extract_region):
22336 * fileio.c (Fread_file_name):
22337 * fns.c (Fmapconcat):
22338 * keyboard.c (cmd_error_internal):
22339 * keymap.c (Fkey_description):
22340 * lread.c (openp):
22341 * minibuf.c (read_minibuf):
22342 * search.c (wordify):
22343 * sunfns.c (sel_read):
22344 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22345 * xfns.c (x_default_scroll_bar_color_parameter):
22346 * xmenu.c (menu_help_callback):
22347 * xselect.c (Fx_get_atom_name):
22348 * xterm.c (x_term_init): Use empty_unibyte_string.
22349
223502007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22351
22352 * alloc.c (init_strings): Initialize canonical empty strings.
22353 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22354 canonical empty string when the requested size is 0.
22355
22356 * emacs.c (empty_unibyte_string): Rename from empty_string.
22357 (empty_multibyte_string): New canonical empty string.
22358 (syms_of_emacs): Don't initialize empty_string.
22359
22360 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22361 string, if appropriate.
22362 (empty_unibyte_string, empty_multibyte_string): New externs.
22363 (empty_string): Remove extern.
22364
22365 * lread.c (syms_of_lread): Use empty_unibyte_string.
22366
223672007-06-07 Jason Rumney <jasonr@gnu.org>
22368
22369 * s/ms-w32.h: Don't define HAVE_TZNAME.
22370
22371 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22372
223732007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22374
22375 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22376
22377 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22378 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22379
22380 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22381 Don't call next handler.
22382 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22383 Remove argument. Install handler to application.
22384 (set_frame_menubar): Don't change deep_p.
22385 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22386 FRAME_OUTER_TO_INNER_DIFF_Y.
22387 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22388 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22389 [HAVE_DIALOGS]: New macros.
22390 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22391 Use them.
22392 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22393
22394 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22395 init_service_handler. All callers changed. Return OSStatus value.
22396
22397 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22398 All callers changed so as not to call SetPortWindowPort.
22399 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22400 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22401 mac_draw_string_common.
22402 (mac_draw_image_string_qd): Likewise.
22403 (mac_draw_string_common): Use them. Add INLINE.
22404 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22405 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22406 GetGlobalMouse.
22407 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22408 and FRAME_OUTER_TO_INNER_DIFF_Y.
22409 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22410 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22411 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22412 repositioning window to mac_handle_window_event.
22413 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22414 saving window location to mac_handle_window_event
22415 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22416 (install_menu_target_item_handler): Remove argument in extern.
22417 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22418 Also accept command events.
22419 (do_keystroke): New function created from XTread_socket.
22420 (init_command_handler): Remove functions.
22421 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22422 and save window location by kEventWindowShowing and kEventWindowHiding
22423 handlers here. Don't call next handler for window state change and
22424 focus events.
22425 (mac_handle_application_event, mac_handle_keyboard_event)
22426 [TARGET_API_MAC_CARBON]: New functions.
22427 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22428 kEventWindowShowing and kEventWindowHiding events. Move installation
22429 of mouse, font, text input and menu target item handlers to
22430 install_application_handler.
22431 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22432 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22433 New function.
22434 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22435 Register it.
22436 (XTread_socket) [TARGET_API_MAC_CARBON]:
22437 Consolidate SendEventToEventTarget calls.
22438 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22439 Move application activation handler to mac_handle_application_event.
22440 Move keyboard handler to mac_handle_keyboard_event.
22441 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22442 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22443 init_command_handler. Call install_application_handler.
22444
22445 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22446 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22447
224482007-06-07 Glenn Morris <rgm@gnu.org>
22449
22450 * emacs.c (main): Use `emacs-copyright' in --version output.
22451
224522007-06-06 Chong Yidong <cyd@stupidchicken.com>
22453
22454 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22455
224562007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22457
22458 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22459
22460 * macgui.h: Replace WindowPtr with WindowRef.
22461
22462 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22463 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22464 Replace ControlHandle with ControlRef.
22465 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22466
22467 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22468 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22469 Replace ControlHandle with ControlRef.
22470 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22471 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22472
22473 * macterm.h (struct scroll_bar): Rename member control_handle_low
22474 and control_handle_high to control_ref_low and control_ref_high.
22475 All uses changed.
22476 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22477 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22478 respectively. All uses changed.
22479 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22480 (install_window_handler, remove_window_handler): Replace WindowPtr
22481 with WindowRef in externs.
22482
224832007-06-05 Juanma Barranquero <lekktu@gmail.com>
22484
22485 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22486
224872007-06-03 Nick Roberts <nickrob@snap.net.nz>
22488
22489 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22490
22491 * frame.c (Fmouse_position, Fmouse_pixel_position):
22492 Condition on HAVE_GPM too.
22493
22494 * term.c (term_mouse_highlight): Remove unused variables.
22495 (Fterm_open_connection): Set gpm_zerobased to 1.
22496 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22497 Use zero based co-ordinates.
22498 (handle_one_term_event): Report a drag as mouse movement too.
22499
22500 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22501
225022007-06-03 Chong Yidong <cyd@stupidchicken.com>
22503
22504 * image.c (search_image_cache): New function. Require background
22505 color match if background color is unspecified in the image spec.
22506 (uncache_image, lookup_image): Use it.
22507
225082007-06-01 Juanma Barranquero <lekktu@gmail.com>
22509
22510 * window.c (Fshrink_window): Reflow docstring.
22511
225122007-06-02 Chong Yidong <cyd@stupidchicken.com>
22513
22514 * Version 22.1 released.
22515
225162007-06-01 Richard Stallman <rms@gnu.org>
22517
22518 * xfns.c (x_encode_text): Add GCPRO.
22519
225202007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22521
22522 * xfns.c (x_set_name_internal): Save encoded name before
22523 x_encode_text in case string data is relocated.
22524
225252007-05-31 Richard Stallman <rms@gnu.org>
22526
22527 * buffer.c (syms_of_buffer): Doc fix.
22528
225292007-05-30 Nick Roberts <nickrob@snap.net.nz>
22530
22531 * sysdep.c (init_sys_modes): Add rather than replace with
22532 O_NONBLOCK.
22533
22534 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22535 term_mouse_moveto.
22536
22537 * termhooks.h (term_mouse_moveto): New extern.
22538
22539 * term.c (mouse_face_window): Rename...
22540 (Qmouse_face_window): ...to this.
22541 (term_show_mouse_face, term_clear_mouse_face)
22542 (term_mouse_highlight): Use Qmouse_face_window.
22543 (term_mouse_moveto): New function.
22544 (term_mouse_position): Make it work.
22545 (syms_of_term): Uncomment assignment to mouse_position_hook.
22546 Staticpro Qmouse_face_window.
22547
225482007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22549
22550 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22551 around current_column call.
22552
225532007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22554
22555 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22556 * xdisp.c (next_element_from_buffer):
22557 * window.c (delete_window):
22558 * term.c (term_mouse_highlight):
22559 * msdos.c (getdefdir):
22560 * macterm.c (mac_create_bitmap_from_bitmap_data)
22561 (init_font_name_table):
22562 * fns.c (Fsxhash):
22563 * data.c (Fmake_local_variable):
22564 * ccl.c (ccl_driver): Likewise.
22565
225662007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22567
22568 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22569 Call mac_wakeup_from_rne on window size change.
22570
225712007-05-25 Chong Yidong <cyd@stupidchicken.com>
22572
22573 * image.c (uncache_image): Fix typo.
22574
225752007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22576
22577 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22578
225792007-05-22 Richard Stallman <rms@gnu.org>
22580
22581 * xterm.c (x_connection_closed): Remove NO_RETURN.
22582
225832007-05-22 Martin Rudalics <rudalics@gmx.at>
22584
22585 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22586
225872007-05-21 Chong Yidong <cyd@stupidchicken.com>
22588
22589 * image.c (uncache_image): New function.
22590 (Fimage_refresh): New function.
22591
225922007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22593
22594 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22595
225962007-05-20 Nick Roberts <nickrob@snap.net.nz>
22597
22598 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22599 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22600
226012007-05-20 Nick Roberts <nickrob@snap.net.nz>
22602
22603 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22604 conditional on [HAVE_GPM_H].
22605
226062007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22607
22608 * syntax.c (skip_chars): Update syntax-table only after we checked that
22609 the new location is valid.
22610
226112007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22612
22613 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22614 mac_get_window_bounds.
22615
226162007-05-20 Nick Roberts <nickrob@snap.net.nz>
22617
22618 * Makefile.in (LIBGPM): Allow it to be set from configure.
22619 If set then link Emacs with it.
22620
22621 * config.in: Regenerate.
22622
22623 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22624 New externs.
22625
22626 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22627 Include gpm.h.
22628 (handle_one_term_event, term_gpm): New externs.
22629
22630 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22631 and allow it to be interrupted by SIGIO.
22632
22633 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22634 (wait_reading_process_output): Wait on gpm_fd too.
22635 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22636 (add_gpm_wait_descriptor_called_flag): New variable.
22637 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22638
22639 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22640 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22641 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22642 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22643 (make_lispy_event): Add case GPM_CLICK_EVENT.
22644 (read_avail_input): Handle mouse input.
22645
22646 * term.c (write_glyphs_with_face): New function.
22647 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22648 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22649 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22650 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22651 (last_mouse_x, last_mouse_y): New variables.
22652 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22653 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22654 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22655 (Fterm_close_connection): New functions.
22656 (term_init): Initialise mouse_face_window.
22657
226582007-05-19 Chong Yidong <cyd@stupidchicken.com>
22659
22660 * xdisp.c (redisplay_window): If first window line is a
22661 continuation line, recompute the new window start instead of
22662 recentering.
22663
226642007-05-18 Glenn Morris <rgm@gnu.org>
22665
22666 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22667 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22668
226692007-05-17 Glenn Morris <rgm@gnu.org>
22670
22671 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22672
226732007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22674
22675 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22676 dead key repeat and up events.
22677
226782007-05-14 Chong Yidong <cyd@stupidchicken.com>
22679
22680 * image.c (pbm_load): Check image size for monochrome pbm.
22681
226822007-05-13 Chong Yidong <cyd@stupidchicken.com>
22683
22684 * xterm.c (XTread_socket): Revert last change.
22685
226862007-05-12 Chong Yidong <cyd@stupidchicken.com>
22687
22688 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22689
22690 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22691
226922007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22693
22694 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22695 mixup (YAILOM).
22696
226972007-05-07 Andreas Schwab <schwab@suse.de>
22698
22699 * keymap.c (Flookup_key): Fix typo in last change.
22700
227012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22702
22703 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22704 mapping for unibyte strings.
22705
227062007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22707
22708 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22709 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22710
227112007-04-29 Richard Stallman <rms@gnu.org>
22712
22713 * insdel.c (replace_range): For undo, record insertion first.
22714
227152007-04-29 Andreas Schwab <schwab@suse.de>
22716
22717 * lisp.h (VECSIZE): Use OFFSETOF.
22718
227192007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22720
22721 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22722 disabled lines.
22723
227242007-04-28 Richard Stallman <rms@gnu.org>
22725
22726 * lread.c (read_escape): In a string, \s is always space.
22727
227282007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22729
22730 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22731
22732 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22733 submenu for menu bar items.
22734
22735See ChangeLog.10 for earlier changes.
22736
22737;; Local Variables:
22738;; coding: utf-8
22739;; add-log-time-zone-rule: t
aac0c6e3
MR
22740;; End:
22741
e3eb1dae 22742 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22743
22744 This file is part of GNU Emacs.
22745
22746 GNU Emacs is free software: you can redistribute it and/or modify
22747 it under the terms of the GNU General Public License as published by
22748 the Free Software Foundation, either version 3 of the License, or
22749 (at your option) any later version.
22750
22751 GNU Emacs is distributed in the hope that it will be useful,
22752 but WITHOUT ANY WARRANTY; without even the implied warranty of
22753 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22754 GNU General Public License for more details.
22755
22756 You should have received a copy of the GNU General Public License
22757 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22758
22759;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40