Remove some AC_DEFINEs that are now unused.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b678dd8b
GM
12010-04-27 Glenn Morris <rgm@gnu.org>
2
76cda504
GM
3 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4 since the defaults (set by the system file) are fine in most cases.
5 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
6 * m/ibms390x.h (START_FILES, LIB_STANDARD):
7 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
8 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9 Remove definitions, since they are set correctly in s/gnu-linux.h.
10 * s/freebsd.h (START_FILES, LIB_STANDARD):
11 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
12 * s/hpux10-20.h (START_FILES):
13 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
14 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
15
b678dd8b
GM
16 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
17 (MOTIF_LIBW): Use $LIBXP.
18 (otherobj): Use $WIDGET_OBJ.
19
9452ded1
DN
202010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
21
7e10844c
DN
22 * Makefile.in (LIBS_MACHINE): Remove, unused.
23
9452ded1
DN
24 Use autoconf instead of cpp for LIB_MATH.
25 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
26 * s/cygwin.h (LIB_MATH): Likewise.
27 * Makefile.in (LIB_MATH): Do not define with cpp.
28 (LIBES): Use autoconf for LIB_MATH.
29
fcebfc6a
KH
302010-04-26 Kenichi Handa <handa@m17n.org>
31
32 * composite.c (Ffind_composition_internal): Fix the return value
33 for an automatic composition.
34
39e2ad1b
DN
352010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
36
37 Remove all NO_ARG_ARRAY uses.
38 * fns.c (concat2, concat3, nconc2):
39 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
40 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
41 * m/xtensa.h (NO_ARG_ARRAY):
42 * m/template.h (NO_ARG_ARRAY):
43 * m/sparc.h (NO_ARG_ARRAY):
44 * m/sh3.h (NO_ARG_ARRAY):
45 * m/mips.h (NO_ARG_ARRAY):
46 * m/macppc.h (NO_ARG_ARRAY):
47 * m/iris4d.h (NO_ARG_ARRAY):
48 * m/intel386.h (NO_ARG_ARRAY):
49 * m/ibms390x.h (NO_ARG_ARRAY):
50 * m/ibms390.h (NO_ARG_ARRAY):
51 * m/ibmrs6000.h (NO_ARG_ARRAY):
52 * m/ia64.h (NO_ARG_ARRAY):
53 * m/hp800.h (NO_ARG_ARRAY):
54 * m/arm.h (NO_ARG_ARRAY):
55 * m/amdx86-64.h (NO_ARG_ARRAY):
56 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
57
adf4f59c
EZ
582010-04-25 Eli Zaretskii <eliz@gnu.org>
59
6bdf5d65
EZ
60 * xdisp.c (display_line): Don't assume 2nd call to
61 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
62 (iterate_out_of_display_property): New function, body from pop_it.
63 (pop_it): Use it.
adf4f59c 64
dfbbda83
GM
652010-04-24 Glenn Morris <rgm@gnu.org>
66
67 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
68 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
69 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
70 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
71
2d4018aa
EZ
722010-04-24 Eli Zaretskii <eliz@gnu.org>
73
a49884a6
EZ
74 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
75 use `get_next_display_element' and `set_iterator_to_next' to
76 advance to the next character, when looking for the character that
77 begins the next row.
78
76db6fcc 79 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
80 definition of "struct Lisp_Symbol".
81
70eab5c1
GM
822010-04-24 Glenn Morris <rgm@gnu.org>
83
84 * Makefile.in (CRT_DIR): New variable, set by configure.
85 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
86 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
87
1ad4cc3d
DN
882010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
89
e769f484
DN
90 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
91
4196ff33
DN
92 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
93
879b0ee4
DN
94 Remove redundant flags.
95 * s/freebsd.h (C_SWITCH_SYSTEM):
96 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
97 * s/netbsd.h (C_SWITCH_SYSTEM):
98 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
99 of these.
100
03cbbcb8
DN
101 Simplify m/intel386.h.
102 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
103 user: ecrt0.c.
104 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
105 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
106 the only user: s/unixware.h.
107 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
108 from m/intel386.h.
109 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
110 moved here from m/intel386.h.
111
1ad4cc3d
DN
112 * m/mips.h: Remove #if 0 code.
113
8785b888
EZ
1142010-04-23 Eli Zaretskii <eliz@gnu.org>
115
728588cc
EZ
116 Fix display of composed characters from L2R scripts in bidi buffers.
117 * xdisp.c (set_iterator_to_next, next_element_from_composition):
118 After advancing IT past the composition, resync the bidi iterator
119 with IT's position. (Bug#5977)
120
a63f80b4
DN
1212010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
122
123 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
124 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
125
ff5dec5c
SM
1262010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
127
128 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
129
8785b888
EZ
1302010-04-23 Eli Zaretskii <eliz@gnu.org>
131
58ccf243 132 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
133 * xdisp.c (pop_it): When the stack is popped after displaying
134 from a string, bidi-iterate to exit from the text portion covered
135 by the `display' property or overlay. (Bug#5988, bug#5920)
136
feeb1604
DN
1372010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
138
8e324eb6
DN
139 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
140 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
141
809fcaba
DN
142 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
143 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
144
ed710380
DN
145 Simplify STARTFILES definition.
146 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
147 relying on Makefile.in to define it.
148 * s/cygwin.h (START_FILES): Likewise.
149 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
150
feeb1604
DN
151 Clean up Solaris code.
152 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
153 (LIB_MOTIF): Remove, configure takes care of this.
154 (NOT_USING_MOTIF): Remove, unused.
155 * xrdb.c: Remove #if 0-ed #include.
156 (SYSV): Remove conditional for old SysV.
157 * sysdep.c (closedir): Remove conditional code for Solaris,
158 Solaris has closedir.
159
a0d0b563
JD
1602010-04-22 Jan Djärv <jan.h.d@swipnet.se>
161
162 * xsettings.c (read_and_apply_settings): Check if current_font is
163 NULL before strcmp (Bug#6001).
164
56bae7c7
DN
1652010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
166
167 Clean up HP-UX files.
168 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
169 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
170 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
171 * s/hpux10-20.h: ... to the only user, here.
172
372b7a95
EZ
1732010-04-21 Eli Zaretskii <eliz@gnu.org>
174
175 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
176 use buffer-local values of paragraph-start and paragraph-separate.
177 <paragraph_start_re, paragraph_separate_re>: Rename from
178 fallback_paragraph_start_re and fallback_paragraph_separate_re.
179 (Bug#5992)
180
f904c0f9
JD
1812010-04-21 Jan Djärv <jan.h.d@swipnet.se>
182
183 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
184 current_tool_bar_style are new.
185 (store_config_changed_event): Rename from store_font_changed_event.
186 (XSETTINGS_TOOL_BAR_STYLE): New define.
187 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
188 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
189 HAVE_XFT.
190 (something_changedCB): store_font_changed_event is now
191 store_config_changed_event
192 (parse_settings): Rename from parse_xft_settings. Read
193 non-xft xsettings outside #ifdef HAVE_XFT.
194 (read_settings): Renamed from read_xft_settings.
195 (apply_xft_settings): Take current settings as parameter. Do not
196 call read_(xft)_settings.
197 (read_and_apply_settings): New function.
198 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
199 read_and_apply_settings if there are settings to be read.
200 (init_xsettings): Renamed from init_xfd_settings.
201 Call read_and_apply_settings unconditionally.
202 (xsettings_initialize): Call init_xsettings.
203 (Ftool_bar_get_system_style): New function.
204 (syms_of_xsettings): Define Qmonospace_font_name and
205 Qtool_bar_style. Initialize current_tool_bar_style to nil.
206 defsubr Stool_bar_get_system_style. Fprovide on
207 dynamic-setting.
31a01b90 208 Move misplaced HAVE_GCONF
f904c0f9
JD
209
210 * xsettings.h (Ftool_bar_get_system_style): Declare.
211
212 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
213 Qtext, Qboth, Qboth_horiz are new.
214 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
215 Vtool_bar_style, tool_bar_max_label_size.
216
217 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
218
219 * keyboard.c: QClabel is new.
220 (parse_tool_bar_item): Take out QClabel from tool bar items.
221 Try to construct a label if ther is no QClabel.
222 (syms_of_keyboard): Intern :label as QClabel.
223
224 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
225 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
226 New.
227
228 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
229 dynamic-setting.el.
230
231 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
232 (xg_make_tool_item, xg_show_toolbar_item): New function.
233 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
234 Call xg_make_tool_item to make a tool bar item.
235 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
236
237 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
238 into account for toolbars.
239
c632dfda
JD
2402010-04-21 Jan Djärv <jan.h.d@swipnet.se>
241
242 * data.c (make_blv): Declarations before code (Bug#5993).
243
10efe302
GM
2442010-04-21 Glenn Morris <rgm@gnu.org>
245
246 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
247 Define using autoconf, not cpp.
248 (LIBXSM): New variable, set by autoconf.
249 (LIBXT): Use $LIBXSM.
250
4285ac5a
DN
2512010-04-21 Dan Nicolaescu <local_user@dannlt>
252
3ec759e7
DN
253 Remove NOMULTIPLEJOBS, unused.
254 * s/template.h (NOMULTIPLEJOBS):
255 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
256
4285ac5a
DN
257 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
258 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
259 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
260 detects -znocombreloc and passes it to the linker
261 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
262
2807228d
GM
2632010-04-21 Glenn Morris <rgm@gnu.org>
264
265 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
266
574c05e2
KK
2672010-04-21 Karel Klíč <kklic@redhat.com>
268
269 * Makefile.in (LIBSELINUX_LIBS): New.
270 (LIBES): Add $LIBSELINUX_LIBS.
271 * eval.c, lisp.h (call7): New function.
272 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
273 (Ffile_selinux_context, Fset_file_selinux_context):
274 New functions.
275 (Fcopy_file): New parameter preserve-selinux-context.
276 (Frename_file): Preserve selinux context when renaming by copy-file.
277
91eac4bb
JB
2782010-04-21 Juanma Barranquero <lekktu@gmail.com>
279 Eli Zaretskii <eliz@gnu.org>
280
50426a04
JB
281 Don't depend on cm.c or termcap.c on Windows, use stubs.
282 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
283 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
284 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
285 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
286 (sys_tputs, sys_tgetstr): New stubs.
287 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
288 (tputs, tgetstr): New; define to sys_*.
91eac4bb 289
938efb77
JB
2902010-04-20 Juanma Barranquero <lekktu@gmail.com>
291
292 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
293
b4bf28b7
SM
2942010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
295
8b1e1112
SM
296 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
297 Just signal a warning rather than an error when inside a let.
298 (Fmake_variable_frame_local): Add the same test.
299
933ac235
SM
300 * font.c (syms_of_font): Make the style table vars read-only.
301
b4bf28b7
SM
302 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
303 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
304
305 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
306
93d68d0c
EZ
3072010-04-20 Eli Zaretskii <eliz@gnu.org>
308
309 Fix R2L paragraph display on TTY.
310
311 * xdisp.c (unproduce_glyphs): New function.
312 (display_line): Use it when produced glyphs are discarded from R2L
313 glyph rows.
314 (append_composite_glyph): In R2L rows, prepend the glyph rather
315 than appending it.
316
317 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
318 rather than append it. Set up the resolved_level and bidi_type
319 attributes of the appended glyph.
283ccc18
EZ
320 (produce_special_glyphs): Mirror the backslash continuation
321 character in R2L lines.
93d68d0c 322
283ccc18 323 Implement display of R2L paragraphs in GUI sessions.
26cdf528 324
283ccc18
EZ
325 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
326 append_stretch_glyph.
327 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
328 off-by-one error in computing x at end of text in the row.
329 (append_stretch_glyph): In reversed row, prepend the glyph rather
330 than append it. Set resolved_level and bidi_type of the glyph.
331 (extend_face_to_end_of_line): If the row is reversed, prepend a
332 stretch glyph whose width is such that the rightmost glyph will be
333 drawn at the right margin of the window. Fix off-by-one error on
334 TTY frames in testing whether a line needs face extension. Fix
335 face extension at ZV. If this is the last glyph row, use
336 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
337 region face.
338 (set_cursor_from_row, display_line): Use
26cdf528
EZ
339 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
340 row->continuation_lines_width.
283ccc18
EZ
341 (next_element_from_buffer): Don't call bidi_paragraph_init if we
342 are at ZV. Fixes a crash when reseated to ZV by
343 try_window_reusing_current_matrix.
45903529
EZ
344 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
345 which happens with R2L glyph rows. Fixes a crash when inserting a
346 character at end of an R2L line.
283ccc18
EZ
347 (set_cursor_from_row): Don't be fooled by truncated rows: don't
348 treat them as having zero-width characters. Improve comments.
349 Don't reverse pos_before and pos_after for reversed glyph rows.
350 Set cursor.x to negative value when the cursor might be on the
351 left fringe.
352 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
353 left fringe, not the right one.
f951a506
EZ
354 (notice_overwritten_cursor, draw_phys_cursor_glyph)
355 (erase_phys_cursor): For reversed cursor_row, support cursor on
356 the left fringe.
357
283ccc18
EZ
358 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
359 of continuation indicators on the fringes.
360 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
361 left fringe.
362
f951a506
EZ
363 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
364 draw cursor on the left fringe.
365
366 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
367 cursor on the left fringe.
368
f951a506
EZ
369 * dispnew.c (update_text_area): Handle reversed desired rows when
370 the cursor is on the left fringe.
371 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
372 below, not by 0, for when the cursor is on the left fringe.
373
3bb49aaf
JD
3742010-04-20 Jan Djärv <jan.h.d@swipnet.se>
375
376 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
377 widget is a scrollbar.
378
c0be27fd
KH
3792010-04-20 Kenichi Handa <handa@m17n.org>
380
381 * charset.c (char_charset): Consider Vcharset_non_preferred_head
382 only when the arg CHARSET_LIST is nil.
383
ce5b453a
SM
3842010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
385
386 Make variable forwarding explicit rather the using special values.
387 Basically, this makes the structure of buffer-local values and object
388 forwarding explicit in the type of Lisp_Symbols rather than use
389 special Lisp_Objects for that. This tends to lead to slightly more
390 verbose code, but is more C-like, simpler, and makes it easier to make
391 sure we handled all cases, among other things by letting the compiler
392 help us check it.
393 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
394 Removing forwarding objects.
395 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
396 (struct Lisp_Symbol): Make the various forms of variable-forwarding
397 explicit rather than hiding them inside Lisp_Object "values".
398 (XFWDTYPE): New macro.
399 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
400 (XBUFFER_LOCAL_VALUE): Remove.
401 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
402 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
403 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
404 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
405 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
406 Remove the Lisp_Misc_* header.
407 (struct Lisp_Buffer_Local_Value): Redefine.
408 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
409 (struct Lisp_Misc_Any): Add filler to get the right size.
410 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
411 Lisp_Intfwd.
412 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
413 (DEFVAR_KBOARD): Allocate a forwarding object.
414 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
415 (let_shadows_global_binding_p): New function.
416 (union Lisp_Val_Fwd): New type.
417 (make_blv): New function.
418 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
419 (store_symval_forwarding, swap_in_global_binding, Fboundp)
420 (swap_in_symval_forwarding, find_symbol_value, Fset)
421 (let_shadows_buffer_binding_p, set_internal, default_value)
422 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
423 (Fkill_local_variable, Fmake_variable_frame_local)
424 (Flocal_variable_p, Flocal_variable_if_set_p)
425 (Fvariable_binding_locus):
426 * xdisp.c (select_frame_for_redisplay):
427 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
428 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
429 * frame.c (store_frame_param):
430 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
431 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
432 value structure.
433 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
434 (clone_per_buffer_values): Only adjust markers into the current buffer.
435 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
436 (Fbuffer_local_value, set_buffer_internal_1)
437 (swap_out_buffer_local_variables):
438 Adapt to the new symbol value structure.
439 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
440 (defvar_per_buffer): Take a new arg for the fwd object.
441 (buffer_lisp_local_variables): Return a proper alist (different fix
442 for bug#4138).
443 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
444 (Fgarbage_collect): Don't handle buffer_defaults specially.
445 (mark_object): Handle new symbol value structure rather than the old
446 special Lisp_Misc_* objects.
447 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
448 * term.c (set_tty_color_mode):
449 * bidi.c (bidi_initialize): Don't access the ->value field directly.
450 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
451 a buffer_local_flags.
452 * print.c (print_object): Get rid of impossible forwarding objects.
453
fd3998ff
EZ
4542010-04-19 Eli Zaretskii <eliz@gnu.org>
455
456 * bidi.c (bidi_get_type, bidi_get_category)
457 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
458 (bidi_type_of_next_char, bidi_level_of_next_char):
459 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 460
e42cd1a7
JB
4612010-04-19 Juanma Barranquero <lekktu@gmail.com>
462
463 * dired.c (Ffile_attributes): Fix typo in docstring.
464
6e104790 4652010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
466
467 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
468 NSInteger (Bug#5811).
469
6e104790 4702010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
471
472 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
473 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
474
6e104790 4752010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
476
477 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
478
6e104790
SM
4792010-04-19 Chong Yidong <cyd@stupidchicken.com>
480
481 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
482 terminal frames (Bug#5837).
483
37dcfea0
EZ
4842010-04-19 Eli Zaretskii <eliz@gnu.org>
485
d1da276f
EZ
486 * .gdbinit (xsubchartable): New command.
487
37dcfea0
EZ
4882010-04-19 Eli Zaretskii <eliz@gnu.org>
489
490 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 491 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
492 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
493 and
494 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
495
e9515805
SM
4962010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
497
498 * alloc.c (Fpurecopy): Hash-cons if requested.
499 (syms_of_alloc): Update purify-flag docstring.
500
22aa44a8
JD
5012010-04-18 Jan Djärv <jan.h.d@swipnet.se>
502
503 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
504 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
505
ebb5722e
EZ
5062010-04-17 Eli Zaretskii <eliz@gnu.org>
507
508 Fix a crash when an NSM character is inserted at BEGV.
509
510 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
511 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
512 NEUTRAL_B or UNKNOWN_BT.
513
0f4442ef
EZ
5142010-04-16 Eli Zaretskii <eliz@gnu.org>
515
516 * xdisp.c (set_cursor_from_row): Don't consider possibility of
517 other rows with cursor unless they are different from this row and
518 this row is part of a continued line. (Bug#5943)
519
7d4e45f8
DN
5202010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
521
522 * s/freebsd.h: Restore osreldate.h include.
523 Suggested by Naohiro Aota.
524
5ba5ec85
J
5252010-04-16 Jan Djärv <jan.h.d@swipnet.se>
526
527 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
528
20af301d
CY
5292010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
530
531 * s/cygwin.h: Avoid linking against static libgcc.
532
a4b000fb
JL
5332010-04-15 Juri Linkov <juri@jurta.org>
534
535 * window.c: Add Qscroll_command.
536 Remove Vscroll_preserve_screen_position_commands.
537 (window_scroll_pixel_based, window_scroll_line_based): Check the
538 `scroll-command' property on the last command instead of searching
539 the last command in Vscroll_preserve_screen_position_commands.
540 (syms_of_window): Initialize and staticpro `Qscroll_command'.
541 Put Qscroll_command property on Qscroll_up and Qscroll_down.
542 (scroll-preserve-screen-position): Doc fix.
543 (Vscroll_preserve_screen_position_commands): Remove variable.
544
bc319ba4
DN
5452010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
546
6bb24457
DN
547 * xdisp.c (message): Do not use NO_ARG_ARRAY.
548
19d4c244
DN
5492010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
550
551 Reduce cpp use in Makefile.in.
552 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
553 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
554 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
555 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
556 (CRT0_COMPILE): Remove, inline it in the only user.
557
32129746
JL
5582010-04-14 Juri Linkov <juri@jurta.org>
559
560 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
561 `scroll-up-command' and `M-v' from `scroll-down' to
562 `scroll-down-command'.
563
9013a7f8
JL
5642010-04-14 Juri Linkov <juri@jurta.org>
565
566 * window.c (Vscroll_preserve_screen_position_commands): New variable
567 with the default value as the list of Qscroll_down and Qscroll_up.
568 (window_scroll_pixel_based, window_scroll_line_based): Search the
569 last command in the list Vscroll_preserve_screen_position_commands
570 instead of comparing with Qscroll_up and Qscroll_down.
571
4bef8d26
JD
5722010-04-13 Jan Djärv <jan.h.d@swipnet.se>
573
92848133
JD
574 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
575 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
576 does that.
577
4bef8d26
JD
578 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
579 to zero.
580
58b963f7
SM
5812010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
582
84164a0d
SM
583 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
584
2b0a91e7
SM
585 Try to solve the problem of spurious EOF chars in long lines of text
586 sent to interactive subprocesses.
587 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
588 (system_process_attributes): Remove unused var `ttotal'.
589 * process.c (send_process): Don't bother breaking long line with EOF
590 chars when talking to ttys any more.
591 (wait_reading_process_output): Output a warning when called in such
592 a way that it could block without being interruptible.
593
58b963f7
SM
594 Try to detect file modification within the same second.
595 * buffer.h (struct buffer): New field modtime_size.
596 * buffer.c (reset_buffer): Initialize it.
597 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
598 (Fverify_visited_file_modtime): Check it.
599 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
600 (Fset_visited_file_modtime): Set (or clear) it.
601
01f5787b
SM
6022010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
603
604 * process.c (status_notify): Remove unused var `ro'.
605
83725342
JD
6062010-04-12 Jan Djärv <jan.h.d@swipnet.se>
607
608 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
609 more than one visual (Bug#5938).
610
b9465836
DN
6112010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
612
50426a04
JB
613 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
614 Undefine.
b9465836 615
8d9c8ece
DN
6162010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
617
b1f52161
DN
618 Remove C_SWITCH_SYSTEM_TEMACS.
619 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
620 (malloc, realloc, free): Use emacs, not temacs for conditional
621 definition.
622
623 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
624 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
625
8d9c8ece
DN
626 Use autoconf, not cpp for some variables.
627 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
628 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
629 (ALL_CFLAGS): Use them as make variables.
630 (really-lwlib, really-oldXMenu): Do not pass them.
631
1ecb2d3f
JD
6322010-04-11 Jan Djärv <jan.h.d@swipnet.se>
633
634 * xmenu.c (apply_systemfont_to_dialog): New.
635 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
636
3a4fa2f2
SM
6372010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
638
97e53006
SM
639 * process.c (exec_sentinel): Preserve current-buffer.
640
3a4fa2f2
SM
641 * process.c (read_process_output): Move the save-current-buffer to
642 apply to both the filter and the non-filter branches.
643
88df7221
DN
6442010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
645
646 * s/msdos.h (UNEXEC): New definition.
647
5634ff85
YM
6482010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
649
6eff5c3d
YM
650 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
651 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
652
653 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
654 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
655 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
656 TRY_WINDOW_CHECK_MARGINS.
657
658 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
659 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
660 width only when it is for padding.
5634ff85 661
b13aef54
J
6622010-04-09 Jan Djärv <jan.h.d@swipnet.se>
663
664 * xfns.c (Fx_show_tip): Call try_window in a loop until
665 fonts_changed_p is zero (Bug#2423).
666
21d28484
EZ
6672010-04-08 Eli Zaretskii <eliz@gnu.org>
668
669 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
670 the end of TEXT_AREA. (Bug#5856)
671
0269ef77
JD
6722010-04-08 Jan Djärv <jan.h.d@swipnet.se>
673
674 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
675 HAVE_GCONF.
676
5930fe97
EZ
6772010-04-08 Eli Zaretskii <eliz@gnu.org>
678
679 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
680 prev.orig_type, for resolving type of NSM. (Bug#5858)
681
99852628
JD
6822010-04-08 Jan Djärv <jan.h.d@swipnet.se>
683
684 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
685 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
686 in current_font.
687 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
688 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
689 New functions.
690 (syms_of_xsettings): Initialize current_font.
691 defsubr Sfont_get_system_normal_font.
99852628
JD
692
693 * xsettings.h (Ffont_get_system_normal_font,
694 xsettings_get_system_normal_font): Declare.
695
696 * xfns.c (extern xlwmenu_default_font): Remove.
697 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
698 to xlwmenu.c.
699
700 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
701 menu items in UTF-8.
702
703 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
704 (apply_systemfont_to_menu): New function.
705 (set_frame_menubar, create_and_show_popup_menu): Call
706 apply_systemfont_to_menu.
707
7fc874c4
J
7082010-04-07 Jan Djärv <jan.h.d@swipnet.se>
709
710 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
711 FRAME_LINE_TO_PIXEL_Y.
712
713 * xterm.c (x_set_window_size_1): Don't add border_width/height to
714 pixelwidth/height.
715
863bf481
DN
7162010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
717
5e5a3b92
DN
718 Simplify code for HP machines.
719 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
720 for GNU_LINUX, not needed.
721 (UNEXEC, NEED_BSDTTY): Move definitions...
722 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
723
863bf481
DN
724 * m/iris4d.h (UNEXEC): Move definition ...
725 * s/irix6-5.h (UNEXEC): ... here.
726
3e6bec3b
JD
7272010-04-04 Jan Djärv <jan.h.d@swipnet.se>
728
729 * xfns.c (set_machine_and_pid_properties): New function.
730 (Fx_create_frame): Call set_machine_and_pid_properties.
731
2912322b
SM
7322010-04-03 Eli Zaretskii <eliz@gnu.org>
733
1502b819
EZ
734 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
735 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
736 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
737
2912322b
SM
738 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
739 in this function. (Bug#5703)
740
7412010-04-03 Chong Yidong <cyd@stupidchicken.com>
742
743 * nsterm.h: Fix last change.
744
c435b432
DN
7452010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
746
a568f507
DN
747 * m/intel386.h (NO_REMAP): Move definition ...
748 * s/msdos.h (NO_REMAP): ... here.
749
4cd9f6c2
DN
750 * m/vax.h (CRT0_DUMMIES): Remove, unused.
751
c435b432
DN
752 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
753 used on those platforms.
754
42a2c622
DN
7552010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
756
757 Remove extern errno declarations.
758 * xterm.c:
759 * xrdb.c:
760 * w32term.c:
761 * unexec.c:
762 * unexaix.c:
763 * sysdep.c:
764 * process.c:
765 * lread.c:
766 * keyboard.c:
767 * floatfns.c:
768 * filelock.c:
769 * fileio.c:
770 * emacs.c (main):
771 * ecrt0.c:
772 * dispnew.c:
773 * callproc.c:
774 * buffer.c: Remove errno extern declarations.
775 * s/netbsd.h (NEED_ERRNO): Remove.
776
8224f93d
DN
7772010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
778
779 Remove all uses of LIBX11_SYSTEM.
780 * Makefile.in (LIBX11_SYSTEM): Remove.
781 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
782 instead.
783
814062c7
EZ
7842010-04-01 Eli Zaretskii <eliz@gnu.org>
785
ed68db4d
EZ
786 Remove support for DJGPP v1.x (bug#5813).
787
788 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
789 * s/msdos.h:
790 * unexec.c (make_hdr, copy_text_and_data):
791 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 792 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
793 (IT_set_terminal_modes, __write, _rename, gethostname)
794 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
795 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
796 the value of __DJGPP__.
ed68db4d
EZ
797 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
798 compatibility code.
8224f93d
DN
799 * lread.c:
800 * gmalloc.c (memalign):
801 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
802 * emacs.c (main):
803 * dosfns.c (init_dosfns):
ed68db4d
EZ
804 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
805
52f4d8d5
EZ
8062010-04-01 Eli Zaretskii <eliz@gnu.org>
807
814062c7
EZ
808 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
809 string with `cursor' property comes from an `after-string'
810 overlay. (Bug#5816)
811
0dc2e11d
GM
8122010-04-01 Glenn Morris <rgm@gnu.org>
813
814 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
815 Define as Makefile variables.
816 (LIBX): Use above variables rather than directly using autoconf.
817
1d29df59
DN
8182010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
819
820 Clean up BSD_SYSTEM use.
821 * xterm.c:
822 * process.c:
823 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
824 for including <sys/ioctl.h>.
825 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
826 code is only used for MSDOS.
827
1546c559
JL
8282010-03-31 Juri Linkov <juri@jurta.org>
829
830 * image.c: Add `Qextension_data'.
831 (syms_of_image): Initialize and staticpro `Qextension_data'.
832 (Fimage_metadata): Rename from `Fimage_extension_data'.
833 (gif_load): Put GIF extension data to the property
834 `Qextension_data'.
835
b8a1d5a1
CY
8362010-04-05 Chong Yidong <cyd@stupidchicken.com>
837
838 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
839 terminal frames (Bug#5837).
840
6521c534
CY
8412010-03-31 Chong Yidong <cyd@stupidchicken.com>
842
843 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
844 * nsterm.h: Fix prototype.
845
52c30783
EZ
8462010-03-31 Eli Zaretskii <eliz@gnu.org>
847
848 * xdisp.c (highlight_trailing_whitespace): Support highlight of
849 trailing whitespace in right-to-left rows.
850
855a0da7
SM
8512010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
852
853 Get rid of the direct_output optimizations.
854 * keyboard.c (nonundocount): Remove extern declaration.
855 (command_loop_1): Remove brittle optimisation for cheap and
856 common operations.
857 * xdisp.c (redisplay_internal): Don't bother checking
858 redisplay_performed_directly_p any more.
859 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
860 any more.
861 * dispnew.c (redisplay_performed_directly_p)
862 (direct_output_for_insert, direct_output_forward_char):
863 * dispextern.h (redisplay_performed_directly_p)
864 (direct_output_for_insert, direct_output_forward_char): Remove.
865 * cmds.c (nonundocount): Make it static.
866
85738751 8672010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
868
869 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
870
85738751 8712010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
872
873 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
874 invisible (Bug#5766).
875
85738751 8762010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 877
855a0da7
SM
878 * xdisp.c (x_consider_frame_title, update_window_cursor):
879 Remove HAVE_NS conditionals.
194d44e7 880 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
881
882 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
883 filename for the title.
884 (ns_set_doc_edited): Do nothing if the selected window is a
885 minibuffer window.
886
887 * nsterm.h: Add prototypes for ns_set_name_as_filename and
888 ns_set_doc_edited.
889
890 * nsterm.m: Remove unneeded prototype.
891
85738751 8922010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
893
894 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
895 in the DOC file. (Bug#5336)
896
85738751 8972010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
898
899 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
900
75d1428c
SM
9012010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
902
903 * window.c (keys_of_window): Remove redundant/overridden bindings.
904
82043cfb
EZ
9052010-03-30 Eli Zaretskii <eliz@gnu.org>
906
907 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
908 Restore original behavior when the iterator is not bidi_p.
909
b5dd0ae7
DN
9102010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
911
912 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
913
bd924a5d
EZ
9142010-03-30 Eli Zaretskii <eliz@gnu.org>
915
916 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
917 are outside the range of cached character positions.
918
3580374b
JB
9192010-03-30 Juanma Barranquero <lekktu@gmail.com>
920
921 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
922
a7b02820
EZ
9232010-03-30 Eli Zaretskii <eliz@gnu.org>
924
925 Initial support for bidirectional editing.
926
927 * Makefile.in (obj): Include bidi.o.
928 (bidi.o): New target.
929
930 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
931 ($(BLD)/bidi.$(O)): New target.
932
933 * bidi.c: New file.
934
935 * buffer.h (struct buffer): New members bidi_display_reordering
936 and bidi_paragraph_direction.
937
938 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
939 and bidi_paragraph_direction.
940 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
941 and bidi-paragraph-direction.
942 (Fbuffer_swap_text): Swap the values of
943 bidi_display_reordering and bidi_paragraph_direction.
944
945 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
946 (bidi_type_t, bidi_dir_t): New types.
947 (bidi_saved_info, bidi_stack, bidi_it): New structures.
948 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
949 prev_stop, base_level_stop, and eol_pos.
950 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
951 (IT_STACK_SIZE): Enlarge to 5.
952 (struct glyph_row): New member reversed_p.
953 <string_buffer_position>: Update prototype.
954 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
955 glyph_row if bidi_it.paragraph_dir == R2L.
956 (struct glyph): New members resolved_level and bidi_type.
957
958 * dispnew.c (direct_output_forward_char): Give up if we need bidi
959 processing or buffer's direction is right-to-left.
960 (prepare_desired_row): Preserve the reversed_p flag.
961 (row_equal_p): Compare the reversed_p attributes as well.
962
963 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
964 bidi_init_it and set it->paragraph_embedding from the current
965 buffer's value of bidi_paragraph_direction.
966 (reseat_1): Initialize bidi_it.first_elt.
967 (set_iterator_to_next, next_element_from_buffer): Use the value of
968 paragraph_embedding to determine the paragraph direction.
969 (set_iterator_to_next): Under bidi reordering, call
970 bidi_get_next_char_visually. Call bidi_paragraph_init if the
971 new_paragraph flag is set in the bidi iterator.
972 (next_element_from_buffer): If bidi_it.first_elt is set,
973 initialize paragraph direction and find the first character to
974 display in the visual order. If reseated to a middle of a line,
975 prime the bidi iterator starting at the line's beginning. Handle
976 the situation where we overstepped stop_charpos due to
977 non-linearity of the bidi iteration. Likewise for when we back up
978 beyond the previous stop_charpos. When moving across stop_charpos,
979 record it in prev_stop.
980 (display_line): Set row->end and it->start for the next row to the
981 next character in logical order. Always extend reversed_p rows to
982 the end of line, even if they end at ZV. Copy the reversed_p flag
983 to the next glyph row. Keep calling set_cursor_from_row for
984 bidi-reordered rows even if we already have a possible candidate
985 for cursor position. Set row_end after all the row's glyphs have
986 been produced, by looping over the glyphs. Record the position
987 after EOL in it->eol_pos, and use it to set end_pos of the last
988 row produced for a continued line.
989 <Qright_to_left, Qleft_to_right>: New variables.
990 (syms_of_xdisp): Initialize and staticpro them.
991 (string_buffer_position_lim): New function.
992 (string_buffer_position): Most of code moved to
993 string_buffer_position_lim. Last argument and return value are
994 now EMACS_INT; all callers changed.
995 (set_cursor_from_row): Rewritten to support bidirectional text and
996 reversed glyph rows.
997 (text_outside_line_unchanged_p, try_window_id): Disable
998 optimizations if we are reordering bidirectional text and the
999 paragraph direction can be affected by the change.
1000 (append_glyph, append_composite_glyph)
1001 (produce_image_glyph, append_stretch_glyph): Set the
1002 resolved_level and bidi_type members of each glyph.
1003 (append_glyph): If the glyph row is reversed, prepend the glyph
1004 rather than appending it.
1005 (handle_stop_backwards): New function.
1006 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1007 (reseat): call handle_stop_backwards to recompute prev_stop and
1008 base_level_stop for the new position.
1009 (handle_invisible_prop): Under bidi iteration, skip invisible text
1010 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1011 paragraph direction. Update IT->prev_stop after skipping
1012 invisible text.
1013 (move_it_in_display_line_to): New variables prev_method
1014 and prev_pos. Compare for strict equality in
1015 BUFFER_POS_REACHED_P.
1016 (try_cursor_movement): Examine all the candidate rows that occlude
1017 point, to return the best match. If rows are bidi-reordered
1018 and point moved backwards, back up to the row that is not a
1019 continuation line, and start looking for a suitable row from
1020 there.
1021
1022 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1023 rather than appending, if the glyph_row's reversed_p flag is set.
1024 Set the resolved_level and bidi_type members of each glyph.
1025
1026 * .gdbinit (pbiditype): New command.
1027 (pgx): Use it to display bidi level and type of the glyph.
1028 (pitx): Display some bidi information about the iterator.
1029 (prowlims, pmtxrows): New commands.
1030
32a8894e
DN
10312010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1032
1033 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1034 * s/usg5-4.h (LIBS_DEBUG):
1035 * s/irix6-5.h (C_DEBUG_SWITCH):
1036 * s/gnu-linux.h (LIBS_DEBUG):
1037 * s/darwin.h (LIBS_DEBUG):
1038 * s/bsd-common.h (LIBS_DEBUG):
1039 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1040 * m/iris4d.h (LIBS_DEBUG):
1041 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1042
1043 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1044 (LIBS_DEBUG): Remove definition.
1045
649dbf36
CY
10462010-03-27 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1049 Windows.
1050
cad4261f
YM
10512010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1052
1053 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1054 `connect' (Bug#5723).
1055
cd591dbc
HE
10562010-03-25 Helmut Eller <eller.helmut@gmail.com>
1057
1058 * process.c (Fmake_network_process): Call `select' for interrupted
1059 `connect' rather than creating new socket (Bug#5173).
1060
e867cb5d 10612010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1062
1063 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1064
1065 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1066
1067 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1068
e867cb5d 10692010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1070
1071 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1072 XLoadQueryFont.
1073
e867cb5d 10742010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1075
1076 * coding.c (decode_coding_ccl): Fix previous change for the
1077 multibyte case.
fb608df3
KH
1078 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1079 case that the output buffer is fullfilled.
1080 (encode_coding): Setup ccl program here.
fbdc1721 1081
e867cb5d 10822010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1083
1084 * editfns.c (Fformat): Account for string precision when computing
1085 field width (Bug#5710).
1086
5845f0ed
DN
10872010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1088
814fb708
DN
1089 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1090
5845f0ed
DN
1091 Simplify LIBS_MACHINE definitions.
1092 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1093 * m/iris4d.h (LIBS_MACHINE): Likewise.
1094 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1095 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1096 * s/netbsd.h: Remove commented out code.
5845f0ed 1097
b7064064
DN
10982010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1099
df7734b2
DN
1100 Remove dead code dealing with POSIX_SIGNALS.
1101 * atimer.c (set_alarm): Remove dead code, all USG systems define
1102 POSIX_SIGNALS.
1103 * data.c (arith_error): Likewise.
1104 * keyboard.c (input_available_signal, handle_user_signal)
1105 (interrupt_signal): Likewise.
1106 * process.c (sigchld_handler): Likewise.
1107 (create_process): Remove if 0 code. Remove HPUX conditional when
1108 !defined (POSIX_SIGNALS), it cannot be true.
1109 * syssignal.h: Remove USG5_4 and USG conditionals when
1110 !POSIX_SIGNALS, they cannot be true.
1111
b7064064
DN
1112 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1113 NO_SOCK_SIGIO, not used anymore.
1114
55da5ee3
DN
11152010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1116
0be96e3a
DN
1117 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1118 support vax on BSDs.
1119
55da5ee3
DN
1120 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1121 * s/aix4-2.h (ORDINARY_LINK): ... here.
1122
c0282183
AS
11232010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1124
82c3d67a
AS
1125 * Makefile.in (abs_builddir): Define.
1126 (bootstrap_exe): Use it.
1127 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1128
3613edce
SM
11292010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1130
1131 * Makefile.in (bootstrap_exe): Use an absolute name.
1132
7f110ddc
DN
11332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1134
22e87574
DN
1135 Remove support for old GNU/Linux using libc version 5.
1136 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1137 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1138
05a670e6
DN
1139 Consolidate redundant definitions in s/bsd-common.h.
1140 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1141 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1142 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1143 doing it in all files that include this one.
1144 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1145 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1146 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1147 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1148 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1149 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1150 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1151 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1152 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1153
2968f561
DN
1154 Consolidate redundant definitions.
1155 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1156 it's undefined in all files that include this one.
1157 (POSIX_SIGNALS): Define here instead of doing it in all files that
1158 include this one.
1159 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1160 (POSIX_SIGNALS): Do not define.
1161 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1162 (POSIX_SIGNALS): Do not define.
1163 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1164 (POSIX_SIGNALS): Do not define.
1165
15d25dc0
DN
1166 Remove support for old UNIX System V systems.
1167 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1168 * s/usg-5-4-2.h: Remove.
1169
07e339e4
DN
1170 Remove support for Solaris on PPC and for old versions.
1171 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1172 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1173 that cancel each other.
1174 * s/sol2-3.h:
1175 * s/sol2-4.h:
1176 * s/sol2-5.h: Remove.
1177 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1178 (NO_REMAP): Remove, unused.
1179 (UNEXEC): Move definition ...
1180 * s/aix4-2.h (UNEXEC): ... here.
1181
7f110ddc
DN
1182 * s/openbsd.h: Remove support for non-ELF and for systems that do
1183 not support shared libraries.
1184 * s/netbsd.h:
1185 * s/freebsd.h: Likewise.
1186
605f35cd
DN
11872010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1188
1189 Remove non-working support for lynxos 3.0.
1190 * s/lynxos.h: Remove file.
1191
1192 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1193 COFF_BSD_SYMBOLS, nothing defines it anymore.
1194
aed71cf4
DN
11952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1196
1197 Remove obsolete uses of HAVE_SHM.
1198 * emacs.c (standard_args):
1199 (Fdump_emacs):
1200 (syms_of_emacs): Remove code depending on HAVE_SHM.
1201
1202 * alloc.c: Remove HAVE_SHM dependent definition.
1203
1204 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1205
aded53ff
GM
12062010-03-18 Glenn Morris <rgm@gnu.org>
1207
17284745
GM
1208 * emacs.c (USAGE4): Hard-code bug address.
1209 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1210 (bug_reporting_address): Remove.
1211 (main): Don't call bug_reporting_address.
1212
aded53ff
GM
1213 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1214 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1215
303500aa
CY
12162010-03-15 Chong Yidong <cyd@stupidchicken.com>
1217
1218 * xfns.c (Fx_create_frame):
1219 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1220 on left.
1221
cef3058f
CY
12222010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1223
1224 * editfns.c (Fformat): Account for string precision when computing
1225 field width (Bug#5710).
1226
a647d59d
CY
12272010-03-12 Chong Yidong <cyd@stupidchicken.com>
1228
4fa42018
CY
1229 * xfns.c (Fx_create_frame): Set default to Qright.
1230
a647d59d
CY
1231 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1232 all window systems.
1233
6da23aaa
EZ
12342010-03-12 Eli Zaretskii <eliz@gnu.org>
1235
a96f6398 1236 These changes remove termcap.c from the build on Posix platforms.
83d02def 1237 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1238 (MSDOS_OBJ): ...to here.
1239 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1240 now identical to when LIBS_TERMCAP is defined.
1241
1242 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1243
1244 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1245
a96f6398 1246 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1247
288f9fc0
CY
12482010-03-10 Chong Yidong <cyd@stupidchicken.com>
1249
1250 * Branch for 23.2.
1251
d48cd3f4
SM
12522010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1253
1254 Cleanup setup of gl_state in various parts of the code.
1255 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1256 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1257 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1258 (skip_chars):
1259 * regex.c (regex_compile): Use it.
1260 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1261 it's now set in regex_compile when/if we need it.
1262
618db430
SM
12632010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1264
c0335e02
SM
1265 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1266 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1267 (QUIT): Use it to consolidate code and remove redundancy.
1268 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1269
254c06a8
SM
1270 * regex.c (regex_compile): Setup gl_state as well.
1271
618db430
SM
1272 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1273 (in_classes): Use CONSP before XCAR/XCDR.
1274
233f0c9f
CY
12752010-03-03 Chong Yidong <cyd@stupidchicken.com>
1276
1277 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1278 definitions, so that keyboard macros are correctly handled
1279 (Bug#5481).
1280
75f80e63
EZ
12812010-03-02 Eli Zaretskii <eliz@gnu.org>
1282
1283 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1284 text that could be relocated inside the call to emacs_mule_char.
1285 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1286 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1287
dcfb9bc4
KH
12882010-03-02 Kenichi Handa <handa@m17n.org>
1289
fc9a17bc
KH
1290 * character.c (parse_str_as_multibyte): Fix handling of the
1291 multibyte form of raw-bytes.
1292 (str_as_multibyte): Likewise.
1293
dcfb9bc4
KH
1294 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1295 form of raw-bytes.
1296
412c01b6
CY
12972010-02-28 Chong Yidong <cyd@stupidchicken.com>
1298
1299 * charset.c (load_charset_map_from_file)
1300 (load_charset_map_from_vector): Zero out allocated
1301 charset_map_entries before using them.
1302
df7e1ea0
AS
13032010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1304
1305 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1306
fe69a722
CY
13072010-02-27 Chong Yidong <cyd@stupidchicken.com>
1308
4ed28cf4
CY
1309 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1310 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1311
7379cfce
KH
13122010-02-26 Kenichi Handa <handa@m17n.org>
1313
f88cc4d6
KH
1314 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1315
7379cfce
KH
1316 * xdisp.c (reseat_to_string): Fix previous change.
1317
cf2fdcfb
CY
13182010-02-26 David Reitter <david.reitter@gmail.com>
1319
1320 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1321 Lisp_Object (Bug#4736).
1322
cc6c7c75
KH
13232010-02-25 Kenichi Handa <handa@m17n.org>
1324
1325 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1326
32e737d7
JD
13272010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1328
1329 * xterm.c (XTflash): Move declarations before statements.
1330
1331 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1332 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1333 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1334 (xg_create_tool_bar): Remove unused variables.
1335 (x_wm_set_size_hint): Move declarations before statements.
1336 (xg_create_frame_widgets): Remove variable grav,
1337
676cae9f
CY
13382010-02-21 Chong Yidong <cyd@stupidchicken.com>
1339
1340 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1341
886cc2b8
SM
13422010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1343
1344 * term.c (fatal): Add a final \n if needed (bug#5596).
1345
ddb2d8e2
CY
13462010-02-18 Chong Yidong <cyd@stupidchicken.com>
1347
1348 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1349
2a4f8d3d
GM
13502010-02-18 Glenn Morris <rgm@gnu.org>
1351
1352 * callint.c (Finteractive): Doc fix.
1353
ebaf11b6
KH
13542010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1355
886cc2b8
SM
1356 * coding.c (record_conversion_result):
1357 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1358 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1359 memory allocation error.
1360
d0396581
KH
13612010-02-17 Kenichi Handa <handa@m17n.org>
1362
886cc2b8
SM
1363 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1364 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1365 (decode_coding): Setup ccl program here. Keep looping when the
1366 decoder stopped because the output buffer is
1367 fullfilled (bug#5534).
1368
1369 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1370
98599f74
JD
13712010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1372
471e4f04 1373 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1374 bug #5571.
886cc2b8 1375 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1376 overdrawn.
98599f74 1377
182659ae
JD
13782010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1379
1380 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1381 doing_interact here.
1382 (ice_connection_closed): New function.
1383 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1384 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1385 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1386 returns I/O error.
1387 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1388 bug #5512.
1389
9be32c4e 13902010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1391
1392 * nsfont.m (nsfont_open): The system's value for the font descent
1393 is negative, so round it down to avoid clipping.
1394
a2f3eb19
CY
13952010-02-06 Chong Yidong <cyd@stupidchicken.com>
1396
1397 * charset.c (load_charset_map_from_file)
1398 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1399 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1400
3088147c
CY
14012010-02-05 Chong Yidong <cyd@stupidchicken.com>
1402
1403 * charset.c (load_charset_map_from_file): Allocate large
1404 charset_map_entries structure on the heap rather than the stack.
1405 (Bug#5526).
1406
b57d9029
KH
14072010-01-31 Kenichi Handa <handa@m17n.org>
1408
1409 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1410 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1411
c67d885b
CY
14122010-01-31 Chong Yidong <cyd@stupidchicken.com>
1413
1414 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1415 <deactivated@gmail.com> (Bug#3605).
1416
8fab2362
CY
14172010-01-31 David De La Harpe Golden <david@harpegolden.net>
1418
1419 * fileio.c (Frename_file): Correctly rename symlinks to
1420 directories (Bug#5496).
1421
cb2a62f2
CY
14222010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1423
1424 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1425
944c7a26
AS
14262010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1427
1428 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1429
c024ac08
CY
14302010-01-29 Chong Yidong <cyd@stupidchicken.com>
1431
1432 * frame.c (DEFAULT_ROWS): Change default to 35.
1433
1434 * xfns.c (x_default_font_parameter): Change default XFT font to
1435 monospace-10 (Bug#3643).
1436
af93af83
EZ
14372010-01-29 Eli Zaretskii <eliz@gnu.org>
1438
1439 * w32inevt.c (key_event): Remove unnecessary comparison of
1440 event->uChar.AsciiChar with 128.
1441
ca0eb708
CY
14422010-01-28 Chong Yidong <cyd@stupidchicken.com>
1443
b242dbfc
CY
1444 * fileio.c (Frename_file): Fix last change (Bug#5487).
1445
ca0eb708
CY
1446 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1447
1448 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1449
45d45af5
JD
14502010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1451
1452 * xfns.c (Fx_create_frame): Remove window size matching code from
1453 2010-01-15.
1454 (x_get_current_desktop, x_get_desktop_workarea): Remove
1455
7e233730
JR
14562010-01-27 Jason Rumney <jasonr@gnu.org>
1457
1458 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1459 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1460
86e893e3
KH
14612010-01-27 Kenichi Handa <handa@m17n.org>
1462
1463 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1464 pattern string (Bug#4209).
86e893e3 1465
8719abec
CY
14662010-01-27 David De La Harpe Golden <david@harpegolden.net>
1467
1468 * fileio.c (Frename_file): Call copy-directory and
1469 delete-directory for directories, in order to handle cross-device
1470 renaming (Bug#3353).
1471
844794c8
JD
14722010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1473
aa3e13b5 1474 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1475 sizes 24 and 10. Bug #3643.
844794c8 1476
bd4b5750
SM
14772010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1478
8dc1adf6 1479 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1480 * keymap.c (shadow_lookup): Add `remap' arg.
1481 (describe_map, describe_vector): Update calls to shadow_lookup.
1482 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1483 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1484 perform remapping during shadow_lookup check of remapped_sequences.
1485
285d07e2
CY
14862010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1487
1488 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1489 png_check_sig, which has been removed in libpng 1.4.
1490
c6d09b8d
CY
14912010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1492
1493 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1494 lacks this header file).
1495
3d782998
YM
14962010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1497
1498 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1499 as in Emacs 22.
1500
2aff7c53
YM
15012010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1502
1503 * lisp.h (make_pure_string): String pointer arg now points to const.
1504
1505 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1506 args now point to const.
1507
74327f7a
EZ
15082010-01-22 Eli Zaretskii <eliz@gnu.org>
1509
1510 * lread.c (Fload): Don't treat files without .elc extension as
1511 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1512 them. (bug#5303)
1513
4d1e6632
KH
15142010-01-20 Kenichi Handa <handa@m17n.org>
1515
1516 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1517 treat the source as actual byte sequence.
1518
1fdede8f
AM
15192010-01-19 Alan Mackenzie <acm@muc.de>
1520
1521 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1522 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1523 `signal_after_change_p' to `coherent_change_p', and make the
1524 invocation of `modify_region' conditional on it.
1525
67477f30
JD
15262010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1527
1528 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1529 for debug purpose.
1530 (syms_of_xsettings): Declare xft-settings.
1531
244b023e
CY
15322010-01-18 Chong Yidong <cyd@stupidchicken.com>
1533
1534 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1535
617364fe
CY
15362010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1537
1538 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1539
4fe22cdf
CY
15402010-01-16 Chong Yidong <cyd@stupidchicken.com>
1541
1542 * emacs.c (standard_args): Adjust arg priorities to reflect how
1543 they are processed in startup.el.
1544
e118d2be
AS
15452010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1546
1547 * Makefile.in (lisp, shortlisp): Update.
1548
523ae620
SM
15492010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1550
1551 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1552 code, link the new kboard into all_kboard before running Lisp code,
1553 and protect the new terminal with GCPRO (Bug#5365).
1554 (x_term_init): Remove unused var `atom'.
1555 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1556
f0d13888
JD
15572010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1558
1559 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1560 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1561 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1562 this. Bug #3643.
f0d13888 1563
cc320f07
KH
15642010-01-15 Kenichi Handa <handa@m17n.org>
1565
1566 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1567
7ffdf101
CY
15682010-01-15 Chong Yidong <cyd@stupidchicken.com>
1569
1570 * nsterm.m (Qnone): Define.
1571
1572 * nsfns.m (Qnone): Move definition to nsterm.m.
1573
d12bd917
KH
15742010-01-14 Kenichi Handa <handa@m17n.org>
1575
1576 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1577 systems.
1578
d9a7c140
KH
15792010-01-14 Kenichi Handa <handa@m17n.org>
1580
1581 Make auto-composition work on all buffers even if they are
1582 fundamental mode.
1583
1584 * composite.c (Vauto_composition_mode): New variable.
1585 (composition_compute_stop_pos): Check Vauto_composition_mode
1586 instead of Vauto_composition_function.
1587 (composition_adjust_point, Ffind_composition_internal): Likewise.
1588 (syms_of_composite): Declare Lisp variable
1589 "auto-composition-mode" here.
1590
63286bb2
CY
15912010-01-13 Chong Yidong <cyd@stupidchicken.com>
1592
1593 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1594 during call to vendor-specific-keysyms (Bug#5365).
1595
c2623ee7
YM
15962010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1597
1598 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1599 Call SIGNAL_THREAD_CHECK (Bug#5333).
1600
1601 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1602 Call SIGNAL_THREAD_CHECK.
1603
0b5397c2
SM
16042010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1605
1606 Try to fix bug#5314. This is probably not the final word, tho.
1607 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1608 recent-auto-save-p as a side-effect.
1609 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1610 * buffer.c (Fkill_buffer, reset_buffer):
1611 * editfns.c (Fsubst_char_in_region):
1612 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1613 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1614
dc954cb2
KH
16152010-01-13 Kenichi Handa <handa@m17n.org>
1616
1617 Display buffer name, etc. in mode line by composing correctly.
1618
1619 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1620 STRING is not nil.
0b5397c2 1621 (display_mode_element): Adjust for the change of
dc954cb2
KH
1622 decode_mode_spec and display_line.
1623 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1624 (display_string): Handle the case that STRING is non-null and
1625 LISP_STRING is not nil.
1626
0b5397c2
SM
1627 * xterm.c (x_draw_composite_glyph_string_foreground):
1628 Pay attention to s->face->overstrike.
dc954cb2
KH
1629
1630 * composite.c (composition_reseat_it): Don't check PT if STRING is
1631 non nil.
1632
4a00eaca
YM
16332010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1634
1635 * keyboard.c (read_char): Don't apply previous change when current
1636 buffer is unchanged by command execution.
1637
60abb287
JD
16382010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1639
1640 * keyboard.c (read_char): Return after executing from special map.
1641
893db5bc
GM
16422010-01-12 Glenn Morris <rgm@gnu.org>
1643
1644 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1645 bug-gnu-emacs rather than emacs-pretest-bug.
1646
4d03ece0
CY
16472010-01-11 Chong Yidong <cyd@stupidchicken.com>
1648
1649 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1650 initializing the Lisp variables that depend on them.
1651
1df47e38
YM
16522010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1653
1654 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1655 Clear areas that will not be updated after change of menu bar lines.
1656 Clear the menu bar window's current matrix when the window gets empty.
1657
2f1c6384
CY
16582010-01-09 Chong Yidong <cyd@stupidchicken.com>
1659
e398c61c
CY
1660 * intervals.h, textprop.c (extend_property_ranges): Return value
1661 and args changed. Discard properties that begin at or after the
1662 new end (Bug#5306).
1663
1664 * editfns.c (Fformat): Caller changed.
1665
e5a29a10
CY
1666 * nsterm.m (ns_set_default_prefs): Delete function.
1667 (syms_of_nsterm): Initialize ns_command_modifier,
1668 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1669 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1670
2f1c6384
CY
1671 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1672 position (Bug#4040).
1673
d427a9fa
EZ
16742010-01-09 Eli Zaretskii <eliz@gnu.org>
1675
1676 * editfns.c (Ffloat_time): Doc fix.
1677
21b9df2f
JD
16782010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1679
1680 * xfns.c (Fx_create_frame): Don't create frame larger than display
1681 by default bug#3643.
1682
4b00d3b1
YM
16832010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1684
1685 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1686 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1687 windows above internal border.
1688
1689 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1690 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1691 windows above internal border.
1692
1693 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1694 tool bar windows specially.
1695
1696 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1697
1698 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1699 specially.
1700 (XTflash): Take account of menu bar height.
1701
1702 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1703 specially.
1704
5075d853
JD
17052010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1706
ac146f82 1707 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1708 also be true before we can return early (bug #5339).
1709
474217c8
CY
17102010-01-06 David Reitter <david.reitter@gmail.com>
1711
1712 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1713 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1714 (Bug#3233).
1715
c0e6d47d
JD
17162010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1717
d0cf45b7
JD
1718 * font.c (font_open_entity): Enable chache and call cached_font_ok
1719 for the driver if defined.
1720 (QCuser_spec): New symbol.
1721 (font_spec_from_name): Save name as user-spec.
1722 (font_load_for_lface): Keep user-spec instead of name.
1723 (font_open_by_name): Save name as user-spec.
1724 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1725 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1726
1727 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1728 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1729 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1730
1731 * font.h (struct font_driver): Add cached_font_ok.
1732
c0e6d47d
JD
1733 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1734
7c583cd8
JD
17352010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1736
1737 * xterm.c (x_new_font): Move code for setting rows/cols before
1738 resizing ...
ac146f82 1739 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1740
1741 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1742 (xg_frame_resized, xg_frame_set_char_size):
1743 Call xg_clear_under_internal_border.
7c583cd8 1744 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1745
03f77f0a
CY
17462010-01-05 Chong Yidong <cyd@stupidchicken.com>
1747
1748 * keyboard.c (read_key_sequence): Catch keyboard switch after
1749 making a new tty frame (Bug#5095).
1750
2a1ef5be
KH
17512010-01-05 Kenichi Handa <handa@m17n.org>
1752
1753 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1754
e3eb1dae
SM
17552010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1756
1757 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1758 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1759 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1760
777013f2
MA
17612010-01-03 Michael Albinus <michael.albinus@gmx.de>
1762
1763 * dbusbind.c (xd_add_watch): Improve debug message.
1764 (xd_remove_watch): Improve debug message. If DATA is the session
1765 bus, unset D-Bus session environment.
1766 (Fdbus_init_bus): Pass the bus as argument to
1767 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1768
8932b1c2
CY
17692010-01-01 Chong Yidong <cyd@stupidchicken.com>
1770
87231e2c
CY
1771 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1772
4801c5fa
CY
1773 * lread.c (syms_of_lread): Make it clearer that these are the
1774 names of loaded files (Bug#5068).
1775
8932b1c2
CY
1776 * eval.c (run_hook_with_args): Handle the case where the global
1777 value has the obsolete single-function form (Bug#5026).
1778
11e3c684
CY
17792009-12-27 Chong Yidong <cyd@stupidchicken.com>
1780
1781 * minibuf.c (Fall_completions): Minor optimization.
1782
5b28ce35
EZ
17832009-12-26 Eli Zaretskii <eliz@gnu.org>
1784
5ce6e4f4
JB
1785 * .gdbinit (pgx): Fix display of composite glyphs.
1786 Display cmp.from and cmp.to as well.
1787 (pitx): Fix last change.
5b28ce35 1788
bcffff46
KH
17892009-12-25 Kenichi Handa <handa@m17n.org>
1790
1791 * composite.h (composition_adjust_point): Update prototype.
1792
1793 * composite.c (composition_reseat_it): Don't make a composition
1794 spanning over point.
1795 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1796 composable characters.
1797 (composition_adjust_point): New arg NEW_PT. Callers changed.
1798
1799 * keyboard.c (command_loop_1): Force redisplay if the last point
1800 was within a composition.
1801 (adjust_point_for_property): Don't adjust point for automatic
1802 composition when called after buffer modification.
1803
3f670e9a
EZ
18042009-12-19 Eli Zaretskii <eliz@gnu.org>
1805
5ce6e4f4
JB
1806 * .gdbinit (pitx): Don't use enum names, use their values.
1807 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1808 (pgx): Don't use enum names, use their values.
1809 (pitmethod): New helper command.
1810 (pitx): Use it to display iteration method.
1811 (pgrowit): New command.
1812
ad903955
EZ
1813 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1814
3f670e9a
EZ
1815 Update dependencies in Makefile.in.
1816
1817 * Makefile.in (alloc.o): Depend on termhooks.h.
1818 (atimer.o): Depend on blockinput.h.
1819 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1820 and frame.h.
1821 (callint.o): Depend on systime.h, coding.h, and composite.h.
1822 (callproc.o): Depend on buffer.h.
1823 (casefiddle.o): Don't depend on charset.h.
1824 (casetab.o): Depend on character.h.
1825 (ccl.o): Depend on composite.h.
1826 (chartab.o): Depend on ccl.h.
1827 (cm.o): Depend on dispextern.h.
1828 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1829 (coding.o): Don't depend on $(INTERVALS_H).
1830 (composite.o): Don't depend on dispextern.h explicitly (it's in
1831 $(INTERVALS_H)). Depend on ccl.h.
1832 (data.o): Depend on systime.h, coding.h, composite.h,
1833 dispextern.h, font.h, and ccl.h.
1834 (dired.o): Depend on composite.h.
1835 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1836 composite.h (it's in $(INTERVALS_H)).
1837 (doc.o): Depend on systime.h, coding.h, and composite.h.
1838 (editfns.o): Don't depend explicitly on dispextern.h.
1839 (emacs.o): Depend on frame.h and coding.h.
1840 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1841 (fileio.o): Depend on frame.h and commands.h. Don't depend
1842 explicitly on dispextern.h.
1843 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1844 composite.h.
1845 (fns.o): Don't depend on termhooks.h.
1846 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1847 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1848 coding.h, $(INTERVALS_H), window.h, xterm.h.
1849 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1850 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1851 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1852 fontset.h, ccl.h, and ftfont.h.
1853 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1854 (gtkutil.o): Depend on dispextern.h and composite.h.
1855 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1856 termhooks.h, and ccl.h.
1857 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1858 (intervals.o): Depend on systime.h and coding.h.
1859 (keyboard.o): Depend on composite.h and coding.h.
1860 (keymap.o): Depend on coding.h and frame.h.
1861 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1862 (macros.o): Depend on systime.h, coding.h, and composite.h.
1863 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1864 and atimer.h.
1865 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1866 dispextern.h explicitly.
0b5397c2
SM
1867 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1868 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1869 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1870 (regex.o): Don't depend on charset.h.
1871 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1872 (search.o): Don't depend explicitly on composite.h.
1873 (sound.o): Depend on atimer.h and systime.h.
1874 (syntax.o): Don't depend explicitly on composite.h.
1875 (sysdep.o): Depend on coding.h and composite.h.
1876 (term.o): Depend on xterm.h and buffer.h.
1877 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1878 (textprop.o): Don't depend on dispextern.h explicitly.
1879 (undo.o): Depend on dispextern.h.
1880 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1881 dispextern.h and composite.h explicitly.
1882 (xdisp.o): Depend on ccl.h.
1883 (xfaces.o): Depend on coding.h and ccl.h.
1884 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1885 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1886 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1887 ftfont.h.
1888 (xgselect.o): New dependency.
1889 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1890 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1891 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1892 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1893 (xsmfns.o): Depend on frame.h and dispextern.h.
1894 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1895 sysselect.h.
1896
7a6f7fea
AS
18972009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1898
1899 * font.c (Fclear_font_cache): Pass correct cache argument to
1900 font_clear_cache.
1901
f4c21026
AS
19022009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1905 twice.
1906
f7ab0997
CY
19072009-12-15 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1910 calling file-remote-p. Reported by Jim Meyering.
1911
fa8e045a
MA
19122009-12-15 Michael Albinus <michael.albinus@gmx.de>
1913
1914 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1915 avoid compiler warnings. (Bug #5217)
fa8e045a 1916
a63dba42
KH
19172009-12-14 Kenichi Handa <handa@m17n.org>
1918
1919 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1920 in 8-bit encoding.
1921
5ce6e4f4 19222009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1923
1924 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1925 tooltip windows.
1926
223e5fc6
JD
19272009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1928
36acb2a7
JD
1929 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1930 Xatom_net_window_type.
1931
1932 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1933 Xatom_net_window_type.
1934
b8f00677
JD
1935 * xterm.c (my_log_handler): New function.
1936 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1937 so we can filter out buggy messages. (Bug #5120).
b8f00677 1938
e5f0bc9a
JD
1939 * xterm.c (xg_scroll_callback): Parameter list changed,
1940 use parameter GtkScrollType to determine scroll/line/page.
1941 Only allow dragging if a button < 4 is grabbed (bug #5177).
1942 (xg_end_scroll_callback): New function.
1943 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1944 xg_create_scroll_bar.
1945
1946 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1947 (scroll_end_callback): Remove.
1948 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1949 button-release-event. Replace value-changed event with change-value,
1950 bug #5177,
1951 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1952 bug #5177.
1953
1954 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1955 (xg_create_scroll_bar): Add GCallback end_callback.
1956
223e5fc6
JD
1957 * xftfont.c (QClcdfilter): New variable.
1958 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1959 (syms_of_xftfont): Initialize QClcdfilter.
1960
3c055b77
JD
19612009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1962
1963 * xsettings.c (struct xsettings): Add member seen.
1964 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1965 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1966 (apply_xft_settings): Only update Xft settings with what member seen
1967 indicates as new.
1968
05fe33ff
EZ
19692009-12-12 Eli Zaretskii <eliz@gnu.org>
1970
1971 * dispextern.h (struct text_pos): Use EMACS_INT;
1972 (struct glyph): Use EMACS_INT for charpos.
1973 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1974 region_beg_charpos, region_end_charpos,
1975 redisplay_end_trigger_charpos, and also for
1976 iterator_stack_entry.end_charpos and
1977 iterator_stack_entry.stop_charpos.
1978
e8d7886a
JD
19792009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1980
5ce6e4f4 1981 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1982 (xg_create_scroll_bar): Call scroll_end_callback on button release
1983 event (bug #5177).
1984 (xg_event_is_for_scrollbar): != replaced with ==.
1985
d0db2ec8
KH
19862009-12-12 Kenichi Handa <handa@m17n.org>
1987
1988 * ftfont.c (struct ftfont_info): New member matrix.
1989 (ftfont_open): Setup xftfont_info->matrix.
1990 (MFLTFontFT): New member matrix.
1991 (FLOOR, CEIL, ROUND): New macros.
1992 (ftfont_get_metrics): Handle matrix transformation.
1993 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1994
1995 * xftfont.c (struct xftfont_info): New member matrix.
1996 (xftfont_open): Setup xftfont_info->matrix.
1997
19982009-12-10 Kenichi Handa <handa@m17n.org>
1999
2000 * xdisp.c (append_space_for_newline): Consider face-remapping.
2001
2cc7b62f
AS
20022009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2003
b87dd913
AS
2004 * xsettings.c: Include "keyboard.h".
2005
eba5eb94
AS
2006 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2007
2cc7b62f
AS
2008 Fix implicit function declarations.
2009 * cmds.c: Include "frame.h".
2010 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2011 * frame.h: Move declaration of delete_frame outside of
2012 HAVE_WINDOW_SYSTEM.
2013
a4ef73c8
CY
20142009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2015
2016 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2017
2018 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2019 GTK builds.
2020
944a300c
AS
20212009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2022
2023 * unexelf.c (unexec): Don't search for .data twice.
2024
022eef62
CY
20252009-12-05 Chong Yidong <cyd@stupidchicken.com>
2026
426ac949
CY
2027 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2028 if push failed.
2029 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2030 of push_display_prop (Bug#5000).
2031
022eef62
CY
2032 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2033 value of font_list_entities (Bug#5085).
2034
be95bee9
JB
20352009-12-04 Juanma Barranquero <lekktu@gmail.com>
2036
2037 Fix `string-to-number' to deal consistently with integers and floats.
2038 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2039 trailing characters, not just whitespace.
2040 (read1): Pass new arg 0 to keep old behavior.
2041 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2042 trailing chars, as it is already done for integers. Doc fixes.
2043 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2044
24c2d7ce
EZ
20452009-12-04 Eli Zaretskii <eliz@gnu.org>
2046
0b5397c2
SM
2047 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2048 Delete unused enumeration value.
24c2d7ce 2049
7e694795
EZ
20502009-12-03 Eli Zaretskii <eliz@gnu.org>
2051
2052 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2053
84b31826
SM
20542009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2055
2056 * process.c (Fmake_network_process): Fix up the tests for
2057 "connectionless socket", so they DTRT for seqpacket sockets as well.
2058
f00c449b
SM
20592009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2060
2061 * process.c (Qseqpacket): New symbol.
2062 (HAVE_SEQPACKET): New macro.
2063 (Fmake_network_process): Accept new :type `seqpacket'.
2064 (init_process): Add `seqpacket' feature when applicable.
2065 (syms_of_process): Initialize Qseqpacket.
2066
8096a0ff
YM
20672009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2068
2069 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2070 if entity is Qnil.
2071
3e0de07f
SM
20722009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2073
2074 * print.c (print_preprocess): Preprocess the key_and_value table of
2075 hashtables, even tho they're "hidden" (bug#5082).
2076
abeafb2a
JD
20772009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2078
2079 * frame.c (frame_make_pointer_invisible)
2080 (frame_make_pointer_visible): Declare f before statements.
2081
4bf47195
EZ
20822009-11-28 Eli Zaretskii <eliz@gnu.org>
2083
2084 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2085 omitted dependencies on lisp.h.
2086
c525b3f2
JD
20872009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2088
ece2d4ed
JD
2089 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2090 is NULL.
2091
2092 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2093
2094 * frame.c (frame_make_pointer_invisible)
3e0de07f 2095 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2096 frame.
2097
c525b3f2
JD
2098 * search.c (simple_search): Remove warning by making *p const.
2099
2f00e299
DN
21002009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2101
2102 * xdisp.c (power_letter): Remove duplicate const.
2103
084b049b
JD
21042009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2105
a1fadc6f
JD
2106 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2107
5ce6e4f4 2108 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2109 defaults (bug #5025).
2110
28259cac
SM
21112009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2112
2113 * insdel.c (adjust_markers_for_delete): Move it in the
2114 right direction! (bug#4803)
2115
e8e14166
YM
21162009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2117
2118 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2119
2120 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2121
86677b58
GM
21222009-11-24 Glenn Morris <rgm@gnu.org>
2123
2124 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2125
581e51e8
JD
21262009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2127
cfc86c7a
JD
2128 * Makefile.in: Must create deps for ecrt0.o in its rule.
2129
581e51e8
JD
2130 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2131 because that is what Gtk+ font dialog understands.
2132
2133 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2134 of Fcopy_sequence.
2135 (font_open_by_name): Put name given into QCname for font-object returned.
2136
2137 * frame.c (x_set_font): Save original font name as frame parameter
2138 font-parameter.
2139
2140 * xsettings.c (set_default_xft_settings): New function.
2141 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2142 is found.
2143
8b264ecb
AS
21442009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2145
2146 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2147 searching backwards through multibyte buffer.
2148
872870b2
JD
21492009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2150
2151 * xterm.c: #include xgselect.h.
2152 (x_initialize): Call xgselect_initialize.
2153
2154 * xsettings.c (something_changedCB): C++ comments => C comments.
2155 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2156 does that now.
2157
2158 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2159 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2160 (scroll_bar_button_cb): Remove.
5ce6e4f4 2161 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2162 event.
2163 (xg_create_scroll_bar): Don't bind button-press-event and
2164 button-release-event.
2165
2166 * process.c: Include xgselect.h if defined (USE_GTK) ||
2167 defined (HAVE_GCONF).
2168 (wait_reading_process_output): Call xg_select for the same condition.
2169
2170 * xgselect.c (xg_select): New function to better integrate with
2171 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2172
2173 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2174
2175 * Makefile.in (XOBJ): Add xgselect.o.
2176
62a6e103
AS
21772009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2178
0b5397c2
SM
2179 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2180 Remove ignored second argument. All callers changed.
62a6e103
AS
2181 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2182 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2183 * xdisp.c (string_char_and_length): Likewise.
2184
b0ca0f33
DN
21852009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2186
2187 * xterm.c (x_new_font):
2188 * print.c (print_object):
2189 * cmds.c (Fself_insert_command): Move declarations before statements.
2190
dd5a6279
CY
21912009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2192
2193 * s/cygwin.h: Remove unneeded linker flags.
2194
4a8e097d
JD
21952009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2196
0d1d0d26
JD
2197 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2198
2199 * xsettings.h: Declare xsettings_get_system_font.
2200
2201 * xsettings.c (xsettings_get_system_font): New function.
2202 (init_gconf): No use initiating gconf unless we have Xft also.
2203 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2204 HAVE_GCONF.
2205
4a8e097d
JD
2206 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2207 add a blank entry so it doesn't collapse into nothing.
2208
8ab1650e
SM
22092009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2210
2211 * lread.c (Funintern): Comment out last change.
2212
82c602f0
RS
22132009-11-19 Richard Stallman <rms@gnu.org>
2214
2215 * lread.c (Funintern): Error if symbol is t or nil.
2216
87e32266
SM
22172009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2218
2219 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2220 representation of Lisp integers.
2221 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2222
1b9ac145
AS
22232009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2224
2225 * lisp.h: Remove declaration of Ffont_get_system_font.
2226 * xfns.c: Move include of "xsettings.h".
2227 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2228
dfb3c4c6
JD
22292009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2230
87e32266
SM
2231 * xsettings.c (something_changedCB, Ffont_get_system_font):
2232 Check use_system_font.
dfb3c4c6
JD
2233 (syms_of_xsettings): DEFVAR font-use-system-font.
2234
9370c1d8
AS
22352009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2236
25fe851a
AS
2237 * xfns.c (x_default_font_parameter): Remove dead assignment.
2238
9370c1d8
AS
2239 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2240
637fa988
JD
22412009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2242
87e32266 2243 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2244 not have FC_LCD_*. #define them if not there.
a6eb20d8 2245
87e32266 2246 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2247
637fa988
JD
2248 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2249
2250 * xterm.c (handle_one_xevent): Call xft_settings_event for
2251 ClientMessage, PropertyNotify and DestroyNotify.
2252 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2253 Call xsettings_initialize.
2254
2255 * xftfont.c (xftfont_fix_match): New function.
2256 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2257 Call xftfont_fix_match after XftFontMatch.
2258
2259 * xfont.c (xfont_driver): Initialize all members.
2260
87e32266
SM
2261 * xfns.c (x_default_font_parameter):
2262 Try font from Ffont_get_system_font.
637fa988
JD
2263 Do not get font from x_default_parameter if we got one from
2264 Ffont_get_system_font.
87e32266 2265 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2266
2267 * w32font.c (w32font_driver): Initialize all members.
2268
2269 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2270
2271 * lisp.h: Declare syms_of_xsettings.
2272
87e32266
SM
2273 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2274 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2275
2276 * ftfont.c (ftfont_filter_properties): New function.
2277
2278 * frame.c (x_set_font): Remove unused variable lval.
2279
87e32266 2280 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2281
2282 * font.c (font_put_extra): Don't return if val is nil, it means
2283 boolean option is off.
2284 (font_parse_fcname): Collect all extra properties in extra_props
2285 and call filter_properties for all drivers with extra_props and
2286 font as parameter.
87e32266
SM
2287 (font_open_entity): Do not use cache, it does not pick up new
2288 fontconfig settings like hinting.
637fa988
JD
2289 (font_load_for_lface): If spec had a name in it, store it in entity.
2290
2291 * emacs.c (main): Call syms_of_xsettings
2292
2293 * config.in: HAVE_GCONF is new.
2294
2295 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2296 xsettings.o is new.
2297
5a942932
KH
22982009-11-17 Kenichi Handa <handa@m17n.org>
2299
2300 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2301 back to the default font in case that no suitable font is found.
2302
b7c7a4d1
SM
23032009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2304
2305 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2306 Suggested by Chad Brown <yandros@mit.edu>.
2307 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2308
072f1e39
JD
23092009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2310
2311 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2312
5d1e70a2
AS
23132009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2314
87e32266 2315 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2316
a53cfbe5
JD
23172009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2318
473a99b7
JD
2319 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2320 has a parent.
2321
a53cfbe5 2322 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2323 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2324
2325 * config.in: Generated (AUTO_DEPEND).
2326
f04bb9b2
MA
23272009-11-13 Michael Albinus <michael.albinus@gmx.de>
2328
b7c7a4d1 2329 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2330 Vdbus_registered_functions_table, because it contains also
2331 properties. Fix docstring.
b7c7a4d1 2332 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2333
8f11f7ec
SM
23342009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2335
2336 * alloc.c (mark_object): Don't reprocess marked strings.
2337 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2338 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2339
8a605fe8
KH
23402009-11-13 Kenichi Handa <handa@m17n.org>
2341
8f11f7ec 2342 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2343 semantics of Vword_combining_categories.
2344 (Vword_combining_categories): Describe the slight change of the
2345 semantics.
2346
241c4680
EZ
23472009-11-13 Eli Zaretskii <eliz@gnu.org>
2348
2349 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2350
2351 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2352
5d58e44c
SM
23532009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2354
2355 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2356
5e13f9d3
JB
23572009-11-12 Juanma Barranquero <lekktu@gmail.com>
2358
2359 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2360
cf54c754
DR
23612009-11-11 David Reitter <david.reitter@gmail.com>
2362
2363 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2364 variables to fix 2009-11-09 change.
2365
a4ada374
DN
23662009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2367
91433552
DN
2368 * process.c (ifflag_def): Make flag_sym constant.
2369 (Fnetwork_interface_info): Use a constant pointer.
2370 (ifflag_table):
2371 * xfns.c (cursor_bits):
2372 * xdisp.c (power_letter):
2373 * termcap.c (speeds, esctab):
2374 * sysdep.c (baud_convert):
2375 * keyboard.c (lispy_accent_codes, modifier_names):
2376 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2377 (jpeg_format, tiff_format, gif_format, svg_format)
2378 (interlace_start, interlace_increment, gs_format):
2379 * gtkutil.c (separator_names):
2380 * fringe.c (swap_nibble):
2381 * fns.c (base64_value_to_char, base64_char_to_value):
2382 * fileio.c (make_temp_name_tbl):
2383 * coding.c (suffixes): Make constant.
2384
f4265f6c
DN
2385 * frame.c (make_initial_frame):
2386 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2387 build_string.
2388 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2389
04420943
DN
2390 * s/freebsd.h:
2391 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2392
0a5d24ae
DN
2393 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2394 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2395
a4ada374
DN
2396 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2397 * xterm.c (syms_of_xterm):
2398 * xfaces.c (syms_of_xfaces):
2399 * xdisp.c (syms_of_xdisp):
2400 * lread.c (syms_of_lread):
2401 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2402 build_string.
91433552 2403
a4ada374
DN
2404 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2405
af98fc7f
SM
24062009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2407
8ab1650e 2408 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2409
e90292a9
JD
24102009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2411
2412 * keyboard.h: Declare timer_check.
2413
2414 * keyboard.c (timer_check_2): New function that does what the old
2415 timer_check did.
2416 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2417 returned, i.e. don't return -1 with timers pending.
2418
2419 * process.c: Remove extern declaration of timer_check.
2420
2421 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2422 even if timer_check returned -1.
2423
af98fc7f
SM
2424 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2425 xg_dialog_data.
e90292a9
JD
2426 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2427 the event loop.
2428 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2429 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2430 Destroy the dialog after xg_dialog_run.
2431
045b83c0
SM
24322009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2433
2434 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2435
1fb99a3a
JD
24362009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2437
2438 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2439
04e452cb
JB
24402009-11-09 Juanma Barranquero <lekktu@gmail.com>
2441
2442 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2443
ef7417fd
SM
24442009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2445
2446 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2447 w32menu.c, and nsmenu.m.
2448 Simplify the obsolete case where position is nil.
2449 (cleanup_popup_menu): New function, moved from nsmenu.m.
2450 (struct skp): Remove slot `notreal'.
2451 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2452 adjust callers.
2453 (single_menu_item): Adjust call to parse_menu_item.
2454 (syms_of_menu): Defsubr x-popup-menu.
2455 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2456 (keymap_panes): Don't export any more.
2457 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2458 (xmenu_show): Declare.
2459 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2460 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2461 * keyboard.h (parse_menu_item): Update declaration.
2462 * xmenu.c (Fx_popup_menu): Remove.
2463 (syms_of_xmenu): Don't defsubr x-popup-menu.
2464 * w32menu.c (Fx_popup_menu): Remove.
2465 (syms_of_w32menu): Don't defsubr x-popup-menu.
2466 * nsmenu.m (cleanup_popup_menu): Remove.
2467 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2468 moved to menu.c's Fx_popup_menu.
2469 (Fx_popup_menu): Remove.
2470 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2471 menu_items (it's done in menu.c already).
2472
424d6179
SM
24732009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2474
2475 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2476 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2477
c0df13a6 24782009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2479
2480 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2481 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2482 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2483 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2484
2de9f71c
SM
24852009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2486
2487 Let integers use up 2 tags to give them one extra bit and thus double
2488 their range.
2489 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2490 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2491 New macros.
2492 (enum Lisp_Type): Use them. Give explicit values.
2493 (Lisp_Type_Limit): Remove.
2494 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2495 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2496 Pay attention to USE_2_TAGS_FOR_INTS.
2497 (INTEGERP): Use LISP_INT_TAG_P.
2498 * fns.c (internal_equal): Simplify the default case.
2499 (sxhash): Use case_Lisp_Int.
2500 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2501 any more.
2502 (Ftype_of): Use case_Lisp_Int.
2503 (store_symval_forwarding): Take into account the fact that Ints can
2504 now have more than one tag.
2505 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2506 buffer_slot_type_mismatch):
2507 * xfaces.c (face_attr_equal_p):
2508 * print.c (print_object):
2509 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2510 Use case_Lisp_Int.
2511
323637a2
EZ
25122009-11-06 Eli Zaretskii <eliz@gnu.org>
2513
7ac65b38
EZ
2514 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2515
323637a2
EZ
2516 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2517 warning.
2518
e511451f
JD
25192009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2520
2521 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2522
2523 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2524
2525 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2526 ButtonPressRelease and MotionNotify (bug#4870).
2527
5e2327cf
DN
25282009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2529
5adc433e
DN
2530 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2531
d67b4f80
DN
2532 * xterm.c (syms_of_xterm):
2533 * xselect.c (syms_of_xselect):
2534 * xmenu.c (syms_of_xmenu):
2535 * xfns.c (syms_of_xfns):
2536 * xfaces.c (syms_of_xfaces):
2537 * xdisp.c (syms_of_xdisp):
2538 * window.c (syms_of_window):
2539 * w32fns.c (syms_of_w32fns):
2540 * undo.c (syms_of_undo):
2541 * textprop.c (syms_of_textprop):
2542 * terminal.c (syms_of_terminal):
2543 * syntax.c (syms_of_syntax):
2544 * sound.c (syms_of_sound):
2545 * search.c (syms_of_search):
2546 * print.c (syms_of_print):
2547 * minibuf.c (syms_of_minibuf):
2548 * macros.c (syms_of_macros):
2549 * keymap.c (syms_of_keymap, initial_define_key)
2550 (initial_define_lispy_key):
2551 * keyboard.c (syms_of_keyboard):
2552 * insdel.c (syms_of_insdel):
2553 * image.c (syms_of_image):
2554 * fringe.c (syms_of_fringe):
2555 * frame.c (syms_of_frame):
2556 * fontset.c (syms_of_fontset):
2557 * fns.c (syms_of_fns):
2558 * fns.c (syms_of_fns):
2559 * fileio.c (syms_of_fileio):
2560 * fileio.c (syms_of_fileio):
2561 * eval.c (syms_of_eval):
2562 * doc.c (syms_of_doc):
2563 * dispnew.c (syms_of_display):
2564 * dired.c (syms_of_dired):
2565 * dbusbind.c (syms_of_dbusbind):
2566 * data.c (syms_of_data):
2567 * composite.c (syms_of_composite):
2568 * coding.c (syms_of_coding):
2569 * cmds.c (syms_of_cmds):
2570 * charset.c (define_charset_internal, syms_of_character):
2571 * ccl.c (syms_of_ccl):
2572 * category.c (syms_of_category, init_category_once):
2573 * casetab.c (syms_of_casetab):
2574 * casefiddle.c (syms_of_casefiddle):
2575 * callint.c (syms_of_callint):
2576 * bytecode.c (syms_of_bytecode):
2577 * buffer.c (keys_of_buffer, syms_of_buffer):
2578 * alloc.c (syms_of_alloc):
2579 * process.c (syms_of_process, init_process):
2580 * lread.c (syms_of_lread, init_obarray):
2581 * font.c (build_style_table):
2582 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2583 intern_c_string, calls to make_pure_string with
2584 make_pure_c_string. Use pure_cons instead of Fcons.
2585
5e2327cf
DN
2586 * process.c (socket_options): Make it const.
2587 (set_socket_option, init_process): Use a const pointer.
2588
2589 * lread.c (intern_c_string): New function.
2590 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2591 (defvar_int): Uset it. Make the name const char*.
2592
2593 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2594 (defvar_int): Update prototypes.
2595 (DEFUN, EXFUN): Support for prototypes is now required.
2596 (intern_c_string): New prototype.
2597 (struct Lisp_Subr): Make symbol_name constant.
2598
2599 * font.c (struct table_entry): Remove unused member. Make NAMES
2600 constant.
2601 (weight_table, slant_table, width_table): Make constant.
2602
2603 * emacs.c (struct standard_args): Make name and longname constant.
2604
2605 * character.h (DEFSYM): Use intern_c_string.
2606
a56eaaef
DN
26072009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2608
2609 * alloc.c (make_pure_c_string): New function.
2610
2611 * eval.c (Fautoload): Purecopy all arguments.
2612
f6a07420
KH
26132009-11-05 Kenichi Handa <handa@m17n.org>
2614
2615 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2616 the buffer in case of replace.
2617
5d28d4b1
DN
26182009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2619
2620 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2621
b349d111
SM
26222009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2623
d528b1ce
SM
2624 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2625 when applicable (bug#4851).
2626
b349d111
SM
2627 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2628 (P_): Support for prototypes is now required.
2629
c38eb027
CY
26302009-10-31 Chong Yidong <cyd@stupidchicken.com>
2631
2632 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2633 (Bug#4827).
2634
0405f8d9
EZ
26352009-10-30 Eli Zaretskii <eliz@gnu.org>
2636
d528b1ce 2637 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2638
ca0a881a
DN
26392009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2640
2641 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2642
d528b1ce
SM
2643 * lread.c (Fload): Purecopy the file name when building
2644 Vpreloaded_file_list.
ca0a881a 2645
47e0e0e4
JR
26462009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2647
2648 * w32fns.c (syms_of_w32fns): Change default value of
2649 w32-scroll-lock-modifier to nil. (Bug#2827)
2650
057bce6f
JB
26512009-10-26 Juanma Barranquero <lekktu@gmail.com>
2652
782a943e 2653 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2654
242bc74c
AS
26552009-10-26 Andreas Schwab <schwab@redhat.com>
2656
2657 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2658
522d013a
JB
26592009-10-26 Juanma Barranquero <lekktu@gmail.com>
2660
2661 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2662 For delta < 0, skip check that only makes sense when the mini-window
2663 is going to be enlarged. (Bug#4534)
2664
18060980
CY
26652009-10-25 Chong Yidong <cyd@stupidchicken.com>
2666
2667 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2668 string in menu maps (Bug#4471).
2669
fec8f0fe
CY
26702009-10-24 Chong Yidong <cyd@stupidchicken.com>
2671
2672 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2673 FRAME_NS_VIEW on terminal frames (Bug#4765).
2674
10d66ec0
AS
26752009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2676
1cae01f7
AS
2677 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2678 DBUS_TYPE_UINTnn separately to get proper sign extension.
2679
58a12889
AS
2680 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2681 can properly handle unsigned types.
d528b1ce 2682 (make_uid, make_gid): Remove.
58a12889 2683
987c9327
AS
2684 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2685 types again.
2686
522d013a 2687 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2688 (system_process_attributes): Likewise.
2689
905a9ed3
DN
26902009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2691
2692 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2693
2694 * eval.c (Fautoload): Purecopy the filename. Simplify.
2695
2696 * category.c (Fdefine_category): Purecopy docstring.
2697
a599b3e8
AS
26982009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2699
7b792fc9
AS
2700 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2701
a599b3e8
AS
2702 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2703
b35ac83e
CY
27042009-10-23 Chong Yidong <cyd@stupidchicken.com>
2705
2706 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2707 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2708 (Bug#4775).
2709
e8903e00
SM
27102009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2711
2712 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2713 (init_fileio_once):
2714 * lisp.h (init_fileio_once): Remove.
2715 * emacs.c (main): Don't call init_fileio_once.
2716
8f43cbf3
DN
27172009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2718
2719 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2720
26898943
AS
27212009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2722
2723 * doprnt.c (doprnt): Fix overflow check.
2724
5c646d5a
JD
27252009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2726
3132a7ea
JD
2727 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2728
5c646d5a
JD
2729 * xterm.h (x_wait_for_event): Declare it.
2730
2731 * xterm.c (pending_event_wait): New variable.
2732 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2733 see pending_event_wait.eventtype.
2734 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2735 (x_new_font): Call change_frame_size with new rows/columns before we
2736 try to resize the frame.
5c646d5a 2737 (x_wait_for_event): New function.
d528b1ce
SM
2738 (x_set_window_size_1): Don't change gravity unless change_gravity
2739 is set.
5c646d5a
JD
2740 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2741 don't change frame size, instead wait for the ConfigureNotify.
2742 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2743 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2744 (x_initialize): Initialize pending_event_wait.
2745
2746 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2747 size.
2748
2749 * widget.c (EmacsFrameSetValues): Add comment.
2750 (EmacsFrameSetCharSize): Just call x_set_window_size.
2751
2752 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2753 x_wait_for_event.
d528b1ce 2754 (flush_and_sync): Remove again.
5c646d5a
JD
2755 (xg_get_font_name): Suggest monospace if no previous font is known.
2756
e9c1637d
SM
27572009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2758
2759 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2760 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2761
5a72cccb
YM
27622009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2763
2764 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2765 processing pending events when event is filtered for input method.
ab04798f 2766 (Bug#3681)
5a72cccb 2767
2629aa37
JB
27682009-10-20 Juanma Barranquero <lekktu@gmail.com>
2769
2770 * fns.c: Add #endif accidentally removed in previous change.
2771
c3417a74
DN
27722009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2773
2774 * fns.c: Remove code for unsupported system: MAC_OS.
2775 * image.c: Likewise. Include setjmp.h.
2776
9685cef2
JD
27772009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2778
2779 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2780 pixel -1 (bug #4742).
2781
d7306fe6
DN
27822009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2783
019d2c4c
DN
2784 * process.c (create_pty): Remove conditionals for no longer
2785 supported systems: UNIPLUS and RTU.
2786
ee6bacd4
DN
2787 * xterm.c:
2788 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2789
d7306fe6
DN
2790 * alloc.c: Do not define struct catchtag.
2791 * eval.c: Move struct catchtag definition ...
2792 * lisp.h: ... here.
2793
2794 * image.c: Move png.h #include earlier to avoid warnings.
2795
2796 * xterm.c:
2797 * xsmfns.c:
2798 * xselect.c:
2799 * xrdb.c:
2800 * xmenu.c:
2801 * xftfont.c:
2802 * xfont.c:
2803 * xfns.c:
2804 * xfaces.c:
2805 * xdisp.c:
2806 * window.c:
2807 * widget.c:
2808 * w32xfns.c:
2809 * w32uniscribe.c:
2810 * w32term.c:
2811 * w32select.c:
2812 * w32reg.c:
2813 * w32proc.c:
2814 * w32menu.c:
2815 * w32inevt.c:
2816 * w32heap.c:
2817 * w32font.c:
2818 * w32fns.c:
2819 * w32console.c:
2820 * w32.c:
2821 * w16select.c:
2822 * vm-limit.c:
2823 * unexsol.c:
2824 * unexec.c:
2825 * unexcw.c:
2826 * unexaix.c:
2827 * undo.c:
2828 * tparam.c:
2829 * textprop.c:
2830 * terminfo.c:
2831 * terminal.c:
2832 * termcap.c:
2833 * term.c:
2834 * syntax.c:
2835 * sound.c:
2836 * sheap.c:
2837 * search.c:
2838 * scroll.c:
2839 * region-cache.c:
2840 * regex.c:
2841 * ralloc.c:
2842 * process.c:
2843 * print.c:
b024548b
DN
2844 * nsterm.m:
2845 * nsselect.m:
2846 * nsmenu.m:
2847 * nsimage.m:
2848 * nsfont.m:
2849 * nsfns.m:
d7306fe6
DN
2850 * msdos.c:
2851 * minibuf.c:
2852 * menu.c:
2853 * marker.c:
2854 * macros.c:
2855 * keymap.c:
2856 * keyboard.c:
2857 * intervals.c:
2858 * insdel.c:
2859 * indent.c:
2860 * gtkutil.c:
2861 * ftxfont.c:
2862 * ftfont.c:
2863 * fringe.c:
2864 * frame.c:
2865 * fontset.c:
2866 * font.c:
2867 * fns.c:
2868 * floatfns.c:
2869 * filelock.c:
2870 * fileio.c:
2871 * emacs.c:
2872 * editfns.c:
2873 * dosfns.c:
2874 * doprnt.c:
2875 * doc.c:
2876 * dispnew.c:
2877 * dired.c:
2878 * dbusbind.c:
2879 * data.c:
2880 * composite.c:
2881 * coding.c:
2882 * cmds.c:
2883 * cm.c:
2884 * chartab.c:
2885 * charset.c:
2886 * character.c:
2887 * ccl.c:
2888 * category.c:
2889 * casetab.c:
2890 * casefiddle.c:
2891 * callproc.c:
2892 * callint.c:
2893 * bytecode.c:
2894 * buffer.c:
2895 * atimer.c: Include setjmp.h. (Bug#4643)
2896
fd5f21e6
SM
28972009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2898
4c0354d7
SM
2899 Remove leftover table unibyte_to_multibyte_table.
2900 * character.c (unibyte_to_multibyte_table): Remove.
2901 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2902 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2903 * character.h (UNIBYTE_TO_CHAR): New macro.
2904 (MAKE_CHAR_MULTIBYTE): Use it.
2905 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2906 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2907 (message_dolog, set_message_1):
2908 * search.c (Freplace_match):
2909 * editfns.c (Fcompare_buffer_substrings):
2910 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2911 (concat):
2912 * insdel.c (copy_text, count_size_as_multibyte):
2913 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2914 * term.c (produce_glyphs):
2915 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2916 * regex.c (RE_CHAR_TO_MULTIBYTE):
2917 * cmds.c (internal_self_insert):
2918 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2919
fd5f21e6
SM
2920 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2921
4418646e
DN
29222009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2923
2924 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2925
35f5c1d2
JB
29262009-10-16 Juanma Barranquero <lekktu@gmail.com>
2927
2928 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2929
a0cd8f6b
AR
29302009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2931
2932 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2933 still needed under Tiger.
2934
2935 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2936
2937 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2938 __Apple__.
2939
2940 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2941
01a8d3fa
KH
29422009-10-15 Kenichi Handa <handa@m17n.org>
2943
2944 * print.c (print_object): Escape a symbol like "2E10" too.
2945
bf6c75c9 29462009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2947
2948 Cleanups and changes for 64-bit compile under Snow Leopard.
2949 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2950
2951 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2952
c5959062 2953 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2954 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2955 cast argument.
2956 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2957 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2958
2959 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2960
2961 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2962 where appropriate.
2963
2964 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2965 where appropriate.
6e4780c5
JB
2966 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2967 Use stringWithUTF8String.
bf6c75c9
AR
2968 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2969
6e4780c5
JB
2970 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2971 Add formal protocol mention to inheritance.
bf6c75c9
AR
2972 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2973
6e4780c5
JB
2974 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2975 Fix printf format.
bf6c75c9
AR
2976 (ns_query_color): Use CGFloat where appropriate.
2977 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2978 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2979 argument.
2980
3d87f118
AR
2981 * config.in (NS_HAVE_NSINTEGER): Drop.
2982
a95c8102
AR
2983 * dbusbind.c (dbus-method-return-internal)
2984 (dbus-method-error-internal): Use long format in printf, and cast
2985 argument.
2986
2987 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2988 in printf, and cast argument.
2989
6873acca 2990 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2991 cast argument.
2992
9ec6f100
GM
29932009-10-11 Glenn Morris <rgm@gnu.org>
2994
2995 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2996
5be883cd
JD
29972009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2998
2999 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3000 menu bar with a small width so it doesn't enlarge the frame.
3001
d7a39b51
JB
30022009-10-08 Juanma Barranquero <lekktu@gmail.com>
3003
3004 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3005
0c2b6f8e
GM
30062009-10-06 Glenn Morris <rgm@gnu.org>
3007
3008 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3009 SOME_MACHINE_LISP (this enters indirectly via DOC).
3010
e02131a2
EZ
30112009-10-05 Eli Zaretskii <eliz@gnu.org>
3012
3013 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3014
b4744254
EZ
30152009-10-04 Eli Zaretskii <eliz@gnu.org>
3016
3017 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3018 Doc fix.
3019
dbf64827
JB
30202009-10-03 Martin Rudalics <rudalics@gmx.at>
3021
3022 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3023
e9a0aef8
MA
30242009-10-02 Michael Albinus <michael.albinus@gmx.de>
3025
d528b1ce 3026 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3027 used anymore outside fileio.c.
3028
3029 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3030
64eb2b56
JB
30312009-10-01 Juanma Barranquero <lekktu@gmail.com>
3032
3033 * lisp.h (Qdelete_directory_internal):
3034 Declare, instead of Qdelete_directory.
3035
3036 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3037
9d28c33e
SM
30382009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3039
3040 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3041
9d8f3bd9
MA
30422009-10-01 Michael Albinus <michael.albinus@gmx.de>
3043
9d28c33e 3044 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3045 Fdelete_directory. It is not a command anymore. It has no file
3046 name handler.
3047
9694740b
SM
30482009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3049
3050 * xdisp.c (get_next_display_element): Use an enum in last change.
3051
748e162f
KH
30522009-09-28 Kenichi Handa <handa@m17n.org>
3053
9694740b 3054 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3055 unibyte_display_via_language_environment in handling
3056 Vnobreak_char_display.
3057
17efd58d
AR
30582009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3059
3060 * nsterm.h (ns_app_name): New extern variable.
3061
3062 * nsterm.m (ns_app_name): New variable.
3063 (ns_term_init): Set and use it.
3064 (ns_term_shutdown): Use it.
3065
3066 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3067 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3068
3069 * nsfns.m (ns_set_name_iconic, ns_set_name)
3070 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3071 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3072
9694740b
SM
3073 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3074 Remove double-casting in client_data comparison.
31c2d412 3075
3208cb35
YM
30762009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3077
3078 * keyboard.c (make_lispy_event): Remember last wheel direction.
3079 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3080
b7d552d6
GM
30812009-09-26 Glenn Morris <rgm@gnu.org>
3082
3083 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3084 internal.elc. Add term/pc-win.elc.
3085 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3086 term/x-win.elc.
3087 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3088 term/w32-win.elc.
3089 (NS_SUPPORT): New.
3090 (lisp): Add NS_SUPPORT.
3091 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3092
4ff670a8
DR
30932009-09-25 David Reitter <david.reitter@gmail.com>
3094
3095 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3096 on Mac OS X 10.6+ (bug#4513).
3097
feabfb6c
JB
30982009-09-24 Juanma Barranquero <lekktu@gmail.com>
3099
3100 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3101 some parts of Emacs code (like font selection) don't grok them.
3102 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3103
de59072a
AS
31042009-09-24 Andreas Schwab <schwab@redhat.com>
3105
3106 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3107
a489517b
JB
31082009-09-24 Juanma Barranquero <lekktu@gmail.com>
3109
3110 * dired.c (Fdirectory_files): Fix typo in docstring.
3111
0592970c
AR
31122009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3113
3114 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3115 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3116 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3117 under GNUstep.
3118 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3119
3120 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3121 glyph advancement.
3122
48e8a88b
AR
31232009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3124
3125 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3126 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3127
3128 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3129 deleted (bug #4492).
3130
e14f0a78
AR
3131 * nsfont.m (Vns_reg_to_script): New lisp variable.
3132 (syms_of_nsfont): Declare it.
3133 (ns_registry_to_script): New function.
3134 (ns_get_req_script): Call it.
3135 (ns_findfonts): Don't give up on non-unicode registry.
3136
3137 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3138
5b650faa
SM
31392009-09-20 Tom Tromey <tromey@redhat.com>
3140
3141 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3142 batch mode (bug#4228).
3143
a489517b 31442009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3145
3146 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3147 carefully. (Bug #4339)
0bae4e09 3148
fcfe06f3
CY
31492009-09-18 Chong Yidong <cyd@stupidchicken.com>
3150
d798ba87 3151 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3152
31642728
AR
31532009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3154
3155 * emacs.c (inhibit_x_resources): Update doc string for NS.
3156 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3157 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3158
3159 * nsterm.h (ns_no_defaults): Remove.
3160
3161 * nsterm.m (ns_no_defaults): Remove.
3162 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3163 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3164 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3165 don't update the NSWindow itself.
3166 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3167 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3168
3169 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3170 ns_use_qd_smoothing.
3171
3172 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3173 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3174 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3175 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3176
8686ac71
JB
31772009-09-17 Juanma Barranquero <lekktu@gmail.com>
3178
3179 * emacs.c (inhibit_x_resources): New variable.
3180 (main) [HAVE_NS]: Don't process --quick command line option.
3181 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3182
3183 * lisp.h (inhibit_x_resources): Declare it extern.
3184
3185 * w32reg.c (x_get_string_resource):
3186 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3187
e227ba05
EZ
31882009-09-17 Eli Zaretskii <eliz@gnu.org>
3189
362654a6
JB
3190 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3191 Add lisp/term/internal.elc.
e227ba05 3192
742d40e8
SM
31932009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3194
3195 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3196 (bug#4461).
3197
005bd5a2
DN
31982009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3199
3200 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3201
3202 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3203 (OBJECTS_MACHINE): Remove, unused.
3204
f9af9719
SM
32052009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3206
3207 * frame.c (x_get_resource_string): Remove unused.
3208
0307c7d2
JD
32092009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3210
3211 * xterm.c (x_new_font): Call change_frame_size before calling
3212 x_set_window_size, in case frame size won't change.
3213
3214 * frame.c (x_set_font): Remove dead code.
3215
428b13d6
SM
32162009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3219
5766c380
SM
32202009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * lread.c (Fload): Don't output a message after loading an obsolete
3223 package any more (done in Lisp now).
3224
2fd0161b
CY
32252009-09-12 Chong Yidong <cyd@stupidchicken.com>
3226
3227 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3228
bc5e75b6
SM
32292009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3230
3231 * keymap.c (Fwhere_is_internal): Use nconc2.
3232
c31c985e
AM
32332009-09-11 Alan Mackenzie <acm@muc.de>
3234
3235 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3236 batch mode.
3237
78012bd2
AS
32382009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3239
3240 * xdisp.c (display_mode_element): Detect cycles.
3241
9d889332
SM
32422009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3243
3244 * keymap.c (where_is_internal): Don't erroneously return nil right after
3245 filling the cache.
3246 (where_is_internal_1): Fix up typo.
3247
7ab5d780
GM
32482009-09-11 Glenn Morris <rgm@gnu.org>
3249
3250 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3251 share a common doc-string.
3252
5238a749
SM
32532009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3254
66d77eda
SM
3255 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3256 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3257
5238a749
SM
3258 * keymap.c (QCadvertised_binding): New constant.
3259 (syms_of_keymap): Initialize it.
3260 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3261 if applicable.
3262
19f48442
SM
32632009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3264
50d4ba39
SM
3265 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3266 (parse_menu_item): Streamline since bindings are recomputed all the
3267 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3268 more and don't support lmenu's menu-alias any more either.
3269
a88a5372
SM
3270 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3271 (where_is_internal): Strip it down to only traverse the keymaps.
3272 Move the cache handling from Fwhere_is_internal to here.
3273 (Fwhere_is_internal): Move the handling of remapping and the choice of
3274 the best binding from where_is_internal to here.
3275 Unify the cached/noncached paths, so remapping is also handled
3276 correctly when the cache is used, and so the cache can be used to
3277 speed up remap-handling when applicable.
3278 Give preference to non-remapped bindings.
3279 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3280 non-remapped bindings.
3281 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3282 command remapping.
3283
19f48442
SM
3284 * xdisp.c (display_mode_element): Move list length limit from 50 to
3285 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3286
599498c3 32872009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3288
3289 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3290
f9b7b5ac
SM
32912009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3292
a53af587
JB
3293 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3294 (Bug#4334)
3295
f9b7b5ac
SM
3296 * keymap.c (where_is_internal): Filter out shadowed remappings.
3297 Assume that where_is_internal returns unshadowed bindings to simplify
3298 the code and get rid of the gotos. Use ASIZE.
3299
04f4b72d
JD
33002009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3301
4da146f2
JD
3302 * xterm.c (x_focus_changed): If we get a focusout and pointer
3303 is invisible, make it visible.
3304
04f4b72d
JD
3305 * xterm.h: Remove condition for declaration of
3306 x_*_window_to_frame.
3307
7cef7ce3
SM
33082009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3309
3310 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3311 initial terminal as well.
3312
a54fa5b7
JD
33132009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3314
3315 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3316 x_menubar_window_to_frame.
a54fa5b7 3317
50426a04 3318 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3319 (XTmouse_position): Do not return valid positions
3320 for clicks in the menubar and the toolbar for Gtk+.
3321
3322 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3323 if the widget for the event has the same top level as a frame,
3324 return the frame.
3325 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3326 internal windows, bug #4122.
3327 (x_non_menubar_window_to_frame): Remove.
3328
5a021dd0
GM
33292009-09-02 Glenn Morris <rgm@gnu.org>
3330
3331 * buffer.c (default-major-mode): Move most of the doc from here...
3332 (major-mode): ... to here.
3333
548fe2f3
NR
33342009-08-30 Nick Roberts <nickrob@snap.net.nz>
3335
3336 * process.c (wait_reading_process_output): Keep the descriptor
3337 when pty is used by a non-child process, e.g., in I/O buffer of
3338 GDB this allows inferior to be restarted.
3339
e0840eef
EZ
33402009-08-29 Eli Zaretskii <eliz@gnu.org>
3341
3342 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3343 both branches into one.
3344
82e98df4
SM
33452009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3346
3347 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3348 (main): Use enable-multibyte-characters rather than
3349 default-enable-multibyte-characters. Output a warning message when
3350 running a unibyte session.
3351
890617cb
YM
33522009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3353
3354 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3355 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3356 (copy_data_segment): Also copy __program_vars section.
3357 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3358 (dump_it) [LC_DYLD_INFO]: Use it.
3359
3360 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3361
e7adeadc
EZ
33622009-08-28 Eli Zaretskii <eliz@gnu.org>
3363
3364 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3365 $(SRC)/buildobj.h.
3366 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3367 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3368 $(SRC)/buildobj.h.
3369 (clean): Add buildobj.h.
3370
3ed8bbdc
TZ
33712009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3372
3373 * print.c (print_object): Set escapeflag to 1 when printing
3374 hashtable keys and values.
3375
155a6764
SM
33762009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3377
3378 * lread.c (read_integer): Use doubles (and potentially return a float
3379 number) as we do in string-to-number.
3380 (read1): Use strtol to read integers, signal errors on strtol's
3381 overflow and use floats if strtol's output is too large for
3382 Elisp integers.
3383
877610de
EZ
33842009-08-27 Eli Zaretskii <eliz@gnu.org>
3385
3386 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3387 (make-buildobj-SH): Fix last change.
3388 (SRC): Move to before where it's first used.
3389
ef73e7be
KH
33902009-08-27 Kenichi Handa <handa@m17n.org>
3391
550c8289
KH
3392 * process.c (send_process): Use encode_coding_object instead of
3393 encode_coding_string to perform eol-conversion even if the string
3394 is unibyte.
3395
60afa08d
KH
3396 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3397 character.
3398
ef73e7be 3399 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3400 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3401
7b3a82d7
DN
34022009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3403
5654bf63
DN
3404 * callproc.c (Fcall_process): Remove always true #if.
3405
7b3a82d7
DN
3406 * lisp.h: Replace #if 0 code for checking with text pointing to
3407 the --enable-checking configure flag.
3408
3409 * emacs.c (main): Mention the --enable-profiling configure flag
3410 instead of using CFLAGS.
3411
878bde49
KR
34122009-08-26 Ken Raeburn <raeburn@raeburn.org>
3413
3414 * Makefile.in (buildobj.h): New target.
3415 (doc.o): Depend on it.
3416 (temacs${EXEEXT}): Don't generate buildobj.lst.
3417 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3418 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3419 ($(BLD)/doc.$(O)): Depend on it.
3420 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3421 provided by Eli Zaretskii.)
3422 ($(TEMACS)): Don't generate buildobj.lst.
3423 * doc.c: Include buildobj.h.
3424 (buildobj): New static variable.
3425 (Fsnarf_documentation): Use it, instead of opening and reading
3426 buildobj.lst.
3427
1574224c
MA
34282009-08-25 Michael Albinus <michael.albinus@gmx.de>
3429
3430 * dbusbind.c (Fdbus_call_method)
3431 (Fdbus_call_method_asynchronously): Use English numeric format for
3432 timeout values in doc string.
3433
d9da2f45
KH
34342009-08-25 Kenichi Handa <handa@m17n.org>
3435
ef73e7be
KH
3436 * alloc.c (mark_char_table): New function.
3437 (mark_object): Use mark_char_table for a char-table.
3438
d9da2f45
KH
3439 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3440 (CHAR_TABLE_REF): Use it.
3441
c8edcc01
KR
34422009-08-23 Ken Raeburn <raeburn@raeburn.org>
3443
3444 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3445 before invoking the newly build emacs to check for load-path
3446 shadowing.
3447
7763401b
GM
34482009-08-22 Glenn Morris <rgm@gnu.org>
3449
3450 * Makefile.in (bootstrap_exe): New variable.
3451 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3452 Use ${bootstrap_exe}.
3453
729eadda
EZ
34542009-08-22 Eli Zaretskii <eliz@gnu.org>
3455
3456 * coding.h (encode_coding_string): Don't encode unibyte strings.
3457 (Bug#4047)
3458
eb4c6ace
MA
34592009-08-22 Michael Albinus <michael.albinus@gmx.de>
3460
3461 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3462
3463 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3464 intended as hotfix only.
3465 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3466
36e34d1b
AR
34672009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3468
3469 * nsterm.m (ns_get_color): Update documentation properly for last
3470 change, and clean up loose ends in the code left by it. Fix
3471 longstanding bug with 16-bit hex parsing, and add support for
3472 yet another X11 format (rgb:r/g/b) for compatibility.
3473 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3474 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3475
f983eb8a
SM
34762009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3477
3478 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3479
3f56d3c6
MA
34802009-08-20 Michael Albinus <michael.albinus@gmx.de>
3481
3482 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3483 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3484 (xd_initialize, xd_pending_messages): Check, whether
3485 $DBUS_SESSION_BUS_ADDRESS is set.
3486
fb641d68
YM
34872009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3488
3489 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3490
3491 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3492
cf59a374
GM
34932009-08-20 Glenn Morris <rgm@gnu.org>
3494
3495 * emacs.c (system-type): Doc fix.
3496
1373f3be
SM
34972009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3498
3499 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3500 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3501
058ed861
MA
35022009-08-18 Michael Albinus <michael.albinus@gmx.de>
3503
1373f3be
SM
3504 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3505 New functions.
058ed861
MA
3506 (xd_initialize): Revert change from 2009-08-16.
3507
563a866e 35082009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3509
3510 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3511 font-group vector, return nil.
5fc05db0 3512
e42bdf01
CY
35132009-08-17 Chong Yidong <cyd@stupidchicken.com>
3514
3515 * process.c (status_notify): Don't perform redisplay.
3516 (Fdelete_process, list_processes_1, process_send_signal):
3517 Expliticly perform redisplay.
3518 (wait_reading_process_output): Always check process status, but
3519 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3520
4230ab74
KR
35212009-08-17 Ken Raeburn <raeburn@raeburn.org>
3522
1373f3be 3523 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3524 (XFLOAT_INIT): New macro for storing a float value.
3525 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3526 * fns.c (sxhash): Copy out the value of a float in order to
3527 examine its bytes.
3528 * dbusbind.c (xd_append_arg): Likewise.
3529
4230ab74
KR
3530 * emacs.c (main): Don't call syms_of_data twice.
3531
a0645cdd
MA
35322009-08-16 Michael Albinus <michael.albinus@gmx.de>
3533
3534 * dbusbind.c (xd_initialize): Add connection file descriptor to
3535 input_wait_mask, in order to let select() detect, whether a new
3536 message has been arrived.
ca4f31ea 3537 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3538
485db0ba
MA
35392009-08-15 Michael Albinus <michael.albinus@gmx.de>
3540
1373f3be
SM
3541 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3542 New functions.
485db0ba
MA
3543
3544 * lisp.h (xd_pending_messages): Declare.
3545
3546 * keyboard.c (readable_events): Call xd_pending_messages.
3547
b5b98ff4
CY
35482009-08-15 Chong Yidong <cyd@stupidchicken.com>
3549
1373f3be 3550 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3551
f8354c6e
CY
3552 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3553
b5b98ff4
CY
3554 * buffer.c (set_buffer_internal_1)
3555 (swap_out_buffer_local_variables): Check for unbound local
3556 variables (Bug#4138).
3557
8b9fc636
EZ
35582009-08-14 Eli Zaretskii <eliz@gnu.org>
3559
3560 * process.c (create_pty): Fix last change.
3561
ce959360
CY
35622009-08-13 Chong Yidong <cyd@stupidchicken.com>
3563
3564 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3565 (xbm_load_image): Caller changed.
64b807c9 3566 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3567
c7baf7e9
NR
35682009-08-13 Nick Roberts <nickrob@snap.net.nz>
3569
3570 * process.c (create_pty): New function.
3571 (Fstart_process): Use it to allow Emacs to just associate a pty
3572 with the buffer. See associated change in gdb-mi.el.
3573 (list_processes_1): Deal with no program name.
3574 (start_process_unwind): Use pid == -2 to mean no process.
3575
1ac9108a
SM
35762009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3577
3578 * cmds.c (nonundocount): New global variable.
3579 (keys_of_cmds): Initialize it.
3580 (Fself_insert_command): Use it to combine upto 20 sequential chars
3581 into a single undo entry, just like the Qself_insert_command code in
3582 keyboard.c does.
3583 Call frame_make_pointer_invisible, also like the Qself_insert_command
3584 code in keyboard.c does.
3585 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3586 than its own local replacement for it.
3587
e267324c
KR
35882009-08-10 Ken Raeburn <raeburn@raeburn.org>
3589
1ac9108a 3590 * fns.c (concat): Don't re-set string length to its current value.
77437343 3591
1ac9108a
SM
3592 * coding.h (decode_coding_string, encode_coding_string):
3593 Use SBYTES macro.
f0bed503 3594
1ac9108a 3595 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3596 (doprnt): Merge with doprnt1, discarding lispstrings code.
3597 * lisp.h (doprnt_lisp): Don't declare.
3598
416e006d
JL
35992009-08-07 Juri Linkov <juri@jurta.org>
3600
3601 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3602
6f7d5780
DN
36032009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3604
3605 * print.c (syms_of_print): Undo previous change.
3606
f19a0f5b
TZ
36072009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3608
3609 * lread.c (read1, syms_of_lread): Read hashtables back from the
3610 readable format.
3611
3612 * print.c (print_preprocess, print_object): Print hashtables fully
3613 and readably.
3614 (syms_of_print): Provide 'hashtable-print-readable.
3615
b9173dc2
AR
36162009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3617
3618 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3619 no family set.
3620 (nsfont_open): Handle case when entity has no family.
3621
1586503c
AR
36222009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3623
3624 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3625 element, not a list, for match case.
3626
087048cd
KH
36272009-07-28 Kenichi Handa <handa@m17n.org>
3628
3629 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3630 rigidly.
3631
3632 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3633 font_parse_xlfd. Check font properties more rigidly.
3634
780c2506
DN
36352009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3636
31fd7c5c
JB
3637 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3638 bsd-common.h.
780c2506 3639
a8c0cc18
KH
36402009-07-27 Kenichi Handa <handa@m17n.org>
3641
3642 * xfaces.c (face_with_height): Call font_clear_prop.
3643
4fbe2306
CY
36442009-07-26 Chong Yidong <cyd@stupidchicken.com>
3645
111d9af3
CY
3646 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3647
3648 * xterm.c (x_term_init): Use Qx.
3649
4fbe2306
CY
3650 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3651
1ac9108a 3652 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3653 (ns_get_color): Revert 2009-07-16 change.
3654
beb0b7f9
EZ
36552009-07-25 Eli Zaretskii <eliz@gnu.org>
3656
3657 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3658 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3659
2baf5e76
KR
36602009-07-25 Ken Raeburn <raeburn@raeburn.org>
3661
1ac9108a
SM
3662 * coding.h (decode_coding_string, encode_coding_string):
3663 Use SCHARS macro.
8890e5f5 3664
2baf5e76 3665 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3666 (load_depth): Delete.
2baf5e76
KR
3667 (Qload_in_progress): New variable.
3668 (load_unwind): Don't reference load_depth or load_in_progress.
3669 (Fload): Likewise; specbind Qload_in_progress instead.
3670 (init_lread): Don't initialize load_depth.
3671 (syms_of_lread): Initialize and protect Qload_in_progress.
3672
1395c6f5
AR
36732009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3674
3675 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3676
4e2f36cf
AR
36772009-07-23 Yavor Doganov <yavor@gnu.org>
3678
3679 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3680
5dd9a6f7
AR
36812009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3682
3683 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3684 Bugs 3792, 3720, 2402.
3685 (ns_lookup_indexed_color): Check for bad index.
3686 (ns_index_color): Init unused slot to 0.
3687 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3688 Bug 3714, possibly 3082.
5dd9a6f7 3689
c902b920
JR
36902009-07-22 Jason Rumney <jasonr@gnu.org>
3691
1ac9108a
SM
3692 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3693 Position IME window at cursor (Bug#2570).
c902b920
JR
3694 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3695 (globals_of_w32fns): Dynamically load functions required above.
3696
3697 * w32term.c (w32_draw_window_cursor): Send message to reposition
3698 any IME window.
3699
090101cf
CY
37002009-07-21 Chong Yidong <cyd@stupidchicken.com>
3701
3702 * fileio.c: Revert 2009-07-16 changes.
3703 (Vauto_save_include_big_deletions): New variable.
3704 (Fdo_auto_save): Disable auto-save only if
3705 auto-save-include-big-deletions is nil.
3706
e6583e3d
CY
37072009-07-21 Chong Yidong <cyd@stupidchicken.com>
3708
3709 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3710 the overflowed pixels into account (Bug#3879).
3711
ece435a5
KR
37122009-07-21 Ken Raeburn <raeburn@raeburn.org>
3713
3714 * lread.c (load_depth): New variable.
3715 (Fload, load_unwind, init_lread): Set it to the load recursion
3716 depth; set load_in_progress as a simple boolean based on the
3717 current load_depth. (Bug#3892)
3718
40b2d973
AR
37192009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3720
3721 * nsfont.m (ns_has_attribute): Remove.
3722 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3723
10be7e0d
JL
37242009-07-18 Juri Linkov <juri@jurta.org>
3725
3726 * process.c (Fset_process_query_on_exit_flag): Mention killing
3727 a buffer in docstring.
3728
fa055055
KH
37292009-07-17 Kenichi Handa <handa@m17n.org>
3730
3731 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3732
042f7b69
YM
37332009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3734
3735 * nsfns.m (Fns_set_alpha): Remove function.
3736 (syms_of_nsfns): Don't defsubr it.
3737
3738 * nsterm.m (ns_get_color): Remove incompatible color formats.
3739 (ns_color_to_lisp): Generate #rrggbb color format string.
3740
4be941e3
RS
37412009-07-16 Richard Stallman <rms@gnu.org>
3742
3743 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3744 (Fset_buffer_auto_saved): Handle save_length = -2.
3745
4e6b227d
CY
37462009-07-16 Chong Yidong <cyd@stupidchicken.com>
3747
3748 * xterm.c (Qx_gtk_map_stock): New var.
3749
3750 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3751 of calling intern each time.
3752
a1856973
YM
37532009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3754
3755 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3756 does tiling.
3757
3758 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3759
497e54d8
KH
37602009-07-14 Kenichi Handa <handa@m17n.org>
3761
72d36834
KH
3762 * font.c (font_vconcat_entity_vectors): New function.
3763 (struct font_sort_data): New member font_driver_preference.
3764 (font_compare): Check font_driver_preference.
3765 (font_sort_entities): The format of the first argument changed.
3766 (font_delete_unmatched): Likewise.
3767 (font_list_entities): The return type changed.
3768 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3769 (font_find_for_lface): Adjuste for the above changes.
3770 Don't suppress the checking of C even if the repertory supports it.
3771 (Flist_fonts): Adjust for the above changes.
72d36834 3772
1ac9108a
SM
3773 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3774 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3775 Reject a font who has adstyle property that is different from a
3776 langname derived from registry property.
1ac9108a 3777 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3778
b6046155
EZ
37792009-07-13 Eli Zaretskii <eliz@gnu.org>
3780
3781 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3782 local copy of dirfilename.
3783
fb6b6049
KH
37842009-07-13 Kenichi Handa <handa@m17n.org>
3785
e2402a5e
KH
3786 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3787 against max_char.
3788
fb6b6049
KH
3789 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3790 calling XSYMBOL (sym).
3791
65156807
EZ
37922009-07-11 Eli Zaretskii <eliz@gnu.org>
3793
1ac9108a
SM
3794 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3795 New function.
3796 (directory_files_internal) [WINDOWSNT]:
3797 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3798 the filesystem of the directory is fast or slow.
3799
3800 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3801 file name.
3802 (is_slow_fs): New function.
3803 (stat): Use it to determine whether to issue more system calls to
3804 get accurate file attributes, when w32-get-true-file-attributes is
3805 `local'.
3806
e0ab5fcf
JD
38072009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3808
3809 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3810 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3811 parameter font-parameter as default to the font dialog.
3812
784ceded
KH
38132009-07-10 Kenichi Handa <handa@m17n.org>
3814
3815 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3816
fb8edc0b
EZ
38172009-07-09 Eli Zaretskii <eliz@gnu.org>
3818
1ac9108a 3819 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3820
fb8edc0b
EZ
3821 * w32.c (stat): Treat UNC file names as residing on remote
3822 drives. (Bug#3542)
3823
635c75b1
KH
38242009-07-09 Kenichi Handa <handa@m17n.org>
3825
3826 * fontset.c (fontset_find_font): Fix previous change.
3827
c1d5ce94
MA
38282009-07-08 Michael Albinus <michael.albinus@gmx.de>
3829
3830 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3831 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3832 error flag.
3833
edb61b39
KH
38342009-07-08 Kenichi Handa <handa@m17n.org>
3835
374bf7e4
KH
3836 * fontset.c (fontset_find_font): Fix the logic of handling
3837 charset_matched.
3838 (font_for_char): Delete unused var.
3839 (generate_ascii_font_name): Delete it.
3840
edb61b39
KH
3841 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3842
3843 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3844 (encode_coding_sjis): Fix the code range check.
3845
0f3f018c
CY
38462009-07-07 Chong Yidong <cyd@stupidchicken.com>
3847
3848 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3849 (Fexpand_file_name): Copy string data properly (Bug#3772).
3850
fcaf6f3a
JD
38512009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3852
3853 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3854 first MapNotify.
3855
6809ca75
KH
38562009-07-07 Kenichi Handa <handa@m17n.org>
3857
3858 * character.h (unibyte_has_multibyte_table): Delete extern.
3859 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3860
3861 * charset.c (Fset_charset_priority): Update charset_unibyte.
3862 (syms_of_charset): Initialize charset_unibyte.
3863
3864 * character.c (unibyte_has_multibyte_table): Delete it.
3865 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3866 charset_unibyte.
3867 (multibyte_char_to_unibyte_safe): Likewise.
3868 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3869
1ac9108a 3870 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3871 (x_produce_glyphs): Likewise.
3872
3873 * .gdbinit (xcharset): Fix the treating $arg0.
3874
ad9e2d54
EZ
38752009-07-04 Eli Zaretskii <eliz@gnu.org>
3876
3877 Emulation of `getloadavg' on MS-Windows.
50426a04 3878 * w32.c: Include float.h.
ad9e2d54
EZ
3879 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3880 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3881 (get_native_system_info, get_system_times): New functions.
3882 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3883 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3884 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3885 g_b_init_get_system_times, and num_of_processors.
3886
0a3472c7
JR
38872009-07-03 Jason Rumney <jasonr@gnu.org>
3888
3889 * w32term.c (w32_initialize): Use standard types.
3890
80904120
EZ
38912009-07-03 Eli Zaretskii <eliz@gnu.org>
3892
3893 * dired.c (Ffile_attributes): Decode user and group names by the
3894 locale's encoding. (Bug#3443)
3895
6978862d
DN
38962009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3897
f8d23104
DN
3898 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3899 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3900
3901 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3902
3903 * term.c (init_tty): Remove spurious #ifdef.
3904
6978862d
DN
3905 * m/mips.h: Mention this file is also used for netbsd.
3906 * m/pmax.h: Remove file.
3907
e044e4fc
JD
39082009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3909
3910 * xterm.h (struct x_display_info): Add invisible_cursor.
3911 (struct x_output): Add current_cursor.
3912
3913 * xterm.c (XTtoggle_invisible_pointer): New function.
3914 (x_define_frame_cursor): Don't define cursor if invisible or the
3915 same as before. Set current_cursor.
3916 (x_create_terminal): Set toggle_invisible_pointer_hook.
3917
3918 * xfns.c (make_invisible_cursor): New function.
3919 (x_set_mouse_color): Call make_invisible_cursor.
3920 Set current_cursor.
3921 (x_window): Set current_cursor.
3922
3923 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3924
3925 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3926 inserting a character.
3927 (read_avail_input): Call frame_make_pointer_visible.
3928
3929 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3930 (frame_make_pointer_invisible, frame_make_pointer_visible):
3931 New functions.
e044e4fc
JD
3932 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3933
3934 * frame.h: Declare frame_make_pointer_invisible and
3935 frame_make_pointer_visible.
3936 (struct frame): Add pointer_invisible.
3937
574c8efa
JD
39382009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3939
7b507248
JD
3940 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3941 frame isn't visible.
3942 (xg_frame_resized): If width/height is -1, get size of window
3943 from X server.
3944
3945 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3946 for MapNotify.
3947
835bdaa7 3948 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3949 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3950 (flush_and_sync): Reintroduce.
574c8efa 3951
3f1c6666 39522009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3953
31fd7c5c 3954 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3955
3956 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3957 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3958
3959 * frame.h: Declare Qsticky.
3960
cad9ef74
JD
3961 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3962
3963 * nsfns.m (ns_frame_parm_handlers): Ditto.
3964
3965 * frame.c: Declare Qsticky.
3966 (frame_parms): Add sticky.
3967
3968 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3969
3970 * xterm.h: Declare x_set_sticky.
3971
3972 * xterm.c (x_set_sticky): New function.
3973
69b16610
JD
3974 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3975 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3976 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3977
3978 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3979
3980 * frame.c: Qmaximized is new.
3981 (x_set_frame_parameters): Do not handle fullscreen specially.
3982 Only set width and height if explicitly set.
3983 (x_set_fullscreen): Handle Qmaximized.
3984 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3985 (syms_of_frame): Initialize Qmaximized.
3986
1ac9108a
SM
3987 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3988 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3989
3990 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3991 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3992 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3993 set gravity to NorthWestGravity when USE_GTK.
3994 (set_wm_state): New function.
31fd7c5c 3995 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3996 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3997 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3998 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3999 to x_real_positions and x_fullscreen_adjust.
4000
4001 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4002 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4003 flush_and_sync.
4004 (xg_height_changed): New function.
4005 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4006 and gtk_window_set_policy. Set frame gravity after parsing the
4007 geometry string.
3f1c6666
JD
4008 (xg_update_frame_menubar, free_frame_menubar)
4009 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4010 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4011 Remove calls to xg_frame_set_char_size.
4012
fd503d99
KH
40132009-07-01 Kenichi Handa <handa@m17n.org>
4014
4015 * keyboard.c (decode_keyboard_code): New function.
4016 (tty_read_avail_input): Decode the input bytes if necessary.
4017
1ac9108a
SM
4018 * coding.c (setup_coding_system):
4019 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4020 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4021 use Qno_conversion.
4022
24ed93fb
YM
40232009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4024
4025 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4026
99061dfc
CY
40272009-06-30 Chong Yidong <cyd@stupidchicken.com>
4028
1ac9108a 4029 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4030
ff90fbde
JR
40312009-06-30 Jason Rumney <jasonr@gnu.org>
4032
4033 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4034 is already loaded.
4035 Set user model ID if supported (bug#1849).
4036
5f445726
JM
40372009-06-29 Jim Meyering <meyering@redhat.com>
4038
4039 Remove useless if-before-xfree test.
4040 * nsfont.m (nsfont_close): Remove useless test.
4041 * term.c (delete_tty): Likewise.
4042 * w32.c (system_process_attributes): Likewise.
4043 * w32font.c (w32font_close): Likewise.
4044 * xfaces.c (x_free_gc): Likewise.
4045 * xselect.c (buffer): Likewise.
4046
b9607587
AS
40472009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4048
4049 * process.c (send_process): Keep decoded string in a local
4050 variable and protect it from GC. (Bug#3521)
4051
89ba96f4
EZ
40522009-06-28 Eli Zaretskii <eliz@gnu.org>
4053
4054 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4055 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4056
098a1589
CY
40572009-06-28 Chong Yidong <cyd@stupidchicken.com>
4058
485422be
CY
4059 * xdisp.c (start_display, handle_face_prop)
4060 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4061 (redisplay_window, try_window_id, produce_image_glyph):
4062 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4063
098a1589
CY
4064 * xterm.c (x_update_window_begin, x_new_focus_frame)
4065 (x_scroll_bar_handle_click, handle_one_xevent)
4066 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4067 (x_make_frame_visible, x_make_frame_invisible)
4068 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4069 code chunks that are now obsolete.
4070
78c38319
MA
40712009-06-28 Michael Albinus <michael.albinus@gmx.de>
4072
4073 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4074 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4075 for hours, when optimzation is enabled.
4076 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4077 (xd_read_message): Make them static.
4078
4189ed40
CY
40792009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4080
4081 * term.c (turn_on_face): Allow simultaneously bold and dim
4082 terminal faces (Bug#3530).
4083
cd9b5e16
CY
40842009-06-27 Chong Yidong <cyd@stupidchicken.com>
4085
4e23bedb
CY
4086 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4087
cd9b5e16
CY
4088 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4089 truncation glyphs (Bug#3686).
4090
07cc3c35
GM
40912009-06-27 Glenn Morris <rgm@gnu.org>
4092
4093 * m/pmax.h: Restore file, with only netbsd portions.
4094
31fd7c5c 40952009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4096
cd9b5e16 4097 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4098
42d4a64f
KH
40992009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4100
4101 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4102 the arg FORCE_SYMBOL.
4103
930fe55b 41042009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4105
4106 * fontset.c (fontset_find_font): When a usable rfont_def is found
4107 in a fallback font-group, make it the first element of the group.
4108
57ebc3fd
CY
41092009-06-24 Chong Yidong <cyd@stupidchicken.com>
4110
4111 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4112
f084f942
KH
41132009-06-24 Kenichi Handa <handa@m17n.org>
4114
4115 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4116 set for C.
4117 (fontset_font): Record the availability of a font for C both in
4118 the realized fontsets of the current one and the default one.
4119
2f686c87
DN
41202009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4121
4122 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4123 conditional, it is always defined on AIX.
4124
666e158e
MB
41252009-06-23 Miles Bader <miles@gnu.org>
4126
4127 * window.c (Vrecenter_redisplay): New variable.
4128 (syms_of_window): Initialize it.
4129 (Qtty): New extern declaration.
4130 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4131
c6da7cd2
JM
41322009-06-23 Jim Meyering <meyering@redhat.com>
4133
1ac9108a
SM
4134 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4135 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4136 pointer dereferences are guaranteed to be valid.
c6da7cd2 4137
678dca3d
KH
41382009-06-23 Kenichi Handa <handa@m17n.org>
4139
74d75424
KH
4140 * emacs.c (main): Call init_font ().
4141
4142 * font.h (Vfont_log): Extern it.
4143 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4144
4145 * font.c (font_sort_entities, font_list_entities)
4146 (font_matching_entity, font_open_entity)
4147 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4148 (Vfont_log): Delete static.
4149 (font_log_env_checked): Delete this variable.
4150 (font_add_log): Don't check font_log_env_checked.
4151 (font_deferred_log): Check Vfont_log.
4152 (init_font): New function.
4153
678dca3d
KH
4154 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4155
4156 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4157
4158 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4159
4160 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4161
4162 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4163 (face_for_char): Don't call font_deferred_log here.
4164 (font_for_char): Likewise.
4165
8a668709
CY
41662009-06-22 Chong Yidong <cyd@stupidchicken.com>
4167
9a01ee33
CY
4168 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4169 rather than its background_width for drawing the overline and
4170 underline (Bug#489).
4171
4172 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4173 rather than its background_width for drawing the overline and
4174 underline (Bug#489).
ec7c9926
CY
4175 (xg_default_icon_file): New variable.
4176 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4177 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4178
8a668709
CY
4179 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4180 (load_overlay_strings): Remove externs.
4181 (fast_find_position): Function deleted.
4182 (mouse_face_from_buffer_pos): New function, based on
4183 fast_find_position. Correctly handle before-strings,
4184 display-strings, and after-strings (Bug#1220).
4185 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4186
4d4c02d8
CY
41872009-06-21 Chong Yidong <cyd@stupidchicken.com>
4188
1ac9108a 4189 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4190 (move_it_in_display_line_to, move_it_in_display_line_to)
4191 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4192
70243478
CY
41932009-06-21 Chong Yidong <cyd@stupidchicken.com>
4194
4195 * Branch for 23.1.
4196
13087e59
JR
41972009-06-21 Jason Rumney <jasonr@gnu.org>
4198
4199 * w32term.c (keyboard_codepage): New static variable.
4200 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4201 (w32_read_socket) [WM_CHAR]: Use it to decode character
4202 input (bug#3237).
4203 (w32_initialize): Initialize it.
4204 (codepage_for_locale): New function.
4205
4735b74e
KR
42062009-06-20 Ken Raeburn <raeburn@raeburn.org>
4207
4208 * process.c (status_message): Pass Faset index argument as a lisp
4209 object, so as to work with USE_LISP_UNION_TYPE.
4210
0e727afa
YM
42112009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4212
4213 * coding.c (Ffind_coding_systems_region_internal):
4214 Cache checked characters.
4215
cf299835
KH
42162009-06-18 Kenichi Handa <handa@m17n.org>
4217
1ac9108a 4218 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4219
90f20d94
AS
42202009-06-18 Andreas Schwab <aschwab@redhat.com>
4221
4222 * xdisp.c (redisplay_internal): Check that the frame is still
4223 live after redisplay of its windows.
4224 (redisplay_windows): Check that the window is still live.
4225
7f1faf1c
KH
42262009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4227
4228 * coding.c (detect_coding_utf_16): Fix previous change.
4229
cc13543e
KH
42302009-06-16 Kenichi Handa <handa@m17n.org>
4231
4232 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4233 UTF-16 by checking the dispersion of Eth and Oth bytes.
4234
977b85f4
AS
42352009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4236
4237 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4238
66bd43d1
KH
42392009-06-15 Kenichi Handa <handa@m17n.org>
4240
4241 * process.c (status_message): Fix previous change. Be sure to
4242 decode a localized string.
4243
cb5ca9c5
YM
42442009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4245
4246 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4247 add comment explaining why.
4248
ec7709ba 42492009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4250
ec7709ba 4251 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4252
4b7f335c
AR
42532009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4254
4255 * nsfont.m (ns_attribute_value): Remove.
4256 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4257 (ns_has_attribute): Shrink the normal range.
4258 (ns_findfonts): Don't worry about requested spec in determining
4259 need for synthItal.
e41820ee 4260 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4261
73b26103
SZ
42622009-06-14 Seiji Zenitani <zenitani@mac.com>
4263
4264 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4265
5753e4da
KH
42662009-06-11 Kenichi Handa <handa@m17n.org>
4267
4268 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4269 overhang for the static composition case.
4270
3561b671
KH
42712009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4272
5753e4da
KH
4273 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4274 overhang for the automatic composition case.
4275
3561b671
KH
4276 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4277 composition case.
4278
852bbd41
CY
42792009-06-10 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * xdisp.c (get_next_display_element): When handling wrap-prefix
4282 and line-prefix, treat \n as a control character (bug#3502).
4283
9903d1e6
KH
42842009-06-10 Kenichi Handa <handa@m17n.org>
4285
4286 * font.c (font_parse_family_registry): Fix for one-char foundry.
4287 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4288
0bcbaaaa
CY
42892009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4290
4291 * process.c (status_message): Fix handling of multibyte signal
4292 string (Bug#3499).
4293
40aa3f13
JM
42942009-06-09 Jim Meyering <meyering@redhat.com>
4295
1f80c7e2
CY
4296 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4297 color name is missing.
40aa3f13 4298
72d51285
KH
42992009-06-09 Kenichi Handa <handa@m17n.org>
4300
4301 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4302 FROM-CODE and TO-CODE are codepoints of CHARSET.
4303
c1d04d84
AR
43042009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4305
4306 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4307
43082009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4309
4310 Changes to support :script/:lang/:otf in NS font driver.
4311 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4312 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4313 indicate not part of font driver interface, and change callers.
4314 (ns_get_family): Remove pointless null check.
4315 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4316 ns_spec_to_descriptor, ns_descriptor_to_entity.
4317 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4318 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4319 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4320 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4321 (ns_get_req_script, ns_accumulate_script_ranges)
4322 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4323 New functions.
4324 (nsfont_list, nsfont_match): Use ns_findfonts.
4325 (nsfont_open): Use font descriptor instead of traits.
4326 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4327 (dump_glyphstring): Rename to ns_dump_glyphstring.
4328
c7eb9816
AR
4329 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4330
c1d04d84
AR
4331 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4332
4333 * fontset.c (fontset_from_font): Remove NS-specific code.
4334
ec7709ba 43352009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4336
4337 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4338 nonactive windows.
4339
31fd7c5c 43402009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4341
1ac9108a 4342 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4343
68852c13 43442009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4345
4346 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4347
6756cd1d
CY
43482009-06-07 Chong Yidong <cyd@stupidchicken.com>
4349
4350 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4351 account for the overflowing of newlines into the last glyph on the
4352 display line (Bug#3482).
4353
28bf482a
DR
43542009-06-05 David Reitter <david.reitter@gmail.com>
4355
ec7709ba
JB
4356 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4357 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4358 Fns_selection_exists_p, Fns_selection_owner_p.
4359
fdb55376
JR
43602009-06-03 Jason Rumney <jasonr@gnu.org>
4361
4362 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4363 available. (Bug#3379)
4364
05129fbe
KH
43652009-05-29 Kenichi Handa <handa@m17n.org>
4366
1ac9108a
SM
4367 * coding.c (get_translation_table):
4368 Check Venable_character_translation.
05129fbe 4369
ec7709ba 43702009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4371
ec7709ba
JB
4372 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4373 (x_make_frame_visible): Move frame to front rather than calling
15891144 4374 ns_raise_frame().
ec7709ba 4375 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4376 isn't key window.
ec7709ba 4377 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4378 drawRect may be called by NSView even if the frame is hidden.
4379
ec7709ba
JB
4380 * nsfns.m (Fx_create_frame): Follow other ports in
4381 determining visibility; default to t. Ensure async_visible is set.
15891144 4382
21f73755
EZ
43832009-05-23 Eli Zaretskii <eliz@gnu.org>
4384
4385 * dired.c (Ffile_attributes): Doc fix.
4386
34001e41
CY
43872009-05-22 Chong Yidong <cyd@stupidchicken.com>
4388
4389 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4390
46306a17
SM
43912009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4392
4393 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4394 and xfont_scratch_props.
4395 (syms_of_xfont): Do it here instead.
4396 (xfont_find_ccl_program): Delete, unused.
4397 (xfont_open): Delete unused var `i'.
4398
ef6e0694
KH
43992009-05-21 Kenichi Handa <handa@m17n.org>
4400
4401 * fontset.c (Qlatin): Don't make it static.
4402
46306a17
SM
4403 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4404 New functions.
ef6e0694
KH
4405 (xfont_scripts_cache, xfont_scratch_props): New variables.
4406 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4407 (xfont_list_pattern): Argument changed. Callers changed.
4408 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4409 (xfont_list): Don't reject a font spec with :script property.
4410 (xfont_has_char): Fix setting of encoding.
4411 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4412 xfont_scratch_props.
4413
44142009-05-19 Kenichi Handa <handa@m17n.org>
4415
46306a17 4416 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4417 Callers changed.
4418
44192009-05-18 Kenichi Handa <handa@m17n.org>
4420
4421 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4422
ac71ced7
SM
44232009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4424
4425 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4426 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4427
1c6d1051
YM
44282009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4429
4430 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4431 (x_delete_terminal): Dissociate resource database from display and
4432 then call XrmDestroyDatabase before closing display.
4433
9b9b779c
AR
44342009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4435
4436 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4437 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4438 whether selected frame is viable before raising it (based on patch
4439 by David Reitter), and improve commentary.
4440 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4441
cccd42d5
KH
44422009-05-15 Kenichi Handa <handa@m17n.org>
4443
4444 * font.c (Ffont_spec): Check arguments.
4445
337fbd17
CY
44462009-05-14 Chong Yidong <cyd@stupidchicken.com>
4447
4448 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4449 weight when testing attributes (Bug#3282).
4450
47a6002f
JD
44512009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4452
4453 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4454 what we expect to get in the next ConfigureNotify event.
4455
9cb363db
YM
4456 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4457 before Xft one (Bug#1696).
4458
b9126609
CY
44592009-05-07 David Reitter <david.reitter@gmail.com>
4460
4461 * nsfns.m (Fx_display_planes): Compute bitplanes using
4462 NSBitsPerPixelFromDepth (Bug#3207).
4463
27a69fd9
CY
44642009-05-10 Chong Yidong <cyd@stupidchicken.com>
4465
4466 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4467
00f37552
TTN
44682009-05-10 Ulrich Mueller <ulm@gentoo.org>
4469
4470 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4471
2d82a920
DR
44722009-05-07 David Reitter <david.reitter@gmail.com>
4473
ec7709ba
JB
4474 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4475 Respect mouse face background.
2d82a920 4476
46b0d52d
DR
44772009-05-07 David Reitter <david.reitter@gmail.com>
4478
ec7709ba
JB
4479 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4480 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4481 in ns_update_begin and ns_update_end.
4482
ce1b23bb
SM
44832009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4484
5996e1b7
SM
4485 * nsfns.m (ns_get_screen): Rewrite.
4486 Don't presume selected-frame is of type `ns'.
4487
ba98e3a0
SM
4488 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4489 all drivers.
4490
ce1b23bb
SM
4491 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4492
bcda200f
YM
44932009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4494
4495 * keyboard.h (add_user_signal): Fix typo in extern.
4496
4497 * lisp.h (add_user_signal): Remove extern.
4498
4499 * unexelf.c (unexec): Consider a section to precede the .bss section
4500 if its addresses overlap that of .bss.
4501 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4502 instead of dumping process.
4503
864660a2
SM
45042009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4505
4506 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4507
50da4e56
SM
45082009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4509
4510 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4511
51520a1a
DN
45122009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4513
4514 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4515 any statements.
4516
409ea3a1
AS
45172009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4518
59c4c60f
AS
4519 * process.c (read_process_output): Make sure the current buffer is
4520 always restored.
4521
409ea3a1
AS
4522 * coding.c (record_conversion_result): Don't modify
4523 Vlast_code_conversion_error for successful result.
4524 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4525
56f00ed2
KH
45262009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4527
4528 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4529 (load_charset_map): Remove unnecessary code.
56f00ed2 4530
4491c9d2
DR
45312009-04-30 David Reitter <david.reitter@gmail.com>
4532
35f5b128 4533 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4534 through f24.
4535
6970f632
CY
45362009-04-30 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4539
4540 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4541 face_at_buffer_position.
4542 (face_before_or_after_it_pos, get_next_display_element)
4543 (note_mouse_highlight): Update face_at_buffer_position call.
4544
4545 * term.c (term_mouse_highlight):
4546 * msdos.c (IT_note_mouse_highlight):
4547 * fontset.c (Finternal_char_font):
35f5b128 4548 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4549
4550 * dispextern.h (face_at_buffer_position): Update prototype.
4551
0c616f63
KH
45522009-04-30 Kenichi Handa <handa@m17n.org>
4553
35f5b128 4554 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4555
ad3aaf33
AS
45562009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4557
4558 * callproc.c (Fcall_process): Fix GC protection. Make sure
4559 current buffer is always restored.
4560
c3c963a0
YM
45612009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4562
4563 * atimer.c (init_atimer): Also clear stopped_atimers.
4564
4565 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4566
7e3386cb
YM
4567 * process.c (create_process): Clean up merger residues of
4568 2008-07-17 change.
4569
91f68422
CY
45702009-04-29 Ulrich Mueller <ulm@gentoo.org>
4571
4572 * lread.c (Vread_circle): New variable.
4573 (read1): Disable recursive read if Vread_circle is nil.
4574
24b34550
KH
45752009-04-29 Kenichi Handa <handa@m17n.org>
4576
4577 * fontset.h (set_default_ascii_font): Delete extern.
4578
4579 * fontset.c (set_default_ascii_font): Delete this unused function.
4580
4581 * frame.c (x_set_font): When ARG is a font-object, check if the
4582 font-object matches with the ASCII font-spec of the frame's
9c358bda 4583 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4584
77bf07e1
AS
45852009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4586
4587 * fns.c (Flocale_info): Protect vector from GC during decoding.
4588
4589 * process.c (Fstart_process): Protect argv strings from GC during
4590 encoding.
4591
2c55aacf
AS
45922009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4593
4594 * sysdep.c: Include <ctype.h>.
4595
b892d3c9
DR
45962009-04-27 David Reitter <david.reitter@gmail.com>
4597
35f5b128 4598 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4599 Remove commented-out code.
4600
9d0644c4
JB
46012009-04-26 Johan Bockgård <bojohan@gnu.org>
4602
4603 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4604
b7053016
JR
46052009-04-25 Jason Rumney <jasonr@gnu.org>
4606
4607 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4608
4e8231f3
YM
46092009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4610
4611 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4612 Swap bytes in short integer if fringe bitmap width > 8.
4613
493dcf2c
KH
46142009-04-23 Kenichi Handa <handa@m17n.org>
4615
4616 * xfaces.c (Fx_list_fonts): If a font size is specified in
4617 PATTERN, set it in returned scalable fonts.
4618
401e9e57
CY
46192009-04-22 Chong Yidong <cyd@stupidchicken.com>
4620
708e05dc
CY
4621 * keyboard.c (Fset_input_meta_mode): Doc fix.
4622
4623 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4624
1ac9108a 4625 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4626
4627 * coding.c (Fterminal_coding_system): Doc fix.
4628
4629 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4630 (Fx_display_pixel_height, Fx_display_planes)
4631 (Fx_display_color_cells, Fx_server_max_request_size)
4632 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4633 (Fx_display_mm_height, Fx_display_mm_width)
4634 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4635 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4636 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4637 (check_x_display_info): Handle terminal objects instead of
4638 terminal ids.
4639
401e9e57
CY
4640 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4641 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4642 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4643 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4644
df80c7f0
KH
46452009-04-21 Kenichi Handa <handa@m17n.org>
4646
5a8f12af 4647 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4648 (font_score): Check AVGWIDTH too.
908567ef 4649
df80c7f0
KH
4650 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4651 worst case.
1ac9108a
SM
4652 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4653 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4654
705af33f
JR
46552009-04-19 Jason Rumney <jasonr@gnu.org>
4656
4657 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4658 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4659
4660 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4661 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4662 get_phys_cursor_geometry.
4663
b71ac3dd 4664 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4665 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4666 using get_phys_cursor_geometry.
4667
4668 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4669 correctly calculated.
4670
dc2933eb
JD
46712009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4672
1ac9108a
SM
4673 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4674 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4675 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4676 is deprecated.
4677
973e7849
AS
46782009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4679
4680 * font.c (font_put_frame_data): Use xfree instead of free.
4681
314d66f4
JB
46822009-04-17 Juanma Barranquero <lekktu@gmail.com>
4683
4684 * w32font.c (Qja, Qko): Remove declarations.
4685 (syms_of_w32font): Don't DEFSYM them.
4686
cf702558
CY
46872009-04-17 Chong Yidong <cyd@stupidchicken.com>
4688
4689 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4690
4691 * font.h (Qja, Qko): Extern them.
4692
4693 * ftfont.c (Qja, Qko): Remove declarations.
4694
4695 * xfont.c (Qja, Qko): Remove declarations.
4696
b50504f5
KH
46972009-04-17 Kenichi Handa <handa@m17n.org>
4698
bde25748
KH
4699 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4700 string from a vector to handle Latin-1 characters correctly.
4701
b50504f5
KH
4702 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4703 entity even if the cache hits.
4704
f4646fff
AS
47052009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4706
4707 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4708 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4709
e7deaab0
AS
4710 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4711 * lisp.h: Adjust prototypes.
4712
0a0e7d49
CY
47132009-04-16 Chong Yidong <cyd@stupidchicken.com>
4714
4715 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4716 change (Bug#3003).
4717
3c908a57
KH
47182009-04-16 Kenichi Handa <handa@m17n.org>
4719
1ac9108a 4720 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4721
4722 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4723 adstyle.
4724
4725 * ftfont.c (Qja, Qko): Don't make them static.
4726 (enum ftfont_cache_for): New enum.
4727 (fc_charset_table): Undo the previous change.
4728 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4729 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4730 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4731 non-scarable font, try to get AVERAGE_WIDTH.
4732 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4733 Change ft_face_cache from a list of a hash-table. Don't check
4734 `ja' and `ko' adstyle here.
4735 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4736 FTFONT_CACHE_FOR_CHARET.
4737 (ftfont_get_charset): Undo the previous change.
1ac9108a 4738 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4739 (ftfont_close): Likewise.
4740 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4741
4742 * font.c (font_sort_entites): Change the meaning of the arg
4743 BEST-ONLY. Don't optimize for VEC of lenght 1.
4744 (font_select_entity): Just return the value of font_sort_entites.
4745
4746 * xfaces.c (merge_face_vectors): Reflect font properties in
4747 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4748 font_clear_prop if a face attribute doesn't change.
4749
3c908a57
KH
4750 * charset.h (charset_ksc5601): Extern it.
4751
4752 * charset.c (charset_ksc5601): New variable.
4753 (Fdefine_charset_internal): Set charset_ksc5601.
4754 (init_charset_once): Initialize charset_ksc5601 to -1.
4755
d65859c3
DN
47562009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4757
4758 * fileio.c (history_delete_duplicates): Remove unused declaration.
4759
4760 * callint.c (history_delete_duplicates): New declaration.
4761 (Fcall_interactively): Remove command history duplicates when
4762 history_delete_duplicates is true.
4763
3ba010e5
EZ
47642009-04-14 Eli Zaretskii <eliz@gnu.org>
4765
4766 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4767
06f19b91
KH
47682009-04-14 Kenichi Handa <handa@m17n.org>
4769
4770 * font.c (Ffont_info): Fix docstring. Fix the second element of
4771 the returned value (bug#2949).
4772
2cce8bfc
CY
47732009-04-14 Chong Yidong <cyd@stupidchicken.com>
4774
4775 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4776
d156542d
KH
47772009-04-14 Kenichi Handa <handa@m17n.org>
4778
4779 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4780 encoding charset is ascii_compatible.
4781
4782 * charset.c (Fdefine_charset_internal): Make charset
4783 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4784 code_offset is 0, and covers all ASCII characters.
4785
86fa089e
SM
47862009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4787
4788 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4789 (ns_string_to_pasteboard_internal):
4790 * nsmenu.m (process_dialog):
4791 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4792 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4793 * lisp.h (Fx_load_color_file): Declare.
4794
a8a3728b
KH
47952009-04-13 Kenichi Handa <handa@m17n.org>
4796
1ac9108a 4797 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4798 (font_select_entity): Suppress the code to optimize for the same
4799 kind of fonts.
4800 (font_load_for_lface): Get a font that supports at least ASCII
4801 characters.
4802
4803 * ftfont.c (Qja, Qko): New variables.
4804 (fc_charset_table): Delete uniquifier data for iso8859-1.
4805 (ftfont_get_latin1_charset): New function.
4806 (get_adstyle_property): New function.
4807 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4808 bitmap fonts.
4809 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4810 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4811 `ko' or `ja'.
4812 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4813 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4814 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4815 property.
4816 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4817 (syms_of_ftfont): DEFSYM Qja and Qko.
4818
483670b5
KH
48192009-04-09 Kenichi Handa <handa@m17n.org>
4820
12b55765
KH
4821 * charset.c (map_charset_chars): For a charset of `superset'
4822 method, fix calculation of code range.
4823
483670b5
KH
4824 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4825 from the list of extra properties.
4826 (font_clear_prop): Be sure to delete `:name' font property.
4827
57d3b93b
KH
48282009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4829
b4b2c2ca
YM
4830 * dispnew.c (redraw_overlapping_rows): Fix detection of
4831 overlapping for topmost and bottommost rows.
4832
1ac9108a 4833 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4834
472c3609
JR
48352009-04-06 Jason Rumney <jasonr@gnu.org>
4836
4837 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4838
ab193662
KH
48392009-04-06 Kenichi Handa <handa@m17n.org>
4840
4841 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4842
4843 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4844
0c26f026
KH
48452009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4846
4847 * ftfont.c (ftfont_open): Fix checking of the return value of
4848 FT_Load_Char. Fix setting font->underline_thickness.
4849
e173bbce
CY
48502009-04-04 Chong Yidong <cyd@stupidchicken.com>
4851
4852 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4853 (Fterminal_parameters, Fterminal_parameter)
4854 (Fset_terminal_parameter): In doc string, refer to terminal
4855 objects rather than terminal ids.
4856
693a2698
EZ
48572009-04-04 Eli Zaretskii <eliz@gnu.org>
4858
4859 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4860 ret_lim_data. (Bug#2867)
4861
d5221487
CY
48622009-04-03 Chong Yidong <cyd@stupidchicken.com>
4863
4864 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4865 so they don't get wider than the window, matching 2006-01-23
4866 change to the partner function in xdisp.c (Bug#2800).
4867
223509a3
KH
48682009-04-03 Kenichi Handa <handa@m17n.org>
4869
4870 * print.c (print_object): Make each lowest sub_char_table start a
4871 new line (Bug#2866).
4872
74fcd0b1
KH
48732009-04-02 Kenichi Handa <handa@m17n.org>
4874
4875 * fontset.c (fontset_font): Record no-font when a fontset
4876 explicitly tells not to try another font-specs.
4877
c542407d
SM
48782009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4879
4880 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4881
e3869731
KH
48822009-03-30 Kenichi Handa <handa@m17n.org>
4883
d8d2f142
KH
4884 * fontset.c (fontset_from_font): Specify only registry in a
4885 font-spec for all characters supported by that registry.
4886
e3869731
KH
4887 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4888 even if HAVE_M17N_FLT is not defined.
4889
5da5f805
CY
48902009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4891
4892 * ftfont.c: Conditionalize prototyping and use of
4893 ftfont_variation_glyphs.
4894
ab226c50
SM
48952009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4896
9628fed7
SM
4897 * frame.c (delete_frame): Work around compiler bug.
4898
4899 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4900 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4901 Some more EMACS_INT.
4902 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4903
4904 * xdisp.c (dump_glyph): Fix typo.
4905
ae19ba7c
SM
4906 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4907 (adjust_markers_gap_motion, adjust_markers_for_delete)
4908 (adjust_markers_for_insert, adjust_point)
4909 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4910 (make_gap, copy_text, count_size_as_multibyte, insert)
4911 (insert_and_inherit, insert_before_markers)
4912 (insert_before_markers_and_inherit, insert_1)
4913 (count_combining_before, count_combining_after, insert_1_both)
4914 (insert_from_string, insert_from_string_before_markers)
4915 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4916 (insert_from_buffer_1, adjust_after_replace)
4917 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4918 (replace_range_2, del_range, del_range_1, del_range_byte)
4919 (del_range_both, del_range_2, modify_region)
4920 (prepare_to_modify_buffer, signal_before_change)
4921 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4922 for buffer positions and sizes.
4923 * lisp.h: Adjust prototypes accordingly.
4924
4925 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4926 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4927 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4928
ab226c50
SM
4929 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4930
46dfb8fb
JD
49312009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4932
4933 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4934 lines and columns so we keep the same pixel height and width.
4935
4936 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4937 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4938 (x_handle_net_wm_state): New function to update frame parameter
4939 fullscreen.
4940 (x_term_init): Initialize atoms for _NET_WM_STATE.
4941
4942 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4943
d347e494
SM
49442009-03-27 Kevin Ryde <user42@zip.com.au>
4945
4946 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4947 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4948 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4949 (Fgpm_mouse_stop): Pass that new parameter.
4950 * termhooks.h (close_gpm): Adjust prototype.
4951
84db11d6
SM
49522009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4953
c95a5008
SM
4954 * lisp.h (Fx_focus_frame): Declare.
4955
84db11d6
SM
4956 * callint.c (Fcall_interactively): For '^' just delegate the work to
4957 handle-shift-selection.
4958 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4959
0a1958d6
CY
49602009-03-24 Chong Yidong <cyd@stupidchicken.com>
4961
0bfdff23
CY
4962 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4963
0a1958d6
CY
4964 * data.c (Qinteractive_form): New variable.
4965 (Finteractive_form): Use it.
4966
4967 * eval.c (Fcommandp): Use Qinteractive_form.
4968
58aec0d6
JR
49692009-03-24 Jason Rumney <jasonr@gnu.org>
4970
4971 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4972 Calculate total size precisely. Decode environment variables
4973 before substituting. (Bug#38)
4974
553dd618
KH
49752009-03-24 Kenichi Handa <handa@m17n.org>
4976
4977 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4978 encoding (Bug#2722).
553dd618 4979
c39ea606
JD
49802009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4981
4982 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4983 that gdpy is set.
4984
bc9b2b5e
AM
49852009-03-22 Alan Mackenzie <acm@muc.de>
4986
4987 * callint.c (Finteractive): Clarify the doc string - even
4988 promptless elements need \n separators.
4989
9f995a76
JR
49902009-03-22 Jason Rumney <jasonr@gnu.org>
4991
4992 * w32term.c (syms_of_w32term): Doc fix for
4993 x-use-underline-position-properties.
4994
22749e9a
EZ
49952009-03-21 Eli Zaretskii <eliz@gnu.org>
4996
4997 * w32.c (getpwuid): Change argument type to unsigned.
4998 (struct w32_id): Change type of `rid' member to unsigned.
4999 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5000 argument ID to unsigned. All callers changed.
5001 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5002
e00553bf
EZ
50032009-03-20 Eli Zaretskii <eliz@gnu.org>
5004
5005 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5006 negative, produce a float value.
5007
5008 * dired.c (make_uid, make_gid): New functions.
5009 (Ffile_attributes): Use them to avoid negative UID and GID.
5010
f761d6b6
JB
50112009-03-20 Juanma Barranquero <lekktu@gmail.com>
5012
5013 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5014 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5015 Fix typos in docstrings.
5016
d507f8d7
KH
50172009-03-19 Kenichi Handa <handa@m17n.org>
5018
5019 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5020 changed, use font_load_for_lface to get a new font object.
5021 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5022
5023 * frame.c (x_set_font): Handle the case that ARG is a cons.
5024
c68845e0
GM
50252009-03-19 Glenn Morris <rgm@gnu.org>
5026
5027 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5028
bfa49dd1
CY
50292009-03-19 Chong Yidong <cyd@stupidchicken.com>
5030
5031 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5032
8458d4c1
KH
50332009-03-19 Kenichi Handa <handa@m17n.org>
5034
5035 * charset.c (load_charset_map_from_file): When a mapfile can't be
5036 loaded, signal an error.
5037
78e7d1fe
EZ
50382009-03-18 Eli Zaretskii <eliz@gnu.org>
5039
5040 * dired.c (Ffile_attributes): Make sure UID and GID are always
5041 positive, even if the value is too large for a positive EMACS_INT.
5042 Doc fix.
5043
5044 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5045
5da9fdfa
YM
50462009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5047
5048 * xmenu.c (xdialog_show): Move Fredisplay call ...
5049 (Fx_popup_dialog): ... here.
5050
7519c40d
SM
50512009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5052
5053 * dired.c (file_name_completion): Disable the first optimization just
5054 installed, since it is not implemented correctly.
5055
2cd298e2
SM
50562009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5057
5058 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5059 only if the entry can affect bestmatch.
2cd298e2
SM
5060 Stop the search early, as Ftry_completion already does.
5061
48d37adf
CY
50622009-03-17 Chong Yidong <cyd@stupidchicken.com>
5063
e10c9c93 5064 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5065
9286b16a
CY
50662009-03-15 Chong Yidong <cyd@stupidchicken.com>
5067
5068 * keyboard.c (parse_menu_item): Don't display remappings as menu
5069 equivalent bindings (Bug#788).
5070
f7b146dc
JR
50712009-03-15 Jason Rumney <jasonr@gnu.org>
5072
5073 * w32term.h (WM_EMACS_PAINT): New message.
5074 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5075 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5076 before passing to lisp thread. (Bug#950)
5077
f761d6b6 50782009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5079
d93f9575
CY
5080 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5081 variable as it was never reset.
5082 (ns_term_init): Remove initialization of Lisp-settable defaults
5083 and ns_expand_space.
5084 (-setPanelFromDefaultValues): Remove ns_expand_space.
5085 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5086 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5087 i.e. no additional spacing, similar to Carbon port.
5088
d93f9575
CY
5089 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5090 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5091
305018ec
JD
50922009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5093
5094 * sound.c (alsa_configure): Remove call to deprecated
5095 snd_pcm_sw_params_set_xfer_align.
5096
f761d6b6 50972009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5098
5099 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5100 after clicking in a detached tool bar.
5101 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5102
46e722a9
SM
51032009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5104
348db3dd
SM
5105 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5106 int/Lisp_Object mixup).
46e722a9 5107
a3d16f39
KH
51082009-03-13 Kenichi Handa <handa@m17n.org>
5109
5110 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5111 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5112 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5113 (set_fontset_font): Change ARG to a vector. Handle range_list in
5114 ARG correctly.
5115 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5116 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5117 the above change.
5118 (fontset_from_font): Fix previous change.
fe24f56a 5119 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5120 entry. If FONTSET is the default fontset, don't set the extra
5121 slot of the returning char-table.
5122
b066e6b6
JB
51232009-03-12 Juanma Barranquero <lekktu@gmail.com>
5124
5125 * nsfns.m (Fx_close_connection): Doc fix.
5126 (Fns_do_applescript): Reflow docstring.
5127 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5128 (Fx_display_pixel_width, Fx_display_pixel_height)
5129 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5130 Fix typos in docstrings.
5131 (Fns_set_alpha): Fix typos in error messages.
5132
d472514e 51332009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5134
d472514e 5135 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5136 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5137 were used for such events.
5138
d472514e
JB
5139 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5140 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5141
d472514e 5142 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5143 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5144
fb930676
KH
51452009-03-11 Kenichi Handa <handa@m17n.org>
5146
ff85581a
KH
5147 * font.h (font_open_by_spec): Extern it.
5148
c50b7e98
KH
5149 * font.c (font_open_by_spec): New function.
5150 (font_open_by_name): Use font_open_by_spec.
5151
fb930676
KH
5152 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5153 fontset of the frame.
5154
5155 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5156 modify the default font of frames that use this fontset.
5157 (num_auto_fontsets): New variable.
5158 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5159 name. Be sure to set FONTSET_ASCII to the correct font name.
5160 (update_auto_fontset_alist): New function.
5161
df4e8455
JB
51622009-03-11 Juanma Barranquero <lekktu@gmail.com>
5163
5164 * makefile.w32-in: Update dependencies.
5165
0a375797
AR
51662009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5167
5168 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5169
61313fa3
SM
51702009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5171
5172 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5173
b55103fb
CY
51742009-03-10 Chong Yidong <cyd@stupidchicken.com>
5175
5176 * lread.c (Feval_buffer): Doc fix.
5177
dde2559c
KH
51782009-03-09 Kenichi Handa <handa@m17n.org>
5179
5180 * charset.c (Qfile_name_handler_alist): Extern it.
5181 (load_charset_map_from_file): Temporarily bind
5182 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5183
df4e8455 51842009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5185
47f588bb
GM
5186 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5187 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5188
4ddf94bd
AR
51892009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5190
4c9bdfc2
AR
5191 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5192 (x_set_window_size): Change back to calculated method of setting
5193 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5194 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5195 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5196
fe41ae9e
AR
5197 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5198
4c9bdfc2
AR
5199 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5200 accelerator in parens under GNUstep.
5201
825d0875
KH
52022009-03-06 Kenichi Handa <handa@m17n.org>
5203
5204 These changes are to detect incorrect composition sequence without
f3b3be74 5205 looking ahead the source. (Bug#2370)
825d0875
KH
5206
5207 * coding.h: Include "composite.h".
5208 (enum compisition_state): New enum.
5209 (struct compisition_status): New struct.
5210 (struct iso_2022_spec): New member cmp_status.
5211 (struct emacs_mule_spec): New struct.
5212 (struct coding_system): New members ctext_extended_segment_len and
5213 embedded_utf_8. Change the union member
5214 spec.emacs_mule_full_support to spec.emacs_mule.
5215
5216 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5217 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5218 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5219 (ADD_COMPOSITION_DATA): New arg nbytes.
5220 (emacs_mule_char): New arg cmp_status.
5221 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5222 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5223 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5224 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5225 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5226 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5227 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5228 (EMACS_MULE_COMPOSITION_END): New macro.
5229 (emacs_mule_finish_composition): New function.
5230 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5231 (decode_coding_emacs_mule): Avoid long looking ahead while
5232 handling composition.
5233 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5234 (ENCODE_COMPOSITION_RULE): New macro.
5235 (finish_composition): New function.
5236 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5237 (DECODE_COMPOSITION_START): New implementation.
5238 (DECODE_COMPOSITION_END): Likewise.
5239 (STORE_COMPOSITION_RULE): New macro.
5240 (decode_coding_iso_2022): Avoid long looking ahead while handling
5241 composition, CTEXT extended segment, and embedded UTF-8.
5242 (setup_coding_system): For a coding of type iso-2022, reset
5243 CODING_ISO_EXTSEGMENT_LEN (coding) and
5244 CODING_ISO_EMBEDDED_UTF_8 (coding).
5245 (get_translation): Delete arguments last_block, from_nchars,
5246 to_nchars. Callers changed.
5247 (produce_chars): Don't modify charbuf. Adjusted for the change of
5248 get_translation.
98a326f7 5249 (produce_composition): Adjust for the new annotation sequence.
825d0875 5250 (handle_composition_annotation): Likewise.
98a326f7 5251 (consume_chars): Adjust for the change of get_translation.
825d0875 5252
ccbc4452
AR
52532009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5254
4ddf94bd 5255 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5256
988a7ddb
KH
52572009-03-05 Kenichi Handa <handa@m17n.org>
5258
5259 * font.c (font_select_entity): New function.
5260 (font_find_for_lface): Use font_select_entity to select a font.
5261
5262 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5263 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5264 font with C restriction.
5265
98a326f7 52662009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5267
be1bce46 5268 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5269
10ea2b82
JR
52702009-03-04 Jason Rumney <jasonr@gnu.org>
5271
2c93b248 5272 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5273 characters that have already been read. (Bug#2569)
2c93b248 5274
10ea2b82
JR
5275 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5276 Log an error message if check_image_size failed.
5277 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5278 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5279
71a0c011
EZ
52802009-03-02 Eli Zaretskii <eliz@gnu.org>
5281
5282 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5283 when decoding process output.
5284
2f63bba8
RS
52852009-03-01 Richard M Stallman <rms@gnu.org>
5286
5287 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5288
5289 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5290
0a9564cb
EZ
52912009-02-28 Eli Zaretskii <eliz@gnu.org>
5292
5293 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5294 (decode_coding_emacs_mule, decode_coding_iso_2022)
5295 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5296 (decode_coding_raw_text, decode_coding_charset)
5297 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5298 Honor inhibit-eol-conversion. (Bug #2186)
5299
449148b3
JR
53002009-02-28 Jason Rumney <jasonr@gnu.org>
5301
5302 * coding.c (detect_coding_charset): If not checking latin extra,
5303 fail on characters between 0x80 and 0xA0. (Bug#2354)
5304
a4aee864
EZ
53052009-02-28 Eli Zaretskii <eliz@gnu.org>
5306
5307 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5308 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5309
d88bee5a
GM
53102009-02-27 Glenn Morris <rgm@gnu.org>
5311
5312 * callint.c (Finteractive): Doc fix.
5313
a808f22d
KH
53142009-02-27 Kenichi Handa <handa@m17n.org>
5315
5316 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5317
caf8d60c
CY
53182009-02-27 Chong Yidong <cyd@stupidchicken.com>
5319
5320 * font.c (font_style_to_value): Set value for unknown symbols to
5321 100 instead of 255.
b61137ea
CY
5322 (weight_table, slant_table, width_table): Treat "unspecified" as
5323 the default value.
caf8d60c 5324
1a0de25c
JB
53252009-02-26 Juanma Barranquero <lekktu@gmail.com>
5326
5327 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5328
8fc45744
JB
53292009-02-25 Juanma Barranquero <lekktu@gmail.com>
5330
107bd7d1
JB
5331 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5332 error as soon as a recursive load is detected.
8fc45744 5333
f097e223
AR
53342009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5335
5336 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5337 before caching.
5338
8810a12f
KH
53392009-02-24 Kenichi Handa <handa@m17n.org>
5340
5341 * fontset.c (fontset_find_font): Fix the condition for checking
5342 unavailable font.
5343
2c7d1565
GM
53442009-02-24 Glenn Morris <rgm@gnu.org>
5345
5346 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5347 whitespace that confuses documentation.
5348
a20878b6
MB
53492009-02-23 Miles Bader <miles@gnu.org>
5350
5351 * process.c (Flist_system_processes, Fprocess_attributes)
5352 (syms_of_process): Rename `system-process-attributes' to
5353 `process-attributes'.
5354
b3b58c01
AS
53552009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5356
1b3b981b
AS
5357 * coding.h (struct coding_system): Make safe_charsets a pointer to
5358 unsigned char.
5359 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5360 being 255.
5361 (SAFE_CHARSET_P): Likewise.
5362 (setup_iso_safe_charsets): Properly setup safe_charsets.
5363 (Fdefine_coding_system_internal): Likewise.
5364 (setup_coding_system): Likewise. Remove unneeded casts.
5365 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5366 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5367 unneeded casts.
5368
b3b58c01
AS
5369 * insdel.c (del_range_2): Don't modify gap contents when called
5370 from decode_coding_object. (Bug#1809)
5371
0b6f228c
CY
53722009-02-21 Chong Yidong <cyd@stupidchicken.com>
5373
5374 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5375 Qfont_object.
5376 (Ftype_of): Recognize font objects.
5377
5378 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5379
5380 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5381 moved to data.c.
5382
52f8870b
AR
53832009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5384
5385 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5386 async_iconified. Based on a patch by Christian Lynbech
5387 <christian.lynbech@tieto.com>.
5388 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5389
7087d5e9
GM
53902009-02-20 Glenn Morris <rgm@gnu.org>
5391
5392 * syntax.c (Fskip_chars_forward): Fix doc typo.
5393
41d2ceef
CY
53942009-02-20 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5397
1a3b7ca6
CY
53982009-02-19 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5401
73cce38d
KH
54022009-02-19 Kenichi Handa <handa@m17n.org>
5403
5404 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5405 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5406
a51092ee
DN
54072009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5408
5409 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5410
c423ecca
KH
54112009-02-18 Kenichi Handa <handa@m17n.org>
5412
5413 * font.c (font_check_otf_features): Fix handling of `nil' element.
5414 (Ffont_spec): Describe :lang and :otf in the docstring.
5415
4c1958f4
AS
54162009-02-16 Andreas Schwab <schwab@suse.de>
5417
5418 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5419 string.
5420
5704f39a
KH
54212009-02-16 Kenichi Handa <handa@m17n.org>
5422
5423 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5424 (Bug#1723)
5704f39a 5425
8f0085aa
CY
54262009-02-14 Chong Yidong <cyd@stupidchicken.com>
5427
a057d86a 5428 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5429
5430 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5431 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5432
aff01dd9
EZ
54332009-02-14 Eli Zaretskii <eliz@gnu.org>
5434
5435 * msdos.c (MAX_SCREEN_BUF): New macro.
5436 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5437 Encode the entire run of glyphs sharing the same face, instead of
5438 doing that one glyph at a time (fixes a bug with displaying
5439 double-size characters).
5440
ba301db3
AR
54412009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5442
5443 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5444
5445 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5446 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5447 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5448
5449 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5450 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5451
51d861de
SM
54522009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5453
ac146f82 5454 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5455 invisible areas.
5456
7fed8996
JR
54572009-02-12 Jason Rumney <jasonr@gnu.org>
5458
631ea4fb
JR
5459 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5460 (add_font_entity_to_list): Call check_face_name even when family
5461 is unspecified.
5462
cb4a3e42
JR
5463 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5464 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5465 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5466
7fed8996 5467 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5468 raster fonts. (Bug#2219)
7fed8996 5469
895416e3
KH
54702009-02-12 Kenichi Handa <handa@m17n.org>
5471
5472 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5473 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5474 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5475 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5476 (find_automatic_composition): While looking forward and backward,
5477 check static composition. Fix where to stop looking forward.
5478 (composition_adjust_point): Fix checking of static composition.
5479 (Fcomposition_get_gstring): Pay attention to
1dacf998 5480 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5481
5482 * lisp.h (fast_looking_at): Extern it.
5483
5484 * search.c (fast_looking_at): New function.
5485
51d861de 5486 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5487 <struct glyph>.u.cmp.to.
5488 (append_composite_glyph): Likewise.
5489
51d861de 5490 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5491 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5492 composition.
51d861de 5493 (append_composite_glyph): Adjust for the change of
895416e3
KH
5494 <strcut glyph>.u.cmp.to.
5495
8510724d
JB
54962009-02-11 Juanma Barranquero <lekktu@gmail.com>
5497
5498 * casetab.c (init_casetab_once):
5499 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5500 * font.c (font_update_lface):
5501 * fontset.c (Fnew_fontset):
5502 * ftfont.c (ftfont_drive_otf):
5503 * xfont.c (xfont_open):
5504 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5505
294fa707
SM
55062009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 * fileio.c (Fwrite_region): !NILP -> CONSP.
5509
b5bfebec
AS
55102009-02-10 Andreas Schwab <schwab@suse.de>
5511
5512 * process.c (send_process): Properly relocate pointer into data
adab88bd 5513 when using encoded data. (Bug#2272)
b5bfebec 5514
cb84a2be
KH
55152009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5516
5517 * coding.c (detect_coding_charset): Fix previous change.
5518
89e09428
JR
55192009-02-08 Jason Rumney <jasonr@gnu.org>
5520
5521 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5522 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5523
4470a277
AS
55242009-02-07 Andreas Schwab <schwab@suse.de>
5525
5526 * unexelf.c (unexec): Fix error message.
5527
3175b12a
AR
55282009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5529
5530 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5531 when modal window is active. (Bug #2152)
3175b12a
AR
5532 (applicationShouldTerminate:): Remove now-unneeded while loop
5533 around NSRunAlertPanel.
5534
5535 * nsmenu.m (popupSession): New file-global variable.
5536 (pop_down_menu): End the popupSession before closing dialog.
5537 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5538 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5539 don't query NSApp for events (just sleep instead).
5540
8434d0b8
EZ
55412009-02-07 Eli Zaretskii <eliz@gnu.org>
5542
51d861de
SM
5543 * coding.c (syms_of_coding) <translation-table-for-input>:
5544 Modify doc string to discourage use for character code unification.
8434d0b8 5545
aa82edfd
CY
55462009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5547
5548 * atimer.c (run_timers): Update pending_atimers.
5549
2d283c7c
CY
55502009-02-06 Chong Yidong <cyd@stupidchicken.com>
5551
eb306cab
CY
5552 * image.c (svg_load_image): Fix last change.
5553
2d283c7c
CY
5554 * xfns.c (Fx_create_frame): Signal an error if no font is
5555 found (Bug#2147).
5556
4d8e170e
JB
55572009-02-05 Juanma Barranquero <lekktu@gmail.com>
5558
5559 * character.c (syms_of_character) <script-representative-chars>:
5560 Fix typo in docstring.
5561
c96169a0
AR
55622009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5563
5564 * nsmenu.m (pop_down_menu): New function.
5565 (ns_popup_dialog): Call it on unwind.
5566 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5567 call timer_check() (Bug#2154).
5568 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5569 handling_signal is set.
5570 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5571
31fd7c5c 5572 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5573
5574 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5575
5576 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5577
51d861de
SM
5578 * keyboard.c (poll_for_input_1, handle_async_input):
5579 Set handling_signal under HAVE_NS.
c96169a0 5580
aacd8ba1
GM
55812009-02-04 Glenn Morris <rgm@gnu.org>
5582
5583 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5584
4cb75c4b
KH
55852009-02-04 Kenichi Handa <handa@m17n.org>
5586
5587 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5588
5589 * charset.c (Fchar_charset): New optional arg restriction.
5590
5591 * coding.h (coding_system_charset_list): Extern it.
5592
5593 * coding.c (coding_system_charset_list): New function.
5594
5595 * composite.c: Include coding.h and termhooks.h.
5596 (composition_gstring_p): Fix for the terminal case.
5597 (composition_gstring_width): Likewise.
5598 (fill_gstring_body): Likewise.
5599 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5600 the frame.
5601 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5602 is within a composition.
867d4bb3 5603 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5604
5605 * term.c (encode_terminal_code): Fix handling of composition.
5606 (produce_composite_glyph): For static composition, get pixel_width
5607 from struct composition.
5608
826ba17e
AS
56092009-02-02 Andreas Schwab <schwab@suse.de>
5610
5611 * unexelf.c (unexec): Handle unaligned bss offset.
5612
8ad093db
AR
56132009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5614
5615 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5616 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5617
8ad093db
AR
5618 * keyboard.c (handle_interrupt): Don't call
5619 quit_throw_to_read_char() under NS.
d0a76a6e 5620
8ad093db
AR
5621 * blockinput.h: Remove NS-specific code.
5622
4d18a7a2
DN
56232009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5624
db878925
DN
5625 * dispnew.c (window_change_signal): Don't try to get the size of a
5626 suspended tty frame.
5627 * term.c (Fresume_tty): Resize if the size has changed while the
5628 tty was suspended.
5629
4d18a7a2
DN
5630 * alloc.c (mark_stack): Properly conditionalize previous change.
5631
8984df7c
JB
56322009-01-30 Juanma Barranquero <lekktu@gmail.com>
5633
5634 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5635 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5636 Remove; this code is not used on Windows.
5637
75f4f1ac
EZ
56382009-01-30 Eli Zaretskii <eliz@gnu.org>
5639
5640 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5641 EOLs that also has stray ^M characters.
5642
07a1e794
JB
56432009-01-30 Juanma Barranquero <lekktu@gmail.com>
5644
5645 * atimer.c (run_timers, alarm_signal_handler):
5646 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5647 * w32inevt.c (w32_console_read_socket):
5648 * w32term.c (w32_read_socket):
5649 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5650
a8b11cc9
CY
56512009-01-30 Chong Yidong <cyd@stupidchicken.com>
5652
5653 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5654 Initialize it as a relative filename pattern.
5655 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5656 (Fcall_process_region): Simplify temp file creation using
5657 temporary-file-directory.
5658
c279587b
EZ
56592009-01-29 Eli Zaretskii <eliz@gnu.org>
5660
5661 * msdos.c: Rename pending_signals to msdos_pending_signals.
5662 (sig_suspender, sigprocmask): Adjust.
5663
a8fe3242
CY
56642009-01-29 Chong Yidong <cyd@stupidchicken.com>
5665
5666 * keyboard.c (pending_signals): New var.
5667 (poll_for_input, input_available_signal, init_keyboard): Set it.
5668 (process_pending_signals): New function.
5669
5670 * lisp.h (QUIT): Check pending_signals instead of
5671 interrupt_input_pending. Use process_pending_signals.
5672
51d861de 5673 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5674
51d861de 5675 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5676
5677 * sysdep.c (emacs_write): Use process_pending_signals.
5678
5679 * xterm.c (XTread_socket): Update pending_signals.
5680
5681 * w32term.c (w32_read_socket): Update pending_signals.
5682
5683 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5684
6570a1c4
KH
56852009-01-29 Kenichi Handa <handa@m17n.org>
5686
5687 * xftfont.c (xftfont_has_char): New function.
5688 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5689
d72a4afa
AR
56902009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5691
5692 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5693 under GNUstep.
5694 (ns_query_color): New declaration.
5695
5696 * nsterm.m (ns_confirm_quit): New variable.
5697 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5698 (EmacsApp-applicationShouldTerminate:): Use it.
5699 (EmacsPrefsController): Let user set it.
5700 (ns_query_color): New function.
5701 (ns_defined_color): Use it.
5702 (ns_initialize): Drop.
5703 (ns_term_init): Add two lines from ns_initialize(), and set
5704 input_interrupt_mode to nil.
5705
5706 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5707 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5708
9fe78804
KH
57092009-01-28 Kenichi Handa <handa@m17n.org>
5710
5711 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5712 (fontset_get_font_group): Remember that no font-group is specified
5713 for C.
9fe78804 5714
fa57de36
CY
57152009-01-27 Chong Yidong <cyd@stupidchicken.com>
5716
930600e9
CY
5717 * fns.c (concat): Check for string overflow (bug#1787).
5718
fa57de36
CY
5719 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5720 Quadruple undo limits (bug#1501).
5721
7179ce7b
KH
57222009-01-27 Kenichi Handa <handa@m17n.org>
5723
5724 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5725 directly use GT_Get_Char_index.
5726
5727 * xftfont.c (struct xftfont_info): New member `index'.
5728
5729 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5730 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5731
5be8fcc0
CY
57322009-01-26 Kenichi Handa <handa@m17n.org>
5733
5734 * fontset.c (fontset_find_font): Fix handling of non-cons return
5735 value of fontset_get_font_group.
5736 (fontset_font): Revert last change.
5737
19ae3e61
JR
57382009-01-26 Jason Rumney <jasonr@gnu.org>
5739
5740 * w32font.c (w32font_list_internal): Return quickly if registry is
5741 unknown. Simplify final return.
5742 (add_font_entity_to_list): Break complex logic down into more
5743 manageable chunks. Move unknown registry check to
5744 w32font_list_internal.
5745
8612b71a
AR
57462009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5747
5748 Changes to remove Feval calls from GUI under NS.
5749
d8038940
JB
5750 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5751 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5752 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5753
5754 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5755 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5756 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5757 instead of NON_ASCII_KEYSTROKE_EVENT.
5758 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5759 (EmacsApp-applicationShouldTerminate:): Query user.
5760 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5761 instead of Feval.
5762
5763 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5764
5765 * keyboard.c (kbd_buffer_get_event): Check for it.
5766 (keys_of_keyboard): Define lispy keys for
5767 ns-put/unput-working-text.
5768
5769 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5770 versions.
5771 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5772
6288ae55
CY
57732009-01-25 Chong Yidong <cyd@stupidchicken.com>
5774
5775 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5776 setting current_buffer directly. (Bug#2044)
6288ae55 5777
289e7f8f
CY
57782009-01-24 Chong Yidong <cyd@stupidchicken.com>
5779
5ce87308 5780 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5781 any work. (Bug#1952, bug#1990).
5ce87308 5782
64cc3cf6 5783 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5784
b3243e6f
AR
57852009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5786
5787 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5788 (ns_no_defaults): New declaration.
5789 (main): Use it.
e0d2e69a 5790
d900b2af 5791 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5792
d900b2af 5793 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5794
d900b2af
AR
5795 * nsterm.m (ns_no_defaults): New variable.
5796 (ns_initialize): Don't read defaults when ns_no_defaults.
5797 (EmacsView-readSelectionFromPasteboard:)
5798 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5799 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5800 (ns_dumpglyphs_stretch): New function.
5801 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5802 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5803
e0d2e69a
AR
5804 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5805
3ac71f5d
CY
58062009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5807
5808 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5809 call for Sparc64.
5810
3fe53a83
AR
58112009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5812
5813 * nsfns.m:
5814 * nsgui.h:
5815 * nsmenu.m:
5816 * nsselect.m:
5817 * nsterm.h:
5818 * nsterm.m: Remove '23' comments that indicated code added during
5819 update from emacs-20 -> emacs-23.
5820
10f87c6f 58212009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5822
5823 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5824 ns_alternate_modifier. (Bug#1217)
a3b53a85 5825
c7cef62d
AR
5826 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5827 Display all shortcuts, including those w/o super modifier.
5828
575fb8bd
AR
5829 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5830
918b848b
CY
58312009-01-22 Chong Yidong <cyd@stupidchicken.com>
5832
5833 * fileio.c (Vwrite_region_post_annotation_function)
5834 (Vwrite_region_annotation_buffers): New vars.
5835 (build_annotations_unwind): Just reset
5836 Vwrite_region_annotation_buffers.
5837 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5838 Call write-region-post-annotation-function.
5839 (build_annotations): Add to Vwrite_region_annotation_buffers if
5840 buffer changes.
5841
a39e2539
AR
58422009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5843
5844 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5845 Tiger.
51d861de
SM
5846 * nsfns.m (ns_do_applescript):
5847 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5848
35ed44db
AR
58492009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5850
5851 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5852
cbe0b5bf
AR
58532009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5854
5855 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5856
6049d3a0
AR
5857 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5858
5859 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5860 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5861 handle Ctrl-tab. (Bug#1841)
5862 (ns_get_color): Use unsigned long long for scanned hex string value.
5863 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5864 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5865 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5866 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5867 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5868 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5869 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5870
d3810c21 5871 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5872 DPI. (Bug#1316)
d3810c21
AR
5873 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5874 values in onTiger section.
4c7077c3 5875
e301e634
CY
58762009-01-19 Chong Yidong <cyd@stupidchicken.com>
5877
7f82490b
CY
5878 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5879 Check return value of font_spec_from_name.
64cc3cf6 5880 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5881
5882 * font.c (font_spec_from_name): Return Qnil if font name could not
5883 be parsed.
5884 (font_parse_name): Treat a `?' character as part of an XLFD.
5885
e301e634
CY
5886 * fns.c (Fsubstring): Doc fix.
5887
1c0db158
KH
58882009-01-19 Kenichi Handa <handa@m17n.org>
5889
51d861de 5890 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5891 (ftfont_list): Likewise.
5892
acf20901
JB
58932009-01-18 Juanma Barranquero <lekktu@gmail.com>
5894
fff4e459
JB
5895 * dbusbind.c (Fdbus_register_signal):
5896 * process.c (conv_sockaddr_to_lisp):
5897 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5898
acf20901
JB
5899 * callproc.c (Fgetenv_internal): Doc fix.
5900
e7abcdfb
CY
59012009-01-16 Chong Yidong <cyd@stupidchicken.com>
5902
5903 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5904 it is not even used.
5905
b60861e6
GM
59062009-01-16 Glenn Morris <rgm@gnu.org>
5907
5908 * font.c (Ffont_variation_glyphs): Silence compiler.
5909
8db52afe
JB
59102009-01-15 Juanma Barranquero <lekktu@gmail.com>
5911
5912 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5913 Reported by David Robinow <drobinow@gmail.com>.
5914
4cddb209
KH
59152009-01-15 Kenichi Handa <handa@m17n.org>
5916
51d861de 5917 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5918
f247f67b
JR
59192009-01-14 Jason Rumney <jasonr@gnu.org>
5920
5921 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5922 never a fontset. (Bug#1562)
f247f67b 5923
f56a4450
KH
59242009-01-14 Kenichi Handa <handa@m17n.org>
5925
5926 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5927 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5928
4e99855e
CY
59292009-01-13 Chong Yidong <cyd@stupidchicken.com>
5930
5931 * font.c (font_clear_prop): If clearing the family, clear the font
5932 width index too.
5933
fff4e459 5934 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5935
24f01470
JB
59362009-01-12 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5939 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5940 functions, use sizeof.
5941
a41240a3
MR
59422009-01-12 Martin Rudalics <rudalics@gmx.at>
5943
5944 * keyboard.c (read_char): Fix case where last_nonmenu_event
5945 returned a bad value with submenus. (Bug#447)
5946
944636b8
CY
59472009-01-12 Chong Yidong <cyd@stupidchicken.com>
5948
5949 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5950 family, clear the font width index too.
5951
0dad7c6f
JR
59522009-01-11 Jason Rumney <jasonr@gnu.org>
5953
5954 * keyboard.c (cmd_error_internal): Exit when errors occur before
5955 frame creation and not in daemon mode. (Bug#1836)
5956
7c2363af
CY
59572009-01-10 Chong Yidong <cyd@stupidchicken.com>
5958
5959 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5960 of a display vector, backtrack.
5961 (try_window_reusing_current_matrix): Check glyph type before
5962 referencing charpos member.
5963
97b1b294
EZ
59642009-01-10 Eli Zaretskii <eliz@gnu.org>
5965
5966 Fix Bug #876:
5967
5968 * coding.c (inhibit_null_byte_detection): New variable.
5969 (detect_coding, detect_coding_system): Don't pay attention to null
5970 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5971 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5972 <inhibit-iso-escape-detection>: Doc fix.
5973
4624b6e3
JR
59742009-01-09 Jason Rumney <jasonr@gnu.org>
5975
5976 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5977 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5978 Only report Unicode Plane 2 fonts as unicode-sip.
5979
323b840c
CY
59802009-01-09 Chong Yidong <cyd@stupidchicken.com>
5981
51d861de
SM
5982 * xfaces.c (Fx_font_family_list): Delete function.
5983 Move compatibility version to faces.el.
323b840c 5984
51d861de 5985 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5986
eba7400d
MR
59872009-01-09 Martin Rudalics <rudalics@gmx.at>
5988
5989 * frame.c (x_set_frame_parameters): Remember requested value for
5990 fullscreen before it's reset by the parameter handler.
5991
4b09796d
GM
59922009-01-09 Glenn Morris <rgm@gnu.org>
5993
5994 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5995 (last_command_event): ... and update all users.
4b09796d
GM
5996 (last_input_char): For clarity, rename to...
5997 (last_input_event): ... and update all users.
5998 (last-command-char, last-input-char): Move to subr.el as aliases.
5999 * cmds.c, commands.h: Update for last_command_char rename.
6000
14ccea62
CY
60012009-01-08 Chong Yidong <cyd@stupidchicken.com>
6002
51d861de 6003 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6004
5f004711
JR
60052009-01-08 Jason Rumney <jasonr@gnu.org>
6006
6007 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6008 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6009 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6010 Don't declare.
fff4e459 6011 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6012 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6013
b71f6f73
KH
60142009-01-07 Kenichi Handa <handa@m17n.org>
6015
50b06221 6016 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6017 remember the coding system used for decoding in
50b06221
KH
6018 coding_system (Bug#1039).
6019
b71f6f73 6020 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6021 breaking the loop. (Bug#870)
b71f6f73
KH
6022 (decode_coding_utf_16, decode_coding_emacs_mule)
6023 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6024 (decode_coding_charset): Likewise.
6025
56f668f7
MR
60262009-01-05 Martin Rudalics <rudalics@gmx.at>
6027
6028 * frame.c (x_set_frame_parameters): Make sure height (width) get
6029 applied when fullwidth (fullheight) is set. (Bug#1522)
6030
5da9424d
JB
60312009-01-04 Juanma Barranquero <lekktu@gmail.com>
6032
6033 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6034 (utc_base): Declare as ULONGLONG, not long double.
6035 (convert_time_raw): Delete.
6036 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6037 (initialize_utc_base): New function.
6038 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6039 (convert_from_time_t): Use initialize_utc_base; compute result with
6040 64-bit arithmetic.
6041 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6042
c4605e09
EZ
60432009-01-03 Eli Zaretskii <eliz@gnu.org>
6044
9acef61c 6045 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6046 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6047 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6048 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6049 [!subprocesses]: Define.
6050 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6051 (Flist_system_processes, Fsystem_process_attributes)
6052 [!subprocesses]: Call list_system_processes and
6053 system_process_attributes instead of returning Qnil.
6054
9acef61c
JB
6055 * dosfns.c (system_process_attributes, list_system_processes):
6056 New functions.
c4605e09
EZ
6057
6058 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6059
6060 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6061 Don't use the default (no-op) implementation.
6062
8b7d0a16
JR
60632009-01-03 Jason Rumney <jasonr@gnu.org>
6064
a6d46bc1
JR
6065 * keyboard.c (parse_modifiers_uncached): Wheel events are
6066 clicks (bug#687).
6067
8b7d0a16
JR
6068 * w32term.c (x_query_colors, x_query_color): New functions.
6069
6070 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6071 (svg_load_image): Cast returned pointers from dynamically loaded
6072 functions. Eliminate W32 specific code.
6073
bfe11752
DN
60742009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6075
89e2438a
DN
6076 * nsfns.m (x_set_foreground_color, x_set_background_color)
6077 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6078 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6079 x_ prefix instead of ns_. Update references.
6080 (syms_of_nsfns): Add a FIXME comment.
6081
6082 * nsterm.m (x_set_cursor_type): New prototype.
6083 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6084
bfe11752
DN
6085 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6086 for Solaris instead of incorrectly providing Qutime and Qcutime.
6087
031da700
EZ
60882009-01-02 Eli Zaretskii <eliz@gnu.org>
6089
6090 * w32.c (process_times): Compute sum of utime and stime.
6091 (system_process_attributes): Add Qtime to the alist.
6092
6093 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6094 and add them to the alist.
6095
6096 * process.c (top level) <Qtime, Qctime>: New variables.
6097 (syms_of_process): staticpro them.
6098 (Fsystem_process_attributes): Add their documentation to the doc
6099 string.
6100
6101 * process.h: Declare Qtime and Qctime.
6102
df23bf08
JR
61032009-01-02 Jason Rumney <jasonr@gnu.org>
6104
9acef61c 6105 * image.c (Qgobject): New symbol.
df23bf08
JR
6106 (syms_of_image): Initialize it.
6107 (init_svg_functions): Load some functions from gobject library.
6108
5bbdf7aa
DN
61092009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6110
6111 * frame.c (make_terminal_frame): Remove redundant code and useless
6112 block.
6113
63136da6
AS
61142009-01-01 Andreas Schwab <schwab@suse.de>
6115
6116 * process.c (conv_sockaddr_to_lisp): Add workaround for
6117 getsockname bug on BSD.
6118
9ef69046
CY
61192009-01-01 Chong Yidong <cyd@stupidchicken.com>
6120
d6fafbe0
CY
6121 * xfns.c (x_create_tip_frame): Set border width of the X window.
6122
51d861de 6123 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6124
f9c34147
JR
61252009-01-01 Jason Rumney <jasonr@gnu.org>
6126
9acef61c 6127 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6128 Don't block input, as per earlier xterm.c changes.
6129
f5497e45
AR
61302008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6131
6132 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6133 (ns_appkit_version_int): New function.
6134 (x-server-version): Use ns_appkit_version_int and follow 21+
6135 convention of returning 3 integers.
6136
c19cab20
KH
61372008-12-30 Kenichi Handa <handa@m17n.org>
6138
6139 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6140 (CHAR_SURROGATE_PAIR_P): New macro.
6141
6142 * font.h (struct font_driver): New member get_variation_glyphs.
6143
9acef61c 6144 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6145 (Ffont_variation_glyphs): New function.
6146 (syms_of_font): Defsubr it.
6147
6148 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6149 ftfont_variation_glyphs.
6150 (setup_otf_gstring): New function.
6151 (ftfont_drive_otf): Use it.
6152 (ftfont_shape_by_flt): Handle variation selector.
6153 (ftfont_variation_glyphs): New function.
6154
28cd591f
MR
61552008-12-30 Martin Rudalics <rudalics@gmx.at>
6156
6157 * frame.c (Vemacs_iconified): Remove.
6158
7f714baf
JR
61592008-12-30 Jason Rumney <jasonr@gnu.org>
6160
6161 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6162 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6163
9d2d22ab
CY
61642008-12-30 Chong Yidong <cyd@stupidchicken.com>
6165
6166 * indent.c (Fvertical_motion): Don't advance iterator if we have
6167 reseated to the desired position.
6168
6169 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6170 checking for pos match.
6171
545312c2
KH
61722008-12-30 Kenichi Handa <handa@m17n.org>
6173
1ede3eb6
KH
6174 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6175 just get the low 8-bit of the code.
6176
545312c2
KH
6177 * font.c (font_intern_prop): Validate str as multibyte.
6178
bd7bbf29
DN
61792008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6180
31e0750e
DN
6181 * dispextern.h (struct face): Move lface and hash from the middle
6182 of bitfields.
6183
bd7bbf29
DN
6184 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6185
b5672e7c
DN
61862008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6187
6188 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6189 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6190 instead of intervals.h.
6191
d704470f
AS
61922008-12-26 Andreas Schwab <schwab@suse.de>
6193
6194 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6195 cons.
6196
54b33868
MR
61972008-12-26 Martin Rudalics <rudalics@gmx.at>
6198
6199 * textprop.c (Qminibuffer_prompt): New variable.
6200 (syms_of_textprop): Initialize it.
6201 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6202 in minibuffer-prompt face. (Bug#1662)
6203
40b615d6
JR
62042008-12-25 Jason Rumney <jasonr@gnu.org>
6205
6206 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6207
baae5c2d
JR
62082008-12-24 Jason Rumney <jasonr@gnu.org>
6209
6210 * ralloc.c (r_alloc_reset_variable): New function.
6211
6212 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6213 record of what points where. (Bug#716)
baae5c2d 6214
a9051c88
DN
62152008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6216
6217 * minibuf.c (read_minibuf): Follow the non-interactive case when
6218 running as a daemon, before detaching.
6219
8b146312
AS
62202008-12-22 Andreas Schwab <schwab@suse.de>
6221
6222 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6223 * gtkutil.c (free_widget_value): Use xfree instead of free.
6224
56f2de10
MR
62252008-12-22 Martin Rudalics <rudalics@gmx.at>
6226
6227 * frame.c (delete_frame): New function derived from
6228 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6229 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6230 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6231 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6232 * frame.h: Extern delete_frame.
6233 * window.c (window_loop):
6234 * terminal.c (delete_terminal):
6235 * xterm.c (x_connection_closed):
6236 * xfns.c (Fx_hide_tip):
9acef61c 6237 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6238
1fc200d6
JR
62392008-12-21 Jason Rumney <jasonr@gnu.org>
6240
6241 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6242 when character maps to .notdef character.
6243
5e252df2
SM
62442008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6245
6246 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6247
99b72cc4
JR
62482008-12-20 Jason Rumney <jasonr@gnu.org>
6249
6250 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6251 a graphical frame on Windows. (Bug#1325)
99b72cc4 6252
acc49a52
JD
62532008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6254
6255 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6256
6ea15123
CY
62572008-12-20 Chong Yidong <cyd@stupidchicken.com>
6258
6259 * minibuf.c (Fread_buffer): Doc fix.
6260
b2dab6c8
JR
62612008-12-20 Jason Rumney <jasonr@gnu.org>
6262
54ea0c87 6263 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6264 server name in UNC paths. (Bug#719)
54ea0c87 6265
b2dab6c8 6266 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6267 charbuf. (Bug#1035)
b2dab6c8 6268
6d1921be
DN
62692008-12-19 Daniel Engeler <engeler@gmail.com>
6270
6271 * sysdep.c (serial_configure): Fix typo.
6272
53934c98
DN
62732008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6274
6275 * sysdep.c: Include alloca.h.
f4f634e8
DN
6276 (system_process_attributes): Add implementation for Solaris.
6277
6278 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6279
06e111a6
DN
62802008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6281
6282 Reorganize implementation of Flist_system_processes and
6283 Fsystem_process_attributes. No functional changes.
6284 * process.c: Don't #include pwd.h, grp.h and limits.h.
6285 (Flist_system_processes): Just call list_system_processes.
6286 (Fsystem_process_attributes): Just call system_process_attributes.
6287 (procfs_list_system_processes, time_from_jiffies)
6288 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6289 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6290
6291 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6292 (list_system_processes): Rename from
6293 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6294 Provide a do nothing implementation.
6295 (system_process_attributes): Rename from
6296 procfs_list_system_processes.
6297 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6298 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6299
6300 * w32.c (list_system_processes): Rename from
6301 w32_list_system_processes.
6302 (system_process_attributes): Rename from
6303 w32_system_process_attributes.
6304
6305 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6306
6307 * process.h (w32_list_system_processes)
6308 (w32_system_process_attributes): Remove.
362654a6
JB
6309 (list_system_processes, system_process_attributes):
6310 New prototypes.
06e111a6 6311
6a705b23
KH
63122008-12-19 Kenichi Handa <handa@m17n.org>
6313
6314 * xfont.c (xfont_decode_coding_xlfd): New function.
6315 (xfont_encode_coding_xlfd): New function.
6316 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6317 (xfont_list): Decode and encode XLFD by iso-8859-1.
6318 (xfont_match): Likewise.
6319 (xfont_list_family): Likewise.
6320 (xfont_open): Likewise.
6321
d66c0241 6322 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6323 names are utf-8.
6324
d66c0241 6325 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6326 names are utf-8.
6327
5a130941
JD
63282008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6329
6330 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6331 changed.
bfd20325
JD
6332 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6333 clicked on a detached tool bar button.
5a130941 6334
fd95644b
DN
63352008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6336
6337 * emacs.c (main): Print and error and exit when no data is read
6338 from the pipe.
6339
e6eee6ae
JR
63402008-12-17 Jason Rumney <jasonr@gnu.org>
6341
6342 * w32font.c (w32font_has_char): Always return -1.
6343
a35dd56b
KH
63442008-12-16 Kenichi Handa <handa@m17n.org>
6345
6346 * font.c (font_open_entity): Fix previous change.
6347
0e3635c2
DN
63482008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6349
6350 * process.c: Include <limits.h>.
6351
d4835507 63522008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6353
6354 * font.c (font_update_drivers): Fix mistake in reconstructing the
6355 driver list.
6356
63572008-12-16 Chong Yidong <cyd@stupidchicken.com>
6358
6359 * font.c (font_clear_cache): Fix format of font cache data.
6360
e2cbc401
CY
63612008-12-15 Chong Yidong <cyd@stupidchicken.com>
6362
6363 * xftfont.c (xftfont_open): Free Xft font pattern if
6364 XftFontOpenPattern fails.
6365
6366 * xterm.c (x_free_frame_resources): Remove extraneous call to
6367 free_frame_faces.
6368
b131d535
CY
63692008-12-13 Chong Yidong <cyd@stupidchicken.com>
6370
6371 * xterm.c (x_delete_display): Move xim_close_dpy call to
6372 x_delete_terminal.
6373 (x_delete_terminal): Call xim_close_dpy.
6374
e6df5336
JR
63752008-12-13 Jason Rumney <jasonr@gnu.org>
6376
6377 * w32font.c (intern_font_name): New function.
6378 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6379 (w32font_open_internal, Fx_select_font): Decode font name.
6380 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6381
6382 * w32font.h (intern_font_name): Declare new function.
6383
6384 * w32uniscribe.c (add_opentype_font_name_to_list):
6385 Use intern_font_name.
6386
20d68145
CY
63872008-12-13 Chong Yidong <cyd@stupidchicken.com>
6388
9f2554de
CY
6389 * frame.c (Fdelete_frame): Call free_font_driver_list.
6390
3d9bec9a
CY
6391 * font.c (free_font_driver_list): Implement missing function.
6392
20d68145
CY
6393 * w32term.c (w32_term_init): Don't initialize the image cache
6394 here; it will be done in init_frame_faces.
6395
6396 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6397 (struct x_display_info): Remove unused member null_pixel. New
6398 member xim_callback_data.
6399
6400 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6401 (xim_initialize): Save pointer to callback function data.
6402 (xim_close_dpy): Free callback function data. Call XCloseIM,
6403 reverting 2008-11-04 change by David Smith.
6404 (x_term_init): Don't initialize the image cache here; it will be
6405 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6406 (x_delete_display): Free x_dnd_atoms member.
6407
96f9306b
KH
64082008-12-13 Kenichi Handa <handa@m17n.org>
6409
6dec9044
JB
6410 * font.c (font_rescale_ratio): Moved from xfaces.c.
6411 Argument type changed. Handle a font-spec too.
96f9306b 6412 (font_score): Check Vface_font_rescale_alist.
6dec9044 6413 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6414
6415 * xfaces.c (font_rescale_ratio): Moved to font.c.
6416
8d5b4964
CY
64172008-12-13 Chong Yidong <cyd@stupidchicken.com>
6418
6419 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6420
e6df5336
JR
64212008-12-12 Jason Rumney <jasonr@gnu.org>
6422
6423 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6424 Vwindow_system_version to the real w32 major version.
6425
97c6058a
DN
64262008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6427
6428 * term.c (init_tty): Move setting the terminal name before the
6429 potential user: maybe_fatal.
6430
ec4e88d7
CY
64312008-12-11 Chong Yidong <cyd@stupidchicken.com>
6432
d4835507
JB
6433 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6434 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6435
b4233ec9
JR
64362008-12-11 Jason Rumney <jasonr@gnu.org>
6437
8ec71e23 6438 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6439 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6440
b4233ec9 6441 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6442 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6443
011a0143
JB
64442008-12-11 Juanma Barranquero <lekktu@gmail.com>
6445
6446 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6447
3c309f34
JB
64482008-12-11 Juanma Barranquero <lekktu@gmail.com>
6449
6450 * process.c (Fsystem_process_attributes, syms_of_process):
6451 Fix typo in name of Ssystem_process_attributes.
6452 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6453
fedc6ab5
JB
64542008-12-11 Juanma Barranquero <lekktu@gmail.com>
6455
6456 * syntax.c (Fmodify_syntax_entry): Doc fix.
6457
ba3de0e8
JB
64582008-12-10 Juanma Barranquero <lekktu@gmail.com>
6459
6460 * font.c (Ffont_spec): Move usage to end of docstring.
6461
174f1c74
JR
64622008-12-10 Jason Rumney <jasonr@gnu.org>
6463
6464 * w32font.c (Qcham): New symbol.
6465 (font_supported_scripts): Add cham, and comments for other new
6466 scripts in bitfield from OpenType spec.
9d32f818
JR
6467 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6468 contain characters beyond the bmp.
174f1c74 6469
7b649478
KH
64702008-12-10 Kenichi Handa <handa@m17n.org>
6471
6472 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6473 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6474 Qunicode_sip.
6475
2133e2d1
JB
64762008-12-10 Juanma Barranquero <lekktu@gmail.com>
6477
6478 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6479 (Fcoding_system_put): Use QCdefault_char.
6480 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6481
9af886ee
CY
64822008-12-09 Chong Yidong <cyd@stupidchicken.com>
6483
74d819eb
CY
6484 * xftfont.c (syms_of_xftfont): Fix typo.
6485
4ccfa1c0 6486 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6487
7c19d3ae
DN
64882008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6489
6490 * emacs.c (main): Close daemon_pipe on exec.
6491
567826bb
CY
64922008-12-08 Chong Yidong <cyd@stupidchicken.com>
6493
6494 * termchar.h (struct tty): New members termcap_term_buffer and
6495 termcap_strings_buffer.
6496
6497 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6498 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6499 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6500 All callers changed.
6501 (init_tty): Store termcap data and string buffers in new struct
6502 tty members termcap_term_buffer and termcap_strings_buffer.
6503 (delete_tty): Free them.
4ccfa1c0 6504 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6505
aa96c42b
SZ
65062008-12-07 Seiji Zenitani <zenitani@mac.com>
6507
6508 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6509 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6510
b7e1d896
CY
65112008-12-06 Chong Yidong <cyd@stupidchicken.com>
6512
6513 * coding.c (make_conversion_work_buffer): Disable buffer
6514 modification hooks in the work buffer.
6515
b5ec91a5
EZ
65162008-12-05 Eli Zaretskii <eliz@gnu.org>
6517
6518 * process.c (procfs_system_process_attributes): If `nread' has a
6519 negative value, assign zero to it.
6520
a5d2a52b
CY
65212008-12-05 Chong Yidong <cyd@stupidchicken.com>
6522
68c5540b 6523 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6524
7bf1bb21
KH
65252008-12-05 Kenichi Handa <handa@m17n.org>
6526
6527 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6528 second character is a combining character.
6529
2fdc7d00
EZ
65302008-12-05 Eli Zaretskii <eliz@gnu.org>
6531
6532 * process.c (procfs_system_process_attributes): Don't use cmd,
6533 cmdsize, and q without initializing them first.
6534
bf6bfba8
JR
65352008-12-04 Jason Rumney <jasonr@gnu.org>
6536
6537 * w32font.c (w32font_draw): Initialize orig_clip before getting
6538 it, and delete it when finished.
6539
a3b1a468
DN
65402008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6541
6542 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6543 case when running as a daemon before detaching.
6544
8b8be8eb
JB
65452008-12-03 Juanma Barranquero <lekktu@gmail.com>
6546
805f2638 6547 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6548
b1bde622
KH
65492008-12-03 Kenichi Handa <handa@m17n.org>
6550
e500c47d
KH
6551 * font.c (font_at): Set `multibyte' at first.
6552
ca516334
KH
6553 * coding.c (decode_coding_charset): Check type of an element of
6554 vector VALIDS.
7bf1bb21 6555 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6556
4ccfa1c0 6557 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6558 (font_for_char): Likewise.
6559
1e5ecd37
CY
65602008-12-03 Chong Yidong <cyd@stupidchicken.com>
6561
d5b01609 6562 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6563 (font_update_lface): Handle fonts with corrupted size specs,
6564 i.e. non-int and non-float.
d5b01609 6565
11e3a6e4 6566 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6567 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6568 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6569
ab06788b
CY
6570 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6571
1e5ecd37 6572 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6573 underline_minimum_offset for underline position.
1e5ecd37 6574
63c125ab
DN
65752008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6576
6577 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6578
6579 * character.c (c_string_width): Specify the type for LEN.
6580
3a8406e1
KH
65812008-12-03 Kenichi Handa <handa@m17n.org>
6582
4ccfa1c0 6583 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6584 (decode_coding_utf_8): Likewise.
4ccfa1c0 6585 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6586 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6587
651df7d9
CY
65882008-12-02 Chong Yidong <cyd@stupidchicken.com>
6589
6590 * keyboard.c (make_lispy_position): Only use PT if the selected
6591 window is current.
6592
1f625c6c
AS
65932008-12-02 Andreas Schwab <schwab@suse.de>
6594
f7741ce9
AS
6595 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6596
1f625c6c
AS
6597 * doprnt.c (doprnt1): Fix size of charbuf.
6598
92bc2678
CY
65992008-12-02 Chong Yidong <cyd@stupidchicken.com>
6600
6601 * keyboard.c (timer_check): Revert last change.
6602
93b9e8cc
JB
66032008-12-02 Juanma Barranquero <lekktu@gmail.com>
6604
6605 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6606
fd7a37d5
JB
66072008-12-01 Juanma Barranquero <lekktu@gmail.com>
6608
6609 * makefile.w32-in: Update dependencies.
6610 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6611
c115043b
AS
66122008-12-01 Andreas Schwab <schwab@suse.de>
6613
6614 * font.c (register_font_driver): Use xmalloc.
6615 (font_put_frame_data): Likewise.
6616
f5668d2a
CY
66172008-12-01 Chong Yidong <cyd@stupidchicken.com>
6618
860d96be
CY
6619 * xfaces.c (realize_x_face): Make abort condition clearer.
6620
f5668d2a
CY
6621 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6622
379c17e7
CY
66232008-11-30 Chong Yidong <cyd@stupidchicken.com>
6624
6625 * keyboard.c (timer_check): After a timer runs, ensure that the
6626 selected window's buffer is current.
6627
35f36d65
JB
66282008-11-30 Juanma Barranquero <lekktu@gmail.com>
6629
f952c61c
JB
6630 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6631 It was accidentally restored by the Unicode merge.
6632
35f36d65
JB
6633 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6634
b23077df
JB
66352008-11-29 Juanma Barranquero <lekktu@gmail.com>
6636
6637 * w32proc.c: Include "coding.h".
6638 (Fw32_short_file_name): Encode filename passed to Windows API.
6639 (Fw32_long_file_name): Encode filename passed to Windows API and
6640 decode back the result. (Bug#1433)
6641
b8ebe9dd
KH
66422008-11-29 Kenichi Handa <handa@m17n.org>
6643
8cc53f96
KH
6644 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6645 not before accessing it.
6646
b8ebe9dd
KH
6647 * charset.c (Fdefine_charset_internal): After calculating
6648 min_char, max_char, and fastmap, copy the charset structure again.
6649 (encode_char): Fix the previous change.
6650
59bc82c0
SZ
66512008-11-28 Seiji Zenitani <zenitani@mac.com>
6652
6653 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6654
6655 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6656
6657 * nsterm.m (x_set_frame_alpha): New function.
6658
32247e3d
EZ
66592008-11-27 Eli Zaretskii <eliz@gnu.org>
6660
6661 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6662
b003e5ff
JB
66632008-11-27 Juanma Barranquero <lekktu@gmail.com>
6664
6665 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6666 pointer to check_face_name.
6667
708550f5
KH
66682008-11-27 Kenichi Handa <handa@m17n.org>
6669
6670 * category.h (SET_CATEGORY_SET): Call set_category_set.
6671 (set_category_set): Extern it.
6672
6673 * category.c (hash_get_category_set): New function.
6674 (Fmodify_category_entry): Adjusted for the change of
6675 char_table_ref_and_range. Call hash_get_category_set to get a
6676 category set to store in the table.
6677
6678 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6679 Funify_charset.
6680
2ae37cf0 6681 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6682 (DECODE_CHAR): Check if the decoder vector is ready.
6683 (ENCODE_CHAR): Check if the encoder char-table is ready.
6684 (maybe_unify_char): Extern it.
6685
6686 * charset.c (Vchar_unified_charset_table): Delete it.
6687 (inhibit_load_charset_map): New variable.
6688 (temp_charset_work): New variable.
6689 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6690 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6691 New macros.
6692 (load_charset_map): Meaning of control_flag changed. If
6693 inhibit_load_charset_map is nonzero, setup a table in
6694 temp_charset_work.
6695 (load_charset): New argument control_flag.
6696 (map_charset_for_dump): New function.
6697 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6698 map_charset_for_dump.
6699 (Fdefine_charset_internal): If the charset method is MAP, load
6700 mapping tables by calling load_charset.
6701 (Funify_charset): Don't load a mapping table but directly set
6702 Vchar_unify_table.
6703 (maybe_unify_char): New function.
6704 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6705 Handle the case of inhibit_load_charset_map being nonzero.
6706 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6707 Handle the case of inhibit_load_charset_map being nonzero.
6708 (Fclear_charset_maps): Just free temp_charset_work.
6709 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6710 variable.
6711
6712 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6713 change of char_table_ref_and_range.
6714 (char_table_ref_and_range): Change the meaning of argument FROM
6715 and TO. Now the caller must provide initial values for *FROM
6716 and *TO.
6717
6718 * fontset.c (fontset_add): Adjusted for the change of
6719 char_table_ref_and_range.
6720 (fontset_get_font_group): Likewise.
6721 (Ffontset_info): Likewise.
6722
6723 * keymap.c (describe_vector): Adjusted for the change of
6724 char_table_ref_and_range. For char-table, put boundary between
6725 non-ASCII and 8-bit characters.
6726
6727 * print.c (print_object): For bool-vector, delete unnecessary
6728 check of ASCII_BYTE_P.
6729
9196133b
JR
67302008-11-26 Jason Rumney <jasonr@gnu.org>
6731
6732 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6733 leading in font height. (Bug#879)
9196133b 6734
9f688acf
GM
67352008-11-26 Glenn Morris <rgm@gnu.org>
6736
6737 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6738 redefinition with ifdef. (Bug#1383)
6739
90d19aff
AR
67402008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6741
6742 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6743
4ccfa1c0 67442008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6745
6746 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6747 New EmacsView methods.
6748 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6749 Fixes bug #1048,1357,1414.
6750
67512008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6752
6753 Fix bug #1362.
6754 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6755 is not an indexed color.
6756 * nsterm.m (free_indexed_color): Add argument checking.
6757 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6758
e7d5ecb3
CY
67592008-11-24 Chong Yidong <cyd@stupidchicken.com>
6760
6761 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6762 Document confirm-after-completion value for
6763 minibuffer-completion-confirm.
6764
c285743c
JR
67652008-11-24 Jason Rumney <jasonr@gnu.org>
6766
6767 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6768 warning.
6769
b0857706
JR
67702008-11-23 Jason Rumney <jasonr@gnu.org>
6771
6772 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6773 restored before returning.
6774
6775 * w32font.c (check_face_name): New function.
6776 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6777 fonts. (Bug#642)
b0857706 6778
ee50ff07
MR
67792008-11-22 Martin Rudalics <rudalics@gmx.at>
6780
6781 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6782 confirm-nonexistent-file-or-buffer in doc-string.
6783
b8ff72fa
SM
67842008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6785
6786 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6787 Fix copy/paste typo. Add checks.
6788
cee53ed4
KH
67892008-11-21 Kenichi Handa <handa@m17n.org>
6790
6791 * coding.c (detect_coding_iso_2022): Reject invalid composition
6792 sequence.
6793 (DECODE_COMPOSITION_START): If the current source is the last
6794 block, and the current composition doesn't end, regard this
6795 sequence as invalid.
6796 (decode_coding_iso_2022): Handle invalid composition sequence.
6797
f6ef1e65
MR
67982008-11-20 Martin Rudalics <rudalics@gmx.at>
6799
6800 * window.c (coordinates_in_window): Don't return
6801 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6802 line when the window is not the rightmost one. (Bug#1372)
6803
e08b1705
MR
68042008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6805
6806 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6807
ad98e89f
EZ
68082008-11-15 Eli Zaretskii <eliz@gnu.org>
6809
6810 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6811 and bright_bg if noninteractive is non-zero.
6812
fb098a4b
CY
68132008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6814
6815 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6816 x_draw_glyph_string_background.
6817
6818 * w32term.c (x_draw_glyph_string): Likewise.
6819
ce952b6e
CY
68202008-11-15 Chong Yidong <cyd@stupidchicken.com>
6821
6822 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6823 the next glyph string once past the overhang width.
6824
6825 * nsterm.m (ns_draw_glyph_string): Likewise.
6826
6827 * w32term.c (x_draw_glyph_string): Likewise.
6828
26ea7079
CY
68292008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6830
6831 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6832 double file close.
6833
1c33c906
MR
68342008-11-14 Martin Rudalics <rudalics@gmx.at>
6835
6836 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6837 dedicated status of window before attempting to display another
6838 buffer in it.
6839
8fc29035
JB
68402008-11-14 Juanma Barranquero <lekktu@gmail.com>
6841
6842 * msdos.c (Fmsdos_long_file_names):
6843 (syms_of_msdos) <dos-unsupported-char-glyph>:
6844 * dosfns.c (Fint86): Fix typos in docstrings.
6845
55fb4286
EZ
68462008-11-14 Eli Zaretskii <eliz@gnu.org>
6847
6848 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6849
3fda0315
KY
68502008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6851
6852 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6853
7e849c17
CY
68542008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6855
6856 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6857
6858 * frame.h: Negative alpha means "don't touch".
6859
6860 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6861
6862 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6863
b9fd67bd
DN
68642008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6865
6866 * hftctl.c:
6867 * chpdef.h:
6868 * acldef.h: Remove files used only for systems no longer supported.
6869
6870 * Makefile.in: Fix .o alphabetical ordering.
6871 (hftctl.o): Remove dependency, file removed.
6872 (keymap.o, print.o): Depend on charset.h.
6873
d5998e03
KH
68742008-11-10 Kenichi Handa <handa@m17n.org>
6875
2ae37cf0 6876 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6877
be70e183
CY
68782008-11-08 Chong Yidong <cyd@stupidchicken.com>
6879
6880 * dired.c (file_name_completion): If completion_ignore_case is
6881 enabled, ignore case when checking completion-regexp-list.
6882
7cf94eac
EZ
68832008-11-08 Eli Zaretskii <eliz@gnu.org>
6884
6885 * vm-limit.c (get_lim_data): Fix last change.
6886
ee107a89
KH
68872008-11-08 Kenichi Handa <handa@m17n.org>
6888
6889 * character.c (Fget_byte): New function.
6890 (syms_of_character): Defsubr Fget_byte.
6891
5fd15622
CY
68922008-11-07 Chong Yidong <cyd@stupidchicken.com>
6893
6894 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6895 cursor position is valid after scrolling.
6896
13d62fad
JB
68972008-11-06 Juanma Barranquero <lekktu@gmail.com>
6898
6899 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6900
a1dd2936
GM
69012008-11-06 Glenn Morris <rgm@gnu.org>
6902
6903 * xterm.c (handle_one_xevent): Don't let popup menus cause
6904 mouse-autoselect-window related window switching. (Bug#1261)
6905
860cd236
CY
69062008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6907
6908 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6909
653a3150
AS
69102008-11-04 Andreas Schwab <schwab@suse.de>
6911
6912 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6913
870f5cac
CY
69142008-11-03 Chong Yidong <cyd@stupidchicken.com>
6915
6916 * xfns.c (Fx_wm_set_size_hint): New function.
6917
1e02f3cb
MR
69182008-11-03 Martin Rudalics <rudalics@gmx.at>
6919
6920 * textprop.c (Fprevious_single_char_property_change): Return 0
6921 when there's no change in a string. (Bug#1301)
6922
e630dfc6
MR
69232008-11-02 Martin Rudalics <rudalics@gmx.at>
6924
6925 * frame.c (do_switch_frame): New argument NORECORD passed to
6926 Fselect_window.
6927 (Fselect_frame): New argument NORECORD passed to
6928 do_switch_frame.
6929 (Fset_frame_selected_window): New argument NORECORD passed to
6930 Fselect_frame.
6931 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6932 in call of do_switch_frame.
6933 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6934 Handle NORECORD argument in call of Fselect_frame.
6935 * lisp.h (do_switch_frame, Fselect_frame)
6936 (Fset_frame_selected_window): Adjust declarations.
6937 * window.c (select_frame_norecord): New function.
6938 (run_window_configuration_change_hook): Use it and call
6939 Fselect_frame with NORECORD set.
6940 (Fselect_window): Pass NORECORD to Fselect_frame.
6941 (Fset_window_configuration): Handle NORECORD argument in call of
6942 do_switch_frame.
6943 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6944 Fset_frame_selected_window.
6945 * keyboard.c (command_loop_1): Handle NORECORD in call of
6946 Fselect_frame (currently ifdefd).
6947
9020b223
GM
69482008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6949
6950 * emacs.c (USAGE2): Untabify.
6951
793ffee8
SM
69522008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6953
6954 * composite.c (fill_gstring_header): Fix copy/paste typo.
6955
ab6d1131
MR
69562008-10-31 Martin Rudalics <rudalics@gmx.at>
6957
6958 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6959 (Fother_window): Rename argument and rewrite doc-string.
6960 (select_window_norecord): Fix return value. (Bug#1276)
6961
601a9cf1
JB
69622008-10-30 Juanma Barranquero <lekktu@gmail.com>
6963
6964 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6965 new frames overriding foreground for tooltips. Based on similar patch
6966 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6967
813b0652
CY
69682008-10-29 Chong Yidong <cyd@stupidchicken.com>
6969
6970 * emacs.c (Fdaemon_initialized): Initialize nfd.
6971
4414f58f
MR
69722008-10-29 Martin Rudalics <rudalics@gmx.at>
6973
6974 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6975 (Fwindow_text_height): Clarify doc-strings.
6976 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6977 doc-string of window-scroll-functions.
6978
ecdcaa09
RS
69792008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6980
6981 * category.c (syms_of_category): Fix typo in docstring.
6982
23fe745a
JB
69832008-10-28 Juanma Barranquero <lekktu@gmail.com>
6984
6985 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6986 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6987 Fix typos in docstrings.
6988
ff808935
DN
69892008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6990
6991 * emacs.c (daemon_pipe): Make non-static.
6992 (IS_DAEMON): Move definition ...
6993 * lisp.h (IS_DAEMON): ... here.
6994 (daemon_pipe): Declare.
6995 (is_daemon): Remove.
6996 * dispnew.c (init_display): Use IS_DAEMON.
6997
fc012771
SM
69982008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6999
7000 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7001 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7002
7003 * emacs.c (is_daemon): Remove.
7004 (main): Don't set is_daemon.
7005 (IS_DAEMON): New macro.
7006 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7007 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7008 parent exits.
7009 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7010
d8bdbe6f
CY
70112008-10-27 Chong Yidong <cyd@stupidchicken.com>
7012
d1a072bf
CY
7013 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7014 over-sized glyph, draw it with the default glyph width.
7015
e2e325aa
CY
7016 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7017 glyph, draw it with the default glyph width.
7018
7019 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7020 glyph, draw it with the default glyph width.
7021
d8bdbe6f
CY
7022 * xdisp.c (try_scrolling): When computing the distance from the
7023 scroll margin to PT, try moving some distance past the window
7024 bottom before giving up.
7025
7bfac547
MR
70262008-10-27 Martin Rudalics <rudalics@gmx.at>
7027
7028 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7029 (Fset_window_buffer): Explain in doc-string that a window can be
7030 "strongly" dedicated to its buffer.
7031
4ff029f6
DN
70322008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7033
7034 * emacs.c (daemon_name): New variable.
7035 (main): Deal with --daemon=SERVER_NAME.
7036 (Fdaemonp): Return a name if one was passed to --daemon.
7037
5790ef40
DN
70382008-10-26 Romain Francoise <romain@orebokech.com>
7039
f9bd0df9 7040 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7041 (main): Create a pipe before forking, make the parent exit only after
7042 the child has closed its end of the pipe. Move closing the
7043 descriptors ...
7044 (Fdaemon_initialized): ... here. New function.
7045
f5385255
SM
70462008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7047
4d632321
SM
7048 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7049 the previous unoptimized table.
7050
f5385255
SM
7051 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7052 the distinction between non-nil and non-t value of `dedicated'.
7053
6c56a0f3
CY
70542008-10-25 Chong Yidong <cyd@stupidchicken.com>
7055
7056 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7057 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7058
fec89261
MR
70592008-10-25 Martin Rudalics <rudalics@gmx.at>
7060
7061 * window.c (Fget_buffer_window, Fdelete_windows_on)
7062 (Freplace_buffer_in_windows): Make buffer argument optional and
7063 rename to buffer_or_name.
7064
34fcddd0
CY
70652008-10-24 Chong Yidong <cyd@stupidchicken.com>
7066
f5385255
SM
7067 * xdisp.c (handle_single_display_spec, handle_display_prop):
7068 Undo 2005-05-16 change.
34fcddd0
CY
7069 (handle_stop): Pop iterator if it's loaded with an empty string.
7070 (get_overlay_strings_1): Don't save iterator if it's loaded with
7071 an empty string (bug#1201).
7072
064766f2
KH
70732008-10-24 Kenichi Handa <handa@m17n.org>
7074
7075 * ftfont.c (ftfont_otf_features): Fix previous change.
7076 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7077 calling ftfont_otf_features.
7078
f9bd0df9 70792008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7080
7081 * font.c (font_match_p): Fix for the case that a vector of
7082 characters is in script-representative-chars.
7083
1dae9197
MA
70842008-10-24 Michael Albinus <michael.albinus@gmx.de>
7085
7086 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7087 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7088 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7089 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7090 macro. (Bug#1186)
1dae9197 7091
f9bd0df9 70922008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7093
7094 * s/sol2-10.h: New file.
7095
878a4584
JB
70962008-10-23 Juanma Barranquero <lekktu@gmail.com>
7097
7098 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7099 poor beast has survived 9+ years and the jump from xterm.c!).
7100
cd265ca6
MR
71012008-10-23 Martin Rudalics <rudalics@gmx.at>
7102
7103 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7104 Reword doc-string.
f5385255 7105 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7106
472a4dc9
JB
71072008-10-23 Juanma Barranquero <lekktu@gmail.com>
7108
7109 * character.c (syms_of_character) <script-representative-chars>:
7110 <unicode-category-table>: Doc fixes.
7111
159bd5a2
NF
71122008-10-23 Noah Friedman <friedman@splode.com>
7113
7114 * coding.c (make_conversion_work_buffer): Check that
7115 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7116 Fget_buffer_create.
7117
49f9c344
KH
71182008-10-23 Kenichi Handa <handa@m17n.org>
7119
7120 * font.c (font_add_log): Check the values of extra properties.
7121
12bb3111
MR
71222008-10-22 Martin Rudalics <rudalics@gmx.at>
7123
7124 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7125 Reword doc-string.
7126 (Fset_window_parameter): Use NILP.
7127 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7128 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7129
bbeb4e99
JB
71302008-10-22 Juanma Barranquero <lekktu@gmail.com>
7131
7132 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7133
71342008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7135
7136 * nsfns.m (ns_appkit_version): New function.
7137 (x-server-version): Use it.
7138 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7139 (x-server-vendor): Don't check_ns().
7140
7141 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7142
a9b555d3
JB
71432008-10-22 Juanma Barranquero <lekktu@gmail.com>
7144
7145 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7146 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7147
4626499f
KH
71482008-10-22 Kenichi Handa <handa@m17n.org>
7149
e3681952
KH
7150 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7151 scripts.
7152
4626499f
KH
7153 * category.c (word_boundary_p): Check scripts instead of charset.
7154 Handle nil value in word-separating-categories and
7155 word-combining-categories.
7156 (syms_of_category): Fix docstrings of word-separating-categories
7157 and word-combining-categories.
7158
1560f91a
EZ
71592008-10-21 Eli Zaretskii <eliz@gnu.org>
7160
7161 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7162 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7163
f4668441
MR
71642008-10-21 Martin Rudalics <rudalics@gmx.at>
7165
7166 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7167 Rename arg "buffer" to "buffer_or_name".
7168 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7169 it optional.
7170 (no_switch_window): Remove since the return value is not used.
a9b555d3 7171 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7172 Consider window as dedicated when Fwindow_dedicated_p returns a
7173 non-nil value.
7174 * lisp.h: Remove prototype for no_switch_window.
7175
fd75ddb2
JD
71762008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7177
7178 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7179 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7180
07295713
KH
71812008-10-21 Kenichi Handa <handa@m17n.org>
7182
7183 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7184 check Vlatin_extra_code_table.
7185
712adc82
EZ
71862008-10-20 Eli Zaretskii <eliz@gnu.org>
7187
7188 * fileio.c (Fset_file_modes): Doc fix.
7189
f549eb0b
MA
71902008-10-19 Michael Albinus <michael.albinus@gmx.de>
7191
7192 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7193 in arrays.
7194
aac0c6e3
MR
71952008-10-19 Martin Rudalics <rudalics@gmx.at>
7196
7197 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7198 Mention kill-buffer in doc-string.
7199 (Fset_window_buffer): Reinsert tem check removed in last commit.
7200 (Fenlarge_window, Fshrink_window): Have argument names and
7201 doc-string follow Elisp manual more closely.
7202
72032008-10-18 Eli Zaretskii <eliz@gnu.org>
7204
7205 * fileio.c (Fset_file_modes): Doc fix.
7206
72072008-10-18 Martin Rudalics <rudalics@gmx.at>
7208
7209 * window.c (Fwindow_width, Fset_window_start)
7210 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7211 (Fdelete_windows_on, Freplace_buffer_in_windows):
7212 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7213 (Fwindow_dedicated_p): Make window argument optional.
7214 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7215 (Fset_window_buffer): Respect any non-nil dedicated value for
7216 window. Rename "buffer" argument to "buffer_or_name".
7217
72182008-10-18 Ulrich Mueller <ulm@gentoo.org>
7219
7220 * m/sh3.h: New file, machine description for SuperH.
7221
72222008-10-17 Martin Rudalics <rudalics@gmx.at>
7223
7224 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7225
72262008-10-17 Kenichi Handa <handa@m17n.org>
7227
7228 * ftfont.c (ftfont_otf_features): Fix indexing
7229 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7230
72312008-10-16 Magnus Henoch <mange@freemail.hu>
7232
7233 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7234 (Fdbus_call_method_asynchronously): Ditto.
7235 This change makes C-h f display the argument list.
7236
72372008-10-16 Chong Yidong <cyd@stupidchicken.com>
7238
7239 * fileio.c (Fexpand_file_name): Doc fix.
7240
7241 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7242 of :foreground and :background equivalent to unspecified (20.x
7243 compatibility).
7244
72452008-10-15 Eli Zaretskii <eliz@gnu.org>
7246
7247 * buffer.c (syms_of_buffer): Doc fix.
7248
72492008-10-14 Kenichi Handa <handa@m17n.org>
7250
7251 * font.c (font_clear_prop): When clearing font width, clear the
7252 average width field too.
7253
72542008-10-12 Andreas Schwab <schwab@suse.de>
7255
7256 * ftfont.c (ftfont_shape_by_flt): Make static.
7257 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7258
7259 * font.c: Don't include <m17n-flt.h>.
7260
72612008-10-10 Eli Zaretskii <eliz@gnu.org>
7262
7263 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7264
72652008-10-09 Eli Zaretskii <eliz@gnu.org>
7266
7267 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7268 away code.
7269
72702008-10-09 Chong Yidong <cyd@stupidchicken.com>
7271
7272 * dispnew.c (update_text_area): Avoid looping due to large glyph
7273 overhangs (bug#1070).
7274
72752008-10-09 Kenichi Handa <handa@m17n.org>
7276
7277 * fontset.c (face_for_char): If face->fontset is negative, just
7278 return ascii_face.
7279
f5385255
SM
7280 * font.c (font_delete_unmatched): Fix previous change.
7281 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7282
72832008-10-09 Martin Rudalics <rudalics@gmx.at>
7284
7285 * frame.c (Fraise_frame): On text-only terminals select frame in
7286 order to make it visible. (Bug#1061)
7287
72882008-10-08 Chong Yidong <cyd@stupidchicken.com>
7289
7290 * fontset.c (fontset_find_font): Check frame validity.
7291
72922008-10-07 Chong Yidong <cyd@stupidchicken.com>
7293
a9b555d3 7294 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7295 (xg_display_close): Allow Emacs to close all displays (bug#985).
7296
72972008-10-06 Andreas Schwab <schwab@suse.de>
7298
f5385255 7299 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7300
73012008-10-06 Chong Yidong <cyd@stupidchicken.com>
7302
f5385255 7303 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7304
a9b555d3 7305 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7306
7307 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7308 during initialization.
7309
73102008-10-04 Eli Zaretskii <eliz@gnu.org>
7311
7312 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7313 whole thing on MSDOS frames as well as on a TTY.
7314
7315 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7316 well as for TTY.
7317 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7318 well as on a TTY.
7319
7320 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7321 as well as for TTY.
7322
7323 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7324
7325 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7326 MSDOS frames as well.
7327
73282008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7329
7330 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7331 correct arguments.
b71ac3dd 7332 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7333
73342008-10-03 Glenn Morris <rgm@gnu.org>
7335
7336 * emacs.c (USAGE1): Add --daemon.
7337
73382008-10-02 Eli Zaretskii <eliz@gnu.org>
7339
7340 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7341 100, so it's in percents as advertised.
7342
73432008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7344
7345 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7346 (ns_output.current_cursor, ns_output.desired_cursor)
7347 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7348 (FRAME_NEW_CURSOR_COLOR): Remove.
7349
7350 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7351 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7352 enumeration (HOLLOW_BOX_CURSOR, etc.).
7353
7354 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7355 (draw_window_cursor): Simplify code.
f5385255
SM
7356 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7357 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7358 updates manually.
a9b555d3
JB
7359 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7360 Use core Emacs cursor types.
aac0c6e3 7361
b8ff72fa 7362 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7363
73642008-10-02 Martin Rudalics <rudalics@gmx.at>
7365
7366 * process.c (Faccept_process_output): Fix doc-string.
7367
73682008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7369
7370 * gmalloc.c (__sbrk): Also define for uClibc.
7371
7372 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7373 for uClibc.
7374
73752008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7376
7377 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7378 styles.
7379 (nsfont_open): Reenable the cache.
7380
73812008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7382
7383 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7384 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7385
73862008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7387
7388 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7389 a suspended terminal.
7390
73912008-09-30 Michael Albinus <michael.albinus@gmx.de>
7392
7393 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7394
73952008-09-30 Eli Zaretskii <eliz@gnu.org>
7396
7397 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7398
73992008-09-30 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7402 in a continued line coincides with a line beginning.
7403
74042008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7405
7406 * nsfont.m (nsfont_trait_distance): Fix bug.
7407 (nsfont_list): Return a list rather than a vector (syncs with Handa
7408 changes of 2008-05-14).
7409 (nsfont_open): Improve logging.
7410
74112008-09-29 Andreas Schwab <schwab@suse.de>
7412
7413 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7414
74152008-09-28 Martin Rudalics <rudalics@gmx.at>
7416
7417 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7418 name as char-resolve-modifiers.
7419 Reported by: Markus Triska <markus.triska@gmx.at>
7420
74212008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7422
7423 * dispnew.c (init_display): Return earlier when running as a daemon.
7424
74252008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7426
7427 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7428
74292008-09-27 Eli Zaretskii <eliz@gnu.org>
7430
7431 * composite.c (Fcomposition_get_gstring)
7432 (Fcompose_region_internal, Fcompose_string_internal)
7433 (Ffind_composition_internal): Doc fix.
7434 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7435 (syms_of_composite) <auto-composition-function>: Doc fix.
7436 (syms_of_composite) <composition-function-table>: Doc fix.
7437
74382008-09-25 Chong Yidong <cyd@stupidchicken.com>
7439
7440 * search.c (wordify): New argument for lax word-ends.
7441 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7442
74432008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7444
7445 * lisp.h (is_daemon): Declare.
7446 * dispnew.c (init_display): Do not try to initialize the terminal
7447 when running as a daemon.
7448
74492008-09-22 Chong Yidong <cyd@stupidchicken.com>
7450
7451 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7452 x_display_pixel_height.
7453
74542008-09-22 Martin Rudalics <rudalics@gmx.at>
7455
7456 * undo.c (record_point): Don't call Fundo_boundary for first
7457 change. (Bug#731)
7458
74592008-09-22 Juanma Barranquero <lekktu@gmail.com>
7460
7461 * emacs.c (Fdaemonp): Doc fix.
7462
74632008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7464
7465 * emacs.c (main): Place #ifdef in the proper place.
7466
74672008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7468
7469 * emacs.c (standard_args): Add --daemon.
7470 (main): Disconnect from the terminal when --daemon is passed.
7471 (is_daemon): New variable.
7472 (Fdaemonp): New function.
7473 (syms_of_emacs): Defsubr it.
7474
74752008-09-20 Chong Yidong <cyd@stupidchicken.com>
7476
7477 * xdisp.c (get_next_display_element): Handle string display
7478 correctly when checking for the end of a box run.
7479
74802008-09-20 Glenn Morris <rgm@gnu.org>
7481
7482 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7483 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7484 (Frename_file): Avoid copying to trash if a rename involves
7485 a delete. (Bug#964).
7486
74872008-09-20 Eli Zaretskii <eliz@gnu.org>
7488
7489 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7490 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7491 frames as well as termcap frames.
7492 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7493 get_named_tty.
7494
74952008-09-19 Eli Zaretskii <eliz@gnu.org>
7496
7497 * process.c (procfs_system_process_attributes): Fix cmdline in
7498 case /proc/PID/cmdline is empty.
7499
7500 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7501 x_display_pixel_height.
7502
75032008-09-19 Juanma Barranquero <lekktu@gmail.com>
7504
7505 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7506
7507 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7508 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7509
75102008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7511
7512 * dispextern.h (struct it): Move line_wrap away from the middle of
7513 bitfields. Move voffset in struct iterator_stack_entry after the
7514 bitfields. Move tab_width near after another short.
7515
75162008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7517
7518 * frame.h (struct frame): Move alpha from the middle of bitfields.
7519
7520 * window.h (struct window): Move frozen_window_start_p after the
7521 rest of the bitfields to reduce padding.
7522
75232008-09-18 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * xterm.h (x_display_info): Remove `height' and `width' members.
7526
7527 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7528
7529 * w32term.h (w32_display_info): Remove `height', `width',
7530 `height_in', and `width_in' members.
7531
b8ff72fa
SM
7532 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7533 New functions.
aac0c6e3
MR
7534 (x_calc_absolute_position): Use them.
7535 (x_term_init): Omit removed `height' and `width' members.
7536
b8ff72fa
SM
7537 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7538 New functions.
aac0c6e3
MR
7539 (w32_read_socket, x_calc_absolute_position): Use them.
7540 (w32_initialize_display_info, w32_term_init): Omit removed members
7541 of w32_display_info.
7542
b8ff72fa
SM
7543 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7544 New functions.
7545 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7546
b8ff72fa
SM
7547 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7548 New functions.
aac0c6e3
MR
7549 (x_calc_absolute_position): Use them.
7550 (x_term_init): Omit removed `height' and `width' members.
7551
7552 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7553 (compute_tip_xy):
7554 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7555 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7556 x_display_pixel_width.
7557
75582008-09-18 Kenichi Handa <handa@m17n.org>
7559
7560 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7561 (composition_compute_stop_pos): Fix handling of static composition.
7562 (Fcomposition_get_gstring): Check FROM and TO at first.
7563
75642008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7565
46e722a9 7566 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7567 mixup (YAILOM).
7568
75692008-09-17 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * indent.c (Fvertical_motion): Use position reported by iterator
7572 instead of PT for determining screen motion (bug#943).
7573
75742008-09-17 Romain Francoise <romain@orebokech.com>
7575
7576 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7577
75782008-09-17 Kenichi Handa <handa@m17n.org>
7579
7580 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7581
7582 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7583 if necessary.
7584
75852008-09-16 Kenichi Handa <handa@m17n.org>
7586
7587 * coding.c (make_conversion_work_buffer): Avoid calling
7588 Fget_buffer_create if it is not necessary.
7589
75902008-09-15 Martin Rudalics <rudalics@gmx.at>
7591
7592 * window.c (Fselect_window): Don't update window_select_count and
7593 use_time when norecord is not nil.
7594
75952008-09-14 Kenichi Handa <handa@m17n.org>
7596
7597 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7598 specpdl_ptr.
7599
76002008-09-12 Kenichi Handa <handa@m17n.org>
7601
7602 * indent.c (scan_for_column): Don't handle automatic composition
7603 if the current buffer is not associated with a window.
7604
7605 * composite.c (composition_reseat_it): If the current buffer is
7606 not associated with a window, ignore the automatic composition.
7607 (find_automatic_composition): Likewise.
7608
76092008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7610
7611 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7612 (Fgpm_mouse_stop): Use it.
7613 * termhooks.h (close_gpm): Declare.
7614 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7615 connection if Gpm_GetEvent fails.
7616
7617 * window.c (set_window_buffer): Always preserve current-buffer.
7618
76192008-09-12 Glenn Morris <rgm@gnu.org>
7620
7621 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7622
76232008-09-11 Glenn Morris <rgm@gnu.org>
7624
7625 * charset.c (charset-map-path): Doc fix.
7626
76272008-09-10 Kenichi Handa <handa@m17n.org>
7628
7629 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7630
7631 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7632 compose a grapheme cluster with the preceding base glyph.
7633
7634 * composite.c (composition_compute_stop_pos): Fix previous change.
7635 Reset cmp_it->id to -1 at first.
7636
76372008-09-10 Glenn Morris <rgm@gnu.org>
7638
7639 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7640
76412008-09-09 Chong Yidong <cyd@stupidchicken.com>
7642
7643 * keyboard.c (read_key_sequence): Reapply translation maps when
7644 switching keyboards.
7645
76462008-09-09 Kenichi Handa <handa@m17n.org>
7647
7648 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7649 characters.
7650
7651 * composite.c (FORWARD_CHAR): Fix calculation
7652 of (POSITION).pos_byte.
7653 (composition_compute_stop_pos): Limit the search of composition to
7654 at most 500 characters ahead. If we reach the limit or find a
7655 newline, set cmp_it->ch to -2 and return 0.
7656 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7657
76582008-09-08 Kenichi Handa <handa@m17n.org>
7659
7660 * indent.c (Fvertical_motion): Be sure to set
7661 it_overshoot_expected if it.cmp_it.id is non-negative.
7662
76632008-09-07 Andreas Schwab <schwab@suse.de>
7664
7665 * callproc.c (Fcall_process): Don't hold references to string data
7666 across garbage collection. Move initialisation of new_argv down
7667 to avoid compiler bug.
7668
76692008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7670
7671 * process.c (Fsystem_process_attributes): Doc fix.
7672
76732008-09-07 Chong Yidong <cyd@stupidchicken.com>
7674
7675 * callproc.c (Fcall_process): Canonicalize current directory name.
7676
7677 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7678 iterator advances to the next line if the current line ends in a
7679 continued tab.
7680
76812008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7682
7683 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7684 member to point to cmp_from.
7685
7686 * xdisp.c: Doc fix for references to gidx data member.
7687
76882008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7689
7690 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7691
76922008-09-07 Kenichi Handa <handa@m17n.org>
7693
7694 * composite.c (FORWARD_CHAR): Check STOP after
7695 incrementing (POSITION).pos.
7696
76972008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7698
7699 * process.c (Fsystem_process_attributes): Doc fix.
7700
77012008-09-06 Chong Yidong <cyd@stupidchicken.com>
7702
7703 * keyboard.c (Ftop_level): Doc fix.
7704
77052008-09-06 Eli Zaretskii <eliz@gnu.org>
7706
7707 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7708 minibuffer, don't let lower part of menu invade the echo area.
7709
7710 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7711 "char *q" to access menu text and advance through it. Revert the
7712 change that displayed ">" instead of ASCII character 0x10.
7713
77142008-09-05 Eli Zaretskii <eliz@gnu.org>
7715
7716 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7717 toggle boxes and radio buttons on MS-DOS as well.
7718
77192008-09-05 Kenichi Handa <handa@m17n.org>
7720
7721 * composite.c (autocmp_chars): Check lookback count.
7722 (composition_compute_stop_pos): Set cmp_it->lookback.
7723 (composition_reseat_it): Check lookback count.
7724 (struct position_record): New struct.
7725 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7726 (find_automatic_composition): New function.
7727 (composition_adjust_point): Use find_automatic_composition.
7728
7729 * dispextern.h (struct composition_it): New member lookback.
7730
77312008-09-02 Chong Yidong <cyd@stupidchicken.com>
7732
7733 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7734 if moving by a single line.
7735
77362008-09-02 Andreas Schwab <schwab@suse.de>
7737
7738 * xterm.c (x_delete_display): Fix merge error.
7739
7740 * fileio.c (Fexpand_file_name): Remove unused variables.
7741
77422008-09-02 Eli Zaretskii <eliz@gnu.org>
7743
7744 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7745 storage on all platforms, not just on DOS_NT.
7746
77472008-09-02 Jason Rumney <jasonr@gnu.org>
7748
b8ff72fa
SM
7749 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7750 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7751
77522008-09-01 Chong Yidong <cyd@stupidchicken.com>
7753
7754 * xfaces.c (Finternal_set_alternative_font_family_alist)
7755 (Finternal_set_alternative_font_registry_alist): Properly copy
7756 entire alist structure.
7757
77582008-09-01 Kenichi Handa <handa@m17n.org>
7759
d66c0241 7760 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7761 representative chars of the script is a vector.
d66c0241
JB
7762 (ftfont_list): Handle the case where the representative chars of
7763 the script is a vector.
aac0c6e3
MR
7764
7765 * character.c (syms_of_character): Docstring of
7766 script-representative-chars fixed.
7767
77682008-08-31 Eli Zaretskii <eliz@gnu.org>
7769
7770 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7771 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7772 the menu. Allocate larger buffer for `text', to account for
7773 possible ^C characters.
7774
77752008-08-31 Martin Rudalics <rudalics@gmx.at>
7776
7777 * xdisp.c (prepare_menu_bars): Don't call
7778 Vwindow_size_change_functions with arg Qt.
7779
77802008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7781
7782 * font.h (font_range):
7783 * fileio.c (report_file_error):
46e722a9
SM
7784 * composite.c (composition_update_it): Yet another int/Lisp_Object
7785 mixup (YAILOM).
aac0c6e3
MR
7786
77872008-08-30 Glenn Morris <rgm@gnu.org>
7788
7789 * data.c (Fmake_variable_frame_local): Doc fix.
7790
7791 * frame.c (Fmodify_frame_parameters): Doc fix.
7792
77932008-08-30 Eli Zaretskii <eliz@gnu.org>
7794
7795 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7796 needed by GetTokenInformation.
7797 (w32_system_process_attributes): Check return values of all system
7798 APIs.
7799
7800 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7801 only when the state changes.
7802 (IT_update_begin, IT_update_end): Add termscript trace.
7803
7804 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7805 clipboard is unavailable. Set dst to NULL if it doesn't point to
7806 malloc'ed data.
7807 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7808 passing random values to xfree.
7809
7810 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7811 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7812
78132008-08-29 Jason Rumney <jasonr@gnu.org>
7814
7815 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7816
78172008-08-29 Eli Zaretskii <eliz@gnu.org>
7818
7819 * composite.c (fill_gstring_body): Avoid compiler warnings.
7820
7821 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7822 LGLYPH_SET_CODE to avoid compiler warnings.
7823
2ae37cf0 7824 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7825
7826 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7827
7828 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7829 LGLYPH_SET_CODE.
7830
78312008-08-29 Kenichi Handa <handa@m17n.org>
7832
7833 * fileio.c (report_file_error): Don't downcase the first character
7834 of errstring if it is still unibyte.
7835
78362008-08-29 Kenichi Handa <handa@m17n.org>
7837
7838 These changes are to re-implement the automatic composition so
7839 that it doesn't use text properties.
7840
7841 * Makefile.in (ftfont.o): Depend on composite.h.
7842 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7843
7844 * character.h (Vunicode_category_table): Extern it.
7845
7846 * character.c (Vunicode_category_table): New variable.
7847 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7848
7849 * chartab.c (optimize_sub_char_table): Perform more greedy
7850 optimization.
7851
b8ff72fa
SM
7852 * composite.h (enum composition_method):
7853 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7854 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7855 (Vcomposition_function_table): Extern it.
7856 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7857 (composition_gstring_put_cache, composition_gstring_from_id)
7858 (composition_gstring_p, composition_gstring_width)
7859 (composition_compute_stop_pos, composition_reseat_it)
7860 (composition_update_it, composition_adjust_point): Extern them.
7861 (Fcomposition_get_gstring): EXFUN it.
7862
d66c0241 7863 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7864 (Vcomposition_function_table)
7865 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7866 (gstring_hash_table, gstring_work, gstring_work_headers):
7867 New variables.
aac0c6e3
MR
7868 (gstring_lookup_cache, composition_gstring_put_cache)
7869 (composition_gstring_from_id, composition_gstring_p)
7870 (composition_gstring_width, fill_gstring_header)
7871 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7872 (composition_reseat_it, composition_update_it)
b8ff72fa 7873 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7874 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7875 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7876 Defsubr compostion_get_gstring.
7877
7878 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7879 cmp_id.
7880 (struct glyph_string): Delete the member gidx. New members
7881 cmp_id, cmp_from, and cmp_to.
7882 (enum it_method): Delete GET_FROM_COMPOSITION.
7883 (struct composition_it): New struct.
7884 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7885 Delete c, len, cmp_id, cmp_len in u.comp.
7886
7887 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7888 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7889 (enum lglyph_indices): Likewise.
b8ff72fa 7890 (font_range): Adjust extern.
aac0c6e3
MR
7891 (font_fill_lglyph_metrics): Extern it.
7892
7893 * font.c (QCf): New variable.
7894 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7895 (font_prepare_composition): Delete this function.
7896 (font_range): Type and arguments changed.
7897 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7898 (font_fill_lglyph_metrics): New function.
b8ff72fa 7899 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7900 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7901 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7902 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7903
7904 * fontset.h (font_for_char): Extern it.
7905
7906 * fontset.c (font_for_char): New function.
7907
7908 * ftfont.c: Include composite.h.
7909 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7910 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7911
7912 * indent.c: Include composite.h and dispextern.h.
7913 (check_composition): Delete this function.
7914 (scan_for_column): Handle composition by
7915 composition_compute_stop_pos, composition_reseat_it, and
7916 composition_update_it.
7917 (compute_motion): Likewise.
7918 (Fvertical_motion): Fix checking of composition.
7919
7920 * keyboard.c (adjust_point_for_property): Check composition by
7921 composition_adjust_point.
7922
b8ff72fa 7923 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7924 struct glyph_string.
7925
b8ff72fa
SM
7926 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7927 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7928 struct glyph.
7929 (produce_composite_glyph): Likewise.
7930
b8ff72fa
SM
7931 * w32term.c (x_draw_composite_glyph_string_foreground):
7932 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7933 (x_draw_glyph_string): Likewise.
7934
7935 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7936 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7937
7938 * xdisp.c: Include font.h.
7939 (it_props): Delete the entry for Qauto_composed.
7940 (init_iterator): Initialize it->cmp_it.id to -1.
7941 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7942 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7943 (handle_auto_composed_prop): Delete it.
7944 (handle_composition_prop): Handle only static composition.
7945 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7946 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7947 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7948 (pop_it): Likewise.
7949 (get_next_element): Delete next_element_from_composition.
7950 (CHAR_COMPOSED_P): New macro.
7951 (get_next_display_element): For automatic composition, get a face
7952 from the font in the glyph-string.
7953 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7954 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7955 (next_element_from_string): Check if the character at the current
7956 position is composed by CHAR_COMPOSED_P.
7957 (next_element_from_buffer): Likewise.
d66c0241
JB
7958 (next_element_from_composition): Adjust for the change of struct it.
7959 Update it->cmp_it.
b8ff72fa
SM
7960 (dump_glyph): Adjust for the change of struct glyph.
7961 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7962 it and struct glyph. Don't handle automatic composition here.
7963 (fill_gstring_glyph_string): New function.
7964 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7965 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7966 (BUILD_GSTRING_GLYPH_STRING): New macro.
7967 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7968 automatic composition.
b8ff72fa 7969 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7970 struct glyph.
b8ff72fa 7971 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7972
b8ff72fa 7973 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7974 the change of struct glyph_string.
7975 (x_draw_glyph_string): Likewise.
7976
79772008-08-29 Glenn Morris <rgm@gnu.org>
7978
7979 * buffer.c (word-wrap): Doc fix.
7980 * xdisp.c (truncate-partial-width-windows): Doc fix.
7981 Increase default to 50.
7982
79832008-08-29 Chong Yidong <cyd@stupidchicken.com>
7984
7985 * xdisp.c (update_tool_bar_unwind): New function.
7986 (update_tool_bar): Temporarily set selected frame before building
7987 tool-bar items.
7988
79892008-08-28 Michael Albinus <michael.albinus@gmx.de>
7990
7991 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7992 snprintf, respectively.
7993 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7994
79952008-08-28 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7998 LDFLAGS to GNUstep CC invocation.
7999
80002008-08-27 Chong Yidong <cyd@stupidchicken.com>
8001
8002 * indent.c (Fvertical_motion): Revert last change. Handle the
8003 general case where we are moving forward, and PT spans multiple
8004 screen lines.
8005
8006 * eval.c (find_handler_clause): Temporarily increase
8007 max-lisp-eval-depth while printing the backtrace buffer, to
8008 guarantee that help-mode code can run.
8009
80102008-08-27 Eli Zaretskii <eliz@gnu.org>
8011
8012 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8013 colors under -rv.
8014 (IT_set_frame_parameters): Don't swap foreground and background
8015 colors if `(reverse . t)' is present in the frame properties.
8016 (internal_terminal_init): Call init_frame_faces only for the
8017 initial frame.
8018
80192008-08-27 Andreas Schwab <schwab@suse.de>
8020
8021 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8022
80232008-08-27 Andreas Schwab <schwab@suse.de>
8024
8025 * search.c (search_buffer): Set char_base to zero only at the end.
8026
80272008-08-27 Kenichi Handa <handa@m17n.org>
8028
b8ff72fa 8029 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8030
80312008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8032
8033 * xterm.c (x_term_init): Temporarily hide the partially
8034 initialized terminal while calling vendor-specific-keysyms.
8035
80362008-08-26 Eli Zaretskii <eliz@gnu.org>
8037
8038 * msdos.c (internal_terminal_init): Most initializations done only
8039 once, especially initial_screen_colors[] and termscript open.
8040
80412008-08-26 Chong Yidong <cyd@stupidchicken.com>
8042
8043 * eval.c (Fcondition_case): Doc fix.
8044
8045 * widgetprv.h (EmacsFramePart): Change font member to the new font
8046 struct.
8047
8048 * widget.c: Include character.h and font.h for XSETFONT.
8049 (setup_frame_gcs): Compute X font id from font struct, just once.
8050
80512008-08-26 Eli Zaretskii <eliz@gnu.org>
8052
8053 * term.c (get_named_tty): Fix last change.
8054
80552008-08-26 Chong Yidong <cyd@stupidchicken.com>
8056
8057 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8058 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8059
80602008-08-25 Eli Zaretskii <eliz@gnu.org>
8061
8062 * frame.c (do_switch_frame): Mark previously displayed frame as
8063 obscured for FRAME_MSDOS_P frames as well.
8064
80652008-08-24 Eli Zaretskii <eliz@gnu.org>
8066
8067 * frame.c (make_terminal_frame): Initialize f->terminal,
8068 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8069 Set the top frame to newly created frame.
8070 (Fmake_terminal_frame): Reuse the_only_display_info.
8071
8072 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8073 estimating available memory.
8074
b97439ce 80752008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8076
8077 * nsterm.m (ns_draw_window_cursor): Don't call
8078 NSDisableScreenUpdates and NSEnableScreenUpdates on
8079 non-NS_IMPL_COCOA systems.
8080
80812008-08-23 Andreas Schwab <schwab@suse.de>
8082
8083 * process.c (procfs_system_process_attributes): Fix use of
8084 uninitialized variables.
8085
80862008-08-23 Eli Zaretskii <eliz@gnu.org>
8087
8088 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8089
8090 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8091 calling tty-set-up-initial-frame-faces.
8092
b8ff72fa
SM
8093 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8094 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8095
8096 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8097 addition to output_termcap.
8098
8099 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8100
8101 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8102 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8103 highlight.
8104
8105 * process.c [!subprocesses]: Define QCname.
8106 (syms_of_process): Intern and staticpro it.
8107
8108 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8109 Adjust for changes in encoding/decoding routines.
8110 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8111 encode_coding and decode_coding.
8112
b8ff72fa 8113 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8114
8115 * dosfns.c: Include frame.h before termhooks.h.
8116 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8117 variable termscript.
8118
8119 * s/msdos.h (USER_FULL_NAME): Define.
8120 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8121
8122 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8123 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8124 pw->pw_gecos.
8125
8126 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8127 SELECTED_FRAME as additional (1st) argument.
8128 (tty_read_avail_input): Handle output_msdos_raw in
8129 addition to output_termcap.
8130
8131 * msdos.c: Include frame.h before termhooks.h.
8132 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8133 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8134 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8135 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8136 (IT_set_terminal_modes, IT_reset_terminal_modes)
8137 (IT_set_frame_parameters): Use tty->termscript instead of a global
8138 variable termscript.
8139 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8140 global variable terminal_coding. Don't refer to
8141 Vnonascii_translation_table.
8142 (internal_terminal_init): Set Vwindow_system in current_kboard.
8143 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8144 Announce date and time of session start, if termscript is open.
8145 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8146 term.c:init_tty). Open termscript only of not already open.
8147 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8148 here instead of dos_ttraw. Don't initialize display if this is an
8149 initial tty. Don't set FRAME_FONT.
8150 (Vwindow_system_version): Bump to 23.
8151 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8152 is available, set up mouse_position_hook.
8153 (dos_ttraw, IT_set_terminal_modes): If called with initial
8154 terminal, do nothing.
8155 (IT_set_frame_parameters): Handle the Qtty_type frame
8156 parameter by calling internal_terminal_init.
8157 (dos_set_window_size, show_mouse_face)
8158 (clear_mouse_face, IT_note_mode_line_highlight)
8159 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8160 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8161 (initialize_msdos_display): New function.
8162 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8163 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8164 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8165 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8166 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8167 (request_sigio, unrequest_sigio): Don't define, now defined on
8168 sysdep.c.
8169 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8170
8171 * term.c [MSDOS]: Include msdos.h.
8172 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8173 conditional to DOS_NT. Allow only one call to this function in a
8174 session. Don't allocate a new struct tty_display_info; instead,
8175 reuse the_only_display_info. Call get_tty_size to get screen
8176 dimensions. Call init_baud_rate to set bad_rate.
8177 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8178 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8179 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8180 (get_tty_terminal, get_named_tty, Ftty_type)
8181 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8182 output_termcap.
b8ff72fa
SM
8183 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8184 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8185 only when subprocesses are supported.
aac0c6e3
MR
8186
8187 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8188 f->output_data.x.
8189 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8190 terminal devices.
8191
5582fbc7 8192 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8193 x_output.
8194 (FRAME_FONT): Use output_data.tty.
8195 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8196 (struct x_display_info): Rename from display_info. Update all users in
8197 msdos.c.
aac0c6e3 8198 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8199 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8200 (dos_ttraw): Update prototype.
8201
8202 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8203 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8204
82052008-08-23 Jason Rumney <jasonr@gnu.org>
8206
8207 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8208 (fn_TIFFSetDirectory): New library function used.
8209 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8210 (tiff_load): Use :index to select among multiple images. Set count
8211 property when multiple images exist.
8212 (gif_format): Use :index, not :image.
8213
82142008-08-23 Chong Yidong <cyd@stupidchicken.com>
8215
8216 * xdisp.c (try_scrolling): Check INT_MAX instead of
8217 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8218 to obtain INT_MAX.
8219
82202008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8221
8222 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8223
82242008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8225
8226 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8227 GNUstep library location.
8228
82292008-08-21 Chong Yidong <cyd@stupidchicken.com>
8230
8231 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8232 before using it.
8233
8234 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8235
82362008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8237
8238 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8239 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8240 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8241 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8242 (EmacsApp-cursor_blink_handler): Remove declaration.
8243 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8244 match 01 Feb 2008 changes in xterm.c.
8245 (ns_read_socket): Add cast to avoid warning.
8246 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8247 GNUstep.
8248
82492008-08-20 Chong Yidong <cyd@stupidchicken.com>
8250
8251 * xselect.c (x_get_foreign_selection): Return nil if desired
8252 selection could not be obtained, instead of signalling an error.
8253
82542008-08-20 David Reitter <david.reitter@gmail.com>
8255
8256 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8257 * nsterm.m: Remove ns-specific code for cursor blinking.
8258 (ns_draw_window_cursor): Clear cursor properly rather than
8259 redrawing the area. Respect width of bar cursors.
8260 These changes enable the use of generic blink-cursor-mode and
8261 generic cursor types in NS and support smooth cursor movements (do
8262 not blink off after command).
8263 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8264 Nextstep, too.
8265
82662008-08-19 Kenichi Handa <handa@m17n.org>
8267
8268 * font.c (Vfont_log_deferred): New variable.
8269 (font_add_log): Check Vfont_log_deferred.
8270 (font_deferred_log): New function.
8271
8272 * font.h (font_deferred_log): Extern it.
8273
8274 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8275 for sorting.
8276 (face_for_char): Use deferred log.
8277
82782008-08-18 Kenichi Handa <handa@m17n.org>
8279
8280 * fontset.c (face_for_char): Add font log.
8281
8282 * font.c (font_add_log): Add the font properties :script, :lang,
8283 and :otf in the log.
8284
82852008-08-17 Chong Yidong <cyd@stupidchicken.com>
8286
8287 * xdisp.c: Remove dead code.
8288 (handle_invisible_prop, next_overlay_string): Defer call to
8289 setup_for_ellipsis.
8290 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8291
82922008-08-15 Chong Yidong <cyd@stupidchicken.com>
8293
8294 * xfaces.c (lookup_derived_face): Properly handle possible zero
8295 return value of get_lface_attributes.
8296 (merge_faces): Don't tell lookup_derived_face to signal an error
8297 if face is not found.
8298
8299 * dired.c (Fdirectory_files): Doc fix.
8300
8301 * process.c (make_process): Initialize kill_without_query struct
8302 member.
8303
83042008-08-15 Eli Zaretskii <eliz@gnu.org>
8305
8306 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8307 Alternative calculation of totphys for Visual Studio 6.
8308
8309 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8310
8311 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8312 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8313 All users changed.
8314 (stat): Only root directory passed to GetDriveType. Allow RAM
8315 disk as well as local fixed disk when w32-get-true-file-attributes
8316 is set to `local'.
8317 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8318 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8319 (w32_cached_id, w32_add_to_cache): New functions.
8320 (get_name_and_id): Look account names in the cache before calling
8321 lookup_account_sid.
8322 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8323 New initialization flags.
8324 (globals_of_w32): Initialize them to zero.
8325 (w32_system_process_attributes): Use w32_cached_id and
8326 w32_add_to_cache.
8327
83282008-08-14 Lawrence Mitchell <wence@gmx.li>
8329
8330 * lread.c (Fread_char, Fread_char_exclusive): If no character
8331 event is read before timeout is reached, return nil, rather than
8332 converting to a number.
8333
83342008-08-14 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * fns.c (use_dialog_box): Doc fix.
8337
8338 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8339 on OS X.
8340
83412008-08-13 Chong Yidong <cyd@stupidchicken.com>
8342
8343 * frame.c (Qns_parse_geometry): New var.
8344 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8345
83462008-08-11 Chong Yidong <cyd@stupidchicken.com>
8347
8348 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8349 space character in calculating tabs.
8350
83512008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8352
8353 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8354
83552008-08-10 Glenn Morris <rgm@gnu.org>
8356
8357 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8358 silence gcc "limited range of data type" warnings in some
8359 make_fixnum_or_float calls.
8360
83612008-08-09 Eli Zaretskii <eliz@gnu.org>
8362
8363 * w32.c (w32_system_process_attributes): If the process does not
8364 exist, return nil.
8365
8366 * w32.c: Include thelp32.h, psapi.h and coding.h.
8367 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8368 declarations.
8369 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8370 (Process32Next_Proc): New typedefs.
8371 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8372 (g_b_init_process32_next, g_b_init_open_thread_token)
8373 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8374 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8375 (g_b_init_get_process_working_set_size)
8376 (g_b_init_global_memory_status_ex): New static variables.
8377 (globals_of_w32): Initialize them.
8378 (create_toolhelp32_snapshot, process32_first, process32_next)
8379 (open_thread_token, impersonate_self, revert_to_self)
8380 (get_process_memory_info, get_process_working_set_size)
8381 (global_memory_status, global_memory_status_ex): New wrapper
8382 functions.
8383 (w32_list_system_processes, w32_system_process_attributes)
8384 (enable_privilege, restore_privilege, ltime, process_times):
8385 New functions.
8386 (convert_time_raw): New function.
8387 (convert_time): Remove conversion of FILETIME into time in 100
8388 nsec units, call convert_time_raw instead.
8389
8390 * process.h (w32_list_system_processes, w32_system_process_attributes):
8391 Add prototypes.
8392 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8393 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8394 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8395 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8396
8397 * process.c (Fsystem_process_attributes): Doc fix.
8398
83992008-08-08 Chong Yidong <cyd@stupidchicken.com>
8400
8401 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8402 a continued multi-char glyph; if so, advance to the actual glyph.
8403
84042008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8405
8406 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8407
8408 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8409 (.m.o): Use it.
8410 * config.in: Regenerate.
8411
84122008-08-07 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * xdisp.c (redisplay_window): Revert last change.
8415 (try_window): Check bottom scroll margin too.
8416
84172008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8418
8419 * config.in: Regenerate.
8420
8421 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8422 -list-load-path-shadows'.
8423 (nsgui.h): Reduce number of things depending on it.
8424
84252008-08-06 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8428 instead of window-end which does the wrong thing at eob.
8429 (try_cursor_movement): Minor optimization.
8430 (redisplay_window): If scroll margin is defined, don't assume
8431 window doesn't need scrolling.
8432
84332008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8434
8435 * config.in: Regenerate.
8436
8437 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8438 (mostlyclean): Don't delete *.d under NS.
8439
8440 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8441
84422008-08-06 Kenichi Handa <handa@m17n.org>
8443
8444 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8445
84462008-08-06 Andreas Schwab <schwab@suse.de>
8447
8448 * config.in: Regenerate.
8449
84502008-08-05 Chong Yidong <cyd@stupidchicken.com>
8451
8452 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8453 forcing a window start.
8454
8455 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8456 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8457
84582008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8459
8460 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8461 argument.
8462
84632008-08-05 Juanma Barranquero <lekktu@gmail.com>
8464
8465 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8466 <scroll-down-aggressively, before-change-functions>:
8467 <after-change-functions>: Reflow docstrings.
8468
84692008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8470 Ken Raeburn <raeburn@gnu.org>
8471
8472 Dock menu customization, based on a patch by Ken Raeburn, plus some
8473 other fixes.
8474 * nsmenu.m (dockMenu): New variable.
8475 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8476
8477 * nsterm.h (dockMenu): Declare.
8478
8479 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8480 (ns_term_init): Initialize dockMenu.
8481 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8482 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8483 left.
8484
8485 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8486
84872008-08-04 Chong Yidong <cyd@stupidchicken.com>
8488
8489 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8490
8491 * config.in: Regenerate.
8492
84932008-08-04 Seiji Zenitani <zenitani@mac.com>
8494
8495 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8496
84972008-08-04 Chong Yidong <cyd@stupidchicken.com>
8498
8499 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8500
85012008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8502
8503 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8504
8505 * keyboard.h: Comment an #endif.
8506
8507 * lisp.h (have_menus_p): Adjust comment.
8508
8509 * menu.c (find_and_return_menu_selection): Fix comparison with
8510 client_data.
8511
8512 * nsmenu.m (popup_activated_flag): New variable.
8513 (popup_activated): New function.
8514 (menu-or-popup-active-p): New exported lisp definition.
8515 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8516 when popup done.
8517 (ns_popup_dialog): Set popup_activated_flag.
8518
8519 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8520 version for GNUstep (handled by conditional typedef in nsterm.m).
8521 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8522 in rgb.txt).
8523
8524 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8525
8526 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8527
8528 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8529
8530 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8531 shortcircuit if popup_activated like GTK and X toolkit.
8532
8533 * m/inter386.h: Change DARWIN to DARWIN_OS.
8534
8535 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8536 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8537 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8538 comment on NO_SOCK_SIGIO.
8539
85402008-08-03 Chong Yidong <cyd@stupidchicken.com>
8541
8542 * nsterm.m (windowDidResize): Remove stopModal call.
8543
85442008-08-03 Andreas Schwab <schwab@suse.de>
8545
8546 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8547 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8548
85492008-08-02 Chong Yidong <cyd@stupidchicken.com>
8550
8551 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8552 Don't use uninitialized pointer variable when using getrlimit.
8553
85542008-08-02 Jason Rumney <jasonr@gnu.org>
8555
8556 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8557
85582008-08-02 Eli Zaretskii <eliz@gnu.org>
8559
8560 * alloc.c (NSTATICS): Bump to 0x640.
8561
8562 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8563
8564 * lisp.h: Add prototype for directory_files_internal.
8565
8566 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8567 New functions.
8568 (syms_of_process): Defsubr them. Add initializations for various
8569 Q* symbols used in procfs_system_process_attributes.
8570 (procfs_list_system_processes, procfs_system_process_attributes)
8571 [HAVE_PROCFS]: New functions.
8572 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8573 (procfs_get_total_memory): New functions.
8574
85752008-08-01 Juanma Barranquero <lekktu@gmail.com>
8576
8577 * xfaces.c (Fx_load_color_file): Fix previous change;
8578 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8579
85802008-08-01 Michael Albinus <michael.albinus@gmx.de>
8581
8582 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8583
85842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8585
8586 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8587
85882008-08-01 Chong Yidong <cyd@stupidchicken.com>
8589
8590 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8591
8592 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8593 define NSApplicationDelegateReplySuccess.
8594 (EmacsView -converstationIdentifier): Use long instead of
8595 NSInteger for GNUstep, since it doesn't have NSInteger.
8596
8597 * xmenu.c: Revert last change.
8598
8599 * keyboard.h: Fix last change.
8600
86012008-08-01 Juanma Barranquero <lekktu@gmail.com>
8602
8603 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8604 on Windows.
8605
86062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8607
8608 Warning clearing and clean-up in NS port.
8609 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8610 Add prototypes.
8611 * nsgui.h (FACE_DEFAULT): Remove, unused.
8612 (XGCValues): Change colors to unsigned long.
8613 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8614 nsterm.m.
8615 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8616 (ns_list_fonts): Remove, unused.
8617 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8618 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8619 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8620 (nsfont_draw): Compare face colors to 0, not nil.
8621 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8622 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8623 (-addSubmenuWithTitle:): Use NSMenuItem class.
8624 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8625 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8626 (ns_clip_to_row): Make gc arg a BOOL.
8627 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8628 ns_clip_to_row() call.
8629 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8630 used). Cast FRAME_FONT assignments.
8631 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8632 (ns_string_to_lispmod): Change arg to const char.
8633 (ns_term_init): Use NSMenuItem class.
8634 (EmacsApp -openFile:): Move to different section of file.
8635 (EmacsApp -application:openFiles:): Don't return a value, call
8636 -replyToOpenOrPrint:.
8637 (EmacsView -keyDown:): Fix up cast.
8638 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8639 (EmacsView -menuDown:): Cast tag in call to
8640 find_and_call_menu_selection().
8641 (ns_list_fonts): Remove, unused.
8642 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8643 (ns_fontname_to_xlfd): Make static.
8644 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8645 Remove prototypes (now in keyboard.h).
8646 (next_menubar_widget_id): Remove, unused.
8647 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8648 Remove prototypes (now in keyboard.h).
8649 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8650
86512008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8652
8653 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8654 (floatfns.o): Depend on syssignal.h.
8655 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8656
8657 * systty.h: Fix previous change that removed BSD_TERMIOS.
8658 Add comments to #ifdefs.
8659
86602008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8661
8662 * w32fns.c (w32-load-color-file): Remove.
8663 (x-open-connection): Use renamed Fx_load_color_file.
8664 * xfaces.c (x-load-color-file): Add.
8665 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8666 Emacs.clr.
8667 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8668
86692008-07-31 Michael Albinus <michael.albinus@gmx.de>
8670
8671 * dbusbind.c (Fdbus_call_method_asynchronously)
8672 (Fdbus_method_error_internal): New defuns.
8673 (xd_read_message): Handle also reply messages.
8674 (Vdbus_registered_functions_table): Extend docstring.
8675
86762008-07-31 Juanma Barranquero <lekktu@gmail.com>
8677
8678 * keyboard.c (gobble_input): Fix previous change.
8679
86802008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8681
8682 * bitmaps/README:
8683 * xfns.c:
8684 * termcap.c:
8685 * term.c:
8686 * syswait.h:
8687 * systty.h:
8688 * systime.h:
8689 * syssignal.h:
8690 * sysdep.c:
8691 * process.h:
8692 * process.c:
8693 * print.c:
8694 * ndir.h:
8695 * lread.c:
8696 * keyboard.c:
8697 * getpagesize.h:
8698 * floatfns.c:
8699 * fileio.c:
8700 * emacs.c:
8701 * doc.c:
8702 * dispnew.c:
8703 * dired.c:
8704 * data.c:
8705 * callproc.c:
8706 * buffer.c:
8707 * README:
8708 * Makefile.in:
8709 * s/template.h:
8710 * s/msdos.h:
8711 * m/vax.h: Remove VMS support.
8712 * s/vms.h:
8713 * vlimit.h:
8714 * uaf.h:
8715 * temacs.opt:
8716 * param.h:
8717 * ioctl.h: Remove file.
8718
87192008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8720
8721 * s/ms-w32.h (MULTI_KBOARD): Remove.
8722 * xterm.c:
8723 * xselect.c:
8724 * xfns.c:
8725 * window.c:
8726 * w32term.c:
8727 * w32fns.c:
8728 * terminal.c:
8729 * termhooks.h:
8730 * term.c:
8731 * sysdep.c:
8732 * keyboard.h:
8733 * keyboard.c:
8734 * frame.h:
8735 * frame.c:
8736 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8737 * config.in: Regenerate.
8738
87392008-07-30 Jason Rumney <jasonr@gnu.org>
8740
8741 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8742
8743 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8744 (w32font_open_internal): Get unicode version of textmetrics.
8745 Don't enable or disable glyph indices here.
8746 (w32font_open): Disable use of glyph indices.
8747
8748 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8749
87502008-07-30 Chong Yidong <cyd@stupidchicken.com>
8751
8752 * minibuf.c (Vread_buffer_function): Doc fix.
8753
87542008-07-30 John Paul Wallington <jpw@pobox.com>
8755
8756 * minibuf.c (read_buffer_completion_ignore_case): New var.
8757 (Fread_buffer): Use it.
8758
87592008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8760
8761 * systty.h (sensemode): Remove empty #if. Remove reference to
8762 BSD_TERMIOS, unused.
8763
8764 * sysdep.c: Remove reference to DGUX.
8765 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8766
8767 * config.in: Regenerate.
8768
87692008-07-30 Jason Rumney <jasonr@gnu.org>
8770
8771 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8772
87732008-07-29 Jason Rumney <jasonr@gnu.org>
8774
8775 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8776 is populated.
8777 (uniscribe_encode_char): Always use uniscribe.
8778 Avoid using context if cache is populated.
8779
87802008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8781
8782 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8783 open menu.
8784
8785 * gtkutil.c (menu_nav_ended): Remove.
8786 (create_menus): Remove signal connect for menu_nav_ended.
8787
87882008-07-28 Chong Yidong <cyd@stupidchicken.com>
8789
8790 * xdisp.c (redisplay_window): Check return value of
8791 compute_window_start_on_continuation_line before forcing a window
8792 start.
8793
87942008-07-28 Jason Rumney <jasonr@gnu.org>
8795
8796 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8797
8798 * w32term.c (w32_enable_unicode_output, cleartype_active):
8799 Remove obsolete display options.
8800 (x_draw_glyph_string_background): Don't use old cleartype_active
8801 workaround.
8802 (w32_initialize): Remove cleartype_active initialization.
8803 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8804
88052008-07-28 Andreas Schwab <schwab@suse.de>
8806
8807 * lisp.h (init_weak_hash_tables, syms_of_font)
8808 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8809 (remove_hash_entry): Don't declare.
8810 * eval.c (maybe_call_debugger): Make static and move before use.
8811 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8812 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8813 * xterm.h (x_set_frame_alpha): Declare.
8814
88152008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8816
8817 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8818 (create_menus): Connect selection-done to menu_nav_ended.
8819
88202008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8821
8822 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8823 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8824 parameter with read of 'alpha' one.
8825 (Qns_frame_parameter): Remove.
5582fbc7 8826 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8827 (next-selection-coding-system, Vselection_coding_system)
8828 (Vnext_selection_coding_system): Drop.
8829
88302008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8831
8832 * nsfns.m (do-applescript, do_applescript): Rename to
8833 ns-do-applescript, ns_do_applescript, and move within file.
8834
88352008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8836
8837 Remove support for Mac Carbon.
8838 * mactoolbox.c:
8839 * macterm.h:
8840 * macterm.c:
8841 * macselect.c:
8842 * macmenu.c:
8843 * macgui.h:
8844 * macfns.c:
8845 * mac.c: Remove file.
8846 * s/darwin.h:
8847 * m/intel386.h:
8848 * xfaces.c:
8849 * xdisp.c:
8850 * window.c:
8851 * tparam.c:
8852 * termhooks.h:
8853 * termcap.c:
8854 * term.c:
8855 * syssignal.h:
8856 * sysselect.h:
8857 * sysdep.c:
8858 * process.c:
8859 * lread.c:
8860 * lisp.h:
8861 * keyboard.c:
8862 * image.c:
8863 * fringe.c:
8864 * frame.h:
8865 * frame.c:
8866 * fontset.c:
8867 * font.h:
8868 * font.c:
8869 * fns.c:
8870 * fileio.c:
8871 * emacs.c:
8872 * dispnew.c:
8873 * dispextern.h:
8874 * config.in:
8875 * atimer.c:
2ae37cf0 8876 * Makefile.in: Remove code for Carbon.
aac0c6e3 8877
f0131492 88782008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8879
8880 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8881
88822008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8883
8884 * macterm.h (kCGBitmapByteOrder32Host): New define for
8885 non-universal SDKs.
8886
8887 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8888 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8889
8890 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8891 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8892
88932008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8894
8895 * w32inevt.c: Include dispextern.h.
8896
88972008-07-26 Andreas Schwab <schwab@suse.de>
8898
8899 * print.c (print_object): Fix off-by-one in last change.
8900
89012008-07-25 Juanma Barranquero <lekktu@gmail.com>
8902
8903 * term.c (syms_of_term): Don't initialize default_orig_pair,
8904 default_set_foreground and default_set_background on Windows.
8905
89062008-07-25 Jason Rumney <jasonr@gnu.org>
8907
8908 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8909 ScriptItemize. Clean up return value checking. Remove unused
8910 variables.
8911 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8912 shaping engine.
8913
8914 * w32font.c (w32font_has_char): Handle the case where we can't
8915 determine the script for a character.
8916
89172008-07-25 Chong Yidong <cyd@stupidchicken.com>
8918
8919 * term.c (syms_of_term): Initialize default_orig_pair,
8920 default_set_foreground, and default_set_background.
8921
8922 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8923 clash (bug#86).
8924 (getloadavg): Callers changed.
8925
8926 * image.c (svg_load_image): Fix last change.
8927 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8928 image size is valid. Use g_object_unref instead of deprecated
8929 rsvg_handle_free to free rsvg handle.
8930 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8931
89322008-07-25 Jason Rumney <jasonr@gnu.org>
8933
8934 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8935 surrogates before looking up glyph index.
8936 (w32font_text_extents): Encode as surrogates if falling back to
8937 functions that need UTF-16 wide chars.
8938
8939 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8940 BMP as surrogates before looking up glyph index.
8941
89422008-07-25 Chong Yidong <cyd@stupidchicken.com>
8943
8944 * image.c (svg_load_image): Check for failure in return value of
8945 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8946
89472008-07-25 Jason Rumney <jasonr@gnu.org>
8948
8949 * w32font.c (Fx_select_font): Reverse sense of second arg.
8950
89512008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8952
8953 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8954 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8955
8956 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8957 (PURESIZE): Use it.
8958
89592008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8960
8961 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8962 * m/alpha.h (TEXT_END):
8963 * m/ibmrs6000.h (TEXT_END):
8964 * m/macppc.h (TEXT_END):
8965 * s/darwin.h (TEXT_END):
8966 * s/msdos.h (TEXT_END): Remove, unused.
8967 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8968 * s/cygwin.h: Remove comment.
8969
8970 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8971 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8972 * m/intel386.h (DOT_GLOBAL_START):
8973 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8974 (USG): Remove, file not used on USG platforms.
8975
8976 * Makefile.in (HAVE_X11): Remove empty #else.
8977
89782008-07-24 Andreas Schwab <schwab@suse.de>
8979
8980 * fileio.c (Finsert_file_contents): Properly adjust undo list
8981 after format conversion.
8982
89832008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8984
8985 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8986 (menu_nav_ended): Remove.
8987 (create_menus): Remove signal connect for menu_nav_ended.
8988 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8989 create_menus.
8990 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8991
89922008-07-23 Jason Rumney <jasonr@gnu.org>
8993
8994 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8995 with opened font.
8996 (w32font_open): Set font type to gdi.
8997
8998 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8999
90002008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9001
9002 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9003 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9004 defines it.
9005 * unexec.c (ADDR_CORRECT): Define unconditionally.
9006
9007 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9008
9009 * unexec.c: Remove code depending on !COFF and USG, the file is
9010 not used for such systems.
9011
9012 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9013 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9014 (LD_SWITCH_SYSTEM_1): Remove, update users.
9015
9016 * s/darwin.h (DATA_END):
9017 * m/intel386.h (DATA_END):
9018 * m/ibmrs6000.h (DATA_END):
9019 * m/alpha.h (DATA_END): Remove, unused.
9020
9021 * config.in: Regenerate.
9022 * s/ms-w32.h (subprocesses): Define unconditionally.
9023 * s/template.h (subprocesses): Update comment.
9024 * s/vms.h (subprocesses):
9025 * s/usg5-4.h (subprocesses):
9026 * s/hpux10-20.h (subprocesses):
9027 * s/gnu-linux.h (subprocesses):
9028 * s/cygwin.h (subprocesses):
9029 * s/bsd-common.h (subprocesses):
9030 * s/aix4-2.h (subprocesses):
9031 * s/darwin.h (subprocesses): Do not define, defined by default now.
9032
9033 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9034 Remove all references.
9035 (temacs): Add GNUstep specific ld flags.
9036
9037 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9038 similarly to what X does.
9039
90402008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9041
9042 * nsfns.m (x-list-fonts): Remove.
9043 (syms_of_nsfns): Drop the x-list-fonts declaration.
9044 * nsterm.m: Get rid of remaining "//" comments.
9045
90462008-07-22 Chong Yidong <cyd@stupidchicken.com>
9047
9048 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9049
9050 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9051 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9052 (Fns_own_selection_internal, Fx_disown_selection_internal)
9053 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9054
9055 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9056 ... */' style of docstrings. Doc fixes.
9057
90582008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9059
9060 * terminfo.c (UP, BC, PC): Undo previous change.
9061
9062 * nsfns.m: Rename ns prefixed functions/variables to the
9063 corresponding x versions. Update references.
9064
90652008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9066
9067 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9068
90692008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9070
9071 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9072 Remove forwarding functions.
9073 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9074 non-static.
9075 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9076 non-static.
9077 (ns_frame_parm_handlers): Use the new names.
9078 (syms_of_nsfns): Move to the end of file.
9079
9080 * nsterm.m (syms_of_nsterm): Move to the end of file.
9081
9082 * dispnew.c (init_display): Remove code for X10.
9083
90842008-07-22 Jason Rumney <jasonr@gnu.org>
9085
9086 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9087 bare drive.
9088
90892008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9090
9091 * nsterm.m (syms_of_nsterm): Remove debugging println.
9092
90932008-07-22 David Reitter <david.reitter@gmail.com>
9094
9095 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9096 Carbon implementation of the same functionality: execute arbitrary
9097 AppleScript code.
9098
90992008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9100
9101 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9102 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9103 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9104 (Fx_display_mm_height, Fx_display_mm_width)
9105 (Fx_display_backing_store, Fx_display_visual_class)
9106 (Fx_display_save_under, Fx_open_connection)
9107 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9108 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9109 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9110 (Fx_display_pixel_width, Fx_display_pixel_height)
9111 (Fx_display_usable_bounds, Fx_display_planes)
9112 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9113 ... */' style of docstrings.
9114
91152008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9116
9117 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9118 on this platform.
9119 (mips):
9120 * m/iris4d.h (mips): Do not define.
9121 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9122
9123 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9124
9125 * image.c:
9126 * nsfns.m:
9127 * nsselect.m:
9128 * nsterm.h:
9129 * nsterm.m: Rename ns prefixed functions/variables to the
9130 corresponding x versions. Update references.
9131
9132 * m/ibms390x.h (NO_REMAP): Do not undefine.
9133
9134 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9135
91362008-07-21 Chong Yidong <cyd@stupidchicken.com>
9137
9138 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9139 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9140 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9141 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9142 (Fns_display_mm_height, Fns_display_mm_width)
9143 (Fns_display_backing_store, Fns_display_visual_class)
9144 (Fns_display_save_under, Fns_open_connection)
9145 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9146 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9147 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9148 (Fns_display_pixel_width, Fns_display_pixel_height)
9149 (Fns_display_usable_bounds, Fx_display_planes)
9150 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9151
91522008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9153
9154 * print.c (print_object): Check print_depth before searching for
9155 circularities.
9156
91572008-07-21 Michael Albinus <michael.albinus@gmx.de>
9158
9159 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9160 only sprintf.
9161
91622008-07-21 Kenichi Handa <handa@m17n.org>
9163
9164 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9165
91662008-07-20 Andreas Schwab <schwab@suse.de>
9167
9168 * syntax.c (find_start_pos, find_start_value)
9169 (find_start_value_byte, find_start_begv, find_defun_start)
9170 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9171
91722008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9173
9174 * s/sol2-3.h: Insert contents of s/sol2.h.
9175 (LD_SWITCH_SYSTEM): Remove redundant definition.
9176 * s/sol2.h: Remove, unused.
9177
91782008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9179
9180 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9181
91822008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9183
9184 * Makefile.in (ns_appdir): Fix typo in find command.
9185
91862008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9187
9188 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9189
9190 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9191 added not supported anymore.
9192
9193 * s/usg5-4-2.h (LIBS_SYSTEM):
9194 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9195
9196 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9197 * s/lynxos.h (GETPGRP_NO_ARG):
9198 * s/hpux10-20.h (NO_SIOCTL_H):
9199 * s/gnu.h (GETPGRP_NO_ARG):
9200 * s/gnu-linux.h (NO_SIOCTL_H):
9201 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9202 * s/cygwin.h (GETPGRP_NO_ARG):
9203 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9204 (C_DEBUG_SWITCH): Remove duplicate definition.
9205
9206 * m/ibms390.h: Remove boilerplate comments.
9207
9208 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9209
9210 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9211 (wait_reading_process_output): Remove code for SunOS, platform not
9212 supported anymore. Use SOLARIS2 instead of sun.
9213
92142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9215
9216 * font.c (font_open_by_name): Under NS, default lface height to zero.
9217 (font_open_for_lface): Under NS, set size based on frame fontsize.
9218 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9219 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9220
92212008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9222
9223 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9224 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9225 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9226 YES/NO.
9227 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9228 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9229 * Makefile.in (clean): Clear out build destination dir.
9230
92312008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9232
9233 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9234 xterm, xselect.
9235 * lisp.h: Remove declaration of hash_remove.
9236 * nsgui.h: Remove redefinitions of hash_remove.
9237 * fns.c (hash_remove): Rename to hash_remove_from_table.
9238
92392008-07-19 Seiji Zenitani <zenitani@mac.com>
9240
9241 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9242 strdup() the family UTF8String before modifying it.
9243
92442008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9245
9246 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9247 NS_FACE_BACKGROUND with 0 instead of nil.
9248 * nsfont.m (nsfont_draw): Same.
9249
92502008-07-19 Chong Yidong <cyd@stupidchicken.com>
9251
9252 * nsfns.m (ns_set_background_color): Fix crash.
9253
92542008-07-18 Chong Yidong <cyd@stupidchicken.com>
9255
9256 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9257
92582008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9259
9260 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9261
92622008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9263
9264 * gtkutil.c: Include <config.h> instead of "config.h".
9265
9266 * lisp.h (Foverlay_buffer): Add EXFUN.
9267
9268 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9269 child process to complete child_setup. Undo 2005-09-21 change.
9270
9271 * s/darwin.h: Mention setsid after vfork.
9272
92732008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9274
9275 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9276 Depend on macgui.h.
9277
9278 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9279 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9280
9281 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9282 and f19.
9283 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9284
9285 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9286 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9287 Remove enumerators.
9288
9289 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9290 Check if FACE_FROM_ID returns NULL.
9291
92922008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9293
9294 * w32inevt.c (change_frame_size): Remove extern declaration.
9295 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9296 change_frame_size.
9297
92982008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9299
9300 * getloadavg.c: Revert last change (2008-07-15).
9301
93022008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9303
9304 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9305 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9306 from configure.
9307
93082008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9309
9310 * s/sol2.h:
9311 * s/sol2-4.h: Reorganize conditionals.
9312
9313 * ecrt0.c: Remove code depending on m68000, not used anymore.
9314
9315 * fns.c (hash_remove): Make static.
9316 * lisp.h (hash_remove): Don't prototype.
9317
9318 * m/ibmrs6000.h:
9319 * m/ibms390x.h:
9320 * m/macppc.h: Remove boilerplate comments.
9321
9322 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9323 Solaris, which does not need them.
9324
9325 * m/vax.h: Remove comments about unsupported systems.
9326
9327 * s/darwin.h: Reorganize ifdefs.
9328
93292008-07-17 Andreas Schwab <schwab@suse.de>
9330
9331 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9332
93332008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9334
9335 Use SDATA. Follow coding convention of placing operators at
9336 beginning of next line rather than end of previous line, and placing
9337 spaces around infix operators.
9338
9339 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9340 in case it was defined already.
9341 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9342 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9343 ns_default.
9344 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9345 Lisp_Objects.
9346 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9347 (ns_defined_color, ns_color_to_lisp): Declare.
9348 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9349 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9350 it's accepted even with USE_LISP_UNION_TYPE.
9351 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9352 (update_frame_tool_bar): Remove apparently obsolete tests for
9353 non-integerness of f->tool_bar_lines.
9354 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9355 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9356 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9357 (nsfont_open): Don't confuse NULL for Qnil.
9358 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9359 * menu.h (find_and_call_menu_selection):
9360 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9361 (find_and_return_menu_selection): Always return something.
9362 * frame.h: Include dispextern.h for Display_Info.
9363 (display_x_get_resource): Declare.
9364
93652008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9366
9367 * syntax.c: Remove stdio.h include accidentally introduced in
9368 Emacs.app commit.
9369 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9370 NS_IMPL_COCOA.
9371 * keyboard.c (handle_async_input, input_available_signal): Remove
9372 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9373
93742008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9375
9376 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9377 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9378 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9379 Use SDATA.
9380
9381 * keymap.c: Remove all NS-specific code.
9382 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9383 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9384 where_is_preferred_modifier, return a different value depending on how
9385 preferred is the binding.
9386 (where_is_internal): Adjust accordingly.
9387 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9388 Adjust to new preferred_sequence_p.
9389 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9390 * keyboard.c (parse_solitary_modifier): Not static any more.
9391 * keyboard.h (parse_solitary_modifier): Declare.
9392
93932008-07-16 Andreas Schwab <schwab@suse.de>
9394
9395 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9396 of easymenu.
9397
93982008-07-16 Chong Yidong <cyd@stupidchicken.com>
9399
9400 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9401 that we don't move off the line.
9402
94032008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9405 * keyboard.c (Qsuper): Remove.
9406 (parse_menu_item): Don't call where_is_internal specially for NS.
9407
94082008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9409
9410 * s/gnu-linux.h: Remove boilerplate comments.
9411
9412 * m/alpha.h (__ELF__): Consolidate conditions.
9413
9414 * m/m68k.h (linux): Use GNU_LINUX instead.
9415 Remove boilerplate comments.
9416
9417 * m/intel386.h: Undo refactoring from previous change.
9418 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9419 too, remove dead code.
9420 (linux): Use GNU_LINUX instead.
9421
94222008-07-16 Jason Rumney <jasonr@gnu.org>
9423
9424 * w32gui.h: Repeat 26 June changes lost by last change.
9425
94262008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9427
9428 * systty.h: Remove code for Aix on 386, unsupported platform.
9429
9430 * s/ms-w32.h: Remove boilerplate comments.
9431 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9432
9433 * s/gnu-linux.h (TERM): Remove support.
9434 (HAVE_SYSVIPC): Remove, unused.
9435 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9436 for this system.
9437
9438 * process.c: Remove support for IRIS, unused.
9439 Remove support for TERM, not relevant anymore.
9440
9441 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9442 used with the definition.
9443
9444 * s/aix4-2.h (static): Do not undef.
9445
9446 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9447 only used on Aix.
9448 (HAVE_SYSVIPC): Remove, unused.
9449
9450 * m/hp800.h (CANNOT_DUMP): Do not undef.
9451
9452 * m/alpha.h: Fix comment.
9453
9454 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9455 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9456 used by this configuration.
9457 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9458 * unexec.c: Remove code depending on HPUX and
9459 USG_SHARED_LIBRARIES, not used with this file. Remove code
9460 depending on IRIS, unused. Remove if 0-ed code.
9461
9462 * s/template.h: Remove comments about static.
9463
9464 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9465 Remove if 0-ed code.
9466 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9467 were the same as the default.
9468 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9469 Remove boilerplate comments.
9470 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9471 (HAVE_SYSVIPC): Remove, unused.
9472 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9473
9474 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9475 Remove boilerplate comments.
9476 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9477 Remove boilerplate comments.
9478 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9479 Remove boilerplate comments.
9480 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9481
9482 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9483 USG systems which do not use DATA_SEG_BITS.
9484 Refactor code. Remove boilerplate comments.
9485
9486 * m/ibms390.h:
9487 * m/m68k.h:
9488 * s/bsd-common.h:
9489 * s/cygwin.h:
9490 * s/darwin.h:
9491 * s/freebsd.h:
9492 * s/gnu.h:
9493 * s/msdos.h: Remove boilerplate comments.
9494
9495 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9496 do not use this file.
aac0c6e3
MR
9497 (IRIS_4D): Remove, unused.
9498
9499 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9500 do not use this file.
aac0c6e3
MR
9501 (SIGN_EXTEND_CHAR):
9502 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9503 * unexmips.c: Remove file, unused.
9504
9505 * editfns.c (Fuser_full_name): Replace the only use of
9506 USER_FULL_NAME with its value.
9507 * config.in: Regenerate.
9508
95092008-07-16 David Reitter <david.reitter@gmail.com>
9510
9511 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9512 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9513
95142008-07-16 Glenn Morris <rgm@gnu.org>
9515
9516 * emacs.c (system-type): Doc fix.
9517
95182008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9519
9520 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9521 If the cache doesn't work, let's fix it, rather than work around it.
9522
95232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9524
9525 * Makefile.in: Correct additions for nsfont.o in last commit.
9526 * nsfont.m: New file (forgot last commit).
9527
95282008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9529
9530 * callproc.c (set_initial_environment): Initialize
9531 Vprocess_environment under CANNOT_DUMP (fixes crash when
9532 batch-compiling for bootstrap).
9533
95342008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9535 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9536
9537 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9538 fix crash due to different init order.
9539
95402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9541
9542 Changes and additions for NeXTstep windowing system (Cocoa and
9543 GNUstep) support.
9544
9545 * Makefile.in:
9546 * config.in: Support defines and build commands for NS port.
9547 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9548 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9549 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9550 windowing.
9551 (struct face): Add synth_ital field.
9552 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9553 (init_display): Initialize Vinitial_window_system to "ns" when so
9554 compiled.
9555 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9556 (display_arg): Use under NS.
9557 (main): Under NS, allocate autorelease pool and handle command line
9558 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9559 (standard_args): Add NS-specific args.
9560 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9561 * font.c (DEFAULT_ENCODING): New variable.
9562 (font_find_for_lface): Use it.
9563 (syms_of_font): Load syms_of_nsfont under NS.
9564 * font.h: Declare nsfont_driver when compiled under NS.
9565 * fontset.c: When compiling under NS, include nsterm.h.
9566 (fontset_from_font): Autoconstruct fontset under NS.
9567 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9568 symbol, document and use it.
9569 (do_switch_frame): When for_deletion under Cocoa, add
9570 Fraise_frame(Qnil).
9571 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9572 (x_get_arg): Allow "yes" and "no" as boolean values.
9573 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9574 Qright under Cocoa.
9575 (focus-follows-mouse): Default to 0 under NS.
9576 * frame.h (enum output_method): Add output_ns.
9577 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9578 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9579 (FRAME_WINDOW_P): NS-specific definition.
9580 * fringe.c (max_used_fringe_bitmap): Make public.
9581 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9582 (getloadavg): Use NeXT code under descendant OS's.
9583 * image.c (includes and header section, x_create_bitmap_from_data)
9584 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9585 (image_background_transparent, x_clear_image_1)
9586 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9587 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9588 (x_to_xcolors, x_from_xcolors, x_disable_image)
9589 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9590 other GUIs, including XPM support using code originally written for
9591 Carbon GUI.
9592 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9593 using NS API.
9594 (image_ascent): Use font metrics macros instead of direct struct field
9595 access.
9596 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9597 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9598 Also, handle NS as GTK for menu bar purposes.
9599 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9600 toolkit where they differ.
9601 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9602 use cachelist, still needed under NS.
9603 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9604 (struct widget_value): Define it here for menu.c.
9605 * keymap.c (includes): Include modifier internals.
9606 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9607 NS.
9608 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9609 support for preferring sequences using certain modifiers, specified by
9610 the FIRSTONLY argument.
9611 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9612 under NS GNUstep implementation.
9613 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9614 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9615 * menu.c: Include nsterm.h under NS.
9616 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9617 (free_menubar_widget_tree_value, update_submenu_strings)
9618 (find_and_call_menu_selection): Treat NS as X and NT.
9619 (find_and_return_menu_selection): New function, used for popup menus.
9620 * nsgui.h:
9621 * nsterm.h:
9622 * nsfns.m:
9623 * nsimage.m:
9624 * nsmenu.m:
9625 * nsselect.m:
9626 * nsterm.m: New files.
9627 * process.c (wait_reading_process_output): Under NS, call ns_select()
9628 instead of plain select().
9629 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9630 beginning of buffer.
9631 * sysselect.h (init_process): Rename when compiling under Cocoa to
9632 avoid name conflict.
9633 * termhooks.h (display_info): Add ns_display_info to union.
9634 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9635 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9636 COCOA environment.
9637 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9638 unexec() signature. (Note, this will dump, but the resulting file
9639 crashes; unexosx is used instead; keeping around for reference and
9640 possible aid in getting dump working under GNUstep.)
9641 * w32gui.h (button_type, widget_value): Remove definitions (now in
9642 keyboard.h).
9643 * window.c: Include nsterm.h when compiling under NS.
9644 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9645 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9646 other GUI windowing systems.
9647 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9648 GTK.
9649 (x_consider_frame_title): Under NS, set icon type and frame
9650 modified-state indicator; use ns_set_name_as_filename() when using
9651 formatted title.
9652 (update_window_cursor): Make public when compiling under NS.
9653 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9654 (hourglass_atimer, Vhourglass_delay
9655 * xfaces.c (header section, init_frame_faces, clear_font_table)
9656 (defined_color, unload_color, x_face_list_fonts)
9657 (prepare_face_for_display): Add NS support parallel to other GUIs.
9658 Emulate GCs like other non-X GUIs.
9659 (split_font_name): Don't lowercase font name under NS.
9660 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9661 under NS.
9662 * s/darwin.h: Add support for compilation under NS.
9663
96642008-07-15 Jason Rumney <jasonr@gnu.org>
9665
9666 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9667 (w32_show_hourglass): Rename from show_hourglass.
9668 (w32_hide_hourglass): Rename from hide_hourglass.
9669 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9670 (Vhourglass_delay): Declare extern.
9671 (hourglass_started): Remove.
9672
9673 * xdisp.c (Vhourglass_delay): Remove static.
9674 (hourglass_started, start_hourglass, cancel_hourglass):
9675 Don't include these versions on WINDOWSNT.
9676
96772008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9678
9679 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9680 variables (formerly in xfns.c).
9681 (show_hourglass, hide_hourglass): New prototypes (same).
9682 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9683 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9684 in xfns.c).
9685 (syms_of_xdisp): Declare/initialize display-hourglass,
9686 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9687 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9688 formerly in xfns.c.
9689 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9690 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9691 (start_hourglass, cancel_hourglass): Remove.
9692 (show_hourglass, hide_hourglass): Remove prototypes and static
9693 modifiers.
9694 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9695 hourglass_atimer, hourglass_shown_p declaration/initialization.
9696 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9697 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9698 (start_hourglass, cancel_hourglass): Remove.
9699 (show_hourglass, hide_hourglass): Remove prototypes and static
9700 modifiers.
9701 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9702 hourglass_atimer, hourglass_shown_p declaration/initialization.
9703 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9704 (DEFAULT_HOURGLASS_DELAY): Remove.
9705 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9706 hourglass_shown_p declaration/initialization.
9707
97082008-07-14 Jason Rumney <jasonr@gnu.org>
9709
9710 * w32fns.c (w32_get_arg): Remove wrapper function.
9711 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9712 directly.
9713 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9714
97152008-07-14 Kenichi Handa <handa@m17n.org>
9716
9717 * xfont.c (xfont_open): Add workaround for X's bug.
9718
97192008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9720
9721 * fontset.c: Include <stdio.h> unconditionally.
9722
97232008-07-13 Michael Albinus <michael.albinus@gmx.de>
9724
9725 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9726 for filtering.
9727
97282008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9729
9730 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9731
9732 * m/macppc.h:
9733 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9734
9735 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9736 (SPECIAL_EMACS_INT):
9737 * m/ia64.h (SPECIAL_EMACS_INT):
9738 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9739 * s/gnu.h (NLIST_STRUCT):
9740 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9741 * s/gnu-linux.h (LINUX):
9742 * s/msdos.h (HAVE_FACES):
9743 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9744
9745 * systty.h:
9746 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9747 anymore.
9748
97492008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9750
9751 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9752 always defined as int.
9753
9754 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9755 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9756 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9757 * s/freebsd.h (HAVE_WAIT_HEADER):
9758 * s/bsd-common.h (HAVE_UNION_WAIT):
9759 * s/aix4-2.h (HAVE_WAIT_HEADER):
9760 * m/mips.h (HAVE_UNION_WAIT):
9761 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9762 (COFF, static): Do not define, they are undefined later in the file.
9763
9764 * process.c (update_status): Don't use a union.
9765 (status_convert):
9766 (sigchld_handler): Use int instead of WAITTYPE.
9767
97682008-07-12 Chong Yidong <cyd@stupidchicken.com>
9769
9770 * indent.c (Fvertical_motion): Restore hscroll before moving to
9771 goal column.
9772
97732008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9774
9775 * lisp.h: Remove left over code.
9776
97772008-07-11 Andreas Schwab <schwab@suse.de>
9778
9779 * lisp.h: Fix logic in last change.
9780
9781 * menu.h: New file.
9782 * menu.c: Include it.
9783 * xmenu.c: Likewise.
9784 * Makefile.in: Update dependencies.
9785
97862008-07-11 Kenichi Handa <handa@m17n.org>
9787
9788 * fontset.c (fontset_from_font): Cancel the previous change.
9789
97902008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9791
9792 * lisp.h:
9793 * w32heap.c:
9794 * emacs.c:
9795 * alloc.c: Replace all references of NO_UNION_TYPE with
9796 USE_LISP_UNION_TYPE.
9797
9798 * m/xtensa.h (NO_UNION_TYPE):
9799 * m/vax.h (NO_UNION_TYPE):
9800 * m/template.h (NO_UNION_TYPE):
9801 * m/sparc.h (NO_UNION_TYPE):
9802 * m/mips.h (NO_UNION_TYPE):
9803 * m/macppc.h (NO_UNION_TYPE):
9804 * m/m68k.h (NO_UNION_TYPE):
9805 * m/iris4d.h (NO_UNION_TYPE):
9806 * m/intel386.h (NO_UNION_TYPE):
9807 * m/ibms390x.h (NO_UNION_TYPE):
9808 * m/ibms390.h (NO_UNION_TYPE):
9809 * m/ibmrs6000.h (NO_UNION_TYPE):
9810 * m/ia64.h (NO_UNION_TYPE):
9811 * m/hp800.h (NO_UNION_TYPE):
9812 * m/arm.h (NO_UNION_TYPE):
9813 * m/amdx86-64.h (NO_UNION_TYPE):
9814 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9815 defining it the same.
9816
98172008-07-10 Chong Yidong <cyd@stupidchicken.com>
9818
9819 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9820
98212008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9822
9823 * fileio.c:
50426a04 9824 * sysdep.c:
aac0c6e3
MR
9825 * systty.h:
9826 * m/ibmrs6000.h:
9827 * m/iris4d.h:
9828 * s/aix4-2.h:
9829 * s/freebsd.h:
9830 * s/gnu-linux.h:
9831 * s/hpux10-20.h:
9832 * s/hpux11.h:
9833 * s/netbsd.h:
9834 * s/sol2-3.h:
9835 * s/sol2-4.h:
9836 * s/sol2.h:
9837 * s/usg5-4.h:
9838 * s/vms.h: Remove references to unused variables.
9839
98402008-07-10 Andreas Schwab <schwab@suse.de>
9841
9842 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9843 pattern before matching the generic family.
9844
98452008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9846
9847 * unexec.c:
9848 * s/vms.h:
9849 * s/usg5-4-2.h:
9850 * s/sol2-5.h:
9851 * s/freebsd.h:
9852 * s/darwin.h: Remove dead code.
9853
9854 * m/template.h:
9855 * m/sparc.h:
9856 * m/mips.h:
9857 * m/m68k.h:
9858 * m/iris4d.h:
9859 * m/intel386.h:
9860 * m/ibms390x.h:
9861 * m/ibms390.h:
9862 * m/ia64.h:
9863 * m/hp800.h:
9864 * m/arm.h:
9865 * m/amdx86-64.h: Remove dead code and references to unused
9866 and compiler defined symbols.
9867
9868 * unexmips.c:
9869 * unexelf.c: Remove references to desupported systems.
9870
9871 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9872
9873 * m/powermac.h: Remove boilerplate comments.
9874 (NO_REMAP): Remove unused definition.
9875
9876 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9877 define them.
9878
98792008-07-10 Kenichi Handa <handa@m17n.org>
9880
9881 * xfont.c (xfont_open): Log the reason of failure.
9882
98832008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * fontset.c (fontset_get_font_group):
9886 * font.c (font_check_otf): Specify argument types.
9887
98882008-07-09 Kenichi Handa <handa@m17n.org>
9889
9890 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9891 non-ASCII char is found.
9892
9893 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9894 (reorder_font_vector): Change the arg preferred_family to font.
9895 Prefer the spec matching with font.
9896 (fontset_get_font_group): New function.
9897 (fontset_find_font): Change the format of an element of a realized
9898 fontset. Use fontset_get_font_group.
9899 (fontset_font): Try the current fontset, the default fontset, the
9900 fallbacks of the current fontset, and the fallbacks of the default
9901 fontset in this order.
9902 (face_for_char): Delete the shortcut to use the current font.
9903 (fontset_from_font): Don't set fonts for Latin in the fontset.
9904
9905 * font.h (font_make_object, font_match_p): Adjust prototypes.
9906
9907 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9908
9909 * font.c (font_make_object): New arg entity and pixelsize.
9910 (font_check_otf_features, font_check_otf): New functions.
9911 (font_match_p): Check :lang, :script, and :otf properties.
9912
9913 * xfont.c (xfont_open): Adjust it for the change of
9914 font_make_object.
9915 (xfont_text_extents): Fix initial setting of metrics.
9916
9917 * ftfont.c (struct ftfont_info): New member index, delete member
9918 fc_charset_idx. Make the member order compatible with struct
9919 xftfont_info.
9920 (fc_charset_table): Change charset names to registry names.
9921 (ftfont_pattern_entity): Delete the args registry and
9922 fc_charset_idx. Change the value of :font-entity property
9923 to (FONTNAME . INDEX). Always set :registry property to
9924 `iso10646-1'.
9925 (struct ftfont_cache_data): New struct.
9926 (ftfont_lookup_cache): New arg for_face.
9927 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9928 (ftfont_driver): Set the member otf_capability.
9929 (ftfont_get_charset): Adjust it for the change of
9930 fc_charset_table.
9931 (OTF_TAG_SYM): New macro.
9932 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9933 for the change of fc_charset_table.
9934 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9935 ftfont_pattern_entity. Add FC_INDEX to objset.
9936 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9937 and ftfont_pattern_entity.
9938 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9939 font_make_object, struct ftfont_info.
9940 (ftfont_has_char): Use ftfont_get_fc_charset.
9941 (ftfont_otf_features, ftfont_otf_capability): New functions.
9942 (ftfont_shape): Use ftfont_get_otf.
9943 (ftfont_text_extents): Fix initial setting of metrics.
9944
9945 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9946 member order compatible with struct ftfont_info.
9947 (xftfont_open): Add FC_CHARSET to the pattern. Set
9948 xftfont_info->ft_size. Don't unlock the face. Check BDF
9949 properties if appropriate.
9950 (xftfont_close): Unlock the face.
9951 (xftfont_anchor_point, xftfont_shape): Deleted.
9952 (syms_of_xftfont): Don't set members anchor_point and shape of
9953 xftfont_driver.
9954
9955 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9956 font_make_object.
9957
9958 * w32font.c (w32font_open): Adjust it for the change of
9959 font_make_object.
9960 (w32font_open_internal): Don't set properties of font_object here.
9961
99622008-07-08 Chong Yidong <cyd@stupidchicken.com>
9963
9964 * macfns.c (x_create_tip_frame):
9965 * w32fns.c (x_create_tip_frame):
9966 * xfns.c (x_create_tip_frame): Pass parameter argument to
9967 face-set-after-frame-default.
9968
9969 * xfaces.c (Finternal_merge_in_global_face): Save merged
9970 attributes for the default face back into the face vector.
9971
99722008-07-08 Andreas Schwab <schwab@suse.de>
9973
9974 * fontset.h: Declare fontset_from_font. Don't declare
9975 new_fontset_from_font and fontset_from_font_name.
9976 * xterm.c: Include "fontset.h".
9977 * Makefile.in (xterm.o): Update dependencies.
9978
99792008-07-08 Glenn Morris <rgm@gnu.org>
9980
9981 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9982 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9983
99842008-07-07 Chong Yidong <cyd@stupidchicken.com>
9985
9986 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9987 (x_set_frame_parameters): Don't bind it.
9988
99892008-07-07 Juanma Barranquero <lekktu@gmail.com>
9990
9991 * w32fns.c (map_w32_filename): Declare extern.
9992
99932008-07-07 Jason Rumney <jasonr@gnu.org>
9994
9995 * w32term.c (WS_EX_LAYERED): Define if not already.
9996
99972008-07-06 Chong Yidong <cyd@stupidchicken.com>
9998
9999 * xfaces.c (set_font_frame_param): Don't try to set the font
10000 parameter if it is still unspecified in the lface.
10001
100022008-07-05 Chong Yidong <cyd@stupidchicken.com>
10003
10004 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10005 face if it didn't already exist.
10006
10007 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10008
100092008-07-05 Andreas Schwab <schwab@suse.de>
10010
10011 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10012
100132008-07-05 Chong Yidong <cyd@stupidchicken.com>
10014
10015 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10016 word-wrapping.
10017 (IT_DISPLAYING_WHITESPACE): New macro.
10018 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10019 when word-wrapping. Simplify word-wrapping logic. Use correct
10020 pixel positions when saving copies of the iterator.
10021 (display_line): Use proper wrap point if the last character on a
10022 line was preceded by whitespace.
10023
100242008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10025
10026 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10027
100282008-07-04 Kenichi Handa <handa@m17n.org>
10029
10030 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10031
10032 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10033
100342008-07-02 Jason Rumney <jasonr@gnu.org>
10035
10036 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10037 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10038
10039 * xdisp.c (next_element_from_display_vector): Move assignment out
10040 of if statement.
10041
100422008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10043
10044 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10045
10046 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10047 (syms_of_fileio): Initialize and export them.
10048 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10049
10050 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10051 (Fsystem_move_file_to_trash): New function.
10052 (syms_of_w32fns): Export it to lisp.
10053
100542008-07-01 Jason Rumney <jasonr@gnu.org>
10055
10056 * w32font.c (w32font_text_extents): Don't count overhang as part
10057 of width.
10058
100592008-06-30 Miles Bader <miles@gnu.org>
10060
10061 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10062 Add `avoid_cursor_p' field.
10063
10064 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10065 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10066 (append_glyph, append_composite_glyph, produce_image_glyph)
10067 (append_stretch_glyph): Initialize avoid_cursor_p.
10068 (get_it_property): Rename from `get_line_height_property'.
10069 (x_produce_glyphs): Use get_it_property.
10070 (handle_line_prefix, push_display_prop): New functions.
10071 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10072 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10073 New variables.
10074 (syms_of_xdisp): Initialize them.
10075
100762008-06-30 Kenichi Handa <handa@m17n.org>
10077
10078 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10079 XftDefaultSubstitute (they are called in XftFontMatch).
10080 (xftfont_open): Fix args to ftfont_font_format.
10081
10082 * ftfont.c (fc_charset_table): New member lang.
10083 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10084 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10085 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10086 (ftfont_open): Fix args to ftfont_font_format.
10087 (ftfont_font_format): New arg filename.
10088
100892008-06-30 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * xfaces.c (Finternal_merge_in_global_face): If default face was
10092 modified, realize it again. Update the font face attribute.
10093
100942008-06-29 Jason Rumney <jasonr@gnu.org>
10095
10096 * w32term.c (x_set_frame_alpha): Fix logic.
10097
100982008-06-29 Kenichi Handa <handa@m17n.org>
10099
10100 * fontset.c (Finternal_char_font): Return font-object instead of
10101 font-name.
10102
10103 * composite.c (get_composition_id): Fix the width calculation for TAB.
10104
101052008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10106
10107 * indent.c (Fvertical_motion): Properly handle float column arg.
10108
101092008-06-28 Jason Rumney <jasonr@gnu.org>
10110
10111 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10112 (pfnSetLayeredWindowAttributes): New function pointer.
10113 (w32_initialize): Initialize it when supported.
10114 (x_set_frame_alpha): New function.
10115
10116 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10117 (w32_frame_parm_handlers): Set alpha handler.
10118
10119 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10120
101212008-06-27 Jason Rumney <jasonr@gnu.org>
10122
10123 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10124 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10125 (w32_to_x_charset, x_to_w32_charset)
10126 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10127 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10128 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10129 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10130 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10131 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10132 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10133 (Qw32_charset_unicode): Remove.
10134 (syms_of_w32fns): Update for above changes.
10135
10136 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10137 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10138 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10139 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10140 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10141 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10142 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10143 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10144 (syms_of_w32font): Update for above changes.
10145
101462008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10147
10148 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10149 removed #if.
10150 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10151
101522008-06-26 Juanma Barranquero <lekktu@gmail.com>
10153 Eli Zaretskii <eliz@gnu.org>
10154
10155 * makefile.w32-in (LOCAL_FLAGS):
10156 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10157
10158 * sysdep.c (_spawnlp, _getpid):
10159 Declare with explicit _cdecl instead of _CRTAPI1.
10160
10161 * editfns.c (Fget_internal_run_time):
10162 Check for WINDOWSNT with #ifdef, not #if.
10163
101642008-06-26 Jason Rumney <jasonr@gnu.org>
10165
10166 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10167
10168 * w32term.c (x_draw_glyph_string_foreground)
10169 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10170 Use FONT_HANDLE macro.
10171 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10172
10173 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10174 (uniscribe_encode_char): Use FONT_HANDLE macro.
10175
10176 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10177 (w32font_text_extents): Use precast w32_font.
10178 (w32font_close): Free cached metrics.
10179 (w32font_open_internal): Allocate space for name on stack.
10180
101812008-06-26 Chong Yidong <cyd@stupidchicken.com>
10182
10183 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10184
101852008-06-26 Jason Rumney <jasonr@gnu.org>
10186
10187 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10188 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10189
101902008-06-26 Juanma Barranquero <lekktu@gmail.com>
10191
10192 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10193
101942008-06-26 Jason Rumney <jasonr@gnu.org>
10195
10196 * w32bdf.c, w32bdf.h: Remove obsolete files.
10197
10198 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10199
10200 * w32gui.h: Don't include w32bdf.h.
10201 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10202 Remove obsolete font support.
10203
10204 * w32font.h (struct w32font_info): Remove compat_w32_font.
10205 Add hfont member.
10206 (FONT_COMPAT): Remove obsolete macro.
10207
10208 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10209 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10210 (w32font_open_internal): Remove compat code. Set new hfont member.
10211 (Fx_select_font): Use new hfont member.
10212
10213 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10214 (uniscribe_encode_char): Use new hfont member.
10215
10216 * w32term.c (x_draw_glyph_string_foreground)
10217 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10218 (x_draw_glyph_string): Use metrics in w32font_info.
10219
102202008-06-26 Kenichi Handa <handa@m17n.org>
10221
10222 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10223
102242008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10225
10226 * unexnext.c:
10227 * m/ews4800.h:
10228 * m/hp9000s300.h:
10229 * m/ibm370aix.h:
10230 * m/mips-siemens.h:
10231 * m/ncr386.h:
10232 * m/next.h:
10233 * m/pmax.h:
10234 * m/powerpcle.h:
10235 * m/tandem-s2.h:
10236 * s/386bsd.h:
10237 * s/bsd386.h:
10238 * s/bsd4-1.h:
10239 * s/bsd4-2.h:
10240 * s/bsdos2-1.h:
10241 * s/bsdos2.h:
10242 * s/bsdos3.h:
10243 * s/bsdos4.h:
10244 * s/nextstep.h:
10245 * s/ultrix4-3.h:
10246 * s/usg5-0.h:
10247 * s/usg5-2-2.h:
10248 * s/usg5-2.h:
10249 * s/usg5-4-3.h:
10250 * s/ux4800.h:
10251 * s/uxpds.h:
10252 * s/uxpv.h: Remove support for obsolete systems.
10253 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10254 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10255 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10256 Remove, insert contents in s/aix4-2.h.
10257 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10258 * s/bsd4-3.h: Rename to ...
10259 * s/bsd-common.h: ... this.
10260 * data.c:
10261 * doc.c:
10262 * ecrt0.c:
10263 * emacs.c:
10264 * fileio.c:
10265 * floatfns.c:
10266 * keyboard.c:
10267 * mem-limits.h:
10268 * print.c:
10269 * process.c:
10270 * sysdep.c:
10271 * syssignal.h:
10272 * systty.h:
10273 * syswait.h:
10274 * term.c:
10275 * unexec.c:
10276 * unexelf.c:
10277 * unexhp9k800.c:
10278 * m/hp800.h:
10279 * m/ibmrs6000.h:
10280 * m/mips.h:
10281 * m/vax.h:
10282 * s/darwin.h:
10283 * s/freebsd.h:
10284 * s/gnu.h:
10285 * s/ms-w32.h:
10286 * s/msdos.h:
10287 * s/netbsd.h:
10288 * s/template.h: Remove references to obsolete variables.
10289
10290 * Makefile.in: Add dependencies for all unexec files.
10291 (admindir): Remove unused variable.
10292 (UNEXEC_SRC): Remove references.
10293
102942008-06-25 Chong Yidong <cyd@stupidchicken.com>
10295
10296 * xfns.c (x_default_font_parameter): If Xft is available, first
10297 try Monospace-12 for the default font.
10298
102992008-06-25 Jason Rumney <jasonr@gnu.org>
10300
10301 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10302
103032008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10304
10305 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10306
10307 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10308
103092008-06-25 Juanma Barranquero <lekktu@gmail.com>
10310
10311 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10312 <scroll-conservatively>: Fix typo in docstring.
10313
10314 * xselect.c (Fx_send_client_event): Doc fix.
10315
103162008-06-25 Kenichi Handa <handa@m17n.org>
10317
10318 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10319
10320 * font.c (font_parse_fcname): Remove unused variables.
10321 (font_sort_entites): Delete the arg SPEC. Caller changed.
10322 Fix for the case of ! best_only.
10323 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10324
10325 * lisp.h (Fstring_to_unibyte): EXFUN it.
10326
10327 * character.h (str_to_unibyte): Extern it.
10328
10329 * character.c (str_to_unibyte): New function.
10330
10331 * fns.c (Fstring_to_unibyte): New function.
10332 (syms_of_fns): Defsubr it.
10333
103342008-06-24 Kenichi Handa <handa@m17n.org>
10335
10336 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10337 DPI too.
10338 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10339
103402008-06-24 Andreas Schwab <schwab@suse.de>
10341
10342 * Makefile.in (${lispsource}loaddefs.el): Rename from
10343 ../lisp/loaddefs.el.
10344 (bootstrap-clean): Do what distclean does but don't remove
10345 Makefile.
10346 (distclean): Depend on bootstrap-clean and remove Makefile.
10347
103482008-06-24 Chong Yidong <cyd@stupidchicken.com>
10349
10350 * buffer.h (struct buffer): New member word_wrap.
10351
10352 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10353 word-wrap.
10354 (init_buffer_once): Initialize them.
10355
10356 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10357 line_wrap enum possessing three possible values.
10358
10359 * termopts.h: Replace truncate_partial_width_windows with
10360 Vtruncate_partial_width_windows.
10361
10362 * dispnew.c (direct_output_for_insert): Avoid direct output when
10363 inserting a space with word wrap on.
10364
10365 * indent.c (compute_motion): Obey integer values of
10366 truncate-partial-width-windows.
10367
10368 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10369 replacing truncate_partial_width_windows.
10370 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10371 truncate only if the window width is below that integer.
10372 (start_display, resize_mini_window, produce_stretch_glyph)
10373 (display_string, move_it_in_display_line_to): Use line_wrap.
10374 (back_to_previous_visible_line_start, reseat_1): Reset
10375 string_from_display_prop_p.
10376 (display_line): Extend default face to end of line when wrapping.
10377
103782008-06-24 Kim F. Storm <storm@cua.dk>
10379
10380 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10381 to wrap continued lines at word boundaries.
10382
103832008-06-24 Jason Rumney <jasonr@gnu.org>
10384
10385 * font.c (Ffont_face_attributes): Multiply pixel size before point
10386 conversion to avoid multiplying rounding error.
10387
103882008-06-23 Jason Rumney <jasonr@gnu.org>
10389
10390 * w32term.c (x_draw_glyph_string_background)
10391 (x_draw_glyph_string): Remove old bdf font code.
10392
10393 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10394
103952008-06-22 Kenichi Handa <handa@m17n.org>
10396
10397 * font.c (font_find_for_lface): Try the adstyle specified in
10398 the property of LFACE_FONT of LFACE (if any).
10399
104002008-06-21 Seiji Zenitani <zenitani@mac.com>
10401 Ryo Yoshitake <ryo@shiftmode.net>
10402
10403 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10404
104052008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10406
10407 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10408 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10409 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10410 (witness-emacs): Remove.
10411 (lisp, shortlisp): Move loaddefs.el earlier.
10412 (mostlyclean): Forget about witness-emacs.
10413
104142008-06-22 Glenn Morris <rgm@gnu.org>
10415
10416 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10417 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10418
104192008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10420
10421 * Makefile.in (PRECOMP): Remove.
10422 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10423 (witness-emacs): Run `compile-first'.
10424 (.el.elc): Use the new compile-onefile target.
10425
104262008-06-21 Kenichi Handa <handa@m17n.org>
10427
10428 * xftfont.c (xftfont_open): Handle QCembolden only when
10429 FC_EMBOLDEN is defined.
10430
104312008-06-21 Andreas Schwab <schwab@suse.de>
10432
10433 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10434 (.el.elc): Likewise.
10435
104362008-06-21 Miles Bader <miles@gnu.org>
10437
10438 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10439 build dir, not the lisp source dir.
10440
104412008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10442
10443 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10444 (bootstrapclean): Remove.
10445 (.el.elc): New rule.
10446 (PRECOMP): New var.
10447 (../lisp/subdirs.el): Remove.
10448 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10449 (witness-emacs): New target.
10450 (mostlyclean): Remove witness-emacs as well.
10451 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10452 Add witness-emacs dependency.
10453
104542008-06-20 Chong Yidong <cyd@stupidchicken.com>
10455
10456 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10457 defined by the font.
10458
104592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10460
10461 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10462 (bootstrap-clean): New target that keeps TAGS around.
10463 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10464 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10465
104662008-06-20 Jason Rumney <jasonr@gnu.org>
10467
10468 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10469 Remove obsolete font code.
10470
10471 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10472 to determine language support.
10473
104742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10475
10476 * sysdep.c (cfsetspeed): New fun extracted from the code.
10477 (cfmakeraw): Move before first use.
10478
104792008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10480
10481 * sysdep.c (cfmakeraw): Provide fallback implementation.
10482 (serial_configure): Provide fallback implementation of cfsetspeed.
10483
104842008-06-20 Kenichi Handa <handa@m17n.org>
10485
10486 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10487 the pattern.
10488
10489 * fontset.c (fontset_from_font): Copy font_spec before changing
10490 the elements.
10491
10492 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10493
104942008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10497 for explicit `font' parameters.
10498
10499 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10500
105012008-06-19 Kenichi Handa <handa@m17n.org>
10502
10503 * frame.c: Include <ctype.h>.
10504 (x_set_font_backend): Allow spacing characters in the X resource
10505 for FontBackend.
10506
105072008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10508
10509 * w32fns.c, xfns.c (Qfont_param): New var.
10510 (syms_of_w32fns): Initialize it.
10511 (x_default_font_parameter): Record explicit `font' into
10512 `font-parameter'.
10513
105142008-06-18 Kenichi Handa <handa@m17n.org>
10515
10516 * font.c (font_parse_xlfd): Fix previous change.
10517 (font_parse_fcname): Don't use :fc-unknown-spec.
10518 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10519 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10520 (font_add_log): Prepend the driver name to the resulting fonts.
10521
10522 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10523 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10524 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10525
10526 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10527 (QCembolden): New variables.
10528 (syms_of_xftfont): DEFSYM them.
10529 (xftfont_open): Call XftFontMatch. Don't trust the result of
10530 XftTextExtents8 if the pixel_size is less than 5.
10531
105322008-06-18 Andreas Schwab <schwab@suse.de>
10533
10534 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10535 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10536
105372008-06-18 Jason Rumney <jasonr@gnu.org>
10538
10539 * w32font.c (w32font_list, w32font_match): Add logging.
10540
10541 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10542
105432008-06-17 Chong Yidong <cyd@stupidchicken.com>
10544
10545 * font.c (font_parse_fcname): Store divider characters for
10546 unknown-spec list. For known key symbols, intern using correct
10547 symbol name.
10548
105492008-06-17 Kenichi Handa <handa@m17n.org>
10550
10551 * xfaces.c (realize_default_face): If the frame is not on window
10552 system, set the fontset of face to nil.
10553
105542008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10555
10556 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10557
105582008-06-16 Juanma Barranquero <lekktu@gmail.com>
10559
10560 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10561 (build_font_name_from_vector): Delete externs.
10562
10563 * xfaces.c (struct font_name): Don't declare.
10564
105652008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10566
10567 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10568
105692008-06-16 Chong Yidong <cyd@stupidchicken.com>
10570
10571 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10572
105732008-06-16 Juanma Barranquero <lekktu@gmail.com>
10574
10575 * font.c (Ffont_spec): Fix usage in docstring.
10576 (Ffont_face_attributes): Doc fix.
10577
105782008-06-16 Andreas Schwab <schwab@suse.de>
10579
10580 * font.c (Ffont_face_attributes): Fix definition.
10581
105822008-06-16 Jason Rumney <jasonr@gnu.org>
10583
10584 * font.h (font_style_symbolic_from_value): Remove.
10585
10586 * font.c (font_style_symbolic_from_value): Remove.
10587 (font_style_symbolic): Revert to pre 2008-06-13 version.
10588
10589 * w32font.c (w32_to_fc_weight): New function.
10590 (w32font_full_name, logfont_to_fcname): Use it.
10591
105922008-06-16 Kenichi Handa <handa@m17n.org>
10593
10594 * font.c (font_check_object): Delete it.
10595 (font_clear_cache): Check if a font-object is alive.
10596 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10597 font-object to nil.
10598 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10599 (font_at): Don't call font_check_object.
10600 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10601
106022008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10603
10604 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10605
106062008-06-16 Chong Yidong <cyd@stupidchicken.com>
10607
10608 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10609
106102008-06-15 Chong Yidong <cyd@stupidchicken.com>
10611
10612 * font.c (font_parse_fcname): Only one decimal point.
10613 (font_unparse_fcname): Handle data in family and foundry indices
10614 as symbols, not strings.
10615 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10616
10617 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10618
10619 * font.h (font_unparse_gtkname): Add prototype.
10620
106212008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10622
10623 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10624
106252008-06-15 Andreas Schwab <schwab@suse.de>
10626
10627 * font.c (font_update_drivers): Fix crash when no drivers match.
10628
106292008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10630
10631 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10632 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10633
106342008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10635
10636 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10637
106382008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10639
10640 * process.c (Fserial_process_configure, Fprocess_send_eof):
10641 Use EQ to compare Lisp_Objects.
10642
106432008-06-13 Jason Rumney <jasonr@gnu.org>
10644
10645 * w32fns.c (Fw32_select_font): Remove old font API function.
10646
10647 * w32font.c (logfont_to_fcname): New function.
10648 (Fx_select_font): New font dialog function compatible with
10649 GTK/fontconfig version.
10650
10651 * font.c (font_style_symbolic_from_value): New function.
10652 (font_style_symbolic): Use it.
10653
10654 * font.h (font_style_symbolic_from_value): Declare new function.
10655
106562008-06-13 Juanma Barranquero <lekktu@gmail.com>
10657
10658 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10659 <font-width-table>: Fix typos in docstrings.
10660
106612008-06-13 Daniel Engeler <engeler@gmail.com>
10662
10663 These changes add serial port access.
10664 * process.c: Add HAVE_SERIAL.
10665 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10666 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10667 (list_processes_1, select_wrapper, Fstop_process)
10668 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10669 (status_notify): Modify to handle serial processes.
10670 [HAVE_SERIAL] (Fserial_process_configure)
10671 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10672 New functions.
10673 * process.h (struct Lisp_Process): Add `type'.
10674 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10675 New functions.
10676 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10677 serial ports.
b71ac3dd 10678 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10679 * w32.h: Add FILE_SERIAL.
10680 (struct _child_process): Add ovl_read, ovl_write.
10681
106822008-06-13 Kenichi Handa <handa@m17n.org>
10683
10684 * dispextern.h (enum lface_attribute_index): New member
10685 LFACE_FOUNDRY_INDEX.
10686
10687 * font.c (font_score): Delete arg alternate_families. Check only
10688 weight, slant, width, and size. Ignore the difference of alias
10689 style symbols.
10690 (font_sort_entites): Adjust for the above change. Reflect the
10691 order of font-driver to scores.
10692 (font_list_entities): Don't check alternate_familes here.
10693 (font_clear_prop): Handle foundry.
10694 (font_update_lface): Don't parse "foundry-family" form here.
10695 Handle FONT_FOUNDRY_INDEX.
10696 (font_find_for_lface): Likewise. Handle alternate families here.
10697 If registry is nil, try iso8859-1 and ascii-0.
10698 (font_open_for_lface): Pay attention to size in ENTITY.
10699 (font_open_by_name): Simplify by calling font_load_for_lface.
10700 (free_font_driver_list): Delete it.
10701 (font_update_drivers): Preserve the order of backends.
10702 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10703 of font_score and font_sort_entites.
10704 (font_update_sort_order): Likewise.
10705
10706 * xfaces.c (LFACE_FOUNDRY): New macro.
10707 (check_lface_attrs): Check foundry.
10708 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10709 (merge_face_vectors): Check foundry.
10710 (merge_face_ref): Likewise.
10711 (Finternal_set_lisp_face_attribute): Likewise.
10712 (x_update_menu_appearance): Likewise.
10713 (Finternal_get_lisp_face_attribute): Likewise.
10714 (lface_hash): Likewise.
10715 (lface_same_font_attributes_p): Likewise.
10716 (x_supports_face_attributes_p): Likewise.
10717 (tty_supports_face_attributes_p): Likewise.
10718 (Finternal_set_alternative_font_family_alist): Intern strings.
10719 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10720 (realize_default_face): Set LFACE_FOUNDRY (lface).
10721
10722 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10723 font-driver at first.
10724
10725 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10726
107272008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10728
10729 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10730
107312008-06-12 Jim Meyering <meyering@redhat.com>
10732
10733 Make unexec_free handle NULL the same way free does.
10734 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10735
107362008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10737
10738 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10739 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10740 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10741 (WEAK_ALIAS): Simplify.
10742 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10743 when searching a unibyte buffer.
10744
107452008-06-12 Chong Yidong <cyd@stupidchicken.com>
10746
10747 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10748
107492008-06-12 Juanma Barranquero <lekktu@gmail.com>
10750
10751 * w32font.c: Include ctype.h.
10752
107532008-06-11 Jason Rumney <jasonr@gnu.org>
10754
10755 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10756 misreported as space.
10757 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10758 as aliases for registry iso10646-1.
10759
107602008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * buffer.c (clone_per_buffer_values): Skip `name'.
10763
107642008-06-11 Chong Yidong <cyd@stupidchicken.com>
10765
10766 * font.c (font_parse_fcname): Fix last change; accept decimal
10767 points in font size.
10768
107692008-06-10 Jason Rumney <jasonr@gnu.org>
10770
10771 * w32uniscribe.c (add_opentype_font_name_to_list):
10772 Skip non unicode fonts.
10773
107742008-06-10 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * xfns.c (Fx_font_dialog): New function.
10777
10778 * gtkutil.c (xg_dialog_response_cb): Rename from
10779 xg_file_response_callback.
10780 (pop_down_dialog): Rename from pop_down_file_dialog.
10781 (xg_get_file_name): Callers changed.
10782 (xg_get_font_name): New function.
10783
10784 * gtkutil.h (xg_get_font_name): Insert prototype.
10785
107862008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10787
10788 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10789 x_underline_minimum_display_offset.
10790 (syms_of_xdisp): Declare it here rather than in xterm.c.
10791 * dispextern.h (underline_minimum_offset): Declare it.
10792 * w32term.c (x_draw_glyph_string): Use it.
10793 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10794 (syms_of_xterm): Don't declare it any more.
10795 (x_draw_glyph_string): Adjust to the new name.
10796
8719abec 107972008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10798
10799 * xterm.c (x_underline_minimum_display_offset): New var.
10800 (x_draw_glyph_string): Use it.
10801 (syms_of_xterm): Declare it.
10802
108032008-06-10 Chong Yidong <cyd@stupidchicken.com>
10804
10805 * font.c (font_parse_fcname): Accept GTK-style font names too.
10806
108072008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * dired.c (file_name_completion): Don't return t if the match is exact
10810 but with different capitalization.
10811 * minibuf.c (Ftry_completion): Simplify.
10812
10813 * window.c (Vwindow_point_insertion_type): New var.
10814 (set_window_buffer): Use it.
10815 (syms_of_window): Init and export it to Lisp.
10816
108172008-06-10 Kenichi Handa <handa@m17n.org>
10818
10819 * font.h (font_intern_prop): Prototype adjusted.
10820
10821 * font.c (font_intern_prop): New arg force_symbol.
10822 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10823 Adjust for the change of font_intern_prop.
10824
10825 * ftfont.c (ftfont_pattern_entity):
10826 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10827 (w32_registry):
10828 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10829 the change of font_intern_prop.
10830
108312008-06-09 Juanma Barranquero <lekktu@gmail.com>
10832
10833 * w32menu.c (digest_single_submenu): Declare extern.
10834
108352008-06-09 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10838
10839 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10840 (parse_single_submenu): Remove.
10841 (digest_single_submenu): Remove.
10842 (syms_of_w32menu): Don't initialise variables that have moved
10843 to menu.c.
10844 (set_frame_menubar): Sync with version in xmenu.c.
10845 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10846
10847 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10848 Make static again.
10849
108502008-06-09 Jason Rumney <jasonr@gnu.org>
10851
10852 Changes to w32 files related to the move of common menu code
10853 to menu.c on 2008-06-08 by Chong Yidong.
10854
10855 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10856 defs to w32gui.h.
10857 (single_keymap_panes, push_menu_item, push_menu_pane):
10858 Make globally visible.
10859
10860 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10861 (local_free, malloc_widget_value, free_widget_value)
10862 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10863 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10864 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10865 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10866 (menu_items, menu_items_allocated, menu_items_used)
10867 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10868 (init_menu_items, finish_menu_items, discard_menu_items)
10869 (grow_menu_items, push_submenu_start, push_submenu_end)
10870 (push_left_right_boundary, push_menu_pane, push_menu_item)
10871 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10872 (free_menubar_widget_tree_value, parse_single_submenu)
10873 (update_submenu_strings): Remove functions.
10874 (xmalloc_widget_value): Remove and declare extern.
10875
10876 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10877 (OBJ1): Build it.
10878
10879 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10880 (local_heap, local_alloc, local_free, malloc_widget_value)
10881 (free_widget_value): Define here.
10882
108832008-06-09 Kenichi Handa <handa@m17n.org>
10884
10885 * font.h (Qascii_0): Extern it.
10886
10887 * font.c (Qascii_0): New variable.
10888 (syms_of_font): DEFSYM it.
10889 (font_open_by_name): If the registry "iso8859-1" fails, try also
10890 "ascii-0".
10891
10892 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10893
108942008-06-08 Kenichi Handa <handa@m17n.org>
10895
10896 * .gdbinit (xfont): New command.
10897
108982008-06-08 Andreas Schwab <schwab@suse.de>
10899
10900 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10901 * Makefile.in (menu.o): Update dependencies.
10902
10903 * Makefile.in (obj): Always add menu.o.
10904 * emacs.c (main): Always call syms_of_menu.
10905 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10906
109072008-06-08 Chong Yidong <cyd@stupidchicken.com>
10908
10909 * Makefile.in: Compile menu.c.
10910
10911 * lisp.h: Declare syms_of_menu.
10912
10913 * emacs.c (main): Call syms_of_menu.
10914
10915 * keyboard.h: Relocate platform-independent menu definitions from
10916 xmenu.c.
10917
10918 * menu.c: New file. Relocate platform-independent menu
10919 definitions from xmenu.c. Suggested by Adrian Robert.
10920
10921 * xmenu.c: Remove platform-independent menu definitions.
10922 (menu_items menu_items_inuse, menu_items_allocated)
10923 (menu_items_used, menu_items_n_panes)
10924 (menu_items_submenu_depth): Move to keyboard.h.
10925 (init_menu_items, finish_menu_items, unuse_menu_items)
10926 (discard_menu_items, restore_menu_items, save_menu_items)
10927 (grow_menu_items, push_submenu_start, push_submenu_end)
10928 (push_left_right_boundary, push_menu_pane, push_menu_item)
10929 (keymap_panes, single_keymap_panes, single_menu_item)
10930 (list_of_panes, list_of_items, find_and_call_menu_selection)
10931 (xmalloc_widget_value, free_menubar_widget_value_tree)
10932 (parse_single_submenu, digest_single_submenu)
10933 (update_submenu_strings): Move to menu.c.
10934
109352008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10938
109392008-06-06 Miles Bader <miles@gnu.org>
10940
10941 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10942 face, not frame default.
10943
109442008-06-05 Martin Rudalics <rudalics@gmx.at>
10945
10946 * window.c (pop_up_windows, pop_up_frames)
10947 (display_buffer_reuse_frames, Vpop_up_frame_function)
10948 (Vdisplay_buffer_function, Veven_window_heights)
10949 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10950 (Vspecial_display_function, Vsame_window_buffer_names)
10951 (Vsame_window_regexps, split_height_threshold)
10952 (Vsplit_window_preferred_function): Move those vars to window.el.
10953 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10954 (Fdisplay_buffer): Move those functions to window.el.
10955 (syms_of_window): Remove corresponding declarations.
10956 (display_buffer): New function.
10957 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10958 * dispnew.c (Flast_nonminibuf_frame): New function.
10959 * buffer.c (Fpop_to_buffer): Move to window.el.
10960
109612008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10964
109652008-06-05 Kenichi Handa <handa@m17n.org>
10966
10967 * coding.c (detect_coding): Fix previous change.
10968 (detect_coding_system): Likewise.
10969
109702008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10971
10972 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10973
10974 * keymap.c (Vminibuffer_local_filename_must_match_map):
10975 Rename from Vminibuffer_local_must_match_filename_map.
10976 (syms_of_keymap):
10977 * minibuf.c (Fcompleting_read): Adjust accordingly.
10978 * commands.h: Rename declaration as well.
10979
109802008-06-05 Kenichi Handa <handa@m17n.org>
10981
10982 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10983 family name.
10984 (Ffont_put): Likewise.
10985
10986 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10987 current font-spec.
10988
10989 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10990 is unspecified.
10991
10992 * xfaces.c (realize_x_face): If the font-related face attributes
10993 are the same as those of default face, realize a new fontset from
10994 default->fontset.
10995 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10996
109972008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10998
10999 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11000 (move_it_in_display_line): New wrapper.
11001
11002 * window.c (window_scroll_pixel_based_preserve_x)
11003 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11004 (window_scroll_pixel_based, window_scroll_line_based):
11005 Use them to preserve column positions.
11006 (syms_of_window): Initialize them.
11007
11008 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11009 (HPOS . VPOS) pair.
11010
11011 * dispextern.h (move_it_in_display_line): Declare.
11012
110132008-06-05 Juanma Barranquero <lekktu@gmail.com>
11014
11015 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11016 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11017 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11018
110192008-06-04 Juanma Barranquero <lekktu@gmail.com>
11020
11021 * window.c (Fset_window_parameter): Doc fix.
11022 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11023
110242008-06-04 Joakim Verona <joakim@verona.se>
11025
11026 * window.h (struct window): Add new member window_parameters.
11027
11028 * window.c (Fwindow_parameters, Fwindow_parameter)
11029 (Fset_window_parameter): New defuns.
11030 (syms_of_window): Defsubr the new defuns.
11031 (make_window): Initialize window_parameters to nil.
11032
110332008-06-04 John Paul Wallington <jpw@pobox.com>
11034
11035 * eval.c (Fdefmacro): Doc fix.
11036
110372008-06-04 Kenichi Handa <handa@m17n.org>
11038
11039 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11040 Be sure to call setup_coding_system when we find a proper coding system.
11041 (detect_coding_system): Fix handling of coding->head_ascii.
11042
110432008-06-03 Andreas Schwab <schwab@suse.de>
11044
11045 * font.c (font_prop_validate_spacing): Fix last change.
11046
110472008-06-03 Kenichi Handa <handa@m17n.org>
11048
11049 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11050 (font_parse_fcname): Fix handling of unknown key.
11051
11052 * xfont.c (xfont_list): Try an alias.
11053
11054 * charset.c (char_charset): Return NULL if the arg charset_list is
11055 specified and C doesn't belong to any of them.
11056
110572008-06-02 Chip Coldwell <coldwell@redhat.com>
11058
11059 * font.c (font_pixel_size): Don't take cdr of an integer.
11060
110612008-06-02 Jim Meyering <meyering@redhat.com>
11062
11063 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11064 * alloc.c (xfree): Return right away for a NULL arg.
11065 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11066 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11067 * mac.c (create_apple_event_from_event_ref): Likewise.
11068 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11069 Likewise.
11070 * doprnt.c (doprnt1): Likewise.
11071 * frame.c (frame): Likewise.
11072 * keyboard.c (wipe_kboard): Likewise.
11073 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11074 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11075 * term.c (tty_default_color_capabilities, maybe_fatal)
11076 (delete_tty): Likewise.
11077 * w16select.c (string): Likewise.
11078 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11079 * w32bdf.c (w32_free_bdf_font): Likewise.
11080 * w32fns.c (w32_unload_font): Likewise.
11081 * w32font.c (w32font_close): Likewise.
11082 * window.c (size_window): Likewise.
11083 * xselect.c (receive_incremental_selection): Likewise.
11084 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11085 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11086 * w32.c (stat): Likewise.
11087
11088 Remove useless if-before-free tests.
11089 * editfns.c (Fset_time_zone_rule): Likewise.
11090 * lread.c (nosuffix): Likewise.
11091 * ralloc.c (get_bloc): Likewise.
11092 * regex.c (reg_free): Likewise.
11093 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11094 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11095 * xsmfns.c (smc_save_yourself_CB): Likewise.
11096
110972008-06-02 Kenichi Handa <handa@m17n.org>
11098
11099 * font.c (font_find_for_lface): Handle float font size.
11100 (font_open_for_lface): Likewise.
11101
11102 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11103 comparing the properties.
11104
111052008-06-01 Jason Rumney <jasonr@gnu.org>
11106
11107 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11108 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11109 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11110 Don't add empty script list.
11111 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11112
111132008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11114
11115 * Makefile.in (dot, dotdot): Remove, update users.
11116 ".." has been used elsewhere in the file for a long time.
11117 (LIBXT_STATIC): Remove conditional based on unused variable.
11118
111192008-06-01 Miles Bader <miles@gnu.org>
11120
11121 * xfaces.c (Vface_remapping_alist): New variable.
11122 (syms_of_xfaces): Initialize it.
11123 (enum named_merge_point_kind): New type.
11124 (struct named_merge_point): Add `named_merge_point_kind' field.
11125 (push_named_merge_point): Make cycle detection respect different
11126 named-merge-point kinds.
11127 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11128 Remove face-name alias resolution.
11129 (lface_from_face_name): New definition using
11130 `lface_from_face_name_no_resolve'.
11131 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11132 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11133 (get_lface_attributes): New definition that layers face-remapping on
11134 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11135 (lookup_basic_face): New function.
11136 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11137 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11138 `get_lface_attributes'.
11139 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11140 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11141 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11142
11143 * xdisp.c (init_iterator): Pass base_face_id through
11144 `lookup_basic_face' when we actually use it as a face-id.
11145 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11146 DEFAULT_FACE_ID.
11147
11148 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11149 lookup the initial face-id.
11150
11151 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11152
111532008-06-01 Juanma Barranquero <lekktu@gmail.com>
11154
11155 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11156 (Fremove_text_properties): Fix typos in docstrings.
11157
111582008-05-31 Kenichi Handa <handa@m17n.org>
11159
11160 * font.c (font_list_entities): Fix the car part of data to be
11161 stored in the cache.
11162
11163 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11164
111652008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11166
11167 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11168 Add a `test' argument so another predicate than `equal' can be used.
11169 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11170 (map_char_table): Remove unused vars `c' and `i'.
11171 * lisp.h (Foptimize_char_table): Adjust declaration.
11172 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11173
111742008-05-30 Kenichi Handa <handa@m17n.org>
11175
11176 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11177 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11178 defined.
11179
111802008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11181
11182 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11183 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11184 frame-local settings for the same variable.
11185
111862008-05-30 Kenichi Handa <handa@m17n.org>
11187
11188 * fontset.c (Ffont_info): Move to font.c.
11189 (syms_of_fontset): Delete defsubr of Sfont_info.
11190
11191 * font.c (font_style_to_value, font_score): Delete casting of the
11192 args to xstcasecmp.
11193 (register_font_driver): Increment num_font_drivers only when
11194 registering the driver globally.
11195 (Ffont_info): Move from fontset.c. Handle a font object too.
11196 (syms_of_font): Defsubr Sfont_info.
11197
111982008-05-29 Kenichi Handa <handa@m17n.org>
11199
11200 * coding.h (enum define_coding_utf8_arg_index): New enum.
11201 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11202 coding_attr_utf_bom.
11203 (enum utf_bom_type): Rename from utf_16_bom_type.
11204 (struct utf_16_spec): Adjust for the above change.
11205 (struct coding_system): Add utf_8_bom in `spec' union.
11206
11207 * coding.c (CODING_UTF_8_BOM): New macro.
11208 (enum coding_category): Delete coding_category_utf_8, add
11209 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11210 coding_category_utf_8_sig.
11211 (CATEGORY_MASK_UTF_8): Delete it.
11212 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11213 (CATEGORY_MASK_UTF_8_SIG): New macros.
11214 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11215 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11216 CATEGORY_MASK_UTF_8_SIG.
11217 (CATEGORY_MASK_UTF_8): New macro.
11218 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11219 (detect_coding_utf_8): Check BOM.
11220 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11221 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11222 (encode_coding_utf_16): Likewise.
11223 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11224 (detect_coding, detect_coding_system): Handle utf-8-auto.
11225 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11226 (syms_of_coding): Fix setting up of Vcoding_category_table.
11227
112282008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11229
11230 * process.c (Faccept_process_output): If `millisec' is non-nil,
11231 `seconds' default to 0.
11232 (wait_reading_process_output): Also return non-nil if we read output
11233 from a non-running process.
11234
112352008-05-29 Jason Rumney <jasonr@gnu.org>
11236
11237 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11238 `raster' specified.
11239 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11240 in the uniscribe backend, but disallow any font that has no
11241 unicode subrange support.
11242
112432008-05-29 Juanma Barranquero <lekktu@gmail.com>
11244
11245 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11246 Fix typos in docstrings.
11247
112482008-05-29 Kenichi Handa <handa@m17n.org>
11249
11250 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11251 (Fx_family_fonts): Set frame correctly.
11252
112532008-05-28 Jason Rumney <jasonr@gnu.org>
11254
11255 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11256
112572008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11258
11259 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11260 calling build_annotations.
11261
112622008-05-28 Juanma Barranquero <lekktu@gmail.com>
11263
11264 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11265 (Fencode_coding_string):
11266 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11267 <latin-extra-code-table>: Fix typos in docstrings.
11268 (syms_of_coding) <coding-system-alist>: Doc fix.
11269 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11270
112712008-05-28 Kenichi Handa <handa@m17n.org>
11272
11273 * fontset.c (Ffont_info): Don't call font_close_object.
11274
11275 * font.c (font_parse_family_registry): Use Ffont_put to validate
11276 foundry and family.
11277 (font_delete_unmatched): Don't check spacing.
11278 (font_list_entities): Add spacing to the spec to list fonts.
11279
11280 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11281 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11282
11283 * coding.c (encode_coding_raw_text): Fix previous change.
11284 (encode_coding_object): When the dst_object is a buffer and is
11285 different from src_object, move gap to PT.
11286
112872008-05-27 Chong Yidong <cyd@stupidchicken.com>
11288
11289 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11290
112912008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11294 all branches. Compute it differently.
11295
11296 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11297
112982008-05-27 Juanma Barranquero <lekktu@gmail.com>
11299
11300 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11301 into "else if () ... else ...".
11302
113032008-05-27 Jason Rumney <jasonr@gnu.org>
11304
11305 * w32font.c (w32font_open_internal): Determine if glyph indices
11306 are likely to work here.
11307
113082008-05-27 Chong Yidong <cyd@stupidchicken.com>
11309
11310 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11311 draw overlap glyphs with appropriate highlighting.
11312
113132008-05-27 Kenichi Handa <handa@m17n.org>
11314
11315 * xfont.c (xfont_open): Fix calculation of font->average_width.
11316
113172008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11318
11319 * casefiddle.c (casify_object): Try to guess better whether the
11320 argument is a byte or a char.
11321
113222008-05-26 Andreas Schwab <schwab@suse.de>
11323
11324 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11325 Always send multiples of format size.
11326
11327 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11328
113292008-05-26 Jason Rumney <jasonr@gnu.org>
11330
11331 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11332 (compute_metrics): Don't set failure if we just cleared the cache.
11333 (w32_weight_table): Remove unused variable.
11334 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11335 backwards compatibility.
11336
113372008-05-25 Kenichi Handa <handa@m17n.org>
11338
11339 * w32term.c (x_draw_glyph_string):
11340 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11341
11342 * xfaces.c: Delete unused function prototypes.
11343 (xstrlwr, font_frame): Delete them.
11344 (clear_face_cache): Delete unused variable.
11345
11346 * xftfont.c (xftfont_open): Delete unused variable.
11347 If underline_thickness is not 1, adjust underline_position.
11348
11349 * ftxfont.c (ftxfont_open): Delete unused variable.
11350
11351 * fontset.c (face_for_char): Optimize for the case of no charset
11352 property.
11353
11354 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11355 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11356 (otf_open, font_otf_capability, generate_otf_features)
11357 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11358 Comment out by surrounding "#if 0" and "#endif" for the moment.
11359 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11360 (syms_of_font): Codes for accessing above commented out.
11361
113622008-05-24 Eli Zaretskii <eliz@gnu.org>
11363
11364 * w32proc.c: Include dispextern.h.
11365
11366 * w32.c: Include dispextern.h.
11367
113682008-05-23 Juanma Barranquero <lekktu@gmail.com>
11369
11370 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11371 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11372 Fix typos in docstrings.
11373
113742008-05-23 Jason Rumney <jasonr@gnu.org>
11375
11376 * xsmfns.c: Remove includes that are already included by config.h.
11377
113782008-05-23 Kenichi Handa <handa@m17n.org>
11379
11380 * charset.c (Qemacs, charset_emacs): New variables.
11381 (char_charset): Fix for non-Unicode characters.
11382 (syms_of_charset): Define charset_emacs.
11383
11384 * w32term.c (x_draw_glyph_string): Be sure to update
11385 s->underline_thickness and s->underline_position. Be sure to draw
11386 underline within the current line area.
11387
11388 * xterm.c (x_draw_glyph_string): Be sure to update
11389 s->underline_thickness and s->underline_position. Be sure to draw
11390 underline within the current line area.
11391
11392 * fontset.c: Delete unused variables and add casting for char *
11393 throughout the file.
11394 (fontset_font): Try the fallback fonts of the current fontset
11395 before consulting the default fontset.
11396
11397 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11398
11399 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11400
114012008-05-22 Jason Rumney <jasonr@gnu.org>
11402
11403 * font.c: Don't include strings.h.
11404
11405 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11406
11407 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11408 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11409 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11410 to call xstrcasecmp.
11411
11412 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11413
11414 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11415
11416 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11417
11418 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11419
114202008-05-22 Kenichi Handa <handa@m17n.org>
11421
11422 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11423
11424 * font.c (font_prop_validate_style): Adjust for the format
11425 change of font_style_table.
11426
11427 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11428 two args.
11429
11430 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11431 two args.
11432
114332008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11434
11435 * minibuf.c (keys_of_minibuf): Delete.
11436 * lisp.h (keys_of_minibuf): Delete.
11437 * emacs.c (main): Don't call keys_of_minibuf.
11438
114392008-05-22 Kenichi Handa <handa@m17n.org>
11440
11441 * ftfont.c (ftfont_resolve_generic_family): Rename from
11442 ftfont_list_generic_family. Return a single family for each
11443 generic family.
11444 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11445 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11446 Call font_add_log.
11447 (ftfont_match): Call font_add_log.
11448
11449 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11450 (FONT_DEBUG): Define it.
11451 (font_add_log): Extern it.
11452 (font_assert): Rename from xassert.
11453
11454 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11455 (xfont_list_family): Call font_add_log.
11456 (xfont_match): Likewise.
11457 (memq_no_quit): Delete.
11458
11459 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11460 call of Ffont_xlfd_name.
11461
11462 * xfaces.c (struct table_entry, slant_table, weight_table)
11463 (swidth_table): Move to font.c.
11464
11465 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11466 xassert are changed to font_assert. Delete many unused variables.
11467 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11468 New variables.
11469 (struct table_entry): Move from xfaces.c and modified.
11470 (weight_table, slant_table, width_table): Move from xfaces.c and
11471 contents adjusted for the change of struct table_entry.
11472 (font_style_to_value, font_style_symbolic): Adjust for the
11473 format change of font_style_table.
11474 (font_parse_family_registry): Don't overwrite existing foundry and
11475 family of font_spec.
11476 (font_score): Fix calculation of diff for sizes.
11477 (font_sort_entites): Call font_add_log.
11478 (font_delete_unmatched): Return a newly created list.
11479 (font_list_entities): Fix previous change. Call font_add_log.
11480 (font_matching_entity, font_open_entity, font_close_entity):
11481 Call font_add_log.
11482 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11483 (Finternal_set_font_style_table): Delete.
11484 (BUILD_STYLE_TABLE): New macro.
11485 (build_style_table): New function.
11486 (Vfont_log, font_log_env_checked): New variables.
11487 (font_add_log): New function.
11488 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11489 Declare Lisp variables "font-weight-table", "font-slant-table",
11490 "font-width-table", and "font-log". Initialize font_style_table.
11491
114922008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11493
11494 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11495
114962008-05-21 Seiji Zenitani <zenitani@mac.com>
11497 Ryo Yoshitake <ryo@shiftmode.net>
11498
11499 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11500 (Vframe_alpha_lower_limit): New variable.
11501 (x_set_alpha): New function.
11502
11503 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11504
11505 * xfns.c (x-create-frame, Qalpha):
11506 Initialize the frame parameter `alpha'.
11507 * xterm.c (OPAQUE, OPACITY): New.
11508 (x_set_frame_alpha): New function.
11509 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11510
11511 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11512 * w32fns.c (w32_frame_parm_handlers): Likewise.
11513
115142008-05-20 Jason Rumney <jasonr@gnu.org>
11515
11516 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11517 truetype fonts to opentype list.
11518
115192008-05-20 Juanma Barranquero <lekktu@gmail.com>
11520
11521 * fontset.c (Ffontset_info): Doc fix.
11522 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11523 <ignore-relative-composition>: Fix typos in docstrings.
11524
11525 * font.c (syms-of-font) <font-encoding-alist>:
11526 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11527 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11528 (Ffont_otf_alternates): Doc fixes.
11529
115302008-05-20 Kenichi Handa <handa@m17n.org>
11531
11532 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11533 font.h through out the file.
11534 (FONT_DRIVERS): Rename from FONTOBJ.
11535 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11536 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11537
11538 * emacs.c (main): Call syms_of_font unconditionally.
11539
11540 * font.h (find_font_encoding): Extern it.
11541
11542 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11543 fontset.c.
194d44e7 11544 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11545 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11546 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11547 only when HAVE_WINDOW_SYSTEM is defined.
11548 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11549 when HAVE_WINDOW_SYSTEM is defined.
11550
11551 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11552 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11553
11554 * xfaces.c: Include font.h unconditionally.
11555 (merge_face_ref, merge_face_vectors)
11556 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11557
115582008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11561 indirect_variable.
11562 * eval.c (lisp_indirect_variable): New fun.
11563 (Fuser_variable_p): Use it.
11564
115652008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11566
11567 * lisp.h (indirect_variable):
11568 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11569 Use Lisp_Symbol pointers rather than Lisp_Object.
11570 Adjust callers.
11571 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11572 To this end, change calling-convention.
11573
11574 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11575 if some non-hidden buffers are selected by string&pred.
11576
115772008-05-19 Chong Yidong <cyd@stupidchicken.com>
11578
11579 * process.c (wait_reading_process_output): Always check status
11580 when in batch mode.
11581
115822008-05-19 Kenichi Handa <handa@m17n.org>
11583
11584 * font.c (font_list_entities): Fix handling of cache.
11585 (font_matching_entity): Likewise.
11586
11587 * ftfont.c (cs_iso8859_1): Delete.
11588 (ft_face_cache): New variable.
11589 (struct ftfont_info): New member fc_charset_idx.
11590 (ftfont_build_basic_charsets): Delete.
11591 (fc_charset_table): New variable.
11592 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11593 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11594 Callers changed.
11595 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11596 (ftfont_spec_pattern): New argument fc_charset_idx.
11597 Check registry more rigidly. Change callers.
11598 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11599 change of :font-entity property of the font.
11600
11601 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11602 property of the font.
11603
116042008-05-18 Juanma Barranquero <lekktu@gmail.com>
11605
11606 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11607 (Funencodable_char_position, Fcheck_coding_systems_region)
11608 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11609 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11610 (Ffind_operation_coding_system, Fset_coding_system_priority)
11611 (Fcoding_system_eol_type): Doc fixes.
11612
116132008-05-17 Glenn Morris <rgm@gnu.org>
11614
11615 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11616
116172008-05-16 Eli Zaretskii <eliz@gnu.org>
11618
11619 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11620 and st_gid.
11621
11622 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11623 HAVE_WINDOW_SYSTEM is not defined.
11624
11625 * xfaces.c (merge_face_ref, merge_face_vectors)
11626 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11627 HAVE_WINDOW_SYSTEM is defined.
11628 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11629
116302008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11631
11632 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11633
116342008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11635
11636 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11637
116382008-05-15 Kenichi Handa <handa@m17n.org>
11639
11640 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11641 preference.
11642
116432008-05-15 Glenn Morris <rgm@gnu.org>
11644
11645 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11646
116472008-05-15 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11650 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11651
11652 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11653
116542008-05-15 Kenichi Handa <handa@m17n.org>
11655
11656 * ftfont.c (ftfont_list): Downcase family name to check generic
11657 families.
11658
11659 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11660 font-spec for QCfont value.
11661
11662 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11663 buffer. Check the return value of it.
11664
116652008-05-14 Jason Rumney <jasonr@gnu.org>
11666
11667 * w32term.c (w32_get_glyph_overhangs): Remove.
11668 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11669
116702008-05-14 Kenichi Handa <handa@m17n.org>
11671
11672 * font.c (font_prop_validate): Make nil a valid value.
11673 (font_clear_cache): Check if the cached vector of entities is nil
11674 or not.
11675
116762008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11677
11678 * emacs.c (main_thread): Conditionalize on
11679 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11680 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11681
11682 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11683 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11684 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11685
116862008-05-14 Kenichi Handa <handa@m17n.org>
11687
11688 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11689 has no corresponding coding system.
11690
116912008-05-14 Jason Rumney <jasonr@gnu.org>
11692
11693 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11694
11695 * w32font.h (w32font_open_internal): Update declaration.
11696
11697 * w32font.c (w32font_open_internal): Change last argument from
11698 w32font_info struct to font object. Fill in font object from
11699 font_entity. Get Outline metrics if possible. Use them to
11700 calculate underline position and thickness. Use xlfd name as name
11701 property. Don't set codepage.
11702 (w32font_open): Pass font_object to w32font_open_internal. Don't
11703 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11704 (w32font_draw): Use s->font.
11705 (clear_cached_metrics): Don't clear non-existent blocks.
11706
11707 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11708 font was not found.
11709 (x_draw_glyph_string): Use underline position and thickness from font.
11710
11711 * w32uniscribe.c (uniscribe_open): Pass font_object to
11712 w32font_open_internal.
11713
117142008-05-14 Kenichi Handa <handa@m17n.org>
11715
11716 These changes are to delete all legacy font-handling codes, and
11717 make Emacs use only font-backends.
11718
11719 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11720 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11721
11722 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11723
11724 * charset.h (Vcharset_non_preferred_head)
11725 (Vcurrent_iso639_language): Extern them.
11726
11727 * charset.c (Vcharset_non_preferred_head): New variable.
11728 (Vcurrent_iso639_language): New variable.
11729 (syms_of_charset): Declare it as a Lisp variable.
11730 (char_charset): Don't check non preferred charsets. As a last
11731 resort, return charset_unicode.
11732 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11733
11734 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11735 conditionals. Don't check enable_font_backend. Delete all codes
11736 used only when USE_FONT_BACKEND is not defined.
11737
11738 * dispextern.h (struct glyph_string): Change type of `font' to
11739 `struct font *'.
11740 (struct glyph_string): New member underline_position and
11741 underline_thickness.
11742 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11743 (struct face): Change type of `font' to `struct font *'. Remove
11744 members `font_name', `font_info_id'.
11745 (per_char_metric, encode_char): Delete externs.
11746 (calc_pixel_width_or_height): Adjust the prototype.
11747
11748 * emacs.c (enable_font_backend): Delete extern.
11749 (main): Don't set enable_font_backend. Don't check the command
11750 line argument "-disable-font-backend".
11751
11752 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11753 (enum font_property_index): New members FONT_DPI_INDEX,
11754 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11755 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11756 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11757 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11758 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11759 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11760 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11761 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11762 (struct font_spec, struct font_entity): New structs.
11763 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11764 (struct font): Many members from old "struct font_info" moved to
11765 here. Members font and entity deleted.
11766 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11767 the new font-related objects.
11768 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11769 (CHECK_FONT_GET_OBJECT): Likewise.
11770 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11771 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11772 (struct font_driver): New members case_sensitive anc check. Type
11773 of the member list and open changed.
11774 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11775 (font_symbolic_width, font_find_object, font_get_spec)
11776 (font_set_lface_from_name): Delete extern.
11777 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11778
11779 * font.c: Include <strings.h>.
11780 (enable_font_backend): Delete it.
11781 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11782 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11783 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11784 (null_string): Delete it.
11785 (null_vector): Make it static.
11786 (font_family_alist): Delete it.
11787 (Qnormal): Extern it.
11788 (QCextra, QClanguage): Delete it.
11789 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11790 (font_make_spec, font_make_entity, font_make_object)
11791 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11792 the string. Callers changed.
11793 (font_pixel_size): Adjusted for the format change of font-related
11794 objects.
11795 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11796 (font_style_to_value, font_style_symbolic): New function.
11797 (build_font_family_alist): Delete it.
11798 (font_registry_charsets): Use Fassoc_string instead of
11799 assq_no_quit.
11800 (font_prop_validate_symbol): Don't return null_string.
11801 (font_prop_validate_style): Adjusted for the change of
11802 style-related values in a font vector.
11803 (font_property_table): Delete entries for QClanguage and
11804 QCantialias, add entries for QCavgwidth.
11805 (get_font_prop_index): Delete the 2nd argument FROM.
11806 (font_prop_validate): Arguments changed.
11807 (font_put_extra): Adjusted for the change of font-related objects.
11808 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11809 (font_parse_fcname, font_unparse_fcname)
11810 (font_prepare_composition): Likewise.
11811 (font_parse_family_registry): Renamed from font_merge_old_spec.
11812 (otf_open): Delete the 1st arg entity.
11813 (font_otf_capability): Adjusted for the above change.
11814 (font_score): New arg alternate_families. Adjusted for the change
11815 of font-related objects.
11816 (font_sort_entites): New arg best_only.
11817 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11818 Delete them.
11819 (font_match_p): Check alternate families.
11820 (font_find_object): Delete it.
11821 (font_check_object): New function.
11822 (font_clear_cache): Adjusted for the change of font-related objects.
11823 (font_delete_unmatched): New arg.
11824 (font_list_entities): Call font_driver->list with a spec that
11825 doesn't specify style-related properties.
11826 (font_matching_entity): Arguments changed. Caller changed.
11827 (font_open_entity): Adjusted for the change of font-related objects.
11828 (font_close_object, font_has_char, font_encode_char)
11829 (font_get_name, font_get_spec): Likewise.
11830 (font_spec_from_name, font_clear_prop, font_update_lface):
11831 New functions.
11832 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11833 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11834 (font_at): Adjusted for the change of font-related objects.
11835 (font_range): New function.
11836 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11837 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11838 (Fcopy_font_spec, Fmerge_font_spec): New function.
11839 (Ffont_family_list): Renamed from list-families.
11840 (Finternal_set_font_style_table): Arguments changed.
11841 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11842 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11843 change of font-related objects.
11844 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11845
11846 * fontset.h (struct font_info): Delete it. Most members go to
11847 struct font.
11848 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11849 (enum FONT_SPEC_INDEX): Delete it.
11850 (font_info, list_fonts_func, load_font_func, query_font_func)
11851 (set_frame_fontset_func, find_ccl_program_func)
11852 (get_font_repertory_func, new_fontset_from_font_name): Delete
11853 externs.
11854 (fontset_from_font_name): Extern it.
11855 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11856 (FONT_INFO_FROM_FACE): Deleted.
11857 (face_for_font): Adjust prototype.
11858
11859 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11860 conditionals. Don't check enable_font_backend. Delete all codes
11861 used only when USE_FONT_BACKEND is not defined.
11862 (get_font_info_func, list_font_func, load_font_func)
11863 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11864 (get_font_repertory_func): Delete them.
11865 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11866 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11867 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11868 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11869 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11870 (fontset_compare_rfontdef): New function.
11871 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11872 rfont-defs by qsort. Adjusted for the change of font-group vector.
11873 (load_font_get_repertory): Deleted.
11874 (fontset_find_font): Use new macros to ref/set elements of
11875 font-def and rfont-def.
11876 (fontset_font): Fix the timing of remembering that no font for C.
11877 (free_face_fontset): Do nothing if the face has no fontset.
11878 (face_suitable_for_char_p): Use new macros to ref/set elements of
11879 rfont-def.
11880 (face_for_char): Likewise. Call face_for_char with font_object.
11881 (fs_load_font): Delete. Delete #pragma surrounding it.
11882 (fs_query_fontset): Use strcasecmp instead of strcmp.
11883 (generate_ascii_font_name): Adjusted for the format change of
11884 font-spec.
11885 (Fset_fontset_font): Likewise. Use new macros to set elements of
11886 font-def.
11887 (Fnew_fontset): Use font_unparse_xlfd to generate
11888 FONTSET_ASCII (fontset).
11889 (new_fontset_from_font_name): Deleted.
11890 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11891 a fontset is already created for the font. FIx updating of
11892 Vfontset_alias_alist.
11893 (fontset_ascii_font): Deleted.
11894 (Ffont_info): Adjusted for the format change of font-spec.
11895 (Finternal_char_font): Likewise.
11896 (Ffontset_info): Likewise.
11897 (syms_of_fontset): Don't check load_font_func.
11898
11899 * fns.c (internal_equal): Handle PREV_FONT.
11900
11901 * frame.h: Delete USE_FONT_BACKEND conditional.
11902
11903 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11904 conditionals. Don't check enable_font_backend. Delete all codes
11905 used only when USE_FONT_BACKEND is not defined.
11906 (x_set_font): Call x_new_font, not x_new_fontset2.
11907 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11908 already set for the frame.
11909
11910 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11911 a font-entity by font_make_entity. Use font_intern_prop instead
11912 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11913 font property. If a font is scalable, set avgwidth property to 0.
11914 Set font-entity property by font_put_extra.
11915 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11916 (ffont_driver): Adjusted for the change of struct font_driver.
11917 (ftfont_spec_pattern): New function.
11918 (ftfont_list): Return a list, not vector.
11919 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11920 (ftfont_list_family): Don't downcase names.
11921 (ftfont_free_entity): Deleted.
11922 (ftfont_open): Return a font-object. Adjusted for the change of
11923 struct font. Get underline_thickness and underline_position from
11924 font property. Don't update dpyinfo->smallest_font_height and
11925 dpyinfo->smallest_char_width.
11926 (ftfont_close): Don't free `struct font'.
11927 (ftfont_has_char): Adjusted for the format change of font-entity.
11928 (ftfont_encode_char, ftfont_text_extents): Likewise.
11929
11930 * ftxfont.c (ftxfont_list): Return a list, not vector.
11931 (ftxfont_open): Return a font-object. Adjusted for the change of
11932 struct font. Get underline_thickness and underline_position from
11933 font property. Don't update dpyinfo->smallest_font_height and
11934 dpyinfo->smallest_char_width.
11935 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11936 (ftxfont_draw): Adjusted for the change of struct font.
11937
11938 * image.c (image_ascent): Don't include "charset.h". Include
11939 "character.h" and "font.h".
11940
11941 * lisp.h (enum pvec_type): New member PREV_FONT.
11942 (Fassoc_string): EXFUN it.
11943
11944 * print.c: Include font.h.
11945 (print_object): Handle font-related objects.
11946
11947 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11948 conditionals. Don't check enable_font_backend. Delete all codes
11949 used only when USE_FONT_BACKEND is not defined.
11950 (handle_auto_composed_prop): Do nothing if it->f is not on a
11951 window system. Check how many following characters can be
11952 displayed by the same font.
11953 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11954 'struct font *'.
11955 (get_char_face_and_encoding): Assign the whole encoding task to
11956 the `encode-char' method of a font driver.
11957 (fill_composite_glyph_string): Adjusted for the change of `struct
11958 face' and `struct glyph_string'.
11959 (fill_glyph_string): Likewise.
11960 (get_per_char_metric): Arguments changed.
11961 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11962 and `struct glyph_string'.
11963 (produce_stretch_glyph, calc_line_height_property)
11964 (x_produce_glyphs): Likewise.
11965
11966 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11967 conditionals. Don't check enable_font_backend. Delete all codes
11968 used only when USE_FONT_BACKEND is not defined. Use
11969 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11970 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11971 (Qp): Extern them.
11972 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11973 Deleted.
11974 (struct font_name): Deleted.
11975 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11976 (compare_fonts_by_sort_order): New function.
11977 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11978 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11979 Deleted.
11980 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11981 compare_fonts_by_sort_order.
11982 (Fx_font_family_list): Call Ffont_family_list.
11983 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11984 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11985 (face_symbolic_slant, face_symbolic_swidth)
11986 (split_font_name_into_vector, build_font_name_from_vector)
11987 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11988 (font_rescale_ratio, split_font_name, build_font_name)
11989 (free_font_names, sort_fonts, x_face_list_fonts)
11990 (face_font_available_p, sorted_font_list, cmp_font_names)
11991 (font_list_1, concat_font_list, font_list, remove_duplicates):
11992 Deleted.
11993 (Fx_list_fonts): Use Ffont_list.
11994 (LFACE_AVGWIDTH): Deleted.
11995 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11996 by FONTP.
11997 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11998 (set_lface_from_font_name): Delete it.
11999 (set_lface_from_font): Renamed from
12000 set_lface_from_font_and_fontset. Caller changed. Don't set
12001 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12002 for face.
12003 (merge_face_vectors): Copy font-spec if necessary.
12004 Clear properties of the font-spec if necessary.
12005 (merge_face_ref): Clear properties of the font-spec if necessary.
12006 (Finternal_set_lisp_face_attribute): Likewise.
12007 (set_font_frame_param): Use font_load_for_lface to load a
12008 font-object, and call Fmodify_frame_parameters with it.
12009 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12010 font name by Ffont_xlfd_name.
12011 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12012 QCslant, and QCwidth.
12013 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12014 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12015 Compare fonts by EQ.
12016 (lookup_non_ascii_face): Deleted.
12017 (face_for_font): The 2nd argument changed.
12018 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12019 Check atomic font properties by case insensitive.
12020 (realize_non_ascii_face): Set face->overstrike correctly.
12021 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12022 (dump_realized_face): Get font name from
12023 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12024
12025 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12026 conditionals. Don't check enable_font_backend. Delete all codes
12027 used only when USE_FONT_BACKEND is not defined.
12028 (xic_create_xfontset): Original code deleted and renamed from
12029 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12030 (x_make_gc): Don't set GCFont in GCs.
12031 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12032 opened by "fixed".
12033 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12034 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12035 get_font_repertory_func.
12036
12037 * xfont.c: Include <stdlib.h> and "ccl.h".
12038 (struct xfont_info): New structure.
12039 (xfont_query_font): Deleted.
12040 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12041 moved from xterm.c.
12042 (xfont_driver): Adjusted for the change of struct font_driver.
12043 (compare_font_names): New function.
12044 (xfont_list_pattern): Sort font names case insensitively. Make
12045 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12046 (xfont_list): Return a list, not vector.
12047 (xfont_match): If the font doesn't have QCname property, generate
12048 a name from the other font properties.
12049 (xfont_open): Return a font-object. Adjusted for the change of
12050 struct font. Get underline_thickness and underline_position from
12051 font property. Don't update dpyinfo->smallest_font_height and
12052 dpyinfo->smallest_char_width.
12053 (xfont_close): Don't free struct font.
12054 (xfont_prepare_face): Adjusted for the change of struct font.
12055 (xfont_done_face): Deleted.
12056 (xfont_has_char): Adjusted for the change of struct font.
12057 (xfont_encode_char, xfont_draw): Likewise.
12058 (xfont_check): New function.
12059
12060 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12061 callback function.
12062 (xftfont_match): Adjusted for the format change of font-entity.
12063 (xftfont_open): Adjusted for the format change of font-entity and
12064 font-object. Adjusted for the change of struct font. Return a
12065 font-object. Don't update dpyinfo->smallest_font_height and
12066 dpyinfo->smallest_char_width.
12067 (xftfont_close): Block input while calling XftFontClose.
12068 (xftfont_prepare_face): Don't block input while calling
12069 xftfont_get_colors. Adjusted for the change of struct font.
12070 (xftfont_shape): Return value of error case fixed.
12071
12072 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12073
12074 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12075 conditionals.
12076 (FONT_WIDTH): Return (f)->max_width.
12077 (struct x_display_info): Delete member `font'.
12078 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12079 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12080 (struct x_output): Change type of `font' to `struct font *'.
12081
12082 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12083 conditionals. Don't check enable_font_backend. Delete all codes
12084 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12085 (x_per_char_metric, x_encode_char): Deleted.
12086 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12087 (x_compute_glyph_string_overhangs): Adjusted for the change of
12088 `struct face'.
12089 (x_draw_glyph_string_foreground)
12090 (x_draw_composite_glyph_string_foreground): Likewise.
12091 (x_draw_glyph_string): Likewise. Use font->underline_position and
12092 font->underline_thickness.
12093 (x_new_font): Renamed from x_new_fontset2.
12094 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12095 (x_check_font): Call `check' method of a font driver.
12096 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12097 (x_query_font, x_get_font_repertory): Deleted.
12098 (x_find_ccl_program): Renamed and moved to xfont.c.
12099 (x_redisplay_interface): Adjusted for the change of `struct
12100 redisplay_interface'.
12101
12102 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12103 conditionals. Don't check enable_font_backend. Delete all codes
12104 used only when USE_FONT_BACKEND is not defined. Surround non-used
12105 code by "#ifdef OLD_FONT" and "endif".
12106 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12107
12108 * w32font.h (struct w32font_info): New member.
12109 (FONT_COMPAT): New macro.
12110 (w32font_open_internal): Prototype adjusted.
12111
12112 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12113 OLD_FONT" and "endif".
12114
12115 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12116 conditionals. Don't check enable_font_backend. Delete all codes
12117 used only when USE_FONT_BACKEND is not defined.
12118 (w32font_open): Return a font-object. Make a font-object by
12119 font_make_object. Adjusted for the change of struct w32font_info.
12120 (w32font_close): Don't free struct font. Adjusted for the change
12121 of struct w32font_info.
12122 (w32font_encode_char, w32font_text_extents, w32font_draw):
12123 Adjusted for the change of struct w32font_info.
12124 (w32font_draw): Likewise.
12125 (w32font_list_internal): Return a list, not vector.
12126 (w32font_open_internal): Change the 4th arg to font-object.
12127 Adjusted for the change of struct w32font_info and font-object format.
12128 (add_font_name_to_list): Don't downcase names.
12129 (w32_enumfont_pattern_entity): Make a font-entity by
12130 font_make_entity. Adjusted for the format change of font-entity.
12131 Use FONT_SET_STYLE to set a style-related font property. If a
12132 font is scalable, set avgwidth property to 0. Set font-entity
12133 property by font_put_extra.
12134 (font_matches_spec): Adjusted for the format change of font-entity.
12135 (w32_weight_table, w32_decode_weight): New variables.
12136 (w32_encode_weight): New function.
12137 (fill_in_logfont): Adjusted for the format change of font-spec.
12138 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12139 weight value.
12140 (w32font_driver): Adjusted for the change of struct font_driver.
12141
12142 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12143 conditionals. Don't check enable_font_backend. Surround non-used
12144 code by "#ifdef OLD_FONT" and "endif".
12145 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12146 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12147
12148 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12149 conditionals. Don't check enable_font_backend. Delete all codes
12150 used only when USE_FONT_BACKEND is not defined. Surround non-used
12151 code by "#ifdef OLD_FONT" and "endif".
12152
12153 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12154 (uniscribe_open): Return value changed to font-object.
12155 Adjusted for the format change of font-object.
12156 (uniscribe_otf_capability): Adjusted for the change of struct font.
12157 (add_opentype_font_name_to_list): Don't downcase names.
12158 (uniscribe_font_driver): Adjusted for the change of struct
12159 font_driver.
12160
121612008-05-13 Chong Yidong <cyd@stupidchicken.com>
12162
12163 * dispnew.c (update_frame_1): Check if tty output is still valid
12164 before flushing it.
12165
121662008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12167
12168 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12169 to Gtk+ menus.
12170
121712008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * dired.c (file_name_completion): Tweak the code so as to always do it
12174 in a single pass. Tighten the scope of some variables.
12175
12176 * dired.c (Qdefault_directory): New var.
12177 (file_name_completion): Use it instead of Fexpand_file_name.
12178 (syms_of_dired): Initialize it.
12179
121802008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12181
12182 * fileio.c (double_dollars): Remove dead code.
12183
121842008-05-10 Eli Zaretskii <eliz@gnu.org>
12185
12186 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12187 Mention w32-get-true-file-attributes in doc string.
12188
12189 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12190
121912008-05-09 Glenn Morris <rgm@gnu.org>
12192
12193 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12194 2008-04-23.
12195
121962008-05-09 Eli Zaretskii <eliz@gnu.org>
12197
12198 Support for reporting owner and group of each file on MS-Windows:
12199 * dired.c (stat_uname, stat_gname): New functions, with special
12200 implementation for w32.
12201 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12202
12203 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12204 (dflt_group_name): New static variable.
12205 (dflt_group): Rename from the_group.
12206 (init_user_info): Init dflt_group fields. Get user's group name
12207 from LookupAccountSid.
12208 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12209 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12210 New initialization states.
12211 (globals_of_w32): Initialize them to zero. Initialize the default
12212 group name to "None".
12213 (GetFileSecurity_Name): New global var, the name of the function
12214 to call for GetFileSecurity.
12215 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12216 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12217 (get_file_security, get_security_descriptor_owner)
12218 (get_security_descriptor_group, is_valid_sid)
12219 (get_file_security_desc, get_rid, get_name_and_id)
12220 (get_file_owner_and_group): New functions.
12221 (stat): Use get_file_security_desc and get_file_owner_and_group to
12222 report the owner and primary group of each file. Don't ignore the
12223 high 32 bits of file's size, now that st_size is 64-bit wide.
12224 Fix test when to get true file attributes.
12225 (init_user_info): Use get_rid instead of equivalent inline code.
12226 (fstat): Don't ignore the high 32 bits of file's size.
12227
122282008-05-09 Chong Yidong <cyd@stupidchicken.com>
12229
12230 * image.c (png_load): Use correct bit-depth for setting background
12231 color.
12232
122332008-05-08 Eli Zaretskii <eliz@gnu.org>
12234
12235 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12236 epa-hook.elc.
12237
122382008-05-08 Juanma Barranquero <lekktu@gmail.com>
12239
12240 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12241
122422008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12243
12244 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12245 because the original parameters are in pure storage now.
12246 (mac_window): Remove unused params. Update callers.
12247
122482008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12249
12250 * lread.c (substitute_object_recurse): Use lower-level primitives.
12251 Don't signal errors when traversing sub-char-tables.
12252 Don't loop over all the possible characters when traversing char-tables.
12253
12254 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12255 just like we do in print.c.
12256
122572008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * minibuf.c (Ftry_completion): Remove code left over from when we used
12260 scmp instead of Fcompare_strings.
12261
122622008-05-04 Juanma Barranquero <lekktu@gmail.com>
12263
12264 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12265
122662008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12267
12268 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12269 Create bitmap context in native byte order.
12270
12271 * macterm.c (XDrawLine)
12272 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12273 context in native byte order.
12274
122752008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12276
12277 * config.in: Regenerate.
12278
12279 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12280 New definitions for Image I/O support.
12281 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12282 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12283 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12284 (mac_data_provider_release_data, image_load_image_io)
12285 [USE_MAC_IMAGE_IO]: New functions.
12286 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12287 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12288 (init_image_func_pointer) [MAC_OSX]: Remove function.
12289 (image_load_quartz2d) [MAC_OSX]: Check availability of
12290 CGImageCreateWithPNGDataProvider at compile time.
12291 Use lowercase `false' for boolean constant.
12292 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12293 Use image_load_image_io.
12294 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12295 Don't check MyCGImageCreateWithPNGDataProvider.
12296 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12297 Don't call init_image_func_pointer.
12298
12299 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12300
12301 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12302 Make variable non-static.
12303 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12304 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12305
12306 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12307 (RED_FROM_ULONG): Mask off higher bits.
12308 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12309
12310 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12311 Include AvailabilityMacros.h.
12312 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12313 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12314
123152008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12316
12317 * chartab.c (Fset_char_table_range): If range is t, really set all
12318 chars to that value.
12319
123202008-05-03 Eli Zaretskii <eliz@gnu.org>
12321
12322 * dired.c (Ffile_attributes): Don't allow the device number become
12323 negative.
12324
123252008-05-02 Daiki Ueno <ueno@unixuser.org>
12326
12327 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12328
123292008-05-02 Juri Linkov <juri@jurta.org>
12330
12331 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12332 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12333 DEFAULT argument as a list of default values in docstrings.
12334
123352008-05-01 Chong Yidong <cyd@stupidchicken.com>
12336
12337 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12338
123392008-05-01 Martin Rudalics <rudalics@gmx.at>
12340
12341 * dispnew.c (change_frame_size_1): Preserve small windows when
12342 shrinking frames by calling set_window_height|width with third
12343 arg 2.
12344
12345 * window.h (struct window): Replace field too_small_ok by field
12346 resize_proportionally.
12347
12348 * window.c (make_window): Initialize resize_proportionally.
12349 (enlarge_window): Temporarily set resize_proportionally to make
12350 sure that shrink_windows does scale the window proportionally.
12351 (shrink_windows): When window has resize_proportionally set try
12352 to shrink it proportionally by stealing from other windows.
12353 (struct saved_window, Fset_window_configuration)
12354 (compare_window_configurations): Handle resize_proportionally.
12355 (WINDOW_TOTAL_SIZE): New macro.
12356 (window_min_size, shrink_windows, size_window): Use it.
12357 (check_min_window_sizes): Remove. Invalid values of
12358 window-min-height|width are handled by window_min_size_2 now.
12359 (size_window, Fsplit_window, enlarge_window)
12360 (adjust_window_trailing_edge, grow_mini_window): Don't call
12361 check_min_window_sizes.
12362 (window_min_size_2, window_min_size_1, window_min_size):
12363 New argument safe_p for retrieving "safe" minimum sizes.
12364 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12365 (adjust_window_trailing_edge, grow_mini_window):
12366 Adjust arguments of window_min_size... functions.
12367 (shrink_windows): Argument min_size removed. New argument
12368 safe_p allows shrinking windows to their safe minimum sizes.
12369 Calculate minimum size and decide whether a window shall be
12370 deleted for each window individually.
12371 (size_window): When nodelete_p equals 2, tell shrink_windows to
12372 delete windows only if their new minimum size is no more safe.
12373 (shrink_window_lowest_first): Call window_min_size_1 to make
12374 sure to preserve modeline of bottom-most window when resizing
12375 the minibuffer.
12376 (Fset_window_configuration, Fcurrent_window_configuration)
12377 (compare_window_configurations): Do not handle
12378 window-min-height|width any more.
12379 (syms_of_window): Clarify window-min-height|width doc-strings.
12380
123812008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12382
12383 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12384 some more. Copy some of the code from Ftry_completions.
12385 Remove special case code that dates back to initial revision when the
12386 slash was only added when necessary and that can't trigger nowadays.
12387
123882008-04-27 Kenichi Handa <handa@m17n.org>
12389
12390 * font.c (font_prop_validate): Signal `error' instead of `font'.
12391
123922008-04-29 Jason Rumney <jasonr@gnu.org>
12393
12394 * w32fns.c (Fw32_battery_status): New defun.
12395 (syms_of_w32fns): Defsubr it.
12396
123972008-04-28 Andreas Schwab <schwab@suse.de>
12398
12399 * dired.c (file_name_completion): Fix another mixing of encoded
12400 and decoded names.
12401
124022008-04-28 Juanma Barranquero <lekktu@gmail.com>
12403
12404 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12405
124062008-04-27 Juanma Barranquero <lekktu@gmail.com>
12407
12408 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12409
124102008-04-27 Andreas Schwab <schwab@suse.de>
12411
12412 * dired.c (file_name_completion): Fix inappropriate mixing of
12413 encoded and decoded names.
12414
12415 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12416
12417 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12418
124192008-04-26 Eli Zaretskii <eliz@gnu.org>
12420
12421 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12422 2008-03-31, it's not needed anymore with `struct stat' definition
12423 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12424 for the same reasons.
12425
124262008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12427
12428 * m/sparc.h: Additional redefinitions for GNU/Linux.
12429
124302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12431
12432 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12433 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12434 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12435 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12436 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12437 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12438 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12439 Likewise.
12440
12441 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12442 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12443 (mac_ax_number_of_characters): Add externs.
12444 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12445 [USE_MAC_TSM]: Likewise.
12446 (mac_handle_text_input_event) [MAC_OSX]:
12447 Handle kEventTextInputOffsetToPos for no active input area case.
12448 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12449 (mac_handle_document_access_event)
12450 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12451 (install_application_handler) [MAC_OSX]: Register handlers for
12452 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12453 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12454 Register mac_handle_document_access_event.
12455
12456 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12457 Make functions non-static.
12458
124592008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12460
12461 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12462 (read_file_name_completion_ignore_case, insert_default_directory)
12463 (Qdefault_directory): Move to minibuffer.el.
12464 (Fread_file_name): Call the new `read-file-name' instead.
12465
124662008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12467
12468 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12469 Make function non-static.
12470 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12471 Remove function.
12472 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12473 Move to mactoolbox.c.
12474 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12475
12476 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12477 (mac_rect_make): New macro.
12478
12479 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12480 instead of float.
12481 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12482 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12483 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12484 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12485 CGRectMake.
12486 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12487 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12488 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12489 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12490 instead of WindowRef in argument type.
12491 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12492 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12493 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12494 instead of DISPLAY. All uses changed.
12495 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12496 (x_calc_absolute_position): Simplify so as not to use
12497 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12498
12499 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12500 instead of WindowRef in argument type.
12501 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12502 [TARGET_API_MAC_CARBON]: Remove externs.
12503 (create_apple_event, mac_event_parameters_to_lisp)
12504 [TARGET_API_MAC_CARBON]: Add externs.
12505
12506 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12507 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12508 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12509 is clicked.
12510 (x_activate_menubar): Remove extern for saved_menu_event_location.
12511 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12512 Move from mac.c.
12513
125142008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12515
12516 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12517 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12518
125192008-04-23 Jason Rumney <jasonr@gnu.org>
12520
12521 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12522 attributes only for local files.
12523
12524 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12525 default to Qlocal.
12526
125272008-04-22 Juri Linkov <juri@jurta.org>
12528
12529 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12530 read-buffer-to-switch instead of using the letter "B".
12531
125322008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12533
12534 * fileio.c (Qdefault_directory): New variable.
12535 (Fread_file_name): Use it to pass `dir' to the completion functions.
12536
125372008-04-20 Chong Yidong <cyd@stupidchicken.com>
12538
12539 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12540
125412008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12542
12543 * keyboard.c (Vpre_help_message): Remove.
12544 (show_help_echo): Remove default C code.
12545
12546 * dired.c (directory_files_internal, file_name_completion):
12547 Only call ENCODE_FILE if the string is indeed decoded.
12548
125492008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12550
12551 * Makefile.in (TOOLKIT_DEFINES): Remove.
12552 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12553
125542008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12555
12556 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12557 (mactoolbox.o): New target.
12558
12559 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12560 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12561
12562 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12563 Use mac_set_frame_window_background instead of XSetWindowBackground.
12564 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12565 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12566 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12567 instead of SetWindowTitleWithCFString.
12568 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12569 Move function to mactoolbox.c.
12570 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12571 Use mac_set_window_modified instead of SetWindowModified.
12572 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12573 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12574 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12575 FrontNonFloatingWindow. Use mac_activate_window instead of
12576 ActivateWindow. Use mac_active_non_floating_window instead of
12577 ActiveNonFloatingWindow.
12578 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12579 Use mac_show_hourglass and mac_hide_hourglass.
12580 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12581 instead of GetGlobalMouse.
12582 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12583 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12584 Use mac_bring_window_to_front instead of BringToFront.
12585 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12586 mactoolbox.c.
12587 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12588 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12589 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12590 mactoolbox.c.
12591
12592 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12593 (XtPointer): Move typedef from macmenu.c.
12594 (enum button_type): Move enum from macmenu.c.
12595 (widget_value): Move typedef from macmenu.c.
12596 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12597 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12598 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12599 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12600 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12601 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12602 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12603 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12604 (Selection): Move typedef from macselect.c.
12605 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12606 macterm.c.
12607 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12608 (mac_is_window_collapsed, mac_bring_window_to_front)
12609 (mac_send_window_behind, mac_hide_window, mac_show_window)
12610 (mac_collapse_window, mac_front_non_floating_window)
12611 (mac_active_non_floating_window, mac_activate_window)
12612 (mac_move_window_structure, mac_move_window, mac_size_window)
12613 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12614
12615 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12616 (enum mac_menu_kind): Move enum to mactoolbox.c.
12617 (min_menu_id): Move variable to mactoolbox.c.
12618 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12619 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12620 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12621 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12622 [TARGET_API_MAC_CARBON]: Likewise.
12623 (XtPointer): Move typedef to macgui.h.
12624 (enum button_type): Move enum to macgui.h.
12625 (widget_value): Move typedef to macgui.h.
12626 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12627 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12628 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12629 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12630 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12631 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12632 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12633 (popup_activated_flag): Make variable non-static.
12634 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12635 (add_menu_item, fill_menu, dispose_menus):
12636 Move functions to mactoolbox.c.
12637 (restore_show_help_function, menu_target_item_handler)
12638 (install_menu_target_item_handler, mac_handle_dialog_event)
12639 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12640 [TARGET_API_MAC_CARBON]: Likewise.
12641 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12642 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12643 (find_and_call_menu_selection, name_is_separator): Make function
12644 non-static.
12645 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12646 to mactoolbox.c.
12647 (set_frame_menubar): Don't call install_menu_quit_handler.
12648 (menu_item_selection): New variable.
12649 (mac_menu_show): Use create_and_show_popup_menu.
12650 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12651 selection but set variable menu_item_selection. All uses changed.
12652 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12653 Call install_menu_quit_handler. Move to mactoolbox.c.
12654
12655 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12656 (Selection): Move typedef to macgui.h.
12657 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12658 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12659 Make variables non-static.
12660 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12661 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12662 Make functions non-static.
12663 (Vmac_service_selection) [MAC_OSX]: Likewise.
12664 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12665 (mac_valid_selection_target_p, mac_clear_selection)
12666 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12667 (mac_put_selection_value, mac_selection_has_target_p)
12668 (mac_get_selection_value, mac_get_selection_target_list)
12669 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12670 Move functions to mactoolbox.c.
12671 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12672 Likewise.
12673 (copy_scrap_flavor_data, mac_handle_service_event)
12674 (install_service_handler) [MAC_OSX]: Likewise.
12675 (syms_of_macselect) <Vmac_dnd_known_types>:
12676 Use mac_dnd_default_known_types.
12677
12678 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12679 Move to mactoolbox.c.
12680 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12681 (Fx_selection_owner_p): Add EXFUN.
12682 (install_window_handler, remove_window_handler, XSetWindowBackground):
12683 Remove externs.
12684 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12685 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12686 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12687 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12688 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12689 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12690 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12691 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12692 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12693 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12694 (mac_valid_selection_target_p, mac_clear_selection)
12695 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12696 (mac_put_selection_value, mac_selection_has_target_p)
12697 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12698 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12699 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12700 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12701 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12702 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12703 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12704 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12705 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12706
12707 * mactoolbox.c: New file.
12708
127092008-04-18 Jason Rumney <jasonr@gnu.org>
12710
12711 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12712
127132008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * character.c (Fmultibyte_char_to_unibyte):
12716 Return latin1 chars unchanged.
12717
12718 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12719 relocated if it points to `name'.
12720
127212008-04-17 Kenichi Handa <handa@m17n.org>
12722
12723 * data.c (Faset): Allow setting a multibyte character in an
12724 ASCII-only unibyte string.
12725
12726 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12727
127282008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12729
12730 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12731 done in config.h.
12732
127332008-04-16 Juanma Barranquero <lekktu@gmail.com>
12734
12735 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12736 (Fchar_direction): Add usage in the docstring.
12737
127382008-04-15 Chong Yidong <cyd@stupidchicken.com>
12739
12740 * keyboard.c (read_key_sequence): Remove always-true checks.
12741
127422008-04-14 Jason Rumney <jasonr@gnu.org>
12743
12744 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12745 compatibility struct, for better underline positioning.
12746
127472008-04-13 David Hansen <david.hansen@gmx.net>
12748
12749 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12750 string.
12751
127522008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12753
12754 * m/hp800.h (XUINT, XSET): Remove.
12755
127562008-04-12 Juanma Barranquero <lekktu@gmail.com>
12757
12758 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12759 previous change.
12760
127612008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12762
12763 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12764 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12765
127662008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * keymap.h (map_keymap_canonical): Declare.
12769 * xmenu.c (single_keymap_panes): Use it.
12770
127712008-04-11 Glenn Morris <rgm@gnu.org>
12772
12773 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12774 set the target's value to that of the alias.
12775
127762008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * term.c (set_tty_color_mode): Left over typo.
12779
127802008-04-10 Michael Albinus <michael.albinus@gmx.de>
12781
12782 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12783 only after check for file name handler functions. Signal, when
12784 native functionality is not supported.
12785 (syms_of_fileio): Declare it unconditionally.
12786
127872008-04-10 Jason Rumney <jasonr@gnu.org>
12788
12789 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12790 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12791
12792 * w32.c (logon_network_drive): Also logon to remote drives that
12793 are mapped to drive letters.
12794
127952008-04-10 Glenn Morris <rgm@gnu.org>
12796
12797 * xdisp.c (truncate-partial-width-windows): Doc fix.
12798
127992008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12800
12801 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12802 Move functions to minibuffer.el.
12803 (syms_of_fileio): Don't declare them.
12804
128052008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12806
12807 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12808 (syms_of_minibuf): Remove its initialization.
12809
12810 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12811
128122008-04-09 Juanma Barranquero <lekktu@gmail.com>
12813
12814 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12815
128162008-04-09 Jason Rumney <jasonr@gnu.org>
12817
12818 * makefile.w32-in (distclean): Delete makefile too.
12819 (maintainer-clean): New target.
12820
12821 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12822
12823 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12824 for new font backend and composite cases.
12825
128262008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12827
12828 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12829 Most of the code moved to run_timers.
12830 (do_pending_atimers): Call run_timers.
12831 (run_timers): New function.
12832
12833 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12834 run atimers.
12835
12836 * process.c (wait_reading_process_output): The same as above.
12837
128382008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12839
12840 * minibuf.c (last_exact_completion): Remove variable.
12841 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12842 (complete_and_exit_1, complete_and_exit_2)
12843 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12844 (Fdisplay_completion_list, display_completion_list_1)
12845 (Fminibuffer_completion_help, Fself_insert_and_exit)
12846 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12847 minibuffer.el.
12848 (syms_of_minibuf): Remove corresponding initializations.
12849
12850 * keyboard.c (Qdeactivate_mark): New var.
12851 (command_loop_1): Use it to call `deactivate-mark'.
12852 (syms_of_keyboard): Initialize it.
12853
12854 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12855 to another frame.
12856 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12857 Don't call set_tty_color_mode.
12858 (store_frame_param): Reset previous_frame rather than call
12859 set_tty_color_mode.
12860 * term.c (set_tty_color_mode): Rewrite.
12861 * dispextern.h (set_tty_color_mode): New type.
12862 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12863
128642008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12865
12866 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12867 for generic chars, which do not exist any more in emacs-unicode.
12868
128692008-04-08 Michael Albinus <michael.albinus@gmx.de>
12870
12871 * coding.c (detect_coding_emacs_mule)
12872 (Ffind_operation_coding_system): Fix typo.
12873
128742008-04-08 Jason Rumney <jasonr@gnu.org>
12875
12876 * w32uniscribe.c (SNAME): Extract only symbol name.
12877
12878 * w32font.h (struct w32_metric_cache): New struct.
12879 (w32font_info): Use it.
12880 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12881 (CACHE_BLOCKSIZE): New constants.
12882
12883 * w32font.c (Qja, Qko, Qzh): New symbols.
12884 (syms_of_w32font): Initialise them.
12885 (font_matches_spec): Use them to filter by language.
12886 (recompute_cached_metrics): Remove function.
12887 (compute_metrics, clear_cached_metrics): New functions.
12888 (w32font_encode_char): Use them to manage metric cache.
12889 (w32font_text_extents): Cache metrics for all glyphs on demand.
12890 Delay converting glyph indices to WORD until needed.
12891 (w32font_open_internal): Initialize metric cache to empty.
12892 (registry_to_w32_charset): Charset should always be a symbol.
12893 (fill_in_logfont, list_all_matching_fonts): Family should
12894 always be a symbol.
12895
128962008-04-06 Jason Rumney <jasonr@gnu.org>
12897
12898 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12899 Give up if glyph indices not supported. Use uniscribe obtained
12900 ABC widths for individual metrics. Map glyph clusters back to
12901 characters using fClusterStart flag. Return number of glyphs
12902 produced, not chars processed.
12903 (uniscribe_shape): Map char at FROM to current glyph.
12904
129052008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12906
12907 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12908 Use SetMenuItemHierarchicalMenu.
12909
129102008-04-05 Jason Rumney <jasonr@gnu.org>
12911
12912 * image.c (pbm_load): Allow color values up to 65535.
12913 Throw an error if max_color_idx is outside the supported range.
12914 Report an error when image size is invalid.
12915 Read two bytes at a time when raw images have max_color_idx above 255.
12916
129172008-04-05 Eli Zaretskii <eliz@gnu.org>
12918
12919 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12920 cFileName a file name that includes `?' characters, use the 8+3
12921 alias in cAlternateFileName instead.
12922
129232008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12924
12925 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12926 append "CCL: Quitted" when the CCL program is quitted.
12927 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12928
12929 * ccl.h (struct ccl_program): New member quit_silently.
12930
129312008-04-05 Chong Yidong <cyd@stupidchicken.com>
12932
12933 * search.c (compile_pattern_1): Treat non-nil and non-string of
12934 search-spaces-regexp as nil.
12935
12936 * minibuf.c (Fassoc_string): Tweak docstring.
12937
129382008-04-05 Eli Zaretskii <eliz@gnu.org>
12939
12940 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12941 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12942 2008-03-14 to force inode be positive.
12943
12944 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12945 _S_* ones, since we now use our own sys/stat.h.
12946 (stat, fstat): Don't mangle the inode number.
12947 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12948
129492008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12950
12951 * frame.h (struct frame): Give one more bit to `visible' since we use
12952 values larger than 1 to indicate obscured frames on ttys.
12953
12954 * keymap.c (Qkeymap_canonicalize): New var.
12955 (Fmap_keymap_internal): New fun.
12956 (describe_map): Use keymap-canonicalize.
12957
12958 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12959 (Fundo_boundary): Set them.
12960 (syms_of_undo): Initialize them.
12961 (record_point): Use them instead of last_point_position*.
12962 (last_undo_buffer): Change type.
12963
129642008-04-04 Jason Rumney <jasonr@gnu.org>
12965
12966 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12967 (recompute_cached_metrics): Don't set ascent and descent per char.
12968
12969 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12970 (uniscribe_check_otf): Add GC protection before consing.
12971 Rearrange loop for counting features.
12972
129732008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12976 buffer with byte-size of source buffer.
12977
129782008-04-03 Chong Yidong <cyd@stupidchicken.com>
12979
12980 * callint.c (Fcall_interactively): Handle temporary region even
12981 when shift-select-mode is off.
12982
129832008-04-03 Jason Rumney <jasonr@gnu.org>
12984
12985 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12986
129872008-04-03 Kenichi Handa <handa@m17n.org>
12988
12989 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12990 (CATEGORY_MASK_UTF_16): Likewise.
12991 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12992 binary file.
12993 (detect_coding): Add null-byte detection for a binary file.
12994 (detect_coding_system): Likewise.
12995
129962008-04-03 Jason Rumney <jasonr@gnu.org>
12997
12998 * w32uniscribe.c: New file.
12999
13000 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13001
13002 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13003
13004 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13005 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13006 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13007 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13008 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13009 (Qphonetic): New symbols.
13010 (syms_of_w32font): Initialize them.
13011 (font_supported_scripts): Use them.
13012 (w32font_list_family): List all charsets.
13013 (w32font_text_extents, recompute_cached_metrics): Fix metric
13014 calculations.
13015 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13016 Give opentype fonts their own format.
13017 (font_matches_spec): New arguments backend and logfont.
13018 Handle :otf spec for uniscribe backend.
13019 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13020 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13021
13022 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13023 font backend.
13024 (globals_of_w32fns): Initialize uniscribe font backend.
13025
13026 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13027 dependencies.
13028 (w32uniscribe.$(O)): New file to build.
13029 (FONT_OBJ): Include w32uniscribe.$(O).
13030 (LIBS): Add uniscribe libraries.
13031
13032 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13033
130342008-04-02 Chong Yidong <cyd@stupidchicken.com>
13035
13036 * callint.c (Vshift_select_mode): New var.
13037 (Finteractive): Document new ^ spec.
13038 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13039 is present.
13040
13041 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13042 (command_loop_1): Avoid running the direct display versions of
13043 forward-char and backward-char if shift-selection may occur.
13044 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13045 shift-translation takes place.
13046
13047 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13048 avoid clobbering by define-minor-mode.
13049
13050 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13051 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13052
13053 * syntax.c (Fforward_word): Add ^ interactive spec.
13054
13055 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13056 (Fscroll_right): Add ^ interactive spec.
13057
130582008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13061
13062 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13063
13064 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13065
130662008-03-31 Juri Linkov <juri@jurta.org>
13067
13068 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13069
130702008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13071
13072 * gtkutil.c (xg_set_geometry): Fix indentation.
13073 (xg_resize_outer_widget): Remove.
13074 (x_wm_size_hint_off): Fix indentation.
13075 (xg_frame_set_char_size): Call flush_and_sync after
13076 gtk_window_resize.
13077 (x_wm_set_size_hint): Pass NULL as geometry window to
13078 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13079 Add menu bar and tool bar height to base height.
13080 (xg_update_frame_menubar, free_frame_menubar)
13081 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13082 (update_frame_tool_bar, free_frame_tool_bar):
13083 Change xg_resize_outer_widget to xg_frame_set_char_size.
13084
130852008-03-30 Michael Albinus <michael.albinus@gmx.de>
13086
13087 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13088 (Fdbus_call_method): New parameter TIMEOUT.
13089 (dbus-send-signal): Optimize UNGCPRO call.
13090
130912008-03-29 Juri Linkov <juri@jurta.org>
13092
13093 * window.c (Fdisplay_buffer): Move call to
13094 Vsplit_window_preferred_function out of conditions that check
13095 if window is eligible for vertical splitting.
13096 When Vsplit_window_preferred_function is non-nil, call it and use
13097 its non-nil return value as window. Otherwise, continue doing
13098 vertical splitting using Fsplit_window with arg horflag=nil.
13099 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13100 default value from `split-window' to nil.
13101
131022008-03-29 Juri Linkov <juri@jurta.org>
13103
13104 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13105 for interactive code letters 'b' and 'B'.
13106
131072008-03-29 Eli Zaretskii <eliz@gnu.org>
13108
13109 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13110 multibyte string.
13111
131122008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13113
13114 * keyboard.c (pending_funcalls): New var.
13115 (timer_check): Run it.
13116 (syms_of_keyboard): Initialize it.
13117 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13118 (Vdelete_terminal_functions): New vars.
13119 (syms_of_terminal): Initialize them.
13120 (Fdelete_terminal): Run delete-terminal-functions.
13121 * xdisp.c (safe_eval): Rewrite.
13122 (safe_call2): New fun.
13123 * frame.c (Qdelete_frame_functions): New var.
13124 (syms_of_frame): Initialize it.
13125 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13126 * lisp.h (safe_call2, pending_funcalls): Declare.
13127
131282008-03-28 Andreas Schwab <schwab@suse.de>
13129
13130 * indent.c (Fmove_to_column): Move declaration before statements.
13131
131322008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13133
13134 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13135 (struct frame): Use bit fields for boolean vars.
13136
13137 * process.c (server_accept_connection): Simplify naming.
13138 (emacs_get_tty_pgrp): Use SDATA.
13139
13140 * coding.c (decode_coding_object): Fix last change.
13141
131422008-03-27 Jason Rumney <jasonr@gnu.org>
13143
13144 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13145
131462008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13147
13148 * charset.c (Fdefine_charset_internal): Change the way of
13149 registering charsets in Vcharset_order_list.
13150 (syms_of_charset): Make the charset `eight-bit' supplementary.
13151
131522008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13153
13154 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13155 operations, to avoid having the difference between pointers
13156 overflow.
13157
131582008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13159
13160 * indent.c (check_display_width): New fun.
13161 (scan_for_column): Use it.
13162
13163 * data.c (syms_of_data): Mark most-positive-fixnum and
13164 most-negative-fixnum as constants.
13165
13166 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13167
13168 * indent.c (scan_for_column): Extract from current_column_1.
13169 Merge with the same code from Fmove_to_column.
13170 (current_column_1, Fmove_to_column): Use it.
13171
131722008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13173
13174 * keymap.c (map_keymap_internal): New fun.
13175 (map_keymap): Use it.
13176 (Fmap_keymap_internal): New fun.
13177 (Fmap_keymap): Remove left-out test from before make_save_value.
13178
13179 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13180
13181 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13182 Use XCAR/XCDR.
13183
13184 * process.h (struct Lisp_Process): Remove filter_multibyte.
13185 * process.c (QCfilter_multibyte): Remove.
13186 (setup_process_coding_systems): Don't use filter_multibyte.
13187 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13188 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13189 (Fset_process_filter_multibyte): Change the coding-system to
13190 approximate the previous behavior.
13191 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13192 coding-system.
13193
13194 * coding.c (decode_coding_object): When not decoding into a buffer,
13195 obey the coding system's preference of (uni|multi)byte.
13196
131972008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13198
13199 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13200 every char is changed and has a different byte-length.
13201 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13202 Fix int -> EMACS_INT.
13203
132042008-03-23 David Hansen <david.hansen@gmx.net>
13205
13206 * dbusbind.c (xd_read_message): Remove extra copying of message
13207 strings. Check for NULL `interface' or `member'.
13208
132092008-03-22 Eli Zaretskii <eliz@gnu.org>
13210
13211 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13212 cFileName a file name that includes `?' characters, use the 8+3
13213 alias in cAlternateFileName instead.
13214
132152008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13216
13217 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13218
132192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13220
13221 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13222 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13223 work on current_buffer only instead (that was already the case
13224 for some of the code anyway).
13225 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13226 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13227 (SET_PT, SET_PT_BOTH): Adjust.
13228 * intervals.h (set_point, temp_set_point, set_point_both)
13229 (temp_set_point_both): Remove redundant declarations.
13230
132312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13232
13233 * fileio.c (Finsert_file_contents):
13234 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13235 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13236 when buffer != current_buffer anyway.
13237
132382008-03-20 Andreas Schwab <schwab@suse.de>
13239
13240 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13241 as default.
13242
132432008-03-19 Jason Rumney <jasonr@gnu.org>
13244
13245 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13246 (syms_of_w32fns): Initialize them.
13247 (HOURGLASS_ID): New constant.
13248 (x_window_to_frame): Don't check hourglass_window.
13249 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13250 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13251 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13252 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13253 Only change the cursor if hourglass is not active.
13254 (Fx_create_frame): Initialize frame's current_cursor.
13255 (hourglass_atimer): Remove.
13256 (hourglass_started): New function.
13257 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13258 (show_hourglass): Adapt to w32, changing argument to frame.
13259
13260 * w32term.h (struct w32_output): Remove hourglass_window.
13261 Add current_cursor.
13262
13263 * eval.c (call_debugger, Fsignal):
13264 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13265 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13266 (Fexecute_extended_command, cancel_hourglass_unwind):
13267 * minibuf.c (read_minibuf):
13268 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13269
132702008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13271
13272 * window.c (run_funs): New fun.
13273 (run_window_configuration_change_hook): Use it to run the buffer-local
13274 and the global part of the hook.
13275
13276 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13277 (unwind_format_mode_line): Restore selected window.
13278 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13279
132802008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13281
13282 * editfns.c (Fchar_equal): Check they are valid characters.
13283
13284 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13285
132862008-03-17 Andreas Schwab <schwab@suse.de>
13287
13288 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13289 against a charset.
13290
13291 * lisp.h (Fbuffer_list): Declare.
13292
132932008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13294
aac0c6e3
MR
13295 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13296 handlebox_widget is != 0.
13297
132982008-03-16 Juri Linkov <juri@jurta.org>
13299
13300 * callint.c (Fcall_interactively): For interactive code letters
13301 'b' and 'B' put the buffer list into the list of default "future"
13302 values of the minibuffer.
13303
133042008-03-16 Andreas Schwab <schwab@suse.de>
13305
13306 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13307 modifiers.
13308
13309 * regex.c (re_match_2_internal): Correct matching of a charset
13310 against latin-1 characters.
13311
133122008-03-16 Kenichi Handa <handa@m17n.org>
13313
13314 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13315 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13316 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13317 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13318 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13319 CHAR_STRING_ADVANCE.
13320 (produce_chars): Fix for the case that the source and the
13321 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13322 instead of CHAR_STRING_ADVANCE.
13323 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13324 STRING_CHAR_ADVANCE.
13325
133262008-03-15 Andreas Schwab <schwab@suse.de>
13327
13328 * regex.c (re_match_2_internal): Correct matching of eight bit
13329 characters in unibyte strings.
13330
133312008-03-15 Martin Rudalics <rudalics@gmx.at>
13332
13333 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13334 at end of range when it coincides with the end of the buffer.
13335
133362008-03-14 Eli Zaretskii <eliz@gnu.org>
13337
13338 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13339
13340 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13341
133422008-03-14 Jason Rumney <jasonr@gnu.org>
13343
13344 * editfns.c (initial_tz): New variable.
13345 (syms_of_editfns): Initialize it.
13346 (Fset_time_zone_rule): Set it when first called.
13347 Use it when TZSTRING is nil.
13348
13349 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13350 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13351 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13352 (globals_of_w32fns): Initialize them.
13353 (compute_tip_xy): Use them to position tooltips.
13354
133552008-03-14 Glenn Morris <rgm@gnu.org>
13356
13357 * emacs.c (main): Revert previous change.
13358 (standard_args): Revert -internal-script back to -scriptload,
13359 and remove the long-option form.
13360
133612008-03-13 Glenn Morris <rgm@gnu.org>
13362
13363 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13364 Remove option -enable-font-backend.
13365
133662008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13367
13368 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13369
133702008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13371
13372 * xterm.c (x_connection_closed): For GTK: If this is the last
13373 terminal just exit without closing the display.
13374
133752008-03-11 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32font.c (w32font_full_name): Use floor to round.
13378
f0131492 133792008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13380
13381 * sound.c (alsa_configure): Declare vol at beginning of block.
13382
13383 * fontset.c (Ffontset_info): Remove extra semicolon.
13384
133852008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13386
13387 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13388 size of resulting string.
13389
133902008-03-10 Jason Rumney <jasonr@gnu.org>
13391
13392 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13393
133942008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13395
13396 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13397 Don't pretend as if characters with display property haven't been
13398 consumed for string-replacing-string case.
13399
134002008-03-08 Kim F. Storm <storm@cua.dk>
13401
13402 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13403 (get_next_display_element, next_element_from_string)
13404 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13405
134062008-03-08 Andreas Schwab <schwab@suse.de>
13407
13408 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13409
134102008-03-06 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13413 when charset not specified. Only translate ANSI to unicode when
13414 font_type is truetype.
13415 (w32font_coverage_ok): New function.
13416 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13417
134182008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13419
13420 * lread.c (Fread_char): Resolve modifiers.
13421 (Fread_char_exclusive): Likewise.
13422
13423 * character.c (char_resolve_modifier_mask): New function.
13424 (char_string): Use char_resolve_modifier_mask.
13425 (Fchar_resolve_modifiers): New function.
13426 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13427 function.
13428
134292008-03-04 Jason Rumney <jasonr@gnu.org>
13430
13431 * makefile.w32-in: Always include w32font.c in the build.
13432 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13433
134342008-03-04 Andreas Schwab <schwab@suse.de>
13435
13436 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13437 (versionclean): Likewise.
13438
134392008-03-04 Juanma Barranquero <lekktu@gmail.com>
13440
13441 * .cvsignore: Add oo.
13442
134432008-03-03 Andreas Schwab <schwab@suse.de>
13444
13445 * coding.c (decode_coding_object): Inhibit gap shrinking while
13446 decoding in place.
13447
134482008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13449
13450 * w32term.c: Remove unused include "gnu.h".
13451 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13452
13453 * gnu.h: Rename to ...
13454 * emacs-icon.h: ... this.
13455 * xterm.c: Use emacs-icon.h instead of gnu.h.
13456 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13457
134582008-03-03 Juanma Barranquero <lekktu@gmail.com>
13459
13460 * w32font.c: Include math.h.
13461
134622008-03-03 Jason Rumney <jasonr@gnu.org>
13463
13464 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13465 Compute options separately.
13466 (w32font_open_internal): Set glyph_idx before caching metrics.
13467
13468 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13469 Define if system headers don't.
13470 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13471 (w32font_encode_char): Don't declare here.
13472
13473 * w32font.c (Quniscribe, QCformat): New symbols.
13474 (syms_of_w32font): Define them.
13475 (w32font_has_char): Indicate uncertainty.
13476 (w32font_encode_char): Encode as glyph point. Make static.
13477 (recompute_cached_metrics): New function.
13478 (w32font_open_internal): Use it. Set font to use glyph points
13479 initially. Set format based on type of font.
13480 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13481 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13482 on it. Set format based on information available here.
13483 (add_font_entity_to_list): Identify backend based on opentype_only.
13484
134852008-03-02 Andreas Schwab <schwab@suse.de>
13486
13487 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13488
13489 * coding.c (decode_coding_big5, produce_chars):
13490 Fix typos in last change.
13491
134922008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13493
13494 * gnu.h: New icon.
13495
134962008-03-02 Kenichi Handa <handa@m17n.org>
13497
13498 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13499 `dos', don't decode '\r' if that is the last in the source.
13500 (decode_coding_utf_16, decode_coding_emacs_mule)
13501 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13502 (decode_coding_raw_text, decode_coding_charset): Likewise.
13503 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13504
135052008-03-01 Jason Rumney <jasonr@gnu.org>
13506
13507 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13508
135092008-03-01 Kim F. Storm <storm@cua.dk>
13510
13511 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13512
135132008-03-01 Jason Rumney <jasonr@gnu.org>
13514
13515 * w32font.c (w32font_full_name): New function.
13516 (w32font_open_internal): Use it.
13517
135182008-03-01 Kim F. Storm <storm@cua.dk>
13519
13520 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13521
135222008-03-01 Jason Rumney <jasonr@gnu.org>
13523
13524 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13525
135262008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13527
13528 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13529 xg_frame_resized when the event is for the edit widget.
13530
13531 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13532
13533 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13534 set_char_size.
13535 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13536 operations on widgets here. Just set frame size if needed.
13537 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13538 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13539 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13540 the whole frame.
13541 (xg_create_tool_bar): Move attachment of the tool bar to
13542 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13543 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13544
135452008-03-01 Jason Rumney <jasonr@gnu.org>
13546
13547 * w32fns.c (w32_msg_pump): Disable debug code.
13548
135492008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13550
13551 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13552
135532008-02-29 Chong Yidong <cyd@stupidchicken.com>
13554
13555 * xdisp.c (next_overlay_string): Don't set
13556 overlay_strings_at_end_processed_p if we're currently reading from
13557 a display string.
13558
135592008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13560
13561 * xdisp.c (get_overlay_strings_1): Fix typo.
13562
135632008-02-29 Chong Yidong <cyd@stupidchicken.com>
13564
13565 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13566
135672008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13568
13569 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13570
13571 * xdisp.c (display_mode_element): Cancel the previous change.
13572 (decode_mode_spec): Likewise.
13573 (handle_auto_composed_prop): Don't make composition if it->string
13574 is a string.
13575
135762008-02-27 Kim F. Storm <storm@cua.dk>
13577
13578 * lisp.h (GLYPH): Change type from int to struct with separate char
13579 and face_id members.
13580 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13581 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13582 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13583 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13584 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13585 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13586 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13587 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13588 handle new Lisp glyph code encoding, either an integer or a cons.
13589
13590 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13591 (GLYPH_ALIAS): Delete.
13592 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13593 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13594 (GLYPH_FROM_CHAR): Replace macro by ...
13595 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13596
13597 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13598 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13599 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13600 (GLYPH_INVALID_P): New macro.
13601 (spec_glyph_lookup_face): Update prototype.
13602
13603 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13604 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13605 new glyph code encoding.
13606 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13607 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13608
13609 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13610 Adapt to new glyph type and new glyph code encoding.
13611
13612 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13613
13614 * indent.c (current_column, current_column_1, Fmove_to_column)
13615 (compute_motion): Adapt to new glyph code encoding.
13616
13617 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13618
136192008-02-27 Chong Yidong <cyd@stupidchicken.com>
13620
13621 * process.c (wait_reading_process_output): Check for window
13622 changes caused by timers.
13623 Suggested by Johan Bockgård.
13624
136252008-02-27 Glenn Morris <rgm@gnu.org>
13626
13627 * emacs.c (USAGE1): Add `--disable-font-backend'.
13628
136292008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13630
13631 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13632 is made to the buffer.
13633
136342008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13635
13636 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13637 (face_at_string_position):
13638 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13639 (face_at_string_position):
13640 * xdisp.c (display_string, next_overlay_change):
13641 * buffer.h (overlays_at):
13642 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13643 Update callers.
13644
136452008-02-26 Chong Yidong <cyd@stupidchicken.com>
13646
13647 * editfns.c (Fformat): Doc fix.
13648
136492008-02-26 Juanma Barranquero <lekktu@gmail.com>
13650
13651 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13652 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13653 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13654
136552008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13656
13657 * buffer.c (Fbuffer_swap_text): New function.
13658 (syms_of_buffer): Defsubr it.
13659
136602008-02-25 Chong Yidong <cyd@stupidchicken.com>
13661
13662 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13663
136642008-02-25 Jason Rumney <jasonr@gnu.org>
13665
13666 * w32font.c (w32font_draw): Draw one character at a time when padding.
13667
136682008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13669
13670 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13671 Handle a nil arg. Use run_window_configuration_change_hook.
13672 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13673 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13674 Use run_window_configuration_change_hook.
13675
136762008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13677
13678 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13679 1-pixel width.
13680
136812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13682
13683 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13684 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13685 if the glyph in the font is zero pixel with.
13686
13687 * dispextern.h (struct glyph_string): New member padding_p.
13688
13689 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13690
13691 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13692
13693 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13694
13695 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13696
13697 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13698
136992008-02-25 Jason Rumney <jasonr@gnu.org>
13700
13701 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13702
137032008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13704
13705 Allow fine-grained image-cache flushing.
13706 * dispextern.h (struct image): Add `dependencies' field.
13707 (clear_image_caches): Change arg to Lisp_Object.
13708 * image.c (make_image): Initialize `dependencies' field.
13709 (clear_image_cache): Change arg to allow fine-grained flushing.
13710 Perform the flush even if image-cache-eviction-delay is nil.
13711 (clear_image_caches): Change arg to Lisp_Object.
13712 (Fclear_image_cache): Expand meaning of the argument.
13713 (mark_image): Mark `dependencies' field.
13714 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13715 (lface_hash): Use XHASH rather than XFASTINT.
13716 (face_at_buffer_position): Fix int -> EMACS_INT position.
13717 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13718 (select_frame_for_redisplay): Remove code duplication.
13719 (redisplay_internal): Adapt arg to call to clear_image_caches.
13720
137212008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13722
13723 * s/vms4-0.h:
13724 * s/vms4-2.h:
13725 * s/vms4-4.h:
13726 * s/vms5-5.h: Remove, unused.
13727
13728 * s/irix5-2.h:
13729 * s/irix6-0.h:
13730 * s/riscos5.h:
13731 * s/mach-bsd4-3.h:
13732 * m/mips4.h: Remove files for obsolete systems.
13733
13734 * Makefile.in:
13735 * filelock.c:
13736 * unexmips.c:
13737 * m/hp9000s300.h:
13738 * m/iris4d.h:
13739 * s/aix3-1.h:
13740 * s/hpux.h:
13741 * s/msdos.h:
13742 * s/usg5-0.h:
13743 * s/usg5-2-2.h:
13744 * s/usg5-2.h:
13745 * s/usg5-3.h: Remove references to obsolete variables.
13746
13747 * s/irix5-0.h: Remove, move all the contents ...
13748 * s/irix6-5.h: ... here. Simplify.
13749 * config.in: Regenerate.
13750
137512008-02-24 Jason Rumney <jasonr@gnu.org>
13752
13753 * w32term.c (x_draw_glyph_string_background): Clear the background
13754 manually when cleartype is in use.
13755 (x_draw_glyph_string_foreground): Draw text transparently when
13756 cleartype is in use.
13757
13758 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13759 a font into it unless we have to.
13760
137612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13762
13763 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13764 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13765
aac0c6e3
MR
137662008-02-18 Jason Rumney <jasonr@gnu.org>
13767
13768 * w32fns.c (Fw32_shell_execute): Encode parameters.
13769
137702008-02-09 Eli Zaretskii <eliz@gnu.org>
13771
13772 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13773
137742008-02-05 Juanma Barranquero <lekktu@gmail.com>
13775
13776 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13777
137782008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13779
13780 * xterm.c (x_set_offset): Don't change the gravity if
13781 CHANGE_GRAVITY is -1.
13782
137832008-02-23 Chong Yidong <cyd@stupidchicken.com>
13784
13785 * fileio.c (auto_save_error_occurred): New var.
13786 (auto_save_error): Set it.
13787 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13788 error occurred.
13789
137902008-02-23 Eli Zaretskii <eliz@gnu.org>
13791
13792 * w32.c (globals_of_w32): Add initializations for
13793 g_b_init_get_sid_sub_authority and
13794 g_b_init_get_sid_sub_authority_count.
13795
137962008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13797
13798 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13799 (font_parse_xlfd): Use them for sanity check.
13800 (Finternal_set_font_style_table): Make sure the table is bijective.
13801
13802 Consolidate the image_cache to the terminal struct.
13803 * termhooks.h (P_): Remove redundant def.
13804 (struct terminal): New field `image_cache'.
13805 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13806 of FRAME_X_IMAGE_CACHE.
13807 * xterm.h (struct x_display_info): Remove image_cache field.
13808 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13809 * w32term.h (struct w32_display_info): Remove image_cache field.
13810 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13811 * macterm.h (struct mac_display_info): Remove image_cache field.
13812 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13813 * xterm.c (x_term_init):
13814 * w32term.c (w32_term_init):
13815 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13816 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13817 Remove declarations.
13818 (clear_image_caches, mark_image_cache): New declarations.
13819 * xfaces.c (clear_face_cache):
13820 * xdisp.c (redisplay_internal): Use clear_image_caches.
13821 * image.c (clear_image_cache): Don't check that a frame is on
13822 a window-system before checking if it shares the same cache.
13823 (clear_image_caches): New function.
13824 (Fclear_image_cache): Use it.
13825 (mark_image): Move from allo.c.
13826 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13827 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13828 (mark_object): Don't call mark_image_cache for frames.
13829 (mark_terminals): Call mark_image_cache.
13830
13831 * lisp.h (Fdelete_terminal): Declare.
13832
13833 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13834 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13835 wrong_type_argument.
13836
138372008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13838
13839 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13840 malayalam.el, and tamil.el. Add sinhala.el.
13841
138422008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13843
13844 * xterm.c (x_connection_closed): Consolidate identical tests.
13845 (x_delete_terminal): Don't crash if called via x_connection_closed.
13846
138472008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13848
13849 * xdisp.c (decode_mode_spec): New arg string.
13850 (display_mode_element): Adjust for the above change.
13851
138522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13853
13854 * callint.c (Fcall_interactively): Use AREF.
13855
138562008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13857
13858 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13859
138602008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13861
13862 * xfns.c (Fx_show_tip): Set string to " " if empty.
13863
138642008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13865
13866 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13867 with Qt.
13868
138692008-02-17 Kenichi Handa <handa@m17n.org>
13870
13871 * ftfont.c (ftfont_shape): Return Lispy number.
13872
13873 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13874 for GCs.
13875 (Finternal_set_font_selection_order): Call font_update_sort_order
13876 only when enable_font_backend is set.
13877 (realize_x_face): Set face->font_info to that of default face only
13878 when enable_font_backend is set.
13879
13880 * xdisp.c (handle_composition_prop): Set it->c to the fist
13881 character of the composed region.
13882 (fill_composite_glyph_string): Set base_face->font_info to
13883 s->font_info. Get a face for ascii from base_face->ascii_face.
13884 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13885 with a face already decided.
13886 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13887 non-negative.
13888 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13889 call font_prepare_composition unconditionally.
13890
13891 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13892
13893 * xterm.h (struct x_display_info): New member font.
13894
13895 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13896 (x_set_mouse_face_gc, x_new_font): Likewise.
13897 (x_term_init): Setup display_info->font.
13898 (x_delete_terminal): Free display_info->font.
13899
13900 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13901
13902 * ftxfont.c (ftxfont_default_fid): Delete it.
13903 (ftxfont_open): Set xfont->fid to 0.
13904 (ftxfont_end_for_frame): Clear data specific to the frame and the
13905 font-driver.
13906
13907 * xftfont.c (xftfont_default_fid): Delete it.
13908 (xftfont_open): Set xfont->fid to 0.
13909
13910 * fontset.c (FONTSET_OBJLIST): New macro.
13911 (fontset_find_font): Update font-object list of the fontset.
13912 (free_realized_fontset): New function.
13913 (free_face_fontset): Call free_realized_fontset.
13914 (Ffont_info): Call font_close_object only when enable_font_backend
13915 is set.
13916
13917 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13918 [HAVE_NTGUI]: Include w32term.h.
13919 [MAC_OS]: Include macterm.ch.
13920 (font_otf_ValueRecord): Use make_number.
13921 (font_finish_cache): Fix handling of reference count.
13922 (font_clear_cache): Update num_fonts.
13923 (font_open_entity): Update smallest_char_width and
13924 smallest_font_height of the frame.
13925 (font_close_object): Update num_fonts.
13926 (Fclear_font_cache): Fix finding the target cache data.
13927
139282008-02-16 Glenn Morris <rgm@gnu.org>
13929
13930 * fontset.c (Finternal_char_font): Fix compilation warning.
13931
139322008-02-16 Eli Zaretskii <eliz@gnu.org>
13933
13934 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13935 instead of char arrays. Enlarge the size of array passed to
13936 get_token_information.
13937
13938 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13939 warnings.
13940
139412008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13942
13943 * .gdbinit: Don't set `args', it breaks gdb --args.
13944
139452008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13946
13947 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13948 within a narrowed buffer.
13949
139502008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13951
13952 * coding.c (decode_coding_object, encode_coding_object):
13953 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13954
139552008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13956
13957 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13958 hardcoding 1.
13959 (detect_coding_system):
13960 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13961 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13962 * insdel.c (insert_from_gap):
13963 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13964 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13965 (string_to_multibyte):
13966 * character.c (chars_in_text, multibyte_chars_in_text):
13967 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13968
13969 * character.h (FETCH_STRING_CHAR_ADVANCE)
13970 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13971 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13972 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13973
13974 * casefiddle.c (casify_region): Only call after-change and composition
13975 functions on the part of the region that was changed.
13976
13977 * keyboard.c (read_avail_input):
13978 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13979
139802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13981
13982 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13983 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13984
139852008-02-11 Juanma Barranquero <lekktu@gmail.com>
13986
13987 * w32menu.c (push_submenu_start, push_submenu_end)
13988 (push_left_right_boundary, push_menu_pane, push_menu_item):
13989 * keyboard.c (read_key_sequence): Don't pass args with side effects
13990 to AREF, it fails when compiling with -DENABLE_CHECKING.
13991
139922008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13993
13994 * Makefile.in (${lispsource}international/charprop.el):
13995 Delete this target.
13996
13997 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13998 emacs-unicode-2.
13999
140002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14001
14002 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14003
140042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14005
14006 * frame.c (Qnoelisp): New symbol.
14007 (syms_of_frame): Initialize it.
14008 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14009 harmless Elisp code, from a strong `force' from x_connection_closed.
14010 * frame.h (Qnoelisp): Declare.
14011 * xterm.c (x_connection_closed): Pass `noelisp'.
14012
14013 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14014 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14015 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14016 rather than `int' for the type of `type'.
14017
140182008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14019
14020 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14021
14022 * Makefile.in (GNUC): Remove support for gcc-1.x.
14023
140242008-02-10 Richard Stallman <rms@gnu.org>
14025
14026 * lisp.h (ASET): Use AREF, not ASLOT.
14027
140282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14029
14030 * lisp.h (ASET): Check bounds.
14031
140322008-02-10 Glenn Morris <rgm@gnu.org>
14033
14034 * buffer.c (mode-name): Doc fix.
14035
140362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14037
14038 * Makefile.in:
14039 * emacs.c:
14040 * gmalloc.c:
14041 * keyboard.c:
14042 * lisp.h:
14043 * m/ibm370aix.h:
14044 * process.c:
14045 * regex.c:
14046 * s/hpux.h:
14047 * sysdep.c:
14048 * sysselect.h:
14049 * systty.h:
14050 * unexec.c:
14051 * w32term.c:
14052 * xsmfns.c:
14053 * xterm.c: Remove code that deals with obsolete variables.
14054
14055 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14056
14057 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14058 nothing else needs it anymore.
14059
140602008-02-09 Eli Zaretskii <eliz@gnu.org>
14061
14062 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14063 instead of unibyte_char_to_multibyte.
14064
140652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14066
14067 * s/gnu-linux.h: Remove commented out code.
14068
14069 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14070
14071 * Makefile.in: Update what RMS says about using autoconf.
14072 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14073 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14074 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14075 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14076
140772008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14078
14079 * keymap.c (Fkey_description): Move side effect outside of macro call.
14080
14081 * xfaces.c (Finternal_make_lisp_face):
14082 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14083
14084 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14085 (syms_of_fontset): Use ASET.
14086
14087 * fns.c (concat): Move side effect outside of macro call.
14088 (hash_clear): Use ASET.
14089
140902008-02-08 Richard Stallman <rms@gnu.org>
14091
14092 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14093 If FORCE, and frame has a surrogate minibuffer for another frame,
14094 delete the other frame first.
14095
140962008-02-07 Timo Savola <timo.savola@iki.fi>
14097
14098 * xterm.c (x_detect_focus_change): Handle embed client message.
14099 (handle_one_xevent): Ditto.
14100 (handle_one_xevent): If embedded and we get a button press/release,
14101 request focus.
14102 (xembed_set_info, xembed_send_message): New functions.
14103 (x_make_frame_visible): Call xembed_set_info if embedded.
14104 (x_make_frame_invisible): Call xembed_set_info if embedded.
14105 (x_term_init): Initialize Xatom_XEMBED.
14106 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14107 (x_iconify_frame): Ditto.
14108
14109 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14110 (enum xembed_info, enum xembed_message, enum xembed_focus)
14111 (enum xembed_modifier, enum xembed_accelerator): New.
14112 (xembed_set_info, xembed_send_message): Declare.
14113 (FRAME_X_EMBEDDED_P): New.
14114
14115 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14116 gtk_plug_new.
14117
14118 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14119 window ID of a frame.
14120 (x_window): Reparent frame if embedded.
14121 (Fx_create_frame): Don't set border width if embedded.
14122
14123 * emacs.c (USAGE3): Add --parent-id.
14124 (standard_args): Ditto.
14125
141262008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14127
14128 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14129
141302008-02-07 Jim Meyering <meyering@redhat.com>
14131
14132 Use "do...while (0)", not "if (1)...else" in macro definitions.
14133 The latter provokes a warning from gcc about the empty else, when
14134 followed by ";". Also, without that trailing semicolon, it would
14135 silently swallow up any following statement.
14136 * syntax.h (SETUP_SYNTAX_TABLE)
14137 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14138 * buffer.h (DECODE_POSITION): Likewise.
14139 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14140 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14141 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14142 (FETCH_CHAR_ADVANCE): Likewise.
14143 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14144
141452008-02-07 Jim Meyering <meyering@redhat.com>
14146
14147 * lread.c [lint]: Don't include <sys/inode.h>.
14148
141492008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14150
14151 * xselect.c (x_handle_dnd_message):
14152 * xmenu.c (digest_single_submenu, xmenu_show):
14153 * xdisp.c (with_echo_area_buffer_unwind_data)
14154 (format_mode_line_unwind_data, unwind_format_mode_line)
14155 (display_menu_bar):
14156 * eval.c (Ffetch_bytecode):
14157 * doc.c (store_function_docstring):
14158 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14159 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14160 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14161
141622008-02-07 Kenichi Handa <handa@m17n.org>
14163
14164 * ftxfont.c (ftxfont_open): Don't set
14165 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14166
14167 * ftfont.c (ftfont_open): Fix previous change.
14168
141692008-02-06 Jason Rumney <jasonr@gnu.org>
14170
14171 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14172 Use cached metrics for ASCII characters.
14173 (w32font_open_internal): Don't set font's owning_frame.
14174 Cache metrics for ASCII characters.
14175
14176 * w32font.h (struct w32font_info): Add ascii_metrics.
14177 Remove owning_frame.
14178
141792008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14180
14181 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14182 to negative value.
14183
14184 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14185
14186 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14187
14188 * charset.c (syms_of_charset): Set QCtest and Qeq.
14189
141902008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14191
14192 * process.c (Fstart_process):
14193 * callproc.c (Fcall_process): Handle the case where
14194 Funhandled_file_name_directory returns nil.
14195
14196 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14197 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14198 * font.c (check_gstring): Use them and AREF to access the vector before
14199 we know it's really a gstring.
14200 (Ffont_shape_text): Fix typo.
46e722a9 14201 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14202
14203 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14204 Declare.
14205
14206 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14207
142082008-02-05 Jason Rumney <jasonr@gnu.org>
14209
14210 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14211 Set smallest_font_height and smallest_char_width in display info.
14212
142132008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14214
14215 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14216
142172008-02-05 Miles Bader <miles@gnu.org>
14218
14219 * xfaces.c (get_lface_attributes, merge_named_face)
14220 (lookup_named_face, lookup_derived_face, realize_named_face):
14221 Revert 2008-02-01 change by cyd@stupidchicken.com.
14222
142232008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14224
14225 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14226 fallback fonts.
14227 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14228
142292008-02-04 Jason Rumney <jasonr@gnu.org>
14230
14231 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14232 set full_name.
14233 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14234
142352008-02-03 Jason Rumney <jasonr@gnu.org>
14236
14237 * makefile.w32-in (OBJ1): Include font.o here.
14238 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14239
142402008-02-02 Jason Rumney <jasonr@gnu.org>
14241
14242 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14243
142442008-02-01 Jason Rumney <jasonr@gnu.org>
14245
14246 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14247
14248 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14249
142502008-02-01 Andreas Schwab <schwab@suse.de>
14251
14252 * Makefile.in (shortlisp, lisp): Update for rename of
14253 ../lisp/language/myanmar.el.
14254
142552008-02-01 Chong Yidong <cyd@stupidchicken.com>
14256
14257 * xfaces.c (get_lface_attributes): Delete function.
14258 (merge_named_face, lookup_named_face, lookup_derived_face)
14259 (realize_named_face): Call lface_from_face_name directly, and use
14260 the fact that merge_face_vectors does not alter its FROM argument.
14261
142622008-02-01 Jason Rumney <jasonr@gnu.org>
14263
14264 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14265 input in the default locale. Handle non-Unicode multibyte input.
14266
142672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14268
14269 * fontset.c (reorder_font_vector): Exclude nil elements from the
14270 font group. Don't try multiple fonts.
14271 (fontset_font): Adjust for the above change.
14272 (Finternal_char_font): Return nil if the found font doesn't
14273 contain the character ch.
14274
14275 * Makefile.in (lisp, shortlisp): Add cham.el.
14276
142772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14278
14279 * font.h (FONTP): Make it return 1 also for a font-object.
14280
14281 * .gdbinit (xfontset): New function.
14282
14283 * font.c (font_find_for_lface): Check if the character C is
14284 supported or not only for the first font.
14285
14286 * fontset.c (reorder_font_vector): Fix typo.
14287 (fontset_find_font): Don't add a font-spec specifying a script.
14288 Use 0 (not Qt) for the indication of empty font-group. Change the
14289 format of RFONT-DEF. Return Qt if no font in the font-group
14290 support the character.
14291 (fontset_font): Adjust for the above change. If no font was
14292 found the character, remember that.
14293 (face_for_char): Adjust for the change of RFONT-DEF.
14294 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14295 no font for the target.
14296 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14297
142982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14299
14300 * font.c (font_load_for_face): Handle the case that the font in
14301 face->lface is a string.
14302
143032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14304
14305 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14306
143072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14308
14309 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14310 Fix previous change. If the frame is not on a window system,
14311 signal an error.
14312
143132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14314
14315 * coding.c (decode_coding_object, encode_coding_object): Adjust
14316 marker positions after conversion.
14317
14318 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14319
143202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14321
14322 * font.c (font_find_for_lface): Fix the handling of the return
14323 value of font_has_char.
14324 (Ffont_shape_text): Fix previous change.
14325
14326 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14327 (fontset_ref_and_range): Delete it.
14328 (fontset_find_font): Call char_table_ref_and_range instead of
14329 FONTSET_REF_AND_RANGE.
14330 (make_fontset): Don't setup font groups of Latin here.
14331 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14332 (new_fontset_from_font): Make the specified font the default for
14333 all Latin characters.
14334
143352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14336
14337 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14338 is on a window system before accessing the fontset of the frame.
14339
143402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14341
14342 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14343
14344 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14345 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14346
14347 * font.c (Ffont_shape_text): If the font driver doesn't have a
14348 shaper function, make zero-width glyphs to have at least one-pixel
14349 width. Fix setting of `to' field of glyphs.
14350
143512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14352
14353 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14354 glyphs.
14355
14356 * font.h (struct font_driver): Improve docstring of member `shape'.
14357
143582008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * composite.c (syms_of_composite): Fix docstring of
14361 auto-composition-function.
14362
14363 * font.h (LGLYPH_SIZE): New macro.
14364
14365 * font.c (Ffont_fill_gstring): Stop filling when a character not
14366 supported by the font is found.
14367 (Ffont_shape_text): When a shape callback function returns nil,
14368 try at most two more times with larger gstring.
14369 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14370
14371 * xdisp.c (handle_auto_composed_prop): Change the argument to
14372 auto-composition-function.
14373
14374 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14375 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14376 Lispy glyph and store it in the lgstring.
14377
14378 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14379
14380 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14381
143822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14383
14384 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14385
14386 * fontset.c (Vfont_encoding_charset_alist): New variable.
14387 (syms_of_fontset): DEFVAR it.
14388 (reorder_font_vector, fontset_find_font): Optimize for the case of
14389 no need of reordering.
14390 (face_for_char): Map the charset property by
14391 Vfont_encoding_charset_alist.
14392
143932008-02-01 Jason Rumney <jasonr@gnu.org>
14394
14395 * w32font.c (logfonts_match): Don't check adstyle here.
14396 (font_matches_spec): Check here against physical font instead.
14397 (add_font_entity_to_list): Avoid some substitutions.
14398
14399 * font.c (font_parse_fcname): Default weight and slant to normal.
14400 (font_score): Prefer normal fonts if weight or slant unspecified.
14401 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14402 match freetype scores.
14403
144042008-02-01 Jason Rumney <jasonr@gnu.org>
14405
14406 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14407 font, as it may have been deleted.
14408 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14409 most common hyphenless variation.
14410 (logfonts_match): Check generic family.
14411 (font_matches_spec): Don't check generic family here.
14412 (fill_in_logfont): Set generic family based on adstyle.
14413
14414 * w32font.h (w32font_get_cache): Update declaration.
14415
144162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14417
14418 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14419
14420 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14421 If none of the new drivers are available, call font_update_drivers
14422 with the old drivers.
14423
14424 * w32font.c (w32font_get_cache): Adjust the argument type.
14425
14426 * xfont.c (xfont_get_cache): Adjust the argument type.
14427
14428 * font.h (struct font_driver): Change argument type of get_cache.
14429
14430 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14431
14432 * font.c (Ffont_get): Fix arguments to Fassoc.
14433 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14434 (font_clear_cache): New function.
14435 (font_list_entities, font_matching_entity): Use font_get_cache.
14436 (font_update_drivers): Call font_clear_cache when finishing a driver.
14437
14438 * fontset.c (fontset_find_font): Fix previous change.
14439
144402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14441
14442 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14443 dpyinfo->font_table.
14444 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14445 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14446
14447 * font.c (font_at): Handle the case that the arg C is negative.
14448 Handle the unibyte case.
14449 (Ffont_at): Call font_at with the arg C -1.
14450
14451 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14452 the position here, and call font_at with the arg C -1.
14453 Don't check the range of the existing composition at the point.
14454
144552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14456
14457 * fontset.c (fontset_add): New args charset_id and family.
14458 Change caller.
14459 (load_font_get_repertory, fontset_find_font): Assume that
14460 font_spec is always a font-spec object.
14461 (Fset_fontset_font): Always store a font-spec object in a fontset.
14462
14463 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14464 instead of get_property_and_range.
14465
144662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14467
14468 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14469 (xftfont_open): Don't keep locking face.
14470 (xftfont_close): Don't unlock face.
14471 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14472
14473 * fontset.c (fontset_find_font): Don't prefer a font of
14474 supplementary charset.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14479 script, langsys_tag to langsys, new member script.
14480 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14481 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14482 listing to the script specified in that property. Fix arg to
14483 OTF_check_features.
14484
144852008-02-01 Jason Rumney <jasonr@gnu.org>
14486
14487 * w32font.h: New file.
14488
14489 * w32font.c: Include it.
14490 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14491 (w32font_open): Set owning_frame.
14492 (w32font_text_extents): Use owning_frame.
14493 (struct font_callback_data): Add opentype_only field.
14494 (add_font_entity_to_list): Use it to filter fonts.
14495 Don't check against full name.
14496 (w32font_list_internal): New function.
14497 (w32font_list): Use it.
14498 (w32font_match_internal): New function.
14499 (w32font_match): Use it.
14500 (w32font_open_internal): New function.
14501 (w32font_open): Use it.
14502 (w32font_get_cache, w32font_close, w32font_has_char)
14503 (w32font_encode_char, w32font_text_extents, w32font_draw):
14504 Make non-static.
14505
14506 * makefile.w32-in (w32font.o): Depend on w32font.h.
14507
145082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14509
14510 * charset.c (Fdefine_charset_internal): Record a supplementary
14511 charset at the tail of Vcharset_order_list.
14512
14513 * font.c (Ffont_shape_text): Fix the return value.
14514
14515 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14516
14517 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14518
145192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14520
14521 * ftfont.c (struct OpenTypeSpec): New struct.
14522 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14523 (ftfont_get_open_type_spec): New function.
14524 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14525
14526 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14527
145282008-02-01 Jason Rumney <jasonr@gnu.org>
14529
14530 * w32font.c (add_font_entity_to_list): Compare only the beginning
14531 of full name.
14532
145332008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14536 Never return HANDLED_RECOMPUTE_PROPS.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * font.c (font_gstring_produce): Delete it.
14541
14542 * composite.h (COMPOSITION_METHOD):
14543 Handle COMPOSITION_WITH_GLYPH_STRING.
14544
145452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14546
14547 * xfont.c (Qx): Delete.
14548 (syms_of_xfont): Don't initialize Qx.
14549
14550 * composite.h (enum composition_method):
14551 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14552
145532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14554
14555 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14556 (choose_face_font): Accept new form of font-spec.
14557
14558 * frame.h (font_driver_list): Declare it unconditionally.
14559 (struct frame): Define members font_driver_list and font_data_list
14560 unconditionally.
14561
14562 * fontset.c: Include "font.h" unconditionally.
14563 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14564 (Fset_fontset_font): Accept a font-spec object.
14565
14566 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14567 PIXEL_SIZE part a wild card.
14568
14569 * dispextern.h (struct glyph_string): Define members clip and
14570 num_clips unconditionally.
14571 (struct face): Define members font_info and extra unconditionally.
14572
14573 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14574 ftfont_info only when HAVE_LIBOTF is defined.
14575
145762008-02-01 Andreas Schwab <schwab@suse.de>
14577
14578 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14579 and end.
14580
145812008-02-01 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32font.c (w32font_driver): Add new fields.
14584
145852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14586
14587 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14588 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14589 (LIBES): Add @M17N_FLT_CFLAGS@.
14590
14591 * composite.c (compose_text): Don't treat the new style
14592 composition specially.
14593
14594 * emacs.c (main): Call syms_of_font unconditionally.
14595
14596 * font.h (FONT_ENTITY_NOT_LOADABLE)
14597 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14598 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14599 (struct font_driver): New member shape.
14600 (font_registry_charsets): Extern it.
14601 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14602 (font_otf_capability, font_drive_otf): Delete their externs.
14603
14604 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14605 (font_charset_alist, font_registry_charsets): Move from xfont.c
14606 and rename.
14607 (font_prop_validate_otf): New function.
14608 (font_property_table): Register it for QCotf.
14609 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14610 (font_drive_otf): Delete.
14611 (font_prepare_composition): New arg F. Adjust for the change of
14612 lispy gstring.
14613 (font_find_for_lface): New arg C.
14614 (font_load_for_face): Adjust for the change of font_find_for_lface.
14615 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14616 lispy gstring.
14617 (Ffont_shape_text): New function.
14618 (Fopen_font): If the font size is not given, use 12-pixel.
14619 (Ffont_at): New arg STRING.
14620 (syms_of_font): Initalize font_charset_alist.
14621 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14622 conditionally.
14623
14624 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14625 fonts of the same font-spec. Change the format of RFONT-DEF.
14626 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14627 Adjust for the change of RFONT-DEF.
14628 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14629
14630 * ftfont.h: New file.
14631
14632 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14633 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14634 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14635 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14636 font_otf_capability and font_drive_otf, set ftfont_shape.
14637 (ftfont_list): Adjust for the change of :otf property value.
14638 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14639 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14640 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14641 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14642 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14643 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14644
14645 * w32term.c (x_draw_composite_glyph_string_foreground):
14646 Adjust for the change of lispy gstring.
14647
14648 * xdisp.c (handle_composition_prop): Adjust for the change of
14649 lispy gstring. Call a function for auto-composition with the
14650 third arg it->window.
14651 (fill_composite_glyph_string): Adjust for the change of lispy string.
14652 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14653
14654 * xfaces.c (set_font_frame_param): Adjust for the change of
14655 font_find_for_lface.
14656
14657 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14658 (xfont_registry_charsets): Likewise. Change caller.
14659 (syms_of_xfont): Don't handle x_font_charset_alist.
14660
14661 * xftfont.c: Include "ftfont.h".
14662 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14663 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14664 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14665 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14666 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14667 Set xftfont_driver.shape to xftfont_shape.
14668
14669 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14670 the change of lispy gstring.
14671
146722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14673
14674 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14675
146762008-02-01 Jason Rumney <jasonr@gnu.org>
14677
14678 * w32font.c (w32font_draw): Fill background manually.
14679
146802008-02-01 Jason Rumney <jasonr@gnu.org>
14681
14682 * font.c (Qfontp): Remove unused symbol.
14683 (QCantialias): New symbol.
14684 (syms_of_font): Define it.
14685 (font_property_table): Set a validator for QCantialias.
14686
14687 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14688 Define if not already.
14689 (QCfamily): Share with xfaces.c.
14690 (Qstandard, Qsubpixel, Qnatural): New symbols.
14691 (syms_of_w32font): Define them. Don't define QCfamily here.
14692 (w32_antialias_type, lispy_antialias_type): New functions.
14693 (w32_enumfont_pattern_entity): New arg requested_font.
14694 Set antialias parameter if non-default was requested.
14695 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14696
146972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14698
14699 * lread.c (read1): Undo the previous change.
14700
147012008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14702
14703 * frame.c (Fdelete_frame): Call font_update_drivers only when
14704 USE_FONT_BACKEND is defined.
14705
147062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14707
14708 * font.h (struct font_bitmap): New member bits_per_pixel.
14709 (struct font_driver): New members start_for_frame and end_for_frame.
14710 (struct font_data_list): New struct.
14711 (font_put_frame_data, font_get_frame_data): Extern them.
14712
14713 * frame.h (struct frame): New member font_data_list.
14714
14715 * font.c (font_update_drivers): Call driver->start_for_frame and
14716 driver->end_for_frame at proper timings.
14717 (font_put_frame_data, font_get_frame_data): New functions.
14718 (Ffont_spec): Add usage in the docstring.
14719
14720 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14721 (Fdelete_frame): Call font_update_drivers.
14722
14723 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14724 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14725 (xftfont_get_xft_draw): New function.
14726 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14727 (xftfont_end_for_frame): New function.
14728 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14729
14730 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14731 Change argument. Cache GCs in the per-frame data.
14732 (struct ftxfont_frame_data): New struct.
14733 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14734 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14735 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14736 (ftxfont_end_for_frame): New function.
14737 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14738
14739 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * xselect.c (Vselection_coding_system)
14744 (Vnext_selection_coding_system): Delete them.
14745 (syms_of_xselect): Don't declare selection-coding-system and
14746 next-selection-coding-system. They are declared in select.el.
14747
147482008-02-01 Jason Rumney <jasonr@gnu.org>
14749
14750 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14751
14752 * w32fns.c: Include imm.h.
14753 (get_composition_string_fn, get_ime_context_fn): New optional
14754 system functions.
14755 (globals_of_w32fns): Load them from imm32.dll.
14756 (ignore_ime_char): New flag.
14757 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14758 WM_IME_ENDCOMPOSITION messages.
14759
14760 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14761 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14762
147632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14764
14765 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14766 (READCHAR_REPORT_MULTIBYTE): New macro.
14767 (readchar): New 2nd arg MULTIBYTE.
14768 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14769 Make symbol's name multibyte according to the multibyteness of the
14770 source.
14771
147722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14773
14774 * xfaces.c (face_for_overlay_string): Call lookup_face with
14775 correct arguments (fix of synching with the trunk).
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14780 (font_prop_validate_non_neg, font_prop_validate_spacing):
14781 Delete argument prop_index.
14782 (font_property_table): Change arguments to validater. Change Callers.
14783 (font_lispy_object): Delete.
14784 (font_at): Use font_find_object instead fo font_lispy_object.
14785
147862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14787
14788 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14789 and file names.
14790
147912008-02-01 Jason Rumney <jasonr@gnu.org>
14792
14793 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14794 (font_matches_spec): Remove debug output.
14795 (add_font_entity_to_list): Avoid using substituted fonts.
14796
147972008-02-01 Jason Rumney <jasonr@gnu.org>
14798
14799 * doc.c (Fsnarf_documentation):
14800 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14801
148022008-02-01 Miles Bader <miles@gnu.org>
14803
14804 * dispextern.h (struct glyph_row): Only define "clip" field if
14805 HAVE_WINDOW_SYSTEM is defined.
14806
148072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14808
14809 Fix up multi-tty merge.
14810
14811 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14812 and indentation.
14813
14814 * xfaces.c (free_realized_face, clear_face_gcs):
14815 Include font_done_for_face in the input_blocked section, just in case.
14816
14817 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14818 (get_char_face_and_encoding): Undo last change and remove the *other*
14819 duplicate definition (i.e. keep the one that's better scoped and that
14820 includes code for the font-backend).
14821
14822 * terminal.c (create_terminal): Default keyboard_coding to
14823 `no-conversion' and terminal_coding to `undecided'.
14824
14825 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14826
14827 * fontset.c (free_realized_fontsets): Check that the table entry does
14828 contain a fontset before trying to compare it to `base'.
14829
14830 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14831 syms_of_charset, and syms_of_coding earlier because init_window_once
14832 now needs Vcoding_system_hash_table to be setup.
14833
14834 * coding.h (default_buffer_file_coding): Remove.
14835
14836 * coding.c (default_buffer_file_coding): Remove.
14837 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14838 than ->symbol, and use the terminal-local coding system.
14839 (syms_of_coding): Don't setup the coding-systems that are not
14840 terminal-local.
14841 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14842
14843 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14844 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14845
14846 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14847 in chartab.c and were re-added here by mistake.
14848 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14849
14850 * doc.c (Fsnarf_documentation):
14851 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14852 src to etc.
14853
14854 * ChangeLog.10: Add mistakenly removed entry.
14855
148562008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14857
14858 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14859
148602008-02-01 Miles Bader <miles@gnu.org>
14861
14862 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14863 Add extra args to FACE_FOR_CHAR.
14864
148652008-02-01 Kenichi Handa <handa@m17n.org>
14866
14867 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14868 in sequence.
14869
14870 * chartab.c (map_sub_char_table, map_char_table): If the range
14871 contains just one character, call the function with that character
14872 even if the depth is not 3.
14873
148742008-02-01 Jason Rumney <jasonr@gnu.org>
14875
14876 * w32font.c (w32font_text_extents): Calculate metrics for the
14877 whole string.
14878
148792008-02-01 Jason Rumney <jasonr@gnu.org>
14880
14881 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14882
148832008-02-01 Jason Rumney <jasonr@gnu.org>
14884
14885 * w32term.c (x_set_glyph_string_clipping): Use
14886 get_glyph_string_clip_rects.
14887 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14888 Adjust for the change of struct glyph_string.
14889
14890 * w32font.c (w32font_draw): Do clipping here.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * xftfont.c (xftfont_draw): Adjust for the change of struct
14895 glyph_string.
14896
14897 * xterm.c (x_set_glyph_string_clipping): Use
14898 get_glyph_string_clip_rects.
14899 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14900 Adjust for the change of struct glyph_string.
14901
14902 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14903 the resulting clip(s}.
14904 (expose_overlaps): Add arg r. Change callers. Set it to
14905 row->clip temporarily.
14906 (expose_window): Redraw rows overlapping the exposed area.
14907
14908 * dispextern.h (struct glyph_row): New member clip.
14909 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14910 clip_height, new member clip, and num_clips.
14911
149122008-02-01 Kenichi Handa <handa@m17n.org>
14913
14914 * data.c (Fchar_or_string_p): Fix docstring.
14915
149162008-02-01 Kenichi Handa <handa@m17n.org>
14917
14918 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14919 create a temporary XftDraw object.
14920
149212008-02-01 Kenichi Handa <handa@m17n.org>
14922
14923 * font.c (Ffontp): Fix docstring.
14924
14925 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14926 strong evidence of ISO-2022.
14927
149282008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14931 SYNTAX_ENTRY_FOLLOW_PARENT.
14932
149332008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14934
14935 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14936 its type.
14937 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14938 Update to the new type of weak_hash_tables and next_weak.
14939
14940 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14941 a plain C pointer to Lisp_Hash_Table.
14942
14943 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14944 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14945 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14946 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14947 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14948 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14949 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14950 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14951 (GC_EQ): Remove since they've been identical to their non-GC_
14952 alter-egos ever since the markbit was eradicated.
14953
14954 * alloc.c:
14955 * buffer.c:
14956 * buffer.h:
14957 * data.c:
14958 * fileio.c:
14959 * filelock.c:
14960 * fns.c:
14961 * frame.h:
14962 * lisp.h:
14963 * macterm.c:
14964 * print.c:
14965 * process.c:
14966 * w32fns.c:
14967 * w32menu.c:
14968 * w32term.c:
14969 * xfns.c:
14970 * xmenu.c:
14971 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14972
149732008-02-01 Kenichi Handa <handa@m17n.org>
14974
14975 * chartab.c (map_sub_char_table): Make it work for the top-level
14976 char-table. Fix handling of parent char-table.
14977 (map_char_table): Adjust for the above change.
14978
149792008-02-01 Jason Rumney <jasonr@gnu.org>
14980
14981 * w32font.c (Qgdi): Rename from Qw32.
14982
149832008-02-01 Jason Rumney <jasonr@gnu.org>
14984
14985 * w32bdf.c (get_quoted_string): Make function static.
14986
149872008-02-01 Kenichi Handa <handa@m17n.org>
14988
14989 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14990 bigger ascent and descent than those of the font, use them as
14991 font's ascent and descent.
14992
149932008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * Makefile.in (${lispsource}international/charprop.el): Move this
14996 target within "#ifdef HAVE_UNIDATA" and "#endif".
14997
149982008-02-01 Kenichi Handa <handa@m17n.org>
14999
15000 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15001 (shortlisp): Add ../lisp/language/tai-viet.el.
15002
150032008-02-01 Ulrich Mueller <ulm@gentoo.org>
15004
15005 * Makefile.in (${lispsource}international/charprop.el): Depend on
15006 temacs${EXEEXT}.
15007
150082008-02-01 Jason Rumney <jasonr@gnu.org>
15009
15010 * w32font.c (w32font_close): Delete the GDI font object.
15011
15012 * w32menu.c: Include character.h.
15013
15014 * w32proc.c: Likewise.
15015
15016 * w32select.c: Likewise.
15017
15018 * makefile.w32-in (w32proc.o): Depend on character.h.
15019
150202008-02-01 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15023
15024 * w32menu.c (syms_of_w32menu): Likewise.
15025
15026 * w32proc.c (syms_of_ntproc): Likewise.
15027
15028 * w32select.c (syms_of_w32select): Likewise.
15029
15030 * w32term.c (syms_of_w32term): Likewise.
15031
150322008-02-01 Jason Rumney <jasonr@gnu.org>
15033
15034 * w32font.c (w32font_draw): Delete brush after using it.
15035
150362008-02-01 Jason Rumney <jasonr@gnu.org>
15037
15038 * w32font.c (w32font_open): Don't set font_idx.
15039 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15040 to font settings.
15041 (w32font_draw): Fill background explicitly.
15042
150432008-02-01 Jason Rumney <jasonr@gnu.org>
15044
15045 * w32term.c (w32_initialize): Don't call w32font_initialize.
15046
15047 * w32font.c (w32font_info): Remove subranges.
15048 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15049 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15050 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15051 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15052 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15053 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15054 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15055 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15056 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15057 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15058 New symbols.
15059 (font_callback_data): New struct.
15060 (w32font_list, w32font_match): Use it.
15061 (w32font_open): Don't populate subranges.
15062 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15063 (w32font_encode_char): Always return unicode code-point as-is.
15064 (w32font_text_extents): Supply a transformation matrix to
15065 GetGlyphOutline. Never look up by glyph index. Avoid looping
15066 twice. Use unicode version of GetTexExtentPoint32 instead of
15067 glyph index version.
15068 (set_fonts_frame): Remove.
15069 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15070 set frame parameter. Use backward compatible fake foundries.
15071 Save generic family in extra slot under QCfamily. Make width slot
15072 constant. Save QCspacing value. Save list of scripts instead of
15073 binary subranges.
15074 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15075 (add_font_entity_to_list): Use font_callback_data struct. Filter
15076 unwanted fonts.
15077 (add_one_font_entity_to_list): Use font_callback_data struct.
15078 (w32_registry): Default to iso10646_1.
15079 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15080 string font registries. Don't fill in font name if it is a generic
15081 family name, fill family instead. Use spacing, family and script
15082 extra info to fill pitch, family and charset fields.
15083 (list_all_matching_fonts): Use font_callback_data struct.
15084 (unicode_range_for_char): Remove.
15085 (font_supported_scripts): New function.
15086 (w32font_initialize): Remove.
15087 (syms_of_w32font): Update which symbols are defined.
15088
150892008-02-01 Jason Rumney <jasonr@gnu.org>
15090
15091 * font.c (font_pixel_size): Reverse assq_no_quit args.
15092
15093 * w32term.h (FONT_WIDTH): Report max width, not average.
15094 (FONT_MAX_WIDTH): Remove.
15095 (FONT_AVG_WIDTH): New macro.
15096
15097 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15098 redefinition of FONT_WIDTH.
15099
15100 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15101 (w32_cache_char_metrics): Use FONT_WIDTH.
15102
15103 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15104
151052008-02-01 Jason Rumney <jasonr@gnu.org>
15106
15107 * w32font.c (w32font_open): Make lfHeight negative.
15108
15109 * w32fns.c (x_default_font_parameter): Use new style font name.
15110 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15111
151122008-02-01 Jason Rumney <jasonr@gnu.org>
15113
15114 * w32font.c (QCsubranges): New symbol.
15115 (w32font_open, w32font_has_char): Get subranges from subproperty
15116 of extra.
15117 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15118 (syms_of_w32font): Define :subranges symbol.
15119
15120 * font.c (font_put_extra): Expose externally.
15121
15122 * font.h (font_put_extra): Move declaration from font.c.
15123
15124 * font.c (Ffont_get): Use font driver to determine otf capability.
15125 (adjust_anchor): Check if driver defines anchor_point before using.
15126
15127 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15128 (w32font_draw): Use options.
15129 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15130 Fix detection of truetype fonts.
15131 (registry_to_w32_charset): Handle charsets other than iso8859-1
15132 expressed as lisp symbols.
15133 (w32_registry): Express charset as lisp symbol.
15134 (fill_in_logfont): Reverse pixel and point height logic.
15135 Don't set width here. Set quality to default.
15136
15137 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15138 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15139
15140 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15141 Remove redundant loop and allocation.
15142
15143 * makefile.w32-in (font.o, w32font.o): New objects.
15144 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15145 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15146
15147 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15148 STORE_XCHARB a valid l-value.
15149
15150 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15151 calculations for non-Truetype fonts.
15152 (x_draw_glyph_string): Sync with xterm.c.
15153 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15154 Remove redundant code.
15155 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15156
15157 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15158 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15159
15160 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15161 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15162
15163 * w32font.c: New file for w32 font backend.
15164
151652008-02-01 Kenichi Handa <handa@m17n.org>
15166
15167 * term.c: Don't include "buffer.h" twice.
15168
151692008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * character.c (Funibyte_string): New function.
15172 (syms_of_character): Defsubr it.
15173
151742008-02-01 Jason Rumney <jasonr@gnu.org>
15175
15176 * w32term.c [USE_FONT_BACKEND]:
15177 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15178 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15179 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15180 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15181 (x_free_frame_resources): Sync with xterm.c.
15182
151832008-02-01 Andreas Schwab <schwab@suse.de>
15184
15185 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15186 char-table size.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15191
151922008-02-01 Kenichi Handa <handa@m17n.org>
15193
15194 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15195 font_otf_gpos, add font_drive_otf.
15196
15197 * fontset.c (fontset_find_font): Pay attention to font size
15198 specified for a font.
15199 (reorder_font_vector): Check contents of font_def.
15200
15201 * font.c (struct otf_list): Delete it.
15202 (otf_list): Make it a lisp variable.
15203 (otf_open): Use lispy otf_list.
15204 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15205 (check_otf_features): New function.
15206 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15207 New functions.
15208 (font_drive_otf): New function merging font_otf_gsub and
15209 font_otf_gpos.
15210 (font_open_for_lface): New arg spec. Change argument order.
15211 (font_load_for_face): Adjust for the change of font_open_for_lface.
15212 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15213 Ffont_otf_gpos.
15214 (syms_of_font): Staticpro otf_list. Delete defsubr of
15215 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15216
15217 * xfaces.c (set_font_frame_param): Adjust for the change of
15218 font_open_for_lface.
15219
15220 * font.h (font_open_for_lface): Adjust prototype.
15221 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15222 member otf_drive.
15223 (font_otf_gsub, font_otf_gpos): Delete externs.
15224 (font_drive_otf): Extern it.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * font.c (font_at): If the window W is not on a window system,
15229 return Qnil.
15230
15231 * coding.c (produce_chars, encode_coding): Don't call
15232 insert_from_gap if no characters to produce.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15237 Fclear_face_cache.
15238
15239 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15240
152412008-02-01 Miles Bader <miles@gnu.org>
15242
15243 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15244 Parse "--disable-font-backend" option.
15245 (standard_args): Add "--disable-font-backend" option.
15246
152472008-02-01 Kenichi Handa <handa@m17n.org>
15248
15249 * fontset.c (fontset_find_font): New function.
15250 (fontset_font): Use fontset_find_font.
15251 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15252 Register the specified font for all Latin characters.
15253 (new_fontset_from_font): Register the specified font for all Latin
15254 characters.
15255 (dump_fontset): For a realized fontset, include the base fontset
15256 name in the returned vector.
15257
152582008-02-01 Kenichi Handa <handa@m17n.org>
15259
15260 * character.h (CHAR_STRING): Cast C to unsigned on calling
15261 char_string.
15262
15263 * character.c (char_string): Type of arg C changed to unsigned.
15264 Signal an error if C is an invalid character code.
15265
15266 * editfns.c (general_insert_function, Fchar_to_string):
15267 Use CHARACTERP, not INTEGERP.
15268
152692008-02-01 Kenichi Handa <handa@m17n.org>
15270
15271 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15272 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15273
15274 * regex.c (analyse_first): Fix for multibyte characters in "case
15275 charset:" and "case categoryspec:".
15276
152772008-02-01 Andreas Schwab <schwab@suse.de>
15278
15279 * Makefile.in (LIBES): Move standard libraries to the end.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15284 nonzero, don't shrink the buffer nextb.
15285
15286 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15287
15288 * coding.c (coding_alloc_by_making_gap): New arg offset.
15289 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15290 offset.
15291 (decode_coding_iso_2022): Update coding->safe_charsets.
15292 (decode_coding_gap): Temporarily set
15293 current_buffer->text->inhibit_shrinking to 1.
15294
152952008-02-01 Kenichi Handa <handa@m17n.org>
15296
15297 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15298 indexing into elements of s->cmp and s->char2b.
15299
153002008-02-01 Juanma Barranquero <lekktu@gmail.com>
15301
15302 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15303
153042008-02-01 Kenichi Handa <handa@m17n.org>
15305
15306 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15307 target_multibyte instead of multibyte.
15308 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15309 (bcmp_translate): Change the argument name from multibyte to
15310 target_multibyte.
15311
153122008-02-01 Kenichi Handa <handa@m17n.org>
15313
15314 These changes are to compile a regexp into a pattern that can be
15315 used both for multibyte and unibyte targets.
15316
15317 * Makefile.in (search.o): Depend on charset.h.
15318
15319 * character.c (multibyte_char_to_unibyte_safe): New function.
15320
15321 * search.c: Include "charset.h".
15322 (compile_pattern_1): Delete argument multibyte. Don't set
15323 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15324 (compile_pattern): Don't compare cp->buf.target_multibyte.
15325 Compare cp->buf.charset_unibyte.
15326 (compile_pattern): Set cp->buf.target_multibyte.
15327
15328 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15329
15330 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15331
15332 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15333 multibyte. Change callers.
15334 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15335 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15336 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15337 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15338 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15339 (regex_compile): Make the compiled pattern usable both for
15340 multibyte and unibyte targets.
15341 (analyse_first): Make the fastmap usable both for multibyte and
15342 unibyte targets.
15343 (TRANSLATE_VIA_MULTIBYTE): Delete.
15344 (re_match_2_internal): Pay attention to the case that the
15345 multibyteness of bufp and target may be different.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15350 empty box occupy at least one column width.
15351
153522008-02-01 Miles Bader <miles@gnu.org>
15353
15354 * Makefile.in: Remove redundant HAVE_XFT clause.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15363 being nil.
15364
153652008-02-01 Kenichi Handa <handa@m17n.org>
15366
15367 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15372
153732008-02-01 Kenichi Handa <handa@m17n.org>
15374
15375 * search.c (simple_search): Fix previous change.
15376
153772008-02-01 Kenichi Handa <handa@m17n.org>
15378
15379 * xftfont.c (ftfont_font_format): Extern declaration.
15380
15381 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15382
15383 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15384 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15385
15386 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15387 (ftfont_font_format): Fix previous change.
15388
15389 * font.h (Ffont_xlfd_name): EXFUN it.
15390
15391 * font.c (font_parse_xlfd): Fix the array size of `f'.
15392 (register_font_driver): Use EQ to compare driver->type.
15393
15394 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15395 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15396 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15397
153982008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15401 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15402
154032008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * xfont.c (xfont_open): Set font->format.
15406
15407 * xftfont.c (xftfont_open): Set font->format.
15408
15409 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15410 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15411 (ftfont_open): Set font->format.
15412 (ftfont_font_format): New function.
15413
15414 * font.h (struct font): New member format.
15415
15416 * font.c (Qopentype): New variable.
15417 (syms_of_font): Defsym it.
15418 (Fquery_font): Change the format of the last element of the return
15419 value.
15420
154212008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15424 last resort.
15425
154262008-02-01 Kenichi Handa <handa@m17n.org>
15427
15428 * coding.c (detect_coding_charset): Fix detection of multi-byte
15429 charset.
15430
154312008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15432
15433 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * xdisp.c (get_next_display_element): Set it->face_id for the
15438 first component of a composition.
15439 (x_produce_glyphs): Check if the font is changed or not for composition.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * fontset.c (Qlatin): New variable.
15444 (syms_of_fontset): Define it as a lisp symbol.
15445 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15446
154472008-02-01 Kenichi Handa <handa@m17n.org>
15448
15449 * font.c (font_unparse_fcname): Pay attention to the case that
15450 some of font property is a null string.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * term.c: Include "composite.h".
15455 (encode_terminal_code): Output all components of composition.
15456 Check the size of encode_terminal_src.
15457 (produce_glyphs): For composition, call produce_composite_glyph.
15458 (append_composite_glyph, produce_composite_glyph): New functions.
15459
15460 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15461 is not found, get font_info from the current ascii face.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15466 buffer-file-name to Qnil before calling insert_from_buffer.
15467
15468 * font.c (font_unparse_fcname): Pay attention to the case that
15469 foundry is a null string.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15474
15475 * font.c (Qunicode_sip): New variable.
15476 (syms_of_font): Declare it as a Lisp symbol.
15477
15478 * font.h (Qunicode_sip): Extern it.
15479
154802008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 * composite.c (get_composition_id): Pay attention to TAB component.
15483
15484 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15485 TAB. Adjust for the change of s->char2b which always points to
15486 the first element of allocated memory.
15487
15488 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15489
15490 * xdisp.c (handle_composition_prop): Set it->c to the first
15491 non-TAB component.
15492 (fill_composite_glyph_string): Change argument.
15493 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15494 (x_produce_glyphs): Fix handling of left/right padding.
15495
154962008-02-01 Kenichi Handa <handa@m17n.org>
15497
15498 * coding.c (detect_coding_system): Fix for handling off
15499 inhibit_iso_escape_detection. Fix for the case that no coding
15500 system is defined for a specific coding category.
15501
155022008-02-01 Kenichi Handa <handa@m17n.org>
15503
15504 * font.c (font_matching_entity): Delete unused local var.
15505
15506 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15507 opening a font.
15508
15509 * fileio.c (Finsert_file_contents): On recovering a file, assume
15510 Unix-like eol.
15511 (choose_write_coding_system): On auto-saving a file, force
15512 Unix-like eol.
15513
15514 * coding.c (setup_coding_system): Fix setting of
15515 coding->common_flags based on eol_type.
15516 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15517 inherit from it.
15518
155192008-02-01 Kenichi Handa <handa@m17n.org>
15520
15521 * alloc.c (NSTATICS): Increas to 0x600.
15522
155232008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15526 (ftfont_list): Don't check :name property.
15527 (ftfont_match): New function.
15528 (ftfont_pattern_entity): If the pattern doesn't contain
15529 FC_SPACING, don't assume FC_MONO.
15530
15531 * font.h (struct font_driver): New member `match'.
15532 (font_update_drivers): Adjust prototype.
15533
15534 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15535 property of FONT.
15536 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15537 them unconditionally.
15538 (font_matching_entity): New function.
15539 (font_open_by_name): Try font_matching_entity if exact match is
15540 not found.
15541 (font_update_drivers): Delete the arg FONT. Return a list of
15542 actually used backends. Don't free faces, font caches here.
15543 Don't store data in frame parameters. Don't call x_set_font.
15544 (Ffont_spec): Store :name property as is.
15545 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15546 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15547 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15548 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15549 Call font->driver->otf_gsub instead of font_otf_gsub.
15550
15551 * frame.c (x_set_font_backend): Do more works that were done in
15552 font_update_drivers before.
15553
15554 * xfont.c (xfont_match): New function.
15555 (xfont_driver): Set xfont_driver.match to xfont_match.
15556 (xfont_draw): Set font in GC if necessary.
15557
15558 * ftxfont.c (ftxfont_match): New function.
15559 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15560
15561 * xftfont.c (xftfont_match): New function.
15562 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * font.h (struct font): New member scalable.
15567 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15568 (font_otf_gsub): Adjust prototype.
15569
15570 * font.c (font_otf_capability): Fix handling of the default langsys.
15571 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15572 Check the contents of SPEC.
15573 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15574 (check_gstring): New function.
15575 (REPLACEMENT_CHARACTER): New macro.
15576 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15577 glyph codes of GSTRING.
15578 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15579 (font_prepare_composition): Set cmp->glyph_len.
15580 (font_open_entity): Set font->scalable.
15581 (Ffont_get): Handle :otf property.
15582 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15583 functions.
15584 (Fquery_font): Use font->font.full_name.
15585 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15586 Sfont_otf_alternates.
15587
15588 * ftfont.c (ftfont_open): Set font->font.full_name and
15589 font->font.name properly. Fix calculation of font->font.height
15590 and font->min_width.
15591
15592 * ftxfont.c (ftxfont_create_gcs): New function.
15593 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15594 (ftxfont_draw_backgrond): Fix filling region.
15595 (ftxfont_default_fid): New function.
15596 (ftxfont_open): Set xfont->fid to the return value of
15597 ftxfont_default_fid.
15598 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15599 (ftxfont_done_face): Free only GCs that are created by
15600 ftxfont_create_gcs.
15601 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15602
15603 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15604 Clip to src->width, etc (not src->clip_XXX).
15605
15606 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15607 FontBackend frame parameter.
15608
156092008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * font.h (struct font_driver_list): New member `on'.
15612 (Fclear_font_cache): EXFUN it.
15613 (font_update_drivers): Extern it.
15614
15615 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15616 (font_list_entities): Check driver_list->on.
15617 (register_font_driver): Initalize `on' member to 0.
15618 (font_update_drivers): New function.
15619 (Fclear_font_cache): Check driver_list->on.
15620
15621 * frame.h (Qfont_backend): Extern it.
15622 (x_set_font_backend): Extern it.
15623
15624 * frame.c (Qfont_backend): New variable.
15625 (frame_parms): New element for font-backend.
15626 (x_set_font_backend): New function.
15627
15628 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15629 FontBackend frame parameter.
15630 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15631 x_set_font_backend.
15632
15633 * xfont.c (xfont_list): Don't try listing by :name property if the
15634 name is not for XLFD.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15639 (LGLYPH_SET_TO): New macros.
15640 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15641 element of G is vector or not.
15642 (font_at): Extern it.
15643
15644 * font.c: Include window.h.
15645 (font_lispy_object): New function.
15646 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15647 end of valid glyph.
15648 (font_close_object): Fix getting (struct font *).
15649 (font_at): New function.
15650 (Ffont_get): If FONT is a font-object, get entity from it.
15651 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15652 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15653 range check.
15654 (Ffont_at): New function.
15655 (syms_of_font): Defsubr Sfont_at.
15656
15657 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15658 before the entry for Qcomposition.
15659 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15660 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15661 the font in gstring.
15662 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15663 LGLYPH_FORM (g) to detect the end of valid glyph.
15664 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15665 we are composing with gstring.
15666
15667 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15668 Check if adjustment is vector or not.
15669
15670 * Makefile.in (font.o): Make it depends on window.h.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15675 adjustment is vector or not.
15676
156772008-02-01 Miles Bader <miles@gnu.org>
15678
15679 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15680
156812008-02-01 Kenichi Handa <handa@m17n.org>
15682
15683 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15684 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15685 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15686
15687 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15688 (DEVICE_DELTA): Fix typo.
15689 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15690 LGLYPH format.
15691
15692 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15693 the change of LGLYPH format.
15694
156952008-02-01 Kenichi Handa <handa@m17n.org>
15696
15697 * ftfont.c (ftfont_list): Fix typo.
15698 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15699
157002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15701
15702 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15703
15704 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15705 xftface_info is non-NULL.
15706
157072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15708
15709 * ftfont.c (ftfont_list): Move misplaced #endif.
15710
157112008-02-01 Kenichi Handa <handa@m17n.org>
15712
15713 * ftfont.c (ftfont_list): Pay attention to the case that
15714 FC_CAPABILITY is not defined.
15715
157162008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * xftfont.c (xftfont_open): Set charset related members to -1.
15719
15720 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15721 QCname.
15722 (ftfont_open): Set charset related members to -1.
15723
15724 * fontset.c (Votf_script_alist): New variable.
15725 (syms_of_fontset): Initialize it.
15726 (fontset_font): Delete unused variable.
15727
15728 * fontset.h (Votf_script_alist): Extern it.
15729
15730 * font.c (font_find_for_lface): Optimize code.
15731
15732 * font.h (font_close_object, font_merge_old_spec): Extern them.
15733
157342008-02-01 Kenichi Handa <handa@m17n.org>
15735
15736 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15737 (syms_of_font): Initialize them.
15738 (font_pixel_size): Allow float value in dpi.
15739 (font_prop_validate_type): Delete.
15740 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15741 Change caller.
15742 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15743 (font_prop_validate_extra): Delete.
15744 (font_prop_validate_spacing): New function.
15745 (font_property_table): Add elements for all known properties.
15746 (get_font_prop_index): Rename from check_font_prop_name. New
15747 argument FROM. Change caller.
15748 (font_prop_validate): Validate all known properties.
15749 (font_put_extra): Delete argument force. Change caller.
15750 (font_expand_wildcards): Make it static. Fix the way of shrinking
15751 the possible range.
15752 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15753 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15754 Change caller.
15755 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15756 (font_parse_fcname): Delete argument merge. Fix parsing of point
15757 size. Don't validate properties values here. Change caller.
15758 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15759 (font_open_by_name): Delete unused variable.
15760 (Ffont_spec): Likewise. Validate property values.
15761 (Ffont_match_p): New function.
15762
15763 * font.h (QCscalable): Extern it.
15764 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15765
15766 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15767
15768 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15769 (xfont_list_pattern): New function.
15770 (xfont_list): Use xfont_list_pattern.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * font.h (Flist_fonts): EXFUN it.
15775
157762008-02-01 Jason Rumney <jasonr@gnu.org>
15777
15778 * w32term.c (w32_initialize): Add back smoothing_type and
15779 smoothing_enabled definitions.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15784 s->face->font on determining underline position.
15785
157862008-02-01 Kenichi Handa <handa@m17n.org>
15787
15788 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15789 (font_has_char): Accept font-object too.
15790 (font_find_for_lface): Try at first with a size specified in face.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15795 font_open_by_name.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * font.h (QCspacing, QCdpi): Extern them.
15800 (enum font_spacing): New enum.
15801 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15802
15803 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15804 (QCspacing, QCdpi): New variables.
15805 (syms_of_font): Initialize them.
15806 (font_pixel_size): New function.
15807 (font_put_extra): New function.
15808 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15809 in FONT_EXTRA.
15810 (font_parse_fcname): Handle enumerated values (e.g. bold).
15811 Fix handling font size. Add QCname property that contains only
15812 unknown properties.
15813 (font_score): Change argument. Change caller. Pay attention to
15814 FONT_PIXEL_SIZE_QUANTUM.
15815 (font_sort_entites, font_list_entities, font_find_for_lface)
15816 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15817 (Ffont_spec): Add QCname property that contains only unknown properties.
15818
15819 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15820 include weight in listing pattern, instead check weight of each
15821 listed font. Don't include scalable in pattern. Pay attention to
15822 FONT_PIXEL_SIZE_QUANTUM.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * font.c (font_parse_fcname): Fix parsing of point-size.
15827 (font_unparse_fcname): Produce symbolic names for style properties.
15828 (font_list_entities): Handle float size correctly.
15829 (font_open_by_name): Prefer `normal' property values if the name
15830 doesn't specify them.
15831
15832 * fontset.c (Finternal_char_font): Use font_get_name, not
15833 Ffont_xlfd_name.
15834
15835 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15836 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15837 pattern. Don't force scalable.
15838
15839 * xftfont.c (xftfont_open): For generating a name, start from
15840 96-byte buffer.
15841
158422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15843
15844 * frame.h (x_new_fontset2): Fix prototype.
15845
158462008-02-01 Kenichi Handa <handa@m17n.org>
15847
15848 * font.h (struct font_driver): Delete member parse_name.
15849 (font_match_p, font_get_spec, font_parse_fcname)
15850 (font_unparse_fcname): Extern them.
15851 (font_get_name): Adjust prototype.
15852
15853 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15854 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15855 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15856 unnecessary checks for weight, slant, and swidth.
15857 (font_parse_fcname): New function.
15858 (font_unparse_fcname): New function.
15859 (font_parse_name): New function.
15860 (font_match_p): New function.
15861 (font_get_name): Change return value to Lisp string.
15862 (font_get_spec): New function.
15863 (Qunspecified, Qignore_defface): Don't extern them.
15864 (font_find_for_lface): Assume that LFACE is fully specified.
15865 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15866 object, use it for FACE.
15867 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15868 driver->parse_name.
15869 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15870
15871 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15872 prototype.
15873
15874 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15875 argument F. Don't call Fnew_fontset. Instead, directly call
15876 make_fontset.
15877
15878 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15879
15880 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15881 of x_new_fontset2.
15882
15883 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15884 (Qsans__serif): New variables.
15885 (ftfont_generic_family_list): New variable.
15886 (syms_of_ftfont): Initialize the above variables.
15887 (ftfont_pattern_entity): Delete argument NAME.
15888 (ftfont_list_generic_family): New function.
15889 (ftfont_parse_name): Delete this function.
15890 (ftfont_list): Try generic family only when FcFontList found no font.
15891 (ftfont_list_family): Fix args to FcObjectSetBuild.
15892
15893 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15894 object in attrs[LFACE_FONT_INDEX].
15895 (set_lface_from_font_name): Cancel all changes for font-backend.
15896 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15897 function.
15898 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15899 font object in QCfont attribute.
15900 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15901 (realize_default_face) [USE_FONT_BACKEND]: Call
15902 set_lface_from_font_and_fontset.
15903
15904 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15905 "fixed", and signal error here if no suitable font was found.
15906
15907 * xfont.c (xfont_parse_name): Delete this function.
15908
15909 * xftfont.c (xftfont_open): Change coding style of error
15910 handling. Generate fontconfig's fontname pattern.
15911
15912 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15913 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15914
15915 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15916 Both args FONTSET and FONT_OBJECT must be existing ones.
15917
159182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15919
15920 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15925
15926 * font.h (struct font): Fix typo.
15927
15928 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15929 XLFD_XXX_INDEX.
15930 (enum xlfd_field_mask): New enum.
15931 (intern_font_field): Changed argument. Change caller. If digits
15932 are followed by non-digits, return a symbol.
15933 (font_expand_wildcards): New function.
15934 (font_parse_xlfd): Fix wildcard handling.
15935 (Ffont_spec): If :name is specified, reflect the info in the other
15936 properties.
15937
15938 * ftfont.c (ftfont_pattern_entity): Fix typo.
15939 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15940 locale.
15941
159422008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15945
15946 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15947 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15948 registry doesn't specify encoding part.
15949 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15950 (font_open_by_name): At first try parsing the name.
15951 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15952 as Lisp symbols.
15953
15954 * fontset.c (reorder_font_vector): Pay attention to the case that
15955 the 3rd element of font_def is nil.
15956 (fontset_font): For the default fontset, append one more fontset
15957 elements for a script-based font specification. Don't add script
15958 attribute on finding a font.
15959 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15960 font name.
15961 (fontset_ascii_font): If a font can't be opened, return nil.
15962
15963 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15964 (ftfont_pattern_entity): New function.
15965 (ftfont_get_cache): Assume that freetype_font_cache is already
15966 initialized.
15967 (ftfont_list): Handle the case that a file is specified in font
15968 name. Use ftfont_pattern_entity to generate entities.
15969 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15970 (syms_of_ftfont): Initialize freetype_font_cache.
15971
15972 * xftfont.c (xftfont_open): Make the font name fontconfig's
15973 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15974 (xftfont_close): Free font->font.name if not NULL.
15975
15976 * xfont.c (xfont_list): If script is specified for a font, return
15977 null_vector.
15978 (xfont_list_family): Declare argument type.
15979
15980 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15981 name, set LFACE_FONT (lface) to nil.
15982
15983 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15984 return Qnil.
15985
159862008-02-01 Kenichi Handa <handa@m17n.org>
15987
15988 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15989 (standard_args): Add "-enable-font-backend".
15990
159912008-02-01 Kenichi Handa <handa@m17n.org>
15992
15993 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15994 (struct xftdraw_list, xftdraw_list): Delete them.
15995 (register_xftdraw, check_xftdraw): Delete them.
15996 (xftfont_prepare_face): Don't call register_xftdraw.
15997 (xftfont_done_face): Don't call check_xftdraw.
15998 (xftfont_draw): Get background color only when with_background is
15999 nonzero.
16000
16001 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16002
160032008-02-01 Kenichi Handa <handa@m17n.org>
16004
16005 These changes are for the new font handling codes.
16006
16007 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16008 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16009 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16010 (FONTSRC, FONTOBJ): New variables.
16011 (obj): Add $(FONTOBJ).
16012 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16013 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16014 @LIBOTF_LIBS@.
16015 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16016 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16017
16018 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16019
16020 * character.h (Vscript_representative_chars): Extern it.
16021
16022 * character.c (Vscript_representative_chars): New variable.
16023 (syms_of_character): Declare it as a Lisp variable.
16024
16025 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16026 enable_font_backend is nonzero, accept the composition method
16027 COMPOSITION_WITH_GLYPH_STRING.
16028
16029 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16030 enumeration COMPOSITION_WITH_GLYPH_STRING.
16031
16032 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16033 members clip_x, clip_y, clip_width, and clip_height.
16034 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16035
16036 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16037 --enable-font-backend. Call syms_of_font.
16038
16039 * fns.c (assoc_no_quit): New function.
16040
16041 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16042 (face_for_font, new_fontset_from_font)
16043 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16044
16045 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16046 (fontset_font, fontset_ascii, face_for_char)
16047 (make_fontset_for_ascii_face, Ffont_info)
16048 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16049 is nonzero, use font-backend mechanism.
16050 (find_font_encoding): Make it non-static.
16051 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16052 New functions.
16053
16054 * frame.h (struct frame): New members resx and resy.
16055 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16056 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16057
16058 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16059 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16060
16061 * lisp.h (assoc_no_quit): Extern it.
16062
16063 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16064 Through out the file, use FONT_INFO_FROM_FACE instead of
16065 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16066 rif->per_char_metric.
16067 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16068 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16069 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16070 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16071 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16072 nonzero, use font-backend mechanism.
16073 (get_per_char_metric): New function.
16074
16075 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16076 (set_lface_from_font_name)
16077 (set_font_frame_param, free_realized_face)
16078 (prepare_face_for_display, clear_face_gcs)
16079 (Finternal_set_font_selection_order, realize_x_face)
16080 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16081 font-backend mechanism.
16082 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16083 (load_face_font) [USE_FONT_BACKEND]: Abort.
16084 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16085 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16086
16087 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16088 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16089 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16090 nonzero, register all available font drivers. Call
16091 x_default_font_parameter for deciding a font.
16092 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16093
16094 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16095 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16096 (x_set_glyph_string_clipping_exactly)
16097 (x_compute_glyph_string_overhangs)
16098 (x_draw_glyph_string_foreground)
16099 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16100 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16101 enable_font_backend is nonzero, use font-backend mechanism.
16102 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16107 system_eol_type.
16108 (syms_of_coding): Initialize system_eol_type.
16109
16110 * process.c (Fset_process_coding_system): Inherit system's eol
16111 format if necessary.
16112
161132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16114
16115 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16116
161172008-02-01 Kenichi Handa <handa@m17n.org>
16118
16119 * coding.c (decode_eol): Pay attention to buffer relocation in
16120 del_range_2.
16121 (decode_coding): Call decode_eol before restoring undo_list.
16122
161232008-02-01 Kenichi Handa <handa@m17n.org>
16124
16125 * charset.c (Fdefine_charset_internal): Fix setting of
16126 emacs_mule_bytes.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * keyboard.c (read_char): Check if C is a character or not before
16131 looking up Vkeyboard_translate_table.
16132
161332008-02-01 Kenichi Handa <handa@m17n.org>
16134
16135 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16136 condition to terminate the loop.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * coding.c (produce_composition): Compare charbuf[i] instead of
16141 args[i] against 0.
16142 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16147 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16148 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16149 detect_coding.
16150 (emacs_mule_char): Handle old style (Emacs 20) component character
16151 of a composition.
16152 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16153 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16154 composition rule.
16155 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16156
161572008-02-01 Kenichi Handa <handa@m17n.org>
16158
16159 * coding.c (encode_coding_ccl): Allocate destination dynamically
16160 when necessary.
16161
161622008-02-01 Kenichi Handa <handa@m17n.org>
16163
16164 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16165 the loop. When quitted, show a proper error message.
16166
161672008-02-01 Kenichi Handa <handa@m17n.org>
16168
16169 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16170 src->clip_head and src->clip_tail temporarily instead of src->hl.
16171
16172 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16173 character sequence.
16174 (Fccl_execute_on_string): Use ASET, not XSET.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16179
161802008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * coding.c (decode_coding): Fix the condition of terminating the
16183 decoding loop.
16184
161852008-02-01 Kenichi Handa <handa@m17n.org>
16186
16187 * data.c (Faset): On setting a character bigger than 255 in a
16188 unibyte string, signal an error instead of make the string multibyte.
16189
161902008-02-01 Kenichi Handa <handa@m17n.org>
16191
16192 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16193 made by a mapping table.
16194
161952008-02-01 Kenichi Handa <handa@m17n.org>
16196
16197 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16198 not.
16199 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16200 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16201
16202 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16203 s->face is NULL or not.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16208 (x_draw_glyph_string): Fix drawing of right_overhang and
16209 left_overhang around/on cursor.
16210
16211 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16216
162172008-02-01 Kenichi Handa <handa@m17n.org>
16218
16219 * coding.c (Fdefine_coding_system_internal)
16220 (Fdefine_coding_system_alias): Avoid a duplicated element in
16221 Vcoding_system_alist.
16222
162232008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16226
16227 * coding.c (Qcoding_system_define_form): New variable.
16228 (syms_of_coding): Intern and staticpro it.
16229 (Fcoding_system_p): Check Qcoding_system_define_form.
16230 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16231
16232 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16233 Fcoding_system_p.
16234 (CHECK_CODING_SYSTEM): If ID is not available, call
16235 Fcheck_coding_system.
16236 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16237 Try also Fcheck_coding_system.
16238
162392008-02-01 Kenichi Handa <handa@m17n.org>
16240
16241 * coding.c (code_conversion_restore): GCPRO arg.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * character.c (lisp_string_width): Check multibyteness of STRING.
16246
162472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16248
16249 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16250 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16251 (decode_mac_font_name): Use decode_coding_c_string instead of
16252 decode_coding.
16253 (x_load_font): Initialize fontp->fontset to -1. Set
16254 fontp->encoding_type.
16255
162562008-02-01 Kenichi Handa <handa@m17n.org>
16257
16258 * search.c (search_buffer): Give up BM search on case-fold-search
16259 if one of a target character has a case-equivalence of different
16260 byte length even if that target charcter is an ASCII.
16261 (simple_search): Fix calculation of byte length of matched text.
16262 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16263
162642008-02-01 Kenichi Handa <handa@m17n.org>
16265
16266 * coding.c (decode_coding): Fix handling of invalid bytes.
16267
162682008-02-01 Kenichi Handa <handa@m17n.org>
16269
16270 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16271 Unicode characters.
16272
162732008-02-01 Kenichi Handa <handa@m17n.org>
16274
16275 * coding.c (encode_coding_object): If a pre-write-conversion
16276 function makes a new buffer, kill it.
16277
162782008-02-01 Kenichi Handa <handa@m17n.org>
16279
16280 * coding.c (QCascii_compatible_p): New variable.
16281 (syms_of_coding): Initialize it.
16282 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16283 calling string_char.
16284 (record_conversion_result): Add `default:' case.
16285 (coding_charset_list): Delete unused variable `coding_type'.
16286 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16287 property in the plist of the coding system.
16288 (Fcoding_system_put): Check QCascii_compatible_p.
16289
162902008-02-01 Miles Bader <miles@gnu.org>
16291
16292 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16293 removed calculation of frame `f', as it's now used.
16294
162952008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16298 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16299 (UNIDATA): New variable.
16300 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16301 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16302 $(RUN_TEMACS) unconditionally.
16303
163042008-02-01 Kenichi Handa <handa@m17n.org>
16305
16306 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16307 (admindir): New variable.
16308 ($(lispsource)international/charprop.el): New target.
16309
163102008-02-01 Miles Bader <miles@gnu.org>
16311
16312 * character.c (chars-in-region): Remove obsolete function.
16313 (syms_of_character): Remove its initialization.
16314
163152008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16316
16317 * w32select.c (validate_coding_system)
16318 (setup_windows_coding_system): New functions.
16319 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16320 setup_windows_coding_system.
16321 (setup_config, Fw32_get_clipboard_data): Use
16322 validate_coding_system.
16323 (Fx_selection_exists): Move call to setup_config to a place
16324 where signals are allowed.
16325
16326 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16327 (Fcheck_coding_system): Add declarations.
16328
163292008-02-01 Kenichi Handa <handa@m17n.org>
16330
16331 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16332
163332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16334
16335 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16336 string as the second argument for x_new_fontset.
16337
163382008-02-01 Kenichi Handa <handa@m17n.org>
16339
16340 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16341 (encode_coding_object): Use safe_call instead of call2.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16346
16347 * Makefile.in (lisp): Include charprop.el.
16348
163492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16350
16351 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16352 Not sure if it's unnecessary.
16353
163542008-02-01 Steven Tamm <steventamm@mac.com>
16355
16356 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16357 some possibly unnecessary fontset checking code that crashed
16358 when creating a new frame.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16363 lookup_face.
16364
16365 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16366
16367 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16372 (coding_charset_list): New function.
16373
16374 * coding.h (coding_charset_list): Extern it.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16379 concatenation of family and registry.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * character.h (BYTE8_STRING): Fix typo.
16384
16385 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16386 string to multibyte (sync to HEAD).
16387
16388 * casefiddle.c (casify_region): Handle changes in byte-length
16389 using replace_range_2 (sync to HEAD).
16390
163912008-02-01 Andreas Schwab <schwab@suse.de>
16392
16393 * chartab.c (map_char_table): GCPRO table and arg.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16398 already at limit.
16399
164002008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16403 instead of fast_c_string_match_ignore_case.
16404 (find_font_encoding): Change argument to Lisp_Object. Use
16405 fast_string_match_ignore_case instead of
16406 fast_c_string_match_ignore_case. Change caller.
16407
164082008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * xdisp.c (get_next_display_element): In unibyte case, decide to
16411 display in octal form by checking a character by
16412 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16413
16414 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16415
16416 * character.c (unibyte_has_multibyte_table): New variable.
16417
16418 * character.h (unibyte_has_multibyte_table): Extern it.
16419 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16420
164212008-02-01 Kenichi Handa <handa@m17n.org>
16422
16423 * coding.c (encode_coding_iso_2022): Fix handling of charset
16424 annotation.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * coding.c (setup_coding_system): If coding_system is nil, use
16429 Qundecided.
16430 (Fterminal_coding_system): Return nil if terminal coding system is
16431 `undecided'.
16432 (syms_of_coding): Define coding-system `undecided' here. Setup
16433 terminal_coding as `undecided'.
16434
164352008-02-01 Kenichi Handa <handa@m17n.org>
16436
16437 * xdisp.c (message_dolog, set_message_1): Call
16438 unibyte_char_to_multibyte with arg type int.
16439
16440 * lread.c (read1): Fix reading of a char-table.
16441
16442 * print.c (print_object): Include sub char-table in circularities
16443 detection.
16444
164452008-02-01 Kenichi Handa <handa@m17n.org>
16446
16447 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16448 Append the found sequences in car of ARGS instead of prepending.
16449
164502008-02-01 Kenichi Handa <handa@m17n.org>
16451
16452 * fileio.c (report_file_error): Make a unibyte string from
16453 strerror (errorno).
16454 (Fsubstitute_in_file_name): Fix the arg to
16455 unibyte_char_to_multibyte. It is evaluated twice.
16456
164572008-02-01 Kenichi Handa <handa@m17n.org>
16458
16459 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16460
164612008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16464 BOM is not found.
16465 (detect_coding, detect_coding_system): Optimization for ISO-2022
16466 when no 8-bit data is found.
16467
164682008-02-01 Jason Rumney <jasonr@gnu.org>
16469
16470 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16475 CHARS.
16476
164772008-02-01 Steven Tamm <steventamm@mac.com>
16478
16479 * macterm.c (mac_encode_char): Add charset argument and update
16480 to use encoding_type.
16481 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16482 switch to pure fontset.
16483 (decode_mac_font_name): Temporarily remove decoding.
16484 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16485 (x_load_font): Temporarily remove encoding.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * xfaces.c (Fface_font): If frame is not on a window system,
16490 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16491 refer to face->font.
16492 (split_font_name_into_vector, build_font_name_from_vector)
16493 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16494 when HAVE_WINDOW_SYSTEM is defined.
16495
164962008-02-01 Kenichi Handa <handa@m17n.org>
16497
16498 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16499 (x_produce_glyphs): Fix setting of members of cmp in case
16500 cmp->glyph_len is zero.
16501
16502 * fontset.c (Fset_fontset_font): Fix docstring.
16503 (Ffontset_info): Make it backward compatible. New arg ALL.
16504
165052008-02-01 Kim F. Storm <storm@cua.dk>
16506
16507 * process.c (read_process_output): Grow decoding_buf when needed;
16508 this could cause a crash in allocate_string and compact_small_strings.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16513
165142008-02-01 Kenichi Handa <handa@m17n.org>
16515
16516 * coding.c (setup_coding_system): Set coding->common_flags
16517 correctly for raw-text.
16518 (consume_chars): On encoding unibyte text by raw-text, don't check
16519 multibyte form.
16520 (encode_coding): On encoding by raw-text, never use translation tables.
16521
16522 * fileio.c (e_write): Short cut for the case of no encoding.
16523
165242008-02-01 Kenichi Handa <handa@m17n.org>
16525
16526 * coding.c (detect_coding, detect_coding_system): Delete unused
16527 variables.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16532 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * coding.c (Ffind_coding_systems_region_internal): Include
16537 raw-text and no-conversion in the result.
16538
165392008-02-01 Kenichi Handa <handa@m17n.org>
16540
16541 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16542 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16543 FONT_DEF.
16544 (font_def_arg, add_arg, from_arg, to_arg): New args.
16545 (set_fontset_font): Change argument.
16546 (Fset_fontset_font): Fix for the case that TARGET is a script
16547 name and charset name.
16548 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16549
165502008-02-01 Kenichi Handa <handa@m17n.org>
16551
16552 * fontset.c (fontset_font): Rename from fontset_face. Change return
16553 value.
16554 (face_suitable_for_char_p, face_for_char): Adjust for the change
16555 of fontset_font.
16556 (make_fontset_for_ascii_face): Fix setting of the fontset element
16557 for ASCII.
16558 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16559 to get a font name.
16560 (Ffontset_info): Adjust for the change of fontset_font.
16561
16562 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16563
16564 * character.h (LEADING_CODE_LATIN_1_MIN)
16565 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16566
165672008-02-01 Kenichi Handa <handa@m17n.org>
16568
16569 * editfns.c (check_translation): New function.
16570 (Ftranslate_region_internal): Handle M:N mapping.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16575
165762008-02-01 Kenichi Handa <handa@m17n.org>
16577
16578 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16579 goto invalid_code.
16580 (decode_coding_iso_2022): Fix handling of invalid designation.
16581
16582 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16583 after calling code_conversion_save.
16584
165852008-02-01 Kenichi Handa <handa@m17n.org>
16586
16587 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16588
16589 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16590
16591 * fontset.c: Include "intervals.h".
16592 (fontset_face): Fix comparing of Lisp_Objects.
16593 (free_face_fontset, new_fontset_from_font_name): Fix
16594 Lisp_Object/int mixup.
16595
16596 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16597
16598 * coding.c: Add many prototypes for static functions.
16599 (get_translation_table): Allow max_lookup to be NULL.
16600 (decode_coding, Ffind_coding_systems_region_internal)
16601 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16602 get_translation_table with max_lookup NULL.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * coding.c (get_translation_table): Declare it as Lisp_Object.
16607 (LOOKUP_TRANSLATION_TABLE): New macro.
16608 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16609 instead of CHAR_TABLE_REF.
16610
166112008-02-01 Kenichi Handa <handa@m17n.org>
16612
16613 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16614 annotation data format.
16615 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16616 Change arguments FROM and TO to single argument NCHARS. Change caller.
16617 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16618 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16619 (decode_coding_ccl, decode_coding_charset): Pay attention to
16620 coding->charbuf_used.
16621 (get_translation): New function.
16622 (produce_chars): New arguments translation_table and last_block.
16623 Translate characters here. Return number of carryover chars.
16624 Change caller.
16625 (produce_composition): New argument pos. Change caller.
16626 Adjust for the change of annotation data format.
16627 (produce_charset, produce_annotation): Likewise.
16628 (decode_coding, encode_coding): Don't call translate_chars.
16629 (consume_chars): New arg translation_table. Change caller.
16630 (translate_chars): Delete.
16631 (syms_of_coding): Make translation-table's number of extra slots 2.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * search.c (simple_search): Fix setting this_pos_byte in backward
16636 search.
16637
16638 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16639 byte sequence.
16640 (detect_coding_ccl): Fix setting of the variable valids.
16641
166422008-02-01 Kenichi Handa <handa@m17n.org>
16643
16644 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16645
16646 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16647
16648 * editfns.c (Ftranslate_region_internal): Rename from
16649 Ftranslate_region. Accept a char-table in TABLE.
16650 (syms_of_editfns): Defsubr Stranslate_region_internal.
16651
16652 * xfaces.c (set_lface_from_font_name): If a font is specified for
16653 a frame, generate a fontset from the font.
16654 (build_scalable_font_name): If the scalable font is requested for
16655 a specific size, don't change that size.
16656 (try_font_list): Try a scalable font also in the case that a
16657 pattern string is specified.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * xfaces.c (Fface_font): New optional arg CHARACTER.
16662
166632008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 * charset.h (CHARSET_OFFSET): New macro.
16666
166672008-02-01 Kenichi Handa <handa@m17n.org>
16668
16669 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16670
16671 * fontset.c (fontset_face): Handle the case that repertory is a
16672 char-table.
16673 (find_font_encoding): Return nil for unknown encoding.
16674 (Fset_fontset_font): Ignore a font of unknown encoding.
16675
166762008-02-01 Kenichi Handa <handa@m17n.org>
16677
16678 * keymap.c (describe_vector): Handle default value of a char table.
16679
16680 * fontset.c (fontset_face): Handle fallback fonts correctly.
16681 (Ffontset_info): Return infomation about fallback fonts.
16682
166832008-02-01 Kenichi Handa <handa@m17n.org>
16684
16685 * fontset.c (FONTSET_DEFAULT): New macro.
16686 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16687 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16688 the case that it is nil.
16689 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16690 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16691
16692 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16693 subset or superset.
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * emacs.c (main): Call init_charset after syms_of_XXX.
16698
16699 * charset.c (Vcharset_map_directory): Delete.
16700 (Vcharset_map_path): New variable.
16701 (load_charset_map_from_file): Use Vcharset_map_path instead.
16702 (init_charset): Initialize Vcharset_map_path.
16703 (syms_of_charset): Delete declaration of "charset-map-directory",
16704 add declaration of "charset-map-path".
16705
167062008-02-01 Kenichi Handa <handa@m17n.org>
16707
16708 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16709 ASCII only string.
16710
16711 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16712
16713 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16714 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16715
167162008-02-01 Kenichi Handa <handa@m17n.org>
16717
16718 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16719
16720 * coding.c (QCmnemonic, QCdefalut_char)
16721 (QCdecode_translation_table, QCencode_translation_table)
16722 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16723 (get_translation_table): Return a list of translation tables if
16724 necessary.
16725 (decode_coding): Call get_translation_table with ENCODEP 0.
16726 (char_encodable_p): If translation_table is non-nil, always call
16727 translate_char.
16728 (Fdefine_coding_system_internal): Accept list of translation
16729 tables as :encode-translation-table and :decode-translation-table.
16730 (Fcoding_system_put): New function.
16731 (syms_of_coding): Declare new symbols. Defsubr
16732 Scoding_system_put.
16733 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16734 typically JISX0212.
16735
16736 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16737 when the charset is superset type.
16738
16739 * character.c (translate_char): Accept list of translation tables.
16740
167412008-02-01 Kenichi Handa <handa@m17n.org>
16742
16743 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16744 (CODING_ATTR_TRANS_TBL): New macro.
16745
16746 * coding.c (get_translation_table): New function.
16747 (translate_chars): Fix the bug of skipping annotation data.
16748 (decode_coding, encode_coding): Utilize get_translation_table.
16749 (char_encodable_p, Funencodable_char_position): Translate char if
16750 necessary.
16751 (Ffind_coding_systems_region_internal)
16752 (Fcheck_coding_systems_region): Setup translation table for encode
16753 in a coding system attribute vector in advance.
16754 (Fdefine_coding_system_internal): Allow a symbol as translation
16755 table. For shift-jis type coding system, allow 4th charset.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16760
16761 * xdisp.c (get_next_display_element): Pass -1 as POS to
16762 FACE_FOR_CHAR if displaying a C-string.
16763
167642008-02-01 Kenichi Handa <handa@m17n.org>
16765
16766 * composite.c (get_composition_id): Handle xoff and yoff in a
16767 composition rule.
16768
16769 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16770 (struct composition): New member lbearing and rbearing.
16771
16772 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16773 (x_get_glyph_overhangs): Handle a composition glyph.
16774 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16775
16776 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16777 composition glyph.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * print.c: Include charset.h.
16782 (Vprint_charset_text_property): New variable.
16783 (Qdefault): Extern it.
16784 (PRINT_STRING_NON_CHARSET_FOUND)
16785 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16786 (print_check_string_result): New variable.
16787 (print_check_string_charset_prop): New function.
16788 (print_prune_charset_plist): New variable.
16789 (print_prune_string_charset): New function.
16790 (print_object): Call print_prune_string_charset if
16791 Vprint_charset_text_property is not t.
16792 (print_interval): Print nothing if interval->plist is nil.
16793 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16794 variable. Init and staticpro print_prune_charset_plist.
16795
167962008-02-01 Kenichi Handa <handa@m17n.org>
16797
16798 * fontset.c (new_fontset_from_font_name): Use the specified font
16799 for all characters in the new fontset.
16800
16801 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16802 OBJECT args.
16803
16804 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16805 OBJECT args for composition too.
16806
16807 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16808 OBJECT args.
16809
168102008-02-01 Kenichi Handa <handa@m17n.org>
16811
16812 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16813
16814 * fontset.c (reorder_font_vector): Adjust for the change of
16815 FONT_DEF format.
16816 (fontset_face): New arg id. Change caller.
16817 (face_for_char): New args pos and object.
16818 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16819 (fs_query_fontset): Check NAME by Fassoc too.
16820 (Fset_fontset_font): Allow non-XLFD font name.
16821 (Ffontset_info): Adjust for the change of FONT_DEF format.
16822
16823 * fontset.h (face_for_char): Adjust prototype.
16824
16825 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16826 (append_space, extend_face_to_end_of_line)
16827 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16828 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16829
16830 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16831 POS and OBJECT args.
16832
16833 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16834 POS and OBJECT args.
16835
168362008-02-01 Jason Rumney <jasonr@gnu.org>
16837
16838 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16839 of GlobalAlloc'ed memory.
16840
168412008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16844
16845 * charset.h (charset_table_used): Delete extern.
16846
16847 * charset.c (charset_table_used): Make it static.
16848 (map_charset_chars): Fix args to c_function with.
16849
16850 * chartab.c (map_sub_char_table_for_charset): Fix args to
16851 c_function with.
16852
16853 * coding.h (enum coding_result_code): Delete
16854 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16855
16856 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16857 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16858 (Vlast_code_conversion_error): New variables.
16859 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16860 (ONE_MORE_BYTE): Record error if any instead of signaling an
16861 error. If non-ASCII multibyte char is found, return the negative
16862 value of the code. All callers changed to check it.
16863 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16864 (record_conversion_result): New function. Change all codes setting
16865 coding->result to call this function.
16866 (detect_coding_utf_8, decode_coding_utf_8)
16867 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16868 Don't use the local variable incomplete.
16869 (emacs_mule_char): Change the second arg to `const'.
16870 (decode_coding): Fix of flushing out unprocessed data.
16871 (make_conversion_work_buffer): Fix making of a work buffer.
16872 (decode_coding_object): Return coding->dst_object.
16873
16874 * fontset.c (set_fontset_font): Fix args.
16875
16876 * lisp.h (CHARACTERBITS): Define as 22.
16877
16878 * process.c (send_process): Be sure to set coding->src_multibyte.
16879
16880 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16881
168822008-02-01 Kenichi Handa <handa@m17n.org>
16883
16884 * xdisp.c (handle_auto_composed_prop): Give limit to
16885 Fnext_single_char_property_change.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * composite.c (syms_of_composite): Don't make the composition hash
16890 table weak.
16891
16892 * fontset.c (Fset_fontset_font): Fix docstring.
16893
16894 * lisp.h (detect_coding_system): Adjust prototype.
16895
16896 * fileio.c (kill_workbuf_unwind): Delete this function.
16897 (Finsert_file_contents): Adjust the call of detect_coding_system.
16898 Get conversion_buffer by code_conversion_save. Use the macro
16899 CODING_MAY_REQUIRE_DECODING. After decoding, update
16900 coding_system.
16901
16902 * coding.h (make_conversion_work_buffer): Delete extern.
16903 (code_conversion_save): Extern it.
16904
16905 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16906 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16907 (decode_coding_utf_8): Don't do eol converion.
16908 (detect_coding_utf_16): Check coding->src_chars, not
16909 coding->src_bytes. Add heuristics for those that have no signature.
16910 (decode_coding_emacs_mule, decode_coding_iso_2022)
16911 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16912 Don't do eol converion.
16913 (adjust_coding_eol_type): Return a new coding system.
16914 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16915 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16916 each change.
16917 (decode_coding): Pay attention to undo_list. Do eol conversion for
16918 all types of coding-systems (if necessary).
16919 (Vcode_conversion_work_buf_list): Delete it.
16920 (Vcode_conversion_reused_workbuf): Rename from
16921 Vcode_conversion_reused_work_buf.
16922 (Vcode_conversion_workbuf_name): New variable.
16923 (reused_workbuf_in_use): New variable.
16924 (make_conversion_work_buffer): Delete the arg DEPTH.
16925 (code_conversion_restore): Change argument to cons.
16926 (code_conversion_save): Delete the argument BUFFER. Change callers.
16927 (detect_coding_system): New argument src_chars. Change callers.
16928 Fix for utf-16 detection.
16929 (init_coding_once): Don't use ISO_carriage_return.
16930 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16931 reused_workbuf_in_use.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * keymap.c (store_in_keymap): Pay attention to the case that idx
16936 is a cons specifying a character range.
16937
169382008-02-01 Kenichi Handa <handa@m17n.org>
16939
16940 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16941 HANDLED_RECOMPUTE_PROPS.
16942
16943 * coding.c (Fdefine_coding_system_internal): Fix checking of
16944 ascii compatibility.
16945
169462008-02-01 Kenichi Handa <handa@m17n.org>
16947
16948 * charset.c (find_charsets_in_text): Delete unused locale variable.
16949 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16950
16951 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16952 Resync charset_list to Vemacs_mule_charset_list.
16953
16954 * keymap.c (store_in_keymap): Pay attention to the case that idx
16955 is a cons specifying a character range.
16956
169572008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 * composite.c (update_compositions): Bind inhibit-read-only, etc
16960 to t before calling remove-list-of-text-properties.
16961
16962 * print.c (print_object): Always print ASCII chars as is.
16963
169642008-02-01 Kenichi Handa <handa@m17n.org>
16965
16966 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16967
16968 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16969 is a char table.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16974
169752008-02-01 Kenichi Handa <handa@m17n.org>
16976
16977 * xfaces.c (set_lface_from_font_name): Fix for the case that
16978 FONTNAME is not fontset name.
16979
169802008-02-01 Kenichi Handa <handa@m17n.org>
16981
16982 * fns.c (base64_encode_1): Fix previous change.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * fontset.c (set_fontset_font): New function.
16987 (Fset_fontset_font): If a font is specified for a charset, use
16988 map_charset_chars to store the font spec in a fontset.
16989
169902008-02-01 Kenichi Handa <handa@m17n.org>
16991
16992 * fontset.c (fontset_face): Create a fallback fontset on demand.
16993 (make_fontset): Don't create a fallback fontset here.
16994 (free_face_fontset): Free a fallback fontset (if any) too.
16995 (n_auto_fontsets): Delete this variable.
16996 (auto_fontset_alist): New variable.
16997 (new_fontset_from_font_name): Check auto_fontset_alist.
16998 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16999 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17000 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17001 Defsubr Sfontset_list_all.
17002
170032008-02-01 Kenichi Handa <handa@m17n.org>
17004
17005 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17010
170112008-02-01 Kenichi Handa <handa@m17n.org>
17012
17013 * editfns.c (Fgoto_char): Fix docstring.
17014
170152008-02-01 Kenichi Handa <handa@m17n.org>
17016
17017 * insdel.c (insert_from_gap): Adjust intervals correctly.
17018
170192008-02-01 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17022 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17023 (w32_initialize): Try to load it.
17024 (x_get_font_repertory): Use it if available.
17025 (w32_encode_char): Add shortcut for unicode output.
17026
17027 * w32fns.c (w32_load_system_font): Default charset to -1.
17028 (x_to_w32_charset): Match all fonts for unicode.
17029 (w32_to_x_charset): New parameter matching. Don't return partial
17030 or wildcard charsets.
17031 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17032 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17033 (w32_to_x_font): Match charset to real charset.
17034 (enum_font_cb2): Always list unicode versions.
17035
17036 * makefile.w32-in (temacs): Increase EMHEAP.
17037
170382008-02-01 Jason Rumney <jasonr@gnu.org>
17039
17040 * w32term.c (w32_encode_char): New charset parameter.
17041 font_info.encoding becomes encoding_type.
17042 (x_get_font_repertory): New function. Warning: stub only!
17043 (x_new_font): Return quickly if font already set.
17044 (x_new_fontset): fontsetname parameter is Lisp_Object.
17045 Use new fs_query_fontset. Try new_fontset_from_font_name.
17046 Use fontset_name for return value.
17047
17048 * w32term.h: Declare x_get_font_repertory.
17049
17050 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17051 place of find_charset_in_text. Use encode_coding_object in place
17052 of encode_coding.
17053 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17054 decode_coding.
17055
17056 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17057 of x_new_fontset.
17058 (w32_load_system_font): Initialize charset as unicode.
17059 font_info.encoding becomes encoding_type.
17060 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17061 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17062 (syms_of_w32fns): Set get_font_repertory_func.
17063
17064 * w32console.c: Include character.h. Use terminal_encode_buffer
17065 from term.c.
17066 (write_glyphs): Use new version of encode_terminal_code. Use
17067 encode_coding_object in place of encode_coding.
17068
17069 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17070 encoding becomes encoding_type.
17071
17072 * term.c (terminal_encode_buffer): Make externally visible.
17073
17074 * makefile.w32-in: Add character.h dependancies.
17075 (character.o, chartab.o): New targets.
17076
170772008-02-01 Kenichi Handa <handa@m17n.org>
17078
17079 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17080 CODING_ID_EOL_TYPE.
17081
170822008-02-01 Andreas Schwab <schwab@suse.de>
17083
17084 * coding.c (produce_chars): Revert last change.
17085
170862008-02-01 Kenichi Handa <handa@m17n.org>
17087
17088 * charset.h (charset_unicode): Extern it.
17089
17090 * charset.c (string_xstring_p): Check by (C >= 0x100).
17091 (find_charsets_in_text): Change format of the arc CHARSETS. New
17092 arg MULTIBYTE.
17093 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17094 change of find_charsets_in_text.
17095 (Fsplit_char): Fix doc. Never return unknown.
17096
17097 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17098
17099 * coding.c (Fdefine_coding_system_alias): Update
17100 Vcoding_system_list.
17101
17102 * fontset.c (load_font_get_repertory): Pay attention to the case
17103 that ENCODING of a font is specified by a char-table.
17104
17105 * xterm.c (x_get_font_repertory): Handle the case that the
17106 encoding of font is other than Unicode.
17107
171082008-02-01 Kenichi Handa <handa@m17n.org>
17109
17110 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17111 if a character is encodable by the terminal coding system. If
17112 not, produces proper number of `?'s. Update
17113 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17114 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17115
171162008-02-01 Kenichi Handa <handa@m17n.org>
17117
17118 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17119 variables.
17120 (encode_terminal_code): Change argument. Encode multiple
17121 characters at once. Store the result of encoding in
17122 terminal_encode_buffer.
17123 (write_glyphs, insert_glyphs): Adjust for the change of
17124 encode_terminal_code.
17125 (term_init): Initialize terminal_encode_buffer and
17126 terminal_encode_buf_size.
17127
17128 * coding.c (consume_chars): If coding->src_object is nil, don't
17129 check annotation.
17130
171312008-02-01 Kenichi Handa <handa@m17n.org>
17132
17133 * character.c (char_string): Use ASCII_CHAR_P instead of
17134 SINGLE_BYTE_CHAR_P.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * xdisp.c (handle_auto_composed_prop): Check if the last
17139 characters of auto-composed region is newly composed with the
17140 following characters.
17141 (handle_composition_prop): Fix checking of point being inside
17142 composition.
17143
171442008-02-01 Kenichi Handa <handa@m17n.org>
17145
17146 * fns.c (concat): Don't change multibyteness of the result by
17147 concatenating an 8-bit character.
17148
17149 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17150 multibyteness of the result when newelt is an 8-bit character.
17151
171522008-02-01 Dave Love <fx@gnu.org>
17153
17154 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17155 EMACS_INT.
17156
17157 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17158
17159 * xfaces.c (face_numeric_value): Declare dim size_t.
17160 (Finternal_lisp_face_equal_p): Remove unused f.
17161
17162 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17163 (MATRIX_ROW): Remove unused vars.
17164 (draw_glyphs, x_insert_glyphs, fast_find_position)
17165 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17166 byte/char counts.
17167
17168 * regex.c (regex_compile): Remove unused var.
17169
17170 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17171
17172 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17173 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17174
17175 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17176
17177 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17178
17179 * fileio.c (Fwrite_region): Remove unused var.
17180
17181 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17182 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17183
17184 * composite.c (Fremove_list_of_text_properties): Declare.
17185
17186 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17187 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17188 (coding_inherit_eol_type): Remove unused attrs.
17189 (detect_coding): Cast arg of detect_eol.
17190
17191 * charset.c (syms_of_charset): Remove unused var p.
17192 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17193 byte/char counts.
17194
17195 * casetab.c (set_case_table): Remove unused var.
17196
17197 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17198 unused vars.
17199
172002008-02-01 Dave Love <fx@gnu.org>
17201
17202 * xterm.c (x_bitmap_mask): Declare.
17203
172042008-02-01 Dave Love <fx@gnu.org>
17205
17206 * xterm.c (x_term_init): Fix type error.
17207
17208 * lisp.h: Add Funibyte_char_to_multibyte.
17209
17210 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17211 (Fset_coding_system_priority): Doc fix.
17212
17213 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17214
17215 * indent.c (check_composition): Make start and end EMACS_INT.
17216
17217 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17218
17219 * xdisp.c (handle_composition_prop, check_point_in_composition):
17220 Make buffer positions EMACS_INT.
17221
17222 * composite.c (find_composition, run_composition_function)
17223 (update_compositions, Ffind_composition_internal): Make buffer
17224 positions EMACS_INT.
17225
17226 * composite.h (find_composition, update_compositions): Make
17227 position args EMACS_INT.
17228
17229 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17230
17231 * intervals.c (get_property_and_range):
17232 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17233
17234 * unexalpha.c: Don't include varargs.h.
17235
172362008-02-01 Dave Love <fx@gnu.org>
17237
17238 * coding.h (ENCODE_UTF_8): New.
17239
17240 * Makefile.in (gtkutil.o): Depend on coding.h.
17241
17242 * coding.c (Fset_coding_system_priority): Doc fix.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17247 the case of auto saving.
17248
172492008-02-01 Andreas Schwab <schwab@suse.de>
17250
17251 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17252 `range' from GC.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17257
172582008-02-01 Kenichi Handa <handa@m17n.org>
17259
17260 * fileio.c (choose_write_coding_system): Return a decided coding system.
17261 (Fwrite_region): Set Vlast_coding_system_used to the return value
17262 of choose_write_coding_system.
17263
172642008-02-01 Kenichi Handa <handa@m17n.org>
17265
17266 * charset.c (Fset_charset_priority): Pay attention to duplicated
17267 arguments.
17268
17269 * coding.c (QCcategory): New variable.
17270 (syms_of_coding): Defsym it. Set all elements of
17271 Vcoding_category_table and their symbol values.
17272 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17273 coding-category-XXX, and coding-category-list.
17274 (Fdefine_coding_system_internal): Add category in the plist.
17275
172762008-02-01 Kenichi Handa <handa@m17n.org>
17277
17278 * callproc.c (Fcall_process): Handle carryover correctly.
17279
17280 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17281 (raw_text_coding_system): Check NILP (coding_system).
17282 (coding_inherit_eol_type): Check NILP (coding_system) and
17283 NILP (parent).
17284 (consume_chars): Fix for the case of raw-text.
17285
17286 * process.c (read_process_output): Handle carryover correctly.
17287
172882008-02-01 Dave Love <fx@gnu.org>
17289
17290 * regex.c (re_search_2): Fix last change.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17295 target_multibyte. Even in a unibyte case, return a converted
17296 multibyte char.
17297 (GET_CHAR_AFTER): New macro.
17298 (PATFETCH): Translate via multibyte char.
17299 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17300 (SETUP_MULTIBYTE_RANGE): New macro.
17301 (regex_compile): Setup compiled code so that its multibyteness
17302 matches that of a target. Fix the handling of "[X-YZ]" using
17303 SETUP_MULTIBYTE_RANGE.
17304 (analyse_first) <charset>: For filling fastmap for all multibyte
17305 characters, don't check by BASE_LEADING_CODE_P.
17306 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17307 the same as RE_MULTIBYTE_P (bufp) now.
17308 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17309 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17310 (TRANSLATE_VIA_MULTIBYTE): New macro.
17311 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17312 It is the same as RE_MULTIBYTE_P (bufp) now.
17313 <exactn>: Translate via multibyte.
17314 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17315 translate it.
17316 <charset, charset_not>: Fetch a character by
17317 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17318 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17319 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17320 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17321 by GET_CHAR_AFTER.
17322 (bcmp_translate): Likewise.
17323
17324 * search.c (compile_pattern): Check the member target_multibyte,
17325 not the member multibyte of buf.
17326
17327 * lread.c (read1): While reading a string, set force_singlebyte
17328 and force_multibyte correctly.
17329
17330 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17331 up of unibyte_to_multibyte_table.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * coding.c (setup_coding_system): If coding has
17336 post-read-conversion or pre-write-conversion, set
17337 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17338 respectively.
17339 (decode_coding_gap): Run post-read-conversion if any.
17340
17341 * fileio.c (Finsert_file_contents): Even if we read into a
17342 unibyte buffer, check if we must decode the result or not.
17343
173442008-02-01 Kenichi Handa <handa@m17n.org>
17345
17346 * coding.c (make_conversion_work_buffer): Change the work buffer
17347 name to the same one as that of Emacs 21.
17348
173492008-02-01 Kenichi Handa <handa@m17n.org>
17350
17351 * coding.h (make_conversion_work_buffer): Adjust prototype.
17352 (code_conversion_restore): Don't extern it.
17353
17354 * coding.c (detected_mask): Delete unused variable.
17355 (decode_coding_iso_2022): Pay attention to the byte sequence of
17356 CTEXT extended segment, and retain those bytes as is.
17357 (decode_coding_ccl): Delete unused variable `valids'.
17358 (setup_coding_system): Delete unused variable `category'.
17359 (consume_chars): Delete unused variable `category'. Make it work
17360 for non-multibyte case.
17361 (make_conversion_work_buffer): Change argument.
17362 (saved_coding): Delete unused variable.
17363 (code_conversion_restore): Don't check saved_coding->destination.
17364 (code_conversion_save): New function.
17365 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17366 instead of record_unwind_protect.
17367 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17368 (detect_coding_system): Delete unused variable `mask'.
17369 (Fdefine_coding_system_internal): Delete unused variable id.
17370
17371 * fileio.c (kill_workbuf_unwind): New function.
17372 (Finsert_file_contents): On replacing, call
17373 make_conversion_work_buffer with correct args, and call
17374 record_unwind_protect with the first arg kill_workbuf_unwind.
17375
17376 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17377
173782008-02-01 Kenichi Handa <handa@m17n.org>
17379
17380 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17381 (fontset_add): Fix for the case that TO is less than TO1.
17382 (Ffontset_info): Don't use fallback fontset on checking the
17383 default fontset.
17384 (dump_fontset): New function for debugging.
17385
17386 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17387 coding_type is Qcharset.
17388
173892008-02-01 Kenichi Handa <handa@m17n.org>
17390
17391 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17392 (map_char_table): Don't inherit the value from the parent on
17393 initializing VAL. Adjust for the above change.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * coding.c (Qsignature, Qendian): Delete these variables.
17398 (syms_of_coding): Don't initialize them.
17399 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17400 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17401 detect_info->found.
17402 (decode_coding_utf_16): Don't detect BOM here.
17403 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17404 is NOT utf_16_without_bom.
17405 (setup_coding_system): For a coding system of type utf-16, check
17406 if the attribute :endian is Qbig or not (not nil or not), and set
17407 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17408 (detect_coding): If coding type is utf-16 and BOM detection is
17409 required, detect it.
17410 (Fdefine_coding_system_internal): For a coding system of type
17411 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17412
174132008-02-01 Kenichi Handa <handa@m17n.org>
17414
17415 * coding.c (coding_set_source): Fix for the case that the current
17416 buffer is different from coding->src_object.
17417 (decode_coding_object): Don't use the conversion work buffer if
17418 DST_OBJECT is a buffer.
17419
174202008-02-01 Dave Love <fx@gnu.org>
17421
17422 * lread.c (read_emacs_mule_char) [len==2]: Index
17423 emacs_mule_charset correctly.
17424
174252008-02-01 Dave Love <fx@gnu.org>
17426
17427 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17428 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17429 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17430 treated specially.)
17431 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17432 (detected_mask): Remove Big5 bits.
17433
174342008-02-01 Kenichi Handa <handa@m17n.org>
17435
17436 The following changes are to make the font rescaling facility
17437 compatible with Emacs 21.
17438
17439 * xfaces.c (Vface_font_rescale_alist): Rename from
17440 Vface_resizing_fonts.
17441 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17442 (font_rescale_ratio): Rename from font_resizing_ratio.
17443 (split_font_name): Set font->rescale_ratio.
17444 (better_font_p): Pay attention to font->rescale_ratio.
17445 (build_scalable_font_name): Likewise. Change RESX, and RESY
17446 fields.
17447 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17448
174492008-02-01 Kenichi Handa <handa@m17n.org>
17450
17451 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17452 (Qutf_16_le): Remove these variables.
17453 (syms_of_coding): Don't DEFSYM them.
17454 (decode_coding_utf_16): Fix handling of BOM.
17455 (encode_coding_utf_16): Fix handling of BOM.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * fileio.c (Finsert_file_contents): On replacing, before decoding
17460 the file into the work buffer, set point of the work buffer to the end.
17461
174622008-02-01 Dave Love <fx@gnu.org>
17463
17464 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17465
174662008-02-01 Dave Love <fx@gnu.org>
17467
17468 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17469 and fix C types.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * xdisp.c (SKIP_GLYPHS): New macro.
17474 (set_cursor_from_row): Pay attention to string display properties.
17475
17476 * category.c (copy_category_entry): Fix for the case that RANGE
17477 is an integer.
17478
17479 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17480
17481 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * charset.c (Fcharset_id_internal): New function.
17486 (syms_of_charset): Defsubr it.
17487
17488 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17489 with the last arg charset_list acquired from coding.
17490 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17491 the attribute coding_attr_ccl_valids.
17492
17493 * coding.h (enum define_coding_ccl_arg_index): Set the first
17494 member coding_arg_ccl_decoder to coding_arg_max.
17495
17496 * ccl.h (ccl_driver): Adjust prototype.
17497
17498 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17499 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17500 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17501 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17502 last arg Qnil.
17503
175042008-02-01 Kenichi Handa <handa@m17n.org>
17505
17506 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17507 call encode_char.
17508
17509 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17510
175112008-02-01 Dave Love <fx@gnu.org>
17512
17513 * composite.c (syms_of_composite): Make composition_hash_table weak.
17514
175152008-02-01 Kenichi Handa <handa@m17n.org>
17516
17517 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17518 (font_name_registry): Don't extern them.
17519 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17520
17521 * fontset.h (Qfontset): Don't extern it.
17522 (new_fontset_from_font_name): Extern it.
17523
17524 * fontset.c: Give 8 extra slots to fontset objects.
17525 (Qfontset_info): New variable.
17526 (syms_of_fontset): Defsym it.
17527 (FONTSET_FALLBACK): New macro.
17528 (fontset_face): Try also the default fontset.
17529 (make_fontset): Realize a fallback fontset from the default fontset.
17530 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17531 using split_font_name_into_vector and build_font_name_from_vector.
17532 (Fset_fontset_font): Access the elements of font_spec by enum
17533 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17534 name by using split_font_name_into_vector.
17535 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17536 generate a proper font name from the fontset name. Update
17537 Vfontset_alias_alist.
17538 (n_auto_fontsets): New variable.
17539 (new_fontset_from_font_name): New function.
17540 (Ffont_info): Store the information about fonts generated from the
17541 default fontset in the first extra slot of the returned char-table.
17542
17543 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17544 (font_name_registry): Delete function.
17545 (split_font_name_into_vector): New function.
17546 (build_font_name_from_vector): New function.
17547 (font_list): The argument REGISTRY is now a list of registry names.
17548 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17549 specifies an explicit font name, return the name as is. Make a
17550 list of registy names.
17551
17552 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17553 of x_new_fontset.
17554 (Fx_create_frame): Don't call x_new_fontset here. Just use
17555 x_list_fonts to check the existence of fonts.
17556
17557 * xterm.h (x_new_fontset): Adjust prototype.
17558
17559 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17560 string. Use new_fontset_from_font_name to create a fontset from a
17561 font name.
17562
175632008-02-01 Kenichi Handa <handa@m17n.org>
17564
17565 * syntax.c (Vfind_word_boundary_function_table): New name for
17566 Vnext_word_boundary_function_table.
17567 (find-word-boundary-function-table): New name for
17568 next-word-boundary-function-table.
17569
175702008-02-01 Dave Love <fx@gnu.org>
17571
17572 * Makefile.in: Fix some dependencies.
17573
17574 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17575 set it to nil before returning.
17576
17577 * composite.c (update_compositions): Fix type error.
17578
17579 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17580
175812008-02-01 Kenichi Handa <handa@m17n.org>
17582
17583 * xterm.c (x_new_font): Optimize for the case that the font is
17584 already set for the frame.
17585
175862008-02-01 Kenichi Handa <handa@m17n.org>
17587
17588 * chartab.c (char_table_ascii): Check if the char table contents
17589 is sub-char-table or not.
17590 (char_table_set, char_table_set_range): Fix argument to
17591 char_table_ascii.
17592
17593 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17594 (detect_coding_utf_8, detect_coding_utf_16)
17595 (detect_coding_emacs_mule, detect_coding_iso_2022)
17596 (detect_coding_sjis, detect_coding_big5)
17597 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17598 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17599 sequence is valid in this coding system. Change callers.
17600 (MAX_ANNOTATION_LENGTH): New macro.
17601 (ADD_ANNOTATION_DATA): New macro.
17602 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17603 ADD_ANNOTATION_DATA. Change the format of annotation data.
17604 (ADD_CHARSET_DATA): New macro.
17605 (emacs_mule_char): New argument ID. Change callers.
17606 (decode_coding_emacs_mule, decode_coding_iso_2022)
17607 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17608 Produce charset annotation data in coding->charbuf.
17609 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17610 to charset annotation data in coding->charbuf.
17611 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17612 coding->common_flags if the coding system is iso-2022 based and
17613 uses designation.
17614 (produce_composition): Adjust for the new annotation data format.
17615 (produce_charset): New function.
17616 (produce_annotation): Handle charset annotation.
17617 (handle_composition_annotation, handle_charset_annotation): New
17618 functions.
17619 (consume_chars): Handle charset annotation. Utilize the above two
17620 functions.
17621 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17622 buffer, get the deleted text as a string and set
17623 coding->src_object to that string.
17624 (detect_coding, detect_coding_system): Use the new struct
17625 coding_detection_info.
17626
17627 * coding.h (struct coding_detection_info): New structure.
17628 (struct coding_system): Adjust prototype of the member `detector'.
17629 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17630
176312008-02-01 Kenichi Handa <handa@m17n.org>
17632
17633 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17634
176352008-02-01 Dave Love <fx@gnu.org>
17636
17637 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17638 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17639 to new local and nullify apropos_accumulate before returning.
17640 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17641
176422008-02-01 Kenichi Handa <handa@m17n.org>
17643
17644 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17645 correctly.
e3eea1fc 17646
aac0c6e3
MR
176472008-02-01 Dave Love <fx@gnu.org>
17648
17649 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17650
176512008-02-01 Kenichi Handa <handa@m17n.org>
17652
17653 The following changes are to make character composition happen
17654 automatically on displaying.
17655
17656 * Makefile.in (lisp, shortlisp): Add composite.elc.
17657
17658 * composite.h (Qauto_composed, Vauto_composition_function)
17659 (Qauto_composition_function): Extern them.
17660
17661 * composite.c (Vcomposition_function_table)
17662 (Qcomposition_function_table): Delete variables.
17663 (Qauto_composed, Vauto_composition_function)
17664 (Qauto_composition_function): New variables.
17665 (run_composition_function): Don't call
17666 compose-chars-after-function.
17667 (update_compositions): Clear `auto-composed' text property.
17668 (compose_chars_in_text): Delete this function.
17669 (syms_of_composite): Staticpro Qauto_composed and
17670 Qauto_composition_function. Declare Vauto_composition_function as
17671 a Lisp variable.
17672
17673 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17674
17675 * xdisp.c (it_props): Add an entry for Qauto_composed.
17676 (handle_auto_composed_prop): New function.
17677
17678 * xselect.c (selection_data_to_lisp_data): Don't call
17679 compose_chars_in_text.
17680
176812008-02-01 Dave Love <fx@gnu.org>
17682
17683 * keyboard.c (read_char): Modify checking around use of
17684 Vkeyboard_translate_table.
17685
17686 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17687 and fix C types.
17688
176892008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17692 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17693 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17694 the case that the last byte is '\r' correctly.
17695 (decode_coding): Flush out the unprocessed data correctly.
17696 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17697
176982008-02-01 Dave Love <fx@gnu.org>
17699
17700 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17701 Add XK_ISO... case.
17702 (xaw_scroll_callback): Revert last change.
17703
177042008-02-01 Kenichi Handa <handa@m17n.org>
17705
17706 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17707
177082008-02-01 Kenichi Handa <handa@m17n.org>
17709
17710 * xfaces.c (Vface_resizing_fonts): New variable.
17711 (struct font_name): New member `resizing_ratio'.
17712 (font_resizing_ratio): New function.
17713 (split_font_name): Set font->resizing_ratio.
17714 (better_font_p): Pay attention to font->resizing_ratio.
17715 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17716 RESX, and RESY fields.
17717 (try_alternative_families): Try scalable fonts if
17718 Vscalable_fonts_allowed is not Qt.
17719 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17720
177212008-02-01 Dave Love <fx@gnu.org>
17722
17723 * xterm.c (xaw_scroll_callback): Cast correctly.
17724
177252008-02-01 Dave Love <fx@gnu.org>
17726
17727 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17728 (lispy_kana_keys): Comment out.
17729 (make_lispy_event) [XK_kana_A]: Comment out.
17730
17731 * xterm.c (xaw_scroll_callback): Cast call_data.
17732 (XTread_socket): Deal with ASCII keysyms.
17733 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17734
177352008-02-01 Dave Love <fx@gnu.org>
17736
17737 * xterm.c (Vx_keysym_table): New.
17738 (syms_of_xterm): Initialize it.
17739 (XTread_socket): Use it.
17740 From head: Eliminate incorrect optimization that tried to avoid
17741 decoding the output of X*LookupString.
17742 (x_get_font_repertory): Delete charset declaration.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17747 return 0.
17748 (Fdefine_coding_system_internal): Setup
17749 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17750
177512008-02-01 Dave Love <fx@gnu.org>
17752
17753 * coding.c (Fcheck_coding_system): Doc fix.
17754
17755 * editfns.c (Finsert_byte): Return a proper value.
17756
177572008-02-01 Kenichi Handa <handa@m17n.org>
17758
17759 * coding.c (decode_coding): Fix args to translate_chars. Pay
17760 attention to Vstandard_translation_table_for_decode.
17761 (encode_coding): Fix args to translate_chars. Pay attention to
17762 Vstandard_translation_table_for_encode.
17763
17764 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17765 SINGLE_BYTE_CHAR_P.
17766
17767 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17768 not by SINGLE_BYTE_CHAR_P.
17769
17770 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17771 SINGLE_BYTE_CHAR_P.
17772
17773 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17774 SINGLE_BYTE_CHAR_P.
17775
17776 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17777 by SINGLE_BYTE_CHAR_P.
17778
17779 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17780 SINGLE_BYTE_CHAR_P.
17781
177822008-02-01 Dave Love <fx@gnu.org>
17783
17784 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17785
177862008-02-01 Dave Love <fx@gnu.org>
17787
17788 * fns.c (Flanginfo): Fix typo.
17789
17790 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17791
177922008-02-01 Kenichi Handa <handa@m17n.org>
17793
17794 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17795 (detect_coding_emacs_mule, detect_coding_iso_2022)
17796 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17797 incomplete byte sequence. Don't update *mask when correctly detected.
17798 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17799 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17800 (detect_coding, detect_coding_system): Adjust for the changes above.
17801
178022008-02-01 Kenichi Handa <handa@m17n.org>
17803
17804 * character.c (char_string): Rename from
17805 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17806 (string_char): Rename from string_char.
17807
17808 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17809 if C is greater than MAX_3_BYTE_CHAR.
17810 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17811 string_char instead of string_char_with_unification.
17812
178132008-02-01 Dave Love <fx@gnu.org>
17814
17815 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17816
178172008-02-01 Kenichi Handa <handa@m17n.org>
17818
17819 * keymap.c (push_key_description): Pay attention to force_multibyte.
17820
17821 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17822
178232008-02-01 Dave Love <fx@gnu.org>
17824
17825 * charset.c (define_charset_internal): Rename `supprementary'.
17826
17827 * Makefile.in (lisp, shortlisp): Remove latin-N.
17828
178292008-02-01 Dave Love <fx@gnu.org>
17830
17831 * xfns.c (x_window, x_window): Use use_xim.
17832
17833 * xterm.c (use_xim): Initialize.
17834 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17835 (x_term_init): Maybe set use_xim.
17836
17837 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17838
178392008-02-01 Kenichi Handa <handa@m17n.org>
17840
17841 * search.c (search_buffer): Fix case-fold-search of multibyte
17842 characters.
17843 (boyer_moore): Rename the last argument to char_high_bits.
17844
178452008-02-01 Kenichi Handa <handa@m17n.org>
17846
17847 * xdisp.c (display_string): Fix for the case of zero width glyph.
17848
17849 * xfns.c (x_set_font): Change the error message of the case that
17850 x_new_fontset returns Qt.
17851
17852 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17853 (Finternal_set_lisp_face_attribute): Use signal_error for the
17854 error of invalid fontset.
17855
17856 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17857 fontset, return Qt.
17858
178592008-02-01 Dave Love <fx@gnu.org>
17860
17861 * unexelf.c (unexec): Make .got handling not SGI-specific.
17862
17863 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17864
17865 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17866
17867 * keyboard.c (read_key_sequence): Fix type error.
17868
17869 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17870 type error.
17871
17872 * fontset.c (fontset_add): Return Lisp_Object.
17873
178742008-02-01 Dave Love <fx@gnu.org>
17875
17876 * charset.h (charset_ordered_list_tick): Declare extern.
17877
178782008-02-01 Kenichi Handa <handa@m17n.org>
17879
17880 The following changes (and some of 2008-02-01 changes of mine) are
17881 for handling syntax, category, and case conversion for unibyte
17882 characters by converting them to multibyte on the fly. With these
17883 changes, we don't have to setup syntax and case tables for unibyte
17884 characters in each language environment.
17885
17886 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17887 multibyte if necessary.
17888
17889 * bytecode.c (Fbyte_code): Likewise.
17890
17891 * character.h (LEADING_CODE_LATIN_1_MIN)
17892 (LEADING_CODE_LATIN_1_MAX): New macros.
17893 (unibyte_to_multibyte_table): Extern it.
17894 (unibyte_char_to_multibyte): New macro.
17895 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17896 (CHAR_LEADING_CODE): New macro.
17897 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17898
17899 * character.c (unibyte_to_multibyte_table): New variable.
17900 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17901 (multibyte_char_to_unibyte): If C is an eight-bit character,
17902 convert it to the corresponding byte value.
17903
17904 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17905 not 1, signals an error. Update the elements of
17906 unibyte_to_multibyte_table.
17907 (init_charset_once): Initialize unibyte_to_multibyte_table.
17908 (syms_of_charset): Define the charset `iso-8859-1'.
17909
17910 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17911 as is without converting it to unibyte. In a unibyte buffer,
17912 convert C to multibyte before checking the syntax.
17913
17914 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17915
17916 * minibuf.c (Fminibuffer_complete_word): Use the macro
17917 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17918
17919 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17920
17921 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17922 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17923 that is zero, convert an eight-bit char to multibyte.
17924 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17925 non-emacs case.
17926 (PATFETCH): Convert an eight-bit char to multibyte.
17927 (HANDLE_UNIBYTE_RANGE): New macro.
17928 (regex_compile): Setup the compiled pattern for multibyte chars
17929 even if the given regex string is unibyte. Use PATFETCH_RAW
17930 instead of PATFETCH in many places. To handle `charset'
17931 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17932 only for ASCII chars.
17933 (analyse_first) <exactn>: Simplify because the compiled pattern
17934 is multibyte.
17935 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17936 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17937 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17938 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17939 multibyte always 1.
17940 (re_search_2): In emacs, set the locale variable multibyte to 1,
17941 otherwise to 0. New local variable target_multibyte. Check it
17942 to decide the multibyteness of STR1 and STR2. If
17943 target_multibyte is zero, convert unibyte chars to multibyte
17944 before translating and checking fastmap.
17945 (TARGET_CHAR_AND_LENGTH): New macro.
17946 (re_match_2_internal): In emacs, set the locale variable multibyte
17947 to 1, otherwise to 0. New local variable target_multibyte. Check
17948 it to decide the multibyteness of STR1 and STR2. Use
17949 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17950 <charset, charset_not>: If multibyte is nonzero, check fastmap
17951 only for ASCII chars. Call bcmp_translate with
17952 target_multibyte, not with multibyte.
17953 <begline>: Declare the local variable C as `unsigned'.
17954 (bcmp_translate): Change the last arg name to target_multibyte.
17955
17956 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17957 the regexp pattern and the matching target. Set cp->buf.multibyte
17958 to the multibyteness of the regexp pattern. Set
17959 cp->but.target_multibyte to the multibyteness of the matching target.
17960 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17961 FETCH_STRING_CHAR_ADVANCE.
17962 (Freplace_match): Convert unibyte chars to multibyte.
17963
17964 * syntax.c (char_quoted, back_comment, scan_words)
17965 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17966 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17967 unibyte chars to multibyte.
17968 (skip_chars): Delete the arg syntaxp, and move the code for
17969 handling syntaxes to skip_syntaxes. Change callers.
17970 Fix the case that the multibyteness of STRING and the current
17971 buffer doesn't match.
17972 (skip_syntaxes): New function.
17973 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17974 SINGLE_BYTE_CHAR_P.
17975
179762008-02-01 Kenichi Handa <handa@m17n.org>
17977
17978 * xfaces.c (QCfontset): New variable.
17979 (LFACE_FONTSET): New macro.
17980 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17981 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17982 (Finternal_set_lisp_face_attribute)
17983 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17984 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17985 check also LFACE_FONTSET_INDEX.
17986 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17987 attrs[LFACE_FONT_INDEX].
17988 (syms_of_xfaces): Intern and staticpro QCfontset.
17989
17990 * dispextern.h (enum lface_attribute_index): New member
17991 LFACE_FONTSET_INDEX.
17992
17993 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17994
179952008-02-01 Kenichi Handa <handa@m17n.org>
17996
17997 * coding.c (coding_set_destination): Fix coding->destination for
17998 the case converting a region.
17999 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18000 (encode_coding_object): Fix coding->dst_pos and
18001 coding->dst_pos_byte for the case converting a region.
18002
18003 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18004
18005 * character.h (BYTE8_STRING): New macro.
18006
18007 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18008
180092008-02-01 Kenichi Handa <handa@m17n.org>
18010
18011 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18012 characters by octal form.
18013
18014 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18015
18016 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18017 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18018 _fetch_multibyte_char_len.
18019 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18020
18021 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18022
18023 * casefiddle.c (casify_object): Simplify. Handle the case that
18024 the case conversion change the byte length.
18025 (casify_region): Likewise.
18026
18027 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18028
18029 * character.c (_fetch_multibyte_char_len): Delete this variable.
18030 (syms_of_character): Setup Vprintable_chars.
18031
18032 * editfns.c (Fchar_equal): Fix for the unibyte case.
18033 (Finsert_byte): New function.
18034 (syms_of_editfns): Defsubr it.
18035
18036 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18037 of direct code 0x3ffff.
18038
18039 * search.c (Freplace_match): Fix for the unibyte case.
18040
180412008-02-01 Kenichi Handa <handa@m17n.org>
18042
18043 * lread.c (safe_to_load_p): Fix the logic.
18044
18045 * syntax.c (scan_words): Don't treat characters belonging to
18046 different scripts as constituting a word.
18047
18048 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18049
18050 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18051
18052 * emacs.c (main): In the case of --unibyte, instead of aborting on
18053 finding non-empty buffer, make it unibyte.
18054
180552008-02-01 Kenichi Handa <handa@m17n.org>
18056
18057 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18058 to create a fontset.
18059
180602008-02-01 Dave Love <fx@gnu.org>
18061
18062 * character.c (Funibyte_char_to_multibyte): Doc fix.
18063
18064 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18065
180662008-02-01 Kenichi Handa <handa@m17n.org>
18067
18068 * fontset.c (fontset_add): Make the type `int'.
18069 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18070
18071 * character.c (unibyte_char_to_multibyte)
18072 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18073 charset_unibyte, not charset_primary.
18074
18075 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18076
18077 * charset.c (charset_unibyte): Rename from charset_primary.
18078 (Funibyte_charset): Rename from Fprimary_charset.
18079 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18080 (syms_of_charset): Adjust for the above changes.
18081
18082 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18083 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18084 it->multibyte_p is zero.
18085
18086 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18087 Delete extern.
18088
180892008-02-01 Kenichi Handa <handa@m17n.org>
18090
18091 * coding.c (Fdefine_coding_system_internal): Fix category setting
18092 for a coding system of type iso-2022.
18093
180942008-02-01 Kenichi Handa <handa@m17n.org>
18095
18096 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18097
180982008-02-01 Kenichi Handa <handa@m17n.org>
18099
18100 * syntax.c (Vnext_word_boundary_function_table): New variable.
18101 (next-word-boundary-function-table): Declare it as a Lisp variable
18102 in syms_of_syntax.
18103 (scan_words): Call functions in Vnext_word_boundary_function_table
18104 if any.
18105
18106 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18107
18108 * fontset.c (fs_load_font): If fontp->charset is not negative,
18109 return fontp without setting its members.
18110
181112008-02-01 Dave Love <fx@gnu.org>
18112
18113 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18114
18115 * m/sparc.h (HAVE_ALLOCA): Delete.
18116
18117 * s/irix6-5.h: Don't include strings.h.
18118 (bcopy, bzero, bcmp): Don't undef.
18119
18120 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18121
18122 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18123 (TIOCSIGSEND): Don't test IRIX6.
18124 (bcopy, bzero, bcmp): Define conditionally.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * buffer.c (Qas, Qmake, Qto): New variables.
18129 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18130 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18131
18132 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18133 we are inserting a process output into a multibyte buffer.
18134
18135 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18136 multibyte_char_to_unibyte.
18137
18138 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18139 by the primary charset, make it eight-bit char.
18140 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18141
18142 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18143 (charset_8_bit__control, charset_8_bit_graphic)
18144 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18145 (define_charset_internal): New function.
18146 (syms_of_charset): Call define_charset_internal for pre-defined
18147 charsets.
18148
18149 * charset.h (charset_8_bit): Extern it.
18150
18151 * coding.c (make_conversion_work_buffer): Adjust for the change
18152 of Fset_buffer_multibyte.
18153 (encode_coding_raw_text): Increment p0 in the loop.
18154
18155 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18156
18157 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18158 for the change of Fset_buffer_multibyte.
18159
18160 * fns.c (Fstring_to_multibyte): New function.
18161 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18162
181632008-02-01 Dave Love <fx@gnu.org>
18164
18165 * xfns.c (x_put_x_image): Declare args.
18166
18167 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18168 (try_font_list): Declare an arg.
18169
18170 * xdisp.c (message2_nolog, set_message): Declare an arg.
18171
18172 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18173
18174 * syntax.c (scan_sexps_forward): Declare an arg.
18175
18176 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18177 Declare an arg.
18178
18179 * lisp.h (Fnew_fontset): Declare.
18180
18181 * keymap.c (push_key_description): Call CHARACTERP correctly.
18182
18183 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18184 (face_for_char): Delete unused vars.
18185 (Fset_fontset_font): Doc fix. Delete unused vars.
18186
18187 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18188
18189 * composite.c (update_compositions): Declare arg.
18190
18191 * cm.c (calccost, cmgoto): Declare args.
18192
18193 * charset.c: Remove `emacs' conditional. Doc fixes.
18194 (map_char_table_for_charset): Declare.
18195
18196 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18197
18198 * ccl.c: Remove `emacs' conditional.
18199
182002008-02-01 Kenichi Handa <handa@m17n.org>
18201
18202 The following changes are to allow specifying multiple font
18203 patterns for a character range (specified by script or charset).
18204
18205 * Makefile.in (abbrev.o): Depend on syntax.h.
18206 (xfaces.o): Depend on charset.h.
18207
18208 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18209 SINGLE_BYTE_CHAR_P.
18210
18211 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18212
18213 * character.h (Vchar_script_table): Extern it.
18214
18215 * character.c (Vscript_alist): Delete.
18216 (Vchar_script_table, Qchar_script_table): New variable.
18217 (syms_of_character): Declare Vchar_script_table as a lisp variable
18218 and initialize it.
18219
18220 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18221 have property char-table-extra-slots, make no extra slot.
18222
18223 * dispextern.h (struct face): Delete member `charset'.
18224 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18225 SINGLE_BYTE_CHAR_P.
18226 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18227 Add prototypes.
18228 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18229 (generate_ascii_font_name): Rename from generate_ascii_font.
18230
18231 * fontset.h (get_font_repertory_func): New prototype.
18232 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18233 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18234
18235 * fontset.c (Qprepend, Qappend): New variables.
18236 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18237 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18238 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18239 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18240 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18241 (load_font_get_repertory): New functions.
18242 (fontset_set): Delete.
18243 (fontset_face): New arg FACE. Return face ID, not face.
18244 Complete re-write to handle new fontset structure. Change caller.
18245 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18246 (face_for_char): Don't call lookup_face.
18247 (make_fontset_for_ascii_face): New arg FACE.
18248 (fs_load_font): New arg CHARSET_ID. Don't check
18249 Vfont_encoding_alist here.
18250 (find_font_encoding): New function.
18251 (list_fontsets): Use STRINGP, not ! NILP.
18252 (accumulate_script_ranges): New function.
18253 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18254 re-written to handle new fontset structure.
18255 (Ffontset_font): Return a copy of element.
18256 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18257 docstring of font-encoding-alist.
18258
18259 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18260 (Fset_fotset_font): Fix arguments to 5.
18261
18262 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18263
18264 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18265 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18266 (highlight_trailing_whitespace): Adjust for the change of
18267 lookup_named_face.
18268
18269 * xfaces.c: Include charset.h.
18270 (load_face_font): Delete argument C. Change caller.
18271 (generate_ascii_font_name): Rename from generate_ascii_font.
18272 (font_name_registry): New function.
18273 (cache_face): Store ascii faces before non-ascii faces in buckets.
18274 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18275 Lookup only ascii faces.
18276 (lookup_non_ascii_face): New function.
18277 (lookup_named_face): Delete argument C. Change caller.
18278 (lookup_derived_face): Delete argument C. Change caller.
18279 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18280 a string, just call font_list with it.
18281 (choose_face_font): Delete arguments FACE and C. New arg
18282 FONT_SPEC. Change caller.
18283 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18284 Change caller.
18285 (realize_non_ascii_face): New function.
18286 (realize_x_face): Call load_face_font here.
18287 (realize_tty_face): Delete argument C. Change caller.
18288 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18289 get a face ID.
18290 (dump_realized_face): Don't print charset of FACE.
18291
18292 * xfns.c (x_set_font): Always call x_new_fontset and
18293 store_frame_parameter.
18294 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18295 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18296
18297 * xterm.h (x_get_font_repertory): Extern it.
18298
18299 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18300 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18301 it->multibyte_p is zero.
18302 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18303 (x_new_fontset): If FONTSETNAME doesn't match any existing
18304 fontsets, create a new one.
18305 (x_get_font_repertory): New function.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * coding.c (Ffind_coding_systems_region_internal): Detect an
18310 ASCII only string correctly.
18311
18312 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18313 version is 0.
18314
183152008-02-01 Kenichi Handa <handa@m17n.org>
18316
18317 * lread.c: Include "coding.h".
18318 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18319 (load_each_byte, unread_char): New variables.
18320 (readchar_backlog): Delete.
18321 (readchar): Return a character unless load_each_byte is nonzero.
18322 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18323 cons. If unread_char is not -1, simply return it.
18324 (unreadchar): Handle the case that readcharfun is
18325 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18326 (read_multibyte): Delete.
18327 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18328 (read_emacs_mule_char): New functions.
18329 (Fload): Even if the file doesn't have the extension ".elc", if
18330 safe_to_load_p returns a positive version number, assume that the
18331 file contains bytecompiled code. If the version is less than 22,
18332 load the file while decoding multibyte sequences by emacs-mule.
18333 (readevalloop): Don't use readchar_backlog.
18334 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18335 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18336 (read_escape): Delete the arg BYTEREP.
18337 (read1): Set load_each_byte to 1 temporarily while handling
18338 #@NUMBER. Don't call read_multibyte.
18339 (read_vector): Call Fread with a cons. If readcharfun is
18340 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18341 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18342 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18343 and Qload_force_doc_strings.
18344
183452008-02-01 Kenichi Handa <handa@m17n.org>
18346
18347 * xdisp.c (face_before_or_after_it_pos): Call
18348 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * character.h (TRAILING_CODE_P): New macro.
18353 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18354 (string_char_with_unification): Fix prototype.
18355 (Vscript_alist): Extern it.
18356
18357 * character.c (Vscript_alist): New variable.
18358 (string_char_with_unification, str_as_unibyte)
18359 (string_escape_byte8): Add `const' to local variables.
18360 (syms_of_character): Declare script-alist as a Lisp variable.
18361
18362 * charset.h (Vcharset_ordered_list): Extern it.
18363 (charset_ordered_list_tick): Extern it.
18364 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18365 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18366 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18367 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18368 (Funify_charset): Adjust for the change of Funify_charset.
18369
18370 * charset.c (charset_ordered_list_tick): New variable.
18371 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18372 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18373 deunify intead of unify a charset.
18374 (string_xstring_p): Add `const' to local variables.
18375 (find_charsets_in_text): Add `const' to arguments and local variables.
18376 (encode_char): Adjust for the change of Funify_charset. Fix
18377 detecting of invalid code.
18378 (Fset_charset_priority): Increment charset_ordered_list_tick.
18379 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18380 and TO_CODE.
18381
18382 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18383 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18384 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18385 (decode_coding_ccl, consume_chars)
18386 (Ffind_coding_systems_region_internal)
18387 (Fcheck_coding_systems_region): Add `const' to local variables.
18388
18389 * print.c (print_object): Use octal form for printing the
18390 contents of a bool vector.
18391
183922008-02-01 Dave Love <fx@gnu.org>
18393
18394 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18395 <version == 20>: Refuse to load.
18396
183972008-02-01 Dave Love <fx@gnu.org>
18398
18399 * fns.c: Move coding.h.
18400 (Qcodeset, Qdays, Qmonths): New.
18401 (concat): Use CHARACTERP instead of INTEGERP.
18402 (Flocale_codeset): Delete.
18403 (Flanginfo): New function.
18404 (syms_of_fns): Change accordingly.
18405
18406 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18407
184082008-02-01 Dave Love <fx@gnu.org>
18409
18410 * casetab.c (init_casetab_once, init_casetab_once): Fix
18411 CHAR_TABLE_SET call.
18412
18413 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18414
18415 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18416
18417 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18418 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18419 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18420
18421 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18422
18423 * coding.c (ENCODE_DESIGNATION, decode_eol)
18424 (make_conversion_work_buffer, code_conversion_restore)
18425 (Fdefine_coding_system_internal): Convert Lisp types.
18426 (code_conversion_restore): Use EQ, not ==.
18427 (Fencode_coding_string): Fix code_convert_string call.
18428
18429 * coding.h (code_convert_region): Fix prototype.
18430
18431 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18432
18433 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18434 (Ffontset_info): Convert Lisp types.
18435
18436 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18437
18438 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18439
18440 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18441
18442 * chartab.c: Include "...h", not <...h> in some cases.
18443
18444 * callproc.c (Fcall_process): Remove unused variables.
18445
184462008-02-01 Dave Love <fx@gnu.org>
18447
18448 * coding.c (Fset_coding_system_priority): Allow null arg list.
18449
184502008-02-01 Dave Love <fx@gnu.org>
18451
18452 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18453 (Fself_insert_and_exit): Use CHARACTERP.
18454
18455 * callproc.c (Fcall_process): Remove unused vars.
18456
18457 * xterm.c (XTread_socket): Add extra dead keysyms.
18458
18459 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18460
18461 * dispextern.h: Remove prototypes for redraw_frame,
18462 redraw_garbaged_frames.
18463
18464 * cmds.c (Fself_insert_command): Use CHARACTERP.
18465
18466 * chartab.c (make_sub_char_table): Remove unused var.
18467 (Fset_char_table_default, Fmap_char_table): Doc fix.
18468
18469 * keymap.c (access_keymap): Remove generic char code.
18470 (push_key_description): Use CHARACTERP.
18471
184722008-02-01 Dave Love <fx@gnu.org>
18473
18474 * charset.c: Doc fixes.
18475 (Funify_charset): Extra checking.
18476
184772008-02-01 Dave Love <fx@gnu.org>
18478
18479 * lread.c: Remove some unused variables.
18480 (safe_to_load_p): If safe, return the magic number version byte.
18481 (Fload): Maybe use load-with-code-conversion.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * category.c (Fmodify_category_entry): Don't modify the contents
18486 of category_set for characters out of the range. Avoid
18487 unnecessary modification.
18488
18489 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18490 Vchar_unify_table. The default value of the table is now nil.
18491
18492 * character.c (syms_of_character): Setup Vchar_width_table for
18493 eight-bit-control and raw-byte chars.
18494
18495 * charset.h (enum define_charset_arg_index): Delete
18496 charset_arg_parents and add charset_arg_subset and
18497 charset_arg_superset.
18498 (enum charset_attr_index): Delete charset_parents and add
18499 charset_subset and charset_superset.
18500 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18501 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18502 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18503 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18504 (CHARSET_SUPERSET): New macros.
18505 (charset_work): Extern it.
18506 (ENCODE_CHAR): Use charset_work.
18507 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18508 (map_charset_chars): Extern it.
18509
18510 * charset.c (load_charset_map): Set the default value of encoder
18511 and deunifier char-tables to nil.
18512 (map_charset_chars): Change argument. Change callers. Use
18513 map_char_table_for_charset instead of map_char_table.
18514 (Fmap_charset_chars): New optional args from_code and to_code.
18515 (Fdefine_charset_internal): Adjust for the change of
18516 `define-charset' (:parents -> :subset or :superset).
18517 (charset_work): New variable.
18518 (encode_char, syms_of_charset): Adjust for the change of
18519 Fdefine_charset_internal.
18520 (Ffind_charset_string): Setup the vector `charsets' correctly.
18521
18522 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18523 the previous change.
18524 (char_table_ref_and_range): Adjust for the above change.
18525 (map_sub_char_table_for_charset): New function.
18526 (map_char_table_for_charset): New function.
18527
18528 * keymap.c (describe_vector): Handle a char-table directly here.
18529 (describe_char_table): Delete.
18530
18531 * lisp.h (map_charset_chars): Delete.
18532
185332008-02-01 Dave Love <fx@gnu.org>
18534
18535 * fns.c (count_combining): Comment out (unused).
18536 (Flocale_codeset): New.
18537 (syms_of_fns): Defsubr it.
18538
18539 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18540 (size_t): Remove.
18541
185422008-02-01 Dave Love <fx@gnu.org>
18543
18544 * Makefile.in (chartab.o): Depend on charset.h.
18545
185462008-02-01 Kenichi Handa <handa@m17n.org>
18547
18548 * character.c (syms_of_character): Set the default value of
18549 Vprintable_chars to Qnil.
18550
185512008-02-01 Dave Love <fx@gnu.org>
18552
18553 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * charset.c (load_charset_map): Handle the case that from < to
18558 correctly.
18559
18560 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18561 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18562 Pay attention to raw-8-bit chars.
18563
185642008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18567 It is not bytecompiled now.
18568
18569 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18570 (charset_jisx0208): New variables.
18571 (Fdefine_charset_internal): Setup them if appropriate.
18572 (init_charset_once): Initialize them to -1.
18573
18574 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18575 (charset_jisx0208): Extern them.
18576
18577 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18578 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18579 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18580 (setup_iso_safe_charsets): Fix arguments to Fassq.
18581 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18582 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18583 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18584 (encode_coding_iso_2022): Change the 1st arg to
18585 ENCODE_ISO_CHARACTER to a variable.
18586
185872008-02-01 Kenichi Handa <handa@m17n.org>
18588
18589 * charset.h (enum define_charset_arg_index): New enums
18590 charset_arg_min_code and charset_arg_max_code.
18591 (struct charset): New member char_index_offset.
18592
18593 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18594 Take charset->char_index_offset into account.
18595 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18596 args[charset_arg_max_code]. Setup charset.char_index_offset.
18597 (syms_of_charset): Fix args to Fdefine_charset_internal.
18598
185992008-02-01 Dave Love <fx@gnu.org>
18600
18601 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18602
186032008-02-01 Dave Love <fx@gnu.org>
18604
18605 * coding.c: Doc fixes.
18606 (Fcoding_system_aliases): Fix return value.
18607 (Qmac): Remove (duplicated) definition.
18608
186092008-02-01 Dave Love <fx@gnu.org>
18610
362654a6
JB
18611 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18612 New functions.
aac0c6e3
MR
18613
18614 * character.c (Fstring): Doc fix.
18615
18616 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18617
362654a6 18618 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18619 (font-encoding-alist): Doc fix.
18620
186212008-02-01 Dave Love <fx@gnu.org>
18622
18623 * term.c (costs_set): Declare static, non-initialized for pcc.
18624 (encode_terminal_code): Remove unused var.
18625
18626 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18627 for K&R.
18628
18629 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18630
18631 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18632 (suffixes): Move out of make_subsidiaries for K&R.
18633
18634 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18635
18636 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18637
186382008-02-01 Dave Love <fx@gnu.org>
18639
18640 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18641
18642 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18643
186442008-02-01 Yong Lu <lyongu@asia-infonet.com>
18645
18646 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18647
18648 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18649
186502008-02-01 Kenichi Handa <handa@m17n.org>
18651
18652 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18653 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18654
186552008-02-01 Kenichi Handa <handa@m17n.org>
18656
18657 * coding.c (decode_coding_charset): Adjust for the change of
18658 Fdefine_coding_system_internal.
18659 (Fdefine_coding_system_internal): For a coding system of
18660 `charset' type, store a list of charset IDs in
18661 `charset_attr_charset_valids' element of coding attributes.
18662
186632008-02-01 Kenichi Handa <handa@m17n.org>
18664
18665 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18666 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18667 caller. Handle 2-byte and 3-byte charsets correctly.
18668 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18669 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18670 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18671 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18672 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18673 sequence.
18674 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18675 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18676 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18677 and alt&rule composition.
18678 (decode_coding_iso_2022): Handle composition correctly.
18679 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18680
18681 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18682 re-defining a charset. If the charset has :emacs-mule-id, setup
18683 emacs_mule_bytes.
18684 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18689 (encode_coding_big5, encode_coding_charset): If coding requires safe
18690 encoding, produce a character specified by
18691 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18692
186932008-02-01 Dave Love <fx@gnu.org>
18694
18695 * xterm.c (XSetIMValues): Declare.
18696
18697 * process.c: Conditionally include sys/wait.h, pty.h.
18698
18699 * print.c (print_object): Fix print format for 64-bit systems.
18700
18701 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18702
18703 * buffer.c (emacs_strerror): Declare.
18704
18705 * fontset.c (Fclear_face_cache): Declare.
18706 (accumulate_font_info): Comment-out (unused).
18707 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18708 variables.
18709
18710 * character.h (string_escape_byte8): Declare.
18711
18712 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18713 unused vars.
18714 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18715 (Fmap_charset_chars): Doc fix.
18716
18717 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18718 (Fset_coding_system_priority, Fset_coding_system_priority)
18719 (Fdefine_coding_system_internal): Doc fix.
18720
187212008-02-01 Dave Love <fx@gnu.org>
18722
18723 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * character.c (string_escape_byte8): Make multibyte string with
18728 correct size.
18729
18730 * charset.c (Fmake_char): Delete unnecessary code.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * xfns.c (x_encode_text): Allocate coding.destination here, and
18735 call encode_coding_object with dst_object Qnil.
18736
18737 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18738 multibyte form correctly.
18739
18740 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18741 against Vfont_encoding_alist.
18742
18743 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18744 handling of charset list.
18745 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18746 (decode_coding_object): Move point to coding->dst_pos before
18747 calling post-read-conversion function.
18748 (encode_coding_object): Give correct arguments to
18749 pre-write-conversion. Ignore the return value of
18750 pre-write-conversion function. Pay attention to the case that
18751 pre-write-conversion changes the current buffer. If dst_object is
18752 Qt, even if coding->src_bytes is zero, allocate at least one byte
18753 to coding->destination.
18754
18755 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18756
18757 * charset.c (Fmake_char): Make it more backward compatible.
18758 (Fmap_charset_chars): Fix docstring.
18759
187602008-02-01 Dave Love <fx@gnu.org>
18761
18762 * coding.c: Doc fixes.
18763 (Fdefine_coding_system_alias): Use names, not symbols, in
18764 coding-system-alist.
18765
187662008-02-01 Kenichi Handa <handa@m17n.org>
18767
18768 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18769 of calling free_realized_face.
18770
187712008-02-01 Yong Lu <lyongu@asia-infonet.com>
18772
18773 * charset.c (read_hex): Don't treat SPC as a comment starter.
18774 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18775 (Fdecode_char): Fix typo.
18776
187772008-02-01 Kenichi Handa <handa@m17n.org>
18778
18779 * charset.h (struct charset): New member `code_space_mask'.
18780
18781 * coding.c (coding_set_source): Delete the local variable beg_byte.
18782 (encode_coding_charset, Fdefine_coding_system_internal):
18783 Delete the local variable charset.
18784 (Fdefine_coding_system_internal): Setup
18785 attrs[coding_attr_charset_valids] correctly.
18786
18787 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18788 member to check if CODE is valid or not.
18789 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18790 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18791 is within the range of charset->min_code and carset->max_code.
18792
187932008-02-01 Dave Love <fx@gnu.org>
18794
18795 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18796
18797 * dispextern.h (generate_ascii_font): Fix return type.
18798
18799 * xfaces.c (generate_ascii_font): Fix arg declaration.
18800
18801 * coding.c (coding_inherit_eol_type)
18802 (Fset_terminal_coding_system_internal)
18803 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18808 multiple charsets correctly.
18809
188102008-02-01 Kenichi Handa <handa@m17n.org>
18811
18812 * search.c (boyer_moore): Fix handling of multibyte character
18813 translation.
18814
18815 * xdisp.c (display_mode_element): When the variable `elt' is
18816 changed, update `this' and `lisp_string'.
18817
188182008-02-01 Kenichi Handa <handa@m17n.org>
18819
18820 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18821
18822 * callproc.c (Fcall_process): Be sure to give the current buffer
18823 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18824
18825 * charset.c (struct charset_map_entries): New struct.
18826 (load_charset_map): Rename from parse_charset_map. New args
18827 entries and n_entries. Change caller.
18828 (load_charset_map_from_file): Rename from load_charset_map.
18829 Change caller. New arg control_flag. Call load_charset_map at
18830 the tail.
18831 (load_charset_map_from_vector): New function.
18832 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18833 (encode_char): If the charset is compact, change a character index
18834 to a code point.
18835
18836 * coding.c (coding_alloc_by_making_gap): Check the case that the
18837 source and destination are the same correctly.
18838 (decode_coding_raw_text): Set coding->consumed_char and
18839 coding->consumed to 0.
18840 (produce_chars): If coding->chars_at_source is nonzero, update
18841 coding->consumed_char and coding->consumed before calling
18842 alloc_destination.
18843 (Fdefine_coding_system_alias): Register ALIAS in
18844 Vcoding_system_alist.
18845 (syms_of_coding): Define `no-conversion' coding system at the tail.
18846
18847 * fileio.c (Finsert_file_contents): Set coding_system instead of
18848 val. If the current buffer is multibyte, always call
18849 decode_coding_gap.
18850
18851 * xfaces.c (try_font_list): Give higher priority to fontset's
18852 family than face's family.
18853
188542008-02-01 Kenichi Handa <handa@m17n.org>
18855
18856 * callproc.c (Fcall_process): Be sure to give the current buffer
18857 to decode_coding_c_string.
18858
18859 * xfaces.c (try_font_list): Give a family specified in a fontset
18860 higher priority than a family specified in a face.
18861
188622008-02-01 Kenichi Handa <handa@m17n.org>
18863
18864 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18865 Fix arguments to insert_from_buffer.
18866
18867 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18868
188692008-02-01 Kenichi Handa <handa@m17n.org>
18870
18871 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18872 (decode_coding_gap): Set coding->dst_multibyte correctly.
18873
188742008-02-01 Kenichi Handa <handa@m17n.org>
18875
18876 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18877 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18878 (encode_coding_utf_16): Substitute coding->default_char for
18879 non-Unicode characters.
18880 (decode_coding): Don't call record_insert here.
18881 (setup_coding_system): Initialize `surrogate' of
18882 coding->spec.utf_16 to 0.
18883 (EMIT_ONE_BYTE): Fix for multibyte case.
18884
18885 * insdel.c (insert_from_gap): Call record_insert.
18886
188872008-02-01 Kenichi Handa <handa@m17n.org>
18888
18889 * casefiddle.c (casify_region): Fix multibyte case.
18890
18891 * character.c (c_string_width): Add return type `int'.
18892 (char_string_with_unification): Delete arg ADVANCED.
18893
18894 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18895 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18896 (CHAR_STRING_ADVANCE): Make it do-while statement.
18897
18898 * chartab.c (sub_char_table_set_range): Optimize for the case
18899 DEPTH == 3. Add workaround code for a GCC optimization bug.
18900
18901 * charset.c (parse_charset_map): Remove an unused variable.
18902
18903 * coding.c: Delete unused variables.
18904
18905 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18906 earlier. If inserted is zero and the coding system doesn't
18907 require flushing, don't call decode_coding_gap.
18908
18909 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18910
189112008-02-01 Kenichi Handa <handa@m17n.org>
18912
18913 The following changes are for using Unicode as an internal
18914 character model, and use UTF-8 format for buffer/string
18915 representation.
18916
18917 * .gdbinit (xchartable): Adjust for the change of char table structure.
18918 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18919
18920 * Makefile.in (obj): Add character.o and chartab.o.
18921 (lisp, shortlisp): Remove utf-8.elc.
18922 (*.o): For many files, change dependency on charset.h to
18923 character.h, and add dependency on character.h.
18924 (character.o, chartab.o): New targets.
18925
18926 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18927 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18928 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18929 of "charset.h".
18930
18931 * dired.c, filelock.c: Include "character.h".
18932
18933 * alloc.c: Include "character.h" instead of "charset.h".
18934 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18935 (syms_of_alloc): Remove defsubr for Smake_char_table.
18936
18937 * buffer.c: Include "character.h" instead of "charset.h", don't
18938 include "coding.h".
18939 (Fset_buffer_multibyte): Adjust for UTF-8.
18940
18941 * buffer.h: EXFUN Fbuffer_live_p.
18942
18943 * callproc.c: Include "character.h" instead of "charset.h".
18944 (Fcall_process): Big change for the new code-conversion APIs.
18945
18946 * casetab.c: Include "character.h" instead of "charset.h".
18947 (set_canon, set_identity, shuffle): Adjust for the new
18948 map_char_table spec.
18949 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18950 accessing the char table structure.
18951
18952 * chartab.c: New file that implements char table.
18953
18954 * category.c: Include "character.h".
18955 (copy_category_entry): New function.
18956 (copy_category_table): Call map_char_table and copy_category_entry.
18957 (Fmake_category_table): Initialize all top-level slots.
18958 (char_category_set): New function.
18959 (modify_lower_category_set): Delete.
18960 (Fmodify_category_entry): Call char_table_ref_and_range.
18961
18962 * category.h (CATEGORY_SET): Just call char_category_set.
18963
18964 * ccl.c: Include "character.h".
18965 (Qccl, Qcclp): New variables.
18966 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18967 it's less than 256.
18968 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18969 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18970 and DST type.
18971 (ccl_driver): Change types of argument, adjust code accordingly.
18972 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18973 ccl_driver.
18974 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18975
18976 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18977 New members src_multibyte, dst_multibyte, consumed, and produced.
18978 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18979 (CODING_SPEC_CCL_PROGRAM): New macro.
18980 (ccl_driver): Update prototype.
18981 (Qccl, Qcclp, Fccl_program_p): Extern them.
18982 (CHECK_CCL_PROGRAM): New macro.
18983
18984 * character.c, character.h, chartab.c: New files.
18985
18986 * charset.c: Mostly re-written. Move character and multibyte sequence
18987 handling codes to character.c.
18988
18989 * charset.h: Mostly re-written. Move character and multibyte sequence
18990 handling codes to character.h.
18991
18992 * coding.c, coding.h: Mostly re-written.
18993
18994 * composite.c: Include "character.h" instead of "charset.h".
18995 (CHAR_WIDTH): Move to character.h.
18996 (HASH_KEY, HASH_VALUE): Delete.
18997
18998 * composite.h (enum composition_method): Change order of enumeration
18999 symbols.
19000
19001 * data.c: Include "character.h" instead of "charset.h".
19002 (Faref): Call CHAR_TABLE_REF for a char table.
19003 (Faset): Call CHAR_TABLE_SET for a char table.
19004
19005 * dispextern.h (free_realized_face, check_face_attribytes)
19006 (generate_ascii_font): Extern them.
19007 (free_realized_multibyte_face): Delete extern.
19008
19009 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19010 table structure.
19011
19012 * editfns.c: Include "character.h" instead of "charset.h".
19013 (Fchar_to_string): Always call CHAR_STRING.
19014
19015 * emacs.c (main): Call init_charset_once, init_charset,
19016 syms_of_chartab, and syms_of_character.
19017
19018 * fileio.c: Include "character.h" instead of "charset.h".
19019 (Finsert_file_contents): Big change for the new code-conversion API.
19020 (choose_write_coding_system, Fwrite_region): Likewise.
19021 (build_annotations_2): Delete.
19022 (e_write): Big change for the new code-conversion API.
19023
19024 * fns.c: Include "character.h" instead of "charset.h".
19025 (copy_sub_char_table): Move to chartab.c.
19026 (Fcopy_sequence): Call copy_char_table for a char table.
19027 (concat): Delete codes calling count_multibyte.
19028 (string_char_to_byte, string_byte_to_char): Adjust for the new
19029 multibyte form.
19030 (internal_equal): Adjust for the change of char table structure.
19031 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19032 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19033 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19034 (char_table_translate, optimize_sub_char_table)
19035 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19036 chartab.c.
19037 (char_table_ref_and_index): Delete.
19038 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19039 (Fmd5): Call preferred_coding_system instead of accessing
19040 Vcoding_category_list. Adjust for the new code-conversion API.
19041 (syms_of_fns): Move defsubr for char table related functions to
19042 chartab.c.
19043
19044 * fontset.c: Mostly re-written.
19045
19046 * fontset.h (struct font_info): Change type of the member encoding_type.
19047 (enum FONT_SPEC_INDEX): New enum.
19048 (fontset_font_pattern, fs_load_font): Update prototype.
19049 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19050
19051 * indent.c: Include "character.h" instead of "charset.h".
19052 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19053
19054 * insdel.c: Include "character.h" instead of "charset.h".
19055 (copy_text): Don't refer to Vnonascii_translation_table.
19056 (insert_from_gap): New function.
19057
19058 * keyboard.c: Include "character.h" instead of "charset.h".
19059 (command_loop_1): Never call direct_output_forward_char before
19060 a non-ASCII character.
19061 (read_char): If Vkeyboard_translate_table is a char table, always
19062 translate a character.
19063
19064 * keymap.c: Include "character.h".
19065 (store_in_keymap): Handle the case that IDX is a cons.
19066 (Fdefine_key): Handle the case that KEY is a cons and the car part
19067 is also a cons (range).
19068 (push_key_description): Adjust for the new character code.
19069 (describe_vector): Call describe_char_table for a char table.
19070 (describe_char_table): New function.
19071
19072 * keymap.h (describe_char_table): Extern it.
19073
19074 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19075 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19076 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19077 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19078 Delete.
19079 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19080 structure.
19081 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19082 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19083 (CHARTAB_SIZE_BITS_3): New macros.
19084 (chartab_size): Extern it.
19085 (struct Lisp_Char_Table): Re-design.
19086 (struct Lisp_Sub_Char_Table): New structure.
19087 (HASH_KEY, HASH_VALUE): Move from fns.c.
19088 (CHARACTERBITS): Define as 22.
19089 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19090 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19091 (GC_SUB_CHAR_TABLE_P): New macro.
19092 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19093 (code_convert_string_norecord): Deleted extern.
19094 (init_character_once, syms_of_character, init_charset)
19095 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19096
19097 * lread.c: Include "character.h".
19098 (read_multibyte): New arg NBYTES.
19099 (read_escape): Change the meaning of returned *BYTEREP.
19100 (to_multibyte): Delete.
19101 (read1): Adjust the handling of char table and string.
19102
19103 * print.c: Include "character.h" instead of "charset.h".
19104 (print_string): Convert 8-bit raw bytes to octal form by
19105 string_escape_byte8.
19106 (print_object): Adjust for the new multibyte form. Print 8-bit
19107 raw bytes always in octal form. Handle sub char table correctly.
19108
19109 * process.c: Include "character.h" instead of "charset.h".
19110 (read_process_output, send_process): Adjust for the new
19111 code-conversion API.
19112
19113 * puresize.h (BASE_PURESIZE): Increase.
19114
19115 * regex.c: Include "character.h" instead of "charset.h".
19116 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19117 (regex_compile): Accept a range whose starting and ending
19118 character have different leading bytes.
19119 (analyse_first): Adjust for the above change.
19120
19121 * search.c: Include "character.h" instead of "charset.h".
19122 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19123 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19124
19125 * syntax.c: Include "character.h" instead of "charset.h".
19126 (syntax_parent_lookup): Delete.
19127 (Fmodify_syntax_entry): Accept a cons as CHAR.
19128 (skip_chars): Adjust for the new multibyte form.
19129 (init_syntax_once): Call char_table_set_range instead of directly
19130 accessing the structure of a char table.
19131
19132 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19133 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19134 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19135 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19136
19137 * term.c: Include "buffer.h" and "character.h".
19138 (encode_terminal_code, write_glyphs): Adjust for the new
19139 code-conversion API.
19140 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19141
19142 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19143
19144 * xdisp.c: Include "character.h".
19145 (get_next_display_element): Adjust for the new multibyte form.
19146 (disp_char_vector): Adjust for the new char table structure.
19147 (decode_mode_spec_coding): Adjust for the new structure of
19148 coding system.
19149 (decode_mode_spec): Adjust for the new code-conversion API.
19150
19151 * xfaces.c: Include "character.h" instead of "charset.h".
19152 (load_face_font): Adjust for the change of choose_face_font and
19153 FS_LOAD_FONT.
19154 (generate_ascii_font): New function.
19155 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19156 (set_font_frame_param): Adjust for the change of choose_face_font.
19157 (free_realized_face): Make it public.
19158 (free_realized_faces_for_fontset): Rename from
19159 free_realized_multibyte_face. Free also faces realized for ASCII.
19160 (choose_face_font): Change arguments. Adjust for the change of
19161 fontset_font_pattern and FS_LOAD_FONT.
19162
19163 * xfns.c: Include "character.h".
19164 (x_encode_text): Adjust for the new code-conversion API.
19165
19166 * xselect.c: Don't include "charset.h".
19167 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19168
19169 * xterm.c: Include "character.h".
19170 (x_encode_char): New argument CHARSET. Change caller.
19171 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19172 Call ENCODE_CHAR instead of SPLIT_CHAR.
19173 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19174 CHAR_WIDTH instead of CHARSET_WIDTH.
19175 (XTread_socket): Adjust for the new code-conversion API.
19176 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19177 (x_load_font): Adjust for the change of struct font.
19178
191792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19180
19181 * xfaces.c (face_at_buffer_position): Remove unused vars.
19182
191832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19184
19185 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19186 Fix overflow checking.
19187
191882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19189
19190 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19191 Cancel previous change.
19192
191932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19194
19195 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19196 ccl->eight_bit_control. Fix check for buffer overflow.
19197 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19198 (ccl_driver): Initialize extra_bytes to 0.
19199
192002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19201
19202 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19203 return it ORed with ctrl_modifier.
19204
192052008-01-29 Miles Bader <miles@gnu.org>
19206
19207 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19208
192092008-01-28 Jason Rumney <jasonr@gnu.org>
19210
19211 * w32.c (stat): Don't double check for networked drive.
19212
192132008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19214
19215 * window.c (run_window_configuration_change_hook): New function.
19216 Code extracted from set_window_buffer. Set the selected frame.
19217 (set_window_buffer): Use it.
19218 * window.h (run_window_configuration_change_hook): Declare.
19219 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19220
19221 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19222
192232008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19224
19225 * Makefile.in: Remove references to unused macros.
19226
192272008-01-26 Eli Zaretskii <eliz@gnu.org>
19228
19229 * w32.c (g_b_init_get_sid_sub_authority)
19230 (g_b_init_get_sid_sub_authority_count): New static variables.
19231 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19232 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19233 (init_user_info): Use them to retrieve uid and gid.
19234 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19235 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19236 st_uid and st_gid of the file.
19237
192382008-01-26 Jason Rumney <jasonr@gnu.org>
19239
19240 * w32.c (logon_network_drive): New function.
19241 (stat): Use it.
19242
192432008-01-26 Chong Yidong <cyd@stupidchicken.com>
19244
19245 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19246 invisible text covered with an ellipsis.
19247
192482008-01-25 Richard Stallman <rms@gnu.org>
19249
19250 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19251 jump back to beginning. Move some other initializations after that.
19252 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19253 New variables.
19254 (syms_of_xdisp): Init them.
19255
19256 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19257
19258 * buffer.c (reset_buffer_local_variables):
19259 Implement `permanent-local-hook'.
19260 (Qpermanent_local_hook): New variable.
19261 (syms_of_buffer): Init and staticpro it.
19262
192632008-01-25 Michael Albinus <michael.albinus@gmx.de>
19264
19265 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19266
192672008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19268
19269 * fns.c (Fclrhash): Return TABLE.
19270
192712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19272
19273 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19274 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19275 is set even without positional changes.
19276 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19277
19278 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19279
192802008-01-23 Jason Rumney <jasonr@gnu.org>
19281
19282 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19283
19284 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19285 the unicode range available in MULE by locale-coding-system.
19286 Improve dbcs lead byte detection. Set event timestamp and modifiers
19287 earlier.
19288
192892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19290
19291 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19292 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19293 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19294 when used on child processes.
19295
192962008-01-21 Michael Albinus <michael.albinus@gmx.de>
19297
19298 * dbusbind.c (Fdbus_method_return_internal): Rename from
19299 Fdbus_method_return.
19300 (Fdbus_unregister_object): Move to dbus.el.
19301 (Fdbus_call_method, Fdbus_method_return_internal)
19302 (Fdbus_send_signal): Improve debug messages.
19303
193042008-01-20 Martin Rudalics <rudalics@gmx.at>
19305
19306 * undo.c (undo_inhibit_record_point): New variable.
19307 (syms_of_undo): Initialize it.
19308 (record_point): Don't record point when undo_inhibit_record_point
19309 is set.
19310
193112008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19312
19313 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19314
19315 * xdisp.c (Qauto_hscroll_mode): New var.
19316 (syms_of_xdisp): Initialize it.
19317 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19318 window's buffer.
19319 (hscroll_windows): Don't check automatic_hscrolling_p here.
19320
19321 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19322 vscroll if we're setting window-buffer to the value it already has.
19323
193242008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19325
19326 * m/intel386.h: Remove references to XENIX.
19327
193282008-01-17 Andreas Schwab <schwab@suse.de>
19329
19330 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19331 instead of HAVE_X86_64_LIB64_DIR.
19332 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19333
193342008-01-17 Glenn Morris <rgm@gnu.org>
19335
19336 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19337 to HAVE_X86_64_LIB64_DIR.
19338
193392008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19340
19341 * s/irix3-3.h:
19342 * s/irix4-0.h:
19343 * s/386-ix.h:
19344 * s/domain.h:
19345 * s/hpux9-x11r4.h:
19346 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19347
19348 * sysdep.c: Remove code containing references to symbols defined
19349 by unsupported systems.
19350
193512008-01-16 Glenn Morris <rgm@gnu.org>
19352
19353 * coding.c (select-safe-coding-system-function): Doc fix.
19354
193552008-01-15 Glenn Morris <rgm@gnu.org>
19356
19357 * config.in: Revert 2008-01-13 change: this is a generated file.
19358
193592008-01-13 Tom Tromey <tromey@redhat.com>
19360
19361 * lisp.h: Fix typo.
19362
193632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19364
19365 * m/sequent-ptx.h:
19366 * m/sequent.h:
19367 * s/ptx.h:
19368 * s/ptx4-2.h:
19369 * s/ptx4.h: Remove files for systems no longer supported.
19370
19371 * callproc.c (Fcall_process): Fix previous change.
19372
193732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19374
19375 * unexsunos4.c: Remove file, system not supported anymore.
19376
19377 * m/mips.h:
19378 * m/intel386.h:
19379 * callproc.c:
19380 * config.in:
19381 * ecrt0.c:
19382 * emacs.c:
19383 * fileio.c:
19384 * frame.c:
19385 * getpagesize.h:
19386 * keyboard.c:
19387 * lread.c:
19388 * process.c:
19389 * puresize.h:
19390 * sysdep.c:
19391 * systty.h:
19392 * syswait.h:
19393 * unexec.c:
19394 * xdisp.c:
19395 * alloc.c: Remove code containing references to symbols defined by
19396 unsupported systems.
19397
193982008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19399
19400 * coding.c (detect_coding_mask): Fix previous change.
19401
194022008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19403
19404 * coding.c (detect_coding_iso2022): New arg
19405 latin_extra_code_state. Allow Latin extra codes only
19406 when *latin_extra_code_state is nonzero.
19407 (detect_coding_mask): If there is a NULL byte, detect the encoding
19408 as UTF-16 or binary. If Latin extra codes exist, detect the
19409 encoding as ISO-2022 only when there's no other proper encoding is
19410 found.
19411
194122008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19413
19414 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19415 #ifdef MAC_OS.
19416
194172008-01-08 Richard Stallman <rms@gnu.org>
19418
19419 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19420
194212008-01-06 Nick Roberts <nickrob@snap.net.nz>
19422
19423 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19424 menu bar in parentheses.
19425
194262008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19427
19428 * m/7300.h:
19429 * m/acorn.h:
19430 * m/alliant-2800.h:
19431 * m/alliant.h:
19432 * m/alliant1.h:
19433 * m/alliant4.h:
19434 * m/altos.h:
19435 * m/amdahl.h:
19436 * m/apollo.h:
19437 * m/att3b.h:
19438 * m/aviion-intel.h:
19439 * m/aviion.h:
19440 * m/celerity.h:
19441 * m/clipper.h:
19442 * m/cnvrgnt.h:
19443 * m/convex.h:
19444 * m/cydra5.h:
19445 * m/delta88k.h:
19446 * m/dpx2.h:
19447 * m/dual.h:
19448 * m/elxsi.h:
19449 * m/f301.h:
19450 * m/gould-np1.h:
19451 * m/gould.h:
19452 * m/i860.h:
19453 * m/ibmps2-aix.h:
19454 * m/ibmrt-aix.h:
19455 * m/ibmrt.h:
19456 * m/irist.h:
19457 * m/is386.h:
19458 * m/isi-ov.h:
19459 * m/mega68.h:
19460 * m/mg1.h:
19461 * m/news-r6.h:
19462 * m/news-risc.h:
19463 * m/news.h:
19464 * m/nh3000.h:
19465 * m/nh4000.h:
19466 * m/ns16000.h:
19467 * m/ns32000.h:
19468 * m/nu.h:
19469 * m/orion.h:
19470 * m/orion105.h:
19471 * m/paragon.h:
19472 * m/pfa50.h:
19473 * m/plexus.h:
19474 * m/pyramid.h:
19475 * m/pyrmips.h:
19476 * m/sh3el.h:
19477 * m/sps7.h:
19478 * m/sr2k.h:
19479 * m/stride.h:
19480 * m/sun1.h:
19481 * m/sun2.h:
19482 * m/sun3-68881.h:
19483 * m/sun3-fpa.h:
19484 * m/sun3-soft.h:
19485 * m/sun3.h:
19486 * m/sun386.h:
19487 * m/symmetry.h:
19488 * m/tad68k.h:
19489 * m/tahoe.h:
19490 * m/targon31.h:
19491 * m/tek4300.h:
19492 * m/tekxd88.h:
19493 * m/tower32.h:
19494 * m/tower32v3.h:
19495 * m/ustation.h:
19496 * m/wicat.h:
19497 * m/xps100.h:
19498 * s/cxux.h:
19499 * s/cxux7.h:
19500 * s/dgux.h:
19501 * s/dgux4.h:
19502 * s/dgux5-4-3.h:
19503 * s/dgux5-4r2.h:
19504 * s/esix.h:
19505 * s/esix5r4.h:
19506 * s/hiuxmpp.h:
19507 * s/hiuxwe2.h:
19508 * s/iris3-5.h:
19509 * s/iris3-6.h:
19510 * s/isc2-2.h:
19511 * s/isc3-0.h:
19512 * s/isc4-0.h:
19513 * s/isc4-1.h:
19514 * s/newsos5.h:
19515 * s/newsos6.h:
19516 * s/osf1.h:
19517 * s/osf5-0.h:
19518 * s/riscix1-1.h:
19519 * s/riscix12.h:
19520 * s/sco4.h:
19521 * s/sco5.h:
19522 * s/sunos4-0.h:
19523 * s/sunos4-1.h:
19524 * s/sunos413.h:
19525 * s/sunos4shr.h:
19526 * s/umax.h:
19527 * s/unipl5-2.h:
19528 * s/xenix.h:
19529 * cxux-crt0.s:
19530 * unexapollo.c:
19531 * unexconvex.c:
19532 * unexenix.c:
19533 * unexsni.c: Remove files for systems no longer supported.
19534
19535 * m/intel386.h: Remove references to unsupported systems.
19536
19537 * w32.c (get_emacs_configuration): Remove reference to i860.
19538
19539 * sysdep.c: Remove dead code.
19540
195412008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19542
19543 * s/rtu.h:
19544 * m/masscomp.h: Remove files. Platform is obsolete.
19545
195462008-01-04 Michael Albinus <michael.albinus@gmx.de>
19547
19548 * dbusbind.c (Fdbus_method_return): New function.
19549 (xd_read_message): Add the serial number to the event.
19550 (Fdbus_register_method): Activate the function.
19551
195522008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19553
19554 * keyboard.c (read_key_sequence): Fix typo.
19555
195562008-01-03 Michael Albinus <michael.albinus@gmx.de>
19557
19558 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19559 (xd_signature, xd_append_arg): Handle element type detection for
19560 empty arrays.
19561 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19562 SDATA () calls; this must be solved more general.
19563 (Fdbus_register_signal): Use SBYTES instead of strlen.
19564
195652008-01-03 Magnus Henoch <magnus@zemdatav>
19566
19567 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19568 unsigned int for byte values (necessary for big-endian platform).
19569 (Fdbus_call_method): Handle the case of no returned arguments.
19570
195712007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19572
19573 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19574
195752007-12-31 Magnus Henoch <mange@freemail.hu>
19576
19577 * dbusbind.c (xd_signature): Signature of variant is just "v".
19578
195792007-12-30 Michael Albinus <michael.albinus@gmx.de>
19580
19581 * dbusbind.c: Fix several errors and compiler warnings.
19582 Reported by Tom Tromey <tromey@redhat.com>.
19583 (XD_ERROR, XD_DEBUG_MESSAGE)
19584 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19585 (xd_append_arg): Part for basic D-Bus types rewritten.
19586 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19587 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19588 appropriate.
19589 (xd_read_message): Return Qnil. Don't signal an error; it is not
19590 useful during event reading.
19591 (Fdbus_register_signal): Signal an error if the check for
19592 FUNCTIONP fails.
19593 (Fdbus_register_method): New function. The implementation is not
19594 complete, the call of the function signals an error therefore.
19595 (Fdbus_unregister_object): New function, renamed from
19596 Fdbus_unregister_signal. The initial check signals an error, if
19597 the object is not well formed.
19598
195992007-12-30 Richard Stallman <rms@gnu.org>
19600
19601 * textprop.c (get_char_property_and_overlay):
19602 Signal error if POSITION is out of range in a buffer.
19603
196042007-12-29 Martin Rudalics <rudalics@gmx.at>
19605
19606 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19607 because the original parameters are in pure storage now.
19608
196092007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19610
19611 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19612
196132007-12-22 Eli Zaretskii <eliz@gnu.org>
19614
19615 * callint.c (syms_of_callint) <command-history>: Add reference to
19616 history-length in the doc string.
19617
196182007-12-17 Jason Rumney <jasonr@gnu.org>
19619
19620 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19621 before passing as wParam.
19622
196232007-12-22 Michael Albinus <michael.albinus@gmx.de>
19624
19625 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19626 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19627 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19628 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19629 as number.
19630 (Fdbus_call_method): Fix docstring.
19631
196322007-12-21 Michael Albinus <michael.albinus@gmx.de>
19633
19634 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19635 New macros.
19636 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19637 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19638 Simplify.
19639 (xd_signature): New function.
19640 (xd_append_arg): Compute also signatures. Major rewrite.
19641 (xd_retrieve_arg): Make debug messages friendly.
19642 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19643 Check for signatures of arguments.
19644
196452007-12-19 Michael Albinus <michael.albinus@gmx.de>
19646
19647 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19648 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19649 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19650 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19651 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19652 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19653 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19654 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19655 (xd_retrieve_value): Remove. Functionality included in ...
19656 (xd_append_arg): New function.
19657 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19658
196592007-12-16 Michael Albinus <michael.albinus@gmx.de>
19660
19661 * dbusbind.c (top): Include <stdio.h>.
19662 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19663 dbus_message_new_method_call and dbus_message_new_signal.
19664 (Fdbus_register_signal): Rename unique_name to uname.
19665 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19666 non-existing unique name. Fix typos in matching rule. Return an
19667 object which is useful in Fdbus_unregister_signal.
19668 (Fdbus_unregister_signal): Reimplementation, in order to remove
19669 only the corresponding entry.
19670 (Vdbus_registered_functions_table): Change the order of entries.
19671 Apply these changes in xd_read_message and Fdbus_register_signal.
19672
196732007-12-16 Andreas Schwab <schwab@suse.de>
19674
19675 * fileio.c (Finsert_file_contents): Fix overflow check to not
19676 depend on undefined integer overflow.
19677
196782007-12-14 Jason Rumney <jasonr@gnu.org>
19679
19680 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19681 for characters above 127.
19682
196832007-12-13 Jason Rumney <jasonr@gnu.org>
19684
19685 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19686 before dereferencing array.
19687 (lookup_vk_code): Remove zero comparison.
19688
196892007-12-14 Michael Albinus <michael.albinus@gmx.de>
19690
19691 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19692 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19693 Use `unsigned int' instead of `uint'.
19694 (xd_read_message, Fdbus_register_signal): Split expressions into
19695 multiple lines before operators "&&" and "||", according to the
19696 GNU Coding Standards.
19697
196982007-12-14 Eli Zaretskii <eliz@gnu.org>
19699
19700 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19701
197022007-12-12 Juri Linkov <juri@jurta.org>
19703
19704 * buffer.c (Frename_buffer): In interactive spec replace
19705 `read-buffer' with `read-string' that uses `buffer-name-history'
19706 as history, and the current buffer's name as default.
19707
197082007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19709
19710 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19711 manipulating the backtrace manually.
19712 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19713 (struct backtrace, backtrace_list): Remove.
19714 (command_loop_1): Remove dead var `no_direct'.
19715
19716 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19717 preserve non-built-in buffer-local variables.
19718 (Fkill_all_local_variables): Don't re-create&re-set permanent
19719 buffer-local variables.
19720
197212007-12-09 Juri Linkov <juri@jurta.org>
19722
19723 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19724 Lisp code that uses `read-buffer' with current buffer as default.
19725
197262007-12-08 Michael Albinus <michael.albinus@gmx.de>
19727
19728 * dbusbind.c (xd_read_message): Generate an event for every
19729 registered handler. There might be several handlers registered
19730 for the same signal.
19731 (Fdbus_register_signal): Don't overwrite a registration for the
19732 same signal. Add a new registration if handlers are different.
19733 (Vdbus_registered_functions_table): Rework doc string.
19734
197352007-12-07 Michael Albinus <michael.albinus@gmx.de>
19736
19737 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19738 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19739 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19740 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19741 Unify argument lists.
19742 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19743 arguments and hash table keys. Use unique name for service.
19744 (Fdbus_unregister_signal): Remove checks.
19745 (Vdbus_registered_functions_table): Fix doc string.
19746
197472007-12-05 Magnus Henoch <mange@freemail.hu>
19748
19749 * process.c (make_process): Initialize pty_flag to 0.
19750
197512007-12-05 Jason Rumney <jasonr@gnu.org>
19752
19753 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19754 specified XBMs.
19755
197562007-12-05 Richard Stallman <rms@gnu.org>
19757
19758 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19759
197602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19761
19762 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19763 New variable.
19764 (mac_try_close_socket) [MAC_OSX]: New function.
19765 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19766 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19767
19768 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19769 Use mac_try_close_socket.
19770
197712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19772
19773 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19774 reloc_base.
19775 (copy_dysymtab): Compute relocation base here.
19776 (rebase_reloc_address) [__ppc64__]: New function.
19777 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19778 changed.
19779
197802007-12-05 Jason Rumney <jasonr@gnu.org>
19781
19782 * w32proc.c (sys_spawnve): Quote args with wildcards.
19783
197842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19785
19786 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19787 __objc_* sections.
19788 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19789
197902007-12-05 Michael Albinus <michael.albinus@gmx.de>
19791
19792 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19793 Move check for Vdbus_registered_functions_table to
19794 xd_read_queued_messages.
19795 (xd_read_queued_messages): Protect xd_read_message calls by
19796 internal_condition_case_1.
19797
197982007-12-04 Michael Albinus <michael.albinus@gmx.de>
19799
19800 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19801 Qdbus_system_bus and Qdbus_session_bus, respectively.
19802 (Vdbus_intern_symbols): Remove.
19803 (Vdbus_registered_functions_table): New hash table.
19804 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19805 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19806 Rewrite in order to manage registered functions by hash table
19807 Vdbus_registered_functions_table.
19808
198092007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19810
19811 * xterm.c: Update URL to Window Manager Specification in comment.
19812
198132007-12-02 Michael Albinus <michael.albinus@gmx.de>
19814
19815 * config.in (HAVE_DBUS): Add.
19816
19817 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19818 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19819 (obj): Add $(DBUS_OBJ).
19820 (LIBES): Add $(DBUS_LIBS).
19821 (dbusbind.o): New target.
19822
19823 * dbusbind.c: New file.
19824
19825 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19826
19827 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19828 (Qdbus_event): New Lisp symbol.
19829 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19830 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19831 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19832
19833 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19834
198352007-12-01 Richard Stallman <rms@gnu.org>
19836
19837 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19838
198392007-11-30 Jason Rumney <jasonr@gnu.org>
19840
19841 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19842 (w32con_reset_terminal_modes): Clear screen buffer.
19843 (w32_face_attributes): Don't use color indexes that are out of range.
19844 Only reverse the default colors.
19845
19846 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19847 WINDOWSNT.
19848
19849 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19850
198512007-11-29 Jason Rumney <jasonr@gnu.org>
19852
19853 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19854 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19855 if the terminal colors are initialized.
19856 (unspecified_fg, unspecified_bg): Remove unused declarations.
19857
198582007-11-29 Andreas Schwab <schwab@suse.de>
19859
19860 * keyboard.c (apply_modifiers): Fix typo.
19861
198622007-11-29 Richard Stallman <rms@gnu.org>
19863
19864 * keymap.c (Fcurrent_local_map): Doc fix.
19865
198662007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19867
19868 * s/gnu-kfreebsd.h: New file.
19869
198702007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19871
19872 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19873 Don't cast redundantly.
19874
19875 * keyboard.c (KEY_TO_CHAR): New macro.
19876 (parse_modifiers, apply_modifiers): Accept integer arguments.
19877 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19878 for chars and symbol keys.
19879 After doing such remapping, apply function-key-map again.
19880
198812007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19882
19883 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19884 compiled anymore.
19885
198862007-11-26 Andreas Schwab <schwab@suse.de>
19887
19888 * process.c (list_processes_1): Fix indentation level of the
19889 command column.
19890
198912007-11-23 Andreas Schwab <schwab@suse.de>
19892
19893 * editfns.c (Fformat): Handle %c specially since it requires the
19894 argument to be of type int.
19895
198962007-11-23 Markus Triska <markus.triska@gmx.at>
19897
19898 * emacs.c (main): Call init_editfns before init_process, since
19899 init_process sets Vprocess_connection_type depending on OS release.
19900
199012007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19902
19903 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19904 (find_symbol_value): Use do_symval_forwarding.
19905
19906 * data.c (set_internal): Set the value in the `cons-cell' (for
19907 Buffer_Local_values) not only for frame-local variables.
19908
199092007-11-22 Andreas Schwab <schwab@suse.de>
19910
19911 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19912 values to sprintf.
19913 * keymap.c (Fsingle_key_description): Likewise.
19914 * print.c (print_object): Likewise.
19915
199162007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19917
19918 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19919 file for image is nil.
19920
199212007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19922
19923 * term.c: Include stdarg.h.
19924 (fatal): Implement using varargs.
19925 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19926
199272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19928
19929 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19930 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19931 Update call to buffer_slot_type_mismatch.
19932 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19933 (buffer_slot_type_mismatch): Update.
19934 * buffer.c (buffer_local_types): Remove.
19935 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19936 (defvar_per_buffer): Set the type in the buffer_objfwd.
19937
199382007-11-21 Jason Rumney <jasonr@gnu.org>
19939
19940 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19941 CreateFileMapping returns NULL on failure.
19942
199432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19944
19945 * search.c (Fset_match_data): Remove the `evaporate' feature.
19946 (unwind_set_match_data): Don't use the `evaporate' feature.
19947
199482007-11-21 Jason Rumney <jasonr@gnu.org>
19949
19950 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19951
19952 * w32console.c (w32con_write_glyphs): Remove unused variables.
19953
199542007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19955
19956 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19957
19958 * s/darwin.h (MULTI_KBOARD): Remove.
19959
19960 * macfns.c (x_create_tip_frame, Fx_create_frame)
19961 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19962
199632007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19964
19965 * buffer.c (Fbuffer_local_value): Remove redundant test.
19966 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19967 than in `current-buffer' to match the comment.
19968 Do the swap using swap_in_global_binding.
19969
19970 * data.c (store_symval_forwarding, set_internal):
19971 * eval.c (specbind): Remove dead code.
19972
19973 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19974 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19975 Since we do not want to see internal Lisp_*fwd objects here.
19976
199772007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19978
19979 * sysdep.c (init_system_name): Use getaddrinfo if available.
19980
19981 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19982 (x_scroll_bar_note_movement): start, end, with, height in struct
19983 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19984
199852007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19986
19987 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19988
199892007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19990
19991 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19992 This undoes Richard's change of 14-Oct-2002.
19993
19994 * alloc.c (allocate_other_vector):
19995 * lisp.h (allocate_other_vector): Remove.
19996
19997 * window.c (struct save_window_data): Move non-lisp data to the end
19998 and make it `int' rather than Lisp_Object.
19999 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20000 Done wrap/unwrap integer values.
20001 (Fset_window_configuration, compare_window_configurations):
20002 Update use of fields to their new types.
20003
20004 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20005 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20006 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20007 (SET_SCROLL_BAR_X_WINDOW): Remove.
20008 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20009 Access the new x_window field directly.
20010 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20011 Don't wrap/unwrap integers into Lisp_Objects.
20012 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20013 (x_scroll_bar_report_motion):
20014 Don't wrap/unwrap integers into Lisp_Objects.
20015 (x_term_init): Use SDATA.
20016 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20017 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20018 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20019 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20020 * xfns.c (x_set_background_color):
20021 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20022 Access the new x_window field directly.
20023
20024 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20025 (allocate_pseudovector): Make non-static.
20026
20027 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20028 (allocate_pseudovector): Declare.
20029 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20030
200312007-11-15 Andreas Schwab <schwab@suse.de>
20032
20033 * editfns.c (Fformat): Correctly format EMACS_INT values.
20034 Also take precision into account when formatting an integer.
20035
20036 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20037
200382007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20039
20040 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20041 (syms_of_keyboard): Defsubr it.
20042
20043 * data.c (swap_in_global_binding): Fix longstanding bug where
20044 store_symval_forwarding was not called with the right second argument,
20045 thus causing objfwd-ing from being dropped.
20046
200472007-11-14 Juanma Barranquero <lekktu@gmail.com>
20048
20049 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20050 (Fx_display_pixel_height, Fx_display_planes)
20051 (Fx_display_color_cells, Fx_server_max_request_size)
20052 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20053 (Fx_display_visual_class, Fx_display_save_under):
20054 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20055 (Fx_display_pixel_height, Fx_display_planes)
20056 (Fx_display_color_cells, Fx_server_max_request_size)
20057 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20058 (Fx_display_mm_height, Fx_display_mm_width)
20059 (Fx_display_backing_store, Fx_display_visual_class)
20060 (Fw32_select_font, Fx_display_save_under):
20061 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20062 (Fx_display_pixel_height, Fx_display_planes)
20063 (Fx_display_color_cells, Fx_server_max_request_size)
20064 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20065 (Fx_display_save_under): Fix typos in docstrings.
20066
200672007-11-14 Juanma Barranquero <lekktu@gmail.com>
20068
20069 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20070 corresponding to deleted entries; they are an implementation detail.
20071 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20072 Remove variables.
20073 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20074 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20075 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20076 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20077 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20078 (Fw32_define_rgb_color, Fw32_load_color_file)
20079 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20080 Fix typos in docstrings.
20081 (Fx_server_version): Reflow docstring.
20082 (Fw32_shell_execute): Doc fixes.
20083
200842007-11-13 Juanma Barranquero <lekktu@gmail.com>
20085
20086 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20087 if w32_parse_hot_key returned nil.
20088
200892007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20090
20091 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20092
200932007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20094
aac0c6e3
MR
20095 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20096
20097 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20098
20099 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20100 Remove W32_SCROLL_BAR_CLICK_EVENT.
20101
20102 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20103 Add MULTIMEDIA_KEY_EVENT.
20104
20105 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20106 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20107 (make_lispy_event) [WINDOWSNT]: Use it to translate
20108 MULTIMEDIA_KEY_EVENT.
20109
20110 * w32term.h (WM_APPCOMMAND): Define if not already.
20111 (GET_APPCOMMAND_LPARAM): Likewise.
20112
20113 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20114 WM_APPCOMMAND.
20115
20116 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20117 (syms_of_w32fns): Export and initialize it.
20118 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20119
201202007-11-09 Chong Yidong <cyd@stupidchicken.com>
20121
20122 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20123 twice.
20124
20125 * xdisp.c (handle_face_prop): Fix last change.
20126
201272007-11-09 Richard Stallman <rms@gnu.org>
20128
20129 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20130 not just for after-strings and before-strings.
20131 Call face_for_overlay_string and pass the overlay to it.
20132 (handle_display_prop): Determine whether property came from an overlay.
20133 Pass OVERLAY arg to handle_single_display_spec.
20134 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20135 (load_overlay_strings): Fill in it->string_overlays.
20136 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20137
20138 * xfaces.c (face_for_overlay_string): Function renamed from
20139 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20140
20141 * dispextern.h (struct it): New elt string_overlays.
20142 New elt from_overlay, also in stack.
20143 Rearrange a few elements.
20144 (face_for_overlay_string): Decl renamed from
20145 face_at_buffer_position_no_overlays, and add argument.
20146
201472007-11-09 Richard Stallman <rms@gnu.org>
20148
20149 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20150 to get the base face for an overlay string.
20151
20152 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20153
20154 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20155
20156 * xdisp.c (handle_stop): Move some code out of loop.
20157
201582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20159
20160 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20161 Fix conversion from Lisp object to ATSUFontID.
20162
201632007-11-09 Jason Rumney <jasonr@gnu.org>
20164
20165 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20166
201672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20168
20169 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20170 Don't assume regions are aligned to page boundary.
20171 (print_load_command_name): Add LC_UUID if defined.
20172
201732007-11-09 Richard Stallman <rms@gnu.org>
20174
20175 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20176
201772007-11-07 Jason Rumney <jasonr@gnu.org>
20178
20179 * s/windows95.h: Remove.
20180
201812007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20182
20183 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20184 abort with a message on unhandled store_type values.
20185
201862007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20187
20188 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20189 Remove HAVE_X11R5 and HAVE_X11R4.
20190
201912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20192
20193 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20194
201952007-11-01 Johan Bockgård <bojohan@gnu.org>
20196
20197 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20198 Don't set s->stippled_p here, since it has already been set by
20199 x_set_glyph_string_gc from x_draw_glyph_string.
20200
202012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20202
20203 * sunfns.c: Remove file.
20204
20205 * m/sun386.h:
20206 * m/sun2.h:
20207 * m/sparc.h: Remove Sun windows code.
20208
202092007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20210
20211 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20212 (init_keyboard): Set current_kboard's window-system to nil.
20213 (tty_read_avail_input): Typo.
20214 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20215
202162007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20217
20218 * s/usg5-4.h:
20219 * s/usg5-3.h:
20220 * s/ptx.h:
20221 * m/is386.h:
20222 * m/ibmps2-aix.h:
20223 * Makefile.in: Remove all mentions of X10.
20224
20225 * dispnew.c (syms_of_display): Don't mention version 10.
20226
202272007-10-28 Juanma Barranquero <lekktu@gmail.com>
20228
20229 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20230 ($(BLD)/abbrev.$(O)): Remove.
20231
202322007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20233
20234 Rewrite abbrev.c in Elisp.
20235 * image.c (Qcount): Don't declare as extern.
20236 (syms_of_image): Initialize and staticpro `Qcount'.
20237 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20238 * emacs.c (main): Don't call syms_of_abbrev.
20239 * Makefile.in (obj): Remove abbrev.o.
20240 (abbrev.o): Remove.
20241 * abbrev.c: Remove.
20242
202432007-10-26 Martin Rudalics <rudalics@gmx.at>
20244
20245 * window.c (window_min_size_2): Don't count header-line.
20246
202472007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20248
20249 * frame.h (struct frame): Move all bit fields after the first bit
20250 field to take advantage of the available space. Group all the
20251 chars together to reduce wasted space due to padding.
20252
202532007-10-26 Juanma Barranquero <lekktu@gmail.com>
20254
20255 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20256
20257 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20258 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20259 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20260 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20261 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20262 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20263 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20264 (last_marked, mark_object_loop_halt): Make static.
20265
20266 * frame.c (syms_of_frame) <delete-frame-functions>:
20267 Fix typo in docstring.
20268
202692007-10-25 Juanma Barranquero <lekktu@gmail.com>
20270
20271 * w32.c (init_environment): Fix tiny memory leak.
20272 (w32_get_resource): Remove unused variable `ok'.
20273
202742007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20275
20276 Make `window-system' into a keyboard-local variable (rather than
20277 frame-local as done originally by multi-tty).
20278
20279 * keyboard.h (struct kboard): Add Vwindow_system.
20280 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20281 (mark_kboards): Mark Vwindow_system.
20282
20283 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20284 (init_display): Don't set the obsolete `window-system' frame-param.
20285
20286 * xterm.c (x_term_init):
20287 * w32term.c (w32_create_terminal):
20288 * term.c (init_tty): Set Vwindow_system.
20289 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20290 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20291
20292 * xfns.c (Fx_create_frame, x_create_tip_frame):
20293 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20294 * macfns.c (Fx_create_frame):
20295 Don't set the obsolete `window-system' frame-param.
20296
20297 * frame.h (Qwindow_system): Remove.
20298 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20299 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20300
203012007-10-24 Richard Stallman <rms@gnu.org>
20302
20303 * frame.c (x_figure_window_size): For fullscreen case,
20304 set USPosition | PPosition without clobbering rest of window_prompting.
20305
20306 * keyboard.c (Fcurrent_idle_time): Doc fix.
20307
20308 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20309
203102007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20311
20312 * process.c (unwind_request_sigio): Only define if __ultrix__.
20313
20314 * callproc.c (child_setup): Remove spurious *.
20315
20316 * lisp.h (Fget_text_property): Declare.
20317 (have_menus_p): Declare it here rather than in sys-dep header files.
20318 * macterm.h (have_menus_p):
20319 * msdos.h (have_menus_p):
20320 * xterm.h (have_menus_p): Remove.
20321
20322 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20323 (Fmake_variable_frame_local): Just check the variable's const-ness
20324 rather than checking nil or t.
20325
203262007-10-22 Jason Rumney <jasonr@gnu.org>
20327
20328 * w32fns.c: Include math.h.
20329 (w32_abort): Declaration moved to nt/config.nt.
20330
20331 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20332 (abort): Redefinition moved to nt/config.nt.
20333
20334 * m/windowsnt.h: Remove.
20335
203362007-10-22 Juanma Barranquero <lekktu@gmail.com>
20337
20338 * emacs.c (Fdump_emacs): Fix typo in message.
20339 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20340 <installation-directory>: Reflow docstring.
20341
203422007-10-22 Juri Linkov <juri@jurta.org>
20343
20344 * minibuf.c: Allow minibuffer default to be a list of default values.
20345 With empty input use the first element of this list as returned default.
20346 (string_to_object)
20347 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20348 (read_minibuf): If defalt is cons, set histstring to its car.
20349 (Fread_string): If default_value is cons, set val to its car.
20350 (Fread_buffer): If def is cons, use its car.
20351 (Fcompleting_read): If defalt is cons, set val to its car.
20352
203532007-10-21 Michael Albinus <michael.albinus@gmx.de>
20354
20355 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20356
203572007-10-20 Juanma Barranquero <lekktu@gmail.com>
20358
20359 * doc.c (Fdocumentation): Check for advice in all cases.
20360
203612007-10-19 Chong Yidong <cyd@stupidchicken.com>
20362
20363 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20364
203652007-10-19 Richard Stallman <rms@gnu.org>
20366
20367 * doc.c (Fdocumentation): Check for and handle an advised function.
20368
203692007-10-19 Juanma Barranquero <lekktu@gmail.com>
20370
20371 * process.c (Fset_process_filter): Doc fix.
20372
203732007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20374
20375 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20376 which caused key-translation-map to applied repeatedly (thus breaking
20377 double-mode).
20378
203792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20380
20381 * xselect.c (x_own_selection, x_handle_selection_clear)
20382 (x_clear_frame_selections):
20383 * w32menu.c (list_of_panes, list_of_items):
20384 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20385 * textprop.c (validate_plist, interval_has_all_properties)
20386 (interval_has_some_properties, interval_has_some_properties_list)
20387 (add_properties, text_property_list):
20388 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20389 * minibuf.c (Fassoc_string):
20390 * macselect.c (x_own_selection, x_clear_frame_selections)
20391 (Fx_disown_selection_internal):
20392 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20393 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20394
203952007-10-17 Chong Yidong <cyd@stupidchicken.com>
20396
20397 * process.c: Link to libs for calling res_init() if available.
20398 (Fmake_network_process): Call res_init() before getaddrinfo or
20399 gethostbyname, if possible.
20400
204012007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20402
20403 * lread.c (read1): Set pvectype for char_tables.
20404
20405 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20406 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20407 Add type checks.
20408 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20409
20410 * alloc.c (free_misc): Use XMISCTYPE.
20411 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20412
204132007-10-17 Glenn Morris <rgm@gnu.org>
20414
20415 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20416 (syms_of_minibuf): Add Qcompletion_ignore_case.
20417 * dired.c (Qcompletion_ignore_case): Change to external.
20418 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20419 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20420 (Fread_file_name): Use it rather than intern'ing.
20421
20422 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20423 (Fread_coding_system): Ignore case of user input.
20424
204252007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20426
20427 * xdisp.c (handle_display_prop): Ignore display specs after
20428 replacing one when string text is being replaced.
20429 (handle_single_display_spec): Pretend as if characters with display
20430 property haven't been consumed only when buffer text is being replaced.
20431
204322007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20433
20434 * xfns.c (Fx_create_frame, Fx_display_list):
20435 * window.c (window_fixed_size_p, enlarge_window)
20436 (shrink_window_lowest_first):
20437 * macterm.c (init_font_name_table):
20438 * macfns.c (Fx_create_frame, Fx_display_list):
20439 * lread.c (close_load_descs):
20440 * keyboard.c (read_char_x_menu_prompt):
20441 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20442 * coding.c (code_convert_region_unwind): Test the type of an object
20443 rather than just !NILP before extracting data from it.
20444
20445 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20446
20447 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20448 (XMISCANY): New macro.
20449 (XMISCTYPE): Use it.
20450 (struct Lisp_Misc_Any): New type.
20451 (union Lisp_Misc): Use it.
20452 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20453 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20454 (find_symbol_value, set_internal, default_value, Fset_default)
20455 (Fmake_variable_buffer_local, Fmake_local_variable)
20456 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20457 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20458 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20459 * alloc.c (allocate_buffer): Set the size and tag.
20460 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20461 Use XMISCANY.
20462 (die): Follow the GNU convention for error messages.
20463 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20464 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20465 tag any more.
20466 (set_buffer_internal_1):
20467 * frame.c (store_frame_param):
20468 * eval.c (specbind):
20469 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20470
20471 * doc.c (Fsnarf_documentation): Simplify.
20472
204732007-10-14 Juanma Barranquero <lekktu@gmail.com>
20474
20475 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20476 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20477
204782007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20479
20480 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20481
204822007-10-14 Juanma Barranquero <lekktu@gmail.com>
20483
20484 * eval.c (do_autoload): Don't save autoloads.
20485
20486 * data.c (Ffset): Save autoload of the function being set.
20487
204882007-10-07 John Paul Wallington <jpw@pobox.com>
20489
20490 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20491 parameter before setting up faces.
20492
204932007-10-13 Eli Zaretskii <eliz@gnu.org>
20494
20495 * ccl.c (Fregister_code_conversion_map):
20496 * keyboard.c (append_tool_bar_item): Reformat last change.
20497
20498 * lisp.h (eabs): Rename from `abs'. All callers changed.
20499
205002007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20501
20502 * buffer.c (add_overlay_mod_hooklist):
20503 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20504 * fontset.c (make_fontset):
20505 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20506 (append_tool_bar_item):
20507 * macmenu.c (grow_menu_items):
20508 * w32menu.c (grow_menu_items):
20509 * xmenu.c (grow_menu_items): Use larger_vector.
20510
205112007-10-13 Eli Zaretskii <eliz@gnu.org>
20512
20513 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20514 selected frame'' on MSDOS).
20515
205162007-10-12 Martin Rudalics <rudalics@gmx.at>
20517
20518 * frame.c (Qexplicit_name): New variable.
20519 (x_report_frame_params): Report it in parameter alist.
20520 (syms_of_frame): Intern and staticpro it.
20521
205222007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20523
20524 * macfns.c (x_create_tip_frame): Set terminal for frame.
20525
205262007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20527
20528 * frame.c (Qenvironment): Remove.
20529 (syms_of_frame) <Qenvironment>: Don't initialize.
20530 (Fdelete_frame): Don't treat the `environment' param specially.
20531 * frame.h (Qenvironment): Don't declare.
20532 * callproc.c (set_initial_environment): Don't set unused frame param.
20533
20534 * frame.c (Fframe_with_environment): Remove.
20535 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20536
20537 * lisp.h (Fframe_with_environment): Don't declare.
20538
205392007-10-10 Juanma Barranquero <lekktu@gmail.com>
20540
20541 * indent.c (indent_tabs_mode, last_known_column)
20542 (last_known_column_modified): Make static.
20543 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20544
205452007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20546
20547 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20548
205492007-10-09 Jason Rumney <jasonr@gnu.org>
20550
20551 * w32term.c (x_set_window_size): Disable code that attempts to tell
20552 Lisp code about a size change before it actually happens.
20553
205542007-10-09 Richard Stallman <rms@gnu.org>
20555
20556 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20557 return HANDLED_RETURN.
20558
205592007-10-08 Martin Rudalics <rudalics@gmx.at>
20560
20561 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20562 when there's an unread command event.
20563
20564 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20565 window autoselection act appropriately when leaving selected frame.
20566 (syms_of_frame): Initialize focus_follows_mouse.
20567 * frame.h (focus_follows_mouse): Extern it.
20568 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20569 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20570 * msdos.c (dos_rawgetc): Likewise.
20571 * w32term.c (w32_read_socket): Likewise.
20572 * xterm.c (handle_one_xevent): Likewise.
20573 * xdisp.c (syms_of_xdisp): In doc-string of
20574 mouse-autoselect-window mention focus-follows-mouse.
20575
205762007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20577
20578 * macterm.c (mac_load_query_font): Fix missing return value.
20579 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20580 Add BLOCK_INPUT.
20581
205822007-10-08 Richard Stallman <rms@gnu.org>
20583
20584 * xdisp.c (get_window_cursor_type): Implement documented behavior
20585 for cursor-in-non-selected-windows = t.
20586
205872007-10-08 Jason Rumney <jasonr@gnu.org>
20588
20589 * w32.c (w32_get_resource): Always close registry keys.
20590
205912007-10-08 Jason Rumney <jasonr@gnu.org>
20592
20593 * makefile.w32-in (LIBS): Add COMCTL32.
20594
20595 * w32fns.c (globals_of_w32fns): Init common controls.
20596
205972007-10-08 Richard Stallman <rms@gnu.org>
20598
20599 * image.c (our_memory_buffer): Rename from omfib_buffer.
20600
206012007-10-08 Richard Stallman <rms@gnu.org>
20602
20603 * buffer.c (Foverlays_at): Doc fix.
20604
206052007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20606
20607 * fns.c (Fplist_put): Preserve uneven tail data.
20608
206092007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20610
20611 * termhooks.h (enum event_kind): Remove trailing comma.
20612
20613 * frame.h (enum): Remove trailing comma.
20614
206152007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20616
20617 * w32proc.c (delete_child): Don't terminate threads of zombies.
20618
206192007-10-08 Martin Rudalics <rudalics@gmx.at>
20620
20621 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20622
20623 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20624 last-repeatable-command.
20625 (init_kboard): Initialize Vlast_repeatable_command.
20626 (command_loop_1): Set it to real_this_command unless that was
20627 bound to an input event.
20628 (mark_kboards): Mark it.
20629
206302007-10-08 Richard Stallman <rms@gnu.org>
20631
20632 * eval.c (condition-case): Doc fix.
20633
206342007-10-08 Masatake YAMATO <jet@gyve.org>
20635
20636 * xfaces.c (tty_supports_face_attributes_p): Fix code
20637 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20638 was copied and not edited.
20639
206402007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20641
20642 Add new `input-decode-map' keymap and use it for terminal
20643 escape sequences.
20644 * keyboard.h (struct kboard): Add Vinput_decode_map.
20645 Remove Vlocal_key_translation_map.
20646 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20647 (init_kboard): Init input-decode-map.
20648 Replace local-key-translation-map back with key-translation-map.
20649 (syms_of_keyboard): Declare input-decode-map.
20650 Remove local-key-translation-map. Update docstrings.
20651 (mark_kboards): Mark Vinput_decode_map.
20652 Don't mark Vlocal_key_translation_map.
20653 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20654 Replace local-key-translation-map back with key-translation-map.
20655 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20656 Bind in input-decode-map rather than function-key-map.
20657
20658 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20659 This was made redundant by the previous introduction of XSETPVECTYPE.
20660
206612007-10-09 Richard Stallman <rms@gnu.org>
20662
20663 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20664
206652007-09-29 Richard Stallman <rms@gnu.org>
20666
20667 * eval.c (internal_condition_case_2, internal_condition_case_1)
20668 (internal_condition_case): Reenable abort if x_catching_errors ()
20669 to see if that really happens and why.
20670
206712007-10-06 Andreas Schwab <schwab@suse.de>
20672
20673 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20674
206752007-10-04 Juanma Barranquero <lekktu@gmail.com>
20676
20677 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20678
206792007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20680
20681 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20682
206832007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20684
20685 * window.h (struct window):
20686 * window.c (struct save_window_data, struct saved_window):
20687 * termhooks.h (struct terminal):
20688 * process.h (struct Lisp_Process):
20689 * frame.h (struct frame):
20690 * buffer.h (struct buffer):
20691 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20692 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20693 The size field of (pseudo)vectors is now unsigned.
20694 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20695
20696 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20697 Turn `count' into an integer.
20698
20699 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20700 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20701 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20702 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20703 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20704
20705 * alloc.c (allocate_pseudovector): New fun.
20706 (ALLOCATE_PSEUDOVECTOR): New macro.
20707 (allocate_window, allocate_terminal, allocate_frame)
20708 (allocate_process): Use it.
20709 (mark_vectorlike): New function.
20710 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20711 (mark_terminals): Use it.
20712 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20713 (Fmake_byte_code): Use XSETPVECTYPE.
20714
20715 * frame.c (Fframe_parameters): Minor simplification.
20716
20717 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20718
20719 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20720
20721 * buffer.c (Fget_buffer_create, init_buffer_once):
20722 * lread.c (defsubr):
20723 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20724
20725 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20726 defined differently in the m/*.h files.
20727 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20728 (XSETPVECTYPE): New macro.
20729 (XSETPSEUDOVECTOR): Use it.
20730
20731 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20732 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20733
20734 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20735 * lread.c (defvar_per_buffer):
20736 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20737
20738 * window.c (candidate_window_p): Only consider as visible frames that
20739 are on the same terminal.
20740
20741 * m/ibms390x.h (MARKBIT): Remove unused macro.
20742
207432007-10-01 Juanma Barranquero <lekktu@gmail.com>
20744
20745 * lread.c (Fload): Fix typo in docstring.
20746
207472007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20748
20749 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20750 of a non-zero value can't yield zero.
20751
207522007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20753
20754 * term.c (term_clear_mouse_face, term_mouse_highlight)
20755 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20756
20757 * print.c (safe_debug_print): Use XHASH.
20758
20759 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20760 Lisp elements such as tags.
20761 (XHASH): New macro.
20762 (EQ): Use it.
20763 (SREF, SSET, STRING_COPYIN): Use SDATA.
20764 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20765
20766 * alloc.c (mark_terminal): Remove left-over declaration.
20767 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20768 (allocate_vectorlike): Remove type argument. Adjust callers.
20769 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20770 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20771
20772 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20773 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20774 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20775 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20776 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20777 Use them.
20778
20779 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20780 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20781 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20782
207832007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20784
20785 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20786 loaded by default.
20787
207882007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20789
20790 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20791 on this tty.
20792 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20793
20794 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20795 Update all users.
20796 (handle_one_term_event): Use Gpm_DrawPointer.
20797 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20798 Signal errors instead of returning nil. Always return nil.
20799 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20800 Make it a noop if gpm-mouse was not activated.
20801 (syms_of_term): Update names.
20802
208032007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20804
20805 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20806 (init_sys_modes): Check that gpm_tty is the current tty.
20807
20808 * alloc.c (allocate_terminal): Set the vector size to only count the
20809 lisp fields. Initialize those to nil.
20810 (mark_object): Don't treat terminals specially.
20811 (mark_terminal): Remove.
20812 (mark_terminals): Use mark_object instead.
20813
20814 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20815 the GC to the beginning.
20816
20817 * indent.h:
20818 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20819
20820 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20821
208222007-09-25 Jason Rumney <jasonr@gnu.org>
20823
20824 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20825
20826 * w32console.c (create_w32cons_output): Remove.
20827
20828 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20829
20830 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20831 (reset_sys_modes): Use reset_terminal_modes_hook.
20832
208332007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * eval.c (do_autoload): Don't output any message.
20836
208372007-09-24 Juri Linkov <juri@jurta.org>
20838
20839 * emacs.c (standard_args): Change priority of "--no-splash"
20840 from 40 to 3. Add "--no-desktop" with the same priority.
20841
208422007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20843
20844 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20845 and optimize the case where they are all 1.
20846
208472007-09-23 Johannes Weiner <hannes@saeurebad.de>
20848
20849 * lisp.h (abs): Define if not defined.
20850 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20851 Don't define `abs', since it's defined in lisp.h.
20852
208532007-09-22 Eli Zaretskii <eliz@gnu.org>
20854
20855 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20856 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20857 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20858 (init_tty): Use DEV_TTY instead of "/dev/tty".
20859 [WINDOWSNT]: No need to protect from NAME arg being null.
20860
208612007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20862
20863 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20864 up the tty state.
20865
208662007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20867
20868 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20869 (gpm_tty): Change its type.
20870 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20871 (gpm_tty): Change its type and initialize it.
20872 (Fterm_open_connection): Check the frame is indeed a tty.
20873 Use the new gpm_tty.
20874 (Fterm_close_connection): Use the new gpm_tty.
20875 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20876 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20877
208782007-09-21 Juanma Barranquero <lekktu@gmail.com>
20879
20880 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20881 underline_color, to draw strike-through.
20882
208832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20884
20885 * lisp.h (allocate_terminal): Declare.
20886
20887 * window.c (candidate_window_p): Consider frames that are being placed
20888 by the user as somewhere between visible and iconified.
20889 (window_loop): Prefer windows on the current frame.
20890 (Fselect_window): Move the use of select-frame to the beginning so we
20891 can just delegate all the work (it'll call us back anyway).
20892
20893 * frame.c (Qdisplay_environment_variable):
20894 * frame.h (Qdisplay_environment_variable): Delete.
20895
20896 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20897 of the first arg, since that value may be a union.
20898
20899 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20900 parameter rather than Qdisplay_environment_variable. If all else
20901 fails, look for DISPLAY in initial-environment.
20902
209032007-09-21 Glenn Morris <rgm@gnu.org>
20904
20905 * Makefile.in (emacstool): Remove target.
20906 (lisp, shortlisp): Remove termdev.elc.
20907
209082007-09-21 Markus Triska <markus.triska@gmx.at>
20909
20910 * xterm.c (x_delete_display): Compile session management conditionally.
20911
209122007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20913
20914 * callproc.c (getenv_internal_1): New function.
20915 (getenv_internal): Use it.
20916 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20917
20918 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20919 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20920 (Fset_terminal_parameter): Work with dead terminals as well.
20921 (Fmodify_terminal_parameters): Remove.
20922
20923 * terminal.c (get_terminal): Handle terminals.
20924 Make sure the terminal returned is live.
20925 (create_terminal): Use allocate_terminal.
20926 (mark_terminals): Move to alloc.c.
20927 (delete_terminal): Use terminal->name as liveness status.
20928 NULL out fields after freeing their contents.
20929 Don't deallocate the object.
20930 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20931 rather than an int.
20932 (Fterminal_live_p): Accept non-integer arguments.
20933 (Fterminal_list): Return terminal objects rather than an ints.
20934
20935 * alloc.c (enum mem_type): New member for `terminal' objects.
20936 (allocate_terminal): New function.
20937 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20938 Handle terminals.
20939 (mark_terminal): New fun.
20940 (mark_terminals): Move from terminal.c.
20941
20942 * term.c (get_tty_terminal): Don't treat output_initial specially.
20943 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20944 (delete_tty): Use terminal->name as liveness status.
20945
20946 * termhooks.h (struct terminal): Make it into a pseudovector.
20947 Remove `deleted' replaced by checking `name's nullness.
20948
20949 * print.c (print_object): Handle terminals.
20950
20951 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20952 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20953
20954 * frame.c (make_terminal_frame):
20955 * keyboard.c (tty_read_avail_input):
20956 * w32term.c (x_delete_terminal):
20957 * xfns.c (Fx_create_frame, x_create_tip_frame):
20958 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20959
209602007-09-20 Glenn Morris <rgm@gnu.org>
20961
20962 * process.c (Fmake_network_process): Doc fix.
20963
209642007-09-19 Jason Rumney <jasonr@gnu.org>
20965
20966 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20967
209682007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20969
20970 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20971 Fix a C warning regarding variable constness.
20972
20973 * xterm.c (handle_one_xevent): Fix a C warning.
20974
209752007-09-18 Jason Rumney <jasonr@gnu.org>
20976
20977 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20978
209792007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20980
20981 * gtkutil.c (gdpy_def): New variable.
20982 (xg_initialize): Initialize gdpy_def.
20983 (xg_display_close): If no other display exists, set gdpy_def to a
20984 new connection.
20985
209862007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20987
20988 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20989 when we have no file name for the icon.
20990 (xg_tool_bar_expose_callback): Remove.
20991 (xg_create_tool_bar): Don't connect expose signal to
20992 xg_tool_bar_expose_callback.
20993 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20994
209952007-09-16 Andreas Schwab <schwab@suse.de>
20996
20997 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20998 values instead of zapping them.
20999
210002007-09-14 Glenn Morris <rgm@gnu.org>
21001
21002 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21003 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21004 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21005 scope and rename to omfib_buffer for clarity.
21006 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21007
210082007-09-14 Kenichi Handa <handa@m17n.org>
21009
21010 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21011
210122007-09-13 Jason Rumney <jasonr@gnu.org>
21013
21014 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21015
21016 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21017
21018 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21019 (mac_term_init): Call here instead, passing rif.
21020
210212007-09-13 Glenn Morris <rgm@gnu.org>
21022
21023 * s/hpux.h: No longer define `static' as nothing.
21024
210252007-09-13 Johan Bockgård <bojohan@gnu.org>
21026
21027 * callint.c (Fcall_interactively): Remove unused var `fun'.
21028
210292007-09-12 Romain Francoise <romain@orebokech.com>
21030
21031 * window.c (prefer_window_split_horizontally, display_buffer):
21032 Revert 2007-09-08 change.
21033
210342007-09-12 Glenn Morris <rgm@gnu.org>
21035
21036 * alloca.c: Remove file.
21037 * Makefile.in (alloca): Do not undef.
21038 (allocaobj, alloca.o): Remove.
21039 (otherobj): Remove allocaobj.
21040 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21041 * regex.c (C_ALLOCA): Remove all references and code that was only
21042 used when this was defined.
21043 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21044 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21045 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21046
21047 * Makefile.in (SOURCES, unlock, relock): Delete.
21048
21049 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21050 (menu_grab_callback): All uses changed.
21051
21052 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21053 (x_reply_selection_request): All uses changed.
21054
210552007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21056
21057 * lread.c (load_warn_old_style_backquotes): Change message to look
21058 better when it appears in the middle of byte-compiler messages.
21059
210602007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21061
21062 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21063
21064 * xterm.c (x_create_terminal): Add comment.
21065
21066 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21067
210682007-09-10 Richard Stallman <rms@gnu.org>
21069
21070 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21071
210722007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21073
21074 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21075 (DEFUN): Document `intspec', use it instead of `prompt'.
21076
21077 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21078
21079 * data.c (Finteractive_form): If the interactive specification starts
21080 with a `(', use it as a Lisp form.
21081
21082 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21083 name and file modes.
21084
21085 * callint.c (Fcall_interactively): Comment fixes.
21086
210872007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21088
21089 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21090 and compiled functions.
21091
210922007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21093
21094 * window.c (prefer_window_split_horizontally): New variable.
21095 (display_buffer): Consider splitting window horizontally depending
21096 on prefer_window_split_horizontally.
21097
210982007-09-08 Eli Zaretskii <eliz@gnu.org>
21099
21100 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21101
211022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21103
21104 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21105
21106 * frame.c (x_set_frame_parameters): Check number is positive before
21107 using XFASTINT.
21108
21109 * window.c (freeze_window_start): Don't presume selected_window holds
21110 a window object.
21111 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21112
211132007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21114
21115 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21116
211172007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21118
21119 * window.c (Vsplit_window_preferred_function): New var.
21120 (Fdisplay_buffer): Use it.
21121 (syms_of_window): Export, and initialize it.
21122
211232007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21124
21125 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21126
211272007-09-06 Glenn Morris <rgm@gnu.org>
21128
21129 * gtkutil.c (menu_grab_callback) <cnt>:
21130 * xselect.c (x_reply_selection_request) <cnt>: Move static
21131 variable to file scope.
21132
211332007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21134
21135 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21136 consistent values of selected_frame and selected_window.
21137
211382007-09-04 Jason Rumney <jasonr@gnu.org>
21139
21140 * w32console.c (initialize_w32_display): Zero unused hooks.
21141
211422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21143
21144 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21145 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21146
211472007-09-04 Jason Rumney <jasonr@gnu.org>
21148
21149 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21150 in w32console.c. Set up input. Remove XXX comments that have been
21151 confirmed as correct.
21152
21153 * s/ms-w32.h (MULTI_KBOARD): Define.
21154
21155 * w32console.c (one_and_only_w32cons): Remove.
21156 (initialize_w32_display): Take terminal argument.
21157
21158 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21159 initialize_w32_display.
21160 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21161
21162 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21163
21164 * keyboard.c (discard_mouse_events): Discard it.
21165 (make_lispy_event): Translate it to a lisp event.
21166 (lispy_wheel_names): Add wheel-left and right events.
21167 (syms_of_keyboard): Enlarge wheel_syms.
21168
21169 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21170 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21171
21172 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21173
21174 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21175 from WM_MOUSEHWHEEL.
21176 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21177
21178 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21179 terminal.
21180
21181 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21182 keyboard for the terminal.
21183
211842007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21185
21186 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21187 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21188 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21189 and resume-tty-function to resume-tty-hook.
21190 (Fsuspend_tty, Fresume_tty): Use new names.
21191
211922007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21193
21194 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21195 if it starts with "n:".
21196
211972007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21198
21199 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21200
212012007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21202
21203 * frame.h:
21204 * frame.c (Qterm_environment_variable): Remove.
21205 (syms_of_frame): Don't init and staticpro it.
21206
21207 * callproc.c (getenv_internal): Remove special case for $TERM.
21208
21209 * callproc.c (Vinitial_environment): New variable.
21210 (set_initial_environment): Initialize it.
21211 (syms_of_callproc): Declare it.
21212 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21213 TERM under which a process runs is never related to the TERM in which
21214 Emacs is running.
21215
212162007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21217
21218 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21219 * s/darwin.h: ... do it here.
21220
212212007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21222
21223 * lisp.h (set_initial_environment): Rename from set_global_environment.
21224
21225 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21226 removed by mistake on the multi-tty branch.
21227
21228 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21229 (Fmodify_frame_parameters): Return a value.
21230
21231 * image.c (png_load): Comment-out var only used in commented-out code.
21232
21233 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21234 before passing it to mark_object.
21235
21236 * xfaces.c (internal_resolve_face_name): Return a value.
21237 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21238
21239 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21240 (x_icon): Comment-out var only used in commented-out code.
21241
212422007-08-29 Romain Francoise <romain@orebokech.com>
21243
21244 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21245 QUIT hasn't been provided.
21246
212472007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21248
21249 * callproc.c (child_setup, getenv_internal): Use the
21250 display-environment-variable and term-environment-variable frame params.
21251 (set_initial_environment): Initialise Vprocess_environment.
21252
21253 * config.in: Disable multi-keyboard support on a mac.
21254
21255 * frame.c (Qterm_environment_variable)
21256 (Qdisplay_environment_variable): New variables.
21257 (syms_of_frame): Intern and staticpro them.
21258 (Fmake_terminal_frame): Disable output method test.
21259
21260 * frame.h: Declare them here.
21261
21262 * macfns.c (x_set_mouse_color): Get rif from the frame.
21263 (x_set_tool_bar_lines): Don't use updating_frame.
21264 (mac_window): Add 2 new parameters for consistency with other systems.
21265 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21266 frame parameters following what is done in X11 and w32. Don't use
21267 FRAME_MAC_DISPLAY_INFO.
21268 (Fx_open_connection, start_hourglass): Remove window-system check.
21269 (x_create_tip_frame): Get the keyboard from the terminal.
21270
21271 * macmenu.c: Reorder includes.
21272 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21273
21274 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21275 terminal parameter.
21276 (x_clear_frame): Add a frame parameter.
21277 (note_mouse_movement): Get rif from the frame.
21278 (mac_term_init): Initialize the terminal.
21279 (mac_initialize): Make static and move terminal initialization ...
21280 (mac_create_terminal): ... to this new function.
21281
21282 * macterm.h (struct mac_display_info): Add terminal.
21283 (mac_initialize): Delete declaration.
21284
21285 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21286
21287 * sysdep.c: Comment out text after #endif.
21288
21289 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21290 is defined. Better initialize ttys in windows. Use terminal
21291 specific mouse_position_hook.
21292
21293 * termhooks.h (union display_info): Add mac_display_info.
21294
21295 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21296 Set the default minibuffer frame, window_system and the rest of the
21297 frame parameters following what is done in X11.
21298
21299 * w32term.c (w32_initialize): Make static.
21300
21301 * xselect.c (x_handle_selection_clear): Only access
21302 terminal->kboard when MULTI_KBOARD is defined.
21303
21304 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21305 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21306
213072007-08-29 Jason Rumney <jasonr@gnu.org>
21308
21309 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21310 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21311
21312 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21313 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21314
21315 * keyboard.c (restore_kboard_configuration): Only define when
21316 MULTI_KBOARD defined.
21317
21318 * makefile.w32-in: Update dependancies from Makefile.in.
21319 (OBJ1): Add terminal.$(O)
21320
21321 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21322 Don't define function body.
21323 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21324
21325 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21326
21327 * w32.c (request_sigio, unrequest_sigio): Remove.
21328
21329 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21330 (w32con_clear_frame, w32con_clear_end_of_line)
21331 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21332 (w32con_delete_glyphs, w32con_set_terminal_window)
21333 (scroll_line, w32_sys_ring_bell): Add frame arg.
21334 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21335 Add terminal arg.
21336 (PICK_FRAME): Remove.
21337 (w32con_write_glyphs): Use frame specific terminal coding.
21338 (one_and_only_w32cons): New global variable.
21339 (initialize_w32_display): Use it for storing hooks.
21340 (create_w32cons_output): New function.
21341
21342 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21343 arg a frame.
21344
21345 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21346 Set window_system.
21347 (x_set_tool_bar_lines): Don't use updating_frame.
21348 (Fx_create_frame): Set terminal and ref count.
21349 (Fx_open_connection): Remove window-system check.
21350
21351 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21352
21353 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21354 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21355 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21356 Add frame arg.
21357 (x_delete_terminal, w32_create_terminal): New functions.
21358 (w32_term_init): Create a terminal.
21359 (w32_initialize): Move terminal specific initialization to
21360 w32_create_terminal.
21361
21362 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21363 (w32_clear_rect, w32_clear_area): Use background from frame.
21364 (w32_display_info): Add terminal.
21365 (w32_sys_ring_bell, x_delete_display): Declare here.
21366
21367 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21368
21369 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21370
213712007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21372
21373 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21374 Fix get_named_tty calls for the controlling tty.
21375
213762007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21377
194d44e7 21378 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21379
213802007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21381
21382 * term.c (tty_insert_glyphs): Add missing first parameter.
21383
213842007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21385
21386 * buffer.c (Fbuffer_list, Fbury_buffer):
21387 Take frame->buried_buffer_list into account.
21388
21389 * cm.c (current_tty): New variable, for cmputc().
21390 (cmputc): Use it.
21391 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21392 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21393 (cmgoto): Add tty parameter. Pass it on to calccost().
21394 Use emacs_tputs() instead of tputs().
21395
21396 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21397 tputs().
21398 (current_tty): New variable, for cmputc().
21399 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21400
21401 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21402 (internal_condition_case, internal_condition_case_1)
21403 (internal_condition_case_2): Don't abort when x_catching_errors.
21404
21405 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21406 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21407 prevent crashes caused by bogus longjmps in read_char.
21408
21409 * keymap.h (Fset_keymap_parent): Add EXFUN.
21410
21411 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21412 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21413 Remove redundant definition.
21414
21415 * macfns.c (x_set_mouse_color, x_make_gc):
21416 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21417
21418 * w32term.c (x_free_frame_resources):
21419 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21420 (w32_initialize): Use the accessor macros for terminal characteristics.
21421
21422 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21423 Use the accessor macros for terminal characteristics.
21424 * msdos.c (internal_terminal_init): Use the accessor macros for
21425 terminal characteristics.
21426 (ScreenVisualBell, internal_terminal_init):
21427 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21428
21429 * termopts.h (no_redraw_on_reenter): Declare.
21430
21431 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21432 (mark_terminals, mark_ttys): Declare.
21433 (Fgarbage_collect): Call them.
21434 (mark_object): Mark buried_buffer_list.
21435
21436 * prefix-args.c: Include stdlib.h for exit.
21437
21438 * syssignal.h: Add comment.
21439
21440 * indent.c: Include stdio.h.
21441
21442 * window.h (Vinitial_window_system): Declare.
21443 (Vwindow_system): Delete declaration.
21444
21445 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21446
21447 * image.c (lookup_image): Don't initialize `c' until the xasserts
21448 have been run.
21449
21450 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21451 FRAME_FOREGROUND_PIXEL.
21452
21453 * print.c (print_preprocess): Don't lose print_depth levels while
21454 iterating.
21455
21456 * widget.c (update_from_various_frame_slots):
21457 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21458
21459 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21460 frames.
21461 (window_internal_height): Remove bogus make_number call.
21462 (init_window_once): Call make_terminal_frame with two zero parameters.
21463
21464 * fileio.c (Fread_file_name): Update comment.
21465
21466 * callint.c (Fcall_interactively):
21467 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21468 Make sure it is correctly unwound.
21469
21470 * xsmfns.c (x_session_close): New function.
21471
21472 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21473 Delete declarations.
21474
21475 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21476 (x_output): Remove background_pixel and foreground_pixel fields.
21477 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21478 (x_delete_device, x_session_close): Declare.
21479
21480 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21481 (read_filtered_event): Call `read_char' with a local
21482 `wrong_kboard_jmpbuf'.
21483
21484 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21485 Don't call single_kboard_state. Use FRAME_RIF.
21486
21487 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21488 systems.
21489
21490 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21491 (Fframe_with_environment, Fset_input_meta_mode)
21492 (Fset_quit_char): EXFUN.
21493 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21494 (init_sys_modes, reset_sys_modes): Update prototypes.
21495 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21496
21497 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21498 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21499 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21500 Delete declarations.
21501 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21502 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21503 New declarations.
21504
21505 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21506 already does that during init_display(). Call syms_of_keymap
21507 before syms_of_keyboard. Call `syms_of_terminal'.
21508 Call set_initial_environment, not set_process_environment.
21509 (shut_down_emacs): Call reset_all_sys_modes() instead of
21510 reset_sys_modes().
21511
21512 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21513 (internal_resolve_face_name, resolve_face_name_error): New functions.
21514 (resolve_face_name): Protect against loops and errors thrown by Fget.
21515 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21516 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21517
21518 * scroll.c: Replace CURTTY() with local variables throughout the
21519 file (where applicable).
21520 (calculate_scrolling, calculate_direct_scrolling)
21521 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21522 characteristics.
21523
21524 * keymap.c (Vfunction_key_map): Remove.
21525 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21526 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21527 (Vkey_translation_map): Remove.
21528 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21529 (Fdescribe_buffer_bindings)
21530 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21531 Update for terminal-local key-translation-map.
21532
21533 * Makefile.in (callproc.o): Update dependencies.
21534 (lisp, shortlisp): Add termdev.elc.
21535 (obj): Add terminal.o.
21536 (terminal.o): Add dependencies.
21537 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21538 (data.o, fns.o): Add termhooks.h dependency.
21539 (SOME_MACHINE_LISP): Add dnd.elc.
21540 (minibuf.o): Fix typo.
21541 Update dependencies.
21542
21543 * data.c (do_symval_forwarding, store_symval_forwarding)
21544 (find_symbol_value): Use the selected frame's keyboard, not
21545 current_kboard.
21546
21547 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21548 Vwindow_system.
21549
21550 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21551 Fmenu_bar_open.
21552 (syms_of_xmenu): Update defsubr.
21553 (mouse_position_for_popup, Fx_popup_menu)
21554 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21555 (set_frame_menubar, free_frame_menubar)
b97439ce 21556 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21557 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21558 an X frame.
21559
21560 * xselect.c (x_own_selection): Abort if not an X frame.
21561 (some_frame_on_display): Check if it is an X frame.
21562 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21563
21564 * coding.c: Include frame.h and termhooks.h.
21565 (terminal_coding, keyboard_coding): Delete.
21566 (Fset_terminal_coding_system_internal)
21567 (Fset_keyboard_coding_system_internal)
21568 (Fkeyboard_coding_system)
21569 (Fterminal_coding_system): Add a terminal parameter.
21570 Get terminal_coding from the terminal.
21571 (init_coding_once): Don't call setup_coding_system here.
21572
21573 * dispextern.h (set_scroll_region, turn_off_insert)
21574 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21575 (tty_clear_end_of_line, tty_setup_colors)
21576 (delete_tty, updating_frame)
21577 (produce_special_glyphs, produce_glyphs, write_glyphs)
21578 (insert_glyphs): Remove.
21579 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21580 (tty_turn_off_highlight, get_tty_size): Add declaration.
21581 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21582
21583 * frame.h (enum output_method): Add output_initial.
21584 (struct x_output): Delete.
21585 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21586 Access foreground_pixel and background_pixel directly from the frame.
21587 (tty_display): Delete.
21588 (struct frame): Add buried_buffer_list, foreground_pixel,
21589 background_pixel and terminal. Delete kboard.
21590 (union output_data): Add tty.
21591 (FRAME_KBOARD): Get the kboard from the terminal.
21592 (FRAME_INITIAL_P): New macro.
21593 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21594 (Qterm_environment_variable, Qdisplay_environment_variable)
21595 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21596 New declarations.
21597
21598 * termchar.h (tty_output, tty_display_info): New structures.
21599 (tty_list): Declare.
21600 (FRAME_TTY, CURTTY): New macros.
21601 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21602 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21603 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21604 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21605
21606 * callproc.c: Include frame.h and termhooks.h, for terminal
21607 parameters.
21608 (add_env): New function.
21609 (child_setup): Use it.
21610 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21611 (getenv_internal): Fix get_terminal_param call.
21612 (Fgetenv_internal, egetenv): Update doc.
21613 (syms_of_callproc): Initialize Vprocess_environment to nil.
21614 Register and initialize them. Remove obsolete defvars. Update doc
21615 strings.
21616 (child_setup): Handle Vlocal_environment_variables.
21617 (getenv_internal): Add terminal parameter.
21618 Handle Vlocal_environment_variables.
21619 (Fgetenv_internal): Add terminal parameter.
21620 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21621 environment in a frame (not terminal) parameter. Update doc strings.
21622 (set_initial_environment): Rename from set_global_environment.
21623 Store Emacs environment in initial frame parameter.
21624
21625 * xdisp.c (redisplay_internal): Update references to
21626 `previous_terminal_frame'.
21627 (display_mode_line, Fformat_mode_line): Replace calls to
21628 `push_frame_kboard' with `push_kboard'.
21629 (get_glyph_string_clip_rects): Add extra parentheses and
21630 braces to prevent compiler warnings.
21631 (calc_pixel_width_or_height): Add xassert to check that the
21632 frame is alive. Don't call `lookup_image' on a termcap frame.
21633 (message2_nolog, message3_nolog, redisplay_internal)
21634 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21635 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21636 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21637 (Fx_display_pixel_width, Fx_display_pixel_height)
21638 (Fx_display_planes, Fx_display_color_cells)
21639 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21640 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21641 (Fx_display_backing_store, Fx_display_visual_class)
21642 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21643 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21644
21645 * xfns.c (x_set_foreground_color x_set_background_color)
21646 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21647 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21648 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21649 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21650 terminal that is being deleted.
21651 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21652 frame parameter, and make sure it overrides any user-supplied setting.
21653 (Fx_close_connection, Fx_synchronize): Unify argument names with
21654 the rest of the DEFUNs.
21655
21656 * dispnew.c (Fsend_string_to_terminal): Update call to
21657 `get_tty_terminal'.
21658 (Fredraw_frame, Fsend_string_to_terminal)
21659 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21660 FRAME_TERMCAP_P and FRAME_TTY.
21661 (window_change_signal): Don't believe width/height values that are
21662 impossibly small.
21663 (Vinitial_window_system): Rename from Vwindow_system.
21664 (termscript, Wcm, rif): Delete.
21665
21666 * termhooks.h (struct terminal): New struct containing the
21667 previously global text display hooks and new members NAME,
21668 DELETED and PARAM_ALIST.
21669 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21670 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21671 (FRAME_RIF): New macros.
21672 (get_terminal_param, get_device): New declarations.
21673 (termscript): Delete declaration.
21674
21675 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21676 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21677 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21678 FRAME_FOREGROUND_PIXEL.
21679 (x_fully_uncatch_errors): Disable definition.
21680 (x_scroll_bar_expose): Fix reference to foreground pixel.
21681 (XTread_socket): Disable loop on all X displays.
21682 (x_delete_terminal): Don't set terminal->deleted and let
21683 delete_terminal delete the frames on the terminal.
21684 (x_delete_display): Doc update to reflect changes in
21685 delete_terminal.
21686 (x_display_info) <terminal>: Move member earlier in the struct.
21687 (deleting_tty): Remove old variable.
21688 (Fsuspend_tty): Call clear_tty_hooks.
21689 (Fresume_tty, init_tty): Call set_tty_hooks.
21690 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21691 errors on X frames.
21692 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21693 (handle_one_xevent): Initialize `f' to NULL.
21694 (x_delete_terminal, x_create_terminal): New functions.
21695 (XTset_terminal_modes, XTreset_terminal_modes)
21696 (XTread_socket, x_connection_closed, x_term_init)
21697 (x_term_init, x_delete_display): Add terminal parameter.
21698 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21699 X connections.
21700
21701 * frame.c: Include termchar.h.
21702 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21703 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21704 (Qdisplay_environment_variable): New vars.
21705 (Fframep): Deal with output_initial.
21706 (Fframe-live-p): Doc fix.
21707 (Fwindow-system): New function.
21708 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21709 (make_terminal_frame): Don't create frames on a terminal that is
21710 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21711 (store_frame_param): Check for found_for_frame before calling XFRAME.
21712 (Fmake_terminal_frame): Handle NULL tty names correctly.
21713 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21714 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21715 frames to refer to a deleted frame in their 'environment parameter.
21716 (Fframe_with_environment): New function.
21717 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21718 (get_future_frame_param): New function.
21719 (Fmake_terminal_frame): Use it.
21720 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21721
21722 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21723 * sysdep.c (reset_sys_modes): Update for renames.
21724
21725 * keyboard.c (tty_read_avail_input): New function.
21726 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21727 (syms_of_keyboard): Defsubr them.
21728 (Fset_input_meta_mode, Fset_quit_char): New functions.
21729 (Fset_input_mode): Split to above functions.
21730 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21731 parameter. Use it in call to `read_char'.
21732 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21733 Set wrong_kboard_jmpbuf correctly in recursive calls.
21734 Use current_kboard to access Vkeyboard_translate_table.
21735 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21736 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21737 Update longjmp invocations. Remember the original current_kboard,
21738 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21739 changes it. Comment out unnecessary calls to
21740 `record_single_kboard_state' and `any_kboard_state'.
21741 Update recursive calls.
21742 (wrong_kboard_jmpbuf): Remove global variable.
21743 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21744 Handle deleted interrupted_kboards correctly; that is a legal
21745 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21746 and read_char calls. Abort if interrupted_kboard died in read_char.
21747 (any_kboard_state, single_kboard_state)
21748 (push_frame_kboard): Remove function.
21749 (pop_kboard): Switch out of single_kboard mode if the kboard has
21750 been deleted. Remove unused variable. Help debugging by not
21751 changing current_kboard unnecessarily. Set current_kboard to the
21752 kboard of the selected frame when the stored kboard object has
21753 been deleted before pop_kboard.
21754 (temporarily_switch_to_single_kboard): Change first parameter to a
21755 frame pointer. Throw an error when caller wants to change kboards
21756 while in single_kboard mode. Don't push_kboard if we weren't in
21757 single kboard state. Don't pop_kboard if we popped into any
21758 kboard state.
21759 (restore_kboard_configuration): Abort if pop_kboard changed the
21760 kboard in single_kboard mode. Call pop_kboard only after setting
21761 up single_kboard mode.
21762 (Frecursive_edit): Switch to single_kboard mode only in nested
21763 command loops.
21764 (cmd_error, command_loop, command_loop_1, timer_check):
21765 Comment out unnecessary call to `any_kboard_state' and
21766 `record_single_kboard_state'.
21767 (delete_kboard): Exit single_kboard mode if we have just deleted
21768 that kboard. Use FRAME_KBOARD.
21769 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21770 `fatal_error_signal'.
21771 (record_single_kboard_state): Don't push_kboard if we weren't in
21772 single kboard state. Don't pop_kboard if we popped into any
21773 kboard state.
21774 (push_frame_kboard): Rename to push_kboard.
21775 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21776 (read_avail_input): Read input from all terminals.
21777 (mark_kboards): Also mark Vkeyboard_translate_table.
21778 (kbd_buffer_store_event_hold): Simplify condition.
21779 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21780 (Vkeyboard_translate_table): Move to struct kboard.
21781 (init_kboard): Initialize Vkeyboard_translate_table.
21782 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21783 Vkeyboard_translate_table. Update doc strings. Update docs of
21784 local-function-key-map and function-key-map.
21785
21786 * terminal.c: New file.
21787
21788 * term.c: Include errno.h.
21789 (Vring_bell_function, device_list, initial_device)
21790 (next_device_id, ring_bell, update_begin, update_end)
21791 (set_terminal_window, cursor_to, raw_cursor_to)
21792 (clear_to_end, clear_frame, clear_end_of_line)
21793 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21794 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21795 (syms_of_term): Move their initialization to terminal.c.
21796 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21797 (Ftty_display_color_cells)
21798 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21799 (clear_tty_hooks, set_tty_hooks)
21800 (init_tty, maybe_fatal): New functions.
21801 (Ftty_type): Return nil if terminal is not on a tty instead of
21802 throwing an error. Doc update.
21803 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21804 Doc update. Initialize new subrs and variables.
21805 (delete_tty): Use terminal->deleted.
21806 (tty_set_terminal_modes): Rename from set_terminal_modes.
21807 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21808 (set_scroll_region): Rename to `tty_set_scroll_region'.
21809 (turn_on_insert): Rename to `tty_turn_on_insert'.
21810 (turn_off_insert): Rename to `tty_turn_off_insert'.
21811 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21812 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21813 (toggle_highligh): Rename to `tty_toggle_highlight'.
21814 (background_highlight): Rename to `tty_background_highlight'.
21815 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21816 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21817 (tty_set_scroll_region, tty_background_highlight)
21818 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21819 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21820 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21821 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21822 Add static modifier.
21823 (tty_reset_terminal_modes, tty_set_terminal_window)
21824 (tty_set_scroll_region, tty_background_highlight)
21825 (tty_highlight_if_desired, tty_cursor_to)
21826 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21827 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21828 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21829 renames.
21830
218312007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21832
21833 * keyboard.c: Qrtl is new.
21834 (parse_tool_bar_item): Handle :rtl keyword.
21835 (syms_of_keyboard): Intern :rtl keyword.
21836
21837 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21838
21839 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21840 so no Lisp code is executed.
21841 (file_for_image, find_rtl_image): New functions.
21842 (xg_get_image_for_pixmap): Use file_for_image.
21843 (update_frame_tool_bar): If direction is RTL, use RTL image if
21844 defined. Use Gtk stock images if defined.
21845
218462007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21847
21848 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21849 for nonexistent or zero-width glyph in composition glyph.
21850
218512007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21852
21853 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21854
21855 * xdisp.c (Finvisible_p): New function.
21856 (syms_of_xdisp): defsubr it.
21857
218582007-08-24 Juanma Barranquero <lekktu@gmail.com>
21859
21860 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21861 Doc fixes.
21862
218632007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21864
21865 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21866
218672007-08-24 Martin Rudalics <rudalics@gmx.at>
21868
21869 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21870 whether decoding has modified buffer contents.
21871
218722007-08-24 Jason Rumney <jasonr@gnu.org>
21873
21874 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21875 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21876 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21877 (init_svg_functions) [HAVE_NTGUI]: New function.
21878 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21879 (svg_load_image): Use them.
21880 (svg_load_image) [HAVE_NTGUI]: Implement background.
21881
218822007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21883
21884 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21885 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21886 (LIBX): Remove @RSVG_LIBS@.
21887 (LIBES): Add $(RSVG_LIBS).
21888
21889 * image.c (svg_load_image): Blend with specified background if exists.
21890 Use IMAGE_BACKGROUND. Add Mac OS Support.
21891
21892 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21893 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21894 Remove macros.
21895 [MAC_OSX] (socket_callback): Do nothing.
21896 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21897 ReceiveNextEvent.
21898 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21899 socket_callback.
21900 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21901
219022007-08-22 Glenn Morris <rgm@gnu.org>
21903
21904 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21905
219062007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21907
21908 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21909
21910 * image.c: Add support for SVG images. Some additional comments
21911 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21912 (svg_image_p): New function to test for SVG image.
21913 (svg_load): New function to load SVG image.
21914 (svg_load_image): New function, helper for svg_load.
21915 (Qsvg): New Lisp_object.
21916 (svg_keyword_index): New enum.
21917 (svg_format): New static `image_keyword' struct.
21918 (svg_type): New static `image_type' struct.
21919 (librsvg/rsvg.h): Include it.
21920
219212007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21922
21923 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21924
219252007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21926
21927 * lread.c (Qold_style_backquotes): New var.
21928 (syms_of_lread): Init and staticpro it.
21929 (load_warn_old_style_backquotes): New fun.
21930 (Fload): Use them to warn about old style backquotes.
21931 (end_of_file_error, Fload): Remove unused vars.
21932
21933 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21934
21935 * lread.c (Vold_style_backquotes): New var.
21936 (syms_of_lread): Init and export it to Elisp.
21937 (read1): Set it when we find an old-style (back)quote.
21938
219392007-08-22 Jason Rumney <jasonr@gnu.org>
21940
21941 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21942
219432007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21944
21945 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21946
219472007-08-19 Richard Stallman <rms@gnu.org>
21948
21949 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21950
219512007-08-19 Andreas Schwab <schwab@suse.de>
21952
21953 * alloc.c (pure): Round PURESIZE up.
21954
219552007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21956
21957 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21958 active frame.
21959
219602007-08-16 Richard Stallman <rms@gnu.org>
21961
21962 * eval.c (Fcommandp): Add parens to clarify.
21963
21964 * minibuf.c (Fall_completions): Use enum for type of table.
21965
21966 * emacs.c (USAGE2): Improve text.
21967
219682007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21969
21970 * term.c (tty_default_color_capabilities): Declare static
21971 variables in file scope, to avoid HPUX compiler problem.
21972
219732007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21974
21975 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21976 to gtk_toolbar_insert.
21977
219782007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21979
21980 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21981
21982 * insdel.c (reset_var_on_error): New fun.
21983 (signal_before_change, signal_after_change):
21984 Use it to reset (after|before)-change-functions to nil in case of error.
21985 Bind inhibit-modification-hooks to t.
21986 Don't bind (after|before)-change-functions to nil while they run.
21987
219882007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21989
21990 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21991 filling pixmap with stippled background.
21992
219932007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21994
21995 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21996 Don't use invisible frame as parent window for repositioning.
21997
219982007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21999
22000 * print.c (new_backquote_output): Rename from old_backquote_output.
22001 (print): Inverse its logic (according to its name) so as to match the
22002 behavior of new_backquote_flag in lread.c.
22003
220042007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22005
22006 * gmalloc.c (posix_memalign): New function.
22007
22008 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22009 ActivateControl/DeactivateControl here.
22010 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22011 frame-notice-user-settings is non-nil.
22012 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22013 for kEventParamFMFontStyle.
22014 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22015 mac_pass_command_to_system and mac_pass_control_to_system here.
22016 (XTread_socket): Call ActivateControl/DeactivateControl here.
22017 (XTread_socket) [TARGET_API_MAC_CARBON]:
22018 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22019 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22020 for window repositioning.
22021
220222007-08-08 Glenn Morris <rgm@gnu.org>
22023
22024 * Replace `iff' in doc-strings and comments.
22025
220262007-08-07 Chong Yidong <cyd@stupidchicken.com>
22027
22028 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22029
220302007-08-07 Martin Rudalics <rudalics@gmx.at>
22031
22032 * fileio.c (Finsert_file_contents): Run format-decode and
22033 after_insert_file_functions on entire buffer when REPLACE is
22034 non-nil and inhibit modification_hooks and point_motion_hooks.
22035 For consistency, run after_insert_file_functions iff something
22036 got inserted. Move signal_after_change and update_compositions
22037 after code running after_insert_file_functions. Make sure that
22038 undo_list doesn't record intermediate steps of the decoding process.
22039
220402007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22041
22042 * emacs.c (main)
22043 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22044 Call malloc_enable_thread on interactive startup.
22045
22046 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22047 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22048 [USE_PTHREAD]: Conditionalize with it.
22049 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22050 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22051 New functions.
22052
220532007-08-06 Chong Yidong <cyd@stupidchicken.com>
22054
22055 * xdisp.c (redisplay_window): When restoring original buffer
22056 position, make sure it is still valid.
22057
22058 * image.c (png_load): Ignore png-supplied background color.
22059
220602007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22061
22062 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22063 Use kCFAbsoluteTimeIntervalSince1970.
22064
22065 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22066 New variable.
22067 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22068 event loop should be quit.
22069 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22070 Quit dialog event loop if quit_dialog_event_loop is set.
22071
22072 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22073 (Selection): New typedef. Use instead of ScrapRef.
22074 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22075 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22076 (mac_clear_selection): Rename from clear_scrap.
22077 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22078 scrap_has_target_type. All uses changed.
22079 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22080 (mac_selection_has_target_p): New functions.
22081 (mac_put_selection_value): Rename from put_scrap_string.
22082 (mac_get_selection_value): Rename from get_scrap_string.
22083 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22084 (put_scrap_private_timestamp, scrap_has_target_type)
22085 (get_scrap_private_timestamp): Remove functions.
22086 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22087 (x_own_selection, x_get_local_selection):
22088 Use mac_valid_selection_value_p.
22089 (x_own_selection): Don't use put_scrap_private_timestamp.
22090 Record OWNERSHIP-INFO into Vselection_alist instead.
22091 (x_get_local_selection): Don't check type if request is local.
22092 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22093 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22094
220952007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22096
22097 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22098 add comment explaining why.
22099
221002007-08-03 Richard Stallman <rms@gnu.org>
22101
22102 * fileio.c (Fvisited_file_modtime): Use make_time.
22103
221042007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22105
22106 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22107 build.
22108
221092007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22110
22111 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22112
221132007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22114
22115 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22116
221172007-07-30 Richard Stallman <rms@gnu.org>
22118
22119 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22120
221212007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22122
22123 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22124
221252007-07-28 Nick Roberts <nickrob@snap.net.nz>
22126
22127 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22128 remote default-directory.
22129
22130 * buffer.c (mode-line-format): Update doc string.
22131
221322007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22133
22134 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22135 scroll bar gap.
22136 (x_scroll_bar_create): Set bar->fringe_extended_p.
22137 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22138 on frame edge. Check fringe background extension. Don't clear
22139 extended fringe background area.
22140
22141 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22142 (w32_fill_area): Enclose multiple statements with do ... while (0).
22143
22144 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22145 Extend fringe background to scroll bar gap.
22146 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22147 Set bar->fringe_extended_p.
22148 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22149 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22150 background extension. Don't clear extended fringe background area.
22151
22152 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22153 New member fringe_extended_p.
22154
221552007-07-25 Glenn Morris <rgm@gnu.org>
22156
22157 * Relicense all FSF files to GPLv3 or later.
22158
22159 * COPYING: Switch to GPLv3.
22160
221612007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22162
22163 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22164
22165 * data.c (Finteractive_form): Check for the presence of an
22166 `interactive-form' symbol property more thoroughly.
22167
22168 * data.c (Finteractive_form): Use an `interactive-form' property if
22169 present, analogous to the function-documentation property.
22170
221712007-07-24 Jason Rumney <jasonr@gnu.org>
22172
22173 * w32fns.c (x_real_positions): Get real position from OS instead of
22174 calculating it.
22175
221762007-07-23 Jason Rumney <jasonr@gnu.org>
22177
22178 * filelock.c (current_lock_owner): Allow for @ sign in username.
22179
221802007-07-22 Nick Roberts <nickrob@snap.net.nz>
22181
22182 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22183 remote default-directory.
22184
22185 * buffer.c (mode-line-format): Describe above case in doc string.
22186
221872007-07-20 Eli Zaretskii <eliz@gnu.org>
22188
22189 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22190 Define if not defined.
22191
221922007-07-18 Jason Rumney <jasonr@gnu.org>
22193
22194 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22195
221962007-07-18 Richard Stallman <rms@gnu.org>
22197
22198 * data.c (Fsetq_default): Doc fix.
22199
22200 * eval.c (Fsetq): Doc fix.
22201
222022007-07-18 Juanma Barranquero <lekktu@gmail.com>
22203
22204 * coding.c (Ffind_operation_coding_system):
22205 * eval.c (For, Fand): Doc fixes.
22206 Reported by Johan Bockgård.
22207
222082007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22209
22210 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22211
22212 * xterm.h: Declare x_ewmh_activate_frame.
22213
22214 * xterm.c (x_ewmh_activate_frame): New function.
22215 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22216
222172007-07-17 Martin Rudalics <rudalics@gmx.at>
22218
22219 * window.c (Fdisplay_buffer): If largest or LRU window is the
22220 only window, split it even if it is not eligible for splitting.
22221 This restores the original behavior broken by the 2007-07-15
22222 change.
22223
222242007-07-17 Glenn Morris <rgm@gnu.org>
22225
22226 * abbrev.c (abbrev_check_chars): New function.
22227 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22228 Call abbrev_check_chars to check abbrev characters are word
22229 constituents. Doc fix.
22230
222312007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22232
22233 * process.c (Fstart_process, Fmake_network_process)
22234 (read_process_output): Fix up last changes.
22235
222362007-07-16 Eli Zaretskii <eliz@gnu.org>
22237
22238 * makefile.w32-in (clean): Don't delete *~.
22239
222402007-07-16 Andreas Schwab <schwab@suse.de>
22241
22242 * window.c (Fdisplay_buffer): Use NILP.
22243 (Fset_window_scroll_bars): Likewise.
22244
222452007-07-15 Martin Rudalics <rudalics@gmx.at>
22246
22247 * window.c (window_min_size_2): New function.
22248 (window_min_size_1, size_window, Fdisplay_buffer)
22249 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22250 windows without mode- or header-lines when window-min-height is
22251 too small.
22252 (size_window): Reset nodelete_p after testing it, following an
22253 earlier note by Kim F. Storm.
22254 (display_buffer): Do not set split_height_threshold to twice the
22255 value of window_min_height to avoid changing the value of a
22256 customizable variable. Rather explicitly check whether the
22257 height of the window that shall be splitted is at least as large
22258 as split_height_threshold.
22259 (Fwindow_full_width_p): New defun.
22260 (syms_of_window): Defsubr it.
22261
22262 * window.h: Add EXFUN for Fwindow_full_width_p.
22263
222642007-07-14 Jason Rumney <jasonr@gnu.org>
22265
22266 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22267
222682007-07-14 Richard Stallman <rms@gnu.org>
22269
22270 * eval.c (maybe_call_debugger): New function.
22271 (find_handler_clause): Use maybe_call_debugger.
22272 Call it when the handler says `debug'.
22273 Eliminate DEBUGGER_VALUE_PTR.
22274 (Fsignal): Eliminate debugger_value.
22275 (Qdebug): New variable.
22276 (syms_of_eval): Initialize it.
22277
222782007-07-14 Juanma Barranquero <lekktu@gmail.com>
22279
22280 * eval.c (Fprogn):
22281 * keyboard.c (Ftrack_mouse):
22282 * print.c (Fwith_output_to_temp_buffer):
22283 * window.c (Fsave_window_excursion): Doc fix.
22284
222852007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22286
22287 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22288
222892007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22290
22291 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22292 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22293 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22294 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22295 Remove unused encoding_carryover.
22296 * process.c: Adjust all functions accordingly.
22297
222982007-07-12 Richard Stallman <rms@gnu.org>
22299
22300 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22301
223022007-07-11 Jason Rumney <jasonr@gnu.org>
22303
22304 * makefile.w32-in (LIBS): Include OLE32.
22305
22306 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22307 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22308
223092007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22310
22311 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22312 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22313 from a Lisp_Object into a bare pointer.
22314 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22315 Adjust the code correspondingly.
22316
22317 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22318
22319 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22320 (term_show_mouse_face): Remove unused var `j'.
22321 (handle_one_term_event): Remove unused vars `i' and `j'.
22322 Don't cast return value of ttyname since it's not necessary.
22323
223242007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22325
22326 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22327 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22328
22329 * fns.c (map_char_table): Use an array of int for `indices' rather than
22330 an array of Lisp_Objects (which are only ever integers anyway).
22331 (Fmap_char_table): Update caller.
22332 * lisp.h: Update prototype.
22333 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22334 * fontset.c (Ffontset_info):
22335 * casetab.c (set_case_table): Update callers.
22336
22337 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22338
22339 * keymap.c (struct accessible_keymaps_data)
22340 (struct where_is_internal_data): New structures.
22341 (accessible_keymaps_1, where_is_internal_1): Use them to change
22342 interface to adhere to the one used by map_keymap.
22343 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22344 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22345
22346 * keymap.h (map_keymap_function_t): More informative prototype.
22347
223482007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22349
22350 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22351 (looking_at_1): Don't change search_regs and last_thing_searched
22352 if `inhibit-changing-match-data' is non-nil.
22353 (string_match_1, search_buffer, set_search_regs): Likewise.
22354 (syms_of_search): Add Lisp level definition for
22355 `inhibit-changing-match-data' and set it to nil.
22356 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22357 start and end of the match, instead of using values in search_regs.
22358
223592007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22360
22361 * minibuf.c (Fcompleting_read): New value `confirm-only'
22362 for `require-match'.
22363
223642007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22365
22366 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22367 part of the 2007-06-27 change to syms_of_fileio.
22368
223692007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22370
22371 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22372 Check WINDOWP before using XWINDOW. Consolidate return statements.
22373
223742007-06-27 Richard Stallman <rms@gnu.org>
22375
22376 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22377
223782007-06-27 Juanma Barranquero <lekktu@gmail.com>
22379
22380 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22381
223822007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22383
22384 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22385 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22386 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22387 (_free_internal, memalign): Use them.
22388 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22389 Initialize to PTHREAD_MUTEX_INITIALIZER.
22390 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22391 (morecore_nolock): Rename from morecore. All uses changed.
22392 Use only nolock versions of internal allocation functions.
22393 (_malloc_internal_nolock, _realloc_internal_nolock)
22394 (_free_internal_nolock): New functions created from
22395 _malloc_internal, _realloc_internal, and _free_internal.
22396 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22397 Copy hook value to automatic variable before its use.
22398 (memalign): Copy hook value to automatic variable before its use.
22399
224002007-06-26 Kenichi Handa <handa@m17n.org>
22401
22402 * coding.c (Ffind_operation_coding_system): Docstring improved.
22403 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22404
224052007-06-25 David Kastrup <dak@gnu.org>
22406
22407 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22408 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22409 cater for additional parameter.
22410
22411 * keymap.h: Adjust number of parameters to `current-active-maps'.
22412
22413 * doc.c (Fsubstitute_command_keys): Adjust call of
22414 `current-active-maps'.
22415
224162007-06-25 David Kastrup <dak@gnu.org>
22417
22418 * callint.c (Fcall_interactively): Make the parsing of interactive
22419 specs somewhat more readable.
22420
224212007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22422
22423 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22424 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22425 if extended background has already been filled.
22426
224272007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22428
22429 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22430 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22431
22432 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22433 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22434 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22435 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22436 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22437 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22438 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22439 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22440 Run timers during dialog popup.
22441 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22442
224432007-06-21 Jason Rumney <jasonr@gnu.org>
22444
22445 * image.c (convert_mono_to_color_image): Swap fore and background.
22446
224472007-06-20 Jason Rumney <jasonr@gnu.org>
22448
22449 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22450 (w32_free_bdf_font): Unmap memory not handle.
22451
224522007-06-20 Sam Steingold <sds@gnu.org>
22453
22454 * gmalloc.c (__morecore): Fix the declaration to comply with the
22455 definition.
22456
224572007-06-20 Juanma Barranquero <lekktu@gmail.com>
22458
22459 * w32term.c (w32_delete_display): Remove leftover declaration.
22460 (w32_define_cursor, w32_initialize): Make static.
22461
22462 * w32.c (_wsa_errlist): Fix typo in error message.
22463 (init_environment): Ignore any environment variable from the
22464 registry having a null value.
22465
224662007-06-20 Glenn Morris <rgm@gnu.org>
22467
22468 * Makefile.in (LIBGIF): Default to -lgif.
22469
224702007-06-17 Jason Rumney <jasonr@gnu.org>
22471
22472 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22473 unicode strings.
22474
224752007-06-16 Juanma Barranquero <lekktu@gmail.com>
22476
22477 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22478 Fix typo in docstring.
22479
224802007-06-16 Eli Zaretskii <eliz@gnu.org>
22481
22482 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22483 and their keybindings.
22484
224852007-06-15 Chong Yidong <cyd@stupidchicken.com>
22486
22487 * composite.c (update_compositions): Fix last fix.
22488
224892007-06-14 Jason Rumney <jasonr@gnu.org>
22490
22491 * w32.c (get_process_times_fn): New function pointer.
22492 (globals_of_w32): Intialize it if present in kernel32.dll.
22493 (w32_get_internal_run_time): New function.
22494
22495 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22496
224972007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22498
22499 * composite.c (update_compositions): Check the validness of
22500 compositions.
22501
225022007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22503
22504 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22505 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22506
22507 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22508 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22509
22510 * macgui.h (USE_MAC_TOOLBAR): New define.
22511
22512 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22513 Return immediately unless popup is activated.
22514
22515 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22516 background to scroll bar gap.
22517 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22518 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22519 scroll bars on frame edge. Check fringe background extension.
22520 Don't clear extended fringe background area.
22521 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22522 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22523 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22524 [USE_MAC_TOOLBAR]: New macros.
22525 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22526 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22527 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22528 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22529 [USE_MAC_TOOLBAR]: New functions.
22530 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22531 manually if previous repositioning has failed.
22532 (mac_handle_keyboard_event): Use precomputed event kind.
22533 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22534 as tool bar item click. Handle mouse movement over tool bar items.
22535
22536 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22537 toolbar_win_gravity.
22538 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22539 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22540 Add externs.
22541
22542 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22543 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22544
225452007-06-14 Chong Yidong <cyd@stupidchicken.com>
22546
22547 * image.c (search_image_cache): Remove unused variable.
22548
225492007-06-13 Chong Yidong <cyd@stupidchicken.com>
22550
22551 * xfns.c, xmenu.c: Link to xaw3d if available.
22552
225532007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22554
22555 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22556 frame_foreground and frame_background.
22557
22558 * image.c (lookup_image): Save frame foreground and background colors.
22559 (search_image_cache): Check if saved and current frame colors match.
22560
225612007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22562
22563 * regex.c (regex_compile): Remove the `regnum' counter.
22564 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22565
225662007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22567
22568 * term.c: Include intervals.h to declare Fget_text_property.
22569
225702007-06-10 Jason Rumney <jasonr@gnu.org>
22571
22572 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22573
225742007-06-08 Juanma Barranquero <lekktu@gmail.com>
22575
22576 * callint.c (Fcall_interactively):
22577 * editfns.c (Fdelete_and_extract_region):
22578 * fileio.c (Fread_file_name):
22579 * fns.c (Fmapconcat):
22580 * keyboard.c (cmd_error_internal):
22581 * keymap.c (Fkey_description):
22582 * lread.c (openp):
22583 * minibuf.c (read_minibuf):
22584 * search.c (wordify):
22585 * sunfns.c (sel_read):
22586 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22587 * xfns.c (x_default_scroll_bar_color_parameter):
22588 * xmenu.c (menu_help_callback):
22589 * xselect.c (Fx_get_atom_name):
22590 * xterm.c (x_term_init): Use empty_unibyte_string.
22591
225922007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22593
22594 * alloc.c (init_strings): Initialize canonical empty strings.
22595 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22596 canonical empty string when the requested size is 0.
22597
22598 * emacs.c (empty_unibyte_string): Rename from empty_string.
22599 (empty_multibyte_string): New canonical empty string.
22600 (syms_of_emacs): Don't initialize empty_string.
22601
22602 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22603 string, if appropriate.
22604 (empty_unibyte_string, empty_multibyte_string): New externs.
22605 (empty_string): Remove extern.
22606
22607 * lread.c (syms_of_lread): Use empty_unibyte_string.
22608
226092007-06-07 Jason Rumney <jasonr@gnu.org>
22610
22611 * s/ms-w32.h: Don't define HAVE_TZNAME.
22612
22613 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22614
226152007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22616
22617 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22618
22619 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22620 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22621
22622 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22623 Don't call next handler.
22624 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22625 Remove argument. Install handler to application.
22626 (set_frame_menubar): Don't change deep_p.
22627 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22628 FRAME_OUTER_TO_INNER_DIFF_Y.
22629 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22630 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22631 [HAVE_DIALOGS]: New macros.
22632 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22633 Use them.
22634 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22635
22636 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22637 init_service_handler. All callers changed. Return OSStatus value.
22638
22639 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22640 All callers changed so as not to call SetPortWindowPort.
22641 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22642 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22643 mac_draw_string_common.
22644 (mac_draw_image_string_qd): Likewise.
22645 (mac_draw_string_common): Use them. Add INLINE.
22646 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22647 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22648 GetGlobalMouse.
22649 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22650 and FRAME_OUTER_TO_INNER_DIFF_Y.
22651 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22652 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22653 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22654 repositioning window to mac_handle_window_event.
22655 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22656 saving window location to mac_handle_window_event
22657 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22658 (install_menu_target_item_handler): Remove argument in extern.
22659 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22660 Also accept command events.
22661 (do_keystroke): New function created from XTread_socket.
22662 (init_command_handler): Remove functions.
22663 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22664 and save window location by kEventWindowShowing and kEventWindowHiding
22665 handlers here. Don't call next handler for window state change and
22666 focus events.
22667 (mac_handle_application_event, mac_handle_keyboard_event)
22668 [TARGET_API_MAC_CARBON]: New functions.
22669 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22670 kEventWindowShowing and kEventWindowHiding events. Move installation
22671 of mouse, font, text input and menu target item handlers to
22672 install_application_handler.
22673 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22674 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22675 New function.
22676 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22677 Register it.
22678 (XTread_socket) [TARGET_API_MAC_CARBON]:
22679 Consolidate SendEventToEventTarget calls.
22680 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22681 Move application activation handler to mac_handle_application_event.
22682 Move keyboard handler to mac_handle_keyboard_event.
22683 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22684 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22685 init_command_handler. Call install_application_handler.
22686
22687 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22688 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22689
226902007-06-07 Glenn Morris <rgm@gnu.org>
22691
22692 * emacs.c (main): Use `emacs-copyright' in --version output.
22693
226942007-06-06 Chong Yidong <cyd@stupidchicken.com>
22695
22696 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22697
226982007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22699
22700 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22701
22702 * macgui.h: Replace WindowPtr with WindowRef.
22703
22704 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22705 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22706 Replace ControlHandle with ControlRef.
22707 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22708
22709 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22710 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22711 Replace ControlHandle with ControlRef.
22712 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22713 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22714
22715 * macterm.h (struct scroll_bar): Rename member control_handle_low
22716 and control_handle_high to control_ref_low and control_ref_high.
22717 All uses changed.
22718 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22719 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22720 respectively. All uses changed.
22721 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22722 (install_window_handler, remove_window_handler): Replace WindowPtr
22723 with WindowRef in externs.
22724
227252007-06-05 Juanma Barranquero <lekktu@gmail.com>
22726
22727 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22728
227292007-06-03 Nick Roberts <nickrob@snap.net.nz>
22730
22731 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22732
22733 * frame.c (Fmouse_position, Fmouse_pixel_position):
22734 Condition on HAVE_GPM too.
22735
22736 * term.c (term_mouse_highlight): Remove unused variables.
22737 (Fterm_open_connection): Set gpm_zerobased to 1.
22738 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22739 Use zero based co-ordinates.
22740 (handle_one_term_event): Report a drag as mouse movement too.
22741
22742 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22743
227442007-06-03 Chong Yidong <cyd@stupidchicken.com>
22745
22746 * image.c (search_image_cache): New function. Require background
22747 color match if background color is unspecified in the image spec.
22748 (uncache_image, lookup_image): Use it.
22749
227502007-06-01 Juanma Barranquero <lekktu@gmail.com>
22751
22752 * window.c (Fshrink_window): Reflow docstring.
22753
227542007-06-02 Chong Yidong <cyd@stupidchicken.com>
22755
22756 * Version 22.1 released.
22757
227582007-06-01 Richard Stallman <rms@gnu.org>
22759
22760 * xfns.c (x_encode_text): Add GCPRO.
22761
227622007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22763
22764 * xfns.c (x_set_name_internal): Save encoded name before
22765 x_encode_text in case string data is relocated.
22766
227672007-05-31 Richard Stallman <rms@gnu.org>
22768
22769 * buffer.c (syms_of_buffer): Doc fix.
22770
227712007-05-30 Nick Roberts <nickrob@snap.net.nz>
22772
22773 * sysdep.c (init_sys_modes): Add rather than replace with
22774 O_NONBLOCK.
22775
22776 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22777 term_mouse_moveto.
22778
22779 * termhooks.h (term_mouse_moveto): New extern.
22780
22781 * term.c (mouse_face_window): Rename...
22782 (Qmouse_face_window): ...to this.
22783 (term_show_mouse_face, term_clear_mouse_face)
22784 (term_mouse_highlight): Use Qmouse_face_window.
22785 (term_mouse_moveto): New function.
22786 (term_mouse_position): Make it work.
22787 (syms_of_term): Uncomment assignment to mouse_position_hook.
22788 Staticpro Qmouse_face_window.
22789
227902007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22791
22792 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22793 around current_column call.
22794
227952007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22796
22797 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22798 * xdisp.c (next_element_from_buffer):
22799 * window.c (delete_window):
22800 * term.c (term_mouse_highlight):
22801 * msdos.c (getdefdir):
22802 * macterm.c (mac_create_bitmap_from_bitmap_data)
22803 (init_font_name_table):
22804 * fns.c (Fsxhash):
22805 * data.c (Fmake_local_variable):
22806 * ccl.c (ccl_driver): Likewise.
22807
228082007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22809
22810 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22811 Call mac_wakeup_from_rne on window size change.
22812
228132007-05-25 Chong Yidong <cyd@stupidchicken.com>
22814
22815 * image.c (uncache_image): Fix typo.
22816
228172007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22818
22819 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22820
228212007-05-22 Richard Stallman <rms@gnu.org>
22822
22823 * xterm.c (x_connection_closed): Remove NO_RETURN.
22824
228252007-05-22 Martin Rudalics <rudalics@gmx.at>
22826
22827 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22828
228292007-05-21 Chong Yidong <cyd@stupidchicken.com>
22830
22831 * image.c (uncache_image): New function.
22832 (Fimage_refresh): New function.
22833
228342007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22835
22836 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22837
228382007-05-20 Nick Roberts <nickrob@snap.net.nz>
22839
22840 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22841 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22842
228432007-05-20 Nick Roberts <nickrob@snap.net.nz>
22844
22845 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22846 conditional on [HAVE_GPM_H].
22847
228482007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22849
22850 * syntax.c (skip_chars): Update syntax-table only after we checked that
22851 the new location is valid.
22852
228532007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22854
22855 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22856 mac_get_window_bounds.
22857
228582007-05-20 Nick Roberts <nickrob@snap.net.nz>
22859
22860 * Makefile.in (LIBGPM): Allow it to be set from configure.
22861 If set then link Emacs with it.
22862
22863 * config.in: Regenerate.
22864
22865 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22866 New externs.
22867
22868 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22869 Include gpm.h.
22870 (handle_one_term_event, term_gpm): New externs.
22871
22872 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22873 and allow it to be interrupted by SIGIO.
22874
22875 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22876 (wait_reading_process_output): Wait on gpm_fd too.
22877 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22878 (add_gpm_wait_descriptor_called_flag): New variable.
22879 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22880
22881 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22882 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22883 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22884 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22885 (make_lispy_event): Add case GPM_CLICK_EVENT.
22886 (read_avail_input): Handle mouse input.
22887
22888 * term.c (write_glyphs_with_face): New function.
22889 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22890 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22891 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22892 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22893 (last_mouse_x, last_mouse_y): New variables.
22894 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22895 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22896 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22897 (Fterm_close_connection): New functions.
22898 (term_init): Initialise mouse_face_window.
22899
229002007-05-19 Chong Yidong <cyd@stupidchicken.com>
22901
22902 * xdisp.c (redisplay_window): If first window line is a
22903 continuation line, recompute the new window start instead of
22904 recentering.
22905
229062007-05-18 Glenn Morris <rgm@gnu.org>
22907
22908 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22909 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22910
229112007-05-17 Glenn Morris <rgm@gnu.org>
22912
22913 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22914
229152007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22916
22917 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22918 dead key repeat and up events.
22919
229202007-05-14 Chong Yidong <cyd@stupidchicken.com>
22921
22922 * image.c (pbm_load): Check image size for monochrome pbm.
22923
229242007-05-13 Chong Yidong <cyd@stupidchicken.com>
22925
22926 * xterm.c (XTread_socket): Revert last change.
22927
229282007-05-12 Chong Yidong <cyd@stupidchicken.com>
22929
22930 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22931
22932 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22933
229342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22935
22936 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22937 mixup (YAILOM).
22938
229392007-05-07 Andreas Schwab <schwab@suse.de>
22940
22941 * keymap.c (Flookup_key): Fix typo in last change.
22942
229432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22944
22945 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22946 mapping for unibyte strings.
22947
229482007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22949
22950 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22951 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22952
229532007-04-29 Richard Stallman <rms@gnu.org>
22954
22955 * insdel.c (replace_range): For undo, record insertion first.
22956
229572007-04-29 Andreas Schwab <schwab@suse.de>
22958
22959 * lisp.h (VECSIZE): Use OFFSETOF.
22960
229612007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22962
22963 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22964 disabled lines.
22965
229662007-04-28 Richard Stallman <rms@gnu.org>
22967
22968 * lread.c (read_escape): In a string, \s is always space.
22969
229702007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22971
22972 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22973
22974 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22975 submenu for menu bar items.
22976
22977See ChangeLog.10 for earlier changes.
22978
22979;; Local Variables:
22980;; coding: utf-8
22981;; add-log-time-zone-rule: t
aac0c6e3
MR
22982;; End:
22983
e3eb1dae 22984 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22985
22986 This file is part of GNU Emacs.
22987
22988 GNU Emacs is free software: you can redistribute it and/or modify
22989 it under the terms of the GNU General Public License as published by
22990 the Free Software Foundation, either version 3 of the License, or
22991 (at your option) any later version.
22992
22993 GNU Emacs is distributed in the hope that it will be useful,
22994 but WITHOUT ANY WARRANTY; without even the implied warranty of
22995 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22996 GNU General Public License for more details.
22997
22998 You should have received a copy of the GNU General Public License
22999 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23000
23001;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40