Set FONT_DRIVERS with configure rather than cpp.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f1e3642a
GM
12010-04-28 Glenn Morris <rgm@gnu.org>
2
bc0b5f61
GM
3 * Makefile.in (FONT_OBJ): New, set by configure.
4 (FONT_DRIVERS): Use $FONT_OBJ.
5
294c50a0
GM
6 * Makefile.in (LIBXMU): Set with configure, not cpp.
7 * s/aix4-2.h (LIBXMU):
8 * s/hpux10-20.h (LIBXMU):
9 Remove definition, now set in configure.
10
e6ec4e99
GM
11 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
12
f1e3642a
GM
13 * m/amdx86-64.h [i386]: Move this test to configure.in.
14
c6ea2936
GM
152010-04-27 Glenn Morris <rgm@gnu.org>
16
8fdac2c3
GM
17 * Makefile.in (LIBXTR6): Set with configure, not cpp.
18 * s/unixware.h (NEED_LIBW): Remove definition.
19
986fb647
GM
20 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
21 (TOOLKIT_LIBW): New, set by configure.
22 (@X_TOOLKIT_TYPE@): No longer define it.
23
c6ea2936
GM
24 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
25 (MOTIF_LIBW): Set with configure, not cpp.
26 * s/aix4-2.h (LIB_MOTIF):
27 * s/gnu-linux.h (LIB_MOTIF):
28 * s/unixware.h (LIB_MOTIF): Move to configure.in.
29
aaa36002
DN
302010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
31
32 Reduce CPP usage.
33 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
34 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
35 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
36 definitions and undefs. Inline definitions in the only user.
37 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 38
b678dd8b
GM
392010-04-27 Glenn Morris <rgm@gnu.org>
40
76cda504
GM
41 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
42 since the defaults (set by the system file) are fine in most cases.
43 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
44 * m/ibms390x.h (START_FILES, LIB_STANDARD):
45 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
46 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
47 Remove definitions, since they are set correctly in s/gnu-linux.h.
48 * s/freebsd.h (START_FILES, LIB_STANDARD):
49 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
50 * s/hpux10-20.h (START_FILES):
51 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
52 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
53
b678dd8b
GM
54 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
55 (MOTIF_LIBW): Use $LIBXP.
56 (otherobj): Use $WIDGET_OBJ.
57
9452ded1
DN
582010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
59
7e10844c
DN
60 * Makefile.in (LIBS_MACHINE): Remove, unused.
61
9452ded1
DN
62 Use autoconf instead of cpp for LIB_MATH.
63 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
64 * s/cygwin.h (LIB_MATH): Likewise.
65 * Makefile.in (LIB_MATH): Do not define with cpp.
66 (LIBES): Use autoconf for LIB_MATH.
67
fcebfc6a
KH
682010-04-26 Kenichi Handa <handa@m17n.org>
69
70 * composite.c (Ffind_composition_internal): Fix the return value
71 for an automatic composition.
72
39e2ad1b
DN
732010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
74
75 Remove all NO_ARG_ARRAY uses.
76 * fns.c (concat2, concat3, nconc2):
77 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
78 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
79 * m/xtensa.h (NO_ARG_ARRAY):
80 * m/template.h (NO_ARG_ARRAY):
81 * m/sparc.h (NO_ARG_ARRAY):
82 * m/sh3.h (NO_ARG_ARRAY):
83 * m/mips.h (NO_ARG_ARRAY):
84 * m/macppc.h (NO_ARG_ARRAY):
85 * m/iris4d.h (NO_ARG_ARRAY):
86 * m/intel386.h (NO_ARG_ARRAY):
87 * m/ibms390x.h (NO_ARG_ARRAY):
88 * m/ibms390.h (NO_ARG_ARRAY):
89 * m/ibmrs6000.h (NO_ARG_ARRAY):
90 * m/ia64.h (NO_ARG_ARRAY):
91 * m/hp800.h (NO_ARG_ARRAY):
92 * m/arm.h (NO_ARG_ARRAY):
93 * m/amdx86-64.h (NO_ARG_ARRAY):
94 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
95
adf4f59c
EZ
962010-04-25 Eli Zaretskii <eliz@gnu.org>
97
6bdf5d65
EZ
98 * xdisp.c (display_line): Don't assume 2nd call to
99 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
100 (iterate_out_of_display_property): New function, body from pop_it.
101 (pop_it): Use it.
adf4f59c 102
dfbbda83
GM
1032010-04-24 Glenn Morris <rgm@gnu.org>
104
105 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
106 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
107 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
108 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
109
2d4018aa
EZ
1102010-04-24 Eli Zaretskii <eliz@gnu.org>
111
a49884a6
EZ
112 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
113 use `get_next_display_element' and `set_iterator_to_next' to
114 advance to the next character, when looking for the character that
115 begins the next row.
116
76db6fcc 117 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
118 definition of "struct Lisp_Symbol".
119
70eab5c1
GM
1202010-04-24 Glenn Morris <rgm@gnu.org>
121
122 * Makefile.in (CRT_DIR): New variable, set by configure.
123 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
124 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
125
1ad4cc3d
DN
1262010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
127
e769f484
DN
128 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
129
4196ff33
DN
130 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
131
879b0ee4
DN
132 Remove redundant flags.
133 * s/freebsd.h (C_SWITCH_SYSTEM):
134 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
135 * s/netbsd.h (C_SWITCH_SYSTEM):
136 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
137 of these.
138
03cbbcb8
DN
139 Simplify m/intel386.h.
140 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
141 user: ecrt0.c.
142 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
143 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
144 the only user: s/unixware.h.
145 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
146 from m/intel386.h.
147 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
148 moved here from m/intel386.h.
149
1ad4cc3d
DN
150 * m/mips.h: Remove #if 0 code.
151
8785b888
EZ
1522010-04-23 Eli Zaretskii <eliz@gnu.org>
153
728588cc
EZ
154 Fix display of composed characters from L2R scripts in bidi buffers.
155 * xdisp.c (set_iterator_to_next, next_element_from_composition):
156 After advancing IT past the composition, resync the bidi iterator
157 with IT's position. (Bug#5977)
158
a63f80b4
DN
1592010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
160
161 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
162 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
163
ff5dec5c
SM
1642010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
165
166 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
167
8785b888
EZ
1682010-04-23 Eli Zaretskii <eliz@gnu.org>
169
58ccf243 170 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
171 * xdisp.c (pop_it): When the stack is popped after displaying
172 from a string, bidi-iterate to exit from the text portion covered
173 by the `display' property or overlay. (Bug#5988, bug#5920)
174
feeb1604
DN
1752010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
176
8e324eb6
DN
177 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
178 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
179
809fcaba
DN
180 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
181 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
182
ed710380
DN
183 Simplify STARTFILES definition.
184 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
185 relying on Makefile.in to define it.
186 * s/cygwin.h (START_FILES): Likewise.
187 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
188
feeb1604
DN
189 Clean up Solaris code.
190 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
191 (LIB_MOTIF): Remove, configure takes care of this.
192 (NOT_USING_MOTIF): Remove, unused.
193 * xrdb.c: Remove #if 0-ed #include.
194 (SYSV): Remove conditional for old SysV.
195 * sysdep.c (closedir): Remove conditional code for Solaris,
196 Solaris has closedir.
197
a0d0b563
JD
1982010-04-22 Jan Djärv <jan.h.d@swipnet.se>
199
200 * xsettings.c (read_and_apply_settings): Check if current_font is
201 NULL before strcmp (Bug#6001).
202
56bae7c7
DN
2032010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
204
205 Clean up HP-UX files.
206 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
207 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
208 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
209 * s/hpux10-20.h: ... to the only user, here.
210
372b7a95
EZ
2112010-04-21 Eli Zaretskii <eliz@gnu.org>
212
213 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
214 use buffer-local values of paragraph-start and paragraph-separate.
215 <paragraph_start_re, paragraph_separate_re>: Rename from
216 fallback_paragraph_start_re and fallback_paragraph_separate_re.
217 (Bug#5992)
218
f904c0f9
JD
2192010-04-21 Jan Djärv <jan.h.d@swipnet.se>
220
221 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
222 current_tool_bar_style are new.
223 (store_config_changed_event): Rename from store_font_changed_event.
224 (XSETTINGS_TOOL_BAR_STYLE): New define.
225 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
226 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
227 HAVE_XFT.
228 (something_changedCB): store_font_changed_event is now
229 store_config_changed_event
230 (parse_settings): Rename from parse_xft_settings. Read
231 non-xft xsettings outside #ifdef HAVE_XFT.
232 (read_settings): Renamed from read_xft_settings.
233 (apply_xft_settings): Take current settings as parameter. Do not
234 call read_(xft)_settings.
235 (read_and_apply_settings): New function.
236 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
237 read_and_apply_settings if there are settings to be read.
238 (init_xsettings): Renamed from init_xfd_settings.
239 Call read_and_apply_settings unconditionally.
240 (xsettings_initialize): Call init_xsettings.
241 (Ftool_bar_get_system_style): New function.
242 (syms_of_xsettings): Define Qmonospace_font_name and
243 Qtool_bar_style. Initialize current_tool_bar_style to nil.
244 defsubr Stool_bar_get_system_style. Fprovide on
245 dynamic-setting.
31a01b90 246 Move misplaced HAVE_GCONF
f904c0f9
JD
247
248 * xsettings.h (Ftool_bar_get_system_style): Declare.
249
250 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
251 Qtext, Qboth, Qboth_horiz are new.
252 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
253 Vtool_bar_style, tool_bar_max_label_size.
254
255 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
256
257 * keyboard.c: QClabel is new.
258 (parse_tool_bar_item): Take out QClabel from tool bar items.
259 Try to construct a label if ther is no QClabel.
260 (syms_of_keyboard): Intern :label as QClabel.
261
262 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
263 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
264 New.
265
266 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
267 dynamic-setting.el.
268
269 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
270 (xg_make_tool_item, xg_show_toolbar_item): New function.
271 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
272 Call xg_make_tool_item to make a tool bar item.
273 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
274
275 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
276 into account for toolbars.
277
c632dfda
JD
2782010-04-21 Jan Djärv <jan.h.d@swipnet.se>
279
280 * data.c (make_blv): Declarations before code (Bug#5993).
281
10efe302
GM
2822010-04-21 Glenn Morris <rgm@gnu.org>
283
284 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
285 Define using autoconf, not cpp.
286 (LIBXSM): New variable, set by autoconf.
287 (LIBXT): Use $LIBXSM.
288
4285ac5a
DN
2892010-04-21 Dan Nicolaescu <local_user@dannlt>
290
3ec759e7
DN
291 Remove NOMULTIPLEJOBS, unused.
292 * s/template.h (NOMULTIPLEJOBS):
293 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
294
4285ac5a
DN
295 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
296 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
297 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
298 detects -znocombreloc and passes it to the linker
299 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
300
2807228d
GM
3012010-04-21 Glenn Morris <rgm@gnu.org>
302
303 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
304
574c05e2
KK
3052010-04-21 Karel Klíč <kklic@redhat.com>
306
307 * Makefile.in (LIBSELINUX_LIBS): New.
308 (LIBES): Add $LIBSELINUX_LIBS.
309 * eval.c, lisp.h (call7): New function.
310 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
311 (Ffile_selinux_context, Fset_file_selinux_context):
312 New functions.
313 (Fcopy_file): New parameter preserve-selinux-context.
314 (Frename_file): Preserve selinux context when renaming by copy-file.
315
91eac4bb
JB
3162010-04-21 Juanma Barranquero <lekktu@gmail.com>
317 Eli Zaretskii <eliz@gnu.org>
318
50426a04
JB
319 Don't depend on cm.c or termcap.c on Windows, use stubs.
320 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
321 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
322 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
323 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
324 (sys_tputs, sys_tgetstr): New stubs.
325 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
326 (tputs, tgetstr): New; define to sys_*.
91eac4bb 327
938efb77
JB
3282010-04-20 Juanma Barranquero <lekktu@gmail.com>
329
330 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
331
b4bf28b7
SM
3322010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
333
8b1e1112
SM
334 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
335 Just signal a warning rather than an error when inside a let.
336 (Fmake_variable_frame_local): Add the same test.
337
933ac235
SM
338 * font.c (syms_of_font): Make the style table vars read-only.
339
b4bf28b7
SM
340 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
341 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
342
343 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
344
93d68d0c
EZ
3452010-04-20 Eli Zaretskii <eliz@gnu.org>
346
347 Fix R2L paragraph display on TTY.
348
349 * xdisp.c (unproduce_glyphs): New function.
350 (display_line): Use it when produced glyphs are discarded from R2L
351 glyph rows.
352 (append_composite_glyph): In R2L rows, prepend the glyph rather
353 than appending it.
354
355 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
356 rather than append it. Set up the resolved_level and bidi_type
357 attributes of the appended glyph.
283ccc18
EZ
358 (produce_special_glyphs): Mirror the backslash continuation
359 character in R2L lines.
93d68d0c 360
283ccc18 361 Implement display of R2L paragraphs in GUI sessions.
26cdf528 362
283ccc18
EZ
363 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
364 append_stretch_glyph.
365 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
366 off-by-one error in computing x at end of text in the row.
367 (append_stretch_glyph): In reversed row, prepend the glyph rather
368 than append it. Set resolved_level and bidi_type of the glyph.
369 (extend_face_to_end_of_line): If the row is reversed, prepend a
370 stretch glyph whose width is such that the rightmost glyph will be
371 drawn at the right margin of the window. Fix off-by-one error on
372 TTY frames in testing whether a line needs face extension. Fix
373 face extension at ZV. If this is the last glyph row, use
374 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
375 region face.
376 (set_cursor_from_row, display_line): Use
26cdf528
EZ
377 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
378 row->continuation_lines_width.
283ccc18
EZ
379 (next_element_from_buffer): Don't call bidi_paragraph_init if we
380 are at ZV. Fixes a crash when reseated to ZV by
381 try_window_reusing_current_matrix.
45903529
EZ
382 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
383 which happens with R2L glyph rows. Fixes a crash when inserting a
384 character at end of an R2L line.
283ccc18
EZ
385 (set_cursor_from_row): Don't be fooled by truncated rows: don't
386 treat them as having zero-width characters. Improve comments.
387 Don't reverse pos_before and pos_after for reversed glyph rows.
388 Set cursor.x to negative value when the cursor might be on the
389 left fringe.
390 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
391 left fringe, not the right one.
f951a506
EZ
392 (notice_overwritten_cursor, draw_phys_cursor_glyph)
393 (erase_phys_cursor): For reversed cursor_row, support cursor on
394 the left fringe.
395
283ccc18
EZ
396 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
397 of continuation indicators on the fringes.
398 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
399 left fringe.
400
f951a506
EZ
401 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
402 draw cursor on the left fringe.
403
404 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
405 cursor on the left fringe.
406
f951a506
EZ
407 * dispnew.c (update_text_area): Handle reversed desired rows when
408 the cursor is on the left fringe.
409 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
410 below, not by 0, for when the cursor is on the left fringe.
411
3bb49aaf
JD
4122010-04-20 Jan Djärv <jan.h.d@swipnet.se>
413
414 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
415 widget is a scrollbar.
416
c0be27fd
KH
4172010-04-20 Kenichi Handa <handa@m17n.org>
418
419 * charset.c (char_charset): Consider Vcharset_non_preferred_head
420 only when the arg CHARSET_LIST is nil.
421
ce5b453a
SM
4222010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
423
424 Make variable forwarding explicit rather the using special values.
425 Basically, this makes the structure of buffer-local values and object
426 forwarding explicit in the type of Lisp_Symbols rather than use
427 special Lisp_Objects for that. This tends to lead to slightly more
428 verbose code, but is more C-like, simpler, and makes it easier to make
429 sure we handled all cases, among other things by letting the compiler
430 help us check it.
431 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
432 Removing forwarding objects.
433 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
434 (struct Lisp_Symbol): Make the various forms of variable-forwarding
435 explicit rather than hiding them inside Lisp_Object "values".
436 (XFWDTYPE): New macro.
437 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
438 (XBUFFER_LOCAL_VALUE): Remove.
439 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
440 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
441 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
442 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
443 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
444 Remove the Lisp_Misc_* header.
445 (struct Lisp_Buffer_Local_Value): Redefine.
446 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
447 (struct Lisp_Misc_Any): Add filler to get the right size.
448 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
449 Lisp_Intfwd.
450 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
451 (DEFVAR_KBOARD): Allocate a forwarding object.
452 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
453 (let_shadows_global_binding_p): New function.
454 (union Lisp_Val_Fwd): New type.
455 (make_blv): New function.
456 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
457 (store_symval_forwarding, swap_in_global_binding, Fboundp)
458 (swap_in_symval_forwarding, find_symbol_value, Fset)
459 (let_shadows_buffer_binding_p, set_internal, default_value)
460 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
461 (Fkill_local_variable, Fmake_variable_frame_local)
462 (Flocal_variable_p, Flocal_variable_if_set_p)
463 (Fvariable_binding_locus):
464 * xdisp.c (select_frame_for_redisplay):
465 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
466 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
467 * frame.c (store_frame_param):
468 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
469 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
470 value structure.
471 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
472 (clone_per_buffer_values): Only adjust markers into the current buffer.
473 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
474 (Fbuffer_local_value, set_buffer_internal_1)
475 (swap_out_buffer_local_variables):
476 Adapt to the new symbol value structure.
477 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
478 (defvar_per_buffer): Take a new arg for the fwd object.
479 (buffer_lisp_local_variables): Return a proper alist (different fix
480 for bug#4138).
481 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
482 (Fgarbage_collect): Don't handle buffer_defaults specially.
483 (mark_object): Handle new symbol value structure rather than the old
484 special Lisp_Misc_* objects.
485 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
486 * term.c (set_tty_color_mode):
487 * bidi.c (bidi_initialize): Don't access the ->value field directly.
488 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
489 a buffer_local_flags.
490 * print.c (print_object): Get rid of impossible forwarding objects.
491
fd3998ff
EZ
4922010-04-19 Eli Zaretskii <eliz@gnu.org>
493
494 * bidi.c (bidi_get_type, bidi_get_category)
495 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
496 (bidi_type_of_next_char, bidi_level_of_next_char):
497 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 498
e42cd1a7
JB
4992010-04-19 Juanma Barranquero <lekktu@gmail.com>
500
501 * dired.c (Ffile_attributes): Fix typo in docstring.
502
6e104790 5032010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
504
505 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
506 NSInteger (Bug#5811).
507
6e104790 5082010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
509
510 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
511 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
512
6e104790 5132010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
514
515 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
516
6e104790
SM
5172010-04-19 Chong Yidong <cyd@stupidchicken.com>
518
519 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
520 terminal frames (Bug#5837).
521
37dcfea0
EZ
5222010-04-19 Eli Zaretskii <eliz@gnu.org>
523
d1da276f
EZ
524 * .gdbinit (xsubchartable): New command.
525
37dcfea0
EZ
5262010-04-19 Eli Zaretskii <eliz@gnu.org>
527
528 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 529 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
530 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
531 and
532 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
533
e9515805
SM
5342010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
535
536 * alloc.c (Fpurecopy): Hash-cons if requested.
537 (syms_of_alloc): Update purify-flag docstring.
538
22aa44a8
JD
5392010-04-18 Jan Djärv <jan.h.d@swipnet.se>
540
541 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
542 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
543
ebb5722e
EZ
5442010-04-17 Eli Zaretskii <eliz@gnu.org>
545
546 Fix a crash when an NSM character is inserted at BEGV.
547
548 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
549 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
550 NEUTRAL_B or UNKNOWN_BT.
551
0f4442ef
EZ
5522010-04-16 Eli Zaretskii <eliz@gnu.org>
553
554 * xdisp.c (set_cursor_from_row): Don't consider possibility of
555 other rows with cursor unless they are different from this row and
556 this row is part of a continued line. (Bug#5943)
557
7d4e45f8
DN
5582010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
559
560 * s/freebsd.h: Restore osreldate.h include.
561 Suggested by Naohiro Aota.
562
5ba5ec85
J
5632010-04-16 Jan Djärv <jan.h.d@swipnet.se>
564
565 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
566
20af301d
CY
5672010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
568
569 * s/cygwin.h: Avoid linking against static libgcc.
570
a4b000fb
JL
5712010-04-15 Juri Linkov <juri@jurta.org>
572
573 * window.c: Add Qscroll_command.
574 Remove Vscroll_preserve_screen_position_commands.
575 (window_scroll_pixel_based, window_scroll_line_based): Check the
576 `scroll-command' property on the last command instead of searching
577 the last command in Vscroll_preserve_screen_position_commands.
578 (syms_of_window): Initialize and staticpro `Qscroll_command'.
579 Put Qscroll_command property on Qscroll_up and Qscroll_down.
580 (scroll-preserve-screen-position): Doc fix.
581 (Vscroll_preserve_screen_position_commands): Remove variable.
582
bc319ba4
DN
5832010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
584
6bb24457
DN
585 * xdisp.c (message): Do not use NO_ARG_ARRAY.
586
19d4c244
DN
5872010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
588
589 Reduce cpp use in Makefile.in.
590 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
591 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
592 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
593 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
594 (CRT0_COMPILE): Remove, inline it in the only user.
595
32129746
JL
5962010-04-14 Juri Linkov <juri@jurta.org>
597
598 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
599 `scroll-up-command' and `M-v' from `scroll-down' to
600 `scroll-down-command'.
601
9013a7f8
JL
6022010-04-14 Juri Linkov <juri@jurta.org>
603
604 * window.c (Vscroll_preserve_screen_position_commands): New variable
605 with the default value as the list of Qscroll_down and Qscroll_up.
606 (window_scroll_pixel_based, window_scroll_line_based): Search the
607 last command in the list Vscroll_preserve_screen_position_commands
608 instead of comparing with Qscroll_up and Qscroll_down.
609
4bef8d26
JD
6102010-04-13 Jan Djärv <jan.h.d@swipnet.se>
611
92848133
JD
612 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
613 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
614 does that.
615
4bef8d26
JD
616 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
617 to zero.
618
58b963f7
SM
6192010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
620
84164a0d
SM
621 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
622
2b0a91e7
SM
623 Try to solve the problem of spurious EOF chars in long lines of text
624 sent to interactive subprocesses.
625 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
626 (system_process_attributes): Remove unused var `ttotal'.
627 * process.c (send_process): Don't bother breaking long line with EOF
628 chars when talking to ttys any more.
629 (wait_reading_process_output): Output a warning when called in such
630 a way that it could block without being interruptible.
631
58b963f7
SM
632 Try to detect file modification within the same second.
633 * buffer.h (struct buffer): New field modtime_size.
634 * buffer.c (reset_buffer): Initialize it.
635 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
636 (Fverify_visited_file_modtime): Check it.
637 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
638 (Fset_visited_file_modtime): Set (or clear) it.
639
01f5787b
SM
6402010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
641
642 * process.c (status_notify): Remove unused var `ro'.
643
83725342
JD
6442010-04-12 Jan Djärv <jan.h.d@swipnet.se>
645
646 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
647 more than one visual (Bug#5938).
648
b9465836
DN
6492010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
650
50426a04
JB
651 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
652 Undefine.
b9465836 653
8d9c8ece
DN
6542010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
655
b1f52161
DN
656 Remove C_SWITCH_SYSTEM_TEMACS.
657 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
658 (malloc, realloc, free): Use emacs, not temacs for conditional
659 definition.
660
661 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
662 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
663
8d9c8ece
DN
664 Use autoconf, not cpp for some variables.
665 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
666 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
667 (ALL_CFLAGS): Use them as make variables.
668 (really-lwlib, really-oldXMenu): Do not pass them.
669
1ecb2d3f
JD
6702010-04-11 Jan Djärv <jan.h.d@swipnet.se>
671
672 * xmenu.c (apply_systemfont_to_dialog): New.
673 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
674
3a4fa2f2
SM
6752010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
676
97e53006
SM
677 * process.c (exec_sentinel): Preserve current-buffer.
678
3a4fa2f2
SM
679 * process.c (read_process_output): Move the save-current-buffer to
680 apply to both the filter and the non-filter branches.
681
88df7221
DN
6822010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
683
684 * s/msdos.h (UNEXEC): New definition.
685
5634ff85
YM
6862010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
687
6eff5c3d
YM
688 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
689 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
690
691 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
692 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
693 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
694 TRY_WINDOW_CHECK_MARGINS.
695
696 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
697 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
698 width only when it is for padding.
5634ff85 699
b13aef54
J
7002010-04-09 Jan Djärv <jan.h.d@swipnet.se>
701
702 * xfns.c (Fx_show_tip): Call try_window in a loop until
703 fonts_changed_p is zero (Bug#2423).
704
21d28484
EZ
7052010-04-08 Eli Zaretskii <eliz@gnu.org>
706
707 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
708 the end of TEXT_AREA. (Bug#5856)
709
0269ef77
JD
7102010-04-08 Jan Djärv <jan.h.d@swipnet.se>
711
712 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
713 HAVE_GCONF.
714
5930fe97
EZ
7152010-04-08 Eli Zaretskii <eliz@gnu.org>
716
717 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
718 prev.orig_type, for resolving type of NSM. (Bug#5858)
719
99852628
JD
7202010-04-08 Jan Djärv <jan.h.d@swipnet.se>
721
722 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
723 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
724 in current_font.
725 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
726 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
727 New functions.
728 (syms_of_xsettings): Initialize current_font.
729 defsubr Sfont_get_system_normal_font.
99852628
JD
730
731 * xsettings.h (Ffont_get_system_normal_font,
732 xsettings_get_system_normal_font): Declare.
733
734 * xfns.c (extern xlwmenu_default_font): Remove.
735 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
736 to xlwmenu.c.
737
738 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
739 menu items in UTF-8.
740
741 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
742 (apply_systemfont_to_menu): New function.
743 (set_frame_menubar, create_and_show_popup_menu): Call
744 apply_systemfont_to_menu.
745
7fc874c4
J
7462010-04-07 Jan Djärv <jan.h.d@swipnet.se>
747
748 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
749 FRAME_LINE_TO_PIXEL_Y.
750
751 * xterm.c (x_set_window_size_1): Don't add border_width/height to
752 pixelwidth/height.
753
863bf481
DN
7542010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
755
5e5a3b92
DN
756 Simplify code for HP machines.
757 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
758 for GNU_LINUX, not needed.
759 (UNEXEC, NEED_BSDTTY): Move definitions...
760 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
761
863bf481
DN
762 * m/iris4d.h (UNEXEC): Move definition ...
763 * s/irix6-5.h (UNEXEC): ... here.
764
3e6bec3b
JD
7652010-04-04 Jan Djärv <jan.h.d@swipnet.se>
766
767 * xfns.c (set_machine_and_pid_properties): New function.
768 (Fx_create_frame): Call set_machine_and_pid_properties.
769
2912322b
SM
7702010-04-03 Eli Zaretskii <eliz@gnu.org>
771
1502b819
EZ
772 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
773 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
774 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
775
2912322b
SM
776 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
777 in this function. (Bug#5703)
778
7792010-04-03 Chong Yidong <cyd@stupidchicken.com>
780
781 * nsterm.h: Fix last change.
782
c435b432
DN
7832010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
784
a568f507
DN
785 * m/intel386.h (NO_REMAP): Move definition ...
786 * s/msdos.h (NO_REMAP): ... here.
787
4cd9f6c2
DN
788 * m/vax.h (CRT0_DUMMIES): Remove, unused.
789
c435b432
DN
790 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
791 used on those platforms.
792
42a2c622
DN
7932010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
794
795 Remove extern errno declarations.
796 * xterm.c:
797 * xrdb.c:
798 * w32term.c:
799 * unexec.c:
800 * unexaix.c:
801 * sysdep.c:
802 * process.c:
803 * lread.c:
804 * keyboard.c:
805 * floatfns.c:
806 * filelock.c:
807 * fileio.c:
808 * emacs.c (main):
809 * ecrt0.c:
810 * dispnew.c:
811 * callproc.c:
812 * buffer.c: Remove errno extern declarations.
813 * s/netbsd.h (NEED_ERRNO): Remove.
814
8224f93d
DN
8152010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
816
817 Remove all uses of LIBX11_SYSTEM.
818 * Makefile.in (LIBX11_SYSTEM): Remove.
819 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
820 instead.
821
814062c7
EZ
8222010-04-01 Eli Zaretskii <eliz@gnu.org>
823
ed68db4d
EZ
824 Remove support for DJGPP v1.x (bug#5813).
825
826 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
827 * s/msdos.h:
828 * unexec.c (make_hdr, copy_text_and_data):
829 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 830 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
831 (IT_set_terminal_modes, __write, _rename, gethostname)
832 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
833 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
834 the value of __DJGPP__.
ed68db4d
EZ
835 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
836 compatibility code.
8224f93d
DN
837 * lread.c:
838 * gmalloc.c (memalign):
839 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
840 * emacs.c (main):
841 * dosfns.c (init_dosfns):
ed68db4d
EZ
842 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
843
52f4d8d5
EZ
8442010-04-01 Eli Zaretskii <eliz@gnu.org>
845
814062c7
EZ
846 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
847 string with `cursor' property comes from an `after-string'
848 overlay. (Bug#5816)
849
0dc2e11d
GM
8502010-04-01 Glenn Morris <rgm@gnu.org>
851
852 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
853 Define as Makefile variables.
854 (LIBX): Use above variables rather than directly using autoconf.
855
1d29df59
DN
8562010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
857
858 Clean up BSD_SYSTEM use.
859 * xterm.c:
860 * process.c:
861 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
862 for including <sys/ioctl.h>.
863 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
864 code is only used for MSDOS.
865
1546c559
JL
8662010-03-31 Juri Linkov <juri@jurta.org>
867
868 * image.c: Add `Qextension_data'.
869 (syms_of_image): Initialize and staticpro `Qextension_data'.
870 (Fimage_metadata): Rename from `Fimage_extension_data'.
871 (gif_load): Put GIF extension data to the property
872 `Qextension_data'.
873
b8a1d5a1
CY
8742010-04-05 Chong Yidong <cyd@stupidchicken.com>
875
876 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
877 terminal frames (Bug#5837).
878
6521c534
CY
8792010-03-31 Chong Yidong <cyd@stupidchicken.com>
880
881 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
882 * nsterm.h: Fix prototype.
883
52c30783
EZ
8842010-03-31 Eli Zaretskii <eliz@gnu.org>
885
886 * xdisp.c (highlight_trailing_whitespace): Support highlight of
887 trailing whitespace in right-to-left rows.
888
855a0da7
SM
8892010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
890
891 Get rid of the direct_output optimizations.
892 * keyboard.c (nonundocount): Remove extern declaration.
893 (command_loop_1): Remove brittle optimisation for cheap and
894 common operations.
895 * xdisp.c (redisplay_internal): Don't bother checking
896 redisplay_performed_directly_p any more.
897 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
898 any more.
899 * dispnew.c (redisplay_performed_directly_p)
900 (direct_output_for_insert, direct_output_forward_char):
901 * dispextern.h (redisplay_performed_directly_p)
902 (direct_output_for_insert, direct_output_forward_char): Remove.
903 * cmds.c (nonundocount): Make it static.
904
85738751 9052010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
906
907 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
908
85738751 9092010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
910
911 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
912 invisible (Bug#5766).
913
85738751 9142010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 915
855a0da7
SM
916 * xdisp.c (x_consider_frame_title, update_window_cursor):
917 Remove HAVE_NS conditionals.
194d44e7 918 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
919
920 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
921 filename for the title.
922 (ns_set_doc_edited): Do nothing if the selected window is a
923 minibuffer window.
924
925 * nsterm.h: Add prototypes for ns_set_name_as_filename and
926 ns_set_doc_edited.
927
928 * nsterm.m: Remove unneeded prototype.
929
85738751 9302010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
931
932 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
933 in the DOC file. (Bug#5336)
934
85738751 9352010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
936
937 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
938
75d1428c
SM
9392010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
940
941 * window.c (keys_of_window): Remove redundant/overridden bindings.
942
82043cfb
EZ
9432010-03-30 Eli Zaretskii <eliz@gnu.org>
944
945 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
946 Restore original behavior when the iterator is not bidi_p.
947
b5dd0ae7
DN
9482010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
949
950 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
951
bd924a5d
EZ
9522010-03-30 Eli Zaretskii <eliz@gnu.org>
953
954 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
955 are outside the range of cached character positions.
956
3580374b
JB
9572010-03-30 Juanma Barranquero <lekktu@gmail.com>
958
959 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
960
a7b02820
EZ
9612010-03-30 Eli Zaretskii <eliz@gnu.org>
962
963 Initial support for bidirectional editing.
964
965 * Makefile.in (obj): Include bidi.o.
966 (bidi.o): New target.
967
968 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
969 ($(BLD)/bidi.$(O)): New target.
970
971 * bidi.c: New file.
972
973 * buffer.h (struct buffer): New members bidi_display_reordering
974 and bidi_paragraph_direction.
975
976 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
977 and bidi_paragraph_direction.
978 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
979 and bidi-paragraph-direction.
980 (Fbuffer_swap_text): Swap the values of
981 bidi_display_reordering and bidi_paragraph_direction.
982
983 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
984 (bidi_type_t, bidi_dir_t): New types.
985 (bidi_saved_info, bidi_stack, bidi_it): New structures.
986 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
987 prev_stop, base_level_stop, and eol_pos.
988 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
989 (IT_STACK_SIZE): Enlarge to 5.
990 (struct glyph_row): New member reversed_p.
991 <string_buffer_position>: Update prototype.
992 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
993 glyph_row if bidi_it.paragraph_dir == R2L.
994 (struct glyph): New members resolved_level and bidi_type.
995
996 * dispnew.c (direct_output_forward_char): Give up if we need bidi
997 processing or buffer's direction is right-to-left.
998 (prepare_desired_row): Preserve the reversed_p flag.
999 (row_equal_p): Compare the reversed_p attributes as well.
1000
1001 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
1002 bidi_init_it and set it->paragraph_embedding from the current
1003 buffer's value of bidi_paragraph_direction.
1004 (reseat_1): Initialize bidi_it.first_elt.
1005 (set_iterator_to_next, next_element_from_buffer): Use the value of
1006 paragraph_embedding to determine the paragraph direction.
1007 (set_iterator_to_next): Under bidi reordering, call
1008 bidi_get_next_char_visually. Call bidi_paragraph_init if the
1009 new_paragraph flag is set in the bidi iterator.
1010 (next_element_from_buffer): If bidi_it.first_elt is set,
1011 initialize paragraph direction and find the first character to
1012 display in the visual order. If reseated to a middle of a line,
1013 prime the bidi iterator starting at the line's beginning. Handle
1014 the situation where we overstepped stop_charpos due to
1015 non-linearity of the bidi iteration. Likewise for when we back up
1016 beyond the previous stop_charpos. When moving across stop_charpos,
1017 record it in prev_stop.
1018 (display_line): Set row->end and it->start for the next row to the
1019 next character in logical order. Always extend reversed_p rows to
1020 the end of line, even if they end at ZV. Copy the reversed_p flag
1021 to the next glyph row. Keep calling set_cursor_from_row for
1022 bidi-reordered rows even if we already have a possible candidate
1023 for cursor position. Set row_end after all the row's glyphs have
1024 been produced, by looping over the glyphs. Record the position
1025 after EOL in it->eol_pos, and use it to set end_pos of the last
1026 row produced for a continued line.
1027 <Qright_to_left, Qleft_to_right>: New variables.
1028 (syms_of_xdisp): Initialize and staticpro them.
1029 (string_buffer_position_lim): New function.
1030 (string_buffer_position): Most of code moved to
1031 string_buffer_position_lim. Last argument and return value are
1032 now EMACS_INT; all callers changed.
1033 (set_cursor_from_row): Rewritten to support bidirectional text and
1034 reversed glyph rows.
1035 (text_outside_line_unchanged_p, try_window_id): Disable
1036 optimizations if we are reordering bidirectional text and the
1037 paragraph direction can be affected by the change.
1038 (append_glyph, append_composite_glyph)
1039 (produce_image_glyph, append_stretch_glyph): Set the
1040 resolved_level and bidi_type members of each glyph.
1041 (append_glyph): If the glyph row is reversed, prepend the glyph
1042 rather than appending it.
1043 (handle_stop_backwards): New function.
1044 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
1045 (reseat): call handle_stop_backwards to recompute prev_stop and
1046 base_level_stop for the new position.
1047 (handle_invisible_prop): Under bidi iteration, skip invisible text
1048 using bidi_get_next_char_visually. If we are `reseat'ed, init the
1049 paragraph direction. Update IT->prev_stop after skipping
1050 invisible text.
1051 (move_it_in_display_line_to): New variables prev_method
1052 and prev_pos. Compare for strict equality in
1053 BUFFER_POS_REACHED_P.
1054 (try_cursor_movement): Examine all the candidate rows that occlude
1055 point, to return the best match. If rows are bidi-reordered
1056 and point moved backwards, back up to the row that is not a
1057 continuation line, and start looking for a suitable row from
1058 there.
1059
1060 * term.c (append_glyph): Reverse glyphs by pre-pending them,
1061 rather than appending, if the glyph_row's reversed_p flag is set.
1062 Set the resolved_level and bidi_type members of each glyph.
1063
1064 * .gdbinit (pbiditype): New command.
1065 (pgx): Use it to display bidi level and type of the glyph.
1066 (pitx): Display some bidi information about the iterator.
1067 (prowlims, pmtxrows): New commands.
1068
32a8894e
DN
10692010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
1070
1071 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
1072 * s/usg5-4.h (LIBS_DEBUG):
1073 * s/irix6-5.h (C_DEBUG_SWITCH):
1074 * s/gnu-linux.h (LIBS_DEBUG):
1075 * s/darwin.h (LIBS_DEBUG):
1076 * s/bsd-common.h (LIBS_DEBUG):
1077 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
1078 * m/iris4d.h (LIBS_DEBUG):
1079 * m/hp800.h (LIBS_DEBUG): Remove definitions.
1080
1081 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
1082 (LIBS_DEBUG): Remove definition.
1083
649dbf36
CY
10842010-03-27 Chong Yidong <cyd@stupidchicken.com>
1085
1086 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
1087 Windows.
1088
cad4261f
YM
10892010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1090
1091 * process.c (Fmake_network_process): Don't call turn_on_atimers around
1092 `connect' (Bug#5723).
1093
cd591dbc
HE
10942010-03-25 Helmut Eller <eller.helmut@gmail.com>
1095
1096 * process.c (Fmake_network_process): Call `select' for interrupted
1097 `connect' rather than creating new socket (Bug#5173).
1098
e867cb5d 10992010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
1100
1101 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1102
1103 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1104
1105 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1106
e867cb5d 11072010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
1108
1109 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1110 XLoadQueryFont.
1111
e867cb5d 11122010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
1113
1114 * coding.c (decode_coding_ccl): Fix previous change for the
1115 multibyte case.
fb608df3
KH
1116 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1117 case that the output buffer is fullfilled.
1118 (encode_coding): Setup ccl program here.
fbdc1721 1119
e867cb5d 11202010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
1121
1122 * editfns.c (Fformat): Account for string precision when computing
1123 field width (Bug#5710).
1124
5845f0ed
DN
11252010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
1126
814fb708
DN
1127 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
1128
5845f0ed
DN
1129 Simplify LIBS_MACHINE definitions.
1130 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1131 * m/iris4d.h (LIBS_MACHINE): Likewise.
1132 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1133 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1134 * s/netbsd.h: Remove commented out code.
5845f0ed 1135
b7064064
DN
11362010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1137
df7734b2
DN
1138 Remove dead code dealing with POSIX_SIGNALS.
1139 * atimer.c (set_alarm): Remove dead code, all USG systems define
1140 POSIX_SIGNALS.
1141 * data.c (arith_error): Likewise.
1142 * keyboard.c (input_available_signal, handle_user_signal)
1143 (interrupt_signal): Likewise.
1144 * process.c (sigchld_handler): Likewise.
1145 (create_process): Remove if 0 code. Remove HPUX conditional when
1146 !defined (POSIX_SIGNALS), it cannot be true.
1147 * syssignal.h: Remove USG5_4 and USG conditionals when
1148 !POSIX_SIGNALS, they cannot be true.
1149
b7064064
DN
1150 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1151 NO_SOCK_SIGIO, not used anymore.
1152
55da5ee3
DN
11532010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1154
0be96e3a
DN
1155 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1156 support vax on BSDs.
1157
55da5ee3
DN
1158 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1159 * s/aix4-2.h (ORDINARY_LINK): ... here.
1160
c0282183
AS
11612010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1162
82c3d67a
AS
1163 * Makefile.in (abs_builddir): Define.
1164 (bootstrap_exe): Use it.
1165 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1166
3613edce
SM
11672010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1168
1169 * Makefile.in (bootstrap_exe): Use an absolute name.
1170
7f110ddc
DN
11712010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1172
22e87574
DN
1173 Remove support for old GNU/Linux using libc version 5.
1174 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1175 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1176
05a670e6
DN
1177 Consolidate redundant definitions in s/bsd-common.h.
1178 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1179 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1180 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1181 doing it in all files that include this one.
1182 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1183 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1184 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1185 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1186 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1187 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1188 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1189 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1190 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1191
2968f561
DN
1192 Consolidate redundant definitions.
1193 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1194 it's undefined in all files that include this one.
1195 (POSIX_SIGNALS): Define here instead of doing it in all files that
1196 include this one.
1197 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1198 (POSIX_SIGNALS): Do not define.
1199 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1200 (POSIX_SIGNALS): Do not define.
1201 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1202 (POSIX_SIGNALS): Do not define.
1203
15d25dc0
DN
1204 Remove support for old UNIX System V systems.
1205 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1206 * s/usg-5-4-2.h: Remove.
1207
07e339e4
DN
1208 Remove support for Solaris on PPC and for old versions.
1209 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1210 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1211 that cancel each other.
1212 * s/sol2-3.h:
1213 * s/sol2-4.h:
1214 * s/sol2-5.h: Remove.
1215 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1216 (NO_REMAP): Remove, unused.
1217 (UNEXEC): Move definition ...
1218 * s/aix4-2.h (UNEXEC): ... here.
1219
7f110ddc
DN
1220 * s/openbsd.h: Remove support for non-ELF and for systems that do
1221 not support shared libraries.
1222 * s/netbsd.h:
1223 * s/freebsd.h: Likewise.
1224
605f35cd
DN
12252010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1226
1227 Remove non-working support for lynxos 3.0.
1228 * s/lynxos.h: Remove file.
1229
1230 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1231 COFF_BSD_SYMBOLS, nothing defines it anymore.
1232
aed71cf4
DN
12332010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1234
1235 Remove obsolete uses of HAVE_SHM.
1236 * emacs.c (standard_args):
1237 (Fdump_emacs):
1238 (syms_of_emacs): Remove code depending on HAVE_SHM.
1239
1240 * alloc.c: Remove HAVE_SHM dependent definition.
1241
1242 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1243
aded53ff
GM
12442010-03-18 Glenn Morris <rgm@gnu.org>
1245
17284745
GM
1246 * emacs.c (USAGE4): Hard-code bug address.
1247 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1248 (bug_reporting_address): Remove.
1249 (main): Don't call bug_reporting_address.
1250
aded53ff
GM
1251 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1252 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1253
303500aa
CY
12542010-03-15 Chong Yidong <cyd@stupidchicken.com>
1255
1256 * xfns.c (Fx_create_frame):
1257 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1258 on left.
1259
cef3058f
CY
12602010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1261
1262 * editfns.c (Fformat): Account for string precision when computing
1263 field width (Bug#5710).
1264
a647d59d
CY
12652010-03-12 Chong Yidong <cyd@stupidchicken.com>
1266
4fa42018
CY
1267 * xfns.c (Fx_create_frame): Set default to Qright.
1268
a647d59d
CY
1269 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1270 all window systems.
1271
6da23aaa
EZ
12722010-03-12 Eli Zaretskii <eliz@gnu.org>
1273
a96f6398 1274 These changes remove termcap.c from the build on Posix platforms.
83d02def 1275 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1276 (MSDOS_OBJ): ...to here.
1277 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1278 now identical to when LIBS_TERMCAP is defined.
1279
1280 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1281
1282 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1283
a96f6398 1284 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1285
288f9fc0
CY
12862010-03-10 Chong Yidong <cyd@stupidchicken.com>
1287
1288 * Branch for 23.2.
1289
d48cd3f4
SM
12902010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1291
1292 Cleanup setup of gl_state in various parts of the code.
1293 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1294 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1295 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1296 (skip_chars):
1297 * regex.c (regex_compile): Use it.
1298 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1299 it's now set in regex_compile when/if we need it.
1300
618db430
SM
13012010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1302
c0335e02
SM
1303 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1304 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1305 (QUIT): Use it to consolidate code and remove redundancy.
1306 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1307
254c06a8
SM
1308 * regex.c (regex_compile): Setup gl_state as well.
1309
618db430
SM
1310 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1311 (in_classes): Use CONSP before XCAR/XCDR.
1312
233f0c9f
CY
13132010-03-03 Chong Yidong <cyd@stupidchicken.com>
1314
1315 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1316 definitions, so that keyboard macros are correctly handled
1317 (Bug#5481).
1318
75f80e63
EZ
13192010-03-02 Eli Zaretskii <eliz@gnu.org>
1320
1321 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1322 text that could be relocated inside the call to emacs_mule_char.
1323 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1324 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1325
dcfb9bc4
KH
13262010-03-02 Kenichi Handa <handa@m17n.org>
1327
fc9a17bc
KH
1328 * character.c (parse_str_as_multibyte): Fix handling of the
1329 multibyte form of raw-bytes.
1330 (str_as_multibyte): Likewise.
1331
dcfb9bc4
KH
1332 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1333 form of raw-bytes.
1334
412c01b6
CY
13352010-02-28 Chong Yidong <cyd@stupidchicken.com>
1336
1337 * charset.c (load_charset_map_from_file)
1338 (load_charset_map_from_vector): Zero out allocated
1339 charset_map_entries before using them.
1340
df7e1ea0
AS
13412010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1342
1343 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1344
fe69a722
CY
13452010-02-27 Chong Yidong <cyd@stupidchicken.com>
1346
4ed28cf4
CY
1347 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1348 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1349
7379cfce
KH
13502010-02-26 Kenichi Handa <handa@m17n.org>
1351
f88cc4d6
KH
1352 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1353
7379cfce
KH
1354 * xdisp.c (reseat_to_string): Fix previous change.
1355
cf2fdcfb
CY
13562010-02-26 David Reitter <david.reitter@gmail.com>
1357
1358 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1359 Lisp_Object (Bug#4736).
1360
cc6c7c75
KH
13612010-02-25 Kenichi Handa <handa@m17n.org>
1362
1363 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1364
32e737d7
JD
13652010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1366
1367 * xterm.c (XTflash): Move declarations before statements.
1368
1369 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1370 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1371 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1372 (xg_create_tool_bar): Remove unused variables.
1373 (x_wm_set_size_hint): Move declarations before statements.
1374 (xg_create_frame_widgets): Remove variable grav,
1375
676cae9f
CY
13762010-02-21 Chong Yidong <cyd@stupidchicken.com>
1377
1378 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1379
886cc2b8
SM
13802010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1381
1382 * term.c (fatal): Add a final \n if needed (bug#5596).
1383
ddb2d8e2
CY
13842010-02-18 Chong Yidong <cyd@stupidchicken.com>
1385
1386 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1387
2a4f8d3d
GM
13882010-02-18 Glenn Morris <rgm@gnu.org>
1389
1390 * callint.c (Finteractive): Doc fix.
1391
ebaf11b6
KH
13922010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1393
886cc2b8
SM
1394 * coding.c (record_conversion_result):
1395 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1396 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1397 memory allocation error.
1398
d0396581
KH
13992010-02-17 Kenichi Handa <handa@m17n.org>
1400
886cc2b8
SM
1401 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1402 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1403 (decode_coding): Setup ccl program here. Keep looping when the
1404 decoder stopped because the output buffer is
1405 fullfilled (bug#5534).
1406
1407 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1408
98599f74
JD
14092010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1410
471e4f04 1411 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1412 bug #5571.
886cc2b8 1413 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1414 overdrawn.
98599f74 1415
182659ae
JD
14162010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1417
1418 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1419 doing_interact here.
1420 (ice_connection_closed): New function.
1421 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1422 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1423 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1424 returns I/O error.
1425 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1426 bug #5512.
1427
9be32c4e 14282010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1429
1430 * nsfont.m (nsfont_open): The system's value for the font descent
1431 is negative, so round it down to avoid clipping.
1432
a2f3eb19
CY
14332010-02-06 Chong Yidong <cyd@stupidchicken.com>
1434
1435 * charset.c (load_charset_map_from_file)
1436 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1437 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1438
3088147c
CY
14392010-02-05 Chong Yidong <cyd@stupidchicken.com>
1440
1441 * charset.c (load_charset_map_from_file): Allocate large
1442 charset_map_entries structure on the heap rather than the stack.
1443 (Bug#5526).
1444
b57d9029
KH
14452010-01-31 Kenichi Handa <handa@m17n.org>
1446
1447 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1448 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1449
c67d885b
CY
14502010-01-31 Chong Yidong <cyd@stupidchicken.com>
1451
1452 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1453 <deactivated@gmail.com> (Bug#3605).
1454
8fab2362
CY
14552010-01-31 David De La Harpe Golden <david@harpegolden.net>
1456
1457 * fileio.c (Frename_file): Correctly rename symlinks to
1458 directories (Bug#5496).
1459
cb2a62f2
CY
14602010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1461
1462 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1463
944c7a26
AS
14642010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1465
1466 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1467
c024ac08
CY
14682010-01-29 Chong Yidong <cyd@stupidchicken.com>
1469
1470 * frame.c (DEFAULT_ROWS): Change default to 35.
1471
1472 * xfns.c (x_default_font_parameter): Change default XFT font to
1473 monospace-10 (Bug#3643).
1474
af93af83
EZ
14752010-01-29 Eli Zaretskii <eliz@gnu.org>
1476
1477 * w32inevt.c (key_event): Remove unnecessary comparison of
1478 event->uChar.AsciiChar with 128.
1479
ca0eb708
CY
14802010-01-28 Chong Yidong <cyd@stupidchicken.com>
1481
b242dbfc
CY
1482 * fileio.c (Frename_file): Fix last change (Bug#5487).
1483
ca0eb708
CY
1484 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1485
1486 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1487
45d45af5
JD
14882010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1489
1490 * xfns.c (Fx_create_frame): Remove window size matching code from
1491 2010-01-15.
1492 (x_get_current_desktop, x_get_desktop_workarea): Remove
1493
7e233730
JR
14942010-01-27 Jason Rumney <jasonr@gnu.org>
1495
1496 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1497 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1498
86e893e3
KH
14992010-01-27 Kenichi Handa <handa@m17n.org>
1500
1501 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1502 pattern string (Bug#4209).
86e893e3 1503
8719abec
CY
15042010-01-27 David De La Harpe Golden <david@harpegolden.net>
1505
1506 * fileio.c (Frename_file): Call copy-directory and
1507 delete-directory for directories, in order to handle cross-device
1508 renaming (Bug#3353).
1509
844794c8
JD
15102010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1511
aa3e13b5 1512 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1513 sizes 24 and 10. Bug #3643.
844794c8 1514
bd4b5750
SM
15152010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1516
8dc1adf6 1517 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1518 * keymap.c (shadow_lookup): Add `remap' arg.
1519 (describe_map, describe_vector): Update calls to shadow_lookup.
1520 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1521 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1522 perform remapping during shadow_lookup check of remapped_sequences.
1523
285d07e2
CY
15242010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1525
1526 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1527 png_check_sig, which has been removed in libpng 1.4.
1528
c6d09b8d
CY
15292010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1530
1531 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1532 lacks this header file).
1533
3d782998
YM
15342010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1535
1536 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1537 as in Emacs 22.
1538
2aff7c53
YM
15392010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1540
1541 * lisp.h (make_pure_string): String pointer arg now points to const.
1542
1543 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1544 args now point to const.
1545
74327f7a
EZ
15462010-01-22 Eli Zaretskii <eliz@gnu.org>
1547
1548 * lread.c (Fload): Don't treat files without .elc extension as
1549 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1550 them. (bug#5303)
1551
4d1e6632
KH
15522010-01-20 Kenichi Handa <handa@m17n.org>
1553
1554 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1555 treat the source as actual byte sequence.
1556
1fdede8f
AM
15572010-01-19 Alan Mackenzie <acm@muc.de>
1558
1559 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1560 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1561 `signal_after_change_p' to `coherent_change_p', and make the
1562 invocation of `modify_region' conditional on it.
1563
67477f30
JD
15642010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1565
1566 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1567 for debug purpose.
1568 (syms_of_xsettings): Declare xft-settings.
1569
244b023e
CY
15702010-01-18 Chong Yidong <cyd@stupidchicken.com>
1571
1572 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1573
617364fe
CY
15742010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1575
1576 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1577
4fe22cdf
CY
15782010-01-16 Chong Yidong <cyd@stupidchicken.com>
1579
1580 * emacs.c (standard_args): Adjust arg priorities to reflect how
1581 they are processed in startup.el.
1582
e118d2be
AS
15832010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1584
1585 * Makefile.in (lisp, shortlisp): Update.
1586
523ae620
SM
15872010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1588
1589 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1590 code, link the new kboard into all_kboard before running Lisp code,
1591 and protect the new terminal with GCPRO (Bug#5365).
1592 (x_term_init): Remove unused var `atom'.
1593 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1594
f0d13888
JD
15952010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1596
1597 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1598 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1599 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1600 this. Bug #3643.
f0d13888 1601
cc320f07
KH
16022010-01-15 Kenichi Handa <handa@m17n.org>
1603
1604 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1605
7ffdf101
CY
16062010-01-15 Chong Yidong <cyd@stupidchicken.com>
1607
1608 * nsterm.m (Qnone): Define.
1609
1610 * nsfns.m (Qnone): Move definition to nsterm.m.
1611
d12bd917
KH
16122010-01-14 Kenichi Handa <handa@m17n.org>
1613
1614 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1615 systems.
1616
d9a7c140
KH
16172010-01-14 Kenichi Handa <handa@m17n.org>
1618
1619 Make auto-composition work on all buffers even if they are
1620 fundamental mode.
1621
1622 * composite.c (Vauto_composition_mode): New variable.
1623 (composition_compute_stop_pos): Check Vauto_composition_mode
1624 instead of Vauto_composition_function.
1625 (composition_adjust_point, Ffind_composition_internal): Likewise.
1626 (syms_of_composite): Declare Lisp variable
1627 "auto-composition-mode" here.
1628
63286bb2
CY
16292010-01-13 Chong Yidong <cyd@stupidchicken.com>
1630
1631 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1632 during call to vendor-specific-keysyms (Bug#5365).
1633
c2623ee7
YM
16342010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1635
1636 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1637 Call SIGNAL_THREAD_CHECK (Bug#5333).
1638
1639 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1640 Call SIGNAL_THREAD_CHECK.
1641
0b5397c2
SM
16422010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1643
1644 Try to fix bug#5314. This is probably not the final word, tho.
1645 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1646 recent-auto-save-p as a side-effect.
1647 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1648 * buffer.c (Fkill_buffer, reset_buffer):
1649 * editfns.c (Fsubst_char_in_region):
1650 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1651 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1652
dc954cb2
KH
16532010-01-13 Kenichi Handa <handa@m17n.org>
1654
1655 Display buffer name, etc. in mode line by composing correctly.
1656
1657 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1658 STRING is not nil.
0b5397c2 1659 (display_mode_element): Adjust for the change of
dc954cb2
KH
1660 decode_mode_spec and display_line.
1661 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1662 (display_string): Handle the case that STRING is non-null and
1663 LISP_STRING is not nil.
1664
0b5397c2
SM
1665 * xterm.c (x_draw_composite_glyph_string_foreground):
1666 Pay attention to s->face->overstrike.
dc954cb2
KH
1667
1668 * composite.c (composition_reseat_it): Don't check PT if STRING is
1669 non nil.
1670
4a00eaca
YM
16712010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1672
1673 * keyboard.c (read_char): Don't apply previous change when current
1674 buffer is unchanged by command execution.
1675
60abb287
JD
16762010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1677
1678 * keyboard.c (read_char): Return after executing from special map.
1679
893db5bc
GM
16802010-01-12 Glenn Morris <rgm@gnu.org>
1681
1682 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1683 bug-gnu-emacs rather than emacs-pretest-bug.
1684
4d03ece0
CY
16852010-01-11 Chong Yidong <cyd@stupidchicken.com>
1686
1687 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1688 initializing the Lisp variables that depend on them.
1689
1df47e38
YM
16902010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1691
1692 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1693 Clear areas that will not be updated after change of menu bar lines.
1694 Clear the menu bar window's current matrix when the window gets empty.
1695
2f1c6384
CY
16962010-01-09 Chong Yidong <cyd@stupidchicken.com>
1697
e398c61c
CY
1698 * intervals.h, textprop.c (extend_property_ranges): Return value
1699 and args changed. Discard properties that begin at or after the
1700 new end (Bug#5306).
1701
1702 * editfns.c (Fformat): Caller changed.
1703
e5a29a10
CY
1704 * nsterm.m (ns_set_default_prefs): Delete function.
1705 (syms_of_nsterm): Initialize ns_command_modifier,
1706 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1707 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1708
2f1c6384
CY
1709 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1710 position (Bug#4040).
1711
d427a9fa
EZ
17122010-01-09 Eli Zaretskii <eliz@gnu.org>
1713
1714 * editfns.c (Ffloat_time): Doc fix.
1715
21b9df2f
JD
17162010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1717
1718 * xfns.c (Fx_create_frame): Don't create frame larger than display
1719 by default bug#3643.
1720
4b00d3b1
YM
17212010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1722
1723 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1724 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1725 windows above internal border.
1726
1727 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1728 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1729 windows above internal border.
1730
1731 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1732 tool bar windows specially.
1733
1734 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1735
1736 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1737 specially.
1738 (XTflash): Take account of menu bar height.
1739
1740 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1741 specially.
1742
5075d853
JD
17432010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1744
ac146f82 1745 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1746 also be true before we can return early (bug #5339).
1747
474217c8
CY
17482010-01-06 David Reitter <david.reitter@gmail.com>
1749
1750 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1751 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1752 (Bug#3233).
1753
c0e6d47d
JD
17542010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1755
d0cf45b7
JD
1756 * font.c (font_open_entity): Enable chache and call cached_font_ok
1757 for the driver if defined.
1758 (QCuser_spec): New symbol.
1759 (font_spec_from_name): Save name as user-spec.
1760 (font_load_for_lface): Keep user-spec instead of name.
1761 (font_open_by_name): Save name as user-spec.
1762 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1763 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1764
1765 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1766 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1767 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1768
1769 * font.h (struct font_driver): Add cached_font_ok.
1770
c0e6d47d
JD
1771 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1772
7c583cd8
JD
17732010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1774
1775 * xterm.c (x_new_font): Move code for setting rows/cols before
1776 resizing ...
ac146f82 1777 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1778
1779 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1780 (xg_frame_resized, xg_frame_set_char_size):
1781 Call xg_clear_under_internal_border.
7c583cd8 1782 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1783
03f77f0a
CY
17842010-01-05 Chong Yidong <cyd@stupidchicken.com>
1785
1786 * keyboard.c (read_key_sequence): Catch keyboard switch after
1787 making a new tty frame (Bug#5095).
1788
2a1ef5be
KH
17892010-01-05 Kenichi Handa <handa@m17n.org>
1790
1791 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1792
e3eb1dae
SM
17932010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1794
1795 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1796 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1797 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1798
777013f2
MA
17992010-01-03 Michael Albinus <michael.albinus@gmx.de>
1800
1801 * dbusbind.c (xd_add_watch): Improve debug message.
1802 (xd_remove_watch): Improve debug message. If DATA is the session
1803 bus, unset D-Bus session environment.
1804 (Fdbus_init_bus): Pass the bus as argument to
1805 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1806
8932b1c2
CY
18072010-01-01 Chong Yidong <cyd@stupidchicken.com>
1808
87231e2c
CY
1809 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1810
4801c5fa
CY
1811 * lread.c (syms_of_lread): Make it clearer that these are the
1812 names of loaded files (Bug#5068).
1813
8932b1c2
CY
1814 * eval.c (run_hook_with_args): Handle the case where the global
1815 value has the obsolete single-function form (Bug#5026).
1816
11e3c684
CY
18172009-12-27 Chong Yidong <cyd@stupidchicken.com>
1818
1819 * minibuf.c (Fall_completions): Minor optimization.
1820
5b28ce35
EZ
18212009-12-26 Eli Zaretskii <eliz@gnu.org>
1822
5ce6e4f4
JB
1823 * .gdbinit (pgx): Fix display of composite glyphs.
1824 Display cmp.from and cmp.to as well.
1825 (pitx): Fix last change.
5b28ce35 1826
bcffff46
KH
18272009-12-25 Kenichi Handa <handa@m17n.org>
1828
1829 * composite.h (composition_adjust_point): Update prototype.
1830
1831 * composite.c (composition_reseat_it): Don't make a composition
1832 spanning over point.
1833 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1834 composable characters.
1835 (composition_adjust_point): New arg NEW_PT. Callers changed.
1836
1837 * keyboard.c (command_loop_1): Force redisplay if the last point
1838 was within a composition.
1839 (adjust_point_for_property): Don't adjust point for automatic
1840 composition when called after buffer modification.
1841
3f670e9a
EZ
18422009-12-19 Eli Zaretskii <eliz@gnu.org>
1843
5ce6e4f4
JB
1844 * .gdbinit (pitx): Don't use enum names, use their values.
1845 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1846 (pgx): Don't use enum names, use their values.
1847 (pitmethod): New helper command.
1848 (pitx): Use it to display iteration method.
1849 (pgrowit): New command.
1850
ad903955
EZ
1851 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1852
3f670e9a
EZ
1853 Update dependencies in Makefile.in.
1854
1855 * Makefile.in (alloc.o): Depend on termhooks.h.
1856 (atimer.o): Depend on blockinput.h.
1857 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1858 and frame.h.
1859 (callint.o): Depend on systime.h, coding.h, and composite.h.
1860 (callproc.o): Depend on buffer.h.
1861 (casefiddle.o): Don't depend on charset.h.
1862 (casetab.o): Depend on character.h.
1863 (ccl.o): Depend on composite.h.
1864 (chartab.o): Depend on ccl.h.
1865 (cm.o): Depend on dispextern.h.
1866 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1867 (coding.o): Don't depend on $(INTERVALS_H).
1868 (composite.o): Don't depend on dispextern.h explicitly (it's in
1869 $(INTERVALS_H)). Depend on ccl.h.
1870 (data.o): Depend on systime.h, coding.h, composite.h,
1871 dispextern.h, font.h, and ccl.h.
1872 (dired.o): Depend on composite.h.
1873 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1874 composite.h (it's in $(INTERVALS_H)).
1875 (doc.o): Depend on systime.h, coding.h, and composite.h.
1876 (editfns.o): Don't depend explicitly on dispextern.h.
1877 (emacs.o): Depend on frame.h and coding.h.
1878 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1879 (fileio.o): Depend on frame.h and commands.h. Don't depend
1880 explicitly on dispextern.h.
1881 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1882 composite.h.
1883 (fns.o): Don't depend on termhooks.h.
1884 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1885 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1886 coding.h, $(INTERVALS_H), window.h, xterm.h.
1887 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1888 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1889 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1890 fontset.h, ccl.h, and ftfont.h.
1891 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1892 (gtkutil.o): Depend on dispextern.h and composite.h.
1893 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1894 termhooks.h, and ccl.h.
1895 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1896 (intervals.o): Depend on systime.h and coding.h.
1897 (keyboard.o): Depend on composite.h and coding.h.
1898 (keymap.o): Depend on coding.h and frame.h.
1899 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1900 (macros.o): Depend on systime.h, coding.h, and composite.h.
1901 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1902 and atimer.h.
1903 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1904 dispextern.h explicitly.
0b5397c2
SM
1905 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1906 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1907 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1908 (regex.o): Don't depend on charset.h.
1909 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1910 (search.o): Don't depend explicitly on composite.h.
1911 (sound.o): Depend on atimer.h and systime.h.
1912 (syntax.o): Don't depend explicitly on composite.h.
1913 (sysdep.o): Depend on coding.h and composite.h.
1914 (term.o): Depend on xterm.h and buffer.h.
1915 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1916 (textprop.o): Don't depend on dispextern.h explicitly.
1917 (undo.o): Depend on dispextern.h.
1918 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1919 dispextern.h and composite.h explicitly.
1920 (xdisp.o): Depend on ccl.h.
1921 (xfaces.o): Depend on coding.h and ccl.h.
1922 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1923 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1924 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1925 ftfont.h.
1926 (xgselect.o): New dependency.
1927 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1928 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1929 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1930 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1931 (xsmfns.o): Depend on frame.h and dispextern.h.
1932 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1933 sysselect.h.
1934
7a6f7fea
AS
19352009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1936
1937 * font.c (Fclear_font_cache): Pass correct cache argument to
1938 font_clear_cache.
1939
f4c21026
AS
19402009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1941
1942 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1943 twice.
1944
f7ab0997
CY
19452009-12-15 Chong Yidong <cyd@stupidchicken.com>
1946
1947 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1948 calling file-remote-p. Reported by Jim Meyering.
1949
fa8e045a
MA
19502009-12-15 Michael Albinus <michael.albinus@gmx.de>
1951
1952 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1953 avoid compiler warnings. (Bug #5217)
fa8e045a 1954
a63dba42
KH
19552009-12-14 Kenichi Handa <handa@m17n.org>
1956
1957 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1958 in 8-bit encoding.
1959
5ce6e4f4 19602009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1961
1962 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1963 tooltip windows.
1964
223e5fc6
JD
19652009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1966
36acb2a7
JD
1967 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1968 Xatom_net_window_type.
1969
1970 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1971 Xatom_net_window_type.
1972
b8f00677
JD
1973 * xterm.c (my_log_handler): New function.
1974 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1975 so we can filter out buggy messages. (Bug #5120).
b8f00677 1976
e5f0bc9a
JD
1977 * xterm.c (xg_scroll_callback): Parameter list changed,
1978 use parameter GtkScrollType to determine scroll/line/page.
1979 Only allow dragging if a button < 4 is grabbed (bug #5177).
1980 (xg_end_scroll_callback): New function.
1981 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1982 xg_create_scroll_bar.
1983
1984 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1985 (scroll_end_callback): Remove.
1986 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1987 button-release-event. Replace value-changed event with change-value,
1988 bug #5177,
1989 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1990 bug #5177.
1991
1992 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1993 (xg_create_scroll_bar): Add GCallback end_callback.
1994
223e5fc6
JD
1995 * xftfont.c (QClcdfilter): New variable.
1996 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1997 (syms_of_xftfont): Initialize QClcdfilter.
1998
3c055b77
JD
19992009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2000
2001 * xsettings.c (struct xsettings): Add member seen.
2002 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 2003 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
2004 (apply_xft_settings): Only update Xft settings with what member seen
2005 indicates as new.
2006
05fe33ff
EZ
20072009-12-12 Eli Zaretskii <eliz@gnu.org>
2008
2009 * dispextern.h (struct text_pos): Use EMACS_INT;
2010 (struct glyph): Use EMACS_INT for charpos.
2011 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
2012 region_beg_charpos, region_end_charpos,
2013 redisplay_end_trigger_charpos, and also for
2014 iterator_stack_entry.end_charpos and
2015 iterator_stack_entry.stop_charpos.
2016
e8d7886a
JD
20172009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2018
5ce6e4f4 2019 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
2020 (xg_create_scroll_bar): Call scroll_end_callback on button release
2021 event (bug #5177).
2022 (xg_event_is_for_scrollbar): != replaced with ==.
2023
d0db2ec8
KH
20242009-12-12 Kenichi Handa <handa@m17n.org>
2025
2026 * ftfont.c (struct ftfont_info): New member matrix.
2027 (ftfont_open): Setup xftfont_info->matrix.
2028 (MFLTFontFT): New member matrix.
2029 (FLOOR, CEIL, ROUND): New macros.
2030 (ftfont_get_metrics): Handle matrix transformation.
2031 (ftfont_shape_by_flt): New arg matrix. Callers changed.
2032
2033 * xftfont.c (struct xftfont_info): New member matrix.
2034 (xftfont_open): Setup xftfont_info->matrix.
2035
20362009-12-10 Kenichi Handa <handa@m17n.org>
2037
2038 * xdisp.c (append_space_for_newline): Consider face-remapping.
2039
2cc7b62f
AS
20402009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2041
b87dd913
AS
2042 * xsettings.c: Include "keyboard.h".
2043
eba5eb94
AS
2044 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
2045
2cc7b62f
AS
2046 Fix implicit function declarations.
2047 * cmds.c: Include "frame.h".
2048 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
2049 * frame.h: Move declaration of delete_frame outside of
2050 HAVE_WINDOW_SYSTEM.
2051
a4ef73c8
CY
20522009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
2053
2054 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
2055
2056 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
2057 GTK builds.
2058
944a300c
AS
20592009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2060
2061 * unexelf.c (unexec): Don't search for .data twice.
2062
022eef62
CY
20632009-12-05 Chong Yidong <cyd@stupidchicken.com>
2064
426ac949
CY
2065 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
2066 if push failed.
2067 (handle_line_prefix): Set avoid_cursor_p here. Check return value
2068 of push_display_prop (Bug#5000).
2069
022eef62
CY
2070 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
2071 value of font_list_entities (Bug#5085).
2072
be95bee9
JB
20732009-12-04 Juanma Barranquero <lekktu@gmail.com>
2074
2075 Fix `string-to-number' to deal consistently with integers and floats.
2076 * lread.c (isfloat_string): New argument ignore_trailing to accept all
2077 trailing characters, not just whitespace.
2078 (read1): Pass new arg 0 to keep old behavior.
2079 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
2080 trailing chars, as it is already done for integers. Doc fixes.
2081 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
2082
24c2d7ce
EZ
20832009-12-04 Eli Zaretskii <eliz@gnu.org>
2084
0b5397c2
SM
2085 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
2086 Delete unused enumeration value.
24c2d7ce 2087
7e694795
EZ
20882009-12-03 Eli Zaretskii <eliz@gnu.org>
2089
2090 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
2091
84b31826
SM
20922009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2093
2094 * process.c (Fmake_network_process): Fix up the tests for
2095 "connectionless socket", so they DTRT for seqpacket sockets as well.
2096
f00c449b
SM
20972009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
2098
2099 * process.c (Qseqpacket): New symbol.
2100 (HAVE_SEQPACKET): New macro.
2101 (Fmake_network_process): Accept new :type `seqpacket'.
2102 (init_process): Add `seqpacket' feature when applicable.
2103 (syms_of_process): Initialize Qseqpacket.
2104
8096a0ff
YM
21052009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2106
2107 * font.c (font_load_for_lface, font_open_by_name): Don't store name
2108 if entity is Qnil.
2109
3e0de07f
SM
21102009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
2111
2112 * print.c (print_preprocess): Preprocess the key_and_value table of
2113 hashtables, even tho they're "hidden" (bug#5082).
2114
abeafb2a
JD
21152009-11-29 Jan Djärv <jan.h.d@swipnet.se>
2116
2117 * frame.c (frame_make_pointer_invisible)
2118 (frame_make_pointer_visible): Declare f before statements.
2119
4bf47195
EZ
21202009-11-28 Eli Zaretskii <eliz@gnu.org>
2121
2122 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
2123 omitted dependencies on lisp.h.
2124
c525b3f2
JD
21252009-11-27 Jan Djärv <jan.h.d@swipnet.se>
2126
ece2d4ed
JD
2127 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
2128 is NULL.
2129
2130 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2131
2132 * frame.c (frame_make_pointer_invisible)
3e0de07f 2133 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2134 frame.
2135
c525b3f2
JD
2136 * search.c (simple_search): Remove warning by making *p const.
2137
2f00e299
DN
21382009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2139
2140 * xdisp.c (power_letter): Remove duplicate const.
2141
084b049b
JD
21422009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2143
a1fadc6f
JD
2144 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2145
5ce6e4f4 2146 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2147 defaults (bug #5025).
2148
28259cac
SM
21492009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2150
2151 * insdel.c (adjust_markers_for_delete): Move it in the
2152 right direction! (bug#4803)
2153
e8e14166
YM
21542009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2155
2156 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2157
2158 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2159
86677b58
GM
21602009-11-24 Glenn Morris <rgm@gnu.org>
2161
2162 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2163
581e51e8
JD
21642009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2165
cfc86c7a
JD
2166 * Makefile.in: Must create deps for ecrt0.o in its rule.
2167
581e51e8
JD
2168 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2169 because that is what Gtk+ font dialog understands.
2170
2171 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2172 of Fcopy_sequence.
2173 (font_open_by_name): Put name given into QCname for font-object returned.
2174
2175 * frame.c (x_set_font): Save original font name as frame parameter
2176 font-parameter.
2177
2178 * xsettings.c (set_default_xft_settings): New function.
2179 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2180 is found.
2181
8b264ecb
AS
21822009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2183
2184 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2185 searching backwards through multibyte buffer.
2186
872870b2
JD
21872009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2188
2189 * xterm.c: #include xgselect.h.
2190 (x_initialize): Call xgselect_initialize.
2191
2192 * xsettings.c (something_changedCB): C++ comments => C comments.
2193 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2194 does that now.
2195
2196 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2197 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2198 (scroll_bar_button_cb): Remove.
5ce6e4f4 2199 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2200 event.
2201 (xg_create_scroll_bar): Don't bind button-press-event and
2202 button-release-event.
2203
2204 * process.c: Include xgselect.h if defined (USE_GTK) ||
2205 defined (HAVE_GCONF).
2206 (wait_reading_process_output): Call xg_select for the same condition.
2207
2208 * xgselect.c (xg_select): New function to better integrate with
2209 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2210
2211 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2212
2213 * Makefile.in (XOBJ): Add xgselect.o.
2214
62a6e103
AS
22152009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2216
0b5397c2
SM
2217 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2218 Remove ignored second argument. All callers changed.
62a6e103
AS
2219 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2220 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2221 * xdisp.c (string_char_and_length): Likewise.
2222
b0ca0f33
DN
22232009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2224
2225 * xterm.c (x_new_font):
2226 * print.c (print_object):
2227 * cmds.c (Fself_insert_command): Move declarations before statements.
2228
dd5a6279
CY
22292009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2230
2231 * s/cygwin.h: Remove unneeded linker flags.
2232
4a8e097d
JD
22332009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2234
0d1d0d26
JD
2235 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2236
2237 * xsettings.h: Declare xsettings_get_system_font.
2238
2239 * xsettings.c (xsettings_get_system_font): New function.
2240 (init_gconf): No use initiating gconf unless we have Xft also.
2241 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2242 HAVE_GCONF.
2243
4a8e097d
JD
2244 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2245 add a blank entry so it doesn't collapse into nothing.
2246
8ab1650e
SM
22472009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2248
2249 * lread.c (Funintern): Comment out last change.
2250
82c602f0
RS
22512009-11-19 Richard Stallman <rms@gnu.org>
2252
2253 * lread.c (Funintern): Error if symbol is t or nil.
2254
87e32266
SM
22552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2256
2257 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2258 representation of Lisp integers.
2259 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2260
1b9ac145
AS
22612009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2262
2263 * lisp.h: Remove declaration of Ffont_get_system_font.
2264 * xfns.c: Move include of "xsettings.h".
2265 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2266
dfb3c4c6
JD
22672009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2268
87e32266
SM
2269 * xsettings.c (something_changedCB, Ffont_get_system_font):
2270 Check use_system_font.
dfb3c4c6
JD
2271 (syms_of_xsettings): DEFVAR font-use-system-font.
2272
9370c1d8
AS
22732009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2274
25fe851a
AS
2275 * xfns.c (x_default_font_parameter): Remove dead assignment.
2276
9370c1d8
AS
2277 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2278
637fa988
JD
22792009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2280
87e32266 2281 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2282 not have FC_LCD_*. #define them if not there.
a6eb20d8 2283
87e32266 2284 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2285
637fa988
JD
2286 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2287
2288 * xterm.c (handle_one_xevent): Call xft_settings_event for
2289 ClientMessage, PropertyNotify and DestroyNotify.
2290 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2291 Call xsettings_initialize.
2292
2293 * xftfont.c (xftfont_fix_match): New function.
2294 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2295 Call xftfont_fix_match after XftFontMatch.
2296
2297 * xfont.c (xfont_driver): Initialize all members.
2298
87e32266
SM
2299 * xfns.c (x_default_font_parameter):
2300 Try font from Ffont_get_system_font.
637fa988
JD
2301 Do not get font from x_default_parameter if we got one from
2302 Ffont_get_system_font.
87e32266 2303 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2304
2305 * w32font.c (w32font_driver): Initialize all members.
2306
2307 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2308
2309 * lisp.h: Declare syms_of_xsettings.
2310
87e32266
SM
2311 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2312 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2313
2314 * ftfont.c (ftfont_filter_properties): New function.
2315
2316 * frame.c (x_set_font): Remove unused variable lval.
2317
87e32266 2318 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2319
2320 * font.c (font_put_extra): Don't return if val is nil, it means
2321 boolean option is off.
2322 (font_parse_fcname): Collect all extra properties in extra_props
2323 and call filter_properties for all drivers with extra_props and
2324 font as parameter.
87e32266
SM
2325 (font_open_entity): Do not use cache, it does not pick up new
2326 fontconfig settings like hinting.
637fa988
JD
2327 (font_load_for_lface): If spec had a name in it, store it in entity.
2328
2329 * emacs.c (main): Call syms_of_xsettings
2330
2331 * config.in: HAVE_GCONF is new.
2332
2333 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2334 xsettings.o is new.
2335
5a942932
KH
23362009-11-17 Kenichi Handa <handa@m17n.org>
2337
2338 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2339 back to the default font in case that no suitable font is found.
2340
b7c7a4d1
SM
23412009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2342
2343 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2344 Suggested by Chad Brown <yandros@mit.edu>.
2345 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2346
072f1e39
JD
23472009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2348
2349 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2350
5d1e70a2
AS
23512009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2352
87e32266 2353 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2354
a53cfbe5
JD
23552009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2356
473a99b7
JD
2357 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2358 has a parent.
2359
a53cfbe5 2360 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2361 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2362
2363 * config.in: Generated (AUTO_DEPEND).
2364
f04bb9b2
MA
23652009-11-13 Michael Albinus <michael.albinus@gmx.de>
2366
b7c7a4d1 2367 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2368 Vdbus_registered_functions_table, because it contains also
2369 properties. Fix docstring.
b7c7a4d1 2370 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2371
8f11f7ec
SM
23722009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2373
2374 * alloc.c (mark_object): Don't reprocess marked strings.
2375 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2376 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2377
8a605fe8
KH
23782009-11-13 Kenichi Handa <handa@m17n.org>
2379
8f11f7ec 2380 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2381 semantics of Vword_combining_categories.
2382 (Vword_combining_categories): Describe the slight change of the
2383 semantics.
2384
241c4680
EZ
23852009-11-13 Eli Zaretskii <eliz@gnu.org>
2386
2387 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2388
2389 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2390
5d58e44c
SM
23912009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2392
2393 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2394
5e13f9d3
JB
23952009-11-12 Juanma Barranquero <lekktu@gmail.com>
2396
2397 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2398
cf54c754
DR
23992009-11-11 David Reitter <david.reitter@gmail.com>
2400
2401 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2402 variables to fix 2009-11-09 change.
2403
a4ada374
DN
24042009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2405
91433552
DN
2406 * process.c (ifflag_def): Make flag_sym constant.
2407 (Fnetwork_interface_info): Use a constant pointer.
2408 (ifflag_table):
2409 * xfns.c (cursor_bits):
2410 * xdisp.c (power_letter):
2411 * termcap.c (speeds, esctab):
2412 * sysdep.c (baud_convert):
2413 * keyboard.c (lispy_accent_codes, modifier_names):
2414 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2415 (jpeg_format, tiff_format, gif_format, svg_format)
2416 (interlace_start, interlace_increment, gs_format):
2417 * gtkutil.c (separator_names):
2418 * fringe.c (swap_nibble):
2419 * fns.c (base64_value_to_char, base64_char_to_value):
2420 * fileio.c (make_temp_name_tbl):
2421 * coding.c (suffixes): Make constant.
2422
f4265f6c
DN
2423 * frame.c (make_initial_frame):
2424 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2425 build_string.
2426 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2427
04420943
DN
2428 * s/freebsd.h:
2429 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2430
0a5d24ae
DN
2431 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2432 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2433
a4ada374
DN
2434 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2435 * xterm.c (syms_of_xterm):
2436 * xfaces.c (syms_of_xfaces):
2437 * xdisp.c (syms_of_xdisp):
2438 * lread.c (syms_of_lread):
2439 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2440 build_string.
91433552 2441
a4ada374
DN
2442 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2443
af98fc7f
SM
24442009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2445
8ab1650e 2446 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2447
e90292a9
JD
24482009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2449
2450 * keyboard.h: Declare timer_check.
2451
2452 * keyboard.c (timer_check_2): New function that does what the old
2453 timer_check did.
2454 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2455 returned, i.e. don't return -1 with timers pending.
2456
2457 * process.c: Remove extern declaration of timer_check.
2458
2459 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2460 even if timer_check returned -1.
2461
af98fc7f
SM
2462 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2463 xg_dialog_data.
e90292a9
JD
2464 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2465 the event loop.
2466 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2467 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2468 Destroy the dialog after xg_dialog_run.
2469
045b83c0
SM
24702009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2471
2472 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2473
1fb99a3a
JD
24742009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2475
2476 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2477
04e452cb
JB
24782009-11-09 Juanma Barranquero <lekktu@gmail.com>
2479
2480 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2481
ef7417fd
SM
24822009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2483
2484 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2485 w32menu.c, and nsmenu.m.
2486 Simplify the obsolete case where position is nil.
2487 (cleanup_popup_menu): New function, moved from nsmenu.m.
2488 (struct skp): Remove slot `notreal'.
2489 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2490 adjust callers.
2491 (single_menu_item): Adjust call to parse_menu_item.
2492 (syms_of_menu): Defsubr x-popup-menu.
2493 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2494 (keymap_panes): Don't export any more.
2495 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2496 (xmenu_show): Declare.
2497 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2498 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2499 * keyboard.h (parse_menu_item): Update declaration.
2500 * xmenu.c (Fx_popup_menu): Remove.
2501 (syms_of_xmenu): Don't defsubr x-popup-menu.
2502 * w32menu.c (Fx_popup_menu): Remove.
2503 (syms_of_w32menu): Don't defsubr x-popup-menu.
2504 * nsmenu.m (cleanup_popup_menu): Remove.
2505 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2506 moved to menu.c's Fx_popup_menu.
2507 (Fx_popup_menu): Remove.
2508 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2509 menu_items (it's done in menu.c already).
2510
424d6179
SM
25112009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2512
2513 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2514 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2515
c0df13a6 25162009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2517
2518 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2519 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2520 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2521 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2522
2de9f71c
SM
25232009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2524
2525 Let integers use up 2 tags to give them one extra bit and thus double
2526 their range.
2527 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2528 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2529 New macros.
2530 (enum Lisp_Type): Use them. Give explicit values.
2531 (Lisp_Type_Limit): Remove.
2532 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2533 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2534 Pay attention to USE_2_TAGS_FOR_INTS.
2535 (INTEGERP): Use LISP_INT_TAG_P.
2536 * fns.c (internal_equal): Simplify the default case.
2537 (sxhash): Use case_Lisp_Int.
2538 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2539 any more.
2540 (Ftype_of): Use case_Lisp_Int.
2541 (store_symval_forwarding): Take into account the fact that Ints can
2542 now have more than one tag.
2543 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2544 buffer_slot_type_mismatch):
2545 * xfaces.c (face_attr_equal_p):
2546 * print.c (print_object):
2547 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2548 Use case_Lisp_Int.
2549
323637a2
EZ
25502009-11-06 Eli Zaretskii <eliz@gnu.org>
2551
7ac65b38
EZ
2552 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2553
323637a2
EZ
2554 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2555 warning.
2556
e511451f
JD
25572009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2558
2559 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2560
2561 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2562
2563 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2564 ButtonPressRelease and MotionNotify (bug#4870).
2565
5e2327cf
DN
25662009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2567
5adc433e
DN
2568 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2569
d67b4f80
DN
2570 * xterm.c (syms_of_xterm):
2571 * xselect.c (syms_of_xselect):
2572 * xmenu.c (syms_of_xmenu):
2573 * xfns.c (syms_of_xfns):
2574 * xfaces.c (syms_of_xfaces):
2575 * xdisp.c (syms_of_xdisp):
2576 * window.c (syms_of_window):
2577 * w32fns.c (syms_of_w32fns):
2578 * undo.c (syms_of_undo):
2579 * textprop.c (syms_of_textprop):
2580 * terminal.c (syms_of_terminal):
2581 * syntax.c (syms_of_syntax):
2582 * sound.c (syms_of_sound):
2583 * search.c (syms_of_search):
2584 * print.c (syms_of_print):
2585 * minibuf.c (syms_of_minibuf):
2586 * macros.c (syms_of_macros):
2587 * keymap.c (syms_of_keymap, initial_define_key)
2588 (initial_define_lispy_key):
2589 * keyboard.c (syms_of_keyboard):
2590 * insdel.c (syms_of_insdel):
2591 * image.c (syms_of_image):
2592 * fringe.c (syms_of_fringe):
2593 * frame.c (syms_of_frame):
2594 * fontset.c (syms_of_fontset):
2595 * fns.c (syms_of_fns):
2596 * fns.c (syms_of_fns):
2597 * fileio.c (syms_of_fileio):
2598 * fileio.c (syms_of_fileio):
2599 * eval.c (syms_of_eval):
2600 * doc.c (syms_of_doc):
2601 * dispnew.c (syms_of_display):
2602 * dired.c (syms_of_dired):
2603 * dbusbind.c (syms_of_dbusbind):
2604 * data.c (syms_of_data):
2605 * composite.c (syms_of_composite):
2606 * coding.c (syms_of_coding):
2607 * cmds.c (syms_of_cmds):
2608 * charset.c (define_charset_internal, syms_of_character):
2609 * ccl.c (syms_of_ccl):
2610 * category.c (syms_of_category, init_category_once):
2611 * casetab.c (syms_of_casetab):
2612 * casefiddle.c (syms_of_casefiddle):
2613 * callint.c (syms_of_callint):
2614 * bytecode.c (syms_of_bytecode):
2615 * buffer.c (keys_of_buffer, syms_of_buffer):
2616 * alloc.c (syms_of_alloc):
2617 * process.c (syms_of_process, init_process):
2618 * lread.c (syms_of_lread, init_obarray):
2619 * font.c (build_style_table):
2620 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2621 intern_c_string, calls to make_pure_string with
2622 make_pure_c_string. Use pure_cons instead of Fcons.
2623
5e2327cf
DN
2624 * process.c (socket_options): Make it const.
2625 (set_socket_option, init_process): Use a const pointer.
2626
2627 * lread.c (intern_c_string): New function.
2628 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2629 (defvar_int): Uset it. Make the name const char*.
2630
2631 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2632 (defvar_int): Update prototypes.
2633 (DEFUN, EXFUN): Support for prototypes is now required.
2634 (intern_c_string): New prototype.
2635 (struct Lisp_Subr): Make symbol_name constant.
2636
2637 * font.c (struct table_entry): Remove unused member. Make NAMES
2638 constant.
2639 (weight_table, slant_table, width_table): Make constant.
2640
2641 * emacs.c (struct standard_args): Make name and longname constant.
2642
2643 * character.h (DEFSYM): Use intern_c_string.
2644
a56eaaef
DN
26452009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2646
2647 * alloc.c (make_pure_c_string): New function.
2648
2649 * eval.c (Fautoload): Purecopy all arguments.
2650
f6a07420
KH
26512009-11-05 Kenichi Handa <handa@m17n.org>
2652
2653 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2654 the buffer in case of replace.
2655
5d28d4b1
DN
26562009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2657
2658 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2659
b349d111
SM
26602009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2661
d528b1ce
SM
2662 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2663 when applicable (bug#4851).
2664
b349d111
SM
2665 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2666 (P_): Support for prototypes is now required.
2667
c38eb027
CY
26682009-10-31 Chong Yidong <cyd@stupidchicken.com>
2669
2670 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2671 (Bug#4827).
2672
0405f8d9
EZ
26732009-10-30 Eli Zaretskii <eliz@gnu.org>
2674
d528b1ce 2675 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2676
ca0a881a
DN
26772009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2678
2679 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2680
d528b1ce
SM
2681 * lread.c (Fload): Purecopy the file name when building
2682 Vpreloaded_file_list.
ca0a881a 2683
47e0e0e4
JR
26842009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2685
2686 * w32fns.c (syms_of_w32fns): Change default value of
2687 w32-scroll-lock-modifier to nil. (Bug#2827)
2688
057bce6f
JB
26892009-10-26 Juanma Barranquero <lekktu@gmail.com>
2690
782a943e 2691 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2692
242bc74c
AS
26932009-10-26 Andreas Schwab <schwab@redhat.com>
2694
2695 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2696
522d013a
JB
26972009-10-26 Juanma Barranquero <lekktu@gmail.com>
2698
2699 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2700 For delta < 0, skip check that only makes sense when the mini-window
2701 is going to be enlarged. (Bug#4534)
2702
18060980
CY
27032009-10-25 Chong Yidong <cyd@stupidchicken.com>
2704
2705 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2706 string in menu maps (Bug#4471).
2707
fec8f0fe
CY
27082009-10-24 Chong Yidong <cyd@stupidchicken.com>
2709
2710 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2711 FRAME_NS_VIEW on terminal frames (Bug#4765).
2712
10d66ec0
AS
27132009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2714
1cae01f7
AS
2715 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2716 DBUS_TYPE_UINTnn separately to get proper sign extension.
2717
58a12889
AS
2718 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2719 can properly handle unsigned types.
d528b1ce 2720 (make_uid, make_gid): Remove.
58a12889 2721
987c9327
AS
2722 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2723 types again.
2724
522d013a 2725 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2726 (system_process_attributes): Likewise.
2727
905a9ed3
DN
27282009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2729
2730 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2731
2732 * eval.c (Fautoload): Purecopy the filename. Simplify.
2733
2734 * category.c (Fdefine_category): Purecopy docstring.
2735
a599b3e8
AS
27362009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2737
7b792fc9
AS
2738 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2739
a599b3e8
AS
2740 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2741
b35ac83e
CY
27422009-10-23 Chong Yidong <cyd@stupidchicken.com>
2743
2744 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2745 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2746 (Bug#4775).
2747
e8903e00
SM
27482009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2751 (init_fileio_once):
2752 * lisp.h (init_fileio_once): Remove.
2753 * emacs.c (main): Don't call init_fileio_once.
2754
8f43cbf3
DN
27552009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2756
2757 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2758
26898943
AS
27592009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2760
2761 * doprnt.c (doprnt): Fix overflow check.
2762
5c646d5a
JD
27632009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2764
3132a7ea
JD
2765 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2766
5c646d5a
JD
2767 * xterm.h (x_wait_for_event): Declare it.
2768
2769 * xterm.c (pending_event_wait): New variable.
2770 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2771 see pending_event_wait.eventtype.
2772 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2773 (x_new_font): Call change_frame_size with new rows/columns before we
2774 try to resize the frame.
5c646d5a 2775 (x_wait_for_event): New function.
d528b1ce
SM
2776 (x_set_window_size_1): Don't change gravity unless change_gravity
2777 is set.
5c646d5a
JD
2778 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2779 don't change frame size, instead wait for the ConfigureNotify.
2780 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2781 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2782 (x_initialize): Initialize pending_event_wait.
2783
2784 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2785 size.
2786
2787 * widget.c (EmacsFrameSetValues): Add comment.
2788 (EmacsFrameSetCharSize): Just call x_set_window_size.
2789
2790 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2791 x_wait_for_event.
d528b1ce 2792 (flush_and_sync): Remove again.
5c646d5a
JD
2793 (xg_get_font_name): Suggest monospace if no previous font is known.
2794
e9c1637d
SM
27952009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2796
2797 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2798 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2799
5a72cccb
YM
28002009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2801
2802 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2803 processing pending events when event is filtered for input method.
ab04798f 2804 (Bug#3681)
5a72cccb 2805
2629aa37
JB
28062009-10-20 Juanma Barranquero <lekktu@gmail.com>
2807
2808 * fns.c: Add #endif accidentally removed in previous change.
2809
c3417a74
DN
28102009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2811
2812 * fns.c: Remove code for unsupported system: MAC_OS.
2813 * image.c: Likewise. Include setjmp.h.
2814
9685cef2
JD
28152009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2816
2817 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2818 pixel -1 (bug #4742).
2819
d7306fe6
DN
28202009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2821
019d2c4c
DN
2822 * process.c (create_pty): Remove conditionals for no longer
2823 supported systems: UNIPLUS and RTU.
2824
ee6bacd4
DN
2825 * xterm.c:
2826 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2827
d7306fe6
DN
2828 * alloc.c: Do not define struct catchtag.
2829 * eval.c: Move struct catchtag definition ...
2830 * lisp.h: ... here.
2831
2832 * image.c: Move png.h #include earlier to avoid warnings.
2833
2834 * xterm.c:
2835 * xsmfns.c:
2836 * xselect.c:
2837 * xrdb.c:
2838 * xmenu.c:
2839 * xftfont.c:
2840 * xfont.c:
2841 * xfns.c:
2842 * xfaces.c:
2843 * xdisp.c:
2844 * window.c:
2845 * widget.c:
2846 * w32xfns.c:
2847 * w32uniscribe.c:
2848 * w32term.c:
2849 * w32select.c:
2850 * w32reg.c:
2851 * w32proc.c:
2852 * w32menu.c:
2853 * w32inevt.c:
2854 * w32heap.c:
2855 * w32font.c:
2856 * w32fns.c:
2857 * w32console.c:
2858 * w32.c:
2859 * w16select.c:
2860 * vm-limit.c:
2861 * unexsol.c:
2862 * unexec.c:
2863 * unexcw.c:
2864 * unexaix.c:
2865 * undo.c:
2866 * tparam.c:
2867 * textprop.c:
2868 * terminfo.c:
2869 * terminal.c:
2870 * termcap.c:
2871 * term.c:
2872 * syntax.c:
2873 * sound.c:
2874 * sheap.c:
2875 * search.c:
2876 * scroll.c:
2877 * region-cache.c:
2878 * regex.c:
2879 * ralloc.c:
2880 * process.c:
2881 * print.c:
b024548b
DN
2882 * nsterm.m:
2883 * nsselect.m:
2884 * nsmenu.m:
2885 * nsimage.m:
2886 * nsfont.m:
2887 * nsfns.m:
d7306fe6
DN
2888 * msdos.c:
2889 * minibuf.c:
2890 * menu.c:
2891 * marker.c:
2892 * macros.c:
2893 * keymap.c:
2894 * keyboard.c:
2895 * intervals.c:
2896 * insdel.c:
2897 * indent.c:
2898 * gtkutil.c:
2899 * ftxfont.c:
2900 * ftfont.c:
2901 * fringe.c:
2902 * frame.c:
2903 * fontset.c:
2904 * font.c:
2905 * fns.c:
2906 * floatfns.c:
2907 * filelock.c:
2908 * fileio.c:
2909 * emacs.c:
2910 * editfns.c:
2911 * dosfns.c:
2912 * doprnt.c:
2913 * doc.c:
2914 * dispnew.c:
2915 * dired.c:
2916 * dbusbind.c:
2917 * data.c:
2918 * composite.c:
2919 * coding.c:
2920 * cmds.c:
2921 * cm.c:
2922 * chartab.c:
2923 * charset.c:
2924 * character.c:
2925 * ccl.c:
2926 * category.c:
2927 * casetab.c:
2928 * casefiddle.c:
2929 * callproc.c:
2930 * callint.c:
2931 * bytecode.c:
2932 * buffer.c:
2933 * atimer.c: Include setjmp.h. (Bug#4643)
2934
fd5f21e6
SM
29352009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2936
4c0354d7
SM
2937 Remove leftover table unibyte_to_multibyte_table.
2938 * character.c (unibyte_to_multibyte_table): Remove.
2939 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2940 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2941 * character.h (UNIBYTE_TO_CHAR): New macro.
2942 (MAKE_CHAR_MULTIBYTE): Use it.
2943 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2944 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2945 (message_dolog, set_message_1):
2946 * search.c (Freplace_match):
2947 * editfns.c (Fcompare_buffer_substrings):
2948 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2949 (concat):
2950 * insdel.c (copy_text, count_size_as_multibyte):
2951 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2952 * term.c (produce_glyphs):
2953 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2954 * regex.c (RE_CHAR_TO_MULTIBYTE):
2955 * cmds.c (internal_self_insert):
2956 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2957
fd5f21e6
SM
2958 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2959
4418646e
DN
29602009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2961
2962 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2963
35f5c1d2
JB
29642009-10-16 Juanma Barranquero <lekktu@gmail.com>
2965
2966 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2967
a0cd8f6b
AR
29682009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2969
2970 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2971 still needed under Tiger.
2972
2973 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2974
2975 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2976 __Apple__.
2977
2978 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2979
01a8d3fa
KH
29802009-10-15 Kenichi Handa <handa@m17n.org>
2981
2982 * print.c (print_object): Escape a symbol like "2E10" too.
2983
bf6c75c9 29842009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2985
2986 Cleanups and changes for 64-bit compile under Snow Leopard.
2987 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2988
2989 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2990
c5959062 2991 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2992 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2993 cast argument.
2994 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2995 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2996
2997 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2998
2999 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
3000 where appropriate.
3001
3002 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
3003 where appropriate.
6e4780c5
JB
3004 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
3005 Use stringWithUTF8String.
bf6c75c9
AR
3006 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
3007
6e4780c5
JB
3008 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
3009 Add formal protocol mention to inheritance.
bf6c75c9
AR
3010 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
3011
6e4780c5
JB
3012 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
3013 Fix printf format.
bf6c75c9
AR
3014 (ns_query_color): Use CGFloat where appropriate.
3015 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 3016 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
3017 argument.
3018
3d87f118
AR
3019 * config.in (NS_HAVE_NSINTEGER): Drop.
3020
a95c8102
AR
3021 * dbusbind.c (dbus-method-return-internal)
3022 (dbus-method-error-internal): Use long format in printf, and cast
3023 argument.
3024
3025 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
3026 in printf, and cast argument.
3027
6873acca 3028 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
3029 cast argument.
3030
9ec6f100
GM
30312009-10-11 Glenn Morris <rgm@gnu.org>
3032
3033 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
3034
5be883cd
JD
30352009-10-08 Jan Djärv <jan.h.d@swipnet.se>
3036
3037 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
3038 menu bar with a small width so it doesn't enlarge the frame.
3039
d7a39b51
JB
30402009-10-08 Juanma Barranquero <lekktu@gmail.com>
3041
3042 * fontset.c (Fset_fontset_font): Fix typos in error messages.
3043
0c2b6f8e
GM
30442009-10-06 Glenn Morris <rgm@gnu.org>
3045
3046 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
3047 SOME_MACHINE_LISP (this enters indirectly via DOC).
3048
e02131a2
EZ
30492009-10-05 Eli Zaretskii <eliz@gnu.org>
3050
3051 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
3052
b4744254
EZ
30532009-10-04 Eli Zaretskii <eliz@gnu.org>
3054
3055 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
3056 Doc fix.
3057
dbf64827
JB
30582009-10-03 Martin Rudalics <rudalics@gmx.at>
3059
3060 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
3061
e9a0aef8
MA
30622009-10-02 Michael Albinus <michael.albinus@gmx.de>
3063
d528b1ce 3064 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
3065 used anymore outside fileio.c.
3066
3067 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
3068
64eb2b56
JB
30692009-10-01 Juanma Barranquero <lekktu@gmail.com>
3070
3071 * lisp.h (Qdelete_directory_internal):
3072 Declare, instead of Qdelete_directory.
3073
3074 * w32fns.c (Fsystem_move_file_to_trash): Use it.
3075
9d28c33e
SM
30762009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
3077
3078 * eval.c (Fcalled_interactively_p): Add `kind' argument.
3079
9d8f3bd9
MA
30802009-10-01 Michael Albinus <michael.albinus@gmx.de>
3081
9d28c33e 3082 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
3083 Fdelete_directory. It is not a command anymore. It has no file
3084 name handler.
3085
9694740b
SM
30862009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
3087
3088 * xdisp.c (get_next_display_element): Use an enum in last change.
3089
748e162f
KH
30902009-09-28 Kenichi Handa <handa@m17n.org>
3091
9694740b 3092 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
3093 unibyte_display_via_language_environment in handling
3094 Vnobreak_char_display.
3095
17efd58d
AR
30962009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3097
3098 * nsterm.h (ns_app_name): New extern variable.
3099
3100 * nsterm.m (ns_app_name): New variable.
3101 (ns_term_init): Set and use it.
3102 (ns_term_shutdown): Use it.
3103
3104 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
3105 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
3106
3107 * nsfns.m (ns_set_name_iconic, ns_set_name)
3108 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
3109 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
3110
9694740b
SM
3111 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
3112 Remove double-casting in client_data comparison.
31c2d412 3113
3208cb35
YM
31142009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3115
3116 * keyboard.c (make_lispy_event): Remember last wheel direction.
3117 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
3118
b7d552d6
GM
31192009-09-26 Glenn Morris <rgm@gnu.org>
3120
3121 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
3122 internal.elc. Add term/pc-win.elc.
3123 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
3124 term/x-win.elc.
3125 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
3126 term/w32-win.elc.
3127 (NS_SUPPORT): New.
3128 (lisp): Add NS_SUPPORT.
3129 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3130
4ff670a8
DR
31312009-09-25 David Reitter <david.reitter@gmail.com>
3132
3133 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3134 on Mac OS X 10.6+ (bug#4513).
3135
feabfb6c
JB
31362009-09-24 Juanma Barranquero <lekktu@gmail.com>
3137
3138 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3139 some parts of Emacs code (like font selection) don't grok them.
3140 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3141
de59072a
AS
31422009-09-24 Andreas Schwab <schwab@redhat.com>
3143
3144 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3145
a489517b
JB
31462009-09-24 Juanma Barranquero <lekktu@gmail.com>
3147
3148 * dired.c (Fdirectory_files): Fix typo in docstring.
3149
0592970c
AR
31502009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3151
3152 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3153 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3154 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3155 under GNUstep.
3156 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3157
3158 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3159 glyph advancement.
3160
48e8a88b
AR
31612009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3162
3163 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3164 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3165
3166 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3167 deleted (bug #4492).
3168
e14f0a78
AR
3169 * nsfont.m (Vns_reg_to_script): New lisp variable.
3170 (syms_of_nsfont): Declare it.
3171 (ns_registry_to_script): New function.
3172 (ns_get_req_script): Call it.
3173 (ns_findfonts): Don't give up on non-unicode registry.
3174
3175 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3176
5b650faa
SM
31772009-09-20 Tom Tromey <tromey@redhat.com>
3178
3179 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3180 batch mode (bug#4228).
3181
a489517b 31822009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3183
3184 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3185 carefully. (Bug #4339)
0bae4e09 3186
fcfe06f3
CY
31872009-09-18 Chong Yidong <cyd@stupidchicken.com>
3188
d798ba87 3189 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3190
31642728
AR
31912009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3192
3193 * emacs.c (inhibit_x_resources): Update doc string for NS.
3194 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3195 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3196
3197 * nsterm.h (ns_no_defaults): Remove.
3198
3199 * nsterm.m (ns_no_defaults): Remove.
3200 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3201 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3202 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3203 don't update the NSWindow itself.
3204 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3205 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3206
3207 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3208 ns_use_qd_smoothing.
3209
3210 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3211 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3212 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3213 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3214
8686ac71
JB
32152009-09-17 Juanma Barranquero <lekktu@gmail.com>
3216
3217 * emacs.c (inhibit_x_resources): New variable.
3218 (main) [HAVE_NS]: Don't process --quick command line option.
3219 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3220
3221 * lisp.h (inhibit_x_resources): Declare it extern.
3222
3223 * w32reg.c (x_get_string_resource):
3224 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3225
e227ba05
EZ
32262009-09-17 Eli Zaretskii <eliz@gnu.org>
3227
362654a6
JB
3228 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3229 Add lisp/term/internal.elc.
e227ba05 3230
742d40e8
SM
32312009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3232
3233 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3234 (bug#4461).
3235
005bd5a2
DN
32362009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3237
3238 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3239
3240 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3241 (OBJECTS_MACHINE): Remove, unused.
3242
f9af9719
SM
32432009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3244
3245 * frame.c (x_get_resource_string): Remove unused.
3246
0307c7d2
JD
32472009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3248
3249 * xterm.c (x_new_font): Call change_frame_size before calling
3250 x_set_window_size, in case frame size won't change.
3251
3252 * frame.c (x_set_font): Remove dead code.
3253
428b13d6
SM
32542009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3255
3256 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3257
5766c380
SM
32582009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3259
3260 * lread.c (Fload): Don't output a message after loading an obsolete
3261 package any more (done in Lisp now).
3262
2fd0161b
CY
32632009-09-12 Chong Yidong <cyd@stupidchicken.com>
3264
3265 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3266
bc5e75b6
SM
32672009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3268
3269 * keymap.c (Fwhere_is_internal): Use nconc2.
3270
c31c985e
AM
32712009-09-11 Alan Mackenzie <acm@muc.de>
3272
3273 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3274 batch mode.
3275
78012bd2
AS
32762009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3277
3278 * xdisp.c (display_mode_element): Detect cycles.
3279
9d889332
SM
32802009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3281
3282 * keymap.c (where_is_internal): Don't erroneously return nil right after
3283 filling the cache.
3284 (where_is_internal_1): Fix up typo.
3285
7ab5d780
GM
32862009-09-11 Glenn Morris <rgm@gnu.org>
3287
3288 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3289 share a common doc-string.
3290
5238a749
SM
32912009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3292
66d77eda
SM
3293 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3294 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3295
5238a749
SM
3296 * keymap.c (QCadvertised_binding): New constant.
3297 (syms_of_keymap): Initialize it.
3298 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3299 if applicable.
3300
19f48442
SM
33012009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3302
50d4ba39
SM
3303 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3304 (parse_menu_item): Streamline since bindings are recomputed all the
3305 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3306 more and don't support lmenu's menu-alias any more either.
3307
a88a5372
SM
3308 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3309 (where_is_internal): Strip it down to only traverse the keymaps.
3310 Move the cache handling from Fwhere_is_internal to here.
3311 (Fwhere_is_internal): Move the handling of remapping and the choice of
3312 the best binding from where_is_internal to here.
3313 Unify the cached/noncached paths, so remapping is also handled
3314 correctly when the cache is used, and so the cache can be used to
3315 speed up remap-handling when applicable.
3316 Give preference to non-remapped bindings.
3317 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3318 non-remapped bindings.
3319 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3320 command remapping.
3321
19f48442
SM
3322 * xdisp.c (display_mode_element): Move list length limit from 50 to
3323 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3324
599498c3 33252009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3326
3327 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3328
f9b7b5ac
SM
33292009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3330
a53af587
JB
3331 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3332 (Bug#4334)
3333
f9b7b5ac
SM
3334 * keymap.c (where_is_internal): Filter out shadowed remappings.
3335 Assume that where_is_internal returns unshadowed bindings to simplify
3336 the code and get rid of the gotos. Use ASIZE.
3337
04f4b72d
JD
33382009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3339
4da146f2
JD
3340 * xterm.c (x_focus_changed): If we get a focusout and pointer
3341 is invisible, make it visible.
3342
04f4b72d
JD
3343 * xterm.h: Remove condition for declaration of
3344 x_*_window_to_frame.
3345
7cef7ce3
SM
33462009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3347
3348 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3349 initial terminal as well.
3350
a54fa5b7
JD
33512009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3352
3353 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3354 x_menubar_window_to_frame.
a54fa5b7 3355
50426a04 3356 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3357 (XTmouse_position): Do not return valid positions
3358 for clicks in the menubar and the toolbar for Gtk+.
3359
3360 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3361 if the widget for the event has the same top level as a frame,
3362 return the frame.
3363 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3364 internal windows, bug #4122.
3365 (x_non_menubar_window_to_frame): Remove.
3366
5a021dd0
GM
33672009-09-02 Glenn Morris <rgm@gnu.org>
3368
3369 * buffer.c (default-major-mode): Move most of the doc from here...
3370 (major-mode): ... to here.
3371
548fe2f3
NR
33722009-08-30 Nick Roberts <nickrob@snap.net.nz>
3373
3374 * process.c (wait_reading_process_output): Keep the descriptor
3375 when pty is used by a non-child process, e.g., in I/O buffer of
3376 GDB this allows inferior to be restarted.
3377
e0840eef
EZ
33782009-08-29 Eli Zaretskii <eliz@gnu.org>
3379
3380 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3381 both branches into one.
3382
82e98df4
SM
33832009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3384
3385 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3386 (main): Use enable-multibyte-characters rather than
3387 default-enable-multibyte-characters. Output a warning message when
3388 running a unibyte session.
3389
890617cb
YM
33902009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3391
3392 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3393 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3394 (copy_data_segment): Also copy __program_vars section.
3395 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3396 (dump_it) [LC_DYLD_INFO]: Use it.
3397
3398 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3399
e7adeadc
EZ
34002009-08-28 Eli Zaretskii <eliz@gnu.org>
3401
3402 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3403 $(SRC)/buildobj.h.
3404 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3405 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3406 $(SRC)/buildobj.h.
3407 (clean): Add buildobj.h.
3408
3ed8bbdc
TZ
34092009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3410
3411 * print.c (print_object): Set escapeflag to 1 when printing
3412 hashtable keys and values.
3413
155a6764
SM
34142009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3415
3416 * lread.c (read_integer): Use doubles (and potentially return a float
3417 number) as we do in string-to-number.
3418 (read1): Use strtol to read integers, signal errors on strtol's
3419 overflow and use floats if strtol's output is too large for
3420 Elisp integers.
3421
877610de
EZ
34222009-08-27 Eli Zaretskii <eliz@gnu.org>
3423
3424 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3425 (make-buildobj-SH): Fix last change.
3426 (SRC): Move to before where it's first used.
3427
ef73e7be
KH
34282009-08-27 Kenichi Handa <handa@m17n.org>
3429
550c8289
KH
3430 * process.c (send_process): Use encode_coding_object instead of
3431 encode_coding_string to perform eol-conversion even if the string
3432 is unibyte.
3433
60afa08d
KH
3434 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3435 character.
3436
ef73e7be 3437 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3438 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3439
7b3a82d7
DN
34402009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3441
5654bf63
DN
3442 * callproc.c (Fcall_process): Remove always true #if.
3443
7b3a82d7
DN
3444 * lisp.h: Replace #if 0 code for checking with text pointing to
3445 the --enable-checking configure flag.
3446
3447 * emacs.c (main): Mention the --enable-profiling configure flag
3448 instead of using CFLAGS.
3449
878bde49
KR
34502009-08-26 Ken Raeburn <raeburn@raeburn.org>
3451
3452 * Makefile.in (buildobj.h): New target.
3453 (doc.o): Depend on it.
3454 (temacs${EXEEXT}): Don't generate buildobj.lst.
3455 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3456 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3457 ($(BLD)/doc.$(O)): Depend on it.
3458 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3459 provided by Eli Zaretskii.)
3460 ($(TEMACS)): Don't generate buildobj.lst.
3461 * doc.c: Include buildobj.h.
3462 (buildobj): New static variable.
3463 (Fsnarf_documentation): Use it, instead of opening and reading
3464 buildobj.lst.
3465
1574224c
MA
34662009-08-25 Michael Albinus <michael.albinus@gmx.de>
3467
3468 * dbusbind.c (Fdbus_call_method)
3469 (Fdbus_call_method_asynchronously): Use English numeric format for
3470 timeout values in doc string.
3471
d9da2f45
KH
34722009-08-25 Kenichi Handa <handa@m17n.org>
3473
ef73e7be
KH
3474 * alloc.c (mark_char_table): New function.
3475 (mark_object): Use mark_char_table for a char-table.
3476
d9da2f45
KH
3477 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3478 (CHAR_TABLE_REF): Use it.
3479
c8edcc01
KR
34802009-08-23 Ken Raeburn <raeburn@raeburn.org>
3481
3482 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3483 before invoking the newly build emacs to check for load-path
3484 shadowing.
3485
7763401b
GM
34862009-08-22 Glenn Morris <rgm@gnu.org>
3487
3488 * Makefile.in (bootstrap_exe): New variable.
3489 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3490 Use ${bootstrap_exe}.
3491
729eadda
EZ
34922009-08-22 Eli Zaretskii <eliz@gnu.org>
3493
3494 * coding.h (encode_coding_string): Don't encode unibyte strings.
3495 (Bug#4047)
3496
eb4c6ace
MA
34972009-08-22 Michael Albinus <michael.albinus@gmx.de>
3498
3499 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3500
3501 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3502 intended as hotfix only.
3503 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3504
36e34d1b
AR
35052009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3506
3507 * nsterm.m (ns_get_color): Update documentation properly for last
3508 change, and clean up loose ends in the code left by it. Fix
3509 longstanding bug with 16-bit hex parsing, and add support for
3510 yet another X11 format (rgb:r/g/b) for compatibility.
3511 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3512 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3513
f983eb8a
SM
35142009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3515
3516 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3517
3f56d3c6
MA
35182009-08-20 Michael Albinus <michael.albinus@gmx.de>
3519
3520 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3521 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3522 (xd_initialize, xd_pending_messages): Check, whether
3523 $DBUS_SESSION_BUS_ADDRESS is set.
3524
fb641d68
YM
35252009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3526
3527 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3528
3529 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3530
cf59a374
GM
35312009-08-20 Glenn Morris <rgm@gnu.org>
3532
3533 * emacs.c (system-type): Doc fix.
3534
1373f3be
SM
35352009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3536
3537 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3538 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3539
058ed861
MA
35402009-08-18 Michael Albinus <michael.albinus@gmx.de>
3541
1373f3be
SM
3542 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3543 New functions.
058ed861
MA
3544 (xd_initialize): Revert change from 2009-08-16.
3545
563a866e 35462009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3547
3548 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3549 font-group vector, return nil.
5fc05db0 3550
e42bdf01
CY
35512009-08-17 Chong Yidong <cyd@stupidchicken.com>
3552
3553 * process.c (status_notify): Don't perform redisplay.
3554 (Fdelete_process, list_processes_1, process_send_signal):
3555 Expliticly perform redisplay.
3556 (wait_reading_process_output): Always check process status, but
3557 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3558
4230ab74
KR
35592009-08-17 Ken Raeburn <raeburn@raeburn.org>
3560
1373f3be 3561 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3562 (XFLOAT_INIT): New macro for storing a float value.
3563 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3564 * fns.c (sxhash): Copy out the value of a float in order to
3565 examine its bytes.
3566 * dbusbind.c (xd_append_arg): Likewise.
3567
4230ab74
KR
3568 * emacs.c (main): Don't call syms_of_data twice.
3569
a0645cdd
MA
35702009-08-16 Michael Albinus <michael.albinus@gmx.de>
3571
3572 * dbusbind.c (xd_initialize): Add connection file descriptor to
3573 input_wait_mask, in order to let select() detect, whether a new
3574 message has been arrived.
ca4f31ea 3575 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3576
485db0ba
MA
35772009-08-15 Michael Albinus <michael.albinus@gmx.de>
3578
1373f3be
SM
3579 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3580 New functions.
485db0ba
MA
3581
3582 * lisp.h (xd_pending_messages): Declare.
3583
3584 * keyboard.c (readable_events): Call xd_pending_messages.
3585
b5b98ff4
CY
35862009-08-15 Chong Yidong <cyd@stupidchicken.com>
3587
1373f3be 3588 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3589
f8354c6e
CY
3590 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3591
b5b98ff4
CY
3592 * buffer.c (set_buffer_internal_1)
3593 (swap_out_buffer_local_variables): Check for unbound local
3594 variables (Bug#4138).
3595
8b9fc636
EZ
35962009-08-14 Eli Zaretskii <eliz@gnu.org>
3597
3598 * process.c (create_pty): Fix last change.
3599
ce959360
CY
36002009-08-13 Chong Yidong <cyd@stupidchicken.com>
3601
3602 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3603 (xbm_load_image): Caller changed.
64b807c9 3604 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3605
c7baf7e9
NR
36062009-08-13 Nick Roberts <nickrob@snap.net.nz>
3607
3608 * process.c (create_pty): New function.
3609 (Fstart_process): Use it to allow Emacs to just associate a pty
3610 with the buffer. See associated change in gdb-mi.el.
3611 (list_processes_1): Deal with no program name.
3612 (start_process_unwind): Use pid == -2 to mean no process.
3613
1ac9108a
SM
36142009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3615
3616 * cmds.c (nonundocount): New global variable.
3617 (keys_of_cmds): Initialize it.
3618 (Fself_insert_command): Use it to combine upto 20 sequential chars
3619 into a single undo entry, just like the Qself_insert_command code in
3620 keyboard.c does.
3621 Call frame_make_pointer_invisible, also like the Qself_insert_command
3622 code in keyboard.c does.
3623 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3624 than its own local replacement for it.
3625
e267324c
KR
36262009-08-10 Ken Raeburn <raeburn@raeburn.org>
3627
1ac9108a 3628 * fns.c (concat): Don't re-set string length to its current value.
77437343 3629
1ac9108a
SM
3630 * coding.h (decode_coding_string, encode_coding_string):
3631 Use SBYTES macro.
f0bed503 3632
1ac9108a 3633 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3634 (doprnt): Merge with doprnt1, discarding lispstrings code.
3635 * lisp.h (doprnt_lisp): Don't declare.
3636
416e006d
JL
36372009-08-07 Juri Linkov <juri@jurta.org>
3638
3639 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3640
6f7d5780
DN
36412009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3642
3643 * print.c (syms_of_print): Undo previous change.
3644
f19a0f5b
TZ
36452009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3646
3647 * lread.c (read1, syms_of_lread): Read hashtables back from the
3648 readable format.
3649
3650 * print.c (print_preprocess, print_object): Print hashtables fully
3651 and readably.
3652 (syms_of_print): Provide 'hashtable-print-readable.
3653
b9173dc2
AR
36542009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3655
3656 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3657 no family set.
3658 (nsfont_open): Handle case when entity has no family.
3659
1586503c
AR
36602009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3661
3662 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3663 element, not a list, for match case.
3664
087048cd
KH
36652009-07-28 Kenichi Handa <handa@m17n.org>
3666
3667 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3668 rigidly.
3669
3670 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3671 font_parse_xlfd. Check font properties more rigidly.
3672
780c2506
DN
36732009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3674
31fd7c5c
JB
3675 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3676 bsd-common.h.
780c2506 3677
a8c0cc18
KH
36782009-07-27 Kenichi Handa <handa@m17n.org>
3679
3680 * xfaces.c (face_with_height): Call font_clear_prop.
3681
4fbe2306
CY
36822009-07-26 Chong Yidong <cyd@stupidchicken.com>
3683
111d9af3
CY
3684 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3685
3686 * xterm.c (x_term_init): Use Qx.
3687
4fbe2306
CY
3688 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3689
1ac9108a 3690 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3691 (ns_get_color): Revert 2009-07-16 change.
3692
beb0b7f9
EZ
36932009-07-25 Eli Zaretskii <eliz@gnu.org>
3694
3695 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3696 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3697
2baf5e76
KR
36982009-07-25 Ken Raeburn <raeburn@raeburn.org>
3699
1ac9108a
SM
3700 * coding.h (decode_coding_string, encode_coding_string):
3701 Use SCHARS macro.
8890e5f5 3702
2baf5e76 3703 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3704 (load_depth): Delete.
2baf5e76
KR
3705 (Qload_in_progress): New variable.
3706 (load_unwind): Don't reference load_depth or load_in_progress.
3707 (Fload): Likewise; specbind Qload_in_progress instead.
3708 (init_lread): Don't initialize load_depth.
3709 (syms_of_lread): Initialize and protect Qload_in_progress.
3710
1395c6f5
AR
37112009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3712
3713 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3714
4e2f36cf
AR
37152009-07-23 Yavor Doganov <yavor@gnu.org>
3716
3717 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3718
5dd9a6f7
AR
37192009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3720
3721 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3722 Bugs 3792, 3720, 2402.
3723 (ns_lookup_indexed_color): Check for bad index.
3724 (ns_index_color): Init unused slot to 0.
3725 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3726 Bug 3714, possibly 3082.
5dd9a6f7 3727
c902b920
JR
37282009-07-22 Jason Rumney <jasonr@gnu.org>
3729
1ac9108a
SM
3730 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3731 Position IME window at cursor (Bug#2570).
c902b920
JR
3732 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3733 (globals_of_w32fns): Dynamically load functions required above.
3734
3735 * w32term.c (w32_draw_window_cursor): Send message to reposition
3736 any IME window.
3737
090101cf
CY
37382009-07-21 Chong Yidong <cyd@stupidchicken.com>
3739
3740 * fileio.c: Revert 2009-07-16 changes.
3741 (Vauto_save_include_big_deletions): New variable.
3742 (Fdo_auto_save): Disable auto-save only if
3743 auto-save-include-big-deletions is nil.
3744
e6583e3d
CY
37452009-07-21 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3748 the overflowed pixels into account (Bug#3879).
3749
ece435a5
KR
37502009-07-21 Ken Raeburn <raeburn@raeburn.org>
3751
3752 * lread.c (load_depth): New variable.
3753 (Fload, load_unwind, init_lread): Set it to the load recursion
3754 depth; set load_in_progress as a simple boolean based on the
3755 current load_depth. (Bug#3892)
3756
40b2d973
AR
37572009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3758
3759 * nsfont.m (ns_has_attribute): Remove.
3760 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3761
10be7e0d
JL
37622009-07-18 Juri Linkov <juri@jurta.org>
3763
3764 * process.c (Fset_process_query_on_exit_flag): Mention killing
3765 a buffer in docstring.
3766
fa055055
KH
37672009-07-17 Kenichi Handa <handa@m17n.org>
3768
3769 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3770
042f7b69
YM
37712009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3772
3773 * nsfns.m (Fns_set_alpha): Remove function.
3774 (syms_of_nsfns): Don't defsubr it.
3775
3776 * nsterm.m (ns_get_color): Remove incompatible color formats.
3777 (ns_color_to_lisp): Generate #rrggbb color format string.
3778
4be941e3
RS
37792009-07-16 Richard Stallman <rms@gnu.org>
3780
3781 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3782 (Fset_buffer_auto_saved): Handle save_length = -2.
3783
4e6b227d
CY
37842009-07-16 Chong Yidong <cyd@stupidchicken.com>
3785
3786 * xterm.c (Qx_gtk_map_stock): New var.
3787
3788 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3789 of calling intern each time.
3790
a1856973
YM
37912009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3792
3793 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3794 does tiling.
3795
3796 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3797
497e54d8
KH
37982009-07-14 Kenichi Handa <handa@m17n.org>
3799
72d36834
KH
3800 * font.c (font_vconcat_entity_vectors): New function.
3801 (struct font_sort_data): New member font_driver_preference.
3802 (font_compare): Check font_driver_preference.
3803 (font_sort_entities): The format of the first argument changed.
3804 (font_delete_unmatched): Likewise.
3805 (font_list_entities): The return type changed.
3806 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3807 (font_find_for_lface): Adjuste for the above changes.
3808 Don't suppress the checking of C even if the repertory supports it.
3809 (Flist_fonts): Adjust for the above changes.
72d36834 3810
1ac9108a
SM
3811 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3812 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3813 Reject a font who has adstyle property that is different from a
3814 langname derived from registry property.
1ac9108a 3815 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3816
b6046155
EZ
38172009-07-13 Eli Zaretskii <eliz@gnu.org>
3818
3819 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3820 local copy of dirfilename.
3821
fb6b6049
KH
38222009-07-13 Kenichi Handa <handa@m17n.org>
3823
e2402a5e
KH
3824 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3825 against max_char.
3826
fb6b6049
KH
3827 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3828 calling XSYMBOL (sym).
3829
65156807
EZ
38302009-07-11 Eli Zaretskii <eliz@gnu.org>
3831
1ac9108a
SM
3832 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3833 New function.
3834 (directory_files_internal) [WINDOWSNT]:
3835 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3836 the filesystem of the directory is fast or slow.
3837
3838 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3839 file name.
3840 (is_slow_fs): New function.
3841 (stat): Use it to determine whether to issue more system calls to
3842 get accurate file attributes, when w32-get-true-file-attributes is
3843 `local'.
3844
e0ab5fcf
JD
38452009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3846
3847 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3848 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3849 parameter font-parameter as default to the font dialog.
3850
784ceded
KH
38512009-07-10 Kenichi Handa <handa@m17n.org>
3852
3853 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3854
fb8edc0b
EZ
38552009-07-09 Eli Zaretskii <eliz@gnu.org>
3856
1ac9108a 3857 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3858
fb8edc0b
EZ
3859 * w32.c (stat): Treat UNC file names as residing on remote
3860 drives. (Bug#3542)
3861
635c75b1
KH
38622009-07-09 Kenichi Handa <handa@m17n.org>
3863
3864 * fontset.c (fontset_find_font): Fix previous change.
3865
c1d5ce94
MA
38662009-07-08 Michael Albinus <michael.albinus@gmx.de>
3867
3868 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3869 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3870 error flag.
3871
edb61b39
KH
38722009-07-08 Kenichi Handa <handa@m17n.org>
3873
374bf7e4
KH
3874 * fontset.c (fontset_find_font): Fix the logic of handling
3875 charset_matched.
3876 (font_for_char): Delete unused var.
3877 (generate_ascii_font_name): Delete it.
3878
edb61b39
KH
3879 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3880
3881 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3882 (encode_coding_sjis): Fix the code range check.
3883
0f3f018c
CY
38842009-07-07 Chong Yidong <cyd@stupidchicken.com>
3885
3886 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3887 (Fexpand_file_name): Copy string data properly (Bug#3772).
3888
fcaf6f3a
JD
38892009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3890
3891 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3892 first MapNotify.
3893
6809ca75
KH
38942009-07-07 Kenichi Handa <handa@m17n.org>
3895
3896 * character.h (unibyte_has_multibyte_table): Delete extern.
3897 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3898
3899 * charset.c (Fset_charset_priority): Update charset_unibyte.
3900 (syms_of_charset): Initialize charset_unibyte.
3901
3902 * character.c (unibyte_has_multibyte_table): Delete it.
3903 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3904 charset_unibyte.
3905 (multibyte_char_to_unibyte_safe): Likewise.
3906 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3907
1ac9108a 3908 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3909 (x_produce_glyphs): Likewise.
3910
3911 * .gdbinit (xcharset): Fix the treating $arg0.
3912
ad9e2d54
EZ
39132009-07-04 Eli Zaretskii <eliz@gnu.org>
3914
3915 Emulation of `getloadavg' on MS-Windows.
50426a04 3916 * w32.c: Include float.h.
ad9e2d54
EZ
3917 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3918 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3919 (get_native_system_info, get_system_times): New functions.
3920 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3921 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3922 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3923 g_b_init_get_system_times, and num_of_processors.
3924
0a3472c7
JR
39252009-07-03 Jason Rumney <jasonr@gnu.org>
3926
3927 * w32term.c (w32_initialize): Use standard types.
3928
80904120
EZ
39292009-07-03 Eli Zaretskii <eliz@gnu.org>
3930
3931 * dired.c (Ffile_attributes): Decode user and group names by the
3932 locale's encoding. (Bug#3443)
3933
6978862d
DN
39342009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3935
f8d23104
DN
3936 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3937 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3938
3939 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3940
3941 * term.c (init_tty): Remove spurious #ifdef.
3942
6978862d
DN
3943 * m/mips.h: Mention this file is also used for netbsd.
3944 * m/pmax.h: Remove file.
3945
e044e4fc
JD
39462009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3947
3948 * xterm.h (struct x_display_info): Add invisible_cursor.
3949 (struct x_output): Add current_cursor.
3950
3951 * xterm.c (XTtoggle_invisible_pointer): New function.
3952 (x_define_frame_cursor): Don't define cursor if invisible or the
3953 same as before. Set current_cursor.
3954 (x_create_terminal): Set toggle_invisible_pointer_hook.
3955
3956 * xfns.c (make_invisible_cursor): New function.
3957 (x_set_mouse_color): Call make_invisible_cursor.
3958 Set current_cursor.
3959 (x_window): Set current_cursor.
3960
3961 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3962
3963 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3964 inserting a character.
3965 (read_avail_input): Call frame_make_pointer_visible.
3966
3967 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3968 (frame_make_pointer_invisible, frame_make_pointer_visible):
3969 New functions.
e044e4fc
JD
3970 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3971
3972 * frame.h: Declare frame_make_pointer_invisible and
3973 frame_make_pointer_visible.
3974 (struct frame): Add pointer_invisible.
3975
574c8efa
JD
39762009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3977
7b507248
JD
3978 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3979 frame isn't visible.
3980 (xg_frame_resized): If width/height is -1, get size of window
3981 from X server.
3982
3983 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3984 for MapNotify.
3985
835bdaa7 3986 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3987 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3988 (flush_and_sync): Reintroduce.
574c8efa 3989
3f1c6666 39902009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3991
31fd7c5c 3992 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3993
3994 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3995 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3996
3997 * frame.h: Declare Qsticky.
3998
cad9ef74
JD
3999 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
4000
4001 * nsfns.m (ns_frame_parm_handlers): Ditto.
4002
4003 * frame.c: Declare Qsticky.
4004 (frame_parms): Add sticky.
4005
4006 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
4007
4008 * xterm.h: Declare x_set_sticky.
4009
4010 * xterm.c (x_set_sticky): New function.
4011
69b16610
JD
4012 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
4013 (xg_tool_bar_menu_proxy): Attach enter/leave events to
4014 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
4015
4016 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
4017
4018 * frame.c: Qmaximized is new.
4019 (x_set_frame_parameters): Do not handle fullscreen specially.
4020 Only set width and height if explicitly set.
4021 (x_set_fullscreen): Handle Qmaximized.
4022 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
4023 (syms_of_frame): Initialize Qmaximized.
4024
1ac9108a
SM
4025 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
4026 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
4027
4028 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
4029 for Expose event. Add call to x_check_fullscreen for MapNotify event.
4030 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
4031 set gravity to NorthWestGravity when USE_GTK.
4032 (set_wm_state): New function.
31fd7c5c 4033 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
4034 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
4035 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 4036 or the case when no window manager is running. That means remove calls
3f1c6666
JD
4037 to x_real_positions and x_fullscreen_adjust.
4038
4039 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
4040 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
4041 flush_and_sync.
4042 (xg_height_changed): New function.
4043 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
4044 and gtk_window_set_policy. Set frame gravity after parsing the
4045 geometry string.
3f1c6666
JD
4046 (xg_update_frame_menubar, free_frame_menubar)
4047 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
4048 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
4049 Remove calls to xg_frame_set_char_size.
4050
fd503d99
KH
40512009-07-01 Kenichi Handa <handa@m17n.org>
4052
4053 * keyboard.c (decode_keyboard_code): New function.
4054 (tty_read_avail_input): Decode the input bytes if necessary.
4055
1ac9108a
SM
4056 * coding.c (setup_coding_system):
4057 Initialize coding->carryover_bytes to 0.
fd503d99
KH
4058 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
4059 use Qno_conversion.
4060
24ed93fb
YM
40612009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4062
4063 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
4064
99061dfc
CY
40652009-06-30 Chong Yidong <cyd@stupidchicken.com>
4066
1ac9108a 4067 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 4068
ff90fbde
JR
40692009-06-30 Jason Rumney <jasonr@gnu.org>
4070
4071 * w32term.c (w32_initialize): Use GetModuleHandle for library that
4072 is already loaded.
4073 Set user model ID if supported (bug#1849).
4074
5f445726
JM
40752009-06-29 Jim Meyering <meyering@redhat.com>
4076
4077 Remove useless if-before-xfree test.
4078 * nsfont.m (nsfont_close): Remove useless test.
4079 * term.c (delete_tty): Likewise.
4080 * w32.c (system_process_attributes): Likewise.
4081 * w32font.c (w32font_close): Likewise.
4082 * xfaces.c (x_free_gc): Likewise.
4083 * xselect.c (buffer): Likewise.
4084
b9607587
AS
40852009-06-28 Andreas Schwab <schwab@linux-m68k.org>
4086
4087 * process.c (send_process): Keep decoded string in a local
4088 variable and protect it from GC. (Bug#3521)
4089
89ba96f4
EZ
40902009-06-28 Eli Zaretskii <eliz@gnu.org>
4091
4092 * term.c (create_tty_output) [MSDOS]: #ifdef away.
4093 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
4094
098a1589
CY
40952009-06-28 Chong Yidong <cyd@stupidchicken.com>
4096
485422be
CY
4097 * xdisp.c (start_display, handle_face_prop)
4098 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
4099 (redisplay_window, try_window_id, produce_image_glyph):
4100 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 4101
098a1589
CY
4102 * xterm.c (x_update_window_begin, x_new_focus_frame)
4103 (x_scroll_bar_handle_click, handle_one_xevent)
4104 (handle_one_xevent, XTread_socket, x_focus_on_frame)
4105 (x_make_frame_visible, x_make_frame_invisible)
4106 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
4107 code chunks that are now obsolete.
4108
78c38319
MA
41092009-06-28 Michael Albinus <michael.albinus@gmx.de>
4110
4111 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
4112 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
4113 for hours, when optimzation is enabled.
4114 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
4115 (xd_read_message): Make them static.
4116
4189ed40
CY
41172009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
4118
4119 * term.c (turn_on_face): Allow simultaneously bold and dim
4120 terminal faces (Bug#3530).
4121
cd9b5e16
CY
41222009-06-27 Chong Yidong <cyd@stupidchicken.com>
4123
4e23bedb
CY
4124 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
4125
cd9b5e16
CY
4126 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
4127 truncation glyphs (Bug#3686).
4128
07cc3c35
GM
41292009-06-27 Glenn Morris <rgm@gnu.org>
4130
4131 * m/pmax.h: Restore file, with only netbsd portions.
4132
31fd7c5c 41332009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4134
cd9b5e16 4135 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4136
42d4a64f
KH
41372009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4138
4139 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4140 the arg FORCE_SYMBOL.
4141
930fe55b 41422009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4143
4144 * fontset.c (fontset_find_font): When a usable rfont_def is found
4145 in a fallback font-group, make it the first element of the group.
4146
57ebc3fd
CY
41472009-06-24 Chong Yidong <cyd@stupidchicken.com>
4148
4149 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4150
f084f942
KH
41512009-06-24 Kenichi Handa <handa@m17n.org>
4152
4153 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4154 set for C.
4155 (fontset_font): Record the availability of a font for C both in
4156 the realized fontsets of the current one and the default one.
4157
2f686c87
DN
41582009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4159
4160 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4161 conditional, it is always defined on AIX.
4162
666e158e
MB
41632009-06-23 Miles Bader <miles@gnu.org>
4164
4165 * window.c (Vrecenter_redisplay): New variable.
4166 (syms_of_window): Initialize it.
4167 (Qtty): New extern declaration.
4168 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4169
c6da7cd2
JM
41702009-06-23 Jim Meyering <meyering@redhat.com>
4171
1ac9108a
SM
4172 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4173 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4174 pointer dereferences are guaranteed to be valid.
c6da7cd2 4175
678dca3d
KH
41762009-06-23 Kenichi Handa <handa@m17n.org>
4177
74d75424
KH
4178 * emacs.c (main): Call init_font ().
4179
4180 * font.h (Vfont_log): Extern it.
4181 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4182
4183 * font.c (font_sort_entities, font_list_entities)
4184 (font_matching_entity, font_open_entity)
4185 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4186 (Vfont_log): Delete static.
4187 (font_log_env_checked): Delete this variable.
4188 (font_add_log): Don't check font_log_env_checked.
4189 (font_deferred_log): Check Vfont_log.
4190 (init_font): New function.
4191
678dca3d
KH
4192 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4193
4194 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4195
4196 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4197
4198 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4199
4200 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4201 (face_for_char): Don't call font_deferred_log here.
4202 (font_for_char): Likewise.
4203
8a668709
CY
42042009-06-22 Chong Yidong <cyd@stupidchicken.com>
4205
9a01ee33
CY
4206 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4207 rather than its background_width for drawing the overline and
4208 underline (Bug#489).
4209
4210 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4211 rather than its background_width for drawing the overline and
4212 underline (Bug#489).
ec7c9926
CY
4213 (xg_default_icon_file): New variable.
4214 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4215 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4216
8a668709
CY
4217 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4218 (load_overlay_strings): Remove externs.
4219 (fast_find_position): Function deleted.
4220 (mouse_face_from_buffer_pos): New function, based on
4221 fast_find_position. Correctly handle before-strings,
4222 display-strings, and after-strings (Bug#1220).
4223 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4224
4d4c02d8
CY
42252009-06-21 Chong Yidong <cyd@stupidchicken.com>
4226
1ac9108a 4227 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4228 (move_it_in_display_line_to, move_it_in_display_line_to)
4229 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4230
70243478
CY
42312009-06-21 Chong Yidong <cyd@stupidchicken.com>
4232
4233 * Branch for 23.1.
4234
13087e59
JR
42352009-06-21 Jason Rumney <jasonr@gnu.org>
4236
4237 * w32term.c (keyboard_codepage): New static variable.
4238 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4239 (w32_read_socket) [WM_CHAR]: Use it to decode character
4240 input (bug#3237).
4241 (w32_initialize): Initialize it.
4242 (codepage_for_locale): New function.
4243
4735b74e
KR
42442009-06-20 Ken Raeburn <raeburn@raeburn.org>
4245
4246 * process.c (status_message): Pass Faset index argument as a lisp
4247 object, so as to work with USE_LISP_UNION_TYPE.
4248
0e727afa
YM
42492009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4250
4251 * coding.c (Ffind_coding_systems_region_internal):
4252 Cache checked characters.
4253
cf299835
KH
42542009-06-18 Kenichi Handa <handa@m17n.org>
4255
1ac9108a 4256 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4257
90f20d94
AS
42582009-06-18 Andreas Schwab <aschwab@redhat.com>
4259
4260 * xdisp.c (redisplay_internal): Check that the frame is still
4261 live after redisplay of its windows.
4262 (redisplay_windows): Check that the window is still live.
4263
7f1faf1c
KH
42642009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4265
4266 * coding.c (detect_coding_utf_16): Fix previous change.
4267
cc13543e
KH
42682009-06-16 Kenichi Handa <handa@m17n.org>
4269
4270 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4271 UTF-16 by checking the dispersion of Eth and Oth bytes.
4272
977b85f4
AS
42732009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4274
4275 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4276
66bd43d1
KH
42772009-06-15 Kenichi Handa <handa@m17n.org>
4278
4279 * process.c (status_message): Fix previous change. Be sure to
4280 decode a localized string.
4281
cb5ca9c5
YM
42822009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4283
4284 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4285 add comment explaining why.
4286
ec7709ba 42872009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4288
ec7709ba 4289 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4290
4b7f335c
AR
42912009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4292
4293 * nsfont.m (ns_attribute_value): Remove.
4294 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4295 (ns_has_attribute): Shrink the normal range.
4296 (ns_findfonts): Don't worry about requested spec in determining
4297 need for synthItal.
e41820ee 4298 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4299
73b26103
SZ
43002009-06-14 Seiji Zenitani <zenitani@mac.com>
4301
4302 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4303
5753e4da
KH
43042009-06-11 Kenichi Handa <handa@m17n.org>
4305
4306 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4307 overhang for the static composition case.
4308
3561b671
KH
43092009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4310
5753e4da
KH
4311 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4312 overhang for the automatic composition case.
4313
3561b671
KH
4314 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4315 composition case.
4316
852bbd41
CY
43172009-06-10 Chong Yidong <cyd@stupidchicken.com>
4318
4319 * xdisp.c (get_next_display_element): When handling wrap-prefix
4320 and line-prefix, treat \n as a control character (bug#3502).
4321
9903d1e6
KH
43222009-06-10 Kenichi Handa <handa@m17n.org>
4323
4324 * font.c (font_parse_family_registry): Fix for one-char foundry.
4325 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4326
0bcbaaaa
CY
43272009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4328
4329 * process.c (status_message): Fix handling of multibyte signal
4330 string (Bug#3499).
4331
40aa3f13
JM
43322009-06-09 Jim Meyering <meyering@redhat.com>
4333
1f80c7e2
CY
4334 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4335 color name is missing.
40aa3f13 4336
72d51285
KH
43372009-06-09 Kenichi Handa <handa@m17n.org>
4338
4339 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4340 FROM-CODE and TO-CODE are codepoints of CHARSET.
4341
c1d04d84
AR
43422009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4343
4344 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4345
43462009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4347
4348 Changes to support :script/:lang/:otf in NS font driver.
4349 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4350 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4351 indicate not part of font driver interface, and change callers.
4352 (ns_get_family): Remove pointless null check.
4353 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4354 ns_spec_to_descriptor, ns_descriptor_to_entity.
4355 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4356 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4357 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4358 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4359 (ns_get_req_script, ns_accumulate_script_ranges)
4360 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4361 New functions.
4362 (nsfont_list, nsfont_match): Use ns_findfonts.
4363 (nsfont_open): Use font descriptor instead of traits.
4364 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4365 (dump_glyphstring): Rename to ns_dump_glyphstring.
4366
c7eb9816
AR
4367 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4368
c1d04d84
AR
4369 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4370
4371 * fontset.c (fontset_from_font): Remove NS-specific code.
4372
ec7709ba 43732009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4374
4375 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4376 nonactive windows.
4377
31fd7c5c 43782009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4379
1ac9108a 4380 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4381
68852c13 43822009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4383
4384 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4385
6756cd1d
CY
43862009-06-07 Chong Yidong <cyd@stupidchicken.com>
4387
4388 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4389 account for the overflowing of newlines into the last glyph on the
4390 display line (Bug#3482).
4391
28bf482a
DR
43922009-06-05 David Reitter <david.reitter@gmail.com>
4393
ec7709ba
JB
4394 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4395 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4396 Fns_selection_exists_p, Fns_selection_owner_p.
4397
fdb55376
JR
43982009-06-03 Jason Rumney <jasonr@gnu.org>
4399
4400 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4401 available. (Bug#3379)
4402
05129fbe
KH
44032009-05-29 Kenichi Handa <handa@m17n.org>
4404
1ac9108a
SM
4405 * coding.c (get_translation_table):
4406 Check Venable_character_translation.
05129fbe 4407
ec7709ba 44082009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4409
ec7709ba
JB
4410 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4411 (x_make_frame_visible): Move frame to front rather than calling
15891144 4412 ns_raise_frame().
ec7709ba 4413 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4414 isn't key window.
ec7709ba 4415 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4416 drawRect may be called by NSView even if the frame is hidden.
4417
ec7709ba
JB
4418 * nsfns.m (Fx_create_frame): Follow other ports in
4419 determining visibility; default to t. Ensure async_visible is set.
15891144 4420
21f73755
EZ
44212009-05-23 Eli Zaretskii <eliz@gnu.org>
4422
4423 * dired.c (Ffile_attributes): Doc fix.
4424
34001e41
CY
44252009-05-22 Chong Yidong <cyd@stupidchicken.com>
4426
4427 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4428
46306a17
SM
44292009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4432 and xfont_scratch_props.
4433 (syms_of_xfont): Do it here instead.
4434 (xfont_find_ccl_program): Delete, unused.
4435 (xfont_open): Delete unused var `i'.
4436
ef6e0694
KH
44372009-05-21 Kenichi Handa <handa@m17n.org>
4438
4439 * fontset.c (Qlatin): Don't make it static.
4440
46306a17
SM
4441 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4442 New functions.
ef6e0694
KH
4443 (xfont_scripts_cache, xfont_scratch_props): New variables.
4444 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4445 (xfont_list_pattern): Argument changed. Callers changed.
4446 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4447 (xfont_list): Don't reject a font spec with :script property.
4448 (xfont_has_char): Fix setting of encoding.
4449 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4450 xfont_scratch_props.
4451
44522009-05-19 Kenichi Handa <handa@m17n.org>
4453
46306a17 4454 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4455 Callers changed.
4456
44572009-05-18 Kenichi Handa <handa@m17n.org>
4458
4459 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4460
ac71ced7
SM
44612009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4462
4463 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4464 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4465
1c6d1051
YM
44662009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4467
4468 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4469 (x_delete_terminal): Dissociate resource database from display and
4470 then call XrmDestroyDatabase before closing display.
4471
9b9b779c
AR
44722009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4473
4474 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4475 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4476 whether selected frame is viable before raising it (based on patch
4477 by David Reitter), and improve commentary.
4478 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4479
cccd42d5
KH
44802009-05-15 Kenichi Handa <handa@m17n.org>
4481
4482 * font.c (Ffont_spec): Check arguments.
4483
337fbd17
CY
44842009-05-14 Chong Yidong <cyd@stupidchicken.com>
4485
4486 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4487 weight when testing attributes (Bug#3282).
4488
47a6002f
JD
44892009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4490
4491 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4492 what we expect to get in the next ConfigureNotify event.
4493
9cb363db
YM
4494 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4495 before Xft one (Bug#1696).
4496
b9126609
CY
44972009-05-07 David Reitter <david.reitter@gmail.com>
4498
4499 * nsfns.m (Fx_display_planes): Compute bitplanes using
4500 NSBitsPerPixelFromDepth (Bug#3207).
4501
27a69fd9
CY
45022009-05-10 Chong Yidong <cyd@stupidchicken.com>
4503
4504 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4505
00f37552
TTN
45062009-05-10 Ulrich Mueller <ulm@gentoo.org>
4507
4508 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4509
2d82a920
DR
45102009-05-07 David Reitter <david.reitter@gmail.com>
4511
ec7709ba
JB
4512 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4513 Respect mouse face background.
2d82a920 4514
46b0d52d
DR
45152009-05-07 David Reitter <david.reitter@gmail.com>
4516
ec7709ba
JB
4517 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4518 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4519 in ns_update_begin and ns_update_end.
4520
ce1b23bb
SM
45212009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4522
5996e1b7
SM
4523 * nsfns.m (ns_get_screen): Rewrite.
4524 Don't presume selected-frame is of type `ns'.
4525
ba98e3a0
SM
4526 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4527 all drivers.
4528
ce1b23bb
SM
4529 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4530
bcda200f
YM
45312009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4532
4533 * keyboard.h (add_user_signal): Fix typo in extern.
4534
4535 * lisp.h (add_user_signal): Remove extern.
4536
4537 * unexelf.c (unexec): Consider a section to precede the .bss section
4538 if its addresses overlap that of .bss.
4539 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4540 instead of dumping process.
4541
864660a2
SM
45422009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4545
50da4e56
SM
45462009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4547
4548 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4549
51520a1a
DN
45502009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4551
4552 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4553 any statements.
4554
409ea3a1
AS
45552009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4556
59c4c60f
AS
4557 * process.c (read_process_output): Make sure the current buffer is
4558 always restored.
4559
409ea3a1
AS
4560 * coding.c (record_conversion_result): Don't modify
4561 Vlast_code_conversion_error for successful result.
4562 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4563
56f00ed2
KH
45642009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4565
4566 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4567 (load_charset_map): Remove unnecessary code.
56f00ed2 4568
4491c9d2
DR
45692009-04-30 David Reitter <david.reitter@gmail.com>
4570
35f5b128 4571 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4572 through f24.
4573
6970f632
CY
45742009-04-30 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4577
4578 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4579 face_at_buffer_position.
4580 (face_before_or_after_it_pos, get_next_display_element)
4581 (note_mouse_highlight): Update face_at_buffer_position call.
4582
4583 * term.c (term_mouse_highlight):
4584 * msdos.c (IT_note_mouse_highlight):
4585 * fontset.c (Finternal_char_font):
35f5b128 4586 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4587
4588 * dispextern.h (face_at_buffer_position): Update prototype.
4589
0c616f63
KH
45902009-04-30 Kenichi Handa <handa@m17n.org>
4591
35f5b128 4592 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4593
ad3aaf33
AS
45942009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4595
4596 * callproc.c (Fcall_process): Fix GC protection. Make sure
4597 current buffer is always restored.
4598
c3c963a0
YM
45992009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4600
4601 * atimer.c (init_atimer): Also clear stopped_atimers.
4602
4603 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4604
7e3386cb
YM
4605 * process.c (create_process): Clean up merger residues of
4606 2008-07-17 change.
4607
91f68422
CY
46082009-04-29 Ulrich Mueller <ulm@gentoo.org>
4609
4610 * lread.c (Vread_circle): New variable.
4611 (read1): Disable recursive read if Vread_circle is nil.
4612
24b34550
KH
46132009-04-29 Kenichi Handa <handa@m17n.org>
4614
4615 * fontset.h (set_default_ascii_font): Delete extern.
4616
4617 * fontset.c (set_default_ascii_font): Delete this unused function.
4618
4619 * frame.c (x_set_font): When ARG is a font-object, check if the
4620 font-object matches with the ASCII font-spec of the frame's
9c358bda 4621 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4622
77bf07e1
AS
46232009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4624
4625 * fns.c (Flocale_info): Protect vector from GC during decoding.
4626
4627 * process.c (Fstart_process): Protect argv strings from GC during
4628 encoding.
4629
2c55aacf
AS
46302009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4631
4632 * sysdep.c: Include <ctype.h>.
4633
b892d3c9
DR
46342009-04-27 David Reitter <david.reitter@gmail.com>
4635
35f5b128 4636 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4637 Remove commented-out code.
4638
9d0644c4
JB
46392009-04-26 Johan Bockgård <bojohan@gnu.org>
4640
4641 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4642
b7053016
JR
46432009-04-25 Jason Rumney <jasonr@gnu.org>
4644
4645 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4646
4e8231f3
YM
46472009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4648
4649 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4650 Swap bytes in short integer if fringe bitmap width > 8.
4651
493dcf2c
KH
46522009-04-23 Kenichi Handa <handa@m17n.org>
4653
4654 * xfaces.c (Fx_list_fonts): If a font size is specified in
4655 PATTERN, set it in returned scalable fonts.
4656
401e9e57
CY
46572009-04-22 Chong Yidong <cyd@stupidchicken.com>
4658
708e05dc
CY
4659 * keyboard.c (Fset_input_meta_mode): Doc fix.
4660
4661 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4662
1ac9108a 4663 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4664
4665 * coding.c (Fterminal_coding_system): Doc fix.
4666
4667 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4668 (Fx_display_pixel_height, Fx_display_planes)
4669 (Fx_display_color_cells, Fx_server_max_request_size)
4670 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4671 (Fx_display_mm_height, Fx_display_mm_width)
4672 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4673 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4674 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4675 (check_x_display_info): Handle terminal objects instead of
4676 terminal ids.
4677
401e9e57
CY
4678 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4679 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4680 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4681 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4682
df80c7f0
KH
46832009-04-21 Kenichi Handa <handa@m17n.org>
4684
5a8f12af 4685 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4686 (font_score): Check AVGWIDTH too.
908567ef 4687
df80c7f0
KH
4688 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4689 worst case.
1ac9108a
SM
4690 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4691 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4692
705af33f
JR
46932009-04-19 Jason Rumney <jasonr@gnu.org>
4694
4695 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4696 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4697
4698 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4699 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4700 get_phys_cursor_geometry.
4701
b71ac3dd 4702 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4703 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4704 using get_phys_cursor_geometry.
4705
4706 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4707 correctly calculated.
4708
dc2933eb
JD
47092009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4710
1ac9108a
SM
4711 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4712 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4713 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4714 is deprecated.
4715
973e7849
AS
47162009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4717
4718 * font.c (font_put_frame_data): Use xfree instead of free.
4719
314d66f4
JB
47202009-04-17 Juanma Barranquero <lekktu@gmail.com>
4721
4722 * w32font.c (Qja, Qko): Remove declarations.
4723 (syms_of_w32font): Don't DEFSYM them.
4724
cf702558
CY
47252009-04-17 Chong Yidong <cyd@stupidchicken.com>
4726
4727 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4728
4729 * font.h (Qja, Qko): Extern them.
4730
4731 * ftfont.c (Qja, Qko): Remove declarations.
4732
4733 * xfont.c (Qja, Qko): Remove declarations.
4734
b50504f5
KH
47352009-04-17 Kenichi Handa <handa@m17n.org>
4736
bde25748
KH
4737 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4738 string from a vector to handle Latin-1 characters correctly.
4739
b50504f5
KH
4740 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4741 entity even if the cache hits.
4742
f4646fff
AS
47432009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4744
4745 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4746 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4747
e7deaab0
AS
4748 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4749 * lisp.h: Adjust prototypes.
4750
0a0e7d49
CY
47512009-04-16 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4754 change (Bug#3003).
4755
3c908a57
KH
47562009-04-16 Kenichi Handa <handa@m17n.org>
4757
1ac9108a 4758 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4759
4760 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4761 adstyle.
4762
4763 * ftfont.c (Qja, Qko): Don't make them static.
4764 (enum ftfont_cache_for): New enum.
4765 (fc_charset_table): Undo the previous change.
4766 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4767 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4768 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4769 non-scarable font, try to get AVERAGE_WIDTH.
4770 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4771 Change ft_face_cache from a list of a hash-table. Don't check
4772 `ja' and `ko' adstyle here.
4773 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4774 FTFONT_CACHE_FOR_CHARET.
4775 (ftfont_get_charset): Undo the previous change.
1ac9108a 4776 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4777 (ftfont_close): Likewise.
4778 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4779
4780 * font.c (font_sort_entites): Change the meaning of the arg
4781 BEST-ONLY. Don't optimize for VEC of lenght 1.
4782 (font_select_entity): Just return the value of font_sort_entites.
4783
4784 * xfaces.c (merge_face_vectors): Reflect font properties in
4785 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4786 font_clear_prop if a face attribute doesn't change.
4787
3c908a57
KH
4788 * charset.h (charset_ksc5601): Extern it.
4789
4790 * charset.c (charset_ksc5601): New variable.
4791 (Fdefine_charset_internal): Set charset_ksc5601.
4792 (init_charset_once): Initialize charset_ksc5601 to -1.
4793
d65859c3
DN
47942009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4795
4796 * fileio.c (history_delete_duplicates): Remove unused declaration.
4797
4798 * callint.c (history_delete_duplicates): New declaration.
4799 (Fcall_interactively): Remove command history duplicates when
4800 history_delete_duplicates is true.
4801
3ba010e5
EZ
48022009-04-14 Eli Zaretskii <eliz@gnu.org>
4803
4804 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4805
06f19b91
KH
48062009-04-14 Kenichi Handa <handa@m17n.org>
4807
4808 * font.c (Ffont_info): Fix docstring. Fix the second element of
4809 the returned value (bug#2949).
4810
2cce8bfc
CY
48112009-04-14 Chong Yidong <cyd@stupidchicken.com>
4812
4813 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4814
d156542d
KH
48152009-04-14 Kenichi Handa <handa@m17n.org>
4816
4817 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4818 encoding charset is ascii_compatible.
4819
4820 * charset.c (Fdefine_charset_internal): Make charset
4821 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4822 code_offset is 0, and covers all ASCII characters.
4823
86fa089e
SM
48242009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4825
4826 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4827 (ns_string_to_pasteboard_internal):
4828 * nsmenu.m (process_dialog):
4829 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4830 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4831 * lisp.h (Fx_load_color_file): Declare.
4832
a8a3728b
KH
48332009-04-13 Kenichi Handa <handa@m17n.org>
4834
1ac9108a 4835 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4836 (font_select_entity): Suppress the code to optimize for the same
4837 kind of fonts.
4838 (font_load_for_lface): Get a font that supports at least ASCII
4839 characters.
4840
4841 * ftfont.c (Qja, Qko): New variables.
4842 (fc_charset_table): Delete uniquifier data for iso8859-1.
4843 (ftfont_get_latin1_charset): New function.
4844 (get_adstyle_property): New function.
4845 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4846 bitmap fonts.
4847 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4848 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4849 `ko' or `ja'.
4850 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4851 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4852 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4853 property.
4854 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4855 (syms_of_ftfont): DEFSYM Qja and Qko.
4856
483670b5
KH
48572009-04-09 Kenichi Handa <handa@m17n.org>
4858
12b55765
KH
4859 * charset.c (map_charset_chars): For a charset of `superset'
4860 method, fix calculation of code range.
4861
483670b5
KH
4862 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4863 from the list of extra properties.
4864 (font_clear_prop): Be sure to delete `:name' font property.
4865
57d3b93b
KH
48662009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4867
b4b2c2ca
YM
4868 * dispnew.c (redraw_overlapping_rows): Fix detection of
4869 overlapping for topmost and bottommost rows.
4870
1ac9108a 4871 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4872
472c3609
JR
48732009-04-06 Jason Rumney <jasonr@gnu.org>
4874
4875 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4876
ab193662
KH
48772009-04-06 Kenichi Handa <handa@m17n.org>
4878
4879 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4880
4881 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4882
0c26f026
KH
48832009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4884
4885 * ftfont.c (ftfont_open): Fix checking of the return value of
4886 FT_Load_Char. Fix setting font->underline_thickness.
4887
e173bbce
CY
48882009-04-04 Chong Yidong <cyd@stupidchicken.com>
4889
4890 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4891 (Fterminal_parameters, Fterminal_parameter)
4892 (Fset_terminal_parameter): In doc string, refer to terminal
4893 objects rather than terminal ids.
4894
693a2698
EZ
48952009-04-04 Eli Zaretskii <eliz@gnu.org>
4896
4897 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4898 ret_lim_data. (Bug#2867)
4899
d5221487
CY
49002009-04-03 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4903 so they don't get wider than the window, matching 2006-01-23
4904 change to the partner function in xdisp.c (Bug#2800).
4905
223509a3
KH
49062009-04-03 Kenichi Handa <handa@m17n.org>
4907
4908 * print.c (print_object): Make each lowest sub_char_table start a
4909 new line (Bug#2866).
4910
74fcd0b1
KH
49112009-04-02 Kenichi Handa <handa@m17n.org>
4912
4913 * fontset.c (fontset_font): Record no-font when a fontset
4914 explicitly tells not to try another font-specs.
4915
c542407d
SM
49162009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4917
4918 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4919
e3869731
KH
49202009-03-30 Kenichi Handa <handa@m17n.org>
4921
d8d2f142
KH
4922 * fontset.c (fontset_from_font): Specify only registry in a
4923 font-spec for all characters supported by that registry.
4924
e3869731
KH
4925 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4926 even if HAVE_M17N_FLT is not defined.
4927
5da5f805
CY
49282009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4929
4930 * ftfont.c: Conditionalize prototyping and use of
4931 ftfont_variation_glyphs.
4932
ab226c50
SM
49332009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4934
9628fed7
SM
4935 * frame.c (delete_frame): Work around compiler bug.
4936
4937 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4938 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4939 Some more EMACS_INT.
4940 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4941
4942 * xdisp.c (dump_glyph): Fix typo.
4943
ae19ba7c
SM
4944 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4945 (adjust_markers_gap_motion, adjust_markers_for_delete)
4946 (adjust_markers_for_insert, adjust_point)
4947 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4948 (make_gap, copy_text, count_size_as_multibyte, insert)
4949 (insert_and_inherit, insert_before_markers)
4950 (insert_before_markers_and_inherit, insert_1)
4951 (count_combining_before, count_combining_after, insert_1_both)
4952 (insert_from_string, insert_from_string_before_markers)
4953 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4954 (insert_from_buffer_1, adjust_after_replace)
4955 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4956 (replace_range_2, del_range, del_range_1, del_range_byte)
4957 (del_range_both, del_range_2, modify_region)
4958 (prepare_to_modify_buffer, signal_before_change)
4959 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4960 for buffer positions and sizes.
4961 * lisp.h: Adjust prototypes accordingly.
4962
4963 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4964 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4965 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4966
ab226c50
SM
4967 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4968
46dfb8fb
JD
49692009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4970
4971 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4972 lines and columns so we keep the same pixel height and width.
4973
4974 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4975 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4976 (x_handle_net_wm_state): New function to update frame parameter
4977 fullscreen.
4978 (x_term_init): Initialize atoms for _NET_WM_STATE.
4979
4980 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4981
d347e494
SM
49822009-03-27 Kevin Ryde <user42@zip.com.au>
4983
4984 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4985 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4986 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4987 (Fgpm_mouse_stop): Pass that new parameter.
4988 * termhooks.h (close_gpm): Adjust prototype.
4989
84db11d6
SM
49902009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4991
c95a5008
SM
4992 * lisp.h (Fx_focus_frame): Declare.
4993
84db11d6
SM
4994 * callint.c (Fcall_interactively): For '^' just delegate the work to
4995 handle-shift-selection.
4996 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4997
0a1958d6
CY
49982009-03-24 Chong Yidong <cyd@stupidchicken.com>
4999
0bfdff23
CY
5000 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
5001
0a1958d6
CY
5002 * data.c (Qinteractive_form): New variable.
5003 (Finteractive_form): Use it.
5004
5005 * eval.c (Fcommandp): Use Qinteractive_form.
5006
58aec0d6
JR
50072009-03-24 Jason Rumney <jasonr@gnu.org>
5008
5009 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
5010 Calculate total size precisely. Decode environment variables
5011 before substituting. (Bug#38)
5012
553dd618
KH
50132009-03-24 Kenichi Handa <handa@m17n.org>
5014
5015 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 5016 encoding (Bug#2722).
553dd618 5017
c39ea606
JD
50182009-03-23 Jan Djärv <jan.h.d@swipnet.se>
5019
5020 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
5021 that gdpy is set.
5022
bc9b2b5e
AM
50232009-03-22 Alan Mackenzie <acm@muc.de>
5024
5025 * callint.c (Finteractive): Clarify the doc string - even
5026 promptless elements need \n separators.
5027
9f995a76
JR
50282009-03-22 Jason Rumney <jasonr@gnu.org>
5029
5030 * w32term.c (syms_of_w32term): Doc fix for
5031 x-use-underline-position-properties.
5032
22749e9a
EZ
50332009-03-21 Eli Zaretskii <eliz@gnu.org>
5034
5035 * w32.c (getpwuid): Change argument type to unsigned.
5036 (struct w32_id): Change type of `rid' member to unsigned.
5037 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
5038 argument ID to unsigned. All callers changed.
5039 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
5040
e00553bf
EZ
50412009-03-20 Eli Zaretskii <eliz@gnu.org>
5042
5043 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
5044 negative, produce a float value.
5045
5046 * dired.c (make_uid, make_gid): New functions.
5047 (Ffile_attributes): Use them to avoid negative UID and GID.
5048
f761d6b6
JB
50492009-03-20 Juanma Barranquero <lekktu@gmail.com>
5050
5051 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
5052 (syms_of_keyboard) <command-hook-internal, input-method-function>:
5053 Fix typos in docstrings.
5054
d507f8d7
KH
50552009-03-19 Kenichi Handa <handa@m17n.org>
5056
5057 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
5058 changed, use font_load_for_lface to get a new font object.
5059 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
5060
5061 * frame.c (x_set_font): Handle the case that ARG is a cons.
5062
c68845e0
GM
50632009-03-19 Glenn Morris <rgm@gnu.org>
5064
5065 * fileio.c (Fsubstitute_in_file_name): Doc fix.
5066
bfa49dd1
CY
50672009-03-19 Chong Yidong <cyd@stupidchicken.com>
5068
5069 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
5070
8458d4c1
KH
50712009-03-19 Kenichi Handa <handa@m17n.org>
5072
5073 * charset.c (load_charset_map_from_file): When a mapfile can't be
5074 loaded, signal an error.
5075
78e7d1fe
EZ
50762009-03-18 Eli Zaretskii <eliz@gnu.org>
5077
5078 * dired.c (Ffile_attributes): Make sure UID and GID are always
5079 positive, even if the value is too large for a positive EMACS_INT.
5080 Doc fix.
5081
5082 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
5083
5da9fdfa
YM
50842009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5085
5086 * xmenu.c (xdialog_show): Move Fredisplay call ...
5087 (Fx_popup_dialog): ... here.
5088
7519c40d
SM
50892009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
5090
5091 * dired.c (file_name_completion): Disable the first optimization just
5092 installed, since it is not implemented correctly.
5093
2cd298e2
SM
50942009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
5095
5096 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 5097 only if the entry can affect bestmatch.
2cd298e2
SM
5098 Stop the search early, as Ftry_completion already does.
5099
48d37adf
CY
51002009-03-17 Chong Yidong <cyd@stupidchicken.com>
5101
e10c9c93 5102 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 5103
9286b16a
CY
51042009-03-15 Chong Yidong <cyd@stupidchicken.com>
5105
5106 * keyboard.c (parse_menu_item): Don't display remappings as menu
5107 equivalent bindings (Bug#788).
5108
f7b146dc
JR
51092009-03-15 Jason Rumney <jasonr@gnu.org>
5110
5111 * w32term.h (WM_EMACS_PAINT): New message.
5112 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
5113 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
5114 before passing to lisp thread. (Bug#950)
5115
f761d6b6 51162009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 5117
d93f9575
CY
5118 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
5119 variable as it was never reset.
5120 (ns_term_init): Remove initialization of Lisp-settable defaults
5121 and ns_expand_space.
5122 (-setPanelFromDefaultValues): Remove ns_expand_space.
5123 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
5124 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
5125 i.e. no additional spacing, similar to Carbon port.
5126
d93f9575
CY
5127 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
5128 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 5129
305018ec
JD
51302009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5131
5132 * sound.c (alsa_configure): Remove call to deprecated
5133 snd_pcm_sw_params_set_xfer_align.
5134
f761d6b6 51352009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5136
5137 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5138 after clicking in a detached tool bar.
5139 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5140
46e722a9
SM
51412009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5142
348db3dd
SM
5143 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5144 int/Lisp_Object mixup).
46e722a9 5145
a3d16f39
KH
51462009-03-13 Kenichi Handa <handa@m17n.org>
5147
5148 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5149 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5150 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5151 (set_fontset_font): Change ARG to a vector. Handle range_list in
5152 ARG correctly.
5153 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5154 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5155 the above change.
5156 (fontset_from_font): Fix previous change.
fe24f56a 5157 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5158 entry. If FONTSET is the default fontset, don't set the extra
5159 slot of the returning char-table.
5160
b066e6b6
JB
51612009-03-12 Juanma Barranquero <lekktu@gmail.com>
5162
5163 * nsfns.m (Fx_close_connection): Doc fix.
5164 (Fns_do_applescript): Reflow docstring.
5165 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5166 (Fx_display_pixel_width, Fx_display_pixel_height)
5167 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5168 Fix typos in docstrings.
5169 (Fns_set_alpha): Fix typos in error messages.
5170
d472514e 51712009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5172
d472514e 5173 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5174 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5175 were used for such events.
5176
d472514e
JB
5177 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5178 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5179
d472514e 5180 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5181 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5182
fb930676
KH
51832009-03-11 Kenichi Handa <handa@m17n.org>
5184
ff85581a
KH
5185 * font.h (font_open_by_spec): Extern it.
5186
c50b7e98
KH
5187 * font.c (font_open_by_spec): New function.
5188 (font_open_by_name): Use font_open_by_spec.
5189
fb930676
KH
5190 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5191 fontset of the frame.
5192
5193 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5194 modify the default font of frames that use this fontset.
5195 (num_auto_fontsets): New variable.
5196 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5197 name. Be sure to set FONTSET_ASCII to the correct font name.
5198 (update_auto_fontset_alist): New function.
5199
df4e8455
JB
52002009-03-11 Juanma Barranquero <lekktu@gmail.com>
5201
5202 * makefile.w32-in: Update dependencies.
5203
0a375797
AR
52042009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5205
5206 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5207
61313fa3
SM
52082009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5209
5210 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5211
b55103fb
CY
52122009-03-10 Chong Yidong <cyd@stupidchicken.com>
5213
5214 * lread.c (Feval_buffer): Doc fix.
5215
dde2559c
KH
52162009-03-09 Kenichi Handa <handa@m17n.org>
5217
5218 * charset.c (Qfile_name_handler_alist): Extern it.
5219 (load_charset_map_from_file): Temporarily bind
5220 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5221
df4e8455 52222009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5223
47f588bb
GM
5224 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5225 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5226
4ddf94bd
AR
52272009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5228
4c9bdfc2
AR
5229 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5230 (x_set_window_size): Change back to calculated method of setting
5231 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5232 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5233 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5234
fe41ae9e
AR
5235 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5236
4c9bdfc2
AR
5237 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5238 accelerator in parens under GNUstep.
5239
825d0875
KH
52402009-03-06 Kenichi Handa <handa@m17n.org>
5241
5242 These changes are to detect incorrect composition sequence without
f3b3be74 5243 looking ahead the source. (Bug#2370)
825d0875
KH
5244
5245 * coding.h: Include "composite.h".
5246 (enum compisition_state): New enum.
5247 (struct compisition_status): New struct.
5248 (struct iso_2022_spec): New member cmp_status.
5249 (struct emacs_mule_spec): New struct.
5250 (struct coding_system): New members ctext_extended_segment_len and
5251 embedded_utf_8. Change the union member
5252 spec.emacs_mule_full_support to spec.emacs_mule.
5253
5254 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5255 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5256 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5257 (ADD_COMPOSITION_DATA): New arg nbytes.
5258 (emacs_mule_char): New arg cmp_status.
5259 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5260 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5261 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5262 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5263 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5264 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5265 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5266 (EMACS_MULE_COMPOSITION_END): New macro.
5267 (emacs_mule_finish_composition): New function.
5268 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5269 (decode_coding_emacs_mule): Avoid long looking ahead while
5270 handling composition.
5271 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5272 (ENCODE_COMPOSITION_RULE): New macro.
5273 (finish_composition): New function.
5274 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5275 (DECODE_COMPOSITION_START): New implementation.
5276 (DECODE_COMPOSITION_END): Likewise.
5277 (STORE_COMPOSITION_RULE): New macro.
5278 (decode_coding_iso_2022): Avoid long looking ahead while handling
5279 composition, CTEXT extended segment, and embedded UTF-8.
5280 (setup_coding_system): For a coding of type iso-2022, reset
5281 CODING_ISO_EXTSEGMENT_LEN (coding) and
5282 CODING_ISO_EMBEDDED_UTF_8 (coding).
5283 (get_translation): Delete arguments last_block, from_nchars,
5284 to_nchars. Callers changed.
5285 (produce_chars): Don't modify charbuf. Adjusted for the change of
5286 get_translation.
98a326f7 5287 (produce_composition): Adjust for the new annotation sequence.
825d0875 5288 (handle_composition_annotation): Likewise.
98a326f7 5289 (consume_chars): Adjust for the change of get_translation.
825d0875 5290
ccbc4452
AR
52912009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5292
4ddf94bd 5293 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5294
988a7ddb
KH
52952009-03-05 Kenichi Handa <handa@m17n.org>
5296
5297 * font.c (font_select_entity): New function.
5298 (font_find_for_lface): Use font_select_entity to select a font.
5299
5300 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5301 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5302 font with C restriction.
5303
98a326f7 53042009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5305
be1bce46 5306 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5307
10ea2b82
JR
53082009-03-04 Jason Rumney <jasonr@gnu.org>
5309
2c93b248 5310 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5311 characters that have already been read. (Bug#2569)
2c93b248 5312
10ea2b82
JR
5313 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5314 Log an error message if check_image_size failed.
5315 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5316 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5317
71a0c011
EZ
53182009-03-02 Eli Zaretskii <eliz@gnu.org>
5319
5320 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5321 when decoding process output.
5322
2f63bba8
RS
53232009-03-01 Richard M Stallman <rms@gnu.org>
5324
5325 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5326
5327 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5328
0a9564cb
EZ
53292009-02-28 Eli Zaretskii <eliz@gnu.org>
5330
5331 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5332 (decode_coding_emacs_mule, decode_coding_iso_2022)
5333 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5334 (decode_coding_raw_text, decode_coding_charset)
5335 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5336 Honor inhibit-eol-conversion. (Bug #2186)
5337
449148b3
JR
53382009-02-28 Jason Rumney <jasonr@gnu.org>
5339
5340 * coding.c (detect_coding_charset): If not checking latin extra,
5341 fail on characters between 0x80 and 0xA0. (Bug#2354)
5342
a4aee864
EZ
53432009-02-28 Eli Zaretskii <eliz@gnu.org>
5344
5345 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5346 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5347
d88bee5a
GM
53482009-02-27 Glenn Morris <rgm@gnu.org>
5349
5350 * callint.c (Finteractive): Doc fix.
5351
a808f22d
KH
53522009-02-27 Kenichi Handa <handa@m17n.org>
5353
5354 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5355
caf8d60c
CY
53562009-02-27 Chong Yidong <cyd@stupidchicken.com>
5357
5358 * font.c (font_style_to_value): Set value for unknown symbols to
5359 100 instead of 255.
b61137ea
CY
5360 (weight_table, slant_table, width_table): Treat "unspecified" as
5361 the default value.
caf8d60c 5362
1a0de25c
JB
53632009-02-26 Juanma Barranquero <lekktu@gmail.com>
5364
5365 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5366
8fc45744
JB
53672009-02-25 Juanma Barranquero <lekktu@gmail.com>
5368
107bd7d1
JB
5369 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5370 error as soon as a recursive load is detected.
8fc45744 5371
f097e223
AR
53722009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5373
5374 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5375 before caching.
5376
8810a12f
KH
53772009-02-24 Kenichi Handa <handa@m17n.org>
5378
5379 * fontset.c (fontset_find_font): Fix the condition for checking
5380 unavailable font.
5381
2c7d1565
GM
53822009-02-24 Glenn Morris <rgm@gnu.org>
5383
5384 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5385 whitespace that confuses documentation.
5386
a20878b6
MB
53872009-02-23 Miles Bader <miles@gnu.org>
5388
5389 * process.c (Flist_system_processes, Fprocess_attributes)
5390 (syms_of_process): Rename `system-process-attributes' to
5391 `process-attributes'.
5392
b3b58c01
AS
53932009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5394
1b3b981b
AS
5395 * coding.h (struct coding_system): Make safe_charsets a pointer to
5396 unsigned char.
5397 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5398 being 255.
5399 (SAFE_CHARSET_P): Likewise.
5400 (setup_iso_safe_charsets): Properly setup safe_charsets.
5401 (Fdefine_coding_system_internal): Likewise.
5402 (setup_coding_system): Likewise. Remove unneeded casts.
5403 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5404 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5405 unneeded casts.
5406
b3b58c01
AS
5407 * insdel.c (del_range_2): Don't modify gap contents when called
5408 from decode_coding_object. (Bug#1809)
5409
0b6f228c
CY
54102009-02-21 Chong Yidong <cyd@stupidchicken.com>
5411
5412 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5413 Qfont_object.
5414 (Ftype_of): Recognize font objects.
5415
5416 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5417
5418 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5419 moved to data.c.
5420
52f8870b
AR
54212009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5422
5423 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5424 async_iconified. Based on a patch by Christian Lynbech
5425 <christian.lynbech@tieto.com>.
5426 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5427
7087d5e9
GM
54282009-02-20 Glenn Morris <rgm@gnu.org>
5429
5430 * syntax.c (Fskip_chars_forward): Fix doc typo.
5431
41d2ceef
CY
54322009-02-20 Chong Yidong <cyd@stupidchicken.com>
5433
5434 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5435
1a3b7ca6
CY
54362009-02-19 Chong Yidong <cyd@stupidchicken.com>
5437
5438 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5439
73cce38d
KH
54402009-02-19 Kenichi Handa <handa@m17n.org>
5441
5442 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5443 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5444
a51092ee
DN
54452009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5446
5447 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5448
c423ecca
KH
54492009-02-18 Kenichi Handa <handa@m17n.org>
5450
5451 * font.c (font_check_otf_features): Fix handling of `nil' element.
5452 (Ffont_spec): Describe :lang and :otf in the docstring.
5453
4c1958f4
AS
54542009-02-16 Andreas Schwab <schwab@suse.de>
5455
5456 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5457 string.
5458
5704f39a
KH
54592009-02-16 Kenichi Handa <handa@m17n.org>
5460
5461 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5462 (Bug#1723)
5704f39a 5463
8f0085aa
CY
54642009-02-14 Chong Yidong <cyd@stupidchicken.com>
5465
a057d86a 5466 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5467
5468 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5469 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5470
aff01dd9
EZ
54712009-02-14 Eli Zaretskii <eliz@gnu.org>
5472
5473 * msdos.c (MAX_SCREEN_BUF): New macro.
5474 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5475 Encode the entire run of glyphs sharing the same face, instead of
5476 doing that one glyph at a time (fixes a bug with displaying
5477 double-size characters).
5478
ba301db3
AR
54792009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5480
5481 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5482
5483 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5484 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5485 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5486
5487 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5488 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5489
51d861de
SM
54902009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5491
ac146f82 5492 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5493 invisible areas.
5494
7fed8996
JR
54952009-02-12 Jason Rumney <jasonr@gnu.org>
5496
631ea4fb
JR
5497 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5498 (add_font_entity_to_list): Call check_face_name even when family
5499 is unspecified.
5500
cb4a3e42
JR
5501 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5502 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5503 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5504
7fed8996 5505 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5506 raster fonts. (Bug#2219)
7fed8996 5507
895416e3
KH
55082009-02-12 Kenichi Handa <handa@m17n.org>
5509
5510 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5511 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5512 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5513 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5514 (find_automatic_composition): While looking forward and backward,
5515 check static composition. Fix where to stop looking forward.
5516 (composition_adjust_point): Fix checking of static composition.
5517 (Fcomposition_get_gstring): Pay attention to
1dacf998 5518 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5519
5520 * lisp.h (fast_looking_at): Extern it.
5521
5522 * search.c (fast_looking_at): New function.
5523
51d861de 5524 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5525 <struct glyph>.u.cmp.to.
5526 (append_composite_glyph): Likewise.
5527
51d861de 5528 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5529 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5530 composition.
51d861de 5531 (append_composite_glyph): Adjust for the change of
895416e3
KH
5532 <strcut glyph>.u.cmp.to.
5533
8510724d
JB
55342009-02-11 Juanma Barranquero <lekktu@gmail.com>
5535
5536 * casetab.c (init_casetab_once):
5537 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5538 * font.c (font_update_lface):
5539 * fontset.c (Fnew_fontset):
5540 * ftfont.c (ftfont_drive_otf):
5541 * xfont.c (xfont_open):
5542 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5543
294fa707
SM
55442009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5545
5546 * fileio.c (Fwrite_region): !NILP -> CONSP.
5547
b5bfebec
AS
55482009-02-10 Andreas Schwab <schwab@suse.de>
5549
5550 * process.c (send_process): Properly relocate pointer into data
adab88bd 5551 when using encoded data. (Bug#2272)
b5bfebec 5552
cb84a2be
KH
55532009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5554
5555 * coding.c (detect_coding_charset): Fix previous change.
5556
89e09428
JR
55572009-02-08 Jason Rumney <jasonr@gnu.org>
5558
5559 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5560 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5561
4470a277
AS
55622009-02-07 Andreas Schwab <schwab@suse.de>
5563
5564 * unexelf.c (unexec): Fix error message.
5565
3175b12a
AR
55662009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5567
5568 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5569 when modal window is active. (Bug #2152)
3175b12a
AR
5570 (applicationShouldTerminate:): Remove now-unneeded while loop
5571 around NSRunAlertPanel.
5572
5573 * nsmenu.m (popupSession): New file-global variable.
5574 (pop_down_menu): End the popupSession before closing dialog.
5575 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5576 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5577 don't query NSApp for events (just sleep instead).
5578
8434d0b8
EZ
55792009-02-07 Eli Zaretskii <eliz@gnu.org>
5580
51d861de
SM
5581 * coding.c (syms_of_coding) <translation-table-for-input>:
5582 Modify doc string to discourage use for character code unification.
8434d0b8 5583
aa82edfd
CY
55842009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5585
5586 * atimer.c (run_timers): Update pending_atimers.
5587
2d283c7c
CY
55882009-02-06 Chong Yidong <cyd@stupidchicken.com>
5589
eb306cab
CY
5590 * image.c (svg_load_image): Fix last change.
5591
2d283c7c
CY
5592 * xfns.c (Fx_create_frame): Signal an error if no font is
5593 found (Bug#2147).
5594
4d8e170e
JB
55952009-02-05 Juanma Barranquero <lekktu@gmail.com>
5596
5597 * character.c (syms_of_character) <script-representative-chars>:
5598 Fix typo in docstring.
5599
c96169a0
AR
56002009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5601
5602 * nsmenu.m (pop_down_menu): New function.
5603 (ns_popup_dialog): Call it on unwind.
5604 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5605 call timer_check() (Bug#2154).
5606 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5607 handling_signal is set.
5608 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5609
31fd7c5c 5610 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5611
5612 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5613
5614 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5615
51d861de
SM
5616 * keyboard.c (poll_for_input_1, handle_async_input):
5617 Set handling_signal under HAVE_NS.
c96169a0 5618
aacd8ba1
GM
56192009-02-04 Glenn Morris <rgm@gnu.org>
5620
5621 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5622
4cb75c4b
KH
56232009-02-04 Kenichi Handa <handa@m17n.org>
5624
5625 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5626
5627 * charset.c (Fchar_charset): New optional arg restriction.
5628
5629 * coding.h (coding_system_charset_list): Extern it.
5630
5631 * coding.c (coding_system_charset_list): New function.
5632
5633 * composite.c: Include coding.h and termhooks.h.
5634 (composition_gstring_p): Fix for the terminal case.
5635 (composition_gstring_width): Likewise.
5636 (fill_gstring_body): Likewise.
5637 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5638 the frame.
5639 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5640 is within a composition.
867d4bb3 5641 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5642
5643 * term.c (encode_terminal_code): Fix handling of composition.
5644 (produce_composite_glyph): For static composition, get pixel_width
5645 from struct composition.
5646
826ba17e
AS
56472009-02-02 Andreas Schwab <schwab@suse.de>
5648
5649 * unexelf.c (unexec): Handle unaligned bss offset.
5650
8ad093db
AR
56512009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5652
5653 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5654 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5655
8ad093db
AR
5656 * keyboard.c (handle_interrupt): Don't call
5657 quit_throw_to_read_char() under NS.
d0a76a6e 5658
8ad093db
AR
5659 * blockinput.h: Remove NS-specific code.
5660
4d18a7a2
DN
56612009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5662
db878925
DN
5663 * dispnew.c (window_change_signal): Don't try to get the size of a
5664 suspended tty frame.
5665 * term.c (Fresume_tty): Resize if the size has changed while the
5666 tty was suspended.
5667
4d18a7a2
DN
5668 * alloc.c (mark_stack): Properly conditionalize previous change.
5669
8984df7c
JB
56702009-01-30 Juanma Barranquero <lekktu@gmail.com>
5671
5672 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5673 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5674 Remove; this code is not used on Windows.
5675
75f4f1ac
EZ
56762009-01-30 Eli Zaretskii <eliz@gnu.org>
5677
5678 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5679 EOLs that also has stray ^M characters.
5680
07a1e794
JB
56812009-01-30 Juanma Barranquero <lekktu@gmail.com>
5682
5683 * atimer.c (run_timers, alarm_signal_handler):
5684 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5685 * w32inevt.c (w32_console_read_socket):
5686 * w32term.c (w32_read_socket):
5687 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5688
a8b11cc9
CY
56892009-01-30 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5692 Initialize it as a relative filename pattern.
5693 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5694 (Fcall_process_region): Simplify temp file creation using
5695 temporary-file-directory.
5696
c279587b
EZ
56972009-01-29 Eli Zaretskii <eliz@gnu.org>
5698
5699 * msdos.c: Rename pending_signals to msdos_pending_signals.
5700 (sig_suspender, sigprocmask): Adjust.
5701
a8fe3242
CY
57022009-01-29 Chong Yidong <cyd@stupidchicken.com>
5703
5704 * keyboard.c (pending_signals): New var.
5705 (poll_for_input, input_available_signal, init_keyboard): Set it.
5706 (process_pending_signals): New function.
5707
5708 * lisp.h (QUIT): Check pending_signals instead of
5709 interrupt_input_pending. Use process_pending_signals.
5710
51d861de 5711 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5712
51d861de 5713 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5714
5715 * sysdep.c (emacs_write): Use process_pending_signals.
5716
5717 * xterm.c (XTread_socket): Update pending_signals.
5718
5719 * w32term.c (w32_read_socket): Update pending_signals.
5720
5721 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5722
6570a1c4
KH
57232009-01-29 Kenichi Handa <handa@m17n.org>
5724
5725 * xftfont.c (xftfont_has_char): New function.
5726 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5727
d72a4afa
AR
57282009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5729
5730 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5731 under GNUstep.
5732 (ns_query_color): New declaration.
5733
5734 * nsterm.m (ns_confirm_quit): New variable.
5735 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5736 (EmacsApp-applicationShouldTerminate:): Use it.
5737 (EmacsPrefsController): Let user set it.
5738 (ns_query_color): New function.
5739 (ns_defined_color): Use it.
5740 (ns_initialize): Drop.
5741 (ns_term_init): Add two lines from ns_initialize(), and set
5742 input_interrupt_mode to nil.
5743
5744 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5745 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5746
9fe78804
KH
57472009-01-28 Kenichi Handa <handa@m17n.org>
5748
5749 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5750 (fontset_get_font_group): Remember that no font-group is specified
5751 for C.
9fe78804 5752
fa57de36
CY
57532009-01-27 Chong Yidong <cyd@stupidchicken.com>
5754
930600e9
CY
5755 * fns.c (concat): Check for string overflow (bug#1787).
5756
fa57de36
CY
5757 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5758 Quadruple undo limits (bug#1501).
5759
7179ce7b
KH
57602009-01-27 Kenichi Handa <handa@m17n.org>
5761
5762 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5763 directly use GT_Get_Char_index.
5764
5765 * xftfont.c (struct xftfont_info): New member `index'.
5766
5767 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5768 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5769
5be8fcc0
CY
57702009-01-26 Kenichi Handa <handa@m17n.org>
5771
5772 * fontset.c (fontset_find_font): Fix handling of non-cons return
5773 value of fontset_get_font_group.
5774 (fontset_font): Revert last change.
5775
19ae3e61
JR
57762009-01-26 Jason Rumney <jasonr@gnu.org>
5777
5778 * w32font.c (w32font_list_internal): Return quickly if registry is
5779 unknown. Simplify final return.
5780 (add_font_entity_to_list): Break complex logic down into more
5781 manageable chunks. Move unknown registry check to
5782 w32font_list_internal.
5783
8612b71a
AR
57842009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5785
5786 Changes to remove Feval calls from GUI under NS.
5787
d8038940
JB
5788 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5789 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5790 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5791
5792 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5793 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5794 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5795 instead of NON_ASCII_KEYSTROKE_EVENT.
5796 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5797 (EmacsApp-applicationShouldTerminate:): Query user.
5798 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5799 instead of Feval.
5800
5801 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5802
5803 * keyboard.c (kbd_buffer_get_event): Check for it.
5804 (keys_of_keyboard): Define lispy keys for
5805 ns-put/unput-working-text.
5806
5807 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5808 versions.
5809 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5810
6288ae55
CY
58112009-01-25 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5814 setting current_buffer directly. (Bug#2044)
6288ae55 5815
289e7f8f
CY
58162009-01-24 Chong Yidong <cyd@stupidchicken.com>
5817
5ce87308 5818 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5819 any work. (Bug#1952, bug#1990).
5ce87308 5820
64cc3cf6 5821 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5822
b3243e6f
AR
58232009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5824
5825 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5826 (ns_no_defaults): New declaration.
5827 (main): Use it.
e0d2e69a 5828
d900b2af 5829 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5830
d900b2af 5831 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5832
d900b2af
AR
5833 * nsterm.m (ns_no_defaults): New variable.
5834 (ns_initialize): Don't read defaults when ns_no_defaults.
5835 (EmacsView-readSelectionFromPasteboard:)
5836 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5837 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5838 (ns_dumpglyphs_stretch): New function.
5839 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5840 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5841
e0d2e69a
AR
5842 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5843
3ac71f5d
CY
58442009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5845
5846 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5847 call for Sparc64.
5848
3fe53a83
AR
58492009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5850
5851 * nsfns.m:
5852 * nsgui.h:
5853 * nsmenu.m:
5854 * nsselect.m:
5855 * nsterm.h:
5856 * nsterm.m: Remove '23' comments that indicated code added during
5857 update from emacs-20 -> emacs-23.
5858
10f87c6f 58592009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5860
5861 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5862 ns_alternate_modifier. (Bug#1217)
a3b53a85 5863
c7cef62d
AR
5864 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5865 Display all shortcuts, including those w/o super modifier.
5866
575fb8bd
AR
5867 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5868
918b848b
CY
58692009-01-22 Chong Yidong <cyd@stupidchicken.com>
5870
5871 * fileio.c (Vwrite_region_post_annotation_function)
5872 (Vwrite_region_annotation_buffers): New vars.
5873 (build_annotations_unwind): Just reset
5874 Vwrite_region_annotation_buffers.
5875 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5876 Call write-region-post-annotation-function.
5877 (build_annotations): Add to Vwrite_region_annotation_buffers if
5878 buffer changes.
5879
a39e2539
AR
58802009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5881
5882 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5883 Tiger.
51d861de
SM
5884 * nsfns.m (ns_do_applescript):
5885 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5886
35ed44db
AR
58872009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5888
5889 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5890
cbe0b5bf
AR
58912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5892
5893 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5894
6049d3a0
AR
5895 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5896
5897 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5898 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5899 handle Ctrl-tab. (Bug#1841)
5900 (ns_get_color): Use unsigned long long for scanned hex string value.
5901 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5902 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5903 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5904 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5905 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5906 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5907 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5908
d3810c21 5909 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5910 DPI. (Bug#1316)
d3810c21
AR
5911 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5912 values in onTiger section.
4c7077c3 5913
e301e634
CY
59142009-01-19 Chong Yidong <cyd@stupidchicken.com>
5915
7f82490b
CY
5916 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5917 Check return value of font_spec_from_name.
64cc3cf6 5918 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5919
5920 * font.c (font_spec_from_name): Return Qnil if font name could not
5921 be parsed.
5922 (font_parse_name): Treat a `?' character as part of an XLFD.
5923
e301e634
CY
5924 * fns.c (Fsubstring): Doc fix.
5925
1c0db158
KH
59262009-01-19 Kenichi Handa <handa@m17n.org>
5927
51d861de 5928 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5929 (ftfont_list): Likewise.
5930
acf20901
JB
59312009-01-18 Juanma Barranquero <lekktu@gmail.com>
5932
fff4e459
JB
5933 * dbusbind.c (Fdbus_register_signal):
5934 * process.c (conv_sockaddr_to_lisp):
5935 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5936
acf20901
JB
5937 * callproc.c (Fgetenv_internal): Doc fix.
5938
e7abcdfb
CY
59392009-01-16 Chong Yidong <cyd@stupidchicken.com>
5940
5941 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5942 it is not even used.
5943
b60861e6
GM
59442009-01-16 Glenn Morris <rgm@gnu.org>
5945
5946 * font.c (Ffont_variation_glyphs): Silence compiler.
5947
8db52afe
JB
59482009-01-15 Juanma Barranquero <lekktu@gmail.com>
5949
5950 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5951 Reported by David Robinow <drobinow@gmail.com>.
5952
4cddb209
KH
59532009-01-15 Kenichi Handa <handa@m17n.org>
5954
51d861de 5955 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5956
f247f67b
JR
59572009-01-14 Jason Rumney <jasonr@gnu.org>
5958
5959 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5960 never a fontset. (Bug#1562)
f247f67b 5961
f56a4450
KH
59622009-01-14 Kenichi Handa <handa@m17n.org>
5963
5964 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5965 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5966
4e99855e
CY
59672009-01-13 Chong Yidong <cyd@stupidchicken.com>
5968
5969 * font.c (font_clear_prop): If clearing the family, clear the font
5970 width index too.
5971
fff4e459 5972 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5973
24f01470
JB
59742009-01-12 Juanma Barranquero <lekktu@gmail.com>
5975
5976 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5977 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5978 functions, use sizeof.
5979
a41240a3
MR
59802009-01-12 Martin Rudalics <rudalics@gmx.at>
5981
5982 * keyboard.c (read_char): Fix case where last_nonmenu_event
5983 returned a bad value with submenus. (Bug#447)
5984
944636b8
CY
59852009-01-12 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5988 family, clear the font width index too.
5989
0dad7c6f
JR
59902009-01-11 Jason Rumney <jasonr@gnu.org>
5991
5992 * keyboard.c (cmd_error_internal): Exit when errors occur before
5993 frame creation and not in daemon mode. (Bug#1836)
5994
7c2363af
CY
59952009-01-10 Chong Yidong <cyd@stupidchicken.com>
5996
5997 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5998 of a display vector, backtrack.
5999 (try_window_reusing_current_matrix): Check glyph type before
6000 referencing charpos member.
6001
97b1b294
EZ
60022009-01-10 Eli Zaretskii <eliz@gnu.org>
6003
6004 Fix Bug #876:
6005
6006 * coding.c (inhibit_null_byte_detection): New variable.
6007 (detect_coding, detect_coding_system): Don't pay attention to null
6008 bytes if inhibit_null_byte_detection is non-zero.
51d861de 6009 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
6010 <inhibit-iso-escape-detection>: Doc fix.
6011
4624b6e3
JR
60122009-01-09 Jason Rumney <jasonr@gnu.org>
6013
6014 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 6015 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
6016 Only report Unicode Plane 2 fonts as unicode-sip.
6017
323b840c
CY
60182009-01-09 Chong Yidong <cyd@stupidchicken.com>
6019
51d861de
SM
6020 * xfaces.c (Fx_font_family_list): Delete function.
6021 Move compatibility version to faces.el.
323b840c 6022
51d861de 6023 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 6024
eba7400d
MR
60252009-01-09 Martin Rudalics <rudalics@gmx.at>
6026
6027 * frame.c (x_set_frame_parameters): Remember requested value for
6028 fullscreen before it's reset by the parameter handler.
6029
4b09796d
GM
60302009-01-09 Glenn Morris <rgm@gnu.org>
6031
6032 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 6033 (last_command_event): ... and update all users.
4b09796d
GM
6034 (last_input_char): For clarity, rename to...
6035 (last_input_event): ... and update all users.
6036 (last-command-char, last-input-char): Move to subr.el as aliases.
6037 * cmds.c, commands.h: Update for last_command_char rename.
6038
14ccea62
CY
60392009-01-08 Chong Yidong <cyd@stupidchicken.com>
6040
51d861de 6041 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 6042
5f004711
JR
60432009-01-08 Jason Rumney <jasonr@gnu.org>
6044
6045 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
6046 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
6047 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
6048 Don't declare.
fff4e459 6049 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
6050 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
6051
b71f6f73
KH
60522009-01-07 Kenichi Handa <handa@m17n.org>
6053
50b06221 6054 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 6055 remember the coding system used for decoding in
50b06221
KH
6056 coding_system (Bug#1039).
6057
b71f6f73 6058 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 6059 breaking the loop. (Bug#870)
b71f6f73
KH
6060 (decode_coding_utf_16, decode_coding_emacs_mule)
6061 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
6062 (decode_coding_charset): Likewise.
6063
56f668f7
MR
60642009-01-05 Martin Rudalics <rudalics@gmx.at>
6065
6066 * frame.c (x_set_frame_parameters): Make sure height (width) get
6067 applied when fullwidth (fullheight) is set. (Bug#1522)
6068
5da9424d
JB
60692009-01-04 Juanma Barranquero <lekktu@gmail.com>
6070
6071 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
6072 (utc_base): Declare as ULONGLONG, not long double.
6073 (convert_time_raw): Delete.
6074 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
6075 (initialize_utc_base): New function.
6076 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
6077 (convert_from_time_t): Use initialize_utc_base; compute result with
6078 64-bit arithmetic.
6079 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
6080
c4605e09
EZ
60812009-01-03 Eli Zaretskii <eliz@gnu.org>
6082
9acef61c 6083 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
6084 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
6085 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
6086 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
6087 [!subprocesses]: Define.
6088 (syms_of_process) [!subprocesses]: Intern and staticpro them.
6089 (Flist_system_processes, Fsystem_process_attributes)
6090 [!subprocesses]: Call list_system_processes and
6091 system_process_attributes instead of returning Qnil.
6092
9acef61c
JB
6093 * dosfns.c (system_process_attributes, list_system_processes):
6094 New functions.
c4605e09
EZ
6095
6096 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
6097
6098 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
6099 Don't use the default (no-op) implementation.
6100
8b7d0a16
JR
61012009-01-03 Jason Rumney <jasonr@gnu.org>
6102
a6d46bc1
JR
6103 * keyboard.c (parse_modifiers_uncached): Wheel events are
6104 clicks (bug#687).
6105
8b7d0a16
JR
6106 * w32term.c (x_query_colors, x_query_color): New functions.
6107
6108 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
6109 (svg_load_image): Cast returned pointers from dynamically loaded
6110 functions. Eliminate W32 specific code.
6111
bfe11752
DN
61122009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
6113
89e2438a
DN
6114 * nsfns.m (x_set_foreground_color, x_set_background_color)
6115 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
6116 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
6117 x_ prefix instead of ns_. Update references.
6118 (syms_of_nsfns): Add a FIXME comment.
6119
6120 * nsterm.m (x_set_cursor_type): New prototype.
6121 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
6122
bfe11752
DN
6123 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
6124 for Solaris instead of incorrectly providing Qutime and Qcutime.
6125
031da700
EZ
61262009-01-02 Eli Zaretskii <eliz@gnu.org>
6127
6128 * w32.c (process_times): Compute sum of utime and stime.
6129 (system_process_attributes): Add Qtime to the alist.
6130
6131 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6132 and add them to the alist.
6133
6134 * process.c (top level) <Qtime, Qctime>: New variables.
6135 (syms_of_process): staticpro them.
6136 (Fsystem_process_attributes): Add their documentation to the doc
6137 string.
6138
6139 * process.h: Declare Qtime and Qctime.
6140
df23bf08
JR
61412009-01-02 Jason Rumney <jasonr@gnu.org>
6142
9acef61c 6143 * image.c (Qgobject): New symbol.
df23bf08
JR
6144 (syms_of_image): Initialize it.
6145 (init_svg_functions): Load some functions from gobject library.
6146
5bbdf7aa
DN
61472009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6148
6149 * frame.c (make_terminal_frame): Remove redundant code and useless
6150 block.
6151
63136da6
AS
61522009-01-01 Andreas Schwab <schwab@suse.de>
6153
6154 * process.c (conv_sockaddr_to_lisp): Add workaround for
6155 getsockname bug on BSD.
6156
9ef69046
CY
61572009-01-01 Chong Yidong <cyd@stupidchicken.com>
6158
d6fafbe0
CY
6159 * xfns.c (x_create_tip_frame): Set border width of the X window.
6160
51d861de 6161 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6162
f9c34147
JR
61632009-01-01 Jason Rumney <jasonr@gnu.org>
6164
9acef61c 6165 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6166 Don't block input, as per earlier xterm.c changes.
6167
f5497e45
AR
61682008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6169
6170 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6171 (ns_appkit_version_int): New function.
6172 (x-server-version): Use ns_appkit_version_int and follow 21+
6173 convention of returning 3 integers.
6174
c19cab20
KH
61752008-12-30 Kenichi Handa <handa@m17n.org>
6176
6177 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6178 (CHAR_SURROGATE_PAIR_P): New macro.
6179
6180 * font.h (struct font_driver): New member get_variation_glyphs.
6181
9acef61c 6182 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6183 (Ffont_variation_glyphs): New function.
6184 (syms_of_font): Defsubr it.
6185
6186 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6187 ftfont_variation_glyphs.
6188 (setup_otf_gstring): New function.
6189 (ftfont_drive_otf): Use it.
6190 (ftfont_shape_by_flt): Handle variation selector.
6191 (ftfont_variation_glyphs): New function.
6192
28cd591f
MR
61932008-12-30 Martin Rudalics <rudalics@gmx.at>
6194
6195 * frame.c (Vemacs_iconified): Remove.
6196
7f714baf
JR
61972008-12-30 Jason Rumney <jasonr@gnu.org>
6198
6199 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6200 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6201
9d2d22ab
CY
62022008-12-30 Chong Yidong <cyd@stupidchicken.com>
6203
6204 * indent.c (Fvertical_motion): Don't advance iterator if we have
6205 reseated to the desired position.
6206
6207 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6208 checking for pos match.
6209
545312c2
KH
62102008-12-30 Kenichi Handa <handa@m17n.org>
6211
1ede3eb6
KH
6212 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6213 just get the low 8-bit of the code.
6214
545312c2
KH
6215 * font.c (font_intern_prop): Validate str as multibyte.
6216
bd7bbf29
DN
62172008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6218
31e0750e
DN
6219 * dispextern.h (struct face): Move lface and hash from the middle
6220 of bitfields.
6221
bd7bbf29
DN
6222 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6223
b5672e7c
DN
62242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6225
6226 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6227 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6228 instead of intervals.h.
6229
d704470f
AS
62302008-12-26 Andreas Schwab <schwab@suse.de>
6231
6232 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6233 cons.
6234
54b33868
MR
62352008-12-26 Martin Rudalics <rudalics@gmx.at>
6236
6237 * textprop.c (Qminibuffer_prompt): New variable.
6238 (syms_of_textprop): Initialize it.
6239 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6240 in minibuffer-prompt face. (Bug#1662)
6241
40b615d6
JR
62422008-12-25 Jason Rumney <jasonr@gnu.org>
6243
6244 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6245
baae5c2d
JR
62462008-12-24 Jason Rumney <jasonr@gnu.org>
6247
6248 * ralloc.c (r_alloc_reset_variable): New function.
6249
6250 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6251 record of what points where. (Bug#716)
baae5c2d 6252
a9051c88
DN
62532008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6254
6255 * minibuf.c (read_minibuf): Follow the non-interactive case when
6256 running as a daemon, before detaching.
6257
8b146312
AS
62582008-12-22 Andreas Schwab <schwab@suse.de>
6259
6260 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6261 * gtkutil.c (free_widget_value): Use xfree instead of free.
6262
56f2de10
MR
62632008-12-22 Martin Rudalics <rudalics@gmx.at>
6264
6265 * frame.c (delete_frame): New function derived from
6266 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6267 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6268 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6269 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6270 * frame.h: Extern delete_frame.
6271 * window.c (window_loop):
6272 * terminal.c (delete_terminal):
6273 * xterm.c (x_connection_closed):
6274 * xfns.c (Fx_hide_tip):
9acef61c 6275 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6276
1fc200d6
JR
62772008-12-21 Jason Rumney <jasonr@gnu.org>
6278
6279 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6280 when character maps to .notdef character.
6281
5e252df2
SM
62822008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6283
6284 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6285
99b72cc4
JR
62862008-12-20 Jason Rumney <jasonr@gnu.org>
6287
6288 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6289 a graphical frame on Windows. (Bug#1325)
99b72cc4 6290
acc49a52
JD
62912008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6292
6293 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6294
6ea15123
CY
62952008-12-20 Chong Yidong <cyd@stupidchicken.com>
6296
6297 * minibuf.c (Fread_buffer): Doc fix.
6298
b2dab6c8
JR
62992008-12-20 Jason Rumney <jasonr@gnu.org>
6300
54ea0c87 6301 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6302 server name in UNC paths. (Bug#719)
54ea0c87 6303
b2dab6c8 6304 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6305 charbuf. (Bug#1035)
b2dab6c8 6306
6d1921be
DN
63072008-12-19 Daniel Engeler <engeler@gmail.com>
6308
6309 * sysdep.c (serial_configure): Fix typo.
6310
53934c98
DN
63112008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6312
6313 * sysdep.c: Include alloca.h.
f4f634e8
DN
6314 (system_process_attributes): Add implementation for Solaris.
6315
6316 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6317
06e111a6
DN
63182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6319
6320 Reorganize implementation of Flist_system_processes and
6321 Fsystem_process_attributes. No functional changes.
6322 * process.c: Don't #include pwd.h, grp.h and limits.h.
6323 (Flist_system_processes): Just call list_system_processes.
6324 (Fsystem_process_attributes): Just call system_process_attributes.
6325 (procfs_list_system_processes, time_from_jiffies)
6326 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6327 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6328
6329 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6330 (list_system_processes): Rename from
6331 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6332 Provide a do nothing implementation.
6333 (system_process_attributes): Rename from
6334 procfs_list_system_processes.
6335 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6336 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6337
6338 * w32.c (list_system_processes): Rename from
6339 w32_list_system_processes.
6340 (system_process_attributes): Rename from
6341 w32_system_process_attributes.
6342
6343 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6344
6345 * process.h (w32_list_system_processes)
6346 (w32_system_process_attributes): Remove.
362654a6
JB
6347 (list_system_processes, system_process_attributes):
6348 New prototypes.
06e111a6 6349
6a705b23
KH
63502008-12-19 Kenichi Handa <handa@m17n.org>
6351
6352 * xfont.c (xfont_decode_coding_xlfd): New function.
6353 (xfont_encode_coding_xlfd): New function.
6354 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6355 (xfont_list): Decode and encode XLFD by iso-8859-1.
6356 (xfont_match): Likewise.
6357 (xfont_list_family): Likewise.
6358 (xfont_open): Likewise.
6359
d66c0241 6360 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6361 names are utf-8.
6362
d66c0241 6363 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6364 names are utf-8.
6365
5a130941
JD
63662008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6367
6368 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6369 changed.
bfd20325
JD
6370 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6371 clicked on a detached tool bar button.
5a130941 6372
fd95644b
DN
63732008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6374
6375 * emacs.c (main): Print and error and exit when no data is read
6376 from the pipe.
6377
e6eee6ae
JR
63782008-12-17 Jason Rumney <jasonr@gnu.org>
6379
6380 * w32font.c (w32font_has_char): Always return -1.
6381
a35dd56b
KH
63822008-12-16 Kenichi Handa <handa@m17n.org>
6383
6384 * font.c (font_open_entity): Fix previous change.
6385
0e3635c2
DN
63862008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6387
6388 * process.c: Include <limits.h>.
6389
d4835507 63902008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6391
6392 * font.c (font_update_drivers): Fix mistake in reconstructing the
6393 driver list.
6394
63952008-12-16 Chong Yidong <cyd@stupidchicken.com>
6396
6397 * font.c (font_clear_cache): Fix format of font cache data.
6398
e2cbc401
CY
63992008-12-15 Chong Yidong <cyd@stupidchicken.com>
6400
6401 * xftfont.c (xftfont_open): Free Xft font pattern if
6402 XftFontOpenPattern fails.
6403
6404 * xterm.c (x_free_frame_resources): Remove extraneous call to
6405 free_frame_faces.
6406
b131d535
CY
64072008-12-13 Chong Yidong <cyd@stupidchicken.com>
6408
6409 * xterm.c (x_delete_display): Move xim_close_dpy call to
6410 x_delete_terminal.
6411 (x_delete_terminal): Call xim_close_dpy.
6412
e6df5336
JR
64132008-12-13 Jason Rumney <jasonr@gnu.org>
6414
6415 * w32font.c (intern_font_name): New function.
6416 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6417 (w32font_open_internal, Fx_select_font): Decode font name.
6418 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6419
6420 * w32font.h (intern_font_name): Declare new function.
6421
6422 * w32uniscribe.c (add_opentype_font_name_to_list):
6423 Use intern_font_name.
6424
20d68145
CY
64252008-12-13 Chong Yidong <cyd@stupidchicken.com>
6426
9f2554de
CY
6427 * frame.c (Fdelete_frame): Call free_font_driver_list.
6428
3d9bec9a
CY
6429 * font.c (free_font_driver_list): Implement missing function.
6430
20d68145
CY
6431 * w32term.c (w32_term_init): Don't initialize the image cache
6432 here; it will be done in init_frame_faces.
6433
6434 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6435 (struct x_display_info): Remove unused member null_pixel. New
6436 member xim_callback_data.
6437
6438 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6439 (xim_initialize): Save pointer to callback function data.
6440 (xim_close_dpy): Free callback function data. Call XCloseIM,
6441 reverting 2008-11-04 change by David Smith.
6442 (x_term_init): Don't initialize the image cache here; it will be
6443 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6444 (x_delete_display): Free x_dnd_atoms member.
6445
96f9306b
KH
64462008-12-13 Kenichi Handa <handa@m17n.org>
6447
6dec9044
JB
6448 * font.c (font_rescale_ratio): Moved from xfaces.c.
6449 Argument type changed. Handle a font-spec too.
96f9306b 6450 (font_score): Check Vface_font_rescale_alist.
6dec9044 6451 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6452
6453 * xfaces.c (font_rescale_ratio): Moved to font.c.
6454
8d5b4964
CY
64552008-12-13 Chong Yidong <cyd@stupidchicken.com>
6456
6457 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6458
e6df5336
JR
64592008-12-12 Jason Rumney <jasonr@gnu.org>
6460
6461 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6462 Vwindow_system_version to the real w32 major version.
6463
97c6058a
DN
64642008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6465
6466 * term.c (init_tty): Move setting the terminal name before the
6467 potential user: maybe_fatal.
6468
ec4e88d7
CY
64692008-12-11 Chong Yidong <cyd@stupidchicken.com>
6470
d4835507
JB
6471 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6472 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6473
b4233ec9
JR
64742008-12-11 Jason Rumney <jasonr@gnu.org>
6475
8ec71e23 6476 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6477 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6478
b4233ec9 6479 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6480 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6481
011a0143
JB
64822008-12-11 Juanma Barranquero <lekktu@gmail.com>
6483
6484 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6485
3c309f34
JB
64862008-12-11 Juanma Barranquero <lekktu@gmail.com>
6487
6488 * process.c (Fsystem_process_attributes, syms_of_process):
6489 Fix typo in name of Ssystem_process_attributes.
6490 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6491
fedc6ab5
JB
64922008-12-11 Juanma Barranquero <lekktu@gmail.com>
6493
6494 * syntax.c (Fmodify_syntax_entry): Doc fix.
6495
ba3de0e8
JB
64962008-12-10 Juanma Barranquero <lekktu@gmail.com>
6497
6498 * font.c (Ffont_spec): Move usage to end of docstring.
6499
174f1c74
JR
65002008-12-10 Jason Rumney <jasonr@gnu.org>
6501
6502 * w32font.c (Qcham): New symbol.
6503 (font_supported_scripts): Add cham, and comments for other new
6504 scripts in bitfield from OpenType spec.
9d32f818
JR
6505 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6506 contain characters beyond the bmp.
174f1c74 6507
7b649478
KH
65082008-12-10 Kenichi Handa <handa@m17n.org>
6509
6510 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6511 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6512 Qunicode_sip.
6513
2133e2d1
JB
65142008-12-10 Juanma Barranquero <lekktu@gmail.com>
6515
6516 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6517 (Fcoding_system_put): Use QCdefault_char.
6518 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6519
9af886ee
CY
65202008-12-09 Chong Yidong <cyd@stupidchicken.com>
6521
74d819eb
CY
6522 * xftfont.c (syms_of_xftfont): Fix typo.
6523
4ccfa1c0 6524 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6525
7c19d3ae
DN
65262008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6527
6528 * emacs.c (main): Close daemon_pipe on exec.
6529
567826bb
CY
65302008-12-08 Chong Yidong <cyd@stupidchicken.com>
6531
6532 * termchar.h (struct tty): New members termcap_term_buffer and
6533 termcap_strings_buffer.
6534
6535 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6536 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6537 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6538 All callers changed.
6539 (init_tty): Store termcap data and string buffers in new struct
6540 tty members termcap_term_buffer and termcap_strings_buffer.
6541 (delete_tty): Free them.
4ccfa1c0 6542 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6543
aa96c42b
SZ
65442008-12-07 Seiji Zenitani <zenitani@mac.com>
6545
6546 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6547 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6548
b7e1d896
CY
65492008-12-06 Chong Yidong <cyd@stupidchicken.com>
6550
6551 * coding.c (make_conversion_work_buffer): Disable buffer
6552 modification hooks in the work buffer.
6553
b5ec91a5
EZ
65542008-12-05 Eli Zaretskii <eliz@gnu.org>
6555
6556 * process.c (procfs_system_process_attributes): If `nread' has a
6557 negative value, assign zero to it.
6558
a5d2a52b
CY
65592008-12-05 Chong Yidong <cyd@stupidchicken.com>
6560
68c5540b 6561 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6562
7bf1bb21
KH
65632008-12-05 Kenichi Handa <handa@m17n.org>
6564
6565 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6566 second character is a combining character.
6567
2fdc7d00
EZ
65682008-12-05 Eli Zaretskii <eliz@gnu.org>
6569
6570 * process.c (procfs_system_process_attributes): Don't use cmd,
6571 cmdsize, and q without initializing them first.
6572
bf6bfba8
JR
65732008-12-04 Jason Rumney <jasonr@gnu.org>
6574
6575 * w32font.c (w32font_draw): Initialize orig_clip before getting
6576 it, and delete it when finished.
6577
a3b1a468
DN
65782008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6579
6580 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6581 case when running as a daemon before detaching.
6582
8b8be8eb
JB
65832008-12-03 Juanma Barranquero <lekktu@gmail.com>
6584
805f2638 6585 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6586
b1bde622
KH
65872008-12-03 Kenichi Handa <handa@m17n.org>
6588
e500c47d
KH
6589 * font.c (font_at): Set `multibyte' at first.
6590
ca516334
KH
6591 * coding.c (decode_coding_charset): Check type of an element of
6592 vector VALIDS.
7bf1bb21 6593 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6594
4ccfa1c0 6595 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6596 (font_for_char): Likewise.
6597
1e5ecd37
CY
65982008-12-03 Chong Yidong <cyd@stupidchicken.com>
6599
d5b01609 6600 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6601 (font_update_lface): Handle fonts with corrupted size specs,
6602 i.e. non-int and non-float.
d5b01609 6603
11e3a6e4 6604 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6605 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6606 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6607
ab06788b
CY
6608 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6609
1e5ecd37 6610 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6611 underline_minimum_offset for underline position.
1e5ecd37 6612
63c125ab
DN
66132008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6614
6615 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6616
6617 * character.c (c_string_width): Specify the type for LEN.
6618
3a8406e1
KH
66192008-12-03 Kenichi Handa <handa@m17n.org>
6620
4ccfa1c0 6621 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6622 (decode_coding_utf_8): Likewise.
4ccfa1c0 6623 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6624 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6625
651df7d9
CY
66262008-12-02 Chong Yidong <cyd@stupidchicken.com>
6627
6628 * keyboard.c (make_lispy_position): Only use PT if the selected
6629 window is current.
6630
1f625c6c
AS
66312008-12-02 Andreas Schwab <schwab@suse.de>
6632
f7741ce9
AS
6633 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6634
1f625c6c
AS
6635 * doprnt.c (doprnt1): Fix size of charbuf.
6636
92bc2678
CY
66372008-12-02 Chong Yidong <cyd@stupidchicken.com>
6638
6639 * keyboard.c (timer_check): Revert last change.
6640
93b9e8cc
JB
66412008-12-02 Juanma Barranquero <lekktu@gmail.com>
6642
6643 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6644
fd7a37d5
JB
66452008-12-01 Juanma Barranquero <lekktu@gmail.com>
6646
6647 * makefile.w32-in: Update dependencies.
6648 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6649
c115043b
AS
66502008-12-01 Andreas Schwab <schwab@suse.de>
6651
6652 * font.c (register_font_driver): Use xmalloc.
6653 (font_put_frame_data): Likewise.
6654
f5668d2a
CY
66552008-12-01 Chong Yidong <cyd@stupidchicken.com>
6656
860d96be
CY
6657 * xfaces.c (realize_x_face): Make abort condition clearer.
6658
f5668d2a
CY
6659 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6660
379c17e7
CY
66612008-11-30 Chong Yidong <cyd@stupidchicken.com>
6662
6663 * keyboard.c (timer_check): After a timer runs, ensure that the
6664 selected window's buffer is current.
6665
35f36d65
JB
66662008-11-30 Juanma Barranquero <lekktu@gmail.com>
6667
f952c61c
JB
6668 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6669 It was accidentally restored by the Unicode merge.
6670
35f36d65
JB
6671 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6672
b23077df
JB
66732008-11-29 Juanma Barranquero <lekktu@gmail.com>
6674
6675 * w32proc.c: Include "coding.h".
6676 (Fw32_short_file_name): Encode filename passed to Windows API.
6677 (Fw32_long_file_name): Encode filename passed to Windows API and
6678 decode back the result. (Bug#1433)
6679
b8ebe9dd
KH
66802008-11-29 Kenichi Handa <handa@m17n.org>
6681
8cc53f96
KH
6682 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6683 not before accessing it.
6684
b8ebe9dd
KH
6685 * charset.c (Fdefine_charset_internal): After calculating
6686 min_char, max_char, and fastmap, copy the charset structure again.
6687 (encode_char): Fix the previous change.
6688
59bc82c0
SZ
66892008-11-28 Seiji Zenitani <zenitani@mac.com>
6690
6691 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6692
6693 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6694
6695 * nsterm.m (x_set_frame_alpha): New function.
6696
32247e3d
EZ
66972008-11-27 Eli Zaretskii <eliz@gnu.org>
6698
6699 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6700
b003e5ff
JB
67012008-11-27 Juanma Barranquero <lekktu@gmail.com>
6702
6703 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6704 pointer to check_face_name.
6705
708550f5
KH
67062008-11-27 Kenichi Handa <handa@m17n.org>
6707
6708 * category.h (SET_CATEGORY_SET): Call set_category_set.
6709 (set_category_set): Extern it.
6710
6711 * category.c (hash_get_category_set): New function.
6712 (Fmodify_category_entry): Adjusted for the change of
6713 char_table_ref_and_range. Call hash_get_category_set to get a
6714 category set to store in the table.
6715
6716 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6717 Funify_charset.
6718
2ae37cf0 6719 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6720 (DECODE_CHAR): Check if the decoder vector is ready.
6721 (ENCODE_CHAR): Check if the encoder char-table is ready.
6722 (maybe_unify_char): Extern it.
6723
6724 * charset.c (Vchar_unified_charset_table): Delete it.
6725 (inhibit_load_charset_map): New variable.
6726 (temp_charset_work): New variable.
6727 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6728 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6729 New macros.
6730 (load_charset_map): Meaning of control_flag changed. If
6731 inhibit_load_charset_map is nonzero, setup a table in
6732 temp_charset_work.
6733 (load_charset): New argument control_flag.
6734 (map_charset_for_dump): New function.
6735 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6736 map_charset_for_dump.
6737 (Fdefine_charset_internal): If the charset method is MAP, load
6738 mapping tables by calling load_charset.
6739 (Funify_charset): Don't load a mapping table but directly set
6740 Vchar_unify_table.
6741 (maybe_unify_char): New function.
6742 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6743 Handle the case of inhibit_load_charset_map being nonzero.
6744 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6745 Handle the case of inhibit_load_charset_map being nonzero.
6746 (Fclear_charset_maps): Just free temp_charset_work.
6747 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6748 variable.
6749
6750 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6751 change of char_table_ref_and_range.
6752 (char_table_ref_and_range): Change the meaning of argument FROM
6753 and TO. Now the caller must provide initial values for *FROM
6754 and *TO.
6755
6756 * fontset.c (fontset_add): Adjusted for the change of
6757 char_table_ref_and_range.
6758 (fontset_get_font_group): Likewise.
6759 (Ffontset_info): Likewise.
6760
6761 * keymap.c (describe_vector): Adjusted for the change of
6762 char_table_ref_and_range. For char-table, put boundary between
6763 non-ASCII and 8-bit characters.
6764
6765 * print.c (print_object): For bool-vector, delete unnecessary
6766 check of ASCII_BYTE_P.
6767
9196133b
JR
67682008-11-26 Jason Rumney <jasonr@gnu.org>
6769
6770 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6771 leading in font height. (Bug#879)
9196133b 6772
9f688acf
GM
67732008-11-26 Glenn Morris <rgm@gnu.org>
6774
6775 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6776 redefinition with ifdef. (Bug#1383)
6777
90d19aff
AR
67782008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6779
6780 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6781
4ccfa1c0 67822008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6783
6784 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6785 New EmacsView methods.
6786 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6787 Fixes bug #1048,1357,1414.
6788
67892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6790
6791 Fix bug #1362.
6792 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6793 is not an indexed color.
6794 * nsterm.m (free_indexed_color): Add argument checking.
6795 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6796
e7d5ecb3
CY
67972008-11-24 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6800 Document confirm-after-completion value for
6801 minibuffer-completion-confirm.
6802
c285743c
JR
68032008-11-24 Jason Rumney <jasonr@gnu.org>
6804
6805 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6806 warning.
6807
b0857706
JR
68082008-11-23 Jason Rumney <jasonr@gnu.org>
6809
6810 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6811 restored before returning.
6812
6813 * w32font.c (check_face_name): New function.
6814 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6815 fonts. (Bug#642)
b0857706 6816
ee50ff07
MR
68172008-11-22 Martin Rudalics <rudalics@gmx.at>
6818
6819 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6820 confirm-nonexistent-file-or-buffer in doc-string.
6821
b8ff72fa
SM
68222008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6823
6824 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6825 Fix copy/paste typo. Add checks.
6826
cee53ed4
KH
68272008-11-21 Kenichi Handa <handa@m17n.org>
6828
6829 * coding.c (detect_coding_iso_2022): Reject invalid composition
6830 sequence.
6831 (DECODE_COMPOSITION_START): If the current source is the last
6832 block, and the current composition doesn't end, regard this
6833 sequence as invalid.
6834 (decode_coding_iso_2022): Handle invalid composition sequence.
6835
f6ef1e65
MR
68362008-11-20 Martin Rudalics <rudalics@gmx.at>
6837
6838 * window.c (coordinates_in_window): Don't return
6839 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6840 line when the window is not the rightmost one. (Bug#1372)
6841
e08b1705
MR
68422008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6843
6844 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6845
ad98e89f
EZ
68462008-11-15 Eli Zaretskii <eliz@gnu.org>
6847
6848 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6849 and bright_bg if noninteractive is non-zero.
6850
fb098a4b
CY
68512008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6852
6853 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6854 x_draw_glyph_string_background.
6855
6856 * w32term.c (x_draw_glyph_string): Likewise.
6857
ce952b6e
CY
68582008-11-15 Chong Yidong <cyd@stupidchicken.com>
6859
6860 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6861 the next glyph string once past the overhang width.
6862
6863 * nsterm.m (ns_draw_glyph_string): Likewise.
6864
6865 * w32term.c (x_draw_glyph_string): Likewise.
6866
26ea7079
CY
68672008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6868
6869 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6870 double file close.
6871
1c33c906
MR
68722008-11-14 Martin Rudalics <rudalics@gmx.at>
6873
6874 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6875 dedicated status of window before attempting to display another
6876 buffer in it.
6877
8fc29035
JB
68782008-11-14 Juanma Barranquero <lekktu@gmail.com>
6879
6880 * msdos.c (Fmsdos_long_file_names):
6881 (syms_of_msdos) <dos-unsupported-char-glyph>:
6882 * dosfns.c (Fint86): Fix typos in docstrings.
6883
55fb4286
EZ
68842008-11-14 Eli Zaretskii <eliz@gnu.org>
6885
6886 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6887
3fda0315
KY
68882008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6889
6890 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6891
7e849c17
CY
68922008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6893
6894 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6895
6896 * frame.h: Negative alpha means "don't touch".
6897
6898 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6899
6900 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6901
b9fd67bd
DN
69022008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6903
6904 * hftctl.c:
6905 * chpdef.h:
6906 * acldef.h: Remove files used only for systems no longer supported.
6907
6908 * Makefile.in: Fix .o alphabetical ordering.
6909 (hftctl.o): Remove dependency, file removed.
6910 (keymap.o, print.o): Depend on charset.h.
6911
d5998e03
KH
69122008-11-10 Kenichi Handa <handa@m17n.org>
6913
2ae37cf0 6914 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6915
be70e183
CY
69162008-11-08 Chong Yidong <cyd@stupidchicken.com>
6917
6918 * dired.c (file_name_completion): If completion_ignore_case is
6919 enabled, ignore case when checking completion-regexp-list.
6920
7cf94eac
EZ
69212008-11-08 Eli Zaretskii <eliz@gnu.org>
6922
6923 * vm-limit.c (get_lim_data): Fix last change.
6924
ee107a89
KH
69252008-11-08 Kenichi Handa <handa@m17n.org>
6926
6927 * character.c (Fget_byte): New function.
6928 (syms_of_character): Defsubr Fget_byte.
6929
5fd15622
CY
69302008-11-07 Chong Yidong <cyd@stupidchicken.com>
6931
6932 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6933 cursor position is valid after scrolling.
6934
13d62fad
JB
69352008-11-06 Juanma Barranquero <lekktu@gmail.com>
6936
6937 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6938
a1dd2936
GM
69392008-11-06 Glenn Morris <rgm@gnu.org>
6940
6941 * xterm.c (handle_one_xevent): Don't let popup menus cause
6942 mouse-autoselect-window related window switching. (Bug#1261)
6943
860cd236
CY
69442008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6945
6946 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6947
653a3150
AS
69482008-11-04 Andreas Schwab <schwab@suse.de>
6949
6950 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6951
870f5cac
CY
69522008-11-03 Chong Yidong <cyd@stupidchicken.com>
6953
6954 * xfns.c (Fx_wm_set_size_hint): New function.
6955
1e02f3cb
MR
69562008-11-03 Martin Rudalics <rudalics@gmx.at>
6957
6958 * textprop.c (Fprevious_single_char_property_change): Return 0
6959 when there's no change in a string. (Bug#1301)
6960
e630dfc6
MR
69612008-11-02 Martin Rudalics <rudalics@gmx.at>
6962
6963 * frame.c (do_switch_frame): New argument NORECORD passed to
6964 Fselect_window.
6965 (Fselect_frame): New argument NORECORD passed to
6966 do_switch_frame.
6967 (Fset_frame_selected_window): New argument NORECORD passed to
6968 Fselect_frame.
6969 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6970 in call of do_switch_frame.
6971 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6972 Handle NORECORD argument in call of Fselect_frame.
6973 * lisp.h (do_switch_frame, Fselect_frame)
6974 (Fset_frame_selected_window): Adjust declarations.
6975 * window.c (select_frame_norecord): New function.
6976 (run_window_configuration_change_hook): Use it and call
6977 Fselect_frame with NORECORD set.
6978 (Fselect_window): Pass NORECORD to Fselect_frame.
6979 (Fset_window_configuration): Handle NORECORD argument in call of
6980 do_switch_frame.
6981 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6982 Fset_frame_selected_window.
6983 * keyboard.c (command_loop_1): Handle NORECORD in call of
6984 Fselect_frame (currently ifdefd).
6985
9020b223
GM
69862008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6987
6988 * emacs.c (USAGE2): Untabify.
6989
793ffee8
SM
69902008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6991
6992 * composite.c (fill_gstring_header): Fix copy/paste typo.
6993
ab6d1131
MR
69942008-10-31 Martin Rudalics <rudalics@gmx.at>
6995
6996 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6997 (Fother_window): Rename argument and rewrite doc-string.
6998 (select_window_norecord): Fix return value. (Bug#1276)
6999
601a9cf1
JB
70002008-10-30 Juanma Barranquero <lekktu@gmail.com>
7001
7002 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
7003 new frames overriding foreground for tooltips. Based on similar patch
7004 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
7005
813b0652
CY
70062008-10-29 Chong Yidong <cyd@stupidchicken.com>
7007
7008 * emacs.c (Fdaemon_initialized): Initialize nfd.
7009
4414f58f
MR
70102008-10-29 Martin Rudalics <rudalics@gmx.at>
7011
7012 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
7013 (Fwindow_text_height): Clarify doc-strings.
7014 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
7015 doc-string of window-scroll-functions.
7016
ecdcaa09
RS
70172008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
7018
7019 * category.c (syms_of_category): Fix typo in docstring.
7020
23fe745a
JB
70212008-10-28 Juanma Barranquero <lekktu@gmail.com>
7022
7023 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
7024 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
7025 Fix typos in docstrings.
7026
ff808935
DN
70272008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
7028
7029 * emacs.c (daemon_pipe): Make non-static.
7030 (IS_DAEMON): Move definition ...
7031 * lisp.h (IS_DAEMON): ... here.
7032 (daemon_pipe): Declare.
7033 (is_daemon): Remove.
7034 * dispnew.c (init_display): Use IS_DAEMON.
7035
fc012771
SM
70362008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7037
7038 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
7039 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
7040
7041 * emacs.c (is_daemon): Remove.
7042 (main): Don't set is_daemon.
7043 (IS_DAEMON): New macro.
7044 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 7045 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
7046 parent exits.
7047 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
7048
d8bdbe6f
CY
70492008-10-27 Chong Yidong <cyd@stupidchicken.com>
7050
d1a072bf
CY
7051 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
7052 over-sized glyph, draw it with the default glyph width.
7053
e2e325aa
CY
7054 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7055 glyph, draw it with the default glyph width.
7056
7057 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
7058 glyph, draw it with the default glyph width.
7059
d8bdbe6f
CY
7060 * xdisp.c (try_scrolling): When computing the distance from the
7061 scroll margin to PT, try moving some distance past the window
7062 bottom before giving up.
7063
7bfac547
MR
70642008-10-27 Martin Rudalics <rudalics@gmx.at>
7065
7066 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
7067 (Fset_window_buffer): Explain in doc-string that a window can be
7068 "strongly" dedicated to its buffer.
7069
4ff029f6
DN
70702008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
7071
7072 * emacs.c (daemon_name): New variable.
7073 (main): Deal with --daemon=SERVER_NAME.
7074 (Fdaemonp): Return a name if one was passed to --daemon.
7075
5790ef40
DN
70762008-10-26 Romain Francoise <romain@orebokech.com>
7077
f9bd0df9 7078 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
7079 (main): Create a pipe before forking, make the parent exit only after
7080 the child has closed its end of the pipe. Move closing the
7081 descriptors ...
7082 (Fdaemon_initialized): ... here. New function.
7083
f5385255
SM
70842008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
7085
4d632321
SM
7086 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
7087 the previous unoptimized table.
7088
f5385255
SM
7089 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
7090 the distinction between non-nil and non-t value of `dedicated'.
7091
6c56a0f3
CY
70922008-10-25 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 7095 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 7096
fec89261
MR
70972008-10-25 Martin Rudalics <rudalics@gmx.at>
7098
7099 * window.c (Fget_buffer_window, Fdelete_windows_on)
7100 (Freplace_buffer_in_windows): Make buffer argument optional and
7101 rename to buffer_or_name.
7102
34fcddd0
CY
71032008-10-24 Chong Yidong <cyd@stupidchicken.com>
7104
f5385255
SM
7105 * xdisp.c (handle_single_display_spec, handle_display_prop):
7106 Undo 2005-05-16 change.
34fcddd0
CY
7107 (handle_stop): Pop iterator if it's loaded with an empty string.
7108 (get_overlay_strings_1): Don't save iterator if it's loaded with
7109 an empty string (bug#1201).
7110
064766f2
KH
71112008-10-24 Kenichi Handa <handa@m17n.org>
7112
7113 * ftfont.c (ftfont_otf_features): Fix previous change.
7114 (ftfont_otf_capability): Check FeatureList.FeatureCount before
7115 calling ftfont_otf_features.
7116
f9bd0df9 71172008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
7118
7119 * font.c (font_match_p): Fix for the case that a vector of
7120 characters is in script-representative-chars.
7121
1dae9197
MA
71222008-10-24 Michael Albinus <michael.albinus@gmx.de>
7123
7124 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 7125 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
7126 (xd_read_queued_messages): Catch Qdbus_error from the macros.
7127 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 7128 macro. (Bug#1186)
1dae9197 7129
f9bd0df9 71302008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7131
7132 * s/sol2-10.h: New file.
7133
878a4584
JB
71342008-10-23 Juanma Barranquero <lekktu@gmail.com>
7135
7136 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7137 poor beast has survived 9+ years and the jump from xterm.c!).
7138
cd265ca6
MR
71392008-10-23 Martin Rudalics <rudalics@gmx.at>
7140
7141 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7142 Reword doc-string.
f5385255 7143 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7144
472a4dc9
JB
71452008-10-23 Juanma Barranquero <lekktu@gmail.com>
7146
7147 * character.c (syms_of_character) <script-representative-chars>:
7148 <unicode-category-table>: Doc fixes.
7149
159bd5a2
NF
71502008-10-23 Noah Friedman <friedman@splode.com>
7151
7152 * coding.c (make_conversion_work_buffer): Check that
7153 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7154 Fget_buffer_create.
7155
49f9c344
KH
71562008-10-23 Kenichi Handa <handa@m17n.org>
7157
7158 * font.c (font_add_log): Check the values of extra properties.
7159
12bb3111
MR
71602008-10-22 Martin Rudalics <rudalics@gmx.at>
7161
7162 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7163 Reword doc-string.
7164 (Fset_window_parameter): Use NILP.
7165 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7166 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7167
bbeb4e99
JB
71682008-10-22 Juanma Barranquero <lekktu@gmail.com>
7169
7170 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7171
71722008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7173
7174 * nsfns.m (ns_appkit_version): New function.
7175 (x-server-version): Use it.
7176 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7177 (x-server-vendor): Don't check_ns().
7178
7179 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7180
a9b555d3
JB
71812008-10-22 Juanma Barranquero <lekktu@gmail.com>
7182
7183 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7184 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7185
4626499f
KH
71862008-10-22 Kenichi Handa <handa@m17n.org>
7187
e3681952
KH
7188 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7189 scripts.
7190
4626499f
KH
7191 * category.c (word_boundary_p): Check scripts instead of charset.
7192 Handle nil value in word-separating-categories and
7193 word-combining-categories.
7194 (syms_of_category): Fix docstrings of word-separating-categories
7195 and word-combining-categories.
7196
1560f91a
EZ
71972008-10-21 Eli Zaretskii <eliz@gnu.org>
7198
7199 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7200 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7201
f4668441
MR
72022008-10-21 Martin Rudalics <rudalics@gmx.at>
7203
7204 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7205 Rename arg "buffer" to "buffer_or_name".
7206 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7207 it optional.
7208 (no_switch_window): Remove since the return value is not used.
a9b555d3 7209 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7210 Consider window as dedicated when Fwindow_dedicated_p returns a
7211 non-nil value.
7212 * lisp.h: Remove prototype for no_switch_window.
7213
fd75ddb2
JD
72142008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7215
7216 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7217 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7218
07295713
KH
72192008-10-21 Kenichi Handa <handa@m17n.org>
7220
7221 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7222 check Vlatin_extra_code_table.
7223
712adc82
EZ
72242008-10-20 Eli Zaretskii <eliz@gnu.org>
7225
7226 * fileio.c (Fset_file_modes): Doc fix.
7227
f549eb0b
MA
72282008-10-19 Michael Albinus <michael.albinus@gmx.de>
7229
7230 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7231 in arrays.
7232
aac0c6e3
MR
72332008-10-19 Martin Rudalics <rudalics@gmx.at>
7234
7235 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7236 Mention kill-buffer in doc-string.
7237 (Fset_window_buffer): Reinsert tem check removed in last commit.
7238 (Fenlarge_window, Fshrink_window): Have argument names and
7239 doc-string follow Elisp manual more closely.
7240
72412008-10-18 Eli Zaretskii <eliz@gnu.org>
7242
7243 * fileio.c (Fset_file_modes): Doc fix.
7244
72452008-10-18 Martin Rudalics <rudalics@gmx.at>
7246
7247 * window.c (Fwindow_width, Fset_window_start)
7248 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7249 (Fdelete_windows_on, Freplace_buffer_in_windows):
7250 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7251 (Fwindow_dedicated_p): Make window argument optional.
7252 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7253 (Fset_window_buffer): Respect any non-nil dedicated value for
7254 window. Rename "buffer" argument to "buffer_or_name".
7255
72562008-10-18 Ulrich Mueller <ulm@gentoo.org>
7257
7258 * m/sh3.h: New file, machine description for SuperH.
7259
72602008-10-17 Martin Rudalics <rudalics@gmx.at>
7261
7262 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7263
72642008-10-17 Kenichi Handa <handa@m17n.org>
7265
7266 * ftfont.c (ftfont_otf_features): Fix indexing
7267 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7268
72692008-10-16 Magnus Henoch <mange@freemail.hu>
7270
7271 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7272 (Fdbus_call_method_asynchronously): Ditto.
7273 This change makes C-h f display the argument list.
7274
72752008-10-16 Chong Yidong <cyd@stupidchicken.com>
7276
7277 * fileio.c (Fexpand_file_name): Doc fix.
7278
7279 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7280 of :foreground and :background equivalent to unspecified (20.x
7281 compatibility).
7282
72832008-10-15 Eli Zaretskii <eliz@gnu.org>
7284
7285 * buffer.c (syms_of_buffer): Doc fix.
7286
72872008-10-14 Kenichi Handa <handa@m17n.org>
7288
7289 * font.c (font_clear_prop): When clearing font width, clear the
7290 average width field too.
7291
72922008-10-12 Andreas Schwab <schwab@suse.de>
7293
7294 * ftfont.c (ftfont_shape_by_flt): Make static.
7295 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7296
7297 * font.c: Don't include <m17n-flt.h>.
7298
72992008-10-10 Eli Zaretskii <eliz@gnu.org>
7300
7301 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7302
73032008-10-09 Eli Zaretskii <eliz@gnu.org>
7304
7305 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7306 away code.
7307
73082008-10-09 Chong Yidong <cyd@stupidchicken.com>
7309
7310 * dispnew.c (update_text_area): Avoid looping due to large glyph
7311 overhangs (bug#1070).
7312
73132008-10-09 Kenichi Handa <handa@m17n.org>
7314
7315 * fontset.c (face_for_char): If face->fontset is negative, just
7316 return ascii_face.
7317
f5385255
SM
7318 * font.c (font_delete_unmatched): Fix previous change.
7319 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7320
73212008-10-09 Martin Rudalics <rudalics@gmx.at>
7322
7323 * frame.c (Fraise_frame): On text-only terminals select frame in
7324 order to make it visible. (Bug#1061)
7325
73262008-10-08 Chong Yidong <cyd@stupidchicken.com>
7327
7328 * fontset.c (fontset_find_font): Check frame validity.
7329
73302008-10-07 Chong Yidong <cyd@stupidchicken.com>
7331
a9b555d3 7332 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7333 (xg_display_close): Allow Emacs to close all displays (bug#985).
7334
73352008-10-06 Andreas Schwab <schwab@suse.de>
7336
f5385255 7337 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7338
73392008-10-06 Chong Yidong <cyd@stupidchicken.com>
7340
f5385255 7341 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7342
a9b555d3 7343 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7344
7345 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7346 during initialization.
7347
73482008-10-04 Eli Zaretskii <eliz@gnu.org>
7349
7350 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7351 whole thing on MSDOS frames as well as on a TTY.
7352
7353 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7354 well as for TTY.
7355 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7356 well as on a TTY.
7357
7358 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7359 as well as for TTY.
7360
7361 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7362
7363 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7364 MSDOS frames as well.
7365
73662008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7367
7368 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7369 correct arguments.
b71ac3dd 7370 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7371
73722008-10-03 Glenn Morris <rgm@gnu.org>
7373
7374 * emacs.c (USAGE1): Add --daemon.
7375
73762008-10-02 Eli Zaretskii <eliz@gnu.org>
7377
7378 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7379 100, so it's in percents as advertised.
7380
73812008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7382
7383 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7384 (ns_output.current_cursor, ns_output.desired_cursor)
7385 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7386 (FRAME_NEW_CURSOR_COLOR): Remove.
7387
7388 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7389 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7390 enumeration (HOLLOW_BOX_CURSOR, etc.).
7391
7392 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7393 (draw_window_cursor): Simplify code.
f5385255
SM
7394 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7395 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7396 updates manually.
a9b555d3
JB
7397 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7398 Use core Emacs cursor types.
aac0c6e3 7399
b8ff72fa 7400 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7401
74022008-10-02 Martin Rudalics <rudalics@gmx.at>
7403
7404 * process.c (Faccept_process_output): Fix doc-string.
7405
74062008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7407
7408 * gmalloc.c (__sbrk): Also define for uClibc.
7409
7410 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7411 for uClibc.
7412
74132008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7414
7415 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7416 styles.
7417 (nsfont_open): Reenable the cache.
7418
74192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7420
7421 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7422 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7423
74242008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7425
7426 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7427 a suspended terminal.
7428
74292008-09-30 Michael Albinus <michael.albinus@gmx.de>
7430
7431 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7432
74332008-09-30 Eli Zaretskii <eliz@gnu.org>
7434
7435 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7436
74372008-09-30 Chong Yidong <cyd@stupidchicken.com>
7438
7439 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7440 in a continued line coincides with a line beginning.
7441
74422008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7443
7444 * nsfont.m (nsfont_trait_distance): Fix bug.
7445 (nsfont_list): Return a list rather than a vector (syncs with Handa
7446 changes of 2008-05-14).
7447 (nsfont_open): Improve logging.
7448
74492008-09-29 Andreas Schwab <schwab@suse.de>
7450
7451 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7452
74532008-09-28 Martin Rudalics <rudalics@gmx.at>
7454
7455 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7456 name as char-resolve-modifiers.
7457 Reported by: Markus Triska <markus.triska@gmx.at>
7458
74592008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7460
7461 * dispnew.c (init_display): Return earlier when running as a daemon.
7462
74632008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7464
7465 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7466
74672008-09-27 Eli Zaretskii <eliz@gnu.org>
7468
7469 * composite.c (Fcomposition_get_gstring)
7470 (Fcompose_region_internal, Fcompose_string_internal)
7471 (Ffind_composition_internal): Doc fix.
7472 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7473 (syms_of_composite) <auto-composition-function>: Doc fix.
7474 (syms_of_composite) <composition-function-table>: Doc fix.
7475
74762008-09-25 Chong Yidong <cyd@stupidchicken.com>
7477
7478 * search.c (wordify): New argument for lax word-ends.
7479 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7480
74812008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7482
7483 * lisp.h (is_daemon): Declare.
7484 * dispnew.c (init_display): Do not try to initialize the terminal
7485 when running as a daemon.
7486
74872008-09-22 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7490 x_display_pixel_height.
7491
74922008-09-22 Martin Rudalics <rudalics@gmx.at>
7493
7494 * undo.c (record_point): Don't call Fundo_boundary for first
7495 change. (Bug#731)
7496
74972008-09-22 Juanma Barranquero <lekktu@gmail.com>
7498
7499 * emacs.c (Fdaemonp): Doc fix.
7500
75012008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7502
7503 * emacs.c (main): Place #ifdef in the proper place.
7504
75052008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7506
7507 * emacs.c (standard_args): Add --daemon.
7508 (main): Disconnect from the terminal when --daemon is passed.
7509 (is_daemon): New variable.
7510 (Fdaemonp): New function.
7511 (syms_of_emacs): Defsubr it.
7512
75132008-09-20 Chong Yidong <cyd@stupidchicken.com>
7514
7515 * xdisp.c (get_next_display_element): Handle string display
7516 correctly when checking for the end of a box run.
7517
75182008-09-20 Glenn Morris <rgm@gnu.org>
7519
7520 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7521 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7522 (Frename_file): Avoid copying to trash if a rename involves
7523 a delete. (Bug#964).
7524
75252008-09-20 Eli Zaretskii <eliz@gnu.org>
7526
7527 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7528 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7529 frames as well as termcap frames.
7530 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7531 get_named_tty.
7532
75332008-09-19 Eli Zaretskii <eliz@gnu.org>
7534
7535 * process.c (procfs_system_process_attributes): Fix cmdline in
7536 case /proc/PID/cmdline is empty.
7537
7538 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7539 x_display_pixel_height.
7540
75412008-09-19 Juanma Barranquero <lekktu@gmail.com>
7542
7543 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7544
7545 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7546 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7547
75482008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7549
7550 * dispextern.h (struct it): Move line_wrap away from the middle of
7551 bitfields. Move voffset in struct iterator_stack_entry after the
7552 bitfields. Move tab_width near after another short.
7553
75542008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7555
7556 * frame.h (struct frame): Move alpha from the middle of bitfields.
7557
7558 * window.h (struct window): Move frozen_window_start_p after the
7559 rest of the bitfields to reduce padding.
7560
75612008-09-18 Chong Yidong <cyd@stupidchicken.com>
7562
7563 * xterm.h (x_display_info): Remove `height' and `width' members.
7564
7565 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7566
7567 * w32term.h (w32_display_info): Remove `height', `width',
7568 `height_in', and `width_in' members.
7569
b8ff72fa
SM
7570 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7571 New functions.
aac0c6e3
MR
7572 (x_calc_absolute_position): Use them.
7573 (x_term_init): Omit removed `height' and `width' members.
7574
b8ff72fa
SM
7575 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7576 New functions.
aac0c6e3
MR
7577 (w32_read_socket, x_calc_absolute_position): Use them.
7578 (w32_initialize_display_info, w32_term_init): Omit removed members
7579 of w32_display_info.
7580
b8ff72fa
SM
7581 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7582 New functions.
7583 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7584
b8ff72fa
SM
7585 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7586 New functions.
aac0c6e3
MR
7587 (x_calc_absolute_position): Use them.
7588 (x_term_init): Omit removed `height' and `width' members.
7589
7590 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7591 (compute_tip_xy):
7592 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7593 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7594 x_display_pixel_width.
7595
75962008-09-18 Kenichi Handa <handa@m17n.org>
7597
7598 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7599 (composition_compute_stop_pos): Fix handling of static composition.
7600 (Fcomposition_get_gstring): Check FROM and TO at first.
7601
76022008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7603
46e722a9 7604 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7605 mixup (YAILOM).
7606
76072008-09-17 Chong Yidong <cyd@stupidchicken.com>
7608
7609 * indent.c (Fvertical_motion): Use position reported by iterator
7610 instead of PT for determining screen motion (bug#943).
7611
76122008-09-17 Romain Francoise <romain@orebokech.com>
7613
7614 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7615
76162008-09-17 Kenichi Handa <handa@m17n.org>
7617
7618 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7619
7620 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7621 if necessary.
7622
76232008-09-16 Kenichi Handa <handa@m17n.org>
7624
7625 * coding.c (make_conversion_work_buffer): Avoid calling
7626 Fget_buffer_create if it is not necessary.
7627
76282008-09-15 Martin Rudalics <rudalics@gmx.at>
7629
7630 * window.c (Fselect_window): Don't update window_select_count and
7631 use_time when norecord is not nil.
7632
76332008-09-14 Kenichi Handa <handa@m17n.org>
7634
7635 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7636 specpdl_ptr.
7637
76382008-09-12 Kenichi Handa <handa@m17n.org>
7639
7640 * indent.c (scan_for_column): Don't handle automatic composition
7641 if the current buffer is not associated with a window.
7642
7643 * composite.c (composition_reseat_it): If the current buffer is
7644 not associated with a window, ignore the automatic composition.
7645 (find_automatic_composition): Likewise.
7646
76472008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7648
7649 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7650 (Fgpm_mouse_stop): Use it.
7651 * termhooks.h (close_gpm): Declare.
7652 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7653 connection if Gpm_GetEvent fails.
7654
7655 * window.c (set_window_buffer): Always preserve current-buffer.
7656
76572008-09-12 Glenn Morris <rgm@gnu.org>
7658
7659 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7660
76612008-09-11 Glenn Morris <rgm@gnu.org>
7662
7663 * charset.c (charset-map-path): Doc fix.
7664
76652008-09-10 Kenichi Handa <handa@m17n.org>
7666
7667 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7668
7669 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7670 compose a grapheme cluster with the preceding base glyph.
7671
7672 * composite.c (composition_compute_stop_pos): Fix previous change.
7673 Reset cmp_it->id to -1 at first.
7674
76752008-09-10 Glenn Morris <rgm@gnu.org>
7676
7677 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7678
76792008-09-09 Chong Yidong <cyd@stupidchicken.com>
7680
7681 * keyboard.c (read_key_sequence): Reapply translation maps when
7682 switching keyboards.
7683
76842008-09-09 Kenichi Handa <handa@m17n.org>
7685
7686 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7687 characters.
7688
7689 * composite.c (FORWARD_CHAR): Fix calculation
7690 of (POSITION).pos_byte.
7691 (composition_compute_stop_pos): Limit the search of composition to
7692 at most 500 characters ahead. If we reach the limit or find a
7693 newline, set cmp_it->ch to -2 and return 0.
7694 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7695
76962008-09-08 Kenichi Handa <handa@m17n.org>
7697
7698 * indent.c (Fvertical_motion): Be sure to set
7699 it_overshoot_expected if it.cmp_it.id is non-negative.
7700
77012008-09-07 Andreas Schwab <schwab@suse.de>
7702
7703 * callproc.c (Fcall_process): Don't hold references to string data
7704 across garbage collection. Move initialisation of new_argv down
7705 to avoid compiler bug.
7706
77072008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7708
7709 * process.c (Fsystem_process_attributes): Doc fix.
7710
77112008-09-07 Chong Yidong <cyd@stupidchicken.com>
7712
7713 * callproc.c (Fcall_process): Canonicalize current directory name.
7714
7715 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7716 iterator advances to the next line if the current line ends in a
7717 continued tab.
7718
77192008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7720
7721 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7722 member to point to cmp_from.
7723
7724 * xdisp.c: Doc fix for references to gidx data member.
7725
77262008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7727
7728 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7729
77302008-09-07 Kenichi Handa <handa@m17n.org>
7731
7732 * composite.c (FORWARD_CHAR): Check STOP after
7733 incrementing (POSITION).pos.
7734
77352008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7736
7737 * process.c (Fsystem_process_attributes): Doc fix.
7738
77392008-09-06 Chong Yidong <cyd@stupidchicken.com>
7740
7741 * keyboard.c (Ftop_level): Doc fix.
7742
77432008-09-06 Eli Zaretskii <eliz@gnu.org>
7744
7745 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7746 minibuffer, don't let lower part of menu invade the echo area.
7747
7748 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7749 "char *q" to access menu text and advance through it. Revert the
7750 change that displayed ">" instead of ASCII character 0x10.
7751
77522008-09-05 Eli Zaretskii <eliz@gnu.org>
7753
7754 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7755 toggle boxes and radio buttons on MS-DOS as well.
7756
77572008-09-05 Kenichi Handa <handa@m17n.org>
7758
7759 * composite.c (autocmp_chars): Check lookback count.
7760 (composition_compute_stop_pos): Set cmp_it->lookback.
7761 (composition_reseat_it): Check lookback count.
7762 (struct position_record): New struct.
7763 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7764 (find_automatic_composition): New function.
7765 (composition_adjust_point): Use find_automatic_composition.
7766
7767 * dispextern.h (struct composition_it): New member lookback.
7768
77692008-09-02 Chong Yidong <cyd@stupidchicken.com>
7770
7771 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7772 if moving by a single line.
7773
77742008-09-02 Andreas Schwab <schwab@suse.de>
7775
7776 * xterm.c (x_delete_display): Fix merge error.
7777
7778 * fileio.c (Fexpand_file_name): Remove unused variables.
7779
77802008-09-02 Eli Zaretskii <eliz@gnu.org>
7781
7782 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7783 storage on all platforms, not just on DOS_NT.
7784
77852008-09-02 Jason Rumney <jasonr@gnu.org>
7786
b8ff72fa
SM
7787 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7788 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7789
77902008-09-01 Chong Yidong <cyd@stupidchicken.com>
7791
7792 * xfaces.c (Finternal_set_alternative_font_family_alist)
7793 (Finternal_set_alternative_font_registry_alist): Properly copy
7794 entire alist structure.
7795
77962008-09-01 Kenichi Handa <handa@m17n.org>
7797
d66c0241 7798 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7799 representative chars of the script is a vector.
d66c0241
JB
7800 (ftfont_list): Handle the case where the representative chars of
7801 the script is a vector.
aac0c6e3
MR
7802
7803 * character.c (syms_of_character): Docstring of
7804 script-representative-chars fixed.
7805
78062008-08-31 Eli Zaretskii <eliz@gnu.org>
7807
7808 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7809 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7810 the menu. Allocate larger buffer for `text', to account for
7811 possible ^C characters.
7812
78132008-08-31 Martin Rudalics <rudalics@gmx.at>
7814
7815 * xdisp.c (prepare_menu_bars): Don't call
7816 Vwindow_size_change_functions with arg Qt.
7817
78182008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7819
7820 * font.h (font_range):
7821 * fileio.c (report_file_error):
46e722a9
SM
7822 * composite.c (composition_update_it): Yet another int/Lisp_Object
7823 mixup (YAILOM).
aac0c6e3
MR
7824
78252008-08-30 Glenn Morris <rgm@gnu.org>
7826
7827 * data.c (Fmake_variable_frame_local): Doc fix.
7828
7829 * frame.c (Fmodify_frame_parameters): Doc fix.
7830
78312008-08-30 Eli Zaretskii <eliz@gnu.org>
7832
7833 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7834 needed by GetTokenInformation.
7835 (w32_system_process_attributes): Check return values of all system
7836 APIs.
7837
7838 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7839 only when the state changes.
7840 (IT_update_begin, IT_update_end): Add termscript trace.
7841
7842 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7843 clipboard is unavailable. Set dst to NULL if it doesn't point to
7844 malloc'ed data.
7845 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7846 passing random values to xfree.
7847
7848 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7849 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7850
78512008-08-29 Jason Rumney <jasonr@gnu.org>
7852
7853 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7854
78552008-08-29 Eli Zaretskii <eliz@gnu.org>
7856
7857 * composite.c (fill_gstring_body): Avoid compiler warnings.
7858
7859 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7860 LGLYPH_SET_CODE to avoid compiler warnings.
7861
2ae37cf0 7862 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7863
7864 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7865
7866 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7867 LGLYPH_SET_CODE.
7868
78692008-08-29 Kenichi Handa <handa@m17n.org>
7870
7871 * fileio.c (report_file_error): Don't downcase the first character
7872 of errstring if it is still unibyte.
7873
78742008-08-29 Kenichi Handa <handa@m17n.org>
7875
7876 These changes are to re-implement the automatic composition so
7877 that it doesn't use text properties.
7878
7879 * Makefile.in (ftfont.o): Depend on composite.h.
7880 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7881
7882 * character.h (Vunicode_category_table): Extern it.
7883
7884 * character.c (Vunicode_category_table): New variable.
7885 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7886
7887 * chartab.c (optimize_sub_char_table): Perform more greedy
7888 optimization.
7889
b8ff72fa
SM
7890 * composite.h (enum composition_method):
7891 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7892 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7893 (Vcomposition_function_table): Extern it.
7894 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7895 (composition_gstring_put_cache, composition_gstring_from_id)
7896 (composition_gstring_p, composition_gstring_width)
7897 (composition_compute_stop_pos, composition_reseat_it)
7898 (composition_update_it, composition_adjust_point): Extern them.
7899 (Fcomposition_get_gstring): EXFUN it.
7900
d66c0241 7901 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7902 (Vcomposition_function_table)
7903 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7904 (gstring_hash_table, gstring_work, gstring_work_headers):
7905 New variables.
aac0c6e3
MR
7906 (gstring_lookup_cache, composition_gstring_put_cache)
7907 (composition_gstring_from_id, composition_gstring_p)
7908 (composition_gstring_width, fill_gstring_header)
7909 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7910 (composition_reseat_it, composition_update_it)
b8ff72fa 7911 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7912 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7913 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7914 Defsubr compostion_get_gstring.
7915
7916 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7917 cmp_id.
7918 (struct glyph_string): Delete the member gidx. New members
7919 cmp_id, cmp_from, and cmp_to.
7920 (enum it_method): Delete GET_FROM_COMPOSITION.
7921 (struct composition_it): New struct.
7922 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7923 Delete c, len, cmp_id, cmp_len in u.comp.
7924
7925 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7926 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7927 (enum lglyph_indices): Likewise.
b8ff72fa 7928 (font_range): Adjust extern.
aac0c6e3
MR
7929 (font_fill_lglyph_metrics): Extern it.
7930
7931 * font.c (QCf): New variable.
7932 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7933 (font_prepare_composition): Delete this function.
7934 (font_range): Type and arguments changed.
7935 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7936 (font_fill_lglyph_metrics): New function.
b8ff72fa 7937 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7938 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7939 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7940 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7941
7942 * fontset.h (font_for_char): Extern it.
7943
7944 * fontset.c (font_for_char): New function.
7945
7946 * ftfont.c: Include composite.h.
7947 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7948 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7949
7950 * indent.c: Include composite.h and dispextern.h.
7951 (check_composition): Delete this function.
7952 (scan_for_column): Handle composition by
7953 composition_compute_stop_pos, composition_reseat_it, and
7954 composition_update_it.
7955 (compute_motion): Likewise.
7956 (Fvertical_motion): Fix checking of composition.
7957
7958 * keyboard.c (adjust_point_for_property): Check composition by
7959 composition_adjust_point.
7960
b8ff72fa 7961 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7962 struct glyph_string.
7963
b8ff72fa
SM
7964 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7965 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7966 struct glyph.
7967 (produce_composite_glyph): Likewise.
7968
b8ff72fa
SM
7969 * w32term.c (x_draw_composite_glyph_string_foreground):
7970 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7971 (x_draw_glyph_string): Likewise.
7972
7973 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7974 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7975
7976 * xdisp.c: Include font.h.
7977 (it_props): Delete the entry for Qauto_composed.
7978 (init_iterator): Initialize it->cmp_it.id to -1.
7979 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7980 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7981 (handle_auto_composed_prop): Delete it.
7982 (handle_composition_prop): Handle only static composition.
7983 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7984 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7985 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7986 (pop_it): Likewise.
7987 (get_next_element): Delete next_element_from_composition.
7988 (CHAR_COMPOSED_P): New macro.
7989 (get_next_display_element): For automatic composition, get a face
7990 from the font in the glyph-string.
7991 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7992 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7993 (next_element_from_string): Check if the character at the current
7994 position is composed by CHAR_COMPOSED_P.
7995 (next_element_from_buffer): Likewise.
d66c0241
JB
7996 (next_element_from_composition): Adjust for the change of struct it.
7997 Update it->cmp_it.
b8ff72fa
SM
7998 (dump_glyph): Adjust for the change of struct glyph.
7999 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
8000 it and struct glyph. Don't handle automatic composition here.
8001 (fill_gstring_glyph_string): New function.
8002 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 8003 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
8004 (BUILD_GSTRING_GLYPH_STRING): New macro.
8005 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
8006 automatic composition.
b8ff72fa 8007 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 8008 struct glyph.
b8ff72fa 8009 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 8010
b8ff72fa 8011 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
8012 the change of struct glyph_string.
8013 (x_draw_glyph_string): Likewise.
8014
80152008-08-29 Glenn Morris <rgm@gnu.org>
8016
8017 * buffer.c (word-wrap): Doc fix.
8018 * xdisp.c (truncate-partial-width-windows): Doc fix.
8019 Increase default to 50.
8020
80212008-08-29 Chong Yidong <cyd@stupidchicken.com>
8022
8023 * xdisp.c (update_tool_bar_unwind): New function.
8024 (update_tool_bar): Temporarily set selected frame before building
8025 tool-bar items.
8026
80272008-08-28 Michael Albinus <michael.albinus@gmx.de>
8028
8029 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
8030 snprintf, respectively.
8031 (xd_append_arg): Convert strings with Fstring_make_unibyte.
8032
80332008-08-28 Chong Yidong <cyd@stupidchicken.com>
8034
8035 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
8036 LDFLAGS to GNUstep CC invocation.
8037
80382008-08-27 Chong Yidong <cyd@stupidchicken.com>
8039
8040 * indent.c (Fvertical_motion): Revert last change. Handle the
8041 general case where we are moving forward, and PT spans multiple
8042 screen lines.
8043
8044 * eval.c (find_handler_clause): Temporarily increase
8045 max-lisp-eval-depth while printing the backtrace buffer, to
8046 guarantee that help-mode code can run.
8047
80482008-08-27 Eli Zaretskii <eliz@gnu.org>
8049
8050 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
8051 colors under -rv.
8052 (IT_set_frame_parameters): Don't swap foreground and background
8053 colors if `(reverse . t)' is present in the frame properties.
8054 (internal_terminal_init): Call init_frame_faces only for the
8055 initial frame.
8056
80572008-08-27 Andreas Schwab <schwab@suse.de>
8058
8059 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
8060
80612008-08-27 Andreas Schwab <schwab@suse.de>
8062
8063 * search.c (search_buffer): Set char_base to zero only at the end.
8064
80652008-08-27 Kenichi Handa <handa@m17n.org>
8066
b8ff72fa 8067 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
8068
80692008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
8070
8071 * xterm.c (x_term_init): Temporarily hide the partially
8072 initialized terminal while calling vendor-specific-keysyms.
8073
80742008-08-26 Eli Zaretskii <eliz@gnu.org>
8075
8076 * msdos.c (internal_terminal_init): Most initializations done only
8077 once, especially initial_screen_colors[] and termscript open.
8078
80792008-08-26 Chong Yidong <cyd@stupidchicken.com>
8080
8081 * eval.c (Fcondition_case): Doc fix.
8082
8083 * widgetprv.h (EmacsFramePart): Change font member to the new font
8084 struct.
8085
8086 * widget.c: Include character.h and font.h for XSETFONT.
8087 (setup_frame_gcs): Compute X font id from font struct, just once.
8088
80892008-08-26 Eli Zaretskii <eliz@gnu.org>
8090
8091 * term.c (get_named_tty): Fix last change.
8092
80932008-08-26 Chong Yidong <cyd@stupidchicken.com>
8094
8095 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 8096 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
8097
80982008-08-25 Eli Zaretskii <eliz@gnu.org>
8099
8100 * frame.c (do_switch_frame): Mark previously displayed frame as
8101 obscured for FRAME_MSDOS_P frames as well.
8102
81032008-08-24 Eli Zaretskii <eliz@gnu.org>
8104
8105 * frame.c (make_terminal_frame): Initialize f->terminal,
8106 f->terminal->reference_count, and scroll bars on MS-DOS as well.
8107 Set the top frame to newly created frame.
8108 (Fmake_terminal_frame): Reuse the_only_display_info.
8109
8110 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
8111 estimating available memory.
8112
b97439ce 81132008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
8114
8115 * nsterm.m (ns_draw_window_cursor): Don't call
8116 NSDisableScreenUpdates and NSEnableScreenUpdates on
8117 non-NS_IMPL_COCOA systems.
8118
81192008-08-23 Andreas Schwab <schwab@suse.de>
8120
8121 * process.c (procfs_system_process_attributes): Fix use of
8122 uninitialized variables.
8123
81242008-08-23 Eli Zaretskii <eliz@gnu.org>
8125
8126 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
8127
8128 * dispnew.c (init_display): Remove MS-DOS specific conditions for
8129 calling tty-set-up-initial-frame-faces.
8130
b8ff72fa
SM
8131 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8132 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8133
8134 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8135 addition to output_termcap.
8136
8137 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8138
8139 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8140 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8141 highlight.
8142
8143 * process.c [!subprocesses]: Define QCname.
8144 (syms_of_process): Intern and staticpro it.
8145
8146 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8147 Adjust for changes in encoding/decoding routines.
8148 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8149 encode_coding and decode_coding.
8150
b8ff72fa 8151 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8152
8153 * dosfns.c: Include frame.h before termhooks.h.
8154 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8155 variable termscript.
8156
8157 * s/msdos.h (USER_FULL_NAME): Define.
8158 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8159
8160 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8161 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8162 pw->pw_gecos.
8163
8164 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8165 SELECTED_FRAME as additional (1st) argument.
8166 (tty_read_avail_input): Handle output_msdos_raw in
8167 addition to output_termcap.
8168
8169 * msdos.c: Include frame.h before termhooks.h.
8170 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8171 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8172 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8173 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8174 (IT_set_terminal_modes, IT_reset_terminal_modes)
8175 (IT_set_frame_parameters): Use tty->termscript instead of a global
8176 variable termscript.
8177 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8178 global variable terminal_coding. Don't refer to
8179 Vnonascii_translation_table.
8180 (internal_terminal_init): Set Vwindow_system in current_kboard.
8181 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8182 Announce date and time of session start, if termscript is open.
8183 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8184 term.c:init_tty). Open termscript only of not already open.
8185 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8186 here instead of dos_ttraw. Don't initialize display if this is an
8187 initial tty. Don't set FRAME_FONT.
8188 (Vwindow_system_version): Bump to 23.
8189 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8190 is available, set up mouse_position_hook.
8191 (dos_ttraw, IT_set_terminal_modes): If called with initial
8192 terminal, do nothing.
8193 (IT_set_frame_parameters): Handle the Qtty_type frame
8194 parameter by calling internal_terminal_init.
8195 (dos_set_window_size, show_mouse_face)
8196 (clear_mouse_face, IT_note_mode_line_highlight)
8197 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8198 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8199 (initialize_msdos_display): New function.
8200 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8201 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8202 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8203 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8204 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8205 (request_sigio, unrequest_sigio): Don't define, now defined on
8206 sysdep.c.
8207 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8208
8209 * term.c [MSDOS]: Include msdos.h.
8210 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8211 conditional to DOS_NT. Allow only one call to this function in a
8212 session. Don't allocate a new struct tty_display_info; instead,
8213 reuse the_only_display_info. Call get_tty_size to get screen
8214 dimensions. Call init_baud_rate to set bad_rate.
8215 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8216 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8217 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8218 (get_tty_terminal, get_named_tty, Ftty_type)
8219 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8220 output_termcap.
b8ff72fa
SM
8221 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8222 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8223 only when subprocesses are supported.
aac0c6e3
MR
8224
8225 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8226 f->output_data.x.
8227 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8228 terminal devices.
8229
5582fbc7 8230 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8231 x_output.
8232 (FRAME_FONT): Use output_data.tty.
8233 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8234 (struct x_display_info): Rename from display_info. Update all users in
8235 msdos.c.
aac0c6e3 8236 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8237 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8238 (dos_ttraw): Update prototype.
8239
8240 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8241 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8242
82432008-08-23 Jason Rumney <jasonr@gnu.org>
8244
8245 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8246 (fn_TIFFSetDirectory): New library function used.
8247 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8248 (tiff_load): Use :index to select among multiple images. Set count
8249 property when multiple images exist.
8250 (gif_format): Use :index, not :image.
8251
82522008-08-23 Chong Yidong <cyd@stupidchicken.com>
8253
8254 * xdisp.c (try_scrolling): Check INT_MAX instead of
8255 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8256 to obtain INT_MAX.
8257
82582008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8259
8260 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8261
82622008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8263
8264 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8265 GNUstep library location.
8266
82672008-08-21 Chong Yidong <cyd@stupidchicken.com>
8268
8269 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8270 before using it.
8271
8272 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8273
82742008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8275
8276 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8277 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8278 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8279 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8280 (EmacsApp-cursor_blink_handler): Remove declaration.
8281 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8282 match 01 Feb 2008 changes in xterm.c.
8283 (ns_read_socket): Add cast to avoid warning.
8284 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8285 GNUstep.
8286
82872008-08-20 Chong Yidong <cyd@stupidchicken.com>
8288
8289 * xselect.c (x_get_foreign_selection): Return nil if desired
8290 selection could not be obtained, instead of signalling an error.
8291
82922008-08-20 David Reitter <david.reitter@gmail.com>
8293
8294 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8295 * nsterm.m: Remove ns-specific code for cursor blinking.
8296 (ns_draw_window_cursor): Clear cursor properly rather than
8297 redrawing the area. Respect width of bar cursors.
8298 These changes enable the use of generic blink-cursor-mode and
8299 generic cursor types in NS and support smooth cursor movements (do
8300 not blink off after command).
8301 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8302 Nextstep, too.
8303
83042008-08-19 Kenichi Handa <handa@m17n.org>
8305
8306 * font.c (Vfont_log_deferred): New variable.
8307 (font_add_log): Check Vfont_log_deferred.
8308 (font_deferred_log): New function.
8309
8310 * font.h (font_deferred_log): Extern it.
8311
8312 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8313 for sorting.
8314 (face_for_char): Use deferred log.
8315
83162008-08-18 Kenichi Handa <handa@m17n.org>
8317
8318 * fontset.c (face_for_char): Add font log.
8319
8320 * font.c (font_add_log): Add the font properties :script, :lang,
8321 and :otf in the log.
8322
83232008-08-17 Chong Yidong <cyd@stupidchicken.com>
8324
8325 * xdisp.c: Remove dead code.
8326 (handle_invisible_prop, next_overlay_string): Defer call to
8327 setup_for_ellipsis.
8328 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8329
83302008-08-15 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * xfaces.c (lookup_derived_face): Properly handle possible zero
8333 return value of get_lface_attributes.
8334 (merge_faces): Don't tell lookup_derived_face to signal an error
8335 if face is not found.
8336
8337 * dired.c (Fdirectory_files): Doc fix.
8338
8339 * process.c (make_process): Initialize kill_without_query struct
8340 member.
8341
83422008-08-15 Eli Zaretskii <eliz@gnu.org>
8343
8344 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8345 Alternative calculation of totphys for Visual Studio 6.
8346
8347 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8348
8349 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8350 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8351 All users changed.
8352 (stat): Only root directory passed to GetDriveType. Allow RAM
8353 disk as well as local fixed disk when w32-get-true-file-attributes
8354 is set to `local'.
8355 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8356 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8357 (w32_cached_id, w32_add_to_cache): New functions.
8358 (get_name_and_id): Look account names in the cache before calling
8359 lookup_account_sid.
8360 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8361 New initialization flags.
8362 (globals_of_w32): Initialize them to zero.
8363 (w32_system_process_attributes): Use w32_cached_id and
8364 w32_add_to_cache.
8365
83662008-08-14 Lawrence Mitchell <wence@gmx.li>
8367
8368 * lread.c (Fread_char, Fread_char_exclusive): If no character
8369 event is read before timeout is reached, return nil, rather than
8370 converting to a number.
8371
83722008-08-14 Chong Yidong <cyd@stupidchicken.com>
8373
8374 * fns.c (use_dialog_box): Doc fix.
8375
8376 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8377 on OS X.
8378
83792008-08-13 Chong Yidong <cyd@stupidchicken.com>
8380
8381 * frame.c (Qns_parse_geometry): New var.
8382 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8383
83842008-08-11 Chong Yidong <cyd@stupidchicken.com>
8385
8386 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8387 space character in calculating tabs.
8388
83892008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8390
8391 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8392
83932008-08-10 Glenn Morris <rgm@gnu.org>
8394
8395 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8396 silence gcc "limited range of data type" warnings in some
8397 make_fixnum_or_float calls.
8398
83992008-08-09 Eli Zaretskii <eliz@gnu.org>
8400
8401 * w32.c (w32_system_process_attributes): If the process does not
8402 exist, return nil.
8403
8404 * w32.c: Include thelp32.h, psapi.h and coding.h.
8405 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8406 declarations.
8407 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8408 (Process32Next_Proc): New typedefs.
8409 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8410 (g_b_init_process32_next, g_b_init_open_thread_token)
8411 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8412 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8413 (g_b_init_get_process_working_set_size)
8414 (g_b_init_global_memory_status_ex): New static variables.
8415 (globals_of_w32): Initialize them.
8416 (create_toolhelp32_snapshot, process32_first, process32_next)
8417 (open_thread_token, impersonate_self, revert_to_self)
8418 (get_process_memory_info, get_process_working_set_size)
8419 (global_memory_status, global_memory_status_ex): New wrapper
8420 functions.
8421 (w32_list_system_processes, w32_system_process_attributes)
8422 (enable_privilege, restore_privilege, ltime, process_times):
8423 New functions.
8424 (convert_time_raw): New function.
8425 (convert_time): Remove conversion of FILETIME into time in 100
8426 nsec units, call convert_time_raw instead.
8427
8428 * process.h (w32_list_system_processes, w32_system_process_attributes):
8429 Add prototypes.
8430 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8431 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8432 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8433 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8434
8435 * process.c (Fsystem_process_attributes): Doc fix.
8436
84372008-08-08 Chong Yidong <cyd@stupidchicken.com>
8438
8439 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8440 a continued multi-char glyph; if so, advance to the actual glyph.
8441
84422008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8443
8444 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8445
8446 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8447 (.m.o): Use it.
8448 * config.in: Regenerate.
8449
84502008-08-07 Chong Yidong <cyd@stupidchicken.com>
8451
8452 * xdisp.c (redisplay_window): Revert last change.
8453 (try_window): Check bottom scroll margin too.
8454
84552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8456
8457 * config.in: Regenerate.
8458
8459 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8460 -list-load-path-shadows'.
8461 (nsgui.h): Reduce number of things depending on it.
8462
84632008-08-06 Chong Yidong <cyd@stupidchicken.com>
8464
8465 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8466 instead of window-end which does the wrong thing at eob.
8467 (try_cursor_movement): Minor optimization.
8468 (redisplay_window): If scroll margin is defined, don't assume
8469 window doesn't need scrolling.
8470
84712008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8472
8473 * config.in: Regenerate.
8474
8475 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8476 (mostlyclean): Don't delete *.d under NS.
8477
8478 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8479
84802008-08-06 Kenichi Handa <handa@m17n.org>
8481
8482 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8483
84842008-08-06 Andreas Schwab <schwab@suse.de>
8485
8486 * config.in: Regenerate.
8487
84882008-08-05 Chong Yidong <cyd@stupidchicken.com>
8489
8490 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8491 forcing a window start.
8492
8493 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8494 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8495
84962008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8497
8498 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8499 argument.
8500
85012008-08-05 Juanma Barranquero <lekktu@gmail.com>
8502
8503 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8504 <scroll-down-aggressively, before-change-functions>:
8505 <after-change-functions>: Reflow docstrings.
8506
85072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8508 Ken Raeburn <raeburn@gnu.org>
8509
8510 Dock menu customization, based on a patch by Ken Raeburn, plus some
8511 other fixes.
8512 * nsmenu.m (dockMenu): New variable.
8513 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8514
8515 * nsterm.h (dockMenu): Declare.
8516
8517 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8518 (ns_term_init): Initialize dockMenu.
8519 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8520 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8521 left.
8522
8523 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8524
85252008-08-04 Chong Yidong <cyd@stupidchicken.com>
8526
8527 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8528
8529 * config.in: Regenerate.
8530
85312008-08-04 Seiji Zenitani <zenitani@mac.com>
8532
8533 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8534
85352008-08-04 Chong Yidong <cyd@stupidchicken.com>
8536
8537 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8538
85392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8540
8541 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8542
8543 * keyboard.h: Comment an #endif.
8544
8545 * lisp.h (have_menus_p): Adjust comment.
8546
8547 * menu.c (find_and_return_menu_selection): Fix comparison with
8548 client_data.
8549
8550 * nsmenu.m (popup_activated_flag): New variable.
8551 (popup_activated): New function.
8552 (menu-or-popup-active-p): New exported lisp definition.
8553 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8554 when popup done.
8555 (ns_popup_dialog): Set popup_activated_flag.
8556
8557 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8558 version for GNUstep (handled by conditional typedef in nsterm.m).
8559 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8560 in rgb.txt).
8561
8562 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8563
8564 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8565
8566 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8567
8568 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8569 shortcircuit if popup_activated like GTK and X toolkit.
8570
8571 * m/inter386.h: Change DARWIN to DARWIN_OS.
8572
8573 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8574 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8575 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8576 comment on NO_SOCK_SIGIO.
8577
85782008-08-03 Chong Yidong <cyd@stupidchicken.com>
8579
8580 * nsterm.m (windowDidResize): Remove stopModal call.
8581
85822008-08-03 Andreas Schwab <schwab@suse.de>
8583
8584 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8585 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8586
85872008-08-02 Chong Yidong <cyd@stupidchicken.com>
8588
8589 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8590 Don't use uninitialized pointer variable when using getrlimit.
8591
85922008-08-02 Jason Rumney <jasonr@gnu.org>
8593
8594 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8595
85962008-08-02 Eli Zaretskii <eliz@gnu.org>
8597
8598 * alloc.c (NSTATICS): Bump to 0x640.
8599
8600 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8601
8602 * lisp.h: Add prototype for directory_files_internal.
8603
8604 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8605 New functions.
8606 (syms_of_process): Defsubr them. Add initializations for various
8607 Q* symbols used in procfs_system_process_attributes.
8608 (procfs_list_system_processes, procfs_system_process_attributes)
8609 [HAVE_PROCFS]: New functions.
8610 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8611 (procfs_get_total_memory): New functions.
8612
86132008-08-01 Juanma Barranquero <lekktu@gmail.com>
8614
8615 * xfaces.c (Fx_load_color_file): Fix previous change;
8616 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8617
86182008-08-01 Michael Albinus <michael.albinus@gmx.de>
8619
8620 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8621
86222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8623
8624 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8625
86262008-08-01 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8629
8630 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8631 define NSApplicationDelegateReplySuccess.
8632 (EmacsView -converstationIdentifier): Use long instead of
8633 NSInteger for GNUstep, since it doesn't have NSInteger.
8634
8635 * xmenu.c: Revert last change.
8636
8637 * keyboard.h: Fix last change.
8638
86392008-08-01 Juanma Barranquero <lekktu@gmail.com>
8640
8641 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8642 on Windows.
8643
86442008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8645
8646 Warning clearing and clean-up in NS port.
8647 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8648 Add prototypes.
8649 * nsgui.h (FACE_DEFAULT): Remove, unused.
8650 (XGCValues): Change colors to unsigned long.
8651 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8652 nsterm.m.
8653 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8654 (ns_list_fonts): Remove, unused.
8655 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8656 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8657 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8658 (nsfont_draw): Compare face colors to 0, not nil.
8659 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8660 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8661 (-addSubmenuWithTitle:): Use NSMenuItem class.
8662 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8663 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8664 (ns_clip_to_row): Make gc arg a BOOL.
8665 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8666 ns_clip_to_row() call.
8667 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8668 used). Cast FRAME_FONT assignments.
8669 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8670 (ns_string_to_lispmod): Change arg to const char.
8671 (ns_term_init): Use NSMenuItem class.
8672 (EmacsApp -openFile:): Move to different section of file.
8673 (EmacsApp -application:openFiles:): Don't return a value, call
8674 -replyToOpenOrPrint:.
8675 (EmacsView -keyDown:): Fix up cast.
8676 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8677 (EmacsView -menuDown:): Cast tag in call to
8678 find_and_call_menu_selection().
8679 (ns_list_fonts): Remove, unused.
8680 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8681 (ns_fontname_to_xlfd): Make static.
8682 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8683 Remove prototypes (now in keyboard.h).
8684 (next_menubar_widget_id): Remove, unused.
8685 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8686 Remove prototypes (now in keyboard.h).
8687 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8688
86892008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8690
8691 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8692 (floatfns.o): Depend on syssignal.h.
8693 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8694
8695 * systty.h: Fix previous change that removed BSD_TERMIOS.
8696 Add comments to #ifdefs.
8697
86982008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8699
8700 * w32fns.c (w32-load-color-file): Remove.
8701 (x-open-connection): Use renamed Fx_load_color_file.
8702 * xfaces.c (x-load-color-file): Add.
8703 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8704 Emacs.clr.
8705 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8706
87072008-07-31 Michael Albinus <michael.albinus@gmx.de>
8708
8709 * dbusbind.c (Fdbus_call_method_asynchronously)
8710 (Fdbus_method_error_internal): New defuns.
8711 (xd_read_message): Handle also reply messages.
8712 (Vdbus_registered_functions_table): Extend docstring.
8713
87142008-07-31 Juanma Barranquero <lekktu@gmail.com>
8715
8716 * keyboard.c (gobble_input): Fix previous change.
8717
87182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8719
8720 * bitmaps/README:
8721 * xfns.c:
8722 * termcap.c:
8723 * term.c:
8724 * syswait.h:
8725 * systty.h:
8726 * systime.h:
8727 * syssignal.h:
8728 * sysdep.c:
8729 * process.h:
8730 * process.c:
8731 * print.c:
8732 * ndir.h:
8733 * lread.c:
8734 * keyboard.c:
8735 * getpagesize.h:
8736 * floatfns.c:
8737 * fileio.c:
8738 * emacs.c:
8739 * doc.c:
8740 * dispnew.c:
8741 * dired.c:
8742 * data.c:
8743 * callproc.c:
8744 * buffer.c:
8745 * README:
8746 * Makefile.in:
8747 * s/template.h:
8748 * s/msdos.h:
8749 * m/vax.h: Remove VMS support.
8750 * s/vms.h:
8751 * vlimit.h:
8752 * uaf.h:
8753 * temacs.opt:
8754 * param.h:
8755 * ioctl.h: Remove file.
8756
87572008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8758
8759 * s/ms-w32.h (MULTI_KBOARD): Remove.
8760 * xterm.c:
8761 * xselect.c:
8762 * xfns.c:
8763 * window.c:
8764 * w32term.c:
8765 * w32fns.c:
8766 * terminal.c:
8767 * termhooks.h:
8768 * term.c:
8769 * sysdep.c:
8770 * keyboard.h:
8771 * keyboard.c:
8772 * frame.h:
8773 * frame.c:
8774 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8775 * config.in: Regenerate.
8776
87772008-07-30 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8780
8781 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8782 (w32font_open_internal): Get unicode version of textmetrics.
8783 Don't enable or disable glyph indices here.
8784 (w32font_open): Disable use of glyph indices.
8785
8786 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8787
87882008-07-30 Chong Yidong <cyd@stupidchicken.com>
8789
8790 * minibuf.c (Vread_buffer_function): Doc fix.
8791
87922008-07-30 John Paul Wallington <jpw@pobox.com>
8793
8794 * minibuf.c (read_buffer_completion_ignore_case): New var.
8795 (Fread_buffer): Use it.
8796
87972008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8798
8799 * systty.h (sensemode): Remove empty #if. Remove reference to
8800 BSD_TERMIOS, unused.
8801
8802 * sysdep.c: Remove reference to DGUX.
8803 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8804
8805 * config.in: Regenerate.
8806
88072008-07-30 Jason Rumney <jasonr@gnu.org>
8808
8809 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8810
88112008-07-29 Jason Rumney <jasonr@gnu.org>
8812
8813 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8814 is populated.
8815 (uniscribe_encode_char): Always use uniscribe.
8816 Avoid using context if cache is populated.
8817
88182008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8819
8820 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8821 open menu.
8822
8823 * gtkutil.c (menu_nav_ended): Remove.
8824 (create_menus): Remove signal connect for menu_nav_ended.
8825
88262008-07-28 Chong Yidong <cyd@stupidchicken.com>
8827
8828 * xdisp.c (redisplay_window): Check return value of
8829 compute_window_start_on_continuation_line before forcing a window
8830 start.
8831
88322008-07-28 Jason Rumney <jasonr@gnu.org>
8833
8834 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8835
8836 * w32term.c (w32_enable_unicode_output, cleartype_active):
8837 Remove obsolete display options.
8838 (x_draw_glyph_string_background): Don't use old cleartype_active
8839 workaround.
8840 (w32_initialize): Remove cleartype_active initialization.
8841 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8842
88432008-07-28 Andreas Schwab <schwab@suse.de>
8844
8845 * lisp.h (init_weak_hash_tables, syms_of_font)
8846 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8847 (remove_hash_entry): Don't declare.
8848 * eval.c (maybe_call_debugger): Make static and move before use.
8849 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8850 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8851 * xterm.h (x_set_frame_alpha): Declare.
8852
88532008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8854
8855 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8856 (create_menus): Connect selection-done to menu_nav_ended.
8857
88582008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8859
8860 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8861 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8862 parameter with read of 'alpha' one.
8863 (Qns_frame_parameter): Remove.
5582fbc7 8864 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8865 (next-selection-coding-system, Vselection_coding_system)
8866 (Vnext_selection_coding_system): Drop.
8867
88682008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8869
8870 * nsfns.m (do-applescript, do_applescript): Rename to
8871 ns-do-applescript, ns_do_applescript, and move within file.
8872
88732008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8874
8875 Remove support for Mac Carbon.
8876 * mactoolbox.c:
8877 * macterm.h:
8878 * macterm.c:
8879 * macselect.c:
8880 * macmenu.c:
8881 * macgui.h:
8882 * macfns.c:
8883 * mac.c: Remove file.
8884 * s/darwin.h:
8885 * m/intel386.h:
8886 * xfaces.c:
8887 * xdisp.c:
8888 * window.c:
8889 * tparam.c:
8890 * termhooks.h:
8891 * termcap.c:
8892 * term.c:
8893 * syssignal.h:
8894 * sysselect.h:
8895 * sysdep.c:
8896 * process.c:
8897 * lread.c:
8898 * lisp.h:
8899 * keyboard.c:
8900 * image.c:
8901 * fringe.c:
8902 * frame.h:
8903 * frame.c:
8904 * fontset.c:
8905 * font.h:
8906 * font.c:
8907 * fns.c:
8908 * fileio.c:
8909 * emacs.c:
8910 * dispnew.c:
8911 * dispextern.h:
8912 * config.in:
8913 * atimer.c:
2ae37cf0 8914 * Makefile.in: Remove code for Carbon.
aac0c6e3 8915
f0131492 89162008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8917
8918 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8919
89202008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8921
8922 * macterm.h (kCGBitmapByteOrder32Host): New define for
8923 non-universal SDKs.
8924
8925 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8926 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8927
8928 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8929 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8930
89312008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8932
8933 * w32inevt.c: Include dispextern.h.
8934
89352008-07-26 Andreas Schwab <schwab@suse.de>
8936
8937 * print.c (print_object): Fix off-by-one in last change.
8938
89392008-07-25 Juanma Barranquero <lekktu@gmail.com>
8940
8941 * term.c (syms_of_term): Don't initialize default_orig_pair,
8942 default_set_foreground and default_set_background on Windows.
8943
89442008-07-25 Jason Rumney <jasonr@gnu.org>
8945
8946 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8947 ScriptItemize. Clean up return value checking. Remove unused
8948 variables.
8949 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8950 shaping engine.
8951
8952 * w32font.c (w32font_has_char): Handle the case where we can't
8953 determine the script for a character.
8954
89552008-07-25 Chong Yidong <cyd@stupidchicken.com>
8956
8957 * term.c (syms_of_term): Initialize default_orig_pair,
8958 default_set_foreground, and default_set_background.
8959
8960 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8961 clash (bug#86).
8962 (getloadavg): Callers changed.
8963
8964 * image.c (svg_load_image): Fix last change.
8965 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8966 image size is valid. Use g_object_unref instead of deprecated
8967 rsvg_handle_free to free rsvg handle.
8968 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8969
89702008-07-25 Jason Rumney <jasonr@gnu.org>
8971
8972 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8973 surrogates before looking up glyph index.
8974 (w32font_text_extents): Encode as surrogates if falling back to
8975 functions that need UTF-16 wide chars.
8976
8977 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8978 BMP as surrogates before looking up glyph index.
8979
89802008-07-25 Chong Yidong <cyd@stupidchicken.com>
8981
8982 * image.c (svg_load_image): Check for failure in return value of
8983 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8984
89852008-07-25 Jason Rumney <jasonr@gnu.org>
8986
8987 * w32font.c (Fx_select_font): Reverse sense of second arg.
8988
89892008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8990
8991 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8992 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8993
8994 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8995 (PURESIZE): Use it.
8996
89972008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8998
8999 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
9000 * m/alpha.h (TEXT_END):
9001 * m/ibmrs6000.h (TEXT_END):
9002 * m/macppc.h (TEXT_END):
9003 * s/darwin.h (TEXT_END):
9004 * s/msdos.h (TEXT_END): Remove, unused.
9005 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
9006 * s/cygwin.h: Remove comment.
9007
9008 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
9009 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
9010 * m/intel386.h (DOT_GLOBAL_START):
9011 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
9012 (USG): Remove, file not used on USG platforms.
9013
9014 * Makefile.in (HAVE_X11): Remove empty #else.
9015
90162008-07-24 Andreas Schwab <schwab@suse.de>
9017
9018 * fileio.c (Finsert_file_contents): Properly adjust undo list
9019 after format conversion.
9020
90212008-07-24 Jan Djärv <jan.h.d@swipnet.se>
9022
9023 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
9024 (menu_nav_ended): Remove.
9025 (create_menus): Remove signal connect for menu_nav_ended.
9026 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
9027 create_menus.
9028 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
9029
90302008-07-23 Jason Rumney <jasonr@gnu.org>
9031
9032 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
9033 with opened font.
9034 (w32font_open): Set font type to gdi.
9035
9036 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
9037
90382008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
9039
9040 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
9041 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
9042 defines it.
9043 * unexec.c (ADDR_CORRECT): Define unconditionally.
9044
9045 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
9046
9047 * unexec.c: Remove code depending on !COFF and USG, the file is
9048 not used for such systems.
9049
9050 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
9051 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
9052 (LD_SWITCH_SYSTEM_1): Remove, update users.
9053
9054 * s/darwin.h (DATA_END):
9055 * m/intel386.h (DATA_END):
9056 * m/ibmrs6000.h (DATA_END):
9057 * m/alpha.h (DATA_END): Remove, unused.
9058
9059 * config.in: Regenerate.
9060 * s/ms-w32.h (subprocesses): Define unconditionally.
9061 * s/template.h (subprocesses): Update comment.
9062 * s/vms.h (subprocesses):
9063 * s/usg5-4.h (subprocesses):
9064 * s/hpux10-20.h (subprocesses):
9065 * s/gnu-linux.h (subprocesses):
9066 * s/cygwin.h (subprocesses):
9067 * s/bsd-common.h (subprocesses):
9068 * s/aix4-2.h (subprocesses):
9069 * s/darwin.h (subprocesses): Do not define, defined by default now.
9070
9071 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
9072 Remove all references.
9073 (temacs): Add GNUstep specific ld flags.
9074
9075 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
9076 similarly to what X does.
9077
90782008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9079
9080 * nsfns.m (x-list-fonts): Remove.
9081 (syms_of_nsfns): Drop the x-list-fonts declaration.
9082 * nsterm.m: Get rid of remaining "//" comments.
9083
90842008-07-22 Chong Yidong <cyd@stupidchicken.com>
9085
9086 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
9087
9088 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
9089 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
9090 (Fns_own_selection_internal, Fx_disown_selection_internal)
9091 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
9092
9093 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
9094 ... */' style of docstrings. Doc fixes.
9095
90962008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9097
9098 * terminfo.c (UP, BC, PC): Undo previous change.
9099
9100 * nsfns.m: Rename ns prefixed functions/variables to the
9101 corresponding x versions. Update references.
9102
91032008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
9106
91072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
9108
9109 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
9110 Remove forwarding functions.
9111 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
9112 non-static.
9113 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
9114 non-static.
9115 (ns_frame_parm_handlers): Use the new names.
9116 (syms_of_nsfns): Move to the end of file.
9117
9118 * nsterm.m (syms_of_nsterm): Move to the end of file.
9119
9120 * dispnew.c (init_display): Remove code for X10.
9121
91222008-07-22 Jason Rumney <jasonr@gnu.org>
9123
9124 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
9125 bare drive.
9126
91272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9128
9129 * nsterm.m (syms_of_nsterm): Remove debugging println.
9130
91312008-07-22 David Reitter <david.reitter@gmail.com>
9132
9133 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9134 Carbon implementation of the same functionality: execute arbitrary
9135 AppleScript code.
9136
91372008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9138
9139 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9140 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9141 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9142 (Fx_display_mm_height, Fx_display_mm_width)
9143 (Fx_display_backing_store, Fx_display_visual_class)
9144 (Fx_display_save_under, Fx_open_connection)
9145 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9146 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9147 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9148 (Fx_display_pixel_width, Fx_display_pixel_height)
9149 (Fx_display_usable_bounds, Fx_display_planes)
9150 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9151 ... */' style of docstrings.
9152
91532008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9154
9155 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9156 on this platform.
9157 (mips):
9158 * m/iris4d.h (mips): Do not define.
9159 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9160
9161 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9162
9163 * image.c:
9164 * nsfns.m:
9165 * nsselect.m:
9166 * nsterm.h:
9167 * nsterm.m: Rename ns prefixed functions/variables to the
9168 corresponding x versions. Update references.
9169
9170 * m/ibms390x.h (NO_REMAP): Do not undefine.
9171
9172 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9173
91742008-07-21 Chong Yidong <cyd@stupidchicken.com>
9175
9176 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9177 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9178 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9179 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9180 (Fns_display_mm_height, Fns_display_mm_width)
9181 (Fns_display_backing_store, Fns_display_visual_class)
9182 (Fns_display_save_under, Fns_open_connection)
9183 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9184 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9185 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9186 (Fns_display_pixel_width, Fns_display_pixel_height)
9187 (Fns_display_usable_bounds, Fx_display_planes)
9188 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9189
91902008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9191
9192 * print.c (print_object): Check print_depth before searching for
9193 circularities.
9194
91952008-07-21 Michael Albinus <michael.albinus@gmx.de>
9196
9197 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9198 only sprintf.
9199
92002008-07-21 Kenichi Handa <handa@m17n.org>
9201
9202 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9203
92042008-07-20 Andreas Schwab <schwab@suse.de>
9205
9206 * syntax.c (find_start_pos, find_start_value)
9207 (find_start_value_byte, find_start_begv, find_defun_start)
9208 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9209
92102008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9211
9212 * s/sol2-3.h: Insert contents of s/sol2.h.
9213 (LD_SWITCH_SYSTEM): Remove redundant definition.
9214 * s/sol2.h: Remove, unused.
9215
92162008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9217
9218 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9219
92202008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9221
9222 * Makefile.in (ns_appdir): Fix typo in find command.
9223
92242008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9225
9226 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9227
9228 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9229 added not supported anymore.
9230
9231 * s/usg5-4-2.h (LIBS_SYSTEM):
9232 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9233
9234 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9235 * s/lynxos.h (GETPGRP_NO_ARG):
9236 * s/hpux10-20.h (NO_SIOCTL_H):
9237 * s/gnu.h (GETPGRP_NO_ARG):
9238 * s/gnu-linux.h (NO_SIOCTL_H):
9239 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9240 * s/cygwin.h (GETPGRP_NO_ARG):
9241 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9242 (C_DEBUG_SWITCH): Remove duplicate definition.
9243
9244 * m/ibms390.h: Remove boilerplate comments.
9245
9246 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9247
9248 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9249 (wait_reading_process_output): Remove code for SunOS, platform not
9250 supported anymore. Use SOLARIS2 instead of sun.
9251
92522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9253
9254 * font.c (font_open_by_name): Under NS, default lface height to zero.
9255 (font_open_for_lface): Under NS, set size based on frame fontsize.
9256 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9257 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9258
92592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9260
9261 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9262 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9263 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9264 YES/NO.
9265 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9266 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9267 * Makefile.in (clean): Clear out build destination dir.
9268
92692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9270
9271 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9272 xterm, xselect.
9273 * lisp.h: Remove declaration of hash_remove.
9274 * nsgui.h: Remove redefinitions of hash_remove.
9275 * fns.c (hash_remove): Rename to hash_remove_from_table.
9276
92772008-07-19 Seiji Zenitani <zenitani@mac.com>
9278
9279 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9280 strdup() the family UTF8String before modifying it.
9281
92822008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9283
9284 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9285 NS_FACE_BACKGROUND with 0 instead of nil.
9286 * nsfont.m (nsfont_draw): Same.
9287
92882008-07-19 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * nsfns.m (ns_set_background_color): Fix crash.
9291
92922008-07-18 Chong Yidong <cyd@stupidchicken.com>
9293
9294 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9295
92962008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9297
9298 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9299
93002008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9301
9302 * gtkutil.c: Include <config.h> instead of "config.h".
9303
9304 * lisp.h (Foverlay_buffer): Add EXFUN.
9305
9306 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9307 child process to complete child_setup. Undo 2005-09-21 change.
9308
9309 * s/darwin.h: Mention setsid after vfork.
9310
93112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9312
9313 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9314 Depend on macgui.h.
9315
9316 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9317 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9318
9319 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9320 and f19.
9321 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9322
9323 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9324 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9325 Remove enumerators.
9326
9327 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9328 Check if FACE_FROM_ID returns NULL.
9329
93302008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9331
9332 * w32inevt.c (change_frame_size): Remove extern declaration.
9333 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9334 change_frame_size.
9335
93362008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9337
9338 * getloadavg.c: Revert last change (2008-07-15).
9339
93402008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9341
9342 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9343 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9344 from configure.
9345
93462008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9347
9348 * s/sol2.h:
9349 * s/sol2-4.h: Reorganize conditionals.
9350
9351 * ecrt0.c: Remove code depending on m68000, not used anymore.
9352
9353 * fns.c (hash_remove): Make static.
9354 * lisp.h (hash_remove): Don't prototype.
9355
9356 * m/ibmrs6000.h:
9357 * m/ibms390x.h:
9358 * m/macppc.h: Remove boilerplate comments.
9359
9360 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9361 Solaris, which does not need them.
9362
9363 * m/vax.h: Remove comments about unsupported systems.
9364
9365 * s/darwin.h: Reorganize ifdefs.
9366
93672008-07-17 Andreas Schwab <schwab@suse.de>
9368
9369 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9370
93712008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9372
9373 Use SDATA. Follow coding convention of placing operators at
9374 beginning of next line rather than end of previous line, and placing
9375 spaces around infix operators.
9376
9377 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9378 in case it was defined already.
9379 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9380 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9381 ns_default.
9382 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9383 Lisp_Objects.
9384 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9385 (ns_defined_color, ns_color_to_lisp): Declare.
9386 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9387 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9388 it's accepted even with USE_LISP_UNION_TYPE.
9389 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9390 (update_frame_tool_bar): Remove apparently obsolete tests for
9391 non-integerness of f->tool_bar_lines.
9392 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9393 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9394 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9395 (nsfont_open): Don't confuse NULL for Qnil.
9396 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9397 * menu.h (find_and_call_menu_selection):
9398 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9399 (find_and_return_menu_selection): Always return something.
9400 * frame.h: Include dispextern.h for Display_Info.
9401 (display_x_get_resource): Declare.
9402
94032008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9404
9405 * syntax.c: Remove stdio.h include accidentally introduced in
9406 Emacs.app commit.
9407 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9408 NS_IMPL_COCOA.
9409 * keyboard.c (handle_async_input, input_available_signal): Remove
9410 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9411
94122008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9413
9414 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9415 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9416 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9417 Use SDATA.
9418
9419 * keymap.c: Remove all NS-specific code.
9420 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9421 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9422 where_is_preferred_modifier, return a different value depending on how
9423 preferred is the binding.
9424 (where_is_internal): Adjust accordingly.
9425 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9426 Adjust to new preferred_sequence_p.
9427 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9428 * keyboard.c (parse_solitary_modifier): Not static any more.
9429 * keyboard.h (parse_solitary_modifier): Declare.
9430
94312008-07-16 Andreas Schwab <schwab@suse.de>
9432
9433 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9434 of easymenu.
9435
94362008-07-16 Chong Yidong <cyd@stupidchicken.com>
9437
9438 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9439 that we don't move off the line.
9440
94412008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9442
9443 * keyboard.c (Qsuper): Remove.
9444 (parse_menu_item): Don't call where_is_internal specially for NS.
9445
94462008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9447
9448 * s/gnu-linux.h: Remove boilerplate comments.
9449
9450 * m/alpha.h (__ELF__): Consolidate conditions.
9451
9452 * m/m68k.h (linux): Use GNU_LINUX instead.
9453 Remove boilerplate comments.
9454
9455 * m/intel386.h: Undo refactoring from previous change.
9456 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9457 too, remove dead code.
9458 (linux): Use GNU_LINUX instead.
9459
94602008-07-16 Jason Rumney <jasonr@gnu.org>
9461
9462 * w32gui.h: Repeat 26 June changes lost by last change.
9463
94642008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9465
9466 * systty.h: Remove code for Aix on 386, unsupported platform.
9467
9468 * s/ms-w32.h: Remove boilerplate comments.
9469 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9470
9471 * s/gnu-linux.h (TERM): Remove support.
9472 (HAVE_SYSVIPC): Remove, unused.
9473 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9474 for this system.
9475
9476 * process.c: Remove support for IRIS, unused.
9477 Remove support for TERM, not relevant anymore.
9478
9479 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9480 used with the definition.
9481
9482 * s/aix4-2.h (static): Do not undef.
9483
9484 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9485 only used on Aix.
9486 (HAVE_SYSVIPC): Remove, unused.
9487
9488 * m/hp800.h (CANNOT_DUMP): Do not undef.
9489
9490 * m/alpha.h: Fix comment.
9491
9492 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9493 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9494 used by this configuration.
9495 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9496 * unexec.c: Remove code depending on HPUX and
9497 USG_SHARED_LIBRARIES, not used with this file. Remove code
9498 depending on IRIS, unused. Remove if 0-ed code.
9499
9500 * s/template.h: Remove comments about static.
9501
9502 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9503 Remove if 0-ed code.
9504 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9505 were the same as the default.
9506 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9507 Remove boilerplate comments.
9508 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9509 (HAVE_SYSVIPC): Remove, unused.
9510 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9511
9512 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9513 Remove boilerplate comments.
9514 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9515 Remove boilerplate comments.
9516 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9517 Remove boilerplate comments.
9518 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9519
9520 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9521 USG systems which do not use DATA_SEG_BITS.
9522 Refactor code. Remove boilerplate comments.
9523
9524 * m/ibms390.h:
9525 * m/m68k.h:
9526 * s/bsd-common.h:
9527 * s/cygwin.h:
9528 * s/darwin.h:
9529 * s/freebsd.h:
9530 * s/gnu.h:
9531 * s/msdos.h: Remove boilerplate comments.
9532
9533 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9534 do not use this file.
aac0c6e3
MR
9535 (IRIS_4D): Remove, unused.
9536
9537 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9538 do not use this file.
aac0c6e3
MR
9539 (SIGN_EXTEND_CHAR):
9540 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9541 * unexmips.c: Remove file, unused.
9542
9543 * editfns.c (Fuser_full_name): Replace the only use of
9544 USER_FULL_NAME with its value.
9545 * config.in: Regenerate.
9546
95472008-07-16 David Reitter <david.reitter@gmail.com>
9548
9549 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9550 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9551
95522008-07-16 Glenn Morris <rgm@gnu.org>
9553
9554 * emacs.c (system-type): Doc fix.
9555
95562008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9557
9558 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9559 If the cache doesn't work, let's fix it, rather than work around it.
9560
95612008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9562
9563 * Makefile.in: Correct additions for nsfont.o in last commit.
9564 * nsfont.m: New file (forgot last commit).
9565
95662008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9567
9568 * callproc.c (set_initial_environment): Initialize
9569 Vprocess_environment under CANNOT_DUMP (fixes crash when
9570 batch-compiling for bootstrap).
9571
95722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9573 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9574
9575 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9576 fix crash due to different init order.
9577
95782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9579
9580 Changes and additions for NeXTstep windowing system (Cocoa and
9581 GNUstep) support.
9582
9583 * Makefile.in:
9584 * config.in: Support defines and build commands for NS port.
9585 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9586 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9587 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9588 windowing.
9589 (struct face): Add synth_ital field.
9590 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9591 (init_display): Initialize Vinitial_window_system to "ns" when so
9592 compiled.
9593 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9594 (display_arg): Use under NS.
9595 (main): Under NS, allocate autorelease pool and handle command line
9596 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9597 (standard_args): Add NS-specific args.
9598 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9599 * font.c (DEFAULT_ENCODING): New variable.
9600 (font_find_for_lface): Use it.
9601 (syms_of_font): Load syms_of_nsfont under NS.
9602 * font.h: Declare nsfont_driver when compiled under NS.
9603 * fontset.c: When compiling under NS, include nsterm.h.
9604 (fontset_from_font): Autoconstruct fontset under NS.
9605 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9606 symbol, document and use it.
9607 (do_switch_frame): When for_deletion under Cocoa, add
9608 Fraise_frame(Qnil).
9609 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9610 (x_get_arg): Allow "yes" and "no" as boolean values.
9611 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9612 Qright under Cocoa.
9613 (focus-follows-mouse): Default to 0 under NS.
9614 * frame.h (enum output_method): Add output_ns.
9615 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9616 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9617 (FRAME_WINDOW_P): NS-specific definition.
9618 * fringe.c (max_used_fringe_bitmap): Make public.
9619 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9620 (getloadavg): Use NeXT code under descendant OS's.
9621 * image.c (includes and header section, x_create_bitmap_from_data)
9622 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9623 (image_background_transparent, x_clear_image_1)
9624 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9625 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9626 (x_to_xcolors, x_from_xcolors, x_disable_image)
9627 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9628 other GUIs, including XPM support using code originally written for
9629 Carbon GUI.
9630 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9631 using NS API.
9632 (image_ascent): Use font metrics macros instead of direct struct field
9633 access.
9634 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9635 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9636 Also, handle NS as GTK for menu bar purposes.
9637 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9638 toolkit where they differ.
9639 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9640 use cachelist, still needed under NS.
9641 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9642 (struct widget_value): Define it here for menu.c.
9643 * keymap.c (includes): Include modifier internals.
9644 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9645 NS.
9646 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9647 support for preferring sequences using certain modifiers, specified by
9648 the FIRSTONLY argument.
9649 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9650 under NS GNUstep implementation.
9651 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9652 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9653 * menu.c: Include nsterm.h under NS.
9654 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9655 (free_menubar_widget_tree_value, update_submenu_strings)
9656 (find_and_call_menu_selection): Treat NS as X and NT.
9657 (find_and_return_menu_selection): New function, used for popup menus.
9658 * nsgui.h:
9659 * nsterm.h:
9660 * nsfns.m:
9661 * nsimage.m:
9662 * nsmenu.m:
9663 * nsselect.m:
9664 * nsterm.m: New files.
9665 * process.c (wait_reading_process_output): Under NS, call ns_select()
9666 instead of plain select().
9667 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9668 beginning of buffer.
9669 * sysselect.h (init_process): Rename when compiling under Cocoa to
9670 avoid name conflict.
9671 * termhooks.h (display_info): Add ns_display_info to union.
9672 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9673 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9674 COCOA environment.
9675 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9676 unexec() signature. (Note, this will dump, but the resulting file
9677 crashes; unexosx is used instead; keeping around for reference and
9678 possible aid in getting dump working under GNUstep.)
9679 * w32gui.h (button_type, widget_value): Remove definitions (now in
9680 keyboard.h).
9681 * window.c: Include nsterm.h when compiling under NS.
9682 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9683 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9684 other GUI windowing systems.
9685 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9686 GTK.
9687 (x_consider_frame_title): Under NS, set icon type and frame
9688 modified-state indicator; use ns_set_name_as_filename() when using
9689 formatted title.
9690 (update_window_cursor): Make public when compiling under NS.
9691 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9692 (hourglass_atimer, Vhourglass_delay
9693 * xfaces.c (header section, init_frame_faces, clear_font_table)
9694 (defined_color, unload_color, x_face_list_fonts)
9695 (prepare_face_for_display): Add NS support parallel to other GUIs.
9696 Emulate GCs like other non-X GUIs.
9697 (split_font_name): Don't lowercase font name under NS.
9698 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9699 under NS.
9700 * s/darwin.h: Add support for compilation under NS.
9701
97022008-07-15 Jason Rumney <jasonr@gnu.org>
9703
9704 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9705 (w32_show_hourglass): Rename from show_hourglass.
9706 (w32_hide_hourglass): Rename from hide_hourglass.
9707 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9708 (Vhourglass_delay): Declare extern.
9709 (hourglass_started): Remove.
9710
9711 * xdisp.c (Vhourglass_delay): Remove static.
9712 (hourglass_started, start_hourglass, cancel_hourglass):
9713 Don't include these versions on WINDOWSNT.
9714
97152008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9716
9717 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9718 variables (formerly in xfns.c).
9719 (show_hourglass, hide_hourglass): New prototypes (same).
9720 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9721 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9722 in xfns.c).
9723 (syms_of_xdisp): Declare/initialize display-hourglass,
9724 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9725 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9726 formerly in xfns.c.
9727 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9728 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9729 (start_hourglass, cancel_hourglass): Remove.
9730 (show_hourglass, hide_hourglass): Remove prototypes and static
9731 modifiers.
9732 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9733 hourglass_atimer, hourglass_shown_p declaration/initialization.
9734 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9735 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9736 (start_hourglass, cancel_hourglass): Remove.
9737 (show_hourglass, hide_hourglass): Remove prototypes and static
9738 modifiers.
9739 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9740 hourglass_atimer, hourglass_shown_p declaration/initialization.
9741 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9742 (DEFAULT_HOURGLASS_DELAY): Remove.
9743 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9744 hourglass_shown_p declaration/initialization.
9745
97462008-07-14 Jason Rumney <jasonr@gnu.org>
9747
9748 * w32fns.c (w32_get_arg): Remove wrapper function.
9749 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9750 directly.
9751 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9752
97532008-07-14 Kenichi Handa <handa@m17n.org>
9754
9755 * xfont.c (xfont_open): Add workaround for X's bug.
9756
97572008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9758
9759 * fontset.c: Include <stdio.h> unconditionally.
9760
97612008-07-13 Michael Albinus <michael.albinus@gmx.de>
9762
9763 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9764 for filtering.
9765
97662008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9767
9768 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9769
9770 * m/macppc.h:
9771 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9772
9773 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9774 (SPECIAL_EMACS_INT):
9775 * m/ia64.h (SPECIAL_EMACS_INT):
9776 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9777 * s/gnu.h (NLIST_STRUCT):
9778 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9779 * s/gnu-linux.h (LINUX):
9780 * s/msdos.h (HAVE_FACES):
9781 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9782
9783 * systty.h:
9784 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9785 anymore.
9786
97872008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9788
9789 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9790 always defined as int.
9791
9792 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9793 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9794 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9795 * s/freebsd.h (HAVE_WAIT_HEADER):
9796 * s/bsd-common.h (HAVE_UNION_WAIT):
9797 * s/aix4-2.h (HAVE_WAIT_HEADER):
9798 * m/mips.h (HAVE_UNION_WAIT):
9799 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9800 (COFF, static): Do not define, they are undefined later in the file.
9801
9802 * process.c (update_status): Don't use a union.
9803 (status_convert):
9804 (sigchld_handler): Use int instead of WAITTYPE.
9805
98062008-07-12 Chong Yidong <cyd@stupidchicken.com>
9807
9808 * indent.c (Fvertical_motion): Restore hscroll before moving to
9809 goal column.
9810
98112008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9812
9813 * lisp.h: Remove left over code.
9814
98152008-07-11 Andreas Schwab <schwab@suse.de>
9816
9817 * lisp.h: Fix logic in last change.
9818
9819 * menu.h: New file.
9820 * menu.c: Include it.
9821 * xmenu.c: Likewise.
9822 * Makefile.in: Update dependencies.
9823
98242008-07-11 Kenichi Handa <handa@m17n.org>
9825
9826 * fontset.c (fontset_from_font): Cancel the previous change.
9827
98282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9829
9830 * lisp.h:
9831 * w32heap.c:
9832 * emacs.c:
9833 * alloc.c: Replace all references of NO_UNION_TYPE with
9834 USE_LISP_UNION_TYPE.
9835
9836 * m/xtensa.h (NO_UNION_TYPE):
9837 * m/vax.h (NO_UNION_TYPE):
9838 * m/template.h (NO_UNION_TYPE):
9839 * m/sparc.h (NO_UNION_TYPE):
9840 * m/mips.h (NO_UNION_TYPE):
9841 * m/macppc.h (NO_UNION_TYPE):
9842 * m/m68k.h (NO_UNION_TYPE):
9843 * m/iris4d.h (NO_UNION_TYPE):
9844 * m/intel386.h (NO_UNION_TYPE):
9845 * m/ibms390x.h (NO_UNION_TYPE):
9846 * m/ibms390.h (NO_UNION_TYPE):
9847 * m/ibmrs6000.h (NO_UNION_TYPE):
9848 * m/ia64.h (NO_UNION_TYPE):
9849 * m/hp800.h (NO_UNION_TYPE):
9850 * m/arm.h (NO_UNION_TYPE):
9851 * m/amdx86-64.h (NO_UNION_TYPE):
9852 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9853 defining it the same.
9854
98552008-07-10 Chong Yidong <cyd@stupidchicken.com>
9856
9857 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9858
98592008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9860
9861 * fileio.c:
50426a04 9862 * sysdep.c:
aac0c6e3
MR
9863 * systty.h:
9864 * m/ibmrs6000.h:
9865 * m/iris4d.h:
9866 * s/aix4-2.h:
9867 * s/freebsd.h:
9868 * s/gnu-linux.h:
9869 * s/hpux10-20.h:
9870 * s/hpux11.h:
9871 * s/netbsd.h:
9872 * s/sol2-3.h:
9873 * s/sol2-4.h:
9874 * s/sol2.h:
9875 * s/usg5-4.h:
9876 * s/vms.h: Remove references to unused variables.
9877
98782008-07-10 Andreas Schwab <schwab@suse.de>
9879
9880 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9881 pattern before matching the generic family.
9882
98832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9884
9885 * unexec.c:
9886 * s/vms.h:
9887 * s/usg5-4-2.h:
9888 * s/sol2-5.h:
9889 * s/freebsd.h:
9890 * s/darwin.h: Remove dead code.
9891
9892 * m/template.h:
9893 * m/sparc.h:
9894 * m/mips.h:
9895 * m/m68k.h:
9896 * m/iris4d.h:
9897 * m/intel386.h:
9898 * m/ibms390x.h:
9899 * m/ibms390.h:
9900 * m/ia64.h:
9901 * m/hp800.h:
9902 * m/arm.h:
9903 * m/amdx86-64.h: Remove dead code and references to unused
9904 and compiler defined symbols.
9905
9906 * unexmips.c:
9907 * unexelf.c: Remove references to desupported systems.
9908
9909 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9910
9911 * m/powermac.h: Remove boilerplate comments.
9912 (NO_REMAP): Remove unused definition.
9913
9914 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9915 define them.
9916
99172008-07-10 Kenichi Handa <handa@m17n.org>
9918
9919 * xfont.c (xfont_open): Log the reason of failure.
9920
99212008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9922
9923 * fontset.c (fontset_get_font_group):
9924 * font.c (font_check_otf): Specify argument types.
9925
99262008-07-09 Kenichi Handa <handa@m17n.org>
9927
9928 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9929 non-ASCII char is found.
9930
9931 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9932 (reorder_font_vector): Change the arg preferred_family to font.
9933 Prefer the spec matching with font.
9934 (fontset_get_font_group): New function.
9935 (fontset_find_font): Change the format of an element of a realized
9936 fontset. Use fontset_get_font_group.
9937 (fontset_font): Try the current fontset, the default fontset, the
9938 fallbacks of the current fontset, and the fallbacks of the default
9939 fontset in this order.
9940 (face_for_char): Delete the shortcut to use the current font.
9941 (fontset_from_font): Don't set fonts for Latin in the fontset.
9942
9943 * font.h (font_make_object, font_match_p): Adjust prototypes.
9944
9945 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9946
9947 * font.c (font_make_object): New arg entity and pixelsize.
9948 (font_check_otf_features, font_check_otf): New functions.
9949 (font_match_p): Check :lang, :script, and :otf properties.
9950
9951 * xfont.c (xfont_open): Adjust it for the change of
9952 font_make_object.
9953 (xfont_text_extents): Fix initial setting of metrics.
9954
9955 * ftfont.c (struct ftfont_info): New member index, delete member
9956 fc_charset_idx. Make the member order compatible with struct
9957 xftfont_info.
9958 (fc_charset_table): Change charset names to registry names.
9959 (ftfont_pattern_entity): Delete the args registry and
9960 fc_charset_idx. Change the value of :font-entity property
9961 to (FONTNAME . INDEX). Always set :registry property to
9962 `iso10646-1'.
9963 (struct ftfont_cache_data): New struct.
9964 (ftfont_lookup_cache): New arg for_face.
9965 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9966 (ftfont_driver): Set the member otf_capability.
9967 (ftfont_get_charset): Adjust it for the change of
9968 fc_charset_table.
9969 (OTF_TAG_SYM): New macro.
9970 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9971 for the change of fc_charset_table.
9972 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9973 ftfont_pattern_entity. Add FC_INDEX to objset.
9974 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9975 and ftfont_pattern_entity.
9976 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9977 font_make_object, struct ftfont_info.
9978 (ftfont_has_char): Use ftfont_get_fc_charset.
9979 (ftfont_otf_features, ftfont_otf_capability): New functions.
9980 (ftfont_shape): Use ftfont_get_otf.
9981 (ftfont_text_extents): Fix initial setting of metrics.
9982
9983 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9984 member order compatible with struct ftfont_info.
9985 (xftfont_open): Add FC_CHARSET to the pattern. Set
9986 xftfont_info->ft_size. Don't unlock the face. Check BDF
9987 properties if appropriate.
9988 (xftfont_close): Unlock the face.
9989 (xftfont_anchor_point, xftfont_shape): Deleted.
9990 (syms_of_xftfont): Don't set members anchor_point and shape of
9991 xftfont_driver.
9992
9993 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9994 font_make_object.
9995
9996 * w32font.c (w32font_open): Adjust it for the change of
9997 font_make_object.
9998 (w32font_open_internal): Don't set properties of font_object here.
9999
100002008-07-08 Chong Yidong <cyd@stupidchicken.com>
10001
10002 * macfns.c (x_create_tip_frame):
10003 * w32fns.c (x_create_tip_frame):
10004 * xfns.c (x_create_tip_frame): Pass parameter argument to
10005 face-set-after-frame-default.
10006
10007 * xfaces.c (Finternal_merge_in_global_face): Save merged
10008 attributes for the default face back into the face vector.
10009
100102008-07-08 Andreas Schwab <schwab@suse.de>
10011
10012 * fontset.h: Declare fontset_from_font. Don't declare
10013 new_fontset_from_font and fontset_from_font_name.
10014 * xterm.c: Include "fontset.h".
10015 * Makefile.in (xterm.o): Update dependencies.
10016
100172008-07-08 Glenn Morris <rgm@gnu.org>
10018
10019 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
10020 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
10021
100222008-07-07 Chong Yidong <cyd@stupidchicken.com>
10023
10024 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
10025 (x_set_frame_parameters): Don't bind it.
10026
100272008-07-07 Juanma Barranquero <lekktu@gmail.com>
10028
10029 * w32fns.c (map_w32_filename): Declare extern.
10030
100312008-07-07 Jason Rumney <jasonr@gnu.org>
10032
10033 * w32term.c (WS_EX_LAYERED): Define if not already.
10034
100352008-07-06 Chong Yidong <cyd@stupidchicken.com>
10036
10037 * xfaces.c (set_font_frame_param): Don't try to set the font
10038 parameter if it is still unspecified in the lface.
10039
100402008-07-05 Chong Yidong <cyd@stupidchicken.com>
10041
10042 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
10043 face if it didn't already exist.
10044
10045 * xdisp.c (try_window_id): Give up if word-wrapping is on.
10046
100472008-07-05 Andreas Schwab <schwab@suse.de>
10048
10049 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
10050
100512008-07-05 Chong Yidong <cyd@stupidchicken.com>
10052
10053 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
10054 word-wrapping.
10055 (IT_DISPLAYING_WHITESPACE): New macro.
10056 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
10057 when word-wrapping. Simplify word-wrapping logic. Use correct
10058 pixel positions when saving copies of the iterator.
10059 (display_line): Use proper wrap point if the last character on a
10060 line was preceded by whitespace.
10061
100622008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
10063
10064 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
10065
100662008-07-04 Kenichi Handa <handa@m17n.org>
10067
10068 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
10069
10070 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
10071
100722008-07-02 Jason Rumney <jasonr@gnu.org>
10073
10074 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 10075 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
10076
10077 * xdisp.c (next_element_from_display_vector): Move assignment out
10078 of if statement.
10079
100802008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
10081
10082 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
10083
10084 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
10085 (syms_of_fileio): Initialize and export them.
10086 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
10087
10088 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
10089 (Fsystem_move_file_to_trash): New function.
10090 (syms_of_w32fns): Export it to lisp.
10091
100922008-07-01 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32font.c (w32font_text_extents): Don't count overhang as part
10095 of width.
10096
100972008-06-30 Miles Bader <miles@gnu.org>
10098
10099 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
10100 Add `avoid_cursor_p' field.
10101
10102 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
10103 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
10104 (append_glyph, append_composite_glyph, produce_image_glyph)
10105 (append_stretch_glyph): Initialize avoid_cursor_p.
10106 (get_it_property): Rename from `get_line_height_property'.
10107 (x_produce_glyphs): Use get_it_property.
10108 (handle_line_prefix, push_display_prop): New functions.
10109 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
10110 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
10111 New variables.
10112 (syms_of_xdisp): Initialize them.
10113
101142008-06-30 Kenichi Handa <handa@m17n.org>
10115
10116 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
10117 XftDefaultSubstitute (they are called in XftFontMatch).
10118 (xftfont_open): Fix args to ftfont_font_format.
10119
10120 * ftfont.c (fc_charset_table): New member lang.
10121 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 10122 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
10123 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
10124 (ftfont_open): Fix args to ftfont_font_format.
10125 (ftfont_font_format): New arg filename.
10126
101272008-06-30 Chong Yidong <cyd@stupidchicken.com>
10128
10129 * xfaces.c (Finternal_merge_in_global_face): If default face was
10130 modified, realize it again. Update the font face attribute.
10131
101322008-06-29 Jason Rumney <jasonr@gnu.org>
10133
10134 * w32term.c (x_set_frame_alpha): Fix logic.
10135
101362008-06-29 Kenichi Handa <handa@m17n.org>
10137
10138 * fontset.c (Finternal_char_font): Return font-object instead of
10139 font-name.
10140
10141 * composite.c (get_composition_id): Fix the width calculation for TAB.
10142
101432008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10144
10145 * indent.c (Fvertical_motion): Properly handle float column arg.
10146
101472008-06-28 Jason Rumney <jasonr@gnu.org>
10148
10149 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10150 (pfnSetLayeredWindowAttributes): New function pointer.
10151 (w32_initialize): Initialize it when supported.
10152 (x_set_frame_alpha): New function.
10153
10154 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10155 (w32_frame_parm_handlers): Set alpha handler.
10156
10157 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10158
101592008-06-27 Jason Rumney <jasonr@gnu.org>
10160
10161 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10162 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10163 (w32_to_x_charset, x_to_w32_charset)
10164 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10165 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10166 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10167 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10168 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10169 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10170 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10171 (Qw32_charset_unicode): Remove.
10172 (syms_of_w32fns): Update for above changes.
10173
10174 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10175 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10176 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10177 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10178 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10179 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10180 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10181 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10182 (syms_of_w32font): Update for above changes.
10183
101842008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10185
10186 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10187 removed #if.
10188 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10189
101902008-06-26 Juanma Barranquero <lekktu@gmail.com>
10191 Eli Zaretskii <eliz@gnu.org>
10192
10193 * makefile.w32-in (LOCAL_FLAGS):
10194 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10195
10196 * sysdep.c (_spawnlp, _getpid):
10197 Declare with explicit _cdecl instead of _CRTAPI1.
10198
10199 * editfns.c (Fget_internal_run_time):
10200 Check for WINDOWSNT with #ifdef, not #if.
10201
102022008-06-26 Jason Rumney <jasonr@gnu.org>
10203
10204 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10205
10206 * w32term.c (x_draw_glyph_string_foreground)
10207 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10208 Use FONT_HANDLE macro.
10209 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10210
10211 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10212 (uniscribe_encode_char): Use FONT_HANDLE macro.
10213
10214 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10215 (w32font_text_extents): Use precast w32_font.
10216 (w32font_close): Free cached metrics.
10217 (w32font_open_internal): Allocate space for name on stack.
10218
102192008-06-26 Chong Yidong <cyd@stupidchicken.com>
10220
10221 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10222
102232008-06-26 Jason Rumney <jasonr@gnu.org>
10224
10225 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10226 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10227
102282008-06-26 Juanma Barranquero <lekktu@gmail.com>
10229
10230 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10231
102322008-06-26 Jason Rumney <jasonr@gnu.org>
10233
10234 * w32bdf.c, w32bdf.h: Remove obsolete files.
10235
10236 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10237
10238 * w32gui.h: Don't include w32bdf.h.
10239 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10240 Remove obsolete font support.
10241
10242 * w32font.h (struct w32font_info): Remove compat_w32_font.
10243 Add hfont member.
10244 (FONT_COMPAT): Remove obsolete macro.
10245
10246 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10247 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10248 (w32font_open_internal): Remove compat code. Set new hfont member.
10249 (Fx_select_font): Use new hfont member.
10250
10251 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10252 (uniscribe_encode_char): Use new hfont member.
10253
10254 * w32term.c (x_draw_glyph_string_foreground)
10255 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10256 (x_draw_glyph_string): Use metrics in w32font_info.
10257
102582008-06-26 Kenichi Handa <handa@m17n.org>
10259
10260 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10261
102622008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10263
10264 * unexnext.c:
10265 * m/ews4800.h:
10266 * m/hp9000s300.h:
10267 * m/ibm370aix.h:
10268 * m/mips-siemens.h:
10269 * m/ncr386.h:
10270 * m/next.h:
10271 * m/pmax.h:
10272 * m/powerpcle.h:
10273 * m/tandem-s2.h:
10274 * s/386bsd.h:
10275 * s/bsd386.h:
10276 * s/bsd4-1.h:
10277 * s/bsd4-2.h:
10278 * s/bsdos2-1.h:
10279 * s/bsdos2.h:
10280 * s/bsdos3.h:
10281 * s/bsdos4.h:
10282 * s/nextstep.h:
10283 * s/ultrix4-3.h:
10284 * s/usg5-0.h:
10285 * s/usg5-2-2.h:
10286 * s/usg5-2.h:
10287 * s/usg5-4-3.h:
10288 * s/ux4800.h:
10289 * s/uxpds.h:
10290 * s/uxpv.h: Remove support for obsolete systems.
10291 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10292 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10293 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10294 Remove, insert contents in s/aix4-2.h.
10295 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10296 * s/bsd4-3.h: Rename to ...
10297 * s/bsd-common.h: ... this.
10298 * data.c:
10299 * doc.c:
10300 * ecrt0.c:
10301 * emacs.c:
10302 * fileio.c:
10303 * floatfns.c:
10304 * keyboard.c:
10305 * mem-limits.h:
10306 * print.c:
10307 * process.c:
10308 * sysdep.c:
10309 * syssignal.h:
10310 * systty.h:
10311 * syswait.h:
10312 * term.c:
10313 * unexec.c:
10314 * unexelf.c:
10315 * unexhp9k800.c:
10316 * m/hp800.h:
10317 * m/ibmrs6000.h:
10318 * m/mips.h:
10319 * m/vax.h:
10320 * s/darwin.h:
10321 * s/freebsd.h:
10322 * s/gnu.h:
10323 * s/ms-w32.h:
10324 * s/msdos.h:
10325 * s/netbsd.h:
10326 * s/template.h: Remove references to obsolete variables.
10327
10328 * Makefile.in: Add dependencies for all unexec files.
10329 (admindir): Remove unused variable.
10330 (UNEXEC_SRC): Remove references.
10331
103322008-06-25 Chong Yidong <cyd@stupidchicken.com>
10333
10334 * xfns.c (x_default_font_parameter): If Xft is available, first
10335 try Monospace-12 for the default font.
10336
103372008-06-25 Jason Rumney <jasonr@gnu.org>
10338
10339 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10340
103412008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10342
10343 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10344
10345 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10346
103472008-06-25 Juanma Barranquero <lekktu@gmail.com>
10348
10349 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10350 <scroll-conservatively>: Fix typo in docstring.
10351
10352 * xselect.c (Fx_send_client_event): Doc fix.
10353
103542008-06-25 Kenichi Handa <handa@m17n.org>
10355
10356 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10357
10358 * font.c (font_parse_fcname): Remove unused variables.
10359 (font_sort_entites): Delete the arg SPEC. Caller changed.
10360 Fix for the case of ! best_only.
10361 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10362
10363 * lisp.h (Fstring_to_unibyte): EXFUN it.
10364
10365 * character.h (str_to_unibyte): Extern it.
10366
10367 * character.c (str_to_unibyte): New function.
10368
10369 * fns.c (Fstring_to_unibyte): New function.
10370 (syms_of_fns): Defsubr it.
10371
103722008-06-24 Kenichi Handa <handa@m17n.org>
10373
10374 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10375 DPI too.
10376 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10377
103782008-06-24 Andreas Schwab <schwab@suse.de>
10379
10380 * Makefile.in (${lispsource}loaddefs.el): Rename from
10381 ../lisp/loaddefs.el.
10382 (bootstrap-clean): Do what distclean does but don't remove
10383 Makefile.
10384 (distclean): Depend on bootstrap-clean and remove Makefile.
10385
103862008-06-24 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * buffer.h (struct buffer): New member word_wrap.
10389
10390 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10391 word-wrap.
10392 (init_buffer_once): Initialize them.
10393
10394 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10395 line_wrap enum possessing three possible values.
10396
10397 * termopts.h: Replace truncate_partial_width_windows with
10398 Vtruncate_partial_width_windows.
10399
10400 * dispnew.c (direct_output_for_insert): Avoid direct output when
10401 inserting a space with word wrap on.
10402
10403 * indent.c (compute_motion): Obey integer values of
10404 truncate-partial-width-windows.
10405
10406 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10407 replacing truncate_partial_width_windows.
10408 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10409 truncate only if the window width is below that integer.
10410 (start_display, resize_mini_window, produce_stretch_glyph)
10411 (display_string, move_it_in_display_line_to): Use line_wrap.
10412 (back_to_previous_visible_line_start, reseat_1): Reset
10413 string_from_display_prop_p.
10414 (display_line): Extend default face to end of line when wrapping.
10415
104162008-06-24 Kim F. Storm <storm@cua.dk>
10417
10418 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10419 to wrap continued lines at word boundaries.
10420
104212008-06-24 Jason Rumney <jasonr@gnu.org>
10422
10423 * font.c (Ffont_face_attributes): Multiply pixel size before point
10424 conversion to avoid multiplying rounding error.
10425
104262008-06-23 Jason Rumney <jasonr@gnu.org>
10427
10428 * w32term.c (x_draw_glyph_string_background)
10429 (x_draw_glyph_string): Remove old bdf font code.
10430
10431 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10432
104332008-06-22 Kenichi Handa <handa@m17n.org>
10434
10435 * font.c (font_find_for_lface): Try the adstyle specified in
10436 the property of LFACE_FONT of LFACE (if any).
10437
104382008-06-21 Seiji Zenitani <zenitani@mac.com>
10439 Ryo Yoshitake <ryo@shiftmode.net>
10440
10441 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10442
104432008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10444
10445 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10446 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10447 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10448 (witness-emacs): Remove.
10449 (lisp, shortlisp): Move loaddefs.el earlier.
10450 (mostlyclean): Forget about witness-emacs.
10451
104522008-06-22 Glenn Morris <rgm@gnu.org>
10453
10454 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10455 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10456
104572008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10458
10459 * Makefile.in (PRECOMP): Remove.
10460 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10461 (witness-emacs): Run `compile-first'.
10462 (.el.elc): Use the new compile-onefile target.
10463
104642008-06-21 Kenichi Handa <handa@m17n.org>
10465
10466 * xftfont.c (xftfont_open): Handle QCembolden only when
10467 FC_EMBOLDEN is defined.
10468
104692008-06-21 Andreas Schwab <schwab@suse.de>
10470
10471 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10472 (.el.elc): Likewise.
10473
104742008-06-21 Miles Bader <miles@gnu.org>
10475
10476 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10477 build dir, not the lisp source dir.
10478
104792008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10480
10481 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10482 (bootstrapclean): Remove.
10483 (.el.elc): New rule.
10484 (PRECOMP): New var.
10485 (../lisp/subdirs.el): Remove.
10486 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10487 (witness-emacs): New target.
10488 (mostlyclean): Remove witness-emacs as well.
10489 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10490 Add witness-emacs dependency.
10491
104922008-06-20 Chong Yidong <cyd@stupidchicken.com>
10493
10494 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10495 defined by the font.
10496
104972008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10498
10499 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10500 (bootstrap-clean): New target that keeps TAGS around.
10501 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10502 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10503
105042008-06-20 Jason Rumney <jasonr@gnu.org>
10505
10506 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10507 Remove obsolete font code.
10508
10509 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10510 to determine language support.
10511
105122008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * sysdep.c (cfsetspeed): New fun extracted from the code.
10515 (cfmakeraw): Move before first use.
10516
105172008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10518
10519 * sysdep.c (cfmakeraw): Provide fallback implementation.
10520 (serial_configure): Provide fallback implementation of cfsetspeed.
10521
105222008-06-20 Kenichi Handa <handa@m17n.org>
10523
10524 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10525 the pattern.
10526
10527 * fontset.c (fontset_from_font): Copy font_spec before changing
10528 the elements.
10529
10530 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10531
105322008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10533
10534 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10535 for explicit `font' parameters.
10536
10537 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10538
105392008-06-19 Kenichi Handa <handa@m17n.org>
10540
10541 * frame.c: Include <ctype.h>.
10542 (x_set_font_backend): Allow spacing characters in the X resource
10543 for FontBackend.
10544
105452008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10546
10547 * w32fns.c, xfns.c (Qfont_param): New var.
10548 (syms_of_w32fns): Initialize it.
10549 (x_default_font_parameter): Record explicit `font' into
10550 `font-parameter'.
10551
105522008-06-18 Kenichi Handa <handa@m17n.org>
10553
10554 * font.c (font_parse_xlfd): Fix previous change.
10555 (font_parse_fcname): Don't use :fc-unknown-spec.
10556 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10557 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10558 (font_add_log): Prepend the driver name to the resulting fonts.
10559
10560 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10561 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10562 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10563
10564 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10565 (QCembolden): New variables.
10566 (syms_of_xftfont): DEFSYM them.
10567 (xftfont_open): Call XftFontMatch. Don't trust the result of
10568 XftTextExtents8 if the pixel_size is less than 5.
10569
105702008-06-18 Andreas Schwab <schwab@suse.de>
10571
10572 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10573 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10574
105752008-06-18 Jason Rumney <jasonr@gnu.org>
10576
10577 * w32font.c (w32font_list, w32font_match): Add logging.
10578
10579 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10580
105812008-06-17 Chong Yidong <cyd@stupidchicken.com>
10582
10583 * font.c (font_parse_fcname): Store divider characters for
10584 unknown-spec list. For known key symbols, intern using correct
10585 symbol name.
10586
105872008-06-17 Kenichi Handa <handa@m17n.org>
10588
10589 * xfaces.c (realize_default_face): If the frame is not on window
10590 system, set the fontset of face to nil.
10591
105922008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10593
10594 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10595
105962008-06-16 Juanma Barranquero <lekktu@gmail.com>
10597
10598 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10599 (build_font_name_from_vector): Delete externs.
10600
10601 * xfaces.c (struct font_name): Don't declare.
10602
106032008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10604
10605 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10606
106072008-06-16 Chong Yidong <cyd@stupidchicken.com>
10608
10609 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10610
106112008-06-16 Juanma Barranquero <lekktu@gmail.com>
10612
10613 * font.c (Ffont_spec): Fix usage in docstring.
10614 (Ffont_face_attributes): Doc fix.
10615
106162008-06-16 Andreas Schwab <schwab@suse.de>
10617
10618 * font.c (Ffont_face_attributes): Fix definition.
10619
106202008-06-16 Jason Rumney <jasonr@gnu.org>
10621
10622 * font.h (font_style_symbolic_from_value): Remove.
10623
10624 * font.c (font_style_symbolic_from_value): Remove.
10625 (font_style_symbolic): Revert to pre 2008-06-13 version.
10626
10627 * w32font.c (w32_to_fc_weight): New function.
10628 (w32font_full_name, logfont_to_fcname): Use it.
10629
106302008-06-16 Kenichi Handa <handa@m17n.org>
10631
10632 * font.c (font_check_object): Delete it.
10633 (font_clear_cache): Check if a font-object is alive.
10634 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10635 font-object to nil.
10636 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10637 (font_at): Don't call font_check_object.
10638 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10639
106402008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10641
10642 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10643
106442008-06-16 Chong Yidong <cyd@stupidchicken.com>
10645
10646 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10647
106482008-06-15 Chong Yidong <cyd@stupidchicken.com>
10649
10650 * font.c (font_parse_fcname): Only one decimal point.
10651 (font_unparse_fcname): Handle data in family and foundry indices
10652 as symbols, not strings.
10653 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10654
10655 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10656
10657 * font.h (font_unparse_gtkname): Add prototype.
10658
106592008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10660
10661 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10662
106632008-06-15 Andreas Schwab <schwab@suse.de>
10664
10665 * font.c (font_update_drivers): Fix crash when no drivers match.
10666
106672008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10668
10669 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10670 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10671
106722008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10673
10674 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10675
106762008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10677
10678 * process.c (Fserial_process_configure, Fprocess_send_eof):
10679 Use EQ to compare Lisp_Objects.
10680
106812008-06-13 Jason Rumney <jasonr@gnu.org>
10682
10683 * w32fns.c (Fw32_select_font): Remove old font API function.
10684
10685 * w32font.c (logfont_to_fcname): New function.
10686 (Fx_select_font): New font dialog function compatible with
10687 GTK/fontconfig version.
10688
10689 * font.c (font_style_symbolic_from_value): New function.
10690 (font_style_symbolic): Use it.
10691
10692 * font.h (font_style_symbolic_from_value): Declare new function.
10693
106942008-06-13 Juanma Barranquero <lekktu@gmail.com>
10695
10696 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10697 <font-width-table>: Fix typos in docstrings.
10698
106992008-06-13 Daniel Engeler <engeler@gmail.com>
10700
10701 These changes add serial port access.
10702 * process.c: Add HAVE_SERIAL.
10703 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10704 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10705 (list_processes_1, select_wrapper, Fstop_process)
10706 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10707 (status_notify): Modify to handle serial processes.
10708 [HAVE_SERIAL] (Fserial_process_configure)
10709 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10710 New functions.
10711 * process.h (struct Lisp_Process): Add `type'.
10712 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10713 New functions.
10714 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10715 serial ports.
b71ac3dd 10716 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10717 * w32.h: Add FILE_SERIAL.
10718 (struct _child_process): Add ovl_read, ovl_write.
10719
107202008-06-13 Kenichi Handa <handa@m17n.org>
10721
10722 * dispextern.h (enum lface_attribute_index): New member
10723 LFACE_FOUNDRY_INDEX.
10724
10725 * font.c (font_score): Delete arg alternate_families. Check only
10726 weight, slant, width, and size. Ignore the difference of alias
10727 style symbols.
10728 (font_sort_entites): Adjust for the above change. Reflect the
10729 order of font-driver to scores.
10730 (font_list_entities): Don't check alternate_familes here.
10731 (font_clear_prop): Handle foundry.
10732 (font_update_lface): Don't parse "foundry-family" form here.
10733 Handle FONT_FOUNDRY_INDEX.
10734 (font_find_for_lface): Likewise. Handle alternate families here.
10735 If registry is nil, try iso8859-1 and ascii-0.
10736 (font_open_for_lface): Pay attention to size in ENTITY.
10737 (font_open_by_name): Simplify by calling font_load_for_lface.
10738 (free_font_driver_list): Delete it.
10739 (font_update_drivers): Preserve the order of backends.
10740 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10741 of font_score and font_sort_entites.
10742 (font_update_sort_order): Likewise.
10743
10744 * xfaces.c (LFACE_FOUNDRY): New macro.
10745 (check_lface_attrs): Check foundry.
10746 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10747 (merge_face_vectors): Check foundry.
10748 (merge_face_ref): Likewise.
10749 (Finternal_set_lisp_face_attribute): Likewise.
10750 (x_update_menu_appearance): Likewise.
10751 (Finternal_get_lisp_face_attribute): Likewise.
10752 (lface_hash): Likewise.
10753 (lface_same_font_attributes_p): Likewise.
10754 (x_supports_face_attributes_p): Likewise.
10755 (tty_supports_face_attributes_p): Likewise.
10756 (Finternal_set_alternative_font_family_alist): Intern strings.
10757 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10758 (realize_default_face): Set LFACE_FOUNDRY (lface).
10759
10760 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10761 font-driver at first.
10762
10763 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10764
107652008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10766
10767 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10768
107692008-06-12 Jim Meyering <meyering@redhat.com>
10770
10771 Make unexec_free handle NULL the same way free does.
10772 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10773
107742008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10775
10776 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10777 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10778 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10779 (WEAK_ALIAS): Simplify.
10780 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10781 when searching a unibyte buffer.
10782
107832008-06-12 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10786
107872008-06-12 Juanma Barranquero <lekktu@gmail.com>
10788
10789 * w32font.c: Include ctype.h.
10790
107912008-06-11 Jason Rumney <jasonr@gnu.org>
10792
10793 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10794 misreported as space.
10795 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10796 as aliases for registry iso10646-1.
10797
107982008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10799
10800 * buffer.c (clone_per_buffer_values): Skip `name'.
10801
108022008-06-11 Chong Yidong <cyd@stupidchicken.com>
10803
10804 * font.c (font_parse_fcname): Fix last change; accept decimal
10805 points in font size.
10806
108072008-06-10 Jason Rumney <jasonr@gnu.org>
10808
10809 * w32uniscribe.c (add_opentype_font_name_to_list):
10810 Skip non unicode fonts.
10811
108122008-06-10 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * xfns.c (Fx_font_dialog): New function.
10815
10816 * gtkutil.c (xg_dialog_response_cb): Rename from
10817 xg_file_response_callback.
10818 (pop_down_dialog): Rename from pop_down_file_dialog.
10819 (xg_get_file_name): Callers changed.
10820 (xg_get_font_name): New function.
10821
10822 * gtkutil.h (xg_get_font_name): Insert prototype.
10823
108242008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10827 x_underline_minimum_display_offset.
10828 (syms_of_xdisp): Declare it here rather than in xterm.c.
10829 * dispextern.h (underline_minimum_offset): Declare it.
10830 * w32term.c (x_draw_glyph_string): Use it.
10831 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10832 (syms_of_xterm): Don't declare it any more.
10833 (x_draw_glyph_string): Adjust to the new name.
10834
8719abec 108352008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10836
10837 * xterm.c (x_underline_minimum_display_offset): New var.
10838 (x_draw_glyph_string): Use it.
10839 (syms_of_xterm): Declare it.
10840
108412008-06-10 Chong Yidong <cyd@stupidchicken.com>
10842
10843 * font.c (font_parse_fcname): Accept GTK-style font names too.
10844
108452008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * dired.c (file_name_completion): Don't return t if the match is exact
10848 but with different capitalization.
10849 * minibuf.c (Ftry_completion): Simplify.
10850
10851 * window.c (Vwindow_point_insertion_type): New var.
10852 (set_window_buffer): Use it.
10853 (syms_of_window): Init and export it to Lisp.
10854
108552008-06-10 Kenichi Handa <handa@m17n.org>
10856
10857 * font.h (font_intern_prop): Prototype adjusted.
10858
10859 * font.c (font_intern_prop): New arg force_symbol.
10860 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10861 Adjust for the change of font_intern_prop.
10862
10863 * ftfont.c (ftfont_pattern_entity):
10864 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10865 (w32_registry):
10866 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10867 the change of font_intern_prop.
10868
108692008-06-09 Juanma Barranquero <lekktu@gmail.com>
10870
10871 * w32menu.c (digest_single_submenu): Declare extern.
10872
108732008-06-09 Jason Rumney <jasonr@gnu.org>
10874
10875 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10876
10877 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10878 (parse_single_submenu): Remove.
10879 (digest_single_submenu): Remove.
10880 (syms_of_w32menu): Don't initialise variables that have moved
10881 to menu.c.
10882 (set_frame_menubar): Sync with version in xmenu.c.
10883 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10884
10885 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10886 Make static again.
10887
108882008-06-09 Jason Rumney <jasonr@gnu.org>
10889
10890 Changes to w32 files related to the move of common menu code
10891 to menu.c on 2008-06-08 by Chong Yidong.
10892
10893 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10894 defs to w32gui.h.
10895 (single_keymap_panes, push_menu_item, push_menu_pane):
10896 Make globally visible.
10897
10898 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10899 (local_free, malloc_widget_value, free_widget_value)
10900 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10901 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10902 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10903 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10904 (menu_items, menu_items_allocated, menu_items_used)
10905 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10906 (init_menu_items, finish_menu_items, discard_menu_items)
10907 (grow_menu_items, push_submenu_start, push_submenu_end)
10908 (push_left_right_boundary, push_menu_pane, push_menu_item)
10909 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10910 (free_menubar_widget_tree_value, parse_single_submenu)
10911 (update_submenu_strings): Remove functions.
10912 (xmalloc_widget_value): Remove and declare extern.
10913
10914 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10915 (OBJ1): Build it.
10916
10917 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10918 (local_heap, local_alloc, local_free, malloc_widget_value)
10919 (free_widget_value): Define here.
10920
109212008-06-09 Kenichi Handa <handa@m17n.org>
10922
10923 * font.h (Qascii_0): Extern it.
10924
10925 * font.c (Qascii_0): New variable.
10926 (syms_of_font): DEFSYM it.
10927 (font_open_by_name): If the registry "iso8859-1" fails, try also
10928 "ascii-0".
10929
10930 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10931
109322008-06-08 Kenichi Handa <handa@m17n.org>
10933
10934 * .gdbinit (xfont): New command.
10935
109362008-06-08 Andreas Schwab <schwab@suse.de>
10937
10938 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10939 * Makefile.in (menu.o): Update dependencies.
10940
10941 * Makefile.in (obj): Always add menu.o.
10942 * emacs.c (main): Always call syms_of_menu.
10943 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10944
109452008-06-08 Chong Yidong <cyd@stupidchicken.com>
10946
10947 * Makefile.in: Compile menu.c.
10948
10949 * lisp.h: Declare syms_of_menu.
10950
10951 * emacs.c (main): Call syms_of_menu.
10952
10953 * keyboard.h: Relocate platform-independent menu definitions from
10954 xmenu.c.
10955
10956 * menu.c: New file. Relocate platform-independent menu
10957 definitions from xmenu.c. Suggested by Adrian Robert.
10958
10959 * xmenu.c: Remove platform-independent menu definitions.
10960 (menu_items menu_items_inuse, menu_items_allocated)
10961 (menu_items_used, menu_items_n_panes)
10962 (menu_items_submenu_depth): Move to keyboard.h.
10963 (init_menu_items, finish_menu_items, unuse_menu_items)
10964 (discard_menu_items, restore_menu_items, save_menu_items)
10965 (grow_menu_items, push_submenu_start, push_submenu_end)
10966 (push_left_right_boundary, push_menu_pane, push_menu_item)
10967 (keymap_panes, single_keymap_panes, single_menu_item)
10968 (list_of_panes, list_of_items, find_and_call_menu_selection)
10969 (xmalloc_widget_value, free_menubar_widget_value_tree)
10970 (parse_single_submenu, digest_single_submenu)
10971 (update_submenu_strings): Move to menu.c.
10972
109732008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10974
10975 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10976
109772008-06-06 Miles Bader <miles@gnu.org>
10978
10979 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10980 face, not frame default.
10981
109822008-06-05 Martin Rudalics <rudalics@gmx.at>
10983
10984 * window.c (pop_up_windows, pop_up_frames)
10985 (display_buffer_reuse_frames, Vpop_up_frame_function)
10986 (Vdisplay_buffer_function, Veven_window_heights)
10987 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10988 (Vspecial_display_function, Vsame_window_buffer_names)
10989 (Vsame_window_regexps, split_height_threshold)
10990 (Vsplit_window_preferred_function): Move those vars to window.el.
10991 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10992 (Fdisplay_buffer): Move those functions to window.el.
10993 (syms_of_window): Remove corresponding declarations.
10994 (display_buffer): New function.
10995 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10996 * dispnew.c (Flast_nonminibuf_frame): New function.
10997 * buffer.c (Fpop_to_buffer): Move to window.el.
10998
109992008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11000
11001 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
11002
110032008-06-05 Kenichi Handa <handa@m17n.org>
11004
11005 * coding.c (detect_coding): Fix previous change.
11006 (detect_coding_system): Likewise.
11007
110082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11009
11010 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
11011
11012 * keymap.c (Vminibuffer_local_filename_must_match_map):
11013 Rename from Vminibuffer_local_must_match_filename_map.
11014 (syms_of_keymap):
11015 * minibuf.c (Fcompleting_read): Adjust accordingly.
11016 * commands.h: Rename declaration as well.
11017
110182008-06-05 Kenichi Handa <handa@m17n.org>
11019
11020 * font.c (Ffont_spec): Don't use font_parse_family_registry for
11021 family name.
11022 (Ffont_put): Likewise.
11023
11024 * fontset.c (fontset_find_font): Call font_open_for_lface with the
11025 current font-spec.
11026
11027 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
11028 is unspecified.
11029
11030 * xfaces.c (realize_x_face): If the font-related face attributes
11031 are the same as those of default face, realize a new fontset from
11032 default->fontset.
11033 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
11034
110352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
11036
11037 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
11038 (move_it_in_display_line): New wrapper.
11039
11040 * window.c (window_scroll_pixel_based_preserve_x)
11041 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
11042 (window_scroll_pixel_based, window_scroll_line_based):
11043 Use them to preserve column positions.
11044 (syms_of_window): Initialize them.
11045
11046 * indent.c (Fvertical_motion): Extend first arg to allow passing an
11047 (HPOS . VPOS) pair.
11048
11049 * dispextern.h (move_it_in_display_line): Declare.
11050
110512008-06-05 Juanma Barranquero <lekktu@gmail.com>
11052
11053 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
11054 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
11055 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
11056
110572008-06-04 Juanma Barranquero <lekktu@gmail.com>
11058
11059 * window.c (Fset_window_parameter): Doc fix.
11060 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
11061
110622008-06-04 Joakim Verona <joakim@verona.se>
11063
11064 * window.h (struct window): Add new member window_parameters.
11065
11066 * window.c (Fwindow_parameters, Fwindow_parameter)
11067 (Fset_window_parameter): New defuns.
11068 (syms_of_window): Defsubr the new defuns.
11069 (make_window): Initialize window_parameters to nil.
11070
110712008-06-04 John Paul Wallington <jpw@pobox.com>
11072
11073 * eval.c (Fdefmacro): Doc fix.
11074
110752008-06-04 Kenichi Handa <handa@m17n.org>
11076
11077 * coding.c (detect_coding): Fix handling of coding->head_ascii.
11078 Be sure to call setup_coding_system when we find a proper coding system.
11079 (detect_coding_system): Fix handling of coding->head_ascii.
11080
110812008-06-03 Andreas Schwab <schwab@suse.de>
11082
11083 * font.c (font_prop_validate_spacing): Fix last change.
11084
110852008-06-03 Kenichi Handa <handa@m17n.org>
11086
11087 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
11088 (font_parse_fcname): Fix handling of unknown key.
11089
11090 * xfont.c (xfont_list): Try an alias.
11091
11092 * charset.c (char_charset): Return NULL if the arg charset_list is
11093 specified and C doesn't belong to any of them.
11094
110952008-06-02 Chip Coldwell <coldwell@redhat.com>
11096
11097 * font.c (font_pixel_size): Don't take cdr of an integer.
11098
110992008-06-02 Jim Meyering <meyering@redhat.com>
11100
11101 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
11102 * alloc.c (xfree): Return right away for a NULL arg.
11103 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
11104 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
11105 * mac.c (create_apple_event_from_event_ref): Likewise.
11106 (create_apple_event_from_drag_ref, cfstring_create_normalized):
11107 Likewise.
11108 * doprnt.c (doprnt1): Likewise.
11109 * frame.c (frame): Likewise.
11110 * keyboard.c (wipe_kboard): Likewise.
11111 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
11112 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
11113 * term.c (tty_default_color_capabilities, maybe_fatal)
11114 (delete_tty): Likewise.
11115 * w16select.c (string): Likewise.
11116 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
11117 * w32bdf.c (w32_free_bdf_font): Likewise.
11118 * w32fns.c (w32_unload_font): Likewise.
11119 * w32font.c (w32font_close): Likewise.
11120 * window.c (size_window): Likewise.
11121 * xselect.c (receive_incremental_selection): Likewise.
11122 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
11123 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
11124 * w32.c (stat): Likewise.
11125
11126 Remove useless if-before-free tests.
11127 * editfns.c (Fset_time_zone_rule): Likewise.
11128 * lread.c (nosuffix): Likewise.
11129 * ralloc.c (get_bloc): Likewise.
11130 * regex.c (reg_free): Likewise.
11131 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11132 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11133 * xsmfns.c (smc_save_yourself_CB): Likewise.
11134
111352008-06-02 Kenichi Handa <handa@m17n.org>
11136
11137 * font.c (font_find_for_lface): Handle float font size.
11138 (font_open_for_lface): Likewise.
11139
11140 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11141 comparing the properties.
11142
111432008-06-01 Jason Rumney <jasonr@gnu.org>
11144
11145 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11146 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11147 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11148 Don't add empty script list.
11149 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11150
111512008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11152
11153 * Makefile.in (dot, dotdot): Remove, update users.
11154 ".." has been used elsewhere in the file for a long time.
11155 (LIBXT_STATIC): Remove conditional based on unused variable.
11156
111572008-06-01 Miles Bader <miles@gnu.org>
11158
11159 * xfaces.c (Vface_remapping_alist): New variable.
11160 (syms_of_xfaces): Initialize it.
11161 (enum named_merge_point_kind): New type.
11162 (struct named_merge_point): Add `named_merge_point_kind' field.
11163 (push_named_merge_point): Make cycle detection respect different
11164 named-merge-point kinds.
11165 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11166 Remove face-name alias resolution.
11167 (lface_from_face_name): New definition using
11168 `lface_from_face_name_no_resolve'.
11169 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11170 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11171 (get_lface_attributes): New definition that layers face-remapping on
11172 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11173 (lookup_basic_face): New function.
11174 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11175 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11176 `get_lface_attributes'.
11177 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11178 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11179 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11180
11181 * xdisp.c (init_iterator): Pass base_face_id through
11182 `lookup_basic_face' when we actually use it as a face-id.
11183 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11184 DEFAULT_FACE_ID.
11185
11186 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11187 lookup the initial face-id.
11188
11189 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11190
111912008-06-01 Juanma Barranquero <lekktu@gmail.com>
11192
11193 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11194 (Fremove_text_properties): Fix typos in docstrings.
11195
111962008-05-31 Kenichi Handa <handa@m17n.org>
11197
11198 * font.c (font_list_entities): Fix the car part of data to be
11199 stored in the cache.
11200
11201 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11202
112032008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11204
11205 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11206 Add a `test' argument so another predicate than `equal' can be used.
11207 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11208 (map_char_table): Remove unused vars `c' and `i'.
11209 * lisp.h (Foptimize_char_table): Adjust declaration.
11210 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11211
112122008-05-30 Kenichi Handa <handa@m17n.org>
11213
11214 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11215 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11216 defined.
11217
112182008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11219
11220 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11221 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11222 frame-local settings for the same variable.
11223
112242008-05-30 Kenichi Handa <handa@m17n.org>
11225
11226 * fontset.c (Ffont_info): Move to font.c.
11227 (syms_of_fontset): Delete defsubr of Sfont_info.
11228
11229 * font.c (font_style_to_value, font_score): Delete casting of the
11230 args to xstcasecmp.
11231 (register_font_driver): Increment num_font_drivers only when
11232 registering the driver globally.
11233 (Ffont_info): Move from fontset.c. Handle a font object too.
11234 (syms_of_font): Defsubr Sfont_info.
11235
112362008-05-29 Kenichi Handa <handa@m17n.org>
11237
11238 * coding.h (enum define_coding_utf8_arg_index): New enum.
11239 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11240 coding_attr_utf_bom.
11241 (enum utf_bom_type): Rename from utf_16_bom_type.
11242 (struct utf_16_spec): Adjust for the above change.
11243 (struct coding_system): Add utf_8_bom in `spec' union.
11244
11245 * coding.c (CODING_UTF_8_BOM): New macro.
11246 (enum coding_category): Delete coding_category_utf_8, add
11247 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11248 coding_category_utf_8_sig.
11249 (CATEGORY_MASK_UTF_8): Delete it.
11250 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11251 (CATEGORY_MASK_UTF_8_SIG): New macros.
11252 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11253 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11254 CATEGORY_MASK_UTF_8_SIG.
11255 (CATEGORY_MASK_UTF_8): New macro.
11256 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11257 (detect_coding_utf_8): Check BOM.
11258 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11259 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11260 (encode_coding_utf_16): Likewise.
11261 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11262 (detect_coding, detect_coding_system): Handle utf-8-auto.
11263 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11264 (syms_of_coding): Fix setting up of Vcoding_category_table.
11265
112662008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11267
11268 * process.c (Faccept_process_output): If `millisec' is non-nil,
11269 `seconds' default to 0.
11270 (wait_reading_process_output): Also return non-nil if we read output
11271 from a non-running process.
11272
112732008-05-29 Jason Rumney <jasonr@gnu.org>
11274
11275 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11276 `raster' specified.
11277 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11278 in the uniscribe backend, but disallow any font that has no
11279 unicode subrange support.
11280
112812008-05-29 Juanma Barranquero <lekktu@gmail.com>
11282
11283 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11284 Fix typos in docstrings.
11285
112862008-05-29 Kenichi Handa <handa@m17n.org>
11287
11288 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11289 (Fx_family_fonts): Set frame correctly.
11290
112912008-05-28 Jason Rumney <jasonr@gnu.org>
11292
11293 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11294
112952008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11296
11297 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11298 calling build_annotations.
11299
113002008-05-28 Juanma Barranquero <lekktu@gmail.com>
11301
11302 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11303 (Fencode_coding_string):
11304 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11305 <latin-extra-code-table>: Fix typos in docstrings.
11306 (syms_of_coding) <coding-system-alist>: Doc fix.
11307 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11308
113092008-05-28 Kenichi Handa <handa@m17n.org>
11310
11311 * fontset.c (Ffont_info): Don't call font_close_object.
11312
11313 * font.c (font_parse_family_registry): Use Ffont_put to validate
11314 foundry and family.
11315 (font_delete_unmatched): Don't check spacing.
11316 (font_list_entities): Add spacing to the spec to list fonts.
11317
11318 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11319 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11320
11321 * coding.c (encode_coding_raw_text): Fix previous change.
11322 (encode_coding_object): When the dst_object is a buffer and is
11323 different from src_object, move gap to PT.
11324
113252008-05-27 Chong Yidong <cyd@stupidchicken.com>
11326
11327 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11328
113292008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11330
11331 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11332 all branches. Compute it differently.
11333
11334 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11335
113362008-05-27 Juanma Barranquero <lekktu@gmail.com>
11337
11338 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11339 into "else if () ... else ...".
11340
113412008-05-27 Jason Rumney <jasonr@gnu.org>
11342
11343 * w32font.c (w32font_open_internal): Determine if glyph indices
11344 are likely to work here.
11345
113462008-05-27 Chong Yidong <cyd@stupidchicken.com>
11347
11348 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11349 draw overlap glyphs with appropriate highlighting.
11350
113512008-05-27 Kenichi Handa <handa@m17n.org>
11352
11353 * xfont.c (xfont_open): Fix calculation of font->average_width.
11354
113552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11356
11357 * casefiddle.c (casify_object): Try to guess better whether the
11358 argument is a byte or a char.
11359
113602008-05-26 Andreas Schwab <schwab@suse.de>
11361
11362 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11363 Always send multiples of format size.
11364
11365 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11366
113672008-05-26 Jason Rumney <jasonr@gnu.org>
11368
11369 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11370 (compute_metrics): Don't set failure if we just cleared the cache.
11371 (w32_weight_table): Remove unused variable.
11372 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11373 backwards compatibility.
11374
113752008-05-25 Kenichi Handa <handa@m17n.org>
11376
11377 * w32term.c (x_draw_glyph_string):
11378 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11379
11380 * xfaces.c: Delete unused function prototypes.
11381 (xstrlwr, font_frame): Delete them.
11382 (clear_face_cache): Delete unused variable.
11383
11384 * xftfont.c (xftfont_open): Delete unused variable.
11385 If underline_thickness is not 1, adjust underline_position.
11386
11387 * ftxfont.c (ftxfont_open): Delete unused variable.
11388
11389 * fontset.c (face_for_char): Optimize for the case of no charset
11390 property.
11391
11392 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11393 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11394 (otf_open, font_otf_capability, generate_otf_features)
11395 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11396 Comment out by surrounding "#if 0" and "#endif" for the moment.
11397 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11398 (syms_of_font): Codes for accessing above commented out.
11399
114002008-05-24 Eli Zaretskii <eliz@gnu.org>
11401
11402 * w32proc.c: Include dispextern.h.
11403
11404 * w32.c: Include dispextern.h.
11405
114062008-05-23 Juanma Barranquero <lekktu@gmail.com>
11407
11408 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11409 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11410 Fix typos in docstrings.
11411
114122008-05-23 Jason Rumney <jasonr@gnu.org>
11413
11414 * xsmfns.c: Remove includes that are already included by config.h.
11415
114162008-05-23 Kenichi Handa <handa@m17n.org>
11417
11418 * charset.c (Qemacs, charset_emacs): New variables.
11419 (char_charset): Fix for non-Unicode characters.
11420 (syms_of_charset): Define charset_emacs.
11421
11422 * w32term.c (x_draw_glyph_string): Be sure to update
11423 s->underline_thickness and s->underline_position. Be sure to draw
11424 underline within the current line area.
11425
11426 * xterm.c (x_draw_glyph_string): Be sure to update
11427 s->underline_thickness and s->underline_position. Be sure to draw
11428 underline within the current line area.
11429
11430 * fontset.c: Delete unused variables and add casting for char *
11431 throughout the file.
11432 (fontset_font): Try the fallback fonts of the current fontset
11433 before consulting the default fontset.
11434
11435 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11436
11437 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11438
114392008-05-22 Jason Rumney <jasonr@gnu.org>
11440
11441 * font.c: Don't include strings.h.
11442
11443 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11444
11445 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11446 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11447 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11448 to call xstrcasecmp.
11449
11450 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11451
11452 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11453
11454 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11455
11456 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11457
114582008-05-22 Kenichi Handa <handa@m17n.org>
11459
11460 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11461
11462 * font.c (font_prop_validate_style): Adjust for the format
11463 change of font_style_table.
11464
11465 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11466 two args.
11467
11468 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11469 two args.
11470
114712008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11472
11473 * minibuf.c (keys_of_minibuf): Delete.
11474 * lisp.h (keys_of_minibuf): Delete.
11475 * emacs.c (main): Don't call keys_of_minibuf.
11476
114772008-05-22 Kenichi Handa <handa@m17n.org>
11478
11479 * ftfont.c (ftfont_resolve_generic_family): Rename from
11480 ftfont_list_generic_family. Return a single family for each
11481 generic family.
11482 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11483 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11484 Call font_add_log.
11485 (ftfont_match): Call font_add_log.
11486
11487 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11488 (FONT_DEBUG): Define it.
11489 (font_add_log): Extern it.
11490 (font_assert): Rename from xassert.
11491
11492 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11493 (xfont_list_family): Call font_add_log.
11494 (xfont_match): Likewise.
11495 (memq_no_quit): Delete.
11496
11497 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11498 call of Ffont_xlfd_name.
11499
11500 * xfaces.c (struct table_entry, slant_table, weight_table)
11501 (swidth_table): Move to font.c.
11502
11503 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11504 xassert are changed to font_assert. Delete many unused variables.
11505 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11506 New variables.
11507 (struct table_entry): Move from xfaces.c and modified.
11508 (weight_table, slant_table, width_table): Move from xfaces.c and
11509 contents adjusted for the change of struct table_entry.
11510 (font_style_to_value, font_style_symbolic): Adjust for the
11511 format change of font_style_table.
11512 (font_parse_family_registry): Don't overwrite existing foundry and
11513 family of font_spec.
11514 (font_score): Fix calculation of diff for sizes.
11515 (font_sort_entites): Call font_add_log.
11516 (font_delete_unmatched): Return a newly created list.
11517 (font_list_entities): Fix previous change. Call font_add_log.
11518 (font_matching_entity, font_open_entity, font_close_entity):
11519 Call font_add_log.
11520 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11521 (Finternal_set_font_style_table): Delete.
11522 (BUILD_STYLE_TABLE): New macro.
11523 (build_style_table): New function.
11524 (Vfont_log, font_log_env_checked): New variables.
11525 (font_add_log): New function.
11526 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11527 Declare Lisp variables "font-weight-table", "font-slant-table",
11528 "font-width-table", and "font-log". Initialize font_style_table.
11529
115302008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11531
11532 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11533
115342008-05-21 Seiji Zenitani <zenitani@mac.com>
11535 Ryo Yoshitake <ryo@shiftmode.net>
11536
11537 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11538 (Vframe_alpha_lower_limit): New variable.
11539 (x_set_alpha): New function.
11540
11541 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11542
11543 * xfns.c (x-create-frame, Qalpha):
11544 Initialize the frame parameter `alpha'.
11545 * xterm.c (OPAQUE, OPACITY): New.
11546 (x_set_frame_alpha): New function.
11547 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11548
11549 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11550 * w32fns.c (w32_frame_parm_handlers): Likewise.
11551
115522008-05-20 Jason Rumney <jasonr@gnu.org>
11553
11554 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11555 truetype fonts to opentype list.
11556
115572008-05-20 Juanma Barranquero <lekktu@gmail.com>
11558
11559 * fontset.c (Ffontset_info): Doc fix.
11560 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11561 <ignore-relative-composition>: Fix typos in docstrings.
11562
11563 * font.c (syms-of-font) <font-encoding-alist>:
11564 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11565 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11566 (Ffont_otf_alternates): Doc fixes.
11567
115682008-05-20 Kenichi Handa <handa@m17n.org>
11569
11570 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11571 font.h through out the file.
11572 (FONT_DRIVERS): Rename from FONTOBJ.
11573 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11574 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11575
11576 * emacs.c (main): Call syms_of_font unconditionally.
11577
11578 * font.h (find_font_encoding): Extern it.
11579
11580 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11581 fontset.c.
194d44e7 11582 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11583 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11584 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11585 only when HAVE_WINDOW_SYSTEM is defined.
11586 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11587 when HAVE_WINDOW_SYSTEM is defined.
11588
11589 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11590 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11591
11592 * xfaces.c: Include font.h unconditionally.
11593 (merge_face_ref, merge_face_vectors)
11594 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11595
115962008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11597
11598 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11599 indirect_variable.
11600 * eval.c (lisp_indirect_variable): New fun.
11601 (Fuser_variable_p): Use it.
11602
116032008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11604
11605 * lisp.h (indirect_variable):
11606 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11607 Use Lisp_Symbol pointers rather than Lisp_Object.
11608 Adjust callers.
11609 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11610 To this end, change calling-convention.
11611
11612 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11613 if some non-hidden buffers are selected by string&pred.
11614
116152008-05-19 Chong Yidong <cyd@stupidchicken.com>
11616
11617 * process.c (wait_reading_process_output): Always check status
11618 when in batch mode.
11619
116202008-05-19 Kenichi Handa <handa@m17n.org>
11621
11622 * font.c (font_list_entities): Fix handling of cache.
11623 (font_matching_entity): Likewise.
11624
11625 * ftfont.c (cs_iso8859_1): Delete.
11626 (ft_face_cache): New variable.
11627 (struct ftfont_info): New member fc_charset_idx.
11628 (ftfont_build_basic_charsets): Delete.
11629 (fc_charset_table): New variable.
11630 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11631 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11632 Callers changed.
11633 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11634 (ftfont_spec_pattern): New argument fc_charset_idx.
11635 Check registry more rigidly. Change callers.
11636 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11637 change of :font-entity property of the font.
11638
11639 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11640 property of the font.
11641
116422008-05-18 Juanma Barranquero <lekktu@gmail.com>
11643
11644 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11645 (Funencodable_char_position, Fcheck_coding_systems_region)
11646 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11647 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11648 (Ffind_operation_coding_system, Fset_coding_system_priority)
11649 (Fcoding_system_eol_type): Doc fixes.
11650
116512008-05-17 Glenn Morris <rgm@gnu.org>
11652
11653 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11654
116552008-05-16 Eli Zaretskii <eliz@gnu.org>
11656
11657 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11658 and st_gid.
11659
11660 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11661 HAVE_WINDOW_SYSTEM is not defined.
11662
11663 * xfaces.c (merge_face_ref, merge_face_vectors)
11664 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11665 HAVE_WINDOW_SYSTEM is defined.
11666 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11667
116682008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11669
11670 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11671
116722008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11673
11674 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11675
116762008-05-15 Kenichi Handa <handa@m17n.org>
11677
11678 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11679 preference.
11680
116812008-05-15 Glenn Morris <rgm@gnu.org>
11682
11683 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11684
116852008-05-15 Chong Yidong <cyd@stupidchicken.com>
11686
11687 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11688 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11689
11690 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11691
116922008-05-15 Kenichi Handa <handa@m17n.org>
11693
11694 * ftfont.c (ftfont_list): Downcase family name to check generic
11695 families.
11696
11697 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11698 font-spec for QCfont value.
11699
11700 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11701 buffer. Check the return value of it.
11702
117032008-05-14 Jason Rumney <jasonr@gnu.org>
11704
11705 * w32term.c (w32_get_glyph_overhangs): Remove.
11706 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11707
117082008-05-14 Kenichi Handa <handa@m17n.org>
11709
11710 * font.c (font_prop_validate): Make nil a valid value.
11711 (font_clear_cache): Check if the cached vector of entities is nil
11712 or not.
11713
117142008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11715
11716 * emacs.c (main_thread): Conditionalize on
11717 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11718 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11719
11720 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11721 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11722 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11723
117242008-05-14 Kenichi Handa <handa@m17n.org>
11725
11726 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11727 has no corresponding coding system.
11728
117292008-05-14 Jason Rumney <jasonr@gnu.org>
11730
11731 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11732
11733 * w32font.h (w32font_open_internal): Update declaration.
11734
11735 * w32font.c (w32font_open_internal): Change last argument from
11736 w32font_info struct to font object. Fill in font object from
11737 font_entity. Get Outline metrics if possible. Use them to
11738 calculate underline position and thickness. Use xlfd name as name
11739 property. Don't set codepage.
11740 (w32font_open): Pass font_object to w32font_open_internal. Don't
11741 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11742 (w32font_draw): Use s->font.
11743 (clear_cached_metrics): Don't clear non-existent blocks.
11744
11745 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11746 font was not found.
11747 (x_draw_glyph_string): Use underline position and thickness from font.
11748
11749 * w32uniscribe.c (uniscribe_open): Pass font_object to
11750 w32font_open_internal.
11751
117522008-05-14 Kenichi Handa <handa@m17n.org>
11753
11754 These changes are to delete all legacy font-handling codes, and
11755 make Emacs use only font-backends.
11756
11757 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11758 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11759
11760 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11761
11762 * charset.h (Vcharset_non_preferred_head)
11763 (Vcurrent_iso639_language): Extern them.
11764
11765 * charset.c (Vcharset_non_preferred_head): New variable.
11766 (Vcurrent_iso639_language): New variable.
11767 (syms_of_charset): Declare it as a Lisp variable.
11768 (char_charset): Don't check non preferred charsets. As a last
11769 resort, return charset_unicode.
11770 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11771
11772 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11773 conditionals. Don't check enable_font_backend. Delete all codes
11774 used only when USE_FONT_BACKEND is not defined.
11775
11776 * dispextern.h (struct glyph_string): Change type of `font' to
11777 `struct font *'.
11778 (struct glyph_string): New member underline_position and
11779 underline_thickness.
11780 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11781 (struct face): Change type of `font' to `struct font *'. Remove
11782 members `font_name', `font_info_id'.
11783 (per_char_metric, encode_char): Delete externs.
11784 (calc_pixel_width_or_height): Adjust the prototype.
11785
11786 * emacs.c (enable_font_backend): Delete extern.
11787 (main): Don't set enable_font_backend. Don't check the command
11788 line argument "-disable-font-backend".
11789
11790 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11791 (enum font_property_index): New members FONT_DPI_INDEX,
11792 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11793 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11794 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11795 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11796 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11797 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11798 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11799 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11800 (struct font_spec, struct font_entity): New structs.
11801 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11802 (struct font): Many members from old "struct font_info" moved to
11803 here. Members font and entity deleted.
11804 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11805 the new font-related objects.
11806 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11807 (CHECK_FONT_GET_OBJECT): Likewise.
11808 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11809 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11810 (struct font_driver): New members case_sensitive anc check. Type
11811 of the member list and open changed.
11812 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11813 (font_symbolic_width, font_find_object, font_get_spec)
11814 (font_set_lface_from_name): Delete extern.
11815 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11816
11817 * font.c: Include <strings.h>.
11818 (enable_font_backend): Delete it.
11819 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11820 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11821 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11822 (null_string): Delete it.
11823 (null_vector): Make it static.
11824 (font_family_alist): Delete it.
11825 (Qnormal): Extern it.
11826 (QCextra, QClanguage): Delete it.
11827 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11828 (font_make_spec, font_make_entity, font_make_object)
11829 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11830 the string. Callers changed.
11831 (font_pixel_size): Adjusted for the format change of font-related
11832 objects.
11833 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11834 (font_style_to_value, font_style_symbolic): New function.
11835 (build_font_family_alist): Delete it.
11836 (font_registry_charsets): Use Fassoc_string instead of
11837 assq_no_quit.
11838 (font_prop_validate_symbol): Don't return null_string.
11839 (font_prop_validate_style): Adjusted for the change of
11840 style-related values in a font vector.
11841 (font_property_table): Delete entries for QClanguage and
11842 QCantialias, add entries for QCavgwidth.
11843 (get_font_prop_index): Delete the 2nd argument FROM.
11844 (font_prop_validate): Arguments changed.
11845 (font_put_extra): Adjusted for the change of font-related objects.
11846 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11847 (font_parse_fcname, font_unparse_fcname)
11848 (font_prepare_composition): Likewise.
11849 (font_parse_family_registry): Renamed from font_merge_old_spec.
11850 (otf_open): Delete the 1st arg entity.
11851 (font_otf_capability): Adjusted for the above change.
11852 (font_score): New arg alternate_families. Adjusted for the change
11853 of font-related objects.
11854 (font_sort_entites): New arg best_only.
11855 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11856 Delete them.
11857 (font_match_p): Check alternate families.
11858 (font_find_object): Delete it.
11859 (font_check_object): New function.
11860 (font_clear_cache): Adjusted for the change of font-related objects.
11861 (font_delete_unmatched): New arg.
11862 (font_list_entities): Call font_driver->list with a spec that
11863 doesn't specify style-related properties.
11864 (font_matching_entity): Arguments changed. Caller changed.
11865 (font_open_entity): Adjusted for the change of font-related objects.
11866 (font_close_object, font_has_char, font_encode_char)
11867 (font_get_name, font_get_spec): Likewise.
11868 (font_spec_from_name, font_clear_prop, font_update_lface):
11869 New functions.
11870 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11871 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11872 (font_at): Adjusted for the change of font-related objects.
11873 (font_range): New function.
11874 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11875 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11876 (Fcopy_font_spec, Fmerge_font_spec): New function.
11877 (Ffont_family_list): Renamed from list-families.
11878 (Finternal_set_font_style_table): Arguments changed.
11879 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11880 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11881 change of font-related objects.
11882 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11883
11884 * fontset.h (struct font_info): Delete it. Most members go to
11885 struct font.
11886 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11887 (enum FONT_SPEC_INDEX): Delete it.
11888 (font_info, list_fonts_func, load_font_func, query_font_func)
11889 (set_frame_fontset_func, find_ccl_program_func)
11890 (get_font_repertory_func, new_fontset_from_font_name): Delete
11891 externs.
11892 (fontset_from_font_name): Extern it.
11893 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11894 (FONT_INFO_FROM_FACE): Deleted.
11895 (face_for_font): Adjust prototype.
11896
11897 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11898 conditionals. Don't check enable_font_backend. Delete all codes
11899 used only when USE_FONT_BACKEND is not defined.
11900 (get_font_info_func, list_font_func, load_font_func)
11901 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11902 (get_font_repertory_func): Delete them.
11903 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11904 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11905 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11906 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11907 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11908 (fontset_compare_rfontdef): New function.
11909 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11910 rfont-defs by qsort. Adjusted for the change of font-group vector.
11911 (load_font_get_repertory): Deleted.
11912 (fontset_find_font): Use new macros to ref/set elements of
11913 font-def and rfont-def.
11914 (fontset_font): Fix the timing of remembering that no font for C.
11915 (free_face_fontset): Do nothing if the face has no fontset.
11916 (face_suitable_for_char_p): Use new macros to ref/set elements of
11917 rfont-def.
11918 (face_for_char): Likewise. Call face_for_char with font_object.
11919 (fs_load_font): Delete. Delete #pragma surrounding it.
11920 (fs_query_fontset): Use strcasecmp instead of strcmp.
11921 (generate_ascii_font_name): Adjusted for the format change of
11922 font-spec.
11923 (Fset_fontset_font): Likewise. Use new macros to set elements of
11924 font-def.
11925 (Fnew_fontset): Use font_unparse_xlfd to generate
11926 FONTSET_ASCII (fontset).
11927 (new_fontset_from_font_name): Deleted.
11928 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11929 a fontset is already created for the font. FIx updating of
11930 Vfontset_alias_alist.
11931 (fontset_ascii_font): Deleted.
11932 (Ffont_info): Adjusted for the format change of font-spec.
11933 (Finternal_char_font): Likewise.
11934 (Ffontset_info): Likewise.
11935 (syms_of_fontset): Don't check load_font_func.
11936
11937 * fns.c (internal_equal): Handle PREV_FONT.
11938
11939 * frame.h: Delete USE_FONT_BACKEND conditional.
11940
11941 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11942 conditionals. Don't check enable_font_backend. Delete all codes
11943 used only when USE_FONT_BACKEND is not defined.
11944 (x_set_font): Call x_new_font, not x_new_fontset2.
11945 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11946 already set for the frame.
11947
11948 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11949 a font-entity by font_make_entity. Use font_intern_prop instead
11950 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11951 font property. If a font is scalable, set avgwidth property to 0.
11952 Set font-entity property by font_put_extra.
11953 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11954 (ffont_driver): Adjusted for the change of struct font_driver.
11955 (ftfont_spec_pattern): New function.
11956 (ftfont_list): Return a list, not vector.
11957 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11958 (ftfont_list_family): Don't downcase names.
11959 (ftfont_free_entity): Deleted.
11960 (ftfont_open): Return a font-object. Adjusted for the change of
11961 struct font. Get underline_thickness and underline_position from
11962 font property. Don't update dpyinfo->smallest_font_height and
11963 dpyinfo->smallest_char_width.
11964 (ftfont_close): Don't free `struct font'.
11965 (ftfont_has_char): Adjusted for the format change of font-entity.
11966 (ftfont_encode_char, ftfont_text_extents): Likewise.
11967
11968 * ftxfont.c (ftxfont_list): Return a list, not vector.
11969 (ftxfont_open): Return a font-object. Adjusted for the change of
11970 struct font. Get underline_thickness and underline_position from
11971 font property. Don't update dpyinfo->smallest_font_height and
11972 dpyinfo->smallest_char_width.
11973 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11974 (ftxfont_draw): Adjusted for the change of struct font.
11975
11976 * image.c (image_ascent): Don't include "charset.h". Include
11977 "character.h" and "font.h".
11978
11979 * lisp.h (enum pvec_type): New member PREV_FONT.
11980 (Fassoc_string): EXFUN it.
11981
11982 * print.c: Include font.h.
11983 (print_object): Handle font-related objects.
11984
11985 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11986 conditionals. Don't check enable_font_backend. Delete all codes
11987 used only when USE_FONT_BACKEND is not defined.
11988 (handle_auto_composed_prop): Do nothing if it->f is not on a
11989 window system. Check how many following characters can be
11990 displayed by the same font.
11991 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11992 'struct font *'.
11993 (get_char_face_and_encoding): Assign the whole encoding task to
11994 the `encode-char' method of a font driver.
11995 (fill_composite_glyph_string): Adjusted for the change of `struct
11996 face' and `struct glyph_string'.
11997 (fill_glyph_string): Likewise.
11998 (get_per_char_metric): Arguments changed.
11999 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
12000 and `struct glyph_string'.
12001 (produce_stretch_glyph, calc_line_height_property)
12002 (x_produce_glyphs): Likewise.
12003
12004 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
12005 conditionals. Don't check enable_font_backend. Delete all codes
12006 used only when USE_FONT_BACKEND is not defined. Use
12007 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
12008 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
12009 (Qp): Extern them.
12010 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
12011 Deleted.
12012 (struct font_name): Deleted.
12013 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
12014 (compare_fonts_by_sort_order): New function.
12015 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
12016 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
12017 Deleted.
12018 (Fx_family_fonts): Use font_list_entities, and sort fonts by
12019 compare_fonts_by_sort_order.
12020 (Fx_font_family_list): Call Ffont_family_list.
12021 (face_numeric_value, face_numeric_weight, face_numeric_slant)
12022 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
12023 (face_symbolic_slant, face_symbolic_swidth)
12024 (split_font_name_into_vector, build_font_name_from_vector)
12025 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
12026 (font_rescale_ratio, split_font_name, build_font_name)
12027 (free_font_names, sort_fonts, x_face_list_fonts)
12028 (face_font_available_p, sorted_font_list, cmp_font_names)
12029 (font_list_1, concat_font_list, font_list, remove_duplicates):
12030 Deleted.
12031 (Fx_list_fonts): Use Ffont_list.
12032 (LFACE_AVGWIDTH): Deleted.
12033 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
12034 by FONTP.
12035 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
12036 (set_lface_from_font_name): Delete it.
12037 (set_lface_from_font): Renamed from
12038 set_lface_from_font_and_fontset. Caller changed. Don't set
12039 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
12040 for face.
12041 (merge_face_vectors): Copy font-spec if necessary.
12042 Clear properties of the font-spec if necessary.
12043 (merge_face_ref): Clear properties of the font-spec if necessary.
12044 (Finternal_set_lisp_face_attribute): Likewise.
12045 (set_font_frame_param): Use font_load_for_lface to load a
12046 font-object, and call Fmodify_frame_parameters with it.
12047 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
12048 font name by Ffont_xlfd_name.
12049 (Finternal_lisp_face_attribute_values): Don't check QCweight,
12050 QCslant, and QCwidth.
12051 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
12052 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
12053 Compare fonts by EQ.
12054 (lookup_non_ascii_face): Deleted.
12055 (face_for_font): The 2nd argument changed.
12056 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
12057 Check atomic font properties by case insensitive.
12058 (realize_non_ascii_face): Set face->overstrike correctly.
12059 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
12060 (dump_realized_face): Get font name from
12061 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
12062
12063 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
12064 conditionals. Don't check enable_font_backend. Delete all codes
12065 used only when USE_FONT_BACKEND is not defined.
12066 (xic_create_xfontset): Original code deleted and renamed from
12067 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
12068 (x_make_gc): Don't set GCFont in GCs.
12069 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
12070 opened by "fixed".
12071 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
12072 find_ccl_program_func, query_font_func, set_frame_fontset_func,
12073 get_font_repertory_func.
12074
12075 * xfont.c: Include <stdlib.h> and "ccl.h".
12076 (struct xfont_info): New structure.
12077 (xfont_query_font): Deleted.
12078 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
12079 moved from xterm.c.
12080 (xfont_driver): Adjusted for the change of struct font_driver.
12081 (compare_font_names): New function.
12082 (xfont_list_pattern): Sort font names case insensitively. Make
12083 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
12084 (xfont_list): Return a list, not vector.
12085 (xfont_match): If the font doesn't have QCname property, generate
12086 a name from the other font properties.
12087 (xfont_open): Return a font-object. Adjusted for the change of
12088 struct font. Get underline_thickness and underline_position from
12089 font property. Don't update dpyinfo->smallest_font_height and
12090 dpyinfo->smallest_char_width.
12091 (xfont_close): Don't free struct font.
12092 (xfont_prepare_face): Adjusted for the change of struct font.
12093 (xfont_done_face): Deleted.
12094 (xfont_has_char): Adjusted for the change of struct font.
12095 (xfont_encode_char, xfont_draw): Likewise.
12096 (xfont_check): New function.
12097
12098 * xftfont.c (xftfont_list): Adjusted for the change of `list'
12099 callback function.
12100 (xftfont_match): Adjusted for the format change of font-entity.
12101 (xftfont_open): Adjusted for the format change of font-entity and
12102 font-object. Adjusted for the change of struct font. Return a
12103 font-object. Don't update dpyinfo->smallest_font_height and
12104 dpyinfo->smallest_char_width.
12105 (xftfont_close): Block input while calling XftFontClose.
12106 (xftfont_prepare_face): Don't block input while calling
12107 xftfont_get_colors. Adjusted for the change of struct font.
12108 (xftfont_shape): Return value of error case fixed.
12109
12110 * xrdb.c (x_load_resources): Don't setup a fontset resource.
12111
12112 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
12113 conditionals.
12114 (FONT_WIDTH): Return (f)->max_width.
12115 (struct x_display_info): Delete member `font'.
12116 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
12117 (x_find_ccl_program, x_get_font_repertory): Delete externs.
12118 (struct x_output): Change type of `font' to `struct font *'.
12119
12120 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
12121 conditionals. Don't check enable_font_backend. Delete all codes
12122 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
12123 (x_per_char_metric, x_encode_char): Deleted.
12124 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
12125 (x_compute_glyph_string_overhangs): Adjusted for the change of
12126 `struct face'.
12127 (x_draw_glyph_string_foreground)
12128 (x_draw_composite_glyph_string_foreground): Likewise.
12129 (x_draw_glyph_string): Likewise. Use font->underline_position and
12130 font->underline_thickness.
12131 (x_new_font): Renamed from x_new_fontset2.
12132 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12133 (x_check_font): Call `check' method of a font driver.
12134 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12135 (x_query_font, x_get_font_repertory): Deleted.
12136 (x_find_ccl_program): Renamed and moved to xfont.c.
12137 (x_redisplay_interface): Adjusted for the change of `struct
12138 redisplay_interface'.
12139
12140 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12141 conditionals. Don't check enable_font_backend. Delete all codes
12142 used only when USE_FONT_BACKEND is not defined. Surround non-used
12143 code by "#ifdef OLD_FONT" and "endif".
12144 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12145
12146 * w32font.h (struct w32font_info): New member.
12147 (FONT_COMPAT): New macro.
12148 (w32font_open_internal): Prototype adjusted.
12149
12150 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12151 OLD_FONT" and "endif".
12152
12153 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12154 conditionals. Don't check enable_font_backend. Delete all codes
12155 used only when USE_FONT_BACKEND is not defined.
12156 (w32font_open): Return a font-object. Make a font-object by
12157 font_make_object. Adjusted for the change of struct w32font_info.
12158 (w32font_close): Don't free struct font. Adjusted for the change
12159 of struct w32font_info.
12160 (w32font_encode_char, w32font_text_extents, w32font_draw):
12161 Adjusted for the change of struct w32font_info.
12162 (w32font_draw): Likewise.
12163 (w32font_list_internal): Return a list, not vector.
12164 (w32font_open_internal): Change the 4th arg to font-object.
12165 Adjusted for the change of struct w32font_info and font-object format.
12166 (add_font_name_to_list): Don't downcase names.
12167 (w32_enumfont_pattern_entity): Make a font-entity by
12168 font_make_entity. Adjusted for the format change of font-entity.
12169 Use FONT_SET_STYLE to set a style-related font property. If a
12170 font is scalable, set avgwidth property to 0. Set font-entity
12171 property by font_put_extra.
12172 (font_matches_spec): Adjusted for the format change of font-entity.
12173 (w32_weight_table, w32_decode_weight): New variables.
12174 (w32_encode_weight): New function.
12175 (fill_in_logfont): Adjusted for the format change of font-spec.
12176 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12177 weight value.
12178 (w32font_driver): Adjusted for the change of struct font_driver.
12179
12180 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12181 conditionals. Don't check enable_font_backend. Surround non-used
12182 code by "#ifdef OLD_FONT" and "endif".
12183 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12184 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12185
12186 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12187 conditionals. Don't check enable_font_backend. Delete all codes
12188 used only when USE_FONT_BACKEND is not defined. Surround non-used
12189 code by "#ifdef OLD_FONT" and "endif".
12190
12191 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12192 (uniscribe_open): Return value changed to font-object.
12193 Adjusted for the format change of font-object.
12194 (uniscribe_otf_capability): Adjusted for the change of struct font.
12195 (add_opentype_font_name_to_list): Don't downcase names.
12196 (uniscribe_font_driver): Adjusted for the change of struct
12197 font_driver.
12198
121992008-05-13 Chong Yidong <cyd@stupidchicken.com>
12200
12201 * dispnew.c (update_frame_1): Check if tty output is still valid
12202 before flushing it.
12203
122042008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12205
12206 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12207 to Gtk+ menus.
12208
122092008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12210
12211 * dired.c (file_name_completion): Tweak the code so as to always do it
12212 in a single pass. Tighten the scope of some variables.
12213
12214 * dired.c (Qdefault_directory): New var.
12215 (file_name_completion): Use it instead of Fexpand_file_name.
12216 (syms_of_dired): Initialize it.
12217
122182008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * fileio.c (double_dollars): Remove dead code.
12221
122222008-05-10 Eli Zaretskii <eliz@gnu.org>
12223
12224 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12225 Mention w32-get-true-file-attributes in doc string.
12226
12227 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12228
122292008-05-09 Glenn Morris <rgm@gnu.org>
12230
12231 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12232 2008-04-23.
12233
122342008-05-09 Eli Zaretskii <eliz@gnu.org>
12235
12236 Support for reporting owner and group of each file on MS-Windows:
12237 * dired.c (stat_uname, stat_gname): New functions, with special
12238 implementation for w32.
12239 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12240
12241 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12242 (dflt_group_name): New static variable.
12243 (dflt_group): Rename from the_group.
12244 (init_user_info): Init dflt_group fields. Get user's group name
12245 from LookupAccountSid.
12246 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12247 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12248 New initialization states.
12249 (globals_of_w32): Initialize them to zero. Initialize the default
12250 group name to "None".
12251 (GetFileSecurity_Name): New global var, the name of the function
12252 to call for GetFileSecurity.
12253 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12254 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12255 (get_file_security, get_security_descriptor_owner)
12256 (get_security_descriptor_group, is_valid_sid)
12257 (get_file_security_desc, get_rid, get_name_and_id)
12258 (get_file_owner_and_group): New functions.
12259 (stat): Use get_file_security_desc and get_file_owner_and_group to
12260 report the owner and primary group of each file. Don't ignore the
12261 high 32 bits of file's size, now that st_size is 64-bit wide.
12262 Fix test when to get true file attributes.
12263 (init_user_info): Use get_rid instead of equivalent inline code.
12264 (fstat): Don't ignore the high 32 bits of file's size.
12265
122662008-05-09 Chong Yidong <cyd@stupidchicken.com>
12267
12268 * image.c (png_load): Use correct bit-depth for setting background
12269 color.
12270
122712008-05-08 Eli Zaretskii <eliz@gnu.org>
12272
12273 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12274 epa-hook.elc.
12275
122762008-05-08 Juanma Barranquero <lekktu@gmail.com>
12277
12278 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12279
122802008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12281
12282 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12283 because the original parameters are in pure storage now.
12284 (mac_window): Remove unused params. Update callers.
12285
122862008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * lread.c (substitute_object_recurse): Use lower-level primitives.
12289 Don't signal errors when traversing sub-char-tables.
12290 Don't loop over all the possible characters when traversing char-tables.
12291
12292 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12293 just like we do in print.c.
12294
122952008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12296
12297 * minibuf.c (Ftry_completion): Remove code left over from when we used
12298 scmp instead of Fcompare_strings.
12299
123002008-05-04 Juanma Barranquero <lekktu@gmail.com>
12301
12302 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12303
123042008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12305
12306 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12307 Create bitmap context in native byte order.
12308
12309 * macterm.c (XDrawLine)
12310 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12311 context in native byte order.
12312
123132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12314
12315 * config.in: Regenerate.
12316
12317 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12318 New definitions for Image I/O support.
12319 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12320 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12321 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12322 (mac_data_provider_release_data, image_load_image_io)
12323 [USE_MAC_IMAGE_IO]: New functions.
12324 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12325 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12326 (init_image_func_pointer) [MAC_OSX]: Remove function.
12327 (image_load_quartz2d) [MAC_OSX]: Check availability of
12328 CGImageCreateWithPNGDataProvider at compile time.
12329 Use lowercase `false' for boolean constant.
12330 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12331 Use image_load_image_io.
12332 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12333 Don't check MyCGImageCreateWithPNGDataProvider.
12334 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12335 Don't call init_image_func_pointer.
12336
12337 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12338
12339 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12340 Make variable non-static.
12341 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12342 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12343
12344 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12345 (RED_FROM_ULONG): Mask off higher bits.
12346 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12347
12348 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12349 Include AvailabilityMacros.h.
12350 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12351 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12352
123532008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12354
12355 * chartab.c (Fset_char_table_range): If range is t, really set all
12356 chars to that value.
12357
123582008-05-03 Eli Zaretskii <eliz@gnu.org>
12359
12360 * dired.c (Ffile_attributes): Don't allow the device number become
12361 negative.
12362
123632008-05-02 Daiki Ueno <ueno@unixuser.org>
12364
12365 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12366
123672008-05-02 Juri Linkov <juri@jurta.org>
12368
12369 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12370 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12371 DEFAULT argument as a list of default values in docstrings.
12372
123732008-05-01 Chong Yidong <cyd@stupidchicken.com>
12374
12375 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12376
123772008-05-01 Martin Rudalics <rudalics@gmx.at>
12378
12379 * dispnew.c (change_frame_size_1): Preserve small windows when
12380 shrinking frames by calling set_window_height|width with third
12381 arg 2.
12382
12383 * window.h (struct window): Replace field too_small_ok by field
12384 resize_proportionally.
12385
12386 * window.c (make_window): Initialize resize_proportionally.
12387 (enlarge_window): Temporarily set resize_proportionally to make
12388 sure that shrink_windows does scale the window proportionally.
12389 (shrink_windows): When window has resize_proportionally set try
12390 to shrink it proportionally by stealing from other windows.
12391 (struct saved_window, Fset_window_configuration)
12392 (compare_window_configurations): Handle resize_proportionally.
12393 (WINDOW_TOTAL_SIZE): New macro.
12394 (window_min_size, shrink_windows, size_window): Use it.
12395 (check_min_window_sizes): Remove. Invalid values of
12396 window-min-height|width are handled by window_min_size_2 now.
12397 (size_window, Fsplit_window, enlarge_window)
12398 (adjust_window_trailing_edge, grow_mini_window): Don't call
12399 check_min_window_sizes.
12400 (window_min_size_2, window_min_size_1, window_min_size):
12401 New argument safe_p for retrieving "safe" minimum sizes.
12402 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12403 (adjust_window_trailing_edge, grow_mini_window):
12404 Adjust arguments of window_min_size... functions.
12405 (shrink_windows): Argument min_size removed. New argument
12406 safe_p allows shrinking windows to their safe minimum sizes.
12407 Calculate minimum size and decide whether a window shall be
12408 deleted for each window individually.
12409 (size_window): When nodelete_p equals 2, tell shrink_windows to
12410 delete windows only if their new minimum size is no more safe.
12411 (shrink_window_lowest_first): Call window_min_size_1 to make
12412 sure to preserve modeline of bottom-most window when resizing
12413 the minibuffer.
12414 (Fset_window_configuration, Fcurrent_window_configuration)
12415 (compare_window_configurations): Do not handle
12416 window-min-height|width any more.
12417 (syms_of_window): Clarify window-min-height|width doc-strings.
12418
124192008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12420
12421 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12422 some more. Copy some of the code from Ftry_completions.
12423 Remove special case code that dates back to initial revision when the
12424 slash was only added when necessary and that can't trigger nowadays.
12425
124262008-04-27 Kenichi Handa <handa@m17n.org>
12427
12428 * font.c (font_prop_validate): Signal `error' instead of `font'.
12429
124302008-04-29 Jason Rumney <jasonr@gnu.org>
12431
12432 * w32fns.c (Fw32_battery_status): New defun.
12433 (syms_of_w32fns): Defsubr it.
12434
124352008-04-28 Andreas Schwab <schwab@suse.de>
12436
12437 * dired.c (file_name_completion): Fix another mixing of encoded
12438 and decoded names.
12439
124402008-04-28 Juanma Barranquero <lekktu@gmail.com>
12441
12442 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12443
124442008-04-27 Juanma Barranquero <lekktu@gmail.com>
12445
12446 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12447
124482008-04-27 Andreas Schwab <schwab@suse.de>
12449
12450 * dired.c (file_name_completion): Fix inappropriate mixing of
12451 encoded and decoded names.
12452
12453 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12454
12455 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12456
124572008-04-26 Eli Zaretskii <eliz@gnu.org>
12458
12459 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12460 2008-03-31, it's not needed anymore with `struct stat' definition
12461 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12462 for the same reasons.
12463
124642008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12465
12466 * m/sparc.h: Additional redefinitions for GNU/Linux.
12467
124682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12469
12470 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12471 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12472 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12473 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12474 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12475 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12476 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12477 Likewise.
12478
12479 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12480 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12481 (mac_ax_number_of_characters): Add externs.
12482 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12483 [USE_MAC_TSM]: Likewise.
12484 (mac_handle_text_input_event) [MAC_OSX]:
12485 Handle kEventTextInputOffsetToPos for no active input area case.
12486 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12487 (mac_handle_document_access_event)
12488 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12489 (install_application_handler) [MAC_OSX]: Register handlers for
12490 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12491 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12492 Register mac_handle_document_access_event.
12493
12494 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12495 Make functions non-static.
12496
124972008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12498
12499 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12500 (read_file_name_completion_ignore_case, insert_default_directory)
12501 (Qdefault_directory): Move to minibuffer.el.
12502 (Fread_file_name): Call the new `read-file-name' instead.
12503
125042008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12505
12506 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12507 Make function non-static.
12508 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12509 Remove function.
12510 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12511 Move to mactoolbox.c.
12512 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12513
12514 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12515 (mac_rect_make): New macro.
12516
12517 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12518 instead of float.
12519 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12520 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12521 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12522 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12523 CGRectMake.
12524 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12525 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12526 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12527 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12528 instead of WindowRef in argument type.
12529 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12530 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12531 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12532 instead of DISPLAY. All uses changed.
12533 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12534 (x_calc_absolute_position): Simplify so as not to use
12535 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12536
12537 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12538 instead of WindowRef in argument type.
12539 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12540 [TARGET_API_MAC_CARBON]: Remove externs.
12541 (create_apple_event, mac_event_parameters_to_lisp)
12542 [TARGET_API_MAC_CARBON]: Add externs.
12543
12544 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12545 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12546 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12547 is clicked.
12548 (x_activate_menubar): Remove extern for saved_menu_event_location.
12549 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12550 Move from mac.c.
12551
125522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12553
12554 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12555 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12556
125572008-04-23 Jason Rumney <jasonr@gnu.org>
12558
12559 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12560 attributes only for local files.
12561
12562 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12563 default to Qlocal.
12564
125652008-04-22 Juri Linkov <juri@jurta.org>
12566
12567 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12568 read-buffer-to-switch instead of using the letter "B".
12569
125702008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12571
12572 * fileio.c (Qdefault_directory): New variable.
12573 (Fread_file_name): Use it to pass `dir' to the completion functions.
12574
125752008-04-20 Chong Yidong <cyd@stupidchicken.com>
12576
12577 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12578
125792008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12580
12581 * keyboard.c (Vpre_help_message): Remove.
12582 (show_help_echo): Remove default C code.
12583
12584 * dired.c (directory_files_internal, file_name_completion):
12585 Only call ENCODE_FILE if the string is indeed decoded.
12586
125872008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12588
12589 * Makefile.in (TOOLKIT_DEFINES): Remove.
12590 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12591
125922008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12593
12594 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12595 (mactoolbox.o): New target.
12596
12597 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12598 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12599
12600 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12601 Use mac_set_frame_window_background instead of XSetWindowBackground.
12602 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12603 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12604 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12605 instead of SetWindowTitleWithCFString.
12606 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12607 Move function to mactoolbox.c.
12608 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12609 Use mac_set_window_modified instead of SetWindowModified.
12610 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12611 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12612 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12613 FrontNonFloatingWindow. Use mac_activate_window instead of
12614 ActivateWindow. Use mac_active_non_floating_window instead of
12615 ActiveNonFloatingWindow.
12616 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12617 Use mac_show_hourglass and mac_hide_hourglass.
12618 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12619 instead of GetGlobalMouse.
12620 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12621 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12622 Use mac_bring_window_to_front instead of BringToFront.
12623 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12624 mactoolbox.c.
12625 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12626 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12627 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12628 mactoolbox.c.
12629
12630 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12631 (XtPointer): Move typedef from macmenu.c.
12632 (enum button_type): Move enum from macmenu.c.
12633 (widget_value): Move typedef from macmenu.c.
12634 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12635 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12636 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12637 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12638 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12639 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12640 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12641 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12642 (Selection): Move typedef from macselect.c.
12643 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12644 macterm.c.
12645 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12646 (mac_is_window_collapsed, mac_bring_window_to_front)
12647 (mac_send_window_behind, mac_hide_window, mac_show_window)
12648 (mac_collapse_window, mac_front_non_floating_window)
12649 (mac_active_non_floating_window, mac_activate_window)
12650 (mac_move_window_structure, mac_move_window, mac_size_window)
12651 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12652
12653 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12654 (enum mac_menu_kind): Move enum to mactoolbox.c.
12655 (min_menu_id): Move variable to mactoolbox.c.
12656 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12657 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12658 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12659 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12660 [TARGET_API_MAC_CARBON]: Likewise.
12661 (XtPointer): Move typedef to macgui.h.
12662 (enum button_type): Move enum to macgui.h.
12663 (widget_value): Move typedef to macgui.h.
12664 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12665 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12666 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12667 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12668 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12669 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12670 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12671 (popup_activated_flag): Make variable non-static.
12672 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12673 (add_menu_item, fill_menu, dispose_menus):
12674 Move functions to mactoolbox.c.
12675 (restore_show_help_function, menu_target_item_handler)
12676 (install_menu_target_item_handler, mac_handle_dialog_event)
12677 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12678 [TARGET_API_MAC_CARBON]: Likewise.
12679 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12680 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12681 (find_and_call_menu_selection, name_is_separator): Make function
12682 non-static.
12683 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12684 to mactoolbox.c.
12685 (set_frame_menubar): Don't call install_menu_quit_handler.
12686 (menu_item_selection): New variable.
12687 (mac_menu_show): Use create_and_show_popup_menu.
12688 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12689 selection but set variable menu_item_selection. All uses changed.
12690 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12691 Call install_menu_quit_handler. Move to mactoolbox.c.
12692
12693 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12694 (Selection): Move typedef to macgui.h.
12695 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12696 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12697 Make variables non-static.
12698 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12699 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12700 Make functions non-static.
12701 (Vmac_service_selection) [MAC_OSX]: Likewise.
12702 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12703 (mac_valid_selection_target_p, mac_clear_selection)
12704 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12705 (mac_put_selection_value, mac_selection_has_target_p)
12706 (mac_get_selection_value, mac_get_selection_target_list)
12707 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12708 Move functions to mactoolbox.c.
12709 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12710 Likewise.
12711 (copy_scrap_flavor_data, mac_handle_service_event)
12712 (install_service_handler) [MAC_OSX]: Likewise.
12713 (syms_of_macselect) <Vmac_dnd_known_types>:
12714 Use mac_dnd_default_known_types.
12715
12716 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12717 Move to mactoolbox.c.
12718 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12719 (Fx_selection_owner_p): Add EXFUN.
12720 (install_window_handler, remove_window_handler, XSetWindowBackground):
12721 Remove externs.
12722 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12723 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12724 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12725 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12726 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12727 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12728 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12729 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12730 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12731 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12732 (mac_valid_selection_target_p, mac_clear_selection)
12733 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12734 (mac_put_selection_value, mac_selection_has_target_p)
12735 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12736 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12737 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12738 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12739 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12740 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12741 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12742 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12743 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12744
12745 * mactoolbox.c: New file.
12746
127472008-04-18 Jason Rumney <jasonr@gnu.org>
12748
12749 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12750
127512008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * character.c (Fmultibyte_char_to_unibyte):
12754 Return latin1 chars unchanged.
12755
12756 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12757 relocated if it points to `name'.
12758
127592008-04-17 Kenichi Handa <handa@m17n.org>
12760
12761 * data.c (Faset): Allow setting a multibyte character in an
12762 ASCII-only unibyte string.
12763
12764 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12765
127662008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12767
12768 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12769 done in config.h.
12770
127712008-04-16 Juanma Barranquero <lekktu@gmail.com>
12772
12773 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12774 (Fchar_direction): Add usage in the docstring.
12775
127762008-04-15 Chong Yidong <cyd@stupidchicken.com>
12777
12778 * keyboard.c (read_key_sequence): Remove always-true checks.
12779
127802008-04-14 Jason Rumney <jasonr@gnu.org>
12781
12782 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12783 compatibility struct, for better underline positioning.
12784
127852008-04-13 David Hansen <david.hansen@gmx.net>
12786
12787 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12788 string.
12789
127902008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12791
12792 * m/hp800.h (XUINT, XSET): Remove.
12793
127942008-04-12 Juanma Barranquero <lekktu@gmail.com>
12795
12796 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12797 previous change.
12798
127992008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12800
12801 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12802 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12803
128042008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12805
12806 * keymap.h (map_keymap_canonical): Declare.
12807 * xmenu.c (single_keymap_panes): Use it.
12808
128092008-04-11 Glenn Morris <rgm@gnu.org>
12810
12811 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12812 set the target's value to that of the alias.
12813
128142008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12815
12816 * term.c (set_tty_color_mode): Left over typo.
12817
128182008-04-10 Michael Albinus <michael.albinus@gmx.de>
12819
12820 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12821 only after check for file name handler functions. Signal, when
12822 native functionality is not supported.
12823 (syms_of_fileio): Declare it unconditionally.
12824
128252008-04-10 Jason Rumney <jasonr@gnu.org>
12826
12827 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12828 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12829
12830 * w32.c (logon_network_drive): Also logon to remote drives that
12831 are mapped to drive letters.
12832
128332008-04-10 Glenn Morris <rgm@gnu.org>
12834
12835 * xdisp.c (truncate-partial-width-windows): Doc fix.
12836
128372008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12838
12839 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12840 Move functions to minibuffer.el.
12841 (syms_of_fileio): Don't declare them.
12842
128432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12844
12845 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12846 (syms_of_minibuf): Remove its initialization.
12847
12848 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12849
128502008-04-09 Juanma Barranquero <lekktu@gmail.com>
12851
12852 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12853
128542008-04-09 Jason Rumney <jasonr@gnu.org>
12855
12856 * makefile.w32-in (distclean): Delete makefile too.
12857 (maintainer-clean): New target.
12858
12859 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12860
12861 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12862 for new font backend and composite cases.
12863
128642008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12865
12866 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12867 Most of the code moved to run_timers.
12868 (do_pending_atimers): Call run_timers.
12869 (run_timers): New function.
12870
12871 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12872 run atimers.
12873
12874 * process.c (wait_reading_process_output): The same as above.
12875
128762008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12877
12878 * minibuf.c (last_exact_completion): Remove variable.
12879 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12880 (complete_and_exit_1, complete_and_exit_2)
12881 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12882 (Fdisplay_completion_list, display_completion_list_1)
12883 (Fminibuffer_completion_help, Fself_insert_and_exit)
12884 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12885 minibuffer.el.
12886 (syms_of_minibuf): Remove corresponding initializations.
12887
12888 * keyboard.c (Qdeactivate_mark): New var.
12889 (command_loop_1): Use it to call `deactivate-mark'.
12890 (syms_of_keyboard): Initialize it.
12891
12892 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12893 to another frame.
12894 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12895 Don't call set_tty_color_mode.
12896 (store_frame_param): Reset previous_frame rather than call
12897 set_tty_color_mode.
12898 * term.c (set_tty_color_mode): Rewrite.
12899 * dispextern.h (set_tty_color_mode): New type.
12900 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12901
129022008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12903
12904 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12905 for generic chars, which do not exist any more in emacs-unicode.
12906
129072008-04-08 Michael Albinus <michael.albinus@gmx.de>
12908
12909 * coding.c (detect_coding_emacs_mule)
12910 (Ffind_operation_coding_system): Fix typo.
12911
129122008-04-08 Jason Rumney <jasonr@gnu.org>
12913
12914 * w32uniscribe.c (SNAME): Extract only symbol name.
12915
12916 * w32font.h (struct w32_metric_cache): New struct.
12917 (w32font_info): Use it.
12918 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12919 (CACHE_BLOCKSIZE): New constants.
12920
12921 * w32font.c (Qja, Qko, Qzh): New symbols.
12922 (syms_of_w32font): Initialise them.
12923 (font_matches_spec): Use them to filter by language.
12924 (recompute_cached_metrics): Remove function.
12925 (compute_metrics, clear_cached_metrics): New functions.
12926 (w32font_encode_char): Use them to manage metric cache.
12927 (w32font_text_extents): Cache metrics for all glyphs on demand.
12928 Delay converting glyph indices to WORD until needed.
12929 (w32font_open_internal): Initialize metric cache to empty.
12930 (registry_to_w32_charset): Charset should always be a symbol.
12931 (fill_in_logfont, list_all_matching_fonts): Family should
12932 always be a symbol.
12933
129342008-04-06 Jason Rumney <jasonr@gnu.org>
12935
12936 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12937 Give up if glyph indices not supported. Use uniscribe obtained
12938 ABC widths for individual metrics. Map glyph clusters back to
12939 characters using fClusterStart flag. Return number of glyphs
12940 produced, not chars processed.
12941 (uniscribe_shape): Map char at FROM to current glyph.
12942
129432008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12944
12945 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12946 Use SetMenuItemHierarchicalMenu.
12947
129482008-04-05 Jason Rumney <jasonr@gnu.org>
12949
12950 * image.c (pbm_load): Allow color values up to 65535.
12951 Throw an error if max_color_idx is outside the supported range.
12952 Report an error when image size is invalid.
12953 Read two bytes at a time when raw images have max_color_idx above 255.
12954
129552008-04-05 Eli Zaretskii <eliz@gnu.org>
12956
12957 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12958 cFileName a file name that includes `?' characters, use the 8+3
12959 alias in cAlternateFileName instead.
12960
129612008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12962
12963 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12964 append "CCL: Quitted" when the CCL program is quitted.
12965 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12966
12967 * ccl.h (struct ccl_program): New member quit_silently.
12968
129692008-04-05 Chong Yidong <cyd@stupidchicken.com>
12970
12971 * search.c (compile_pattern_1): Treat non-nil and non-string of
12972 search-spaces-regexp as nil.
12973
12974 * minibuf.c (Fassoc_string): Tweak docstring.
12975
129762008-04-05 Eli Zaretskii <eliz@gnu.org>
12977
12978 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12979 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12980 2008-03-14 to force inode be positive.
12981
12982 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12983 _S_* ones, since we now use our own sys/stat.h.
12984 (stat, fstat): Don't mangle the inode number.
12985 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12986
129872008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12988
12989 * frame.h (struct frame): Give one more bit to `visible' since we use
12990 values larger than 1 to indicate obscured frames on ttys.
12991
12992 * keymap.c (Qkeymap_canonicalize): New var.
12993 (Fmap_keymap_internal): New fun.
12994 (describe_map): Use keymap-canonicalize.
12995
12996 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12997 (Fundo_boundary): Set them.
12998 (syms_of_undo): Initialize them.
12999 (record_point): Use them instead of last_point_position*.
13000 (last_undo_buffer): Change type.
13001
130022008-04-04 Jason Rumney <jasonr@gnu.org>
13003
13004 * w32font.c (w32font_text_extents): Use font's ascent and descent.
13005 (recompute_cached_metrics): Don't set ascent and descent per char.
13006
13007 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
13008 (uniscribe_check_otf): Add GC protection before consing.
13009 Rearrange loop for counting features.
13010
130112008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
13014 buffer with byte-size of source buffer.
13015
130162008-04-03 Chong Yidong <cyd@stupidchicken.com>
13017
13018 * callint.c (Fcall_interactively): Handle temporary region even
13019 when shift-select-mode is off.
13020
130212008-04-03 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
13024
130252008-04-03 Kenichi Handa <handa@m17n.org>
13026
13027 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
13028 (CATEGORY_MASK_UTF_16): Likewise.
13029 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
13030 binary file.
13031 (detect_coding): Add null-byte detection for a binary file.
13032 (detect_coding_system): Likewise.
13033
130342008-04-03 Jason Rumney <jasonr@gnu.org>
13035
13036 * w32uniscribe.c: New file.
13037
13038 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
13039
13040 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
13041
13042 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
13043 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
13044 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
13045 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
13046 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
13047 (Qphonetic): New symbols.
13048 (syms_of_w32font): Initialize them.
13049 (font_supported_scripts): Use them.
13050 (w32font_list_family): List all charsets.
13051 (w32font_text_extents, recompute_cached_metrics): Fix metric
13052 calculations.
13053 (w32_enumfont_pattern_entity): Make full_type a DWORD.
13054 Give opentype fonts their own format.
13055 (font_matches_spec): New arguments backend and logfont.
13056 Handle :otf spec for uniscribe backend.
13057 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
13058 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
13059
13060 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
13061 font backend.
13062 (globals_of_w32fns): Initialize uniscribe font backend.
13063
13064 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
13065 dependencies.
13066 (w32uniscribe.$(O)): New file to build.
13067 (FONT_OBJ): Include w32uniscribe.$(O).
13068 (LIBS): Add uniscribe libraries.
13069
13070 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
13071
130722008-04-02 Chong Yidong <cyd@stupidchicken.com>
13073
13074 * callint.c (Vshift_select_mode): New var.
13075 (Finteractive): Document new ^ spec.
13076 (Fcall_interactively): Call handle-shift-selection if the ^ spec
13077 is present.
13078
13079 * keyboard.c (Vthis_command_keys_shift_translated): New var.
13080 (command_loop_1): Avoid running the direct display versions of
13081 forward-char and backward-char if shift-selection may occur.
13082 (read_key_sequence): Set Vthis_command_keys_shift_translated if
13083 shift-translation takes place.
13084
13085 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
13086 avoid clobbering by define-minor-mode.
13087
13088 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
13089 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
13090
13091 * syntax.c (Fforward_word): Add ^ interactive spec.
13092
13093 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
13094 (Fscroll_right): Add ^ interactive spec.
13095
130962008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
13097
13098 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
13099
13100 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
13101
13102 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
13103
131042008-03-31 Juri Linkov <juri@jurta.org>
13105
13106 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
13107
131082008-03-30 Jan Djärv <jan.h.d@swipnet.se>
13109
13110 * gtkutil.c (xg_set_geometry): Fix indentation.
13111 (xg_resize_outer_widget): Remove.
13112 (x_wm_size_hint_off): Fix indentation.
13113 (xg_frame_set_char_size): Call flush_and_sync after
13114 gtk_window_resize.
13115 (x_wm_set_size_hint): Pass NULL as geometry window to
13116 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
13117 Add menu bar and tool bar height to base height.
13118 (xg_update_frame_menubar, free_frame_menubar)
13119 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13120 (update_frame_tool_bar, free_frame_tool_bar):
13121 Change xg_resize_outer_widget to xg_frame_set_char_size.
13122
131232008-03-30 Michael Albinus <michael.albinus@gmx.de>
13124
13125 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
13126 (Fdbus_call_method): New parameter TIMEOUT.
13127 (dbus-send-signal): Optimize UNGCPRO call.
13128
131292008-03-29 Juri Linkov <juri@jurta.org>
13130
13131 * window.c (Fdisplay_buffer): Move call to
13132 Vsplit_window_preferred_function out of conditions that check
13133 if window is eligible for vertical splitting.
13134 When Vsplit_window_preferred_function is non-nil, call it and use
13135 its non-nil return value as window. Otherwise, continue doing
13136 vertical splitting using Fsplit_window with arg horflag=nil.
13137 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13138 default value from `split-window' to nil.
13139
131402008-03-29 Juri Linkov <juri@jurta.org>
13141
13142 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13143 for interactive code letters 'b' and 'B'.
13144
131452008-03-29 Eli Zaretskii <eliz@gnu.org>
13146
13147 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13148 multibyte string.
13149
131502008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13151
13152 * keyboard.c (pending_funcalls): New var.
13153 (timer_check): Run it.
13154 (syms_of_keyboard): Initialize it.
13155 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13156 (Vdelete_terminal_functions): New vars.
13157 (syms_of_terminal): Initialize them.
13158 (Fdelete_terminal): Run delete-terminal-functions.
13159 * xdisp.c (safe_eval): Rewrite.
13160 (safe_call2): New fun.
13161 * frame.c (Qdelete_frame_functions): New var.
13162 (syms_of_frame): Initialize it.
13163 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13164 * lisp.h (safe_call2, pending_funcalls): Declare.
13165
131662008-03-28 Andreas Schwab <schwab@suse.de>
13167
13168 * indent.c (Fmove_to_column): Move declaration before statements.
13169
131702008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13171
13172 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13173 (struct frame): Use bit fields for boolean vars.
13174
13175 * process.c (server_accept_connection): Simplify naming.
13176 (emacs_get_tty_pgrp): Use SDATA.
13177
13178 * coding.c (decode_coding_object): Fix last change.
13179
131802008-03-27 Jason Rumney <jasonr@gnu.org>
13181
13182 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13183
131842008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13185
13186 * charset.c (Fdefine_charset_internal): Change the way of
13187 registering charsets in Vcharset_order_list.
13188 (syms_of_charset): Make the charset `eight-bit' supplementary.
13189
131902008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13191
13192 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13193 operations, to avoid having the difference between pointers
13194 overflow.
13195
131962008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13197
13198 * indent.c (check_display_width): New fun.
13199 (scan_for_column): Use it.
13200
13201 * data.c (syms_of_data): Mark most-positive-fixnum and
13202 most-negative-fixnum as constants.
13203
13204 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13205
13206 * indent.c (scan_for_column): Extract from current_column_1.
13207 Merge with the same code from Fmove_to_column.
13208 (current_column_1, Fmove_to_column): Use it.
13209
132102008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13211
13212 * keymap.c (map_keymap_internal): New fun.
13213 (map_keymap): Use it.
13214 (Fmap_keymap_internal): New fun.
13215 (Fmap_keymap): Remove left-out test from before make_save_value.
13216
13217 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13218
13219 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13220 Use XCAR/XCDR.
13221
13222 * process.h (struct Lisp_Process): Remove filter_multibyte.
13223 * process.c (QCfilter_multibyte): Remove.
13224 (setup_process_coding_systems): Don't use filter_multibyte.
13225 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13226 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13227 (Fset_process_filter_multibyte): Change the coding-system to
13228 approximate the previous behavior.
13229 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13230 coding-system.
13231
13232 * coding.c (decode_coding_object): When not decoding into a buffer,
13233 obey the coding system's preference of (uni|multi)byte.
13234
132352008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13236
13237 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13238 every char is changed and has a different byte-length.
13239 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13240 Fix int -> EMACS_INT.
13241
132422008-03-23 David Hansen <david.hansen@gmx.net>
13243
13244 * dbusbind.c (xd_read_message): Remove extra copying of message
13245 strings. Check for NULL `interface' or `member'.
13246
132472008-03-22 Eli Zaretskii <eliz@gnu.org>
13248
13249 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13250 cFileName a file name that includes `?' characters, use the 8+3
13251 alias in cAlternateFileName instead.
13252
132532008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13254
13255 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13256
132572008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13258
13259 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13260 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13261 work on current_buffer only instead (that was already the case
13262 for some of the code anyway).
13263 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13264 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13265 (SET_PT, SET_PT_BOTH): Adjust.
13266 * intervals.h (set_point, temp_set_point, set_point_both)
13267 (temp_set_point_both): Remove redundant declarations.
13268
132692008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13270
13271 * fileio.c (Finsert_file_contents):
13272 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13273 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13274 when buffer != current_buffer anyway.
13275
132762008-03-20 Andreas Schwab <schwab@suse.de>
13277
13278 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13279 as default.
13280
132812008-03-19 Jason Rumney <jasonr@gnu.org>
13282
13283 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13284 (syms_of_w32fns): Initialize them.
13285 (HOURGLASS_ID): New constant.
13286 (x_window_to_frame): Don't check hourglass_window.
13287 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13288 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13289 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13290 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13291 Only change the cursor if hourglass is not active.
13292 (Fx_create_frame): Initialize frame's current_cursor.
13293 (hourglass_atimer): Remove.
13294 (hourglass_started): New function.
13295 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13296 (show_hourglass): Adapt to w32, changing argument to frame.
13297
13298 * w32term.h (struct w32_output): Remove hourglass_window.
13299 Add current_cursor.
13300
13301 * eval.c (call_debugger, Fsignal):
13302 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13303 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13304 (Fexecute_extended_command, cancel_hourglass_unwind):
13305 * minibuf.c (read_minibuf):
13306 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13307
133082008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13309
13310 * window.c (run_funs): New fun.
13311 (run_window_configuration_change_hook): Use it to run the buffer-local
13312 and the global part of the hook.
13313
13314 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13315 (unwind_format_mode_line): Restore selected window.
13316 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13317
133182008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13319
13320 * editfns.c (Fchar_equal): Check they are valid characters.
13321
13322 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13323
133242008-03-17 Andreas Schwab <schwab@suse.de>
13325
13326 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13327 against a charset.
13328
13329 * lisp.h (Fbuffer_list): Declare.
13330
133312008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13332
aac0c6e3
MR
13333 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13334 handlebox_widget is != 0.
13335
133362008-03-16 Juri Linkov <juri@jurta.org>
13337
13338 * callint.c (Fcall_interactively): For interactive code letters
13339 'b' and 'B' put the buffer list into the list of default "future"
13340 values of the minibuffer.
13341
133422008-03-16 Andreas Schwab <schwab@suse.de>
13343
13344 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13345 modifiers.
13346
13347 * regex.c (re_match_2_internal): Correct matching of a charset
13348 against latin-1 characters.
13349
133502008-03-16 Kenichi Handa <handa@m17n.org>
13351
13352 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13353 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13354 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13355 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13356 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13357 CHAR_STRING_ADVANCE.
13358 (produce_chars): Fix for the case that the source and the
13359 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13360 instead of CHAR_STRING_ADVANCE.
13361 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13362 STRING_CHAR_ADVANCE.
13363
133642008-03-15 Andreas Schwab <schwab@suse.de>
13365
13366 * regex.c (re_match_2_internal): Correct matching of eight bit
13367 characters in unibyte strings.
13368
133692008-03-15 Martin Rudalics <rudalics@gmx.at>
13370
13371 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13372 at end of range when it coincides with the end of the buffer.
13373
133742008-03-14 Eli Zaretskii <eliz@gnu.org>
13375
13376 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13377
13378 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13379
133802008-03-14 Jason Rumney <jasonr@gnu.org>
13381
13382 * editfns.c (initial_tz): New variable.
13383 (syms_of_editfns): Initialize it.
13384 (Fset_time_zone_rule): Set it when first called.
13385 Use it when TZSTRING is nil.
13386
13387 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13388 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13389 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13390 (globals_of_w32fns): Initialize them.
13391 (compute_tip_xy): Use them to position tooltips.
13392
133932008-03-14 Glenn Morris <rgm@gnu.org>
13394
13395 * emacs.c (main): Revert previous change.
13396 (standard_args): Revert -internal-script back to -scriptload,
13397 and remove the long-option form.
13398
133992008-03-13 Glenn Morris <rgm@gnu.org>
13400
13401 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13402 Remove option -enable-font-backend.
13403
134042008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13405
13406 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13407
134082008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13409
13410 * xterm.c (x_connection_closed): For GTK: If this is the last
13411 terminal just exit without closing the display.
13412
134132008-03-11 Jason Rumney <jasonr@gnu.org>
13414
13415 * w32font.c (w32font_full_name): Use floor to round.
13416
f0131492 134172008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13418
13419 * sound.c (alsa_configure): Declare vol at beginning of block.
13420
13421 * fontset.c (Ffontset_info): Remove extra semicolon.
13422
134232008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13424
13425 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13426 size of resulting string.
13427
134282008-03-10 Jason Rumney <jasonr@gnu.org>
13429
13430 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13431
134322008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13433
13434 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13435 Don't pretend as if characters with display property haven't been
13436 consumed for string-replacing-string case.
13437
134382008-03-08 Kim F. Storm <storm@cua.dk>
13439
13440 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13441 (get_next_display_element, next_element_from_string)
13442 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13443
134442008-03-08 Andreas Schwab <schwab@suse.de>
13445
13446 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13447
134482008-03-06 Jason Rumney <jasonr@gnu.org>
13449
13450 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13451 when charset not specified. Only translate ANSI to unicode when
13452 font_type is truetype.
13453 (w32font_coverage_ok): New function.
13454 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13455
134562008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13457
13458 * lread.c (Fread_char): Resolve modifiers.
13459 (Fread_char_exclusive): Likewise.
13460
13461 * character.c (char_resolve_modifier_mask): New function.
13462 (char_string): Use char_resolve_modifier_mask.
13463 (Fchar_resolve_modifiers): New function.
13464 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13465 function.
13466
134672008-03-04 Jason Rumney <jasonr@gnu.org>
13468
13469 * makefile.w32-in: Always include w32font.c in the build.
13470 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13471
134722008-03-04 Andreas Schwab <schwab@suse.de>
13473
13474 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13475 (versionclean): Likewise.
13476
134772008-03-04 Juanma Barranquero <lekktu@gmail.com>
13478
13479 * .cvsignore: Add oo.
13480
134812008-03-03 Andreas Schwab <schwab@suse.de>
13482
13483 * coding.c (decode_coding_object): Inhibit gap shrinking while
13484 decoding in place.
13485
134862008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13487
13488 * w32term.c: Remove unused include "gnu.h".
13489 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13490
13491 * gnu.h: Rename to ...
13492 * emacs-icon.h: ... this.
13493 * xterm.c: Use emacs-icon.h instead of gnu.h.
13494 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13495
134962008-03-03 Juanma Barranquero <lekktu@gmail.com>
13497
13498 * w32font.c: Include math.h.
13499
135002008-03-03 Jason Rumney <jasonr@gnu.org>
13501
13502 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13503 Compute options separately.
13504 (w32font_open_internal): Set glyph_idx before caching metrics.
13505
13506 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13507 Define if system headers don't.
13508 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13509 (w32font_encode_char): Don't declare here.
13510
13511 * w32font.c (Quniscribe, QCformat): New symbols.
13512 (syms_of_w32font): Define them.
13513 (w32font_has_char): Indicate uncertainty.
13514 (w32font_encode_char): Encode as glyph point. Make static.
13515 (recompute_cached_metrics): New function.
13516 (w32font_open_internal): Use it. Set font to use glyph points
13517 initially. Set format based on type of font.
13518 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13519 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13520 on it. Set format based on information available here.
13521 (add_font_entity_to_list): Identify backend based on opentype_only.
13522
135232008-03-02 Andreas Schwab <schwab@suse.de>
13524
13525 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13526
13527 * coding.c (decode_coding_big5, produce_chars):
13528 Fix typos in last change.
13529
135302008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13531
13532 * gnu.h: New icon.
13533
135342008-03-02 Kenichi Handa <handa@m17n.org>
13535
13536 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13537 `dos', don't decode '\r' if that is the last in the source.
13538 (decode_coding_utf_16, decode_coding_emacs_mule)
13539 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13540 (decode_coding_raw_text, decode_coding_charset): Likewise.
13541 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13542
135432008-03-01 Jason Rumney <jasonr@gnu.org>
13544
13545 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13546
135472008-03-01 Kim F. Storm <storm@cua.dk>
13548
13549 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13550
135512008-03-01 Jason Rumney <jasonr@gnu.org>
13552
13553 * w32font.c (w32font_full_name): New function.
13554 (w32font_open_internal): Use it.
13555
135562008-03-01 Kim F. Storm <storm@cua.dk>
13557
13558 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13559
135602008-03-01 Jason Rumney <jasonr@gnu.org>
13561
13562 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13563
135642008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13565
13566 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13567 xg_frame_resized when the event is for the edit widget.
13568
13569 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13570
13571 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13572 set_char_size.
13573 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13574 operations on widgets here. Just set frame size if needed.
13575 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13576 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13577 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13578 the whole frame.
13579 (xg_create_tool_bar): Move attachment of the tool bar to
13580 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13581 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13582
135832008-03-01 Jason Rumney <jasonr@gnu.org>
13584
13585 * w32fns.c (w32_msg_pump): Disable debug code.
13586
135872008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13588
13589 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13590
135912008-02-29 Chong Yidong <cyd@stupidchicken.com>
13592
13593 * xdisp.c (next_overlay_string): Don't set
13594 overlay_strings_at_end_processed_p if we're currently reading from
13595 a display string.
13596
135972008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13598
13599 * xdisp.c (get_overlay_strings_1): Fix typo.
13600
136012008-02-29 Chong Yidong <cyd@stupidchicken.com>
13602
13603 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13604
136052008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13606
13607 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13608
13609 * xdisp.c (display_mode_element): Cancel the previous change.
13610 (decode_mode_spec): Likewise.
13611 (handle_auto_composed_prop): Don't make composition if it->string
13612 is a string.
13613
136142008-02-27 Kim F. Storm <storm@cua.dk>
13615
13616 * lisp.h (GLYPH): Change type from int to struct with separate char
13617 and face_id members.
13618 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13619 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13620 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13621 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13622 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13623 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13624 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13625 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13626 handle new Lisp glyph code encoding, either an integer or a cons.
13627
13628 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13629 (GLYPH_ALIAS): Delete.
13630 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13631 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13632 (GLYPH_FROM_CHAR): Replace macro by ...
13633 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13634
13635 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13636 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13637 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13638 (GLYPH_INVALID_P): New macro.
13639 (spec_glyph_lookup_face): Update prototype.
13640
13641 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13642 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13643 new glyph code encoding.
13644 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13645 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13646
13647 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13648 Adapt to new glyph type and new glyph code encoding.
13649
13650 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13651
13652 * indent.c (current_column, current_column_1, Fmove_to_column)
13653 (compute_motion): Adapt to new glyph code encoding.
13654
13655 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13656
136572008-02-27 Chong Yidong <cyd@stupidchicken.com>
13658
13659 * process.c (wait_reading_process_output): Check for window
13660 changes caused by timers.
13661 Suggested by Johan Bockgård.
13662
136632008-02-27 Glenn Morris <rgm@gnu.org>
13664
13665 * emacs.c (USAGE1): Add `--disable-font-backend'.
13666
136672008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13668
13669 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13670 is made to the buffer.
13671
136722008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13673
13674 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13675 (face_at_string_position):
13676 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13677 (face_at_string_position):
13678 * xdisp.c (display_string, next_overlay_change):
13679 * buffer.h (overlays_at):
13680 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13681 Update callers.
13682
136832008-02-26 Chong Yidong <cyd@stupidchicken.com>
13684
13685 * editfns.c (Fformat): Doc fix.
13686
136872008-02-26 Juanma Barranquero <lekktu@gmail.com>
13688
13689 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13690 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13691 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13692
136932008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13694
13695 * buffer.c (Fbuffer_swap_text): New function.
13696 (syms_of_buffer): Defsubr it.
13697
136982008-02-25 Chong Yidong <cyd@stupidchicken.com>
13699
13700 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13701
137022008-02-25 Jason Rumney <jasonr@gnu.org>
13703
13704 * w32font.c (w32font_draw): Draw one character at a time when padding.
13705
137062008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13707
13708 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13709 Handle a nil arg. Use run_window_configuration_change_hook.
13710 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13711 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13712 Use run_window_configuration_change_hook.
13713
137142008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13715
13716 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13717 1-pixel width.
13718
137192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13720
13721 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13722 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13723 if the glyph in the font is zero pixel with.
13724
13725 * dispextern.h (struct glyph_string): New member padding_p.
13726
13727 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13728
13729 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13730
13731 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13732
13733 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13734
13735 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13736
137372008-02-25 Jason Rumney <jasonr@gnu.org>
13738
13739 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13740
137412008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13742
13743 Allow fine-grained image-cache flushing.
13744 * dispextern.h (struct image): Add `dependencies' field.
13745 (clear_image_caches): Change arg to Lisp_Object.
13746 * image.c (make_image): Initialize `dependencies' field.
13747 (clear_image_cache): Change arg to allow fine-grained flushing.
13748 Perform the flush even if image-cache-eviction-delay is nil.
13749 (clear_image_caches): Change arg to Lisp_Object.
13750 (Fclear_image_cache): Expand meaning of the argument.
13751 (mark_image): Mark `dependencies' field.
13752 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13753 (lface_hash): Use XHASH rather than XFASTINT.
13754 (face_at_buffer_position): Fix int -> EMACS_INT position.
13755 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13756 (select_frame_for_redisplay): Remove code duplication.
13757 (redisplay_internal): Adapt arg to call to clear_image_caches.
13758
137592008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13760
13761 * s/vms4-0.h:
13762 * s/vms4-2.h:
13763 * s/vms4-4.h:
13764 * s/vms5-5.h: Remove, unused.
13765
13766 * s/irix5-2.h:
13767 * s/irix6-0.h:
13768 * s/riscos5.h:
13769 * s/mach-bsd4-3.h:
13770 * m/mips4.h: Remove files for obsolete systems.
13771
13772 * Makefile.in:
13773 * filelock.c:
13774 * unexmips.c:
13775 * m/hp9000s300.h:
13776 * m/iris4d.h:
13777 * s/aix3-1.h:
13778 * s/hpux.h:
13779 * s/msdos.h:
13780 * s/usg5-0.h:
13781 * s/usg5-2-2.h:
13782 * s/usg5-2.h:
13783 * s/usg5-3.h: Remove references to obsolete variables.
13784
13785 * s/irix5-0.h: Remove, move all the contents ...
13786 * s/irix6-5.h: ... here. Simplify.
13787 * config.in: Regenerate.
13788
137892008-02-24 Jason Rumney <jasonr@gnu.org>
13790
13791 * w32term.c (x_draw_glyph_string_background): Clear the background
13792 manually when cleartype is in use.
13793 (x_draw_glyph_string_foreground): Draw text transparently when
13794 cleartype is in use.
13795
13796 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13797 a font into it unless we have to.
13798
137992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13800
13801 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13802 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13803
aac0c6e3
MR
138042008-02-18 Jason Rumney <jasonr@gnu.org>
13805
13806 * w32fns.c (Fw32_shell_execute): Encode parameters.
13807
138082008-02-09 Eli Zaretskii <eliz@gnu.org>
13809
13810 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13811
138122008-02-05 Juanma Barranquero <lekktu@gmail.com>
13813
13814 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13815
138162008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13817
13818 * xterm.c (x_set_offset): Don't change the gravity if
13819 CHANGE_GRAVITY is -1.
13820
138212008-02-23 Chong Yidong <cyd@stupidchicken.com>
13822
13823 * fileio.c (auto_save_error_occurred): New var.
13824 (auto_save_error): Set it.
13825 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13826 error occurred.
13827
138282008-02-23 Eli Zaretskii <eliz@gnu.org>
13829
13830 * w32.c (globals_of_w32): Add initializations for
13831 g_b_init_get_sid_sub_authority and
13832 g_b_init_get_sid_sub_authority_count.
13833
138342008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13835
13836 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13837 (font_parse_xlfd): Use them for sanity check.
13838 (Finternal_set_font_style_table): Make sure the table is bijective.
13839
13840 Consolidate the image_cache to the terminal struct.
13841 * termhooks.h (P_): Remove redundant def.
13842 (struct terminal): New field `image_cache'.
13843 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13844 of FRAME_X_IMAGE_CACHE.
13845 * xterm.h (struct x_display_info): Remove image_cache field.
13846 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13847 * w32term.h (struct w32_display_info): Remove image_cache field.
13848 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13849 * macterm.h (struct mac_display_info): Remove image_cache field.
13850 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13851 * xterm.c (x_term_init):
13852 * w32term.c (w32_term_init):
13853 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13854 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13855 Remove declarations.
13856 (clear_image_caches, mark_image_cache): New declarations.
13857 * xfaces.c (clear_face_cache):
13858 * xdisp.c (redisplay_internal): Use clear_image_caches.
13859 * image.c (clear_image_cache): Don't check that a frame is on
13860 a window-system before checking if it shares the same cache.
13861 (clear_image_caches): New function.
13862 (Fclear_image_cache): Use it.
13863 (mark_image): Move from allo.c.
13864 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13865 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13866 (mark_object): Don't call mark_image_cache for frames.
13867 (mark_terminals): Call mark_image_cache.
13868
13869 * lisp.h (Fdelete_terminal): Declare.
13870
13871 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13872 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13873 wrong_type_argument.
13874
138752008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13876
13877 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13878 malayalam.el, and tamil.el. Add sinhala.el.
13879
138802008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13881
13882 * xterm.c (x_connection_closed): Consolidate identical tests.
13883 (x_delete_terminal): Don't crash if called via x_connection_closed.
13884
138852008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13886
13887 * xdisp.c (decode_mode_spec): New arg string.
13888 (display_mode_element): Adjust for the above change.
13889
138902008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13891
13892 * callint.c (Fcall_interactively): Use AREF.
13893
138942008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13895
13896 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13897
138982008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13899
13900 * xfns.c (Fx_show_tip): Set string to " " if empty.
13901
139022008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13903
13904 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13905 with Qt.
13906
139072008-02-17 Kenichi Handa <handa@m17n.org>
13908
13909 * ftfont.c (ftfont_shape): Return Lispy number.
13910
13911 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13912 for GCs.
13913 (Finternal_set_font_selection_order): Call font_update_sort_order
13914 only when enable_font_backend is set.
13915 (realize_x_face): Set face->font_info to that of default face only
13916 when enable_font_backend is set.
13917
13918 * xdisp.c (handle_composition_prop): Set it->c to the fist
13919 character of the composed region.
13920 (fill_composite_glyph_string): Set base_face->font_info to
13921 s->font_info. Get a face for ascii from base_face->ascii_face.
13922 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13923 with a face already decided.
13924 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13925 non-negative.
13926 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13927 call font_prepare_composition unconditionally.
13928
13929 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13930
13931 * xterm.h (struct x_display_info): New member font.
13932
13933 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13934 (x_set_mouse_face_gc, x_new_font): Likewise.
13935 (x_term_init): Setup display_info->font.
13936 (x_delete_terminal): Free display_info->font.
13937
13938 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13939
13940 * ftxfont.c (ftxfont_default_fid): Delete it.
13941 (ftxfont_open): Set xfont->fid to 0.
13942 (ftxfont_end_for_frame): Clear data specific to the frame and the
13943 font-driver.
13944
13945 * xftfont.c (xftfont_default_fid): Delete it.
13946 (xftfont_open): Set xfont->fid to 0.
13947
13948 * fontset.c (FONTSET_OBJLIST): New macro.
13949 (fontset_find_font): Update font-object list of the fontset.
13950 (free_realized_fontset): New function.
13951 (free_face_fontset): Call free_realized_fontset.
13952 (Ffont_info): Call font_close_object only when enable_font_backend
13953 is set.
13954
13955 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13956 [HAVE_NTGUI]: Include w32term.h.
13957 [MAC_OS]: Include macterm.ch.
13958 (font_otf_ValueRecord): Use make_number.
13959 (font_finish_cache): Fix handling of reference count.
13960 (font_clear_cache): Update num_fonts.
13961 (font_open_entity): Update smallest_char_width and
13962 smallest_font_height of the frame.
13963 (font_close_object): Update num_fonts.
13964 (Fclear_font_cache): Fix finding the target cache data.
13965
139662008-02-16 Glenn Morris <rgm@gnu.org>
13967
13968 * fontset.c (Finternal_char_font): Fix compilation warning.
13969
139702008-02-16 Eli Zaretskii <eliz@gnu.org>
13971
13972 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13973 instead of char arrays. Enlarge the size of array passed to
13974 get_token_information.
13975
13976 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13977 warnings.
13978
139792008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13980
13981 * .gdbinit: Don't set `args', it breaks gdb --args.
13982
139832008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13984
13985 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13986 within a narrowed buffer.
13987
139882008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13989
13990 * coding.c (decode_coding_object, encode_coding_object):
13991 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13992
139932008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13994
13995 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13996 hardcoding 1.
13997 (detect_coding_system):
13998 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13999 (string_char_to_byte, string_byte_to_char, insert_from_gap):
14000 * insdel.c (insert_from_gap):
14001 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
14002 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
14003 (string_to_multibyte):
14004 * character.c (chars_in_text, multibyte_chars_in_text):
14005 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
14006
14007 * character.h (FETCH_STRING_CHAR_ADVANCE)
14008 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
14009 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
14010 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
14011
14012 * casefiddle.c (casify_region): Only call after-change and composition
14013 functions on the part of the region that was changed.
14014
14015 * keyboard.c (read_avail_input):
14016 * frame.c (Fdelete_frame): Call Fdelete_terminal.
14017
140182008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14019
14020 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
14021 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
14022
140232008-02-11 Juanma Barranquero <lekktu@gmail.com>
14024
14025 * w32menu.c (push_submenu_start, push_submenu_end)
14026 (push_left_right_boundary, push_menu_pane, push_menu_item):
14027 * keyboard.c (read_key_sequence): Don't pass args with side effects
14028 to AREF, it fails when compiling with -DENABLE_CHECKING.
14029
140302008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
14031
14032 * Makefile.in (${lispsource}international/charprop.el):
14033 Delete this target.
14034
14035 * search.c (boyer_moore): Fix incorrect synching of the trunk and
14036 emacs-unicode-2.
14037
140382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14039
14040 * terminal.c (Fdelete_terminal): Clean up the `force' path.
14041
140422008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14043
14044 * frame.c (Qnoelisp): New symbol.
14045 (syms_of_frame): Initialize it.
14046 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
14047 harmless Elisp code, from a strong `force' from x_connection_closed.
14048 * frame.h (Qnoelisp): Declare.
14049 * xterm.c (x_connection_closed): Pass `noelisp'.
14050
14051 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
14052 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
14053 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
14054 rather than `int' for the type of `type'.
14055
140562008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
14057
14058 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
14059
14060 * Makefile.in (GNUC): Remove support for gcc-1.x.
14061
140622008-02-10 Richard Stallman <rms@gnu.org>
14063
14064 * lisp.h (ASET): Use AREF, not ASLOT.
14065
140662008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
14067
14068 * lisp.h (ASET): Check bounds.
14069
140702008-02-10 Glenn Morris <rgm@gnu.org>
14071
14072 * buffer.c (mode-name): Doc fix.
14073
140742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14075
14076 * Makefile.in:
14077 * emacs.c:
14078 * gmalloc.c:
14079 * keyboard.c:
14080 * lisp.h:
14081 * m/ibm370aix.h:
14082 * process.c:
14083 * regex.c:
14084 * s/hpux.h:
14085 * sysdep.c:
14086 * sysselect.h:
14087 * systty.h:
14088 * unexec.c:
14089 * w32term.c:
14090 * xsmfns.c:
14091 * xterm.c: Remove code that deals with obsolete variables.
14092
14093 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
14094
14095 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
14096 nothing else needs it anymore.
14097
140982008-02-09 Eli Zaretskii <eliz@gnu.org>
14099
14100 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
14101 instead of unibyte_char_to_multibyte.
14102
141032008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
14104
14105 * s/gnu-linux.h: Remove commented out code.
14106
14107 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
14108
14109 * Makefile.in: Update what RMS says about using autoconf.
14110 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
14111 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
14112 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
14113 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
14114
141152008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
14116
14117 * keymap.c (Fkey_description): Move side effect outside of macro call.
14118
14119 * xfaces.c (Finternal_make_lisp_face):
14120 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
14121
14122 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
14123 (syms_of_fontset): Use ASET.
14124
14125 * fns.c (concat): Move side effect outside of macro call.
14126 (hash_clear): Use ASET.
14127
141282008-02-08 Richard Stallman <rms@gnu.org>
14129
14130 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14131 If FORCE, and frame has a surrogate minibuffer for another frame,
14132 delete the other frame first.
14133
141342008-02-07 Timo Savola <timo.savola@iki.fi>
14135
14136 * xterm.c (x_detect_focus_change): Handle embed client message.
14137 (handle_one_xevent): Ditto.
14138 (handle_one_xevent): If embedded and we get a button press/release,
14139 request focus.
14140 (xembed_set_info, xembed_send_message): New functions.
14141 (x_make_frame_visible): Call xembed_set_info if embedded.
14142 (x_make_frame_invisible): Call xembed_set_info if embedded.
14143 (x_term_init): Initialize Xatom_XEMBED.
14144 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14145 (x_iconify_frame): Ditto.
14146
14147 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14148 (enum xembed_info, enum xembed_message, enum xembed_focus)
14149 (enum xembed_modifier, enum xembed_accelerator): New.
14150 (xembed_set_info, xembed_send_message): Declare.
14151 (FRAME_X_EMBEDDED_P): New.
14152
14153 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14154 gtk_plug_new.
14155
14156 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14157 window ID of a frame.
14158 (x_window): Reparent frame if embedded.
14159 (Fx_create_frame): Don't set border width if embedded.
14160
14161 * emacs.c (USAGE3): Add --parent-id.
14162 (standard_args): Ditto.
14163
141642008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14165
14166 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14167
141682008-02-07 Jim Meyering <meyering@redhat.com>
14169
14170 Use "do...while (0)", not "if (1)...else" in macro definitions.
14171 The latter provokes a warning from gcc about the empty else, when
14172 followed by ";". Also, without that trailing semicolon, it would
14173 silently swallow up any following statement.
14174 * syntax.h (SETUP_SYNTAX_TABLE)
14175 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14176 * buffer.h (DECODE_POSITION): Likewise.
14177 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14178 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14179 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14180 (FETCH_CHAR_ADVANCE): Likewise.
14181 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14182
141832008-02-07 Jim Meyering <meyering@redhat.com>
14184
14185 * lread.c [lint]: Don't include <sys/inode.h>.
14186
141872008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14188
14189 * xselect.c (x_handle_dnd_message):
14190 * xmenu.c (digest_single_submenu, xmenu_show):
14191 * xdisp.c (with_echo_area_buffer_unwind_data)
14192 (format_mode_line_unwind_data, unwind_format_mode_line)
14193 (display_menu_bar):
14194 * eval.c (Ffetch_bytecode):
14195 * doc.c (store_function_docstring):
14196 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14197 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14198 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14199
142002008-02-07 Kenichi Handa <handa@m17n.org>
14201
14202 * ftxfont.c (ftxfont_open): Don't set
14203 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14204
14205 * ftfont.c (ftfont_open): Fix previous change.
14206
142072008-02-06 Jason Rumney <jasonr@gnu.org>
14208
14209 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14210 Use cached metrics for ASCII characters.
14211 (w32font_open_internal): Don't set font's owning_frame.
14212 Cache metrics for ASCII characters.
14213
14214 * w32font.h (struct w32font_info): Add ascii_metrics.
14215 Remove owning_frame.
14216
142172008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14218
14219 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14220 to negative value.
14221
14222 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14223
14224 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14225
14226 * charset.c (syms_of_charset): Set QCtest and Qeq.
14227
142282008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14229
14230 * process.c (Fstart_process):
14231 * callproc.c (Fcall_process): Handle the case where
14232 Funhandled_file_name_directory returns nil.
14233
14234 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14235 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14236 * font.c (check_gstring): Use them and AREF to access the vector before
14237 we know it's really a gstring.
14238 (Ffont_shape_text): Fix typo.
46e722a9 14239 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14240
14241 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14242 Declare.
14243
14244 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14245
142462008-02-05 Jason Rumney <jasonr@gnu.org>
14247
14248 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14249 Set smallest_font_height and smallest_char_width in display info.
14250
142512008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14252
14253 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14254
142552008-02-05 Miles Bader <miles@gnu.org>
14256
14257 * xfaces.c (get_lface_attributes, merge_named_face)
14258 (lookup_named_face, lookup_derived_face, realize_named_face):
14259 Revert 2008-02-01 change by cyd@stupidchicken.com.
14260
142612008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14262
14263 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14264 fallback fonts.
14265 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14266
142672008-02-04 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14270 set full_name.
14271 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14272
142732008-02-03 Jason Rumney <jasonr@gnu.org>
14274
14275 * makefile.w32-in (OBJ1): Include font.o here.
14276 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14277
142782008-02-02 Jason Rumney <jasonr@gnu.org>
14279
14280 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14281
142822008-02-01 Jason Rumney <jasonr@gnu.org>
14283
14284 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14285
14286 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14287
142882008-02-01 Andreas Schwab <schwab@suse.de>
14289
14290 * Makefile.in (shortlisp, lisp): Update for rename of
14291 ../lisp/language/myanmar.el.
14292
142932008-02-01 Chong Yidong <cyd@stupidchicken.com>
14294
14295 * xfaces.c (get_lface_attributes): Delete function.
14296 (merge_named_face, lookup_named_face, lookup_derived_face)
14297 (realize_named_face): Call lface_from_face_name directly, and use
14298 the fact that merge_face_vectors does not alter its FROM argument.
14299
143002008-02-01 Jason Rumney <jasonr@gnu.org>
14301
14302 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14303 input in the default locale. Handle non-Unicode multibyte input.
14304
143052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14306
14307 * fontset.c (reorder_font_vector): Exclude nil elements from the
14308 font group. Don't try multiple fonts.
14309 (fontset_font): Adjust for the above change.
14310 (Finternal_char_font): Return nil if the found font doesn't
14311 contain the character ch.
14312
14313 * Makefile.in (lisp, shortlisp): Add cham.el.
14314
143152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14316
14317 * font.h (FONTP): Make it return 1 also for a font-object.
14318
14319 * .gdbinit (xfontset): New function.
14320
14321 * font.c (font_find_for_lface): Check if the character C is
14322 supported or not only for the first font.
14323
14324 * fontset.c (reorder_font_vector): Fix typo.
14325 (fontset_find_font): Don't add a font-spec specifying a script.
14326 Use 0 (not Qt) for the indication of empty font-group. Change the
14327 format of RFONT-DEF. Return Qt if no font in the font-group
14328 support the character.
14329 (fontset_font): Adjust for the above change. If no font was
14330 found the character, remember that.
14331 (face_for_char): Adjust for the change of RFONT-DEF.
14332 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14333 no font for the target.
14334 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14335
143362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14337
14338 * font.c (font_load_for_face): Handle the case that the font in
14339 face->lface is a string.
14340
143412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14342
14343 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14344
143452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14346
14347 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14348 Fix previous change. If the frame is not on a window system,
14349 signal an error.
14350
143512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14352
14353 * coding.c (decode_coding_object, encode_coding_object): Adjust
14354 marker positions after conversion.
14355
14356 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14357
143582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14359
14360 * font.c (font_find_for_lface): Fix the handling of the return
14361 value of font_has_char.
14362 (Ffont_shape_text): Fix previous change.
14363
14364 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14365 (fontset_ref_and_range): Delete it.
14366 (fontset_find_font): Call char_table_ref_and_range instead of
14367 FONTSET_REF_AND_RANGE.
14368 (make_fontset): Don't setup font groups of Latin here.
14369 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14370 (new_fontset_from_font): Make the specified font the default for
14371 all Latin characters.
14372
143732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14374
14375 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14376 is on a window system before accessing the fontset of the frame.
14377
143782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14379
14380 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14381
14382 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14383 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14384
14385 * font.c (Ffont_shape_text): If the font driver doesn't have a
14386 shaper function, make zero-width glyphs to have at least one-pixel
14387 width. Fix setting of `to' field of glyphs.
14388
143892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14390
14391 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14392 glyphs.
14393
14394 * font.h (struct font_driver): Improve docstring of member `shape'.
14395
143962008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * composite.c (syms_of_composite): Fix docstring of
14399 auto-composition-function.
14400
14401 * font.h (LGLYPH_SIZE): New macro.
14402
14403 * font.c (Ffont_fill_gstring): Stop filling when a character not
14404 supported by the font is found.
14405 (Ffont_shape_text): When a shape callback function returns nil,
14406 try at most two more times with larger gstring.
14407 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14408
14409 * xdisp.c (handle_auto_composed_prop): Change the argument to
14410 auto-composition-function.
14411
14412 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14413 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14414 Lispy glyph and store it in the lgstring.
14415
14416 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14417
14418 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14419
144202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14421
14422 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14423
14424 * fontset.c (Vfont_encoding_charset_alist): New variable.
14425 (syms_of_fontset): DEFVAR it.
14426 (reorder_font_vector, fontset_find_font): Optimize for the case of
14427 no need of reordering.
14428 (face_for_char): Map the charset property by
14429 Vfont_encoding_charset_alist.
14430
144312008-02-01 Jason Rumney <jasonr@gnu.org>
14432
14433 * w32font.c (logfonts_match): Don't check adstyle here.
14434 (font_matches_spec): Check here against physical font instead.
14435 (add_font_entity_to_list): Avoid some substitutions.
14436
14437 * font.c (font_parse_fcname): Default weight and slant to normal.
14438 (font_score): Prefer normal fonts if weight or slant unspecified.
14439 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14440 match freetype scores.
14441
144422008-02-01 Jason Rumney <jasonr@gnu.org>
14443
14444 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14445 font, as it may have been deleted.
14446 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14447 most common hyphenless variation.
14448 (logfonts_match): Check generic family.
14449 (font_matches_spec): Don't check generic family here.
14450 (fill_in_logfont): Set generic family based on adstyle.
14451
14452 * w32font.h (w32font_get_cache): Update declaration.
14453
144542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14455
14456 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14457
14458 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14459 If none of the new drivers are available, call font_update_drivers
14460 with the old drivers.
14461
14462 * w32font.c (w32font_get_cache): Adjust the argument type.
14463
14464 * xfont.c (xfont_get_cache): Adjust the argument type.
14465
14466 * font.h (struct font_driver): Change argument type of get_cache.
14467
14468 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14469
14470 * font.c (Ffont_get): Fix arguments to Fassoc.
14471 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14472 (font_clear_cache): New function.
14473 (font_list_entities, font_matching_entity): Use font_get_cache.
14474 (font_update_drivers): Call font_clear_cache when finishing a driver.
14475
14476 * fontset.c (fontset_find_font): Fix previous change.
14477
144782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14479
14480 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14481 dpyinfo->font_table.
14482 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14483 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14484
14485 * font.c (font_at): Handle the case that the arg C is negative.
14486 Handle the unibyte case.
14487 (Ffont_at): Call font_at with the arg C -1.
14488
14489 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14490 the position here, and call font_at with the arg C -1.
14491 Don't check the range of the existing composition at the point.
14492
144932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14494
14495 * fontset.c (fontset_add): New args charset_id and family.
14496 Change caller.
14497 (load_font_get_repertory, fontset_find_font): Assume that
14498 font_spec is always a font-spec object.
14499 (Fset_fontset_font): Always store a font-spec object in a fontset.
14500
14501 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14502 instead of get_property_and_range.
14503
145042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14505
14506 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14507 (xftfont_open): Don't keep locking face.
14508 (xftfont_close): Don't unlock face.
14509 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14510
14511 * fontset.c (fontset_find_font): Don't prefer a font of
14512 supplementary charset.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14517 script, langsys_tag to langsys, new member script.
14518 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14519 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14520 listing to the script specified in that property. Fix arg to
14521 OTF_check_features.
14522
145232008-02-01 Jason Rumney <jasonr@gnu.org>
14524
14525 * w32font.h: New file.
14526
14527 * w32font.c: Include it.
14528 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14529 (w32font_open): Set owning_frame.
14530 (w32font_text_extents): Use owning_frame.
14531 (struct font_callback_data): Add opentype_only field.
14532 (add_font_entity_to_list): Use it to filter fonts.
14533 Don't check against full name.
14534 (w32font_list_internal): New function.
14535 (w32font_list): Use it.
14536 (w32font_match_internal): New function.
14537 (w32font_match): Use it.
14538 (w32font_open_internal): New function.
14539 (w32font_open): Use it.
14540 (w32font_get_cache, w32font_close, w32font_has_char)
14541 (w32font_encode_char, w32font_text_extents, w32font_draw):
14542 Make non-static.
14543
14544 * makefile.w32-in (w32font.o): Depend on w32font.h.
14545
145462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14547
14548 * charset.c (Fdefine_charset_internal): Record a supplementary
14549 charset at the tail of Vcharset_order_list.
14550
14551 * font.c (Ffont_shape_text): Fix the return value.
14552
14553 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14554
14555 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14556
145572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14558
14559 * ftfont.c (struct OpenTypeSpec): New struct.
14560 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14561 (ftfont_get_open_type_spec): New function.
14562 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14563
14564 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14565
145662008-02-01 Jason Rumney <jasonr@gnu.org>
14567
14568 * w32font.c (add_font_entity_to_list): Compare only the beginning
14569 of full name.
14570
145712008-02-01 Kenichi Handa <handa@m17n.org>
14572
14573 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14574 Never return HANDLED_RECOMPUTE_PROPS.
14575
145762008-02-01 Kenichi Handa <handa@m17n.org>
14577
14578 * font.c (font_gstring_produce): Delete it.
14579
14580 * composite.h (COMPOSITION_METHOD):
14581 Handle COMPOSITION_WITH_GLYPH_STRING.
14582
145832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14584
14585 * xfont.c (Qx): Delete.
14586 (syms_of_xfont): Don't initialize Qx.
14587
14588 * composite.h (enum composition_method):
14589 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14590
145912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14592
14593 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14594 (choose_face_font): Accept new form of font-spec.
14595
14596 * frame.h (font_driver_list): Declare it unconditionally.
14597 (struct frame): Define members font_driver_list and font_data_list
14598 unconditionally.
14599
14600 * fontset.c: Include "font.h" unconditionally.
14601 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14602 (Fset_fontset_font): Accept a font-spec object.
14603
14604 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14605 PIXEL_SIZE part a wild card.
14606
14607 * dispextern.h (struct glyph_string): Define members clip and
14608 num_clips unconditionally.
14609 (struct face): Define members font_info and extra unconditionally.
14610
14611 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14612 ftfont_info only when HAVE_LIBOTF is defined.
14613
146142008-02-01 Andreas Schwab <schwab@suse.de>
14615
14616 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14617 and end.
14618
146192008-02-01 Jason Rumney <jasonr@gnu.org>
14620
14621 * w32font.c (w32font_driver): Add new fields.
14622
146232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14624
14625 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14626 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14627 (LIBES): Add @M17N_FLT_CFLAGS@.
14628
14629 * composite.c (compose_text): Don't treat the new style
14630 composition specially.
14631
14632 * emacs.c (main): Call syms_of_font unconditionally.
14633
14634 * font.h (FONT_ENTITY_NOT_LOADABLE)
14635 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14636 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14637 (struct font_driver): New member shape.
14638 (font_registry_charsets): Extern it.
14639 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14640 (font_otf_capability, font_drive_otf): Delete their externs.
14641
14642 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14643 (font_charset_alist, font_registry_charsets): Move from xfont.c
14644 and rename.
14645 (font_prop_validate_otf): New function.
14646 (font_property_table): Register it for QCotf.
14647 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14648 (font_drive_otf): Delete.
14649 (font_prepare_composition): New arg F. Adjust for the change of
14650 lispy gstring.
14651 (font_find_for_lface): New arg C.
14652 (font_load_for_face): Adjust for the change of font_find_for_lface.
14653 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14654 lispy gstring.
14655 (Ffont_shape_text): New function.
14656 (Fopen_font): If the font size is not given, use 12-pixel.
14657 (Ffont_at): New arg STRING.
14658 (syms_of_font): Initalize font_charset_alist.
14659 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14660 conditionally.
14661
14662 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14663 fonts of the same font-spec. Change the format of RFONT-DEF.
14664 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14665 Adjust for the change of RFONT-DEF.
14666 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14667
14668 * ftfont.h: New file.
14669
14670 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14671 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14672 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14673 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14674 font_otf_capability and font_drive_otf, set ftfont_shape.
14675 (ftfont_list): Adjust for the change of :otf property value.
14676 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14677 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14678 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14679 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14680 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14681 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14682
14683 * w32term.c (x_draw_composite_glyph_string_foreground):
14684 Adjust for the change of lispy gstring.
14685
14686 * xdisp.c (handle_composition_prop): Adjust for the change of
14687 lispy gstring. Call a function for auto-composition with the
14688 third arg it->window.
14689 (fill_composite_glyph_string): Adjust for the change of lispy string.
14690 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14691
14692 * xfaces.c (set_font_frame_param): Adjust for the change of
14693 font_find_for_lface.
14694
14695 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14696 (xfont_registry_charsets): Likewise. Change caller.
14697 (syms_of_xfont): Don't handle x_font_charset_alist.
14698
14699 * xftfont.c: Include "ftfont.h".
14700 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14701 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14702 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14703 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14704 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14705 Set xftfont_driver.shape to xftfont_shape.
14706
14707 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14708 the change of lispy gstring.
14709
147102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14711
14712 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14713
147142008-02-01 Jason Rumney <jasonr@gnu.org>
14715
14716 * w32font.c (w32font_draw): Fill background manually.
14717
147182008-02-01 Jason Rumney <jasonr@gnu.org>
14719
14720 * font.c (Qfontp): Remove unused symbol.
14721 (QCantialias): New symbol.
14722 (syms_of_font): Define it.
14723 (font_property_table): Set a validator for QCantialias.
14724
14725 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14726 Define if not already.
14727 (QCfamily): Share with xfaces.c.
14728 (Qstandard, Qsubpixel, Qnatural): New symbols.
14729 (syms_of_w32font): Define them. Don't define QCfamily here.
14730 (w32_antialias_type, lispy_antialias_type): New functions.
14731 (w32_enumfont_pattern_entity): New arg requested_font.
14732 Set antialias parameter if non-default was requested.
14733 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14734
147352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14736
14737 * lread.c (read1): Undo the previous change.
14738
147392008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14740
14741 * frame.c (Fdelete_frame): Call font_update_drivers only when
14742 USE_FONT_BACKEND is defined.
14743
147442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14745
14746 * font.h (struct font_bitmap): New member bits_per_pixel.
14747 (struct font_driver): New members start_for_frame and end_for_frame.
14748 (struct font_data_list): New struct.
14749 (font_put_frame_data, font_get_frame_data): Extern them.
14750
14751 * frame.h (struct frame): New member font_data_list.
14752
14753 * font.c (font_update_drivers): Call driver->start_for_frame and
14754 driver->end_for_frame at proper timings.
14755 (font_put_frame_data, font_get_frame_data): New functions.
14756 (Ffont_spec): Add usage in the docstring.
14757
14758 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14759 (Fdelete_frame): Call font_update_drivers.
14760
14761 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14762 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14763 (xftfont_get_xft_draw): New function.
14764 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14765 (xftfont_end_for_frame): New function.
14766 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14767
14768 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14769 Change argument. Cache GCs in the per-frame data.
14770 (struct ftxfont_frame_data): New struct.
14771 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14772 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14773 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14774 (ftxfont_end_for_frame): New function.
14775 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14776
14777 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * xselect.c (Vselection_coding_system)
14782 (Vnext_selection_coding_system): Delete them.
14783 (syms_of_xselect): Don't declare selection-coding-system and
14784 next-selection-coding-system. They are declared in select.el.
14785
147862008-02-01 Jason Rumney <jasonr@gnu.org>
14787
14788 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14789
14790 * w32fns.c: Include imm.h.
14791 (get_composition_string_fn, get_ime_context_fn): New optional
14792 system functions.
14793 (globals_of_w32fns): Load them from imm32.dll.
14794 (ignore_ime_char): New flag.
14795 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14796 WM_IME_ENDCOMPOSITION messages.
14797
14798 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14799 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14800
148012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14802
14803 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14804 (READCHAR_REPORT_MULTIBYTE): New macro.
14805 (readchar): New 2nd arg MULTIBYTE.
14806 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14807 Make symbol's name multibyte according to the multibyteness of the
14808 source.
14809
148102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14811
14812 * xfaces.c (face_for_overlay_string): Call lookup_face with
14813 correct arguments (fix of synching with the trunk).
14814
148152008-02-01 Kenichi Handa <handa@m17n.org>
14816
14817 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14818 (font_prop_validate_non_neg, font_prop_validate_spacing):
14819 Delete argument prop_index.
14820 (font_property_table): Change arguments to validater. Change Callers.
14821 (font_lispy_object): Delete.
14822 (font_at): Use font_find_object instead fo font_lispy_object.
14823
148242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14825
14826 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14827 and file names.
14828
148292008-02-01 Jason Rumney <jasonr@gnu.org>
14830
14831 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14832 (font_matches_spec): Remove debug output.
14833 (add_font_entity_to_list): Avoid using substituted fonts.
14834
148352008-02-01 Jason Rumney <jasonr@gnu.org>
14836
14837 * doc.c (Fsnarf_documentation):
14838 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14839
148402008-02-01 Miles Bader <miles@gnu.org>
14841
14842 * dispextern.h (struct glyph_row): Only define "clip" field if
14843 HAVE_WINDOW_SYSTEM is defined.
14844
148452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14846
14847 Fix up multi-tty merge.
14848
14849 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14850 and indentation.
14851
14852 * xfaces.c (free_realized_face, clear_face_gcs):
14853 Include font_done_for_face in the input_blocked section, just in case.
14854
14855 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14856 (get_char_face_and_encoding): Undo last change and remove the *other*
14857 duplicate definition (i.e. keep the one that's better scoped and that
14858 includes code for the font-backend).
14859
14860 * terminal.c (create_terminal): Default keyboard_coding to
14861 `no-conversion' and terminal_coding to `undecided'.
14862
14863 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14864
14865 * fontset.c (free_realized_fontsets): Check that the table entry does
14866 contain a fontset before trying to compare it to `base'.
14867
14868 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14869 syms_of_charset, and syms_of_coding earlier because init_window_once
14870 now needs Vcoding_system_hash_table to be setup.
14871
14872 * coding.h (default_buffer_file_coding): Remove.
14873
14874 * coding.c (default_buffer_file_coding): Remove.
14875 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14876 than ->symbol, and use the terminal-local coding system.
14877 (syms_of_coding): Don't setup the coding-systems that are not
14878 terminal-local.
14879 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14880
14881 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14882 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14883
14884 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14885 in chartab.c and were re-added here by mistake.
14886 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14887
14888 * doc.c (Fsnarf_documentation):
14889 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14890 src to etc.
14891
14892 * ChangeLog.10: Add mistakenly removed entry.
14893
148942008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14895
14896 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14897
148982008-02-01 Miles Bader <miles@gnu.org>
14899
14900 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14901 Add extra args to FACE_FOR_CHAR.
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14906 in sequence.
14907
14908 * chartab.c (map_sub_char_table, map_char_table): If the range
14909 contains just one character, call the function with that character
14910 even if the depth is not 3.
14911
149122008-02-01 Jason Rumney <jasonr@gnu.org>
14913
14914 * w32font.c (w32font_text_extents): Calculate metrics for the
14915 whole string.
14916
149172008-02-01 Jason Rumney <jasonr@gnu.org>
14918
14919 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14920
149212008-02-01 Jason Rumney <jasonr@gnu.org>
14922
14923 * w32term.c (x_set_glyph_string_clipping): Use
14924 get_glyph_string_clip_rects.
14925 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14926 Adjust for the change of struct glyph_string.
14927
14928 * w32font.c (w32font_draw): Do clipping here.
14929
149302008-02-01 Kenichi Handa <handa@m17n.org>
14931
14932 * xftfont.c (xftfont_draw): Adjust for the change of struct
14933 glyph_string.
14934
14935 * xterm.c (x_set_glyph_string_clipping): Use
14936 get_glyph_string_clip_rects.
14937 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14938 Adjust for the change of struct glyph_string.
14939
14940 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14941 the resulting clip(s}.
14942 (expose_overlaps): Add arg r. Change callers. Set it to
14943 row->clip temporarily.
14944 (expose_window): Redraw rows overlapping the exposed area.
14945
14946 * dispextern.h (struct glyph_row): New member clip.
14947 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14948 clip_height, new member clip, and num_clips.
14949
149502008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * data.c (Fchar_or_string_p): Fix docstring.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14957 create a temporary XftDraw object.
14958
149592008-02-01 Kenichi Handa <handa@m17n.org>
14960
14961 * font.c (Ffontp): Fix docstring.
14962
14963 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14964 strong evidence of ISO-2022.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14969 SYNTAX_ENTRY_FOLLOW_PARENT.
14970
149712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14972
14973 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14974 its type.
14975 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14976 Update to the new type of weak_hash_tables and next_weak.
14977
14978 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14979 a plain C pointer to Lisp_Hash_Table.
14980
14981 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14982 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14983 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14984 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14985 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14986 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14987 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14988 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14989 (GC_EQ): Remove since they've been identical to their non-GC_
14990 alter-egos ever since the markbit was eradicated.
14991
14992 * alloc.c:
14993 * buffer.c:
14994 * buffer.h:
14995 * data.c:
14996 * fileio.c:
14997 * filelock.c:
14998 * fns.c:
14999 * frame.h:
15000 * lisp.h:
15001 * macterm.c:
15002 * print.c:
15003 * process.c:
15004 * w32fns.c:
15005 * w32menu.c:
15006 * w32term.c:
15007 * xfns.c:
15008 * xmenu.c:
15009 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * chartab.c (map_sub_char_table): Make it work for the top-level
15014 char-table. Fix handling of parent char-table.
15015 (map_char_table): Adjust for the above change.
15016
150172008-02-01 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32font.c (Qgdi): Rename from Qw32.
15020
150212008-02-01 Jason Rumney <jasonr@gnu.org>
15022
15023 * w32bdf.c (get_quoted_string): Make function static.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
15028 bigger ascent and descent than those of the font, use them as
15029 font's ascent and descent.
15030
150312008-02-01 Kenichi Handa <handa@m17n.org>
15032
15033 * Makefile.in (${lispsource}international/charprop.el): Move this
15034 target within "#ifdef HAVE_UNIDATA" and "#endif".
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
15039 (shortlisp): Add ../lisp/language/tai-viet.el.
15040
150412008-02-01 Ulrich Mueller <ulm@gentoo.org>
15042
15043 * Makefile.in (${lispsource}international/charprop.el): Depend on
15044 temacs${EXEEXT}.
15045
150462008-02-01 Jason Rumney <jasonr@gnu.org>
15047
15048 * w32font.c (w32font_close): Delete the GDI font object.
15049
15050 * w32menu.c: Include character.h.
15051
15052 * w32proc.c: Likewise.
15053
15054 * w32select.c: Likewise.
15055
15056 * makefile.w32-in (w32proc.o): Depend on character.h.
15057
150582008-02-01 Jason Rumney <jasonr@gnu.org>
15059
15060 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
15061
15062 * w32menu.c (syms_of_w32menu): Likewise.
15063
15064 * w32proc.c (syms_of_ntproc): Likewise.
15065
15066 * w32select.c (syms_of_w32select): Likewise.
15067
15068 * w32term.c (syms_of_w32term): Likewise.
15069
150702008-02-01 Jason Rumney <jasonr@gnu.org>
15071
15072 * w32font.c (w32font_draw): Delete brush after using it.
15073
150742008-02-01 Jason Rumney <jasonr@gnu.org>
15075
15076 * w32font.c (w32font_open): Don't set font_idx.
15077 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
15078 to font settings.
15079 (w32font_draw): Fill background explicitly.
15080
150812008-02-01 Jason Rumney <jasonr@gnu.org>
15082
15083 * w32term.c (w32_initialize): Don't call w32font_initialize.
15084
15085 * w32font.c (w32font_info): Remove subranges.
15086 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
15087 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
15088 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
15089 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
15090 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
15091 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
15092 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
15093 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
15094 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
15095 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
15096 New symbols.
15097 (font_callback_data): New struct.
15098 (w32font_list, w32font_match): Use it.
15099 (w32font_open): Don't populate subranges.
15100 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
15101 (w32font_encode_char): Always return unicode code-point as-is.
15102 (w32font_text_extents): Supply a transformation matrix to
15103 GetGlyphOutline. Never look up by glyph index. Avoid looping
15104 twice. Use unicode version of GetTexExtentPoint32 instead of
15105 glyph index version.
15106 (set_fonts_frame): Remove.
15107 (w32_enumfont_pattern_entity): Add frame parameter, use it to
15108 set frame parameter. Use backward compatible fake foundries.
15109 Save generic family in extra slot under QCfamily. Make width slot
15110 constant. Save QCspacing value. Save list of scripts instead of
15111 binary subranges.
15112 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
15113 (add_font_entity_to_list): Use font_callback_data struct. Filter
15114 unwanted fonts.
15115 (add_one_font_entity_to_list): Use font_callback_data struct.
15116 (w32_registry): Default to iso10646_1.
15117 (fill_in_logfont): Use dpi from extra slot. Don't bother with
15118 string font registries. Don't fill in font name if it is a generic
15119 family name, fill family instead. Use spacing, family and script
15120 extra info to fill pitch, family and charset fields.
15121 (list_all_matching_fonts): Use font_callback_data struct.
15122 (unicode_range_for_char): Remove.
15123 (font_supported_scripts): New function.
15124 (w32font_initialize): Remove.
15125 (syms_of_w32font): Update which symbols are defined.
15126
151272008-02-01 Jason Rumney <jasonr@gnu.org>
15128
15129 * font.c (font_pixel_size): Reverse assq_no_quit args.
15130
15131 * w32term.h (FONT_WIDTH): Report max width, not average.
15132 (FONT_MAX_WIDTH): Remove.
15133 (FONT_AVG_WIDTH): New macro.
15134
15135 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15136 redefinition of FONT_WIDTH.
15137
15138 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15139 (w32_cache_char_metrics): Use FONT_WIDTH.
15140
15141 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15142
151432008-02-01 Jason Rumney <jasonr@gnu.org>
15144
15145 * w32font.c (w32font_open): Make lfHeight negative.
15146
15147 * w32fns.c (x_default_font_parameter): Use new style font name.
15148 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15149
151502008-02-01 Jason Rumney <jasonr@gnu.org>
15151
15152 * w32font.c (QCsubranges): New symbol.
15153 (w32font_open, w32font_has_char): Get subranges from subproperty
15154 of extra.
15155 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15156 (syms_of_w32font): Define :subranges symbol.
15157
15158 * font.c (font_put_extra): Expose externally.
15159
15160 * font.h (font_put_extra): Move declaration from font.c.
15161
15162 * font.c (Ffont_get): Use font driver to determine otf capability.
15163 (adjust_anchor): Check if driver defines anchor_point before using.
15164
15165 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15166 (w32font_draw): Use options.
15167 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15168 Fix detection of truetype fonts.
15169 (registry_to_w32_charset): Handle charsets other than iso8859-1
15170 expressed as lisp symbols.
15171 (w32_registry): Express charset as lisp symbol.
15172 (fill_in_logfont): Reverse pixel and point height logic.
15173 Don't set width here. Set quality to default.
15174
15175 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15176 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15177
15178 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15179 Remove redundant loop and allocation.
15180
15181 * makefile.w32-in (font.o, w32font.o): New objects.
15182 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15183 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15184
15185 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15186 STORE_XCHARB a valid l-value.
15187
15188 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15189 calculations for non-Truetype fonts.
15190 (x_draw_glyph_string): Sync with xterm.c.
15191 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15192 Remove redundant code.
15193 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15194
15195 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15196 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15197
15198 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15199 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15200
15201 * w32font.c: New file for w32 font backend.
15202
152032008-02-01 Kenichi Handa <handa@m17n.org>
15204
15205 * term.c: Don't include "buffer.h" twice.
15206
152072008-02-01 Kenichi Handa <handa@m17n.org>
15208
15209 * character.c (Funibyte_string): New function.
15210 (syms_of_character): Defsubr it.
15211
152122008-02-01 Jason Rumney <jasonr@gnu.org>
15213
15214 * w32term.c [USE_FONT_BACKEND]:
15215 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15216 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15217 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15218 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15219 (x_free_frame_resources): Sync with xterm.c.
15220
152212008-02-01 Andreas Schwab <schwab@suse.de>
15222
15223 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15224 char-table size.
15225
152262008-02-01 Kenichi Handa <handa@m17n.org>
15227
15228 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15233 font_otf_gpos, add font_drive_otf.
15234
15235 * fontset.c (fontset_find_font): Pay attention to font size
15236 specified for a font.
15237 (reorder_font_vector): Check contents of font_def.
15238
15239 * font.c (struct otf_list): Delete it.
15240 (otf_list): Make it a lisp variable.
15241 (otf_open): Use lispy otf_list.
15242 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15243 (check_otf_features): New function.
15244 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15245 New functions.
15246 (font_drive_otf): New function merging font_otf_gsub and
15247 font_otf_gpos.
15248 (font_open_for_lface): New arg spec. Change argument order.
15249 (font_load_for_face): Adjust for the change of font_open_for_lface.
15250 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15251 Ffont_otf_gpos.
15252 (syms_of_font): Staticpro otf_list. Delete defsubr of
15253 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15254
15255 * xfaces.c (set_font_frame_param): Adjust for the change of
15256 font_open_for_lface.
15257
15258 * font.h (font_open_for_lface): Adjust prototype.
15259 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15260 member otf_drive.
15261 (font_otf_gsub, font_otf_gpos): Delete externs.
15262 (font_drive_otf): Extern it.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * font.c (font_at): If the window W is not on a window system,
15267 return Qnil.
15268
15269 * coding.c (produce_chars, encode_coding): Don't call
15270 insert_from_gap if no characters to produce.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15275 Fclear_face_cache.
15276
15277 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15278
152792008-02-01 Miles Bader <miles@gnu.org>
15280
15281 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15282 Parse "--disable-font-backend" option.
15283 (standard_args): Add "--disable-font-backend" option.
15284
152852008-02-01 Kenichi Handa <handa@m17n.org>
15286
15287 * fontset.c (fontset_find_font): New function.
15288 (fontset_font): Use fontset_find_font.
15289 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15290 Register the specified font for all Latin characters.
15291 (new_fontset_from_font): Register the specified font for all Latin
15292 characters.
15293 (dump_fontset): For a realized fontset, include the base fontset
15294 name in the returned vector.
15295
152962008-02-01 Kenichi Handa <handa@m17n.org>
15297
15298 * character.h (CHAR_STRING): Cast C to unsigned on calling
15299 char_string.
15300
15301 * character.c (char_string): Type of arg C changed to unsigned.
15302 Signal an error if C is an invalid character code.
15303
15304 * editfns.c (general_insert_function, Fchar_to_string):
15305 Use CHARACTERP, not INTEGERP.
15306
153072008-02-01 Kenichi Handa <handa@m17n.org>
15308
15309 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15310 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15311
15312 * regex.c (analyse_first): Fix for multibyte characters in "case
15313 charset:" and "case categoryspec:".
15314
153152008-02-01 Andreas Schwab <schwab@suse.de>
15316
15317 * Makefile.in (LIBES): Move standard libraries to the end.
15318
153192008-02-01 Kenichi Handa <handa@m17n.org>
15320
15321 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15322 nonzero, don't shrink the buffer nextb.
15323
15324 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15325
15326 * coding.c (coding_alloc_by_making_gap): New arg offset.
15327 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15328 offset.
15329 (decode_coding_iso_2022): Update coding->safe_charsets.
15330 (decode_coding_gap): Temporarily set
15331 current_buffer->text->inhibit_shrinking to 1.
15332
153332008-02-01 Kenichi Handa <handa@m17n.org>
15334
15335 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15336 indexing into elements of s->cmp and s->char2b.
15337
153382008-02-01 Juanma Barranquero <lekktu@gmail.com>
15339
15340 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15345 target_multibyte instead of multibyte.
15346 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15347 (bcmp_translate): Change the argument name from multibyte to
15348 target_multibyte.
15349
153502008-02-01 Kenichi Handa <handa@m17n.org>
15351
15352 These changes are to compile a regexp into a pattern that can be
15353 used both for multibyte and unibyte targets.
15354
15355 * Makefile.in (search.o): Depend on charset.h.
15356
15357 * character.c (multibyte_char_to_unibyte_safe): New function.
15358
15359 * search.c: Include "charset.h".
15360 (compile_pattern_1): Delete argument multibyte. Don't set
15361 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15362 (compile_pattern): Don't compare cp->buf.target_multibyte.
15363 Compare cp->buf.charset_unibyte.
15364 (compile_pattern): Set cp->buf.target_multibyte.
15365
15366 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15367
15368 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15369
15370 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15371 multibyte. Change callers.
15372 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15373 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15374 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15375 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15376 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15377 (regex_compile): Make the compiled pattern usable both for
15378 multibyte and unibyte targets.
15379 (analyse_first): Make the fastmap usable both for multibyte and
15380 unibyte targets.
15381 (TRANSLATE_VIA_MULTIBYTE): Delete.
15382 (re_match_2_internal): Pay attention to the case that the
15383 multibyteness of bufp and target may be different.
15384
153852008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15388 empty box occupy at least one column width.
15389
153902008-02-01 Miles Bader <miles@gnu.org>
15391
15392 * Makefile.in: Remove redundant HAVE_XFT clause.
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15397
153982008-02-01 Kenichi Handa <handa@m17n.org>
15399
15400 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15401 being nil.
15402
154032008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15406
154072008-02-01 Kenichi Handa <handa@m17n.org>
15408
15409 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * search.c (simple_search): Fix previous change.
15414
154152008-02-01 Kenichi Handa <handa@m17n.org>
15416
15417 * xftfont.c (ftfont_font_format): Extern declaration.
15418
15419 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15420
15421 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15422 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15423
15424 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15425 (ftfont_font_format): Fix previous change.
15426
15427 * font.h (Ffont_xlfd_name): EXFUN it.
15428
15429 * font.c (font_parse_xlfd): Fix the array size of `f'.
15430 (register_font_driver): Use EQ to compare driver->type.
15431
15432 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15433 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15434 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15439 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * xfont.c (xfont_open): Set font->format.
15444
15445 * xftfont.c (xftfont_open): Set font->format.
15446
15447 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15448 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15449 (ftfont_open): Set font->format.
15450 (ftfont_font_format): New function.
15451
15452 * font.h (struct font): New member format.
15453
15454 * font.c (Qopentype): New variable.
15455 (syms_of_font): Defsym it.
15456 (Fquery_font): Change the format of the last element of the return
15457 value.
15458
154592008-02-01 Kenichi Handa <handa@m17n.org>
15460
15461 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15462 last resort.
15463
154642008-02-01 Kenichi Handa <handa@m17n.org>
15465
15466 * coding.c (detect_coding_charset): Fix detection of multi-byte
15467 charset.
15468
154692008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15470
15471 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * xdisp.c (get_next_display_element): Set it->face_id for the
15476 first component of a composition.
15477 (x_produce_glyphs): Check if the font is changed or not for composition.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * fontset.c (Qlatin): New variable.
15482 (syms_of_fontset): Define it as a lisp symbol.
15483 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15484
154852008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * font.c (font_unparse_fcname): Pay attention to the case that
15488 some of font property is a null string.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * term.c: Include "composite.h".
15493 (encode_terminal_code): Output all components of composition.
15494 Check the size of encode_terminal_src.
15495 (produce_glyphs): For composition, call produce_composite_glyph.
15496 (append_composite_glyph, produce_composite_glyph): New functions.
15497
15498 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15499 is not found, get font_info from the current ascii face.
15500
155012008-02-01 Kenichi Handa <handa@m17n.org>
15502
15503 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15504 buffer-file-name to Qnil before calling insert_from_buffer.
15505
15506 * font.c (font_unparse_fcname): Pay attention to the case that
15507 foundry is a null string.
15508
155092008-02-01 Kenichi Handa <handa@m17n.org>
15510
15511 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15512
15513 * font.c (Qunicode_sip): New variable.
15514 (syms_of_font): Declare it as a Lisp symbol.
15515
15516 * font.h (Qunicode_sip): Extern it.
15517
155182008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * composite.c (get_composition_id): Pay attention to TAB component.
15521
15522 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15523 TAB. Adjust for the change of s->char2b which always points to
15524 the first element of allocated memory.
15525
15526 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15527
15528 * xdisp.c (handle_composition_prop): Set it->c to the first
15529 non-TAB component.
15530 (fill_composite_glyph_string): Change argument.
15531 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15532 (x_produce_glyphs): Fix handling of left/right padding.
15533
155342008-02-01 Kenichi Handa <handa@m17n.org>
15535
15536 * coding.c (detect_coding_system): Fix for handling off
15537 inhibit_iso_escape_detection. Fix for the case that no coding
15538 system is defined for a specific coding category.
15539
155402008-02-01 Kenichi Handa <handa@m17n.org>
15541
15542 * font.c (font_matching_entity): Delete unused local var.
15543
15544 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15545 opening a font.
15546
15547 * fileio.c (Finsert_file_contents): On recovering a file, assume
15548 Unix-like eol.
15549 (choose_write_coding_system): On auto-saving a file, force
15550 Unix-like eol.
15551
15552 * coding.c (setup_coding_system): Fix setting of
15553 coding->common_flags based on eol_type.
15554 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15555 inherit from it.
15556
155572008-02-01 Kenichi Handa <handa@m17n.org>
15558
15559 * alloc.c (NSTATICS): Increas to 0x600.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15564 (ftfont_list): Don't check :name property.
15565 (ftfont_match): New function.
15566 (ftfont_pattern_entity): If the pattern doesn't contain
15567 FC_SPACING, don't assume FC_MONO.
15568
15569 * font.h (struct font_driver): New member `match'.
15570 (font_update_drivers): Adjust prototype.
15571
15572 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15573 property of FONT.
15574 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15575 them unconditionally.
15576 (font_matching_entity): New function.
15577 (font_open_by_name): Try font_matching_entity if exact match is
15578 not found.
15579 (font_update_drivers): Delete the arg FONT. Return a list of
15580 actually used backends. Don't free faces, font caches here.
15581 Don't store data in frame parameters. Don't call x_set_font.
15582 (Ffont_spec): Store :name property as is.
15583 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15584 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15585 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15586 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15587 Call font->driver->otf_gsub instead of font_otf_gsub.
15588
15589 * frame.c (x_set_font_backend): Do more works that were done in
15590 font_update_drivers before.
15591
15592 * xfont.c (xfont_match): New function.
15593 (xfont_driver): Set xfont_driver.match to xfont_match.
15594 (xfont_draw): Set font in GC if necessary.
15595
15596 * ftxfont.c (ftxfont_match): New function.
15597 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15598
15599 * xftfont.c (xftfont_match): New function.
15600 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * font.h (struct font): New member scalable.
15605 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15606 (font_otf_gsub): Adjust prototype.
15607
15608 * font.c (font_otf_capability): Fix handling of the default langsys.
15609 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15610 Check the contents of SPEC.
15611 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15612 (check_gstring): New function.
15613 (REPLACEMENT_CHARACTER): New macro.
15614 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15615 glyph codes of GSTRING.
15616 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15617 (font_prepare_composition): Set cmp->glyph_len.
15618 (font_open_entity): Set font->scalable.
15619 (Ffont_get): Handle :otf property.
15620 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15621 functions.
15622 (Fquery_font): Use font->font.full_name.
15623 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15624 Sfont_otf_alternates.
15625
15626 * ftfont.c (ftfont_open): Set font->font.full_name and
15627 font->font.name properly. Fix calculation of font->font.height
15628 and font->min_width.
15629
15630 * ftxfont.c (ftxfont_create_gcs): New function.
15631 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15632 (ftxfont_draw_backgrond): Fix filling region.
15633 (ftxfont_default_fid): New function.
15634 (ftxfont_open): Set xfont->fid to the return value of
15635 ftxfont_default_fid.
15636 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15637 (ftxfont_done_face): Free only GCs that are created by
15638 ftxfont_create_gcs.
15639 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15640
15641 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15642 Clip to src->width, etc (not src->clip_XXX).
15643
15644 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15645 FontBackend frame parameter.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 * font.h (struct font_driver_list): New member `on'.
15650 (Fclear_font_cache): EXFUN it.
15651 (font_update_drivers): Extern it.
15652
15653 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15654 (font_list_entities): Check driver_list->on.
15655 (register_font_driver): Initalize `on' member to 0.
15656 (font_update_drivers): New function.
15657 (Fclear_font_cache): Check driver_list->on.
15658
15659 * frame.h (Qfont_backend): Extern it.
15660 (x_set_font_backend): Extern it.
15661
15662 * frame.c (Qfont_backend): New variable.
15663 (frame_parms): New element for font-backend.
15664 (x_set_font_backend): New function.
15665
15666 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15667 FontBackend frame parameter.
15668 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15669 x_set_font_backend.
15670
15671 * xfont.c (xfont_list): Don't try listing by :name property if the
15672 name is not for XLFD.
15673
156742008-02-01 Kenichi Handa <handa@m17n.org>
15675
15676 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15677 (LGLYPH_SET_TO): New macros.
15678 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15679 element of G is vector or not.
15680 (font_at): Extern it.
15681
15682 * font.c: Include window.h.
15683 (font_lispy_object): New function.
15684 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15685 end of valid glyph.
15686 (font_close_object): Fix getting (struct font *).
15687 (font_at): New function.
15688 (Ffont_get): If FONT is a font-object, get entity from it.
15689 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15690 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15691 range check.
15692 (Ffont_at): New function.
15693 (syms_of_font): Defsubr Sfont_at.
15694
15695 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15696 before the entry for Qcomposition.
15697 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15698 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15699 the font in gstring.
15700 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15701 LGLYPH_FORM (g) to detect the end of valid glyph.
15702 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15703 we are composing with gstring.
15704
15705 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15706 Check if adjustment is vector or not.
15707
15708 * Makefile.in (font.o): Make it depends on window.h.
15709
157102008-02-01 Kenichi Handa <handa@m17n.org>
15711
15712 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15713 adjustment is vector or not.
15714
157152008-02-01 Miles Bader <miles@gnu.org>
15716
15717 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15718
157192008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15722 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15723 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15724
15725 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15726 (DEVICE_DELTA): Fix typo.
15727 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15728 LGLYPH format.
15729
15730 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15731 the change of LGLYPH format.
15732
157332008-02-01 Kenichi Handa <handa@m17n.org>
15734
15735 * ftfont.c (ftfont_list): Fix typo.
15736 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15737
157382008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15739
15740 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15741
15742 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15743 xftface_info is non-NULL.
15744
157452008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15746
15747 * ftfont.c (ftfont_list): Move misplaced #endif.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * ftfont.c (ftfont_list): Pay attention to the case that
15752 FC_CAPABILITY is not defined.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * xftfont.c (xftfont_open): Set charset related members to -1.
15757
15758 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15759 QCname.
15760 (ftfont_open): Set charset related members to -1.
15761
15762 * fontset.c (Votf_script_alist): New variable.
15763 (syms_of_fontset): Initialize it.
15764 (fontset_font): Delete unused variable.
15765
15766 * fontset.h (Votf_script_alist): Extern it.
15767
15768 * font.c (font_find_for_lface): Optimize code.
15769
15770 * font.h (font_close_object, font_merge_old_spec): Extern them.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15775 (syms_of_font): Initialize them.
15776 (font_pixel_size): Allow float value in dpi.
15777 (font_prop_validate_type): Delete.
15778 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15779 Change caller.
15780 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15781 (font_prop_validate_extra): Delete.
15782 (font_prop_validate_spacing): New function.
15783 (font_property_table): Add elements for all known properties.
15784 (get_font_prop_index): Rename from check_font_prop_name. New
15785 argument FROM. Change caller.
15786 (font_prop_validate): Validate all known properties.
15787 (font_put_extra): Delete argument force. Change caller.
15788 (font_expand_wildcards): Make it static. Fix the way of shrinking
15789 the possible range.
15790 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15791 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15792 Change caller.
15793 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15794 (font_parse_fcname): Delete argument merge. Fix parsing of point
15795 size. Don't validate properties values here. Change caller.
15796 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15797 (font_open_by_name): Delete unused variable.
15798 (Ffont_spec): Likewise. Validate property values.
15799 (Ffont_match_p): New function.
15800
15801 * font.h (QCscalable): Extern it.
15802 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15803
15804 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15805
15806 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15807 (xfont_list_pattern): New function.
15808 (xfont_list): Use xfont_list_pattern.
15809
158102008-02-01 Kenichi Handa <handa@m17n.org>
15811
15812 * font.h (Flist_fonts): EXFUN it.
15813
158142008-02-01 Jason Rumney <jasonr@gnu.org>
15815
15816 * w32term.c (w32_initialize): Add back smoothing_type and
15817 smoothing_enabled definitions.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15822 s->face->font on determining underline position.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15827 (font_has_char): Accept font-object too.
15828 (font_find_for_lface): Try at first with a size specified in face.
15829
158302008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15833 font_open_by_name.
15834
158352008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 * font.h (QCspacing, QCdpi): Extern them.
15838 (enum font_spacing): New enum.
15839 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15840
15841 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15842 (QCspacing, QCdpi): New variables.
15843 (syms_of_font): Initialize them.
15844 (font_pixel_size): New function.
15845 (font_put_extra): New function.
15846 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15847 in FONT_EXTRA.
15848 (font_parse_fcname): Handle enumerated values (e.g. bold).
15849 Fix handling font size. Add QCname property that contains only
15850 unknown properties.
15851 (font_score): Change argument. Change caller. Pay attention to
15852 FONT_PIXEL_SIZE_QUANTUM.
15853 (font_sort_entites, font_list_entities, font_find_for_lface)
15854 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15855 (Ffont_spec): Add QCname property that contains only unknown properties.
15856
15857 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15858 include weight in listing pattern, instead check weight of each
15859 listed font. Don't include scalable in pattern. Pay attention to
15860 FONT_PIXEL_SIZE_QUANTUM.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * font.c (font_parse_fcname): Fix parsing of point-size.
15865 (font_unparse_fcname): Produce symbolic names for style properties.
15866 (font_list_entities): Handle float size correctly.
15867 (font_open_by_name): Prefer `normal' property values if the name
15868 doesn't specify them.
15869
15870 * fontset.c (Finternal_char_font): Use font_get_name, not
15871 Ffont_xlfd_name.
15872
15873 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15874 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15875 pattern. Don't force scalable.
15876
15877 * xftfont.c (xftfont_open): For generating a name, start from
15878 96-byte buffer.
15879
158802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15881
15882 * frame.h (x_new_fontset2): Fix prototype.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * font.h (struct font_driver): Delete member parse_name.
15887 (font_match_p, font_get_spec, font_parse_fcname)
15888 (font_unparse_fcname): Extern them.
15889 (font_get_name): Adjust prototype.
15890
15891 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15892 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15893 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15894 unnecessary checks for weight, slant, and swidth.
15895 (font_parse_fcname): New function.
15896 (font_unparse_fcname): New function.
15897 (font_parse_name): New function.
15898 (font_match_p): New function.
15899 (font_get_name): Change return value to Lisp string.
15900 (font_get_spec): New function.
15901 (Qunspecified, Qignore_defface): Don't extern them.
15902 (font_find_for_lface): Assume that LFACE is fully specified.
15903 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15904 object, use it for FACE.
15905 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15906 driver->parse_name.
15907 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15908
15909 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15910 prototype.
15911
15912 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15913 argument F. Don't call Fnew_fontset. Instead, directly call
15914 make_fontset.
15915
15916 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15917
15918 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15919 of x_new_fontset2.
15920
15921 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15922 (Qsans__serif): New variables.
15923 (ftfont_generic_family_list): New variable.
15924 (syms_of_ftfont): Initialize the above variables.
15925 (ftfont_pattern_entity): Delete argument NAME.
15926 (ftfont_list_generic_family): New function.
15927 (ftfont_parse_name): Delete this function.
15928 (ftfont_list): Try generic family only when FcFontList found no font.
15929 (ftfont_list_family): Fix args to FcObjectSetBuild.
15930
15931 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15932 object in attrs[LFACE_FONT_INDEX].
15933 (set_lface_from_font_name): Cancel all changes for font-backend.
15934 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15935 function.
15936 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15937 font object in QCfont attribute.
15938 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15939 (realize_default_face) [USE_FONT_BACKEND]: Call
15940 set_lface_from_font_and_fontset.
15941
15942 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15943 "fixed", and signal error here if no suitable font was found.
15944
15945 * xfont.c (xfont_parse_name): Delete this function.
15946
15947 * xftfont.c (xftfont_open): Change coding style of error
15948 handling. Generate fontconfig's fontname pattern.
15949
15950 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15951 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15952
15953 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15954 Both args FONTSET and FONT_OBJECT must be existing ones.
15955
159562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15957
15958 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15959
159602008-02-01 Kenichi Handa <handa@m17n.org>
15961
15962 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15963
15964 * font.h (struct font): Fix typo.
15965
15966 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15967 XLFD_XXX_INDEX.
15968 (enum xlfd_field_mask): New enum.
15969 (intern_font_field): Changed argument. Change caller. If digits
15970 are followed by non-digits, return a symbol.
15971 (font_expand_wildcards): New function.
15972 (font_parse_xlfd): Fix wildcard handling.
15973 (Ffont_spec): If :name is specified, reflect the info in the other
15974 properties.
15975
15976 * ftfont.c (ftfont_pattern_entity): Fix typo.
15977 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15978 locale.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15983
15984 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15985 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15986 registry doesn't specify encoding part.
15987 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15988 (font_open_by_name): At first try parsing the name.
15989 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15990 as Lisp symbols.
15991
15992 * fontset.c (reorder_font_vector): Pay attention to the case that
15993 the 3rd element of font_def is nil.
15994 (fontset_font): For the default fontset, append one more fontset
15995 elements for a script-based font specification. Don't add script
15996 attribute on finding a font.
15997 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15998 font name.
15999 (fontset_ascii_font): If a font can't be opened, return nil.
16000
16001 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
16002 (ftfont_pattern_entity): New function.
16003 (ftfont_get_cache): Assume that freetype_font_cache is already
16004 initialized.
16005 (ftfont_list): Handle the case that a file is specified in font
16006 name. Use ftfont_pattern_entity to generate entities.
16007 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
16008 (syms_of_ftfont): Initialize freetype_font_cache.
16009
16010 * xftfont.c (xftfont_open): Make the font name fontconfig's
16011 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
16012 (xftfont_close): Free font->font.name if not NULL.
16013
16014 * xfont.c (xfont_list): If script is specified for a font, return
16015 null_vector.
16016 (xfont_list_family): Declare argument type.
16017
16018 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
16019 name, set LFACE_FONT (lface) to nil.
16020
16021 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
16022 return Qnil.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
16027 (standard_args): Add "-enable-font-backend".
16028
160292008-02-01 Kenichi Handa <handa@m17n.org>
16030
16031 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
16032 (struct xftdraw_list, xftdraw_list): Delete them.
16033 (register_xftdraw, check_xftdraw): Delete them.
16034 (xftfont_prepare_face): Don't call register_xftdraw.
16035 (xftfont_done_face): Don't call check_xftdraw.
16036 (xftfont_draw): Get background color only when with_background is
16037 nonzero.
16038
16039 * xfont.c (xfont_encode_char): Fix calculation of char2b.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 These changes are for the new font handling codes.
16044
16045 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
16046 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
16047 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
16048 (FONTSRC, FONTOBJ): New variables.
16049 (obj): Add $(FONTOBJ).
16050 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
16051 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
16052 @LIBOTF_LIBS@.
16053 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
16054 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
16055
16056 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
16057
16058 * character.h (Vscript_representative_chars): Extern it.
16059
16060 * character.c (Vscript_representative_chars): New variable.
16061 (syms_of_character): Declare it as a Lisp variable.
16062
16063 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
16064 enable_font_backend is nonzero, accept the composition method
16065 COMPOSITION_WITH_GLYPH_STRING.
16066
16067 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
16068 enumeration COMPOSITION_WITH_GLYPH_STRING.
16069
16070 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
16071 members clip_x, clip_y, clip_width, and clip_height.
16072 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
16073
16074 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
16075 --enable-font-backend. Call syms_of_font.
16076
16077 * fns.c (assoc_no_quit): New function.
16078
16079 * fontset.h (FONT_INFO_FROM_FACE): New macro.
16080 (face_for_font, new_fontset_from_font)
16081 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
16082
16083 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
16084 (fontset_font, fontset_ascii, face_for_char)
16085 (make_fontset_for_ascii_face, Ffont_info)
16086 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
16087 is nonzero, use font-backend mechanism.
16088 (find_font_encoding): Make it non-static.
16089 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
16090 New functions.
16091
16092 * frame.h (struct frame): New members resx and resy.
16093 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
16094 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
16095
16096 * frame.c [USE_FONT_BACKEND]: Include "font.h".
16097 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
16098
16099 * lisp.h (assoc_no_quit): Extern it.
16100
16101 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
16102 Through out the file, use FONT_INFO_FROM_FACE instead of
16103 FONT_INFO_FROM_ID, use get_per_char_metric instead of
16104 rif->per_char_metric.
16105 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
16106 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
16107 (get_glyph_face_and_encoding, fill_composite_glyph_string)
16108 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16109 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
16110 nonzero, use font-backend mechanism.
16111 (get_per_char_metric): New function.
16112
16113 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
16114 (set_lface_from_font_name)
16115 (set_font_frame_param, free_realized_face)
16116 (prepare_face_for_display, clear_face_gcs)
16117 (Finternal_set_font_selection_order, realize_x_face)
16118 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
16119 font-backend mechanism.
16120 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
16121 (load_face_font) [USE_FONT_BACKEND]: Abort.
16122 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
16123 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
16124
16125 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
16126 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
16127 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
16128 nonzero, register all available font drivers. Call
16129 x_default_font_parameter for deciding a font.
16130 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16131
16132 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16133 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16134 (x_set_glyph_string_clipping_exactly)
16135 (x_compute_glyph_string_overhangs)
16136 (x_draw_glyph_string_foreground)
16137 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16138 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16139 enable_font_backend is nonzero, use font-backend mechanism.
16140 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16141
161422008-02-01 Kenichi Handa <handa@m17n.org>
16143
16144 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16145 system_eol_type.
16146 (syms_of_coding): Initialize system_eol_type.
16147
16148 * process.c (Fset_process_coding_system): Inherit system's eol
16149 format if necessary.
16150
161512008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16152
16153 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16154
161552008-02-01 Kenichi Handa <handa@m17n.org>
16156
16157 * coding.c (decode_eol): Pay attention to buffer relocation in
16158 del_range_2.
16159 (decode_coding): Call decode_eol before restoring undo_list.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * charset.c (Fdefine_charset_internal): Fix setting of
16164 emacs_mule_bytes.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * keyboard.c (read_char): Check if C is a character or not before
16169 looking up Vkeyboard_translate_table.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16174 condition to terminate the loop.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * coding.c (produce_composition): Compare charbuf[i] instead of
16179 args[i] against 0.
16180 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16181
161822008-02-01 Kenichi Handa <handa@m17n.org>
16183
16184 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16185 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16186 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16187 detect_coding.
16188 (emacs_mule_char): Handle old style (Emacs 20) component character
16189 of a composition.
16190 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16191 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16192 composition rule.
16193 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16194
161952008-02-01 Kenichi Handa <handa@m17n.org>
16196
16197 * coding.c (encode_coding_ccl): Allocate destination dynamically
16198 when necessary.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16203 the loop. When quitted, show a proper error message.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16208 src->clip_head and src->clip_tail temporarily instead of src->hl.
16209
16210 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16211 character sequence.
16212 (Fccl_execute_on_string): Use ASET, not XSET.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16217
162182008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * coding.c (decode_coding): Fix the condition of terminating the
16221 decoding loop.
16222
162232008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * data.c (Faset): On setting a character bigger than 255 in a
16226 unibyte string, signal an error instead of make the string multibyte.
16227
162282008-02-01 Kenichi Handa <handa@m17n.org>
16229
16230 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16231 made by a mapping table.
16232
162332008-02-01 Kenichi Handa <handa@m17n.org>
16234
16235 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16236 not.
16237 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16238 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16239
16240 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16241 s->face is NULL or not.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16246 (x_draw_glyph_string): Fix drawing of right_overhang and
16247 left_overhang around/on cursor.
16248
16249 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * coding.c (Fdefine_coding_system_internal)
16258 (Fdefine_coding_system_alias): Avoid a duplicated element in
16259 Vcoding_system_alist.
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16264
16265 * coding.c (Qcoding_system_define_form): New variable.
16266 (syms_of_coding): Intern and staticpro it.
16267 (Fcoding_system_p): Check Qcoding_system_define_form.
16268 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16269
16270 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16271 Fcoding_system_p.
16272 (CHECK_CODING_SYSTEM): If ID is not available, call
16273 Fcheck_coding_system.
16274 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16275 Try also Fcheck_coding_system.
16276
162772008-02-01 Kenichi Handa <handa@m17n.org>
16278
16279 * coding.c (code_conversion_restore): GCPRO arg.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * character.c (lisp_string_width): Check multibyteness of STRING.
16284
162852008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16286
16287 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16288 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16289 (decode_mac_font_name): Use decode_coding_c_string instead of
16290 decode_coding.
16291 (x_load_font): Initialize fontp->fontset to -1. Set
16292 fontp->encoding_type.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 * search.c (search_buffer): Give up BM search on case-fold-search
16297 if one of a target character has a case-equivalence of different
16298 byte length even if that target charcter is an ASCII.
16299 (simple_search): Fix calculation of byte length of matched text.
16300 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * coding.c (decode_coding): Fix handling of invalid bytes.
16305
163062008-02-01 Kenichi Handa <handa@m17n.org>
16307
16308 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16309 Unicode characters.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * coding.c (encode_coding_object): If a pre-write-conversion
16314 function makes a new buffer, kill it.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * coding.c (QCascii_compatible_p): New variable.
16319 (syms_of_coding): Initialize it.
16320 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16321 calling string_char.
16322 (record_conversion_result): Add `default:' case.
16323 (coding_charset_list): Delete unused variable `coding_type'.
16324 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16325 property in the plist of the coding system.
16326 (Fcoding_system_put): Check QCascii_compatible_p.
16327
163282008-02-01 Miles Bader <miles@gnu.org>
16329
16330 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16331 removed calculation of frame `f', as it's now used.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16336 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16337 (UNIDATA): New variable.
16338 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16339 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16340 $(RUN_TEMACS) unconditionally.
16341
163422008-02-01 Kenichi Handa <handa@m17n.org>
16343
16344 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16345 (admindir): New variable.
16346 ($(lispsource)international/charprop.el): New target.
16347
163482008-02-01 Miles Bader <miles@gnu.org>
16349
16350 * character.c (chars-in-region): Remove obsolete function.
16351 (syms_of_character): Remove its initialization.
16352
163532008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16354
16355 * w32select.c (validate_coding_system)
16356 (setup_windows_coding_system): New functions.
16357 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16358 setup_windows_coding_system.
16359 (setup_config, Fw32_get_clipboard_data): Use
16360 validate_coding_system.
16361 (Fx_selection_exists): Move call to setup_config to a place
16362 where signals are allowed.
16363
16364 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16365 (Fcheck_coding_system): Add declarations.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16370
163712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16372
16373 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16374 string as the second argument for x_new_fontset.
16375
163762008-02-01 Kenichi Handa <handa@m17n.org>
16377
16378 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16379 (encode_coding_object): Use safe_call instead of call2.
16380
163812008-02-01 Kenichi Handa <handa@m17n.org>
16382
16383 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16384
16385 * Makefile.in (lisp): Include charprop.el.
16386
163872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16388
16389 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16390 Not sure if it's unnecessary.
16391
163922008-02-01 Steven Tamm <steventamm@mac.com>
16393
16394 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16395 some possibly unnecessary fontset checking code that crashed
16396 when creating a new frame.
16397
163982008-02-01 Kenichi Handa <handa@m17n.org>
16399
16400 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16401 lookup_face.
16402
16403 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16404
16405 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16406
164072008-02-01 Kenichi Handa <handa@m17n.org>
16408
16409 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16410 (coding_charset_list): New function.
16411
16412 * coding.h (coding_charset_list): Extern it.
16413
164142008-02-01 Kenichi Handa <handa@m17n.org>
16415
16416 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16417 concatenation of family and registry.
16418
164192008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * character.h (BYTE8_STRING): Fix typo.
16422
16423 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16424 string to multibyte (sync to HEAD).
16425
16426 * casefiddle.c (casify_region): Handle changes in byte-length
16427 using replace_range_2 (sync to HEAD).
16428
164292008-02-01 Andreas Schwab <schwab@suse.de>
16430
16431 * chartab.c (map_char_table): GCPRO table and arg.
16432
164332008-02-01 Kenichi Handa <handa@m17n.org>
16434
16435 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16436 already at limit.
16437
164382008-02-01 Kenichi Handa <handa@m17n.org>
16439
16440 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16441 instead of fast_c_string_match_ignore_case.
16442 (find_font_encoding): Change argument to Lisp_Object. Use
16443 fast_string_match_ignore_case instead of
16444 fast_c_string_match_ignore_case. Change caller.
16445
164462008-02-01 Kenichi Handa <handa@m17n.org>
16447
16448 * xdisp.c (get_next_display_element): In unibyte case, decide to
16449 display in octal form by checking a character by
16450 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16451
16452 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16453
16454 * character.c (unibyte_has_multibyte_table): New variable.
16455
16456 * character.h (unibyte_has_multibyte_table): Extern it.
16457 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16458
164592008-02-01 Kenichi Handa <handa@m17n.org>
16460
16461 * coding.c (encode_coding_iso_2022): Fix handling of charset
16462 annotation.
16463
164642008-02-01 Kenichi Handa <handa@m17n.org>
16465
16466 * coding.c (setup_coding_system): If coding_system is nil, use
16467 Qundecided.
16468 (Fterminal_coding_system): Return nil if terminal coding system is
16469 `undecided'.
16470 (syms_of_coding): Define coding-system `undecided' here. Setup
16471 terminal_coding as `undecided'.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * xdisp.c (message_dolog, set_message_1): Call
16476 unibyte_char_to_multibyte with arg type int.
16477
16478 * lread.c (read1): Fix reading of a char-table.
16479
16480 * print.c (print_object): Include sub char-table in circularities
16481 detection.
16482
164832008-02-01 Kenichi Handa <handa@m17n.org>
16484
16485 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16486 Append the found sequences in car of ARGS instead of prepending.
16487
164882008-02-01 Kenichi Handa <handa@m17n.org>
16489
16490 * fileio.c (report_file_error): Make a unibyte string from
16491 strerror (errorno).
16492 (Fsubstitute_in_file_name): Fix the arg to
16493 unibyte_char_to_multibyte. It is evaluated twice.
16494
164952008-02-01 Kenichi Handa <handa@m17n.org>
16496
16497 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16498
164992008-02-01 Kenichi Handa <handa@m17n.org>
16500
16501 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16502 BOM is not found.
16503 (detect_coding, detect_coding_system): Optimization for ISO-2022
16504 when no 8-bit data is found.
16505
165062008-02-01 Jason Rumney <jasonr@gnu.org>
16507
16508 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16509
165102008-02-01 Kenichi Handa <handa@m17n.org>
16511
16512 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16513 CHARS.
16514
165152008-02-01 Steven Tamm <steventamm@mac.com>
16516
16517 * macterm.c (mac_encode_char): Add charset argument and update
16518 to use encoding_type.
16519 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16520 switch to pure fontset.
16521 (decode_mac_font_name): Temporarily remove decoding.
16522 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16523 (x_load_font): Temporarily remove encoding.
16524
165252008-02-01 Kenichi Handa <handa@m17n.org>
16526
16527 * xfaces.c (Fface_font): If frame is not on a window system,
16528 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16529 refer to face->font.
16530 (split_font_name_into_vector, build_font_name_from_vector)
16531 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16532 when HAVE_WINDOW_SYSTEM is defined.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16537 (x_produce_glyphs): Fix setting of members of cmp in case
16538 cmp->glyph_len is zero.
16539
16540 * fontset.c (Fset_fontset_font): Fix docstring.
16541 (Ffontset_info): Make it backward compatible. New arg ALL.
16542
165432008-02-01 Kim F. Storm <storm@cua.dk>
16544
16545 * process.c (read_process_output): Grow decoding_buf when needed;
16546 this could cause a crash in allocate_string and compact_small_strings.
16547
165482008-02-01 Kenichi Handa <handa@m17n.org>
16549
16550 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * coding.c (setup_coding_system): Set coding->common_flags
16555 correctly for raw-text.
16556 (consume_chars): On encoding unibyte text by raw-text, don't check
16557 multibyte form.
16558 (encode_coding): On encoding by raw-text, never use translation tables.
16559
16560 * fileio.c (e_write): Short cut for the case of no encoding.
16561
165622008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * coding.c (detect_coding, detect_coding_system): Delete unused
16565 variables.
16566
165672008-02-01 Kenichi Handa <handa@m17n.org>
16568
16569 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16570 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * coding.c (Ffind_coding_systems_region_internal): Include
16575 raw-text and no-conversion in the result.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16580 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16581 FONT_DEF.
16582 (font_def_arg, add_arg, from_arg, to_arg): New args.
16583 (set_fontset_font): Change argument.
16584 (Fset_fontset_font): Fix for the case that TARGET is a script
16585 name and charset name.
16586 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * fontset.c (fontset_font): Rename from fontset_face. Change return
16591 value.
16592 (face_suitable_for_char_p, face_for_char): Adjust for the change
16593 of fontset_font.
16594 (make_fontset_for_ascii_face): Fix setting of the fontset element
16595 for ASCII.
16596 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16597 to get a font name.
16598 (Ffontset_info): Adjust for the change of fontset_font.
16599
16600 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16601
16602 * character.h (LEADING_CODE_LATIN_1_MIN)
16603 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16604
166052008-02-01 Kenichi Handa <handa@m17n.org>
16606
16607 * editfns.c (check_translation): New function.
16608 (Ftranslate_region_internal): Handle M:N mapping.
16609
166102008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16617 goto invalid_code.
16618 (decode_coding_iso_2022): Fix handling of invalid designation.
16619
16620 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16621 after calling code_conversion_save.
16622
166232008-02-01 Kenichi Handa <handa@m17n.org>
16624
16625 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16626
16627 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16628
16629 * fontset.c: Include "intervals.h".
16630 (fontset_face): Fix comparing of Lisp_Objects.
16631 (free_face_fontset, new_fontset_from_font_name): Fix
16632 Lisp_Object/int mixup.
16633
16634 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16635
16636 * coding.c: Add many prototypes for static functions.
16637 (get_translation_table): Allow max_lookup to be NULL.
16638 (decode_coding, Ffind_coding_systems_region_internal)
16639 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16640 get_translation_table with max_lookup NULL.
16641
166422008-02-01 Kenichi Handa <handa@m17n.org>
16643
16644 * coding.c (get_translation_table): Declare it as Lisp_Object.
16645 (LOOKUP_TRANSLATION_TABLE): New macro.
16646 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16647 instead of CHAR_TABLE_REF.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16652 annotation data format.
16653 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16654 Change arguments FROM and TO to single argument NCHARS. Change caller.
16655 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16656 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16657 (decode_coding_ccl, decode_coding_charset): Pay attention to
16658 coding->charbuf_used.
16659 (get_translation): New function.
16660 (produce_chars): New arguments translation_table and last_block.
16661 Translate characters here. Return number of carryover chars.
16662 Change caller.
16663 (produce_composition): New argument pos. Change caller.
16664 Adjust for the change of annotation data format.
16665 (produce_charset, produce_annotation): Likewise.
16666 (decode_coding, encode_coding): Don't call translate_chars.
16667 (consume_chars): New arg translation_table. Change caller.
16668 (translate_chars): Delete.
16669 (syms_of_coding): Make translation-table's number of extra slots 2.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * search.c (simple_search): Fix setting this_pos_byte in backward
16674 search.
16675
16676 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16677 byte sequence.
16678 (detect_coding_ccl): Fix setting of the variable valids.
16679
166802008-02-01 Kenichi Handa <handa@m17n.org>
16681
16682 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16683
16684 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16685
16686 * editfns.c (Ftranslate_region_internal): Rename from
16687 Ftranslate_region. Accept a char-table in TABLE.
16688 (syms_of_editfns): Defsubr Stranslate_region_internal.
16689
16690 * xfaces.c (set_lface_from_font_name): If a font is specified for
16691 a frame, generate a fontset from the font.
16692 (build_scalable_font_name): If the scalable font is requested for
16693 a specific size, don't change that size.
16694 (try_font_list): Try a scalable font also in the case that a
16695 pattern string is specified.
16696
166972008-02-01 Kenichi Handa <handa@m17n.org>
16698
16699 * xfaces.c (Fface_font): New optional arg CHARACTER.
16700
167012008-02-01 Kenichi Handa <handa@m17n.org>
16702
16703 * charset.h (CHARSET_OFFSET): New macro.
16704
167052008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16708
16709 * fontset.c (fontset_face): Handle the case that repertory is a
16710 char-table.
16711 (find_font_encoding): Return nil for unknown encoding.
16712 (Fset_fontset_font): Ignore a font of unknown encoding.
16713
167142008-02-01 Kenichi Handa <handa@m17n.org>
16715
16716 * keymap.c (describe_vector): Handle default value of a char table.
16717
16718 * fontset.c (fontset_face): Handle fallback fonts correctly.
16719 (Ffontset_info): Return infomation about fallback fonts.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * fontset.c (FONTSET_DEFAULT): New macro.
16724 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16725 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16726 the case that it is nil.
16727 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16728 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16729
16730 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16731 subset or superset.
16732
167332008-02-01 Kenichi Handa <handa@m17n.org>
16734
16735 * emacs.c (main): Call init_charset after syms_of_XXX.
16736
16737 * charset.c (Vcharset_map_directory): Delete.
16738 (Vcharset_map_path): New variable.
16739 (load_charset_map_from_file): Use Vcharset_map_path instead.
16740 (init_charset): Initialize Vcharset_map_path.
16741 (syms_of_charset): Delete declaration of "charset-map-directory",
16742 add declaration of "charset-map-path".
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16747 ASCII only string.
16748
16749 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16750
16751 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16752 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16757
16758 * coding.c (QCmnemonic, QCdefalut_char)
16759 (QCdecode_translation_table, QCencode_translation_table)
16760 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16761 (get_translation_table): Return a list of translation tables if
16762 necessary.
16763 (decode_coding): Call get_translation_table with ENCODEP 0.
16764 (char_encodable_p): If translation_table is non-nil, always call
16765 translate_char.
16766 (Fdefine_coding_system_internal): Accept list of translation
16767 tables as :encode-translation-table and :decode-translation-table.
16768 (Fcoding_system_put): New function.
16769 (syms_of_coding): Declare new symbols. Defsubr
16770 Scoding_system_put.
16771 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16772 typically JISX0212.
16773
16774 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16775 when the charset is superset type.
16776
16777 * character.c (translate_char): Accept list of translation tables.
16778
167792008-02-01 Kenichi Handa <handa@m17n.org>
16780
16781 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16782 (CODING_ATTR_TRANS_TBL): New macro.
16783
16784 * coding.c (get_translation_table): New function.
16785 (translate_chars): Fix the bug of skipping annotation data.
16786 (decode_coding, encode_coding): Utilize get_translation_table.
16787 (char_encodable_p, Funencodable_char_position): Translate char if
16788 necessary.
16789 (Ffind_coding_systems_region_internal)
16790 (Fcheck_coding_systems_region): Setup translation table for encode
16791 in a coding system attribute vector in advance.
16792 (Fdefine_coding_system_internal): Allow a symbol as translation
16793 table. For shift-jis type coding system, allow 4th charset.
16794
167952008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16798
16799 * xdisp.c (get_next_display_element): Pass -1 as POS to
16800 FACE_FOR_CHAR if displaying a C-string.
16801
168022008-02-01 Kenichi Handa <handa@m17n.org>
16803
16804 * composite.c (get_composition_id): Handle xoff and yoff in a
16805 composition rule.
16806
16807 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16808 (struct composition): New member lbearing and rbearing.
16809
16810 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16811 (x_get_glyph_overhangs): Handle a composition glyph.
16812 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16813
16814 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16815 composition glyph.
16816
168172008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * print.c: Include charset.h.
16820 (Vprint_charset_text_property): New variable.
16821 (Qdefault): Extern it.
16822 (PRINT_STRING_NON_CHARSET_FOUND)
16823 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16824 (print_check_string_result): New variable.
16825 (print_check_string_charset_prop): New function.
16826 (print_prune_charset_plist): New variable.
16827 (print_prune_string_charset): New function.
16828 (print_object): Call print_prune_string_charset if
16829 Vprint_charset_text_property is not t.
16830 (print_interval): Print nothing if interval->plist is nil.
16831 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16832 variable. Init and staticpro print_prune_charset_plist.
16833
168342008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * fontset.c (new_fontset_from_font_name): Use the specified font
16837 for all characters in the new fontset.
16838
16839 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16840 OBJECT args.
16841
16842 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16843 OBJECT args for composition too.
16844
16845 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16846 OBJECT args.
16847
168482008-02-01 Kenichi Handa <handa@m17n.org>
16849
16850 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16851
16852 * fontset.c (reorder_font_vector): Adjust for the change of
16853 FONT_DEF format.
16854 (fontset_face): New arg id. Change caller.
16855 (face_for_char): New args pos and object.
16856 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16857 (fs_query_fontset): Check NAME by Fassoc too.
16858 (Fset_fontset_font): Allow non-XLFD font name.
16859 (Ffontset_info): Adjust for the change of FONT_DEF format.
16860
16861 * fontset.h (face_for_char): Adjust prototype.
16862
16863 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16864 (append_space, extend_face_to_end_of_line)
16865 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16866 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16867
16868 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16869 POS and OBJECT args.
16870
16871 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16872 POS and OBJECT args.
16873
168742008-02-01 Jason Rumney <jasonr@gnu.org>
16875
16876 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16877 of GlobalAlloc'ed memory.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16882
16883 * charset.h (charset_table_used): Delete extern.
16884
16885 * charset.c (charset_table_used): Make it static.
16886 (map_charset_chars): Fix args to c_function with.
16887
16888 * chartab.c (map_sub_char_table_for_charset): Fix args to
16889 c_function with.
16890
16891 * coding.h (enum coding_result_code): Delete
16892 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16893
16894 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16895 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16896 (Vlast_code_conversion_error): New variables.
16897 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16898 (ONE_MORE_BYTE): Record error if any instead of signaling an
16899 error. If non-ASCII multibyte char is found, return the negative
16900 value of the code. All callers changed to check it.
16901 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16902 (record_conversion_result): New function. Change all codes setting
16903 coding->result to call this function.
16904 (detect_coding_utf_8, decode_coding_utf_8)
16905 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16906 Don't use the local variable incomplete.
16907 (emacs_mule_char): Change the second arg to `const'.
16908 (decode_coding): Fix of flushing out unprocessed data.
16909 (make_conversion_work_buffer): Fix making of a work buffer.
16910 (decode_coding_object): Return coding->dst_object.
16911
16912 * fontset.c (set_fontset_font): Fix args.
16913
16914 * lisp.h (CHARACTERBITS): Define as 22.
16915
16916 * process.c (send_process): Be sure to set coding->src_multibyte.
16917
16918 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * xdisp.c (handle_auto_composed_prop): Give limit to
16923 Fnext_single_char_property_change.
16924
169252008-02-01 Kenichi Handa <handa@m17n.org>
16926
16927 * composite.c (syms_of_composite): Don't make the composition hash
16928 table weak.
16929
16930 * fontset.c (Fset_fontset_font): Fix docstring.
16931
16932 * lisp.h (detect_coding_system): Adjust prototype.
16933
16934 * fileio.c (kill_workbuf_unwind): Delete this function.
16935 (Finsert_file_contents): Adjust the call of detect_coding_system.
16936 Get conversion_buffer by code_conversion_save. Use the macro
16937 CODING_MAY_REQUIRE_DECODING. After decoding, update
16938 coding_system.
16939
16940 * coding.h (make_conversion_work_buffer): Delete extern.
16941 (code_conversion_save): Extern it.
16942
16943 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16944 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16945 (decode_coding_utf_8): Don't do eol converion.
16946 (detect_coding_utf_16): Check coding->src_chars, not
16947 coding->src_bytes. Add heuristics for those that have no signature.
16948 (decode_coding_emacs_mule, decode_coding_iso_2022)
16949 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16950 Don't do eol converion.
16951 (adjust_coding_eol_type): Return a new coding system.
16952 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16953 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16954 each change.
16955 (decode_coding): Pay attention to undo_list. Do eol conversion for
16956 all types of coding-systems (if necessary).
16957 (Vcode_conversion_work_buf_list): Delete it.
16958 (Vcode_conversion_reused_workbuf): Rename from
16959 Vcode_conversion_reused_work_buf.
16960 (Vcode_conversion_workbuf_name): New variable.
16961 (reused_workbuf_in_use): New variable.
16962 (make_conversion_work_buffer): Delete the arg DEPTH.
16963 (code_conversion_restore): Change argument to cons.
16964 (code_conversion_save): Delete the argument BUFFER. Change callers.
16965 (detect_coding_system): New argument src_chars. Change callers.
16966 Fix for utf-16 detection.
16967 (init_coding_once): Don't use ISO_carriage_return.
16968 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16969 reused_workbuf_in_use.
16970
169712008-02-01 Kenichi Handa <handa@m17n.org>
16972
16973 * keymap.c (store_in_keymap): Pay attention to the case that idx
16974 is a cons specifying a character range.
16975
169762008-02-01 Kenichi Handa <handa@m17n.org>
16977
16978 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16979 HANDLED_RECOMPUTE_PROPS.
16980
16981 * coding.c (Fdefine_coding_system_internal): Fix checking of
16982 ascii compatibility.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * charset.c (find_charsets_in_text): Delete unused locale variable.
16987 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16988
16989 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16990 Resync charset_list to Vemacs_mule_charset_list.
16991
16992 * keymap.c (store_in_keymap): Pay attention to the case that idx
16993 is a cons specifying a character range.
16994
169952008-02-01 Kenichi Handa <handa@m17n.org>
16996
16997 * composite.c (update_compositions): Bind inhibit-read-only, etc
16998 to t before calling remove-list-of-text-properties.
16999
17000 * print.c (print_object): Always print ASCII chars as is.
17001
170022008-02-01 Kenichi Handa <handa@m17n.org>
17003
17004 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
17005
17006 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
17007 is a char table.
17008
170092008-02-01 Kenichi Handa <handa@m17n.org>
17010
17011 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * xfaces.c (set_lface_from_font_name): Fix for the case that
17016 FONTNAME is not fontset name.
17017
170182008-02-01 Kenichi Handa <handa@m17n.org>
17019
17020 * fns.c (base64_encode_1): Fix previous change.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * fontset.c (set_fontset_font): New function.
17025 (Fset_fontset_font): If a font is specified for a charset, use
17026 map_charset_chars to store the font spec in a fontset.
17027
170282008-02-01 Kenichi Handa <handa@m17n.org>
17029
17030 * fontset.c (fontset_face): Create a fallback fontset on demand.
17031 (make_fontset): Don't create a fallback fontset here.
17032 (free_face_fontset): Free a fallback fontset (if any) too.
17033 (n_auto_fontsets): Delete this variable.
17034 (auto_fontset_alist): New variable.
17035 (new_fontset_from_font_name): Check auto_fontset_alist.
17036 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
17037 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
17038 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
17039 Defsubr Sfontset_list_all.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
17044
170452008-02-01 Kenichi Handa <handa@m17n.org>
17046
17047 * fontset.c (Fnew_fontset): Check NAME more rigidly.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * editfns.c (Fgoto_char): Fix docstring.
17052
170532008-02-01 Kenichi Handa <handa@m17n.org>
17054
17055 * insdel.c (insert_from_gap): Adjust intervals correctly.
17056
170572008-02-01 Jason Rumney <jasonr@gnu.org>
17058
17059 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
17060 (pfnGetFontUnicodeRanges): New dynamically loaded function.
17061 (w32_initialize): Try to load it.
17062 (x_get_font_repertory): Use it if available.
17063 (w32_encode_char): Add shortcut for unicode output.
17064
17065 * w32fns.c (w32_load_system_font): Default charset to -1.
17066 (x_to_w32_charset): Match all fonts for unicode.
17067 (w32_to_x_charset): New parameter matching. Don't return partial
17068 or wildcard charsets.
17069 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
17070 (w32_codepage_for_font): Return CP_UNICODE for unicode.
17071 (w32_to_x_font): Match charset to real charset.
17072 (enum_font_cb2): Always list unicode versions.
17073
17074 * makefile.w32-in (temacs): Increase EMHEAP.
17075
170762008-02-01 Jason Rumney <jasonr@gnu.org>
17077
17078 * w32term.c (w32_encode_char): New charset parameter.
17079 font_info.encoding becomes encoding_type.
17080 (x_get_font_repertory): New function. Warning: stub only!
17081 (x_new_font): Return quickly if font already set.
17082 (x_new_fontset): fontsetname parameter is Lisp_Object.
17083 Use new fs_query_fontset. Try new_fontset_from_font_name.
17084 Use fontset_name for return value.
17085
17086 * w32term.h: Declare x_get_font_repertory.
17087
17088 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
17089 place of find_charset_in_text. Use encode_coding_object in place
17090 of encode_coding.
17091 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
17092 decode_coding.
17093
17094 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
17095 of x_new_fontset.
17096 (w32_load_system_font): Initialize charset as unicode.
17097 font_info.encoding becomes encoding_type.
17098 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
17099 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
17100 (syms_of_w32fns): Set get_font_repertory_func.
17101
17102 * w32console.c: Include character.h. Use terminal_encode_buffer
17103 from term.c.
17104 (write_glyphs): Use new version of encode_terminal_code. Use
17105 encode_coding_object in place of encode_coding.
17106
17107 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
17108 encoding becomes encoding_type.
17109
17110 * term.c (terminal_encode_buffer): Make externally visible.
17111
17112 * makefile.w32-in: Add character.h dependancies.
17113 (character.o, chartab.o): New targets.
17114
171152008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
17118 CODING_ID_EOL_TYPE.
17119
171202008-02-01 Andreas Schwab <schwab@suse.de>
17121
17122 * coding.c (produce_chars): Revert last change.
17123
171242008-02-01 Kenichi Handa <handa@m17n.org>
17125
17126 * charset.h (charset_unicode): Extern it.
17127
17128 * charset.c (string_xstring_p): Check by (C >= 0x100).
17129 (find_charsets_in_text): Change format of the arc CHARSETS. New
17130 arg MULTIBYTE.
17131 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17132 change of find_charsets_in_text.
17133 (Fsplit_char): Fix doc. Never return unknown.
17134
17135 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17136
17137 * coding.c (Fdefine_coding_system_alias): Update
17138 Vcoding_system_list.
17139
17140 * fontset.c (load_font_get_repertory): Pay attention to the case
17141 that ENCODING of a font is specified by a char-table.
17142
17143 * xterm.c (x_get_font_repertory): Handle the case that the
17144 encoding of font is other than Unicode.
17145
171462008-02-01 Kenichi Handa <handa@m17n.org>
17147
17148 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17149 if a character is encodable by the terminal coding system. If
17150 not, produces proper number of `?'s. Update
17151 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17152 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17153
171542008-02-01 Kenichi Handa <handa@m17n.org>
17155
17156 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17157 variables.
17158 (encode_terminal_code): Change argument. Encode multiple
17159 characters at once. Store the result of encoding in
17160 terminal_encode_buffer.
17161 (write_glyphs, insert_glyphs): Adjust for the change of
17162 encode_terminal_code.
17163 (term_init): Initialize terminal_encode_buffer and
17164 terminal_encode_buf_size.
17165
17166 * coding.c (consume_chars): If coding->src_object is nil, don't
17167 check annotation.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 * character.c (char_string): Use ASCII_CHAR_P instead of
17172 SINGLE_BYTE_CHAR_P.
17173
171742008-02-01 Kenichi Handa <handa@m17n.org>
17175
17176 * xdisp.c (handle_auto_composed_prop): Check if the last
17177 characters of auto-composed region is newly composed with the
17178 following characters.
17179 (handle_composition_prop): Fix checking of point being inside
17180 composition.
17181
171822008-02-01 Kenichi Handa <handa@m17n.org>
17183
17184 * fns.c (concat): Don't change multibyteness of the result by
17185 concatenating an 8-bit character.
17186
17187 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17188 multibyteness of the result when newelt is an 8-bit character.
17189
171902008-02-01 Dave Love <fx@gnu.org>
17191
17192 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17193 EMACS_INT.
17194
17195 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17196
17197 * xfaces.c (face_numeric_value): Declare dim size_t.
17198 (Finternal_lisp_face_equal_p): Remove unused f.
17199
17200 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17201 (MATRIX_ROW): Remove unused vars.
17202 (draw_glyphs, x_insert_glyphs, fast_find_position)
17203 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17204 byte/char counts.
17205
17206 * regex.c (regex_compile): Remove unused var.
17207
17208 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17209
17210 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17211 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17212
17213 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17214
17215 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17216
17217 * fileio.c (Fwrite_region): Remove unused var.
17218
17219 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17220 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17221
17222 * composite.c (Fremove_list_of_text_properties): Declare.
17223
17224 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17225 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17226 (coding_inherit_eol_type): Remove unused attrs.
17227 (detect_coding): Cast arg of detect_eol.
17228
17229 * charset.c (syms_of_charset): Remove unused var p.
17230 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17231 byte/char counts.
17232
17233 * casetab.c (set_case_table): Remove unused var.
17234
17235 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17236 unused vars.
17237
172382008-02-01 Dave Love <fx@gnu.org>
17239
17240 * xterm.c (x_bitmap_mask): Declare.
17241
172422008-02-01 Dave Love <fx@gnu.org>
17243
17244 * xterm.c (x_term_init): Fix type error.
17245
17246 * lisp.h: Add Funibyte_char_to_multibyte.
17247
17248 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17249 (Fset_coding_system_priority): Doc fix.
17250
17251 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17252
17253 * indent.c (check_composition): Make start and end EMACS_INT.
17254
17255 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17256
17257 * xdisp.c (handle_composition_prop, check_point_in_composition):
17258 Make buffer positions EMACS_INT.
17259
17260 * composite.c (find_composition, run_composition_function)
17261 (update_compositions, Ffind_composition_internal): Make buffer
17262 positions EMACS_INT.
17263
17264 * composite.h (find_composition, update_compositions): Make
17265 position args EMACS_INT.
17266
17267 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17268
17269 * intervals.c (get_property_and_range):
17270 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17271
17272 * unexalpha.c: Don't include varargs.h.
17273
172742008-02-01 Dave Love <fx@gnu.org>
17275
17276 * coding.h (ENCODE_UTF_8): New.
17277
17278 * Makefile.in (gtkutil.o): Depend on coding.h.
17279
17280 * coding.c (Fset_coding_system_priority): Doc fix.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17285 the case of auto saving.
17286
172872008-02-01 Andreas Schwab <schwab@suse.de>
17288
17289 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17290 `range' from GC.
17291
172922008-02-01 Kenichi Handa <handa@m17n.org>
17293
17294 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17295
172962008-02-01 Kenichi Handa <handa@m17n.org>
17297
17298 * fileio.c (choose_write_coding_system): Return a decided coding system.
17299 (Fwrite_region): Set Vlast_coding_system_used to the return value
17300 of choose_write_coding_system.
17301
173022008-02-01 Kenichi Handa <handa@m17n.org>
17303
17304 * charset.c (Fset_charset_priority): Pay attention to duplicated
17305 arguments.
17306
17307 * coding.c (QCcategory): New variable.
17308 (syms_of_coding): Defsym it. Set all elements of
17309 Vcoding_category_table and their symbol values.
17310 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17311 coding-category-XXX, and coding-category-list.
17312 (Fdefine_coding_system_internal): Add category in the plist.
17313
173142008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * callproc.c (Fcall_process): Handle carryover correctly.
17317
17318 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17319 (raw_text_coding_system): Check NILP (coding_system).
17320 (coding_inherit_eol_type): Check NILP (coding_system) and
17321 NILP (parent).
17322 (consume_chars): Fix for the case of raw-text.
17323
17324 * process.c (read_process_output): Handle carryover correctly.
17325
173262008-02-01 Dave Love <fx@gnu.org>
17327
17328 * regex.c (re_search_2): Fix last change.
17329
173302008-02-01 Kenichi Handa <handa@m17n.org>
17331
17332 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17333 target_multibyte. Even in a unibyte case, return a converted
17334 multibyte char.
17335 (GET_CHAR_AFTER): New macro.
17336 (PATFETCH): Translate via multibyte char.
17337 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17338 (SETUP_MULTIBYTE_RANGE): New macro.
17339 (regex_compile): Setup compiled code so that its multibyteness
17340 matches that of a target. Fix the handling of "[X-YZ]" using
17341 SETUP_MULTIBYTE_RANGE.
17342 (analyse_first) <charset>: For filling fastmap for all multibyte
17343 characters, don't check by BASE_LEADING_CODE_P.
17344 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17345 the same as RE_MULTIBYTE_P (bufp) now.
17346 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17347 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17348 (TRANSLATE_VIA_MULTIBYTE): New macro.
17349 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17350 It is the same as RE_MULTIBYTE_P (bufp) now.
17351 <exactn>: Translate via multibyte.
17352 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17353 translate it.
17354 <charset, charset_not>: Fetch a character by
17355 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17356 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17357 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17358 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17359 by GET_CHAR_AFTER.
17360 (bcmp_translate): Likewise.
17361
17362 * search.c (compile_pattern): Check the member target_multibyte,
17363 not the member multibyte of buf.
17364
17365 * lread.c (read1): While reading a string, set force_singlebyte
17366 and force_multibyte correctly.
17367
17368 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17369 up of unibyte_to_multibyte_table.
17370
173712008-02-01 Kenichi Handa <handa@m17n.org>
17372
17373 * coding.c (setup_coding_system): If coding has
17374 post-read-conversion or pre-write-conversion, set
17375 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17376 respectively.
17377 (decode_coding_gap): Run post-read-conversion if any.
17378
17379 * fileio.c (Finsert_file_contents): Even if we read into a
17380 unibyte buffer, check if we must decode the result or not.
17381
173822008-02-01 Kenichi Handa <handa@m17n.org>
17383
17384 * coding.c (make_conversion_work_buffer): Change the work buffer
17385 name to the same one as that of Emacs 21.
17386
173872008-02-01 Kenichi Handa <handa@m17n.org>
17388
17389 * coding.h (make_conversion_work_buffer): Adjust prototype.
17390 (code_conversion_restore): Don't extern it.
17391
17392 * coding.c (detected_mask): Delete unused variable.
17393 (decode_coding_iso_2022): Pay attention to the byte sequence of
17394 CTEXT extended segment, and retain those bytes as is.
17395 (decode_coding_ccl): Delete unused variable `valids'.
17396 (setup_coding_system): Delete unused variable `category'.
17397 (consume_chars): Delete unused variable `category'. Make it work
17398 for non-multibyte case.
17399 (make_conversion_work_buffer): Change argument.
17400 (saved_coding): Delete unused variable.
17401 (code_conversion_restore): Don't check saved_coding->destination.
17402 (code_conversion_save): New function.
17403 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17404 instead of record_unwind_protect.
17405 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17406 (detect_coding_system): Delete unused variable `mask'.
17407 (Fdefine_coding_system_internal): Delete unused variable id.
17408
17409 * fileio.c (kill_workbuf_unwind): New function.
17410 (Finsert_file_contents): On replacing, call
17411 make_conversion_work_buffer with correct args, and call
17412 record_unwind_protect with the first arg kill_workbuf_unwind.
17413
17414 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17415
174162008-02-01 Kenichi Handa <handa@m17n.org>
17417
17418 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17419 (fontset_add): Fix for the case that TO is less than TO1.
17420 (Ffontset_info): Don't use fallback fontset on checking the
17421 default fontset.
17422 (dump_fontset): New function for debugging.
17423
17424 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17425 coding_type is Qcharset.
17426
174272008-02-01 Kenichi Handa <handa@m17n.org>
17428
17429 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17430 (map_char_table): Don't inherit the value from the parent on
17431 initializing VAL. Adjust for the above change.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 * coding.c (Qsignature, Qendian): Delete these variables.
17436 (syms_of_coding): Don't initialize them.
17437 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17438 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17439 detect_info->found.
17440 (decode_coding_utf_16): Don't detect BOM here.
17441 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17442 is NOT utf_16_without_bom.
17443 (setup_coding_system): For a coding system of type utf-16, check
17444 if the attribute :endian is Qbig or not (not nil or not), and set
17445 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17446 (detect_coding): If coding type is utf-16 and BOM detection is
17447 required, detect it.
17448 (Fdefine_coding_system_internal): For a coding system of type
17449 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17450
174512008-02-01 Kenichi Handa <handa@m17n.org>
17452
17453 * coding.c (coding_set_source): Fix for the case that the current
17454 buffer is different from coding->src_object.
17455 (decode_coding_object): Don't use the conversion work buffer if
17456 DST_OBJECT is a buffer.
17457
174582008-02-01 Dave Love <fx@gnu.org>
17459
17460 * lread.c (read_emacs_mule_char) [len==2]: Index
17461 emacs_mule_charset correctly.
17462
174632008-02-01 Dave Love <fx@gnu.org>
17464
17465 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17466 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17467 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17468 treated specially.)
17469 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17470 (detected_mask): Remove Big5 bits.
17471
174722008-02-01 Kenichi Handa <handa@m17n.org>
17473
17474 The following changes are to make the font rescaling facility
17475 compatible with Emacs 21.
17476
17477 * xfaces.c (Vface_font_rescale_alist): Rename from
17478 Vface_resizing_fonts.
17479 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17480 (font_rescale_ratio): Rename from font_resizing_ratio.
17481 (split_font_name): Set font->rescale_ratio.
17482 (better_font_p): Pay attention to font->rescale_ratio.
17483 (build_scalable_font_name): Likewise. Change RESX, and RESY
17484 fields.
17485 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17486
174872008-02-01 Kenichi Handa <handa@m17n.org>
17488
17489 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17490 (Qutf_16_le): Remove these variables.
17491 (syms_of_coding): Don't DEFSYM them.
17492 (decode_coding_utf_16): Fix handling of BOM.
17493 (encode_coding_utf_16): Fix handling of BOM.
17494
174952008-02-01 Kenichi Handa <handa@m17n.org>
17496
17497 * fileio.c (Finsert_file_contents): On replacing, before decoding
17498 the file into the work buffer, set point of the work buffer to the end.
17499
175002008-02-01 Dave Love <fx@gnu.org>
17501
17502 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17503
175042008-02-01 Dave Love <fx@gnu.org>
17505
17506 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17507 and fix C types.
17508
175092008-02-01 Kenichi Handa <handa@m17n.org>
17510
17511 * xdisp.c (SKIP_GLYPHS): New macro.
17512 (set_cursor_from_row): Pay attention to string display properties.
17513
17514 * category.c (copy_category_entry): Fix for the case that RANGE
17515 is an integer.
17516
17517 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17518
17519 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17520
175212008-02-01 Kenichi Handa <handa@m17n.org>
17522
17523 * charset.c (Fcharset_id_internal): New function.
17524 (syms_of_charset): Defsubr it.
17525
17526 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17527 with the last arg charset_list acquired from coding.
17528 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17529 the attribute coding_attr_ccl_valids.
17530
17531 * coding.h (enum define_coding_ccl_arg_index): Set the first
17532 member coding_arg_ccl_decoder to coding_arg_max.
17533
17534 * ccl.h (ccl_driver): Adjust prototype.
17535
17536 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17537 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17538 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17539 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17540 last arg Qnil.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17545 call encode_char.
17546
17547 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17548
175492008-02-01 Dave Love <fx@gnu.org>
17550
17551 * composite.c (syms_of_composite): Make composition_hash_table weak.
17552
175532008-02-01 Kenichi Handa <handa@m17n.org>
17554
17555 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17556 (font_name_registry): Don't extern them.
17557 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17558
17559 * fontset.h (Qfontset): Don't extern it.
17560 (new_fontset_from_font_name): Extern it.
17561
17562 * fontset.c: Give 8 extra slots to fontset objects.
17563 (Qfontset_info): New variable.
17564 (syms_of_fontset): Defsym it.
17565 (FONTSET_FALLBACK): New macro.
17566 (fontset_face): Try also the default fontset.
17567 (make_fontset): Realize a fallback fontset from the default fontset.
17568 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17569 using split_font_name_into_vector and build_font_name_from_vector.
17570 (Fset_fontset_font): Access the elements of font_spec by enum
17571 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17572 name by using split_font_name_into_vector.
17573 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17574 generate a proper font name from the fontset name. Update
17575 Vfontset_alias_alist.
17576 (n_auto_fontsets): New variable.
17577 (new_fontset_from_font_name): New function.
17578 (Ffont_info): Store the information about fonts generated from the
17579 default fontset in the first extra slot of the returned char-table.
17580
17581 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17582 (font_name_registry): Delete function.
17583 (split_font_name_into_vector): New function.
17584 (build_font_name_from_vector): New function.
17585 (font_list): The argument REGISTRY is now a list of registry names.
17586 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17587 specifies an explicit font name, return the name as is. Make a
17588 list of registy names.
17589
17590 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17591 of x_new_fontset.
17592 (Fx_create_frame): Don't call x_new_fontset here. Just use
17593 x_list_fonts to check the existence of fonts.
17594
17595 * xterm.h (x_new_fontset): Adjust prototype.
17596
17597 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17598 string. Use new_fontset_from_font_name to create a fontset from a
17599 font name.
17600
176012008-02-01 Kenichi Handa <handa@m17n.org>
17602
17603 * syntax.c (Vfind_word_boundary_function_table): New name for
17604 Vnext_word_boundary_function_table.
17605 (find-word-boundary-function-table): New name for
17606 next-word-boundary-function-table.
17607
176082008-02-01 Dave Love <fx@gnu.org>
17609
17610 * Makefile.in: Fix some dependencies.
17611
17612 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17613 set it to nil before returning.
17614
17615 * composite.c (update_compositions): Fix type error.
17616
17617 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17618
176192008-02-01 Kenichi Handa <handa@m17n.org>
17620
17621 * xterm.c (x_new_font): Optimize for the case that the font is
17622 already set for the frame.
17623
176242008-02-01 Kenichi Handa <handa@m17n.org>
17625
17626 * chartab.c (char_table_ascii): Check if the char table contents
17627 is sub-char-table or not.
17628 (char_table_set, char_table_set_range): Fix argument to
17629 char_table_ascii.
17630
17631 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17632 (detect_coding_utf_8, detect_coding_utf_16)
17633 (detect_coding_emacs_mule, detect_coding_iso_2022)
17634 (detect_coding_sjis, detect_coding_big5)
17635 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17636 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17637 sequence is valid in this coding system. Change callers.
17638 (MAX_ANNOTATION_LENGTH): New macro.
17639 (ADD_ANNOTATION_DATA): New macro.
17640 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17641 ADD_ANNOTATION_DATA. Change the format of annotation data.
17642 (ADD_CHARSET_DATA): New macro.
17643 (emacs_mule_char): New argument ID. Change callers.
17644 (decode_coding_emacs_mule, decode_coding_iso_2022)
17645 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17646 Produce charset annotation data in coding->charbuf.
17647 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17648 to charset annotation data in coding->charbuf.
17649 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17650 coding->common_flags if the coding system is iso-2022 based and
17651 uses designation.
17652 (produce_composition): Adjust for the new annotation data format.
17653 (produce_charset): New function.
17654 (produce_annotation): Handle charset annotation.
17655 (handle_composition_annotation, handle_charset_annotation): New
17656 functions.
17657 (consume_chars): Handle charset annotation. Utilize the above two
17658 functions.
17659 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17660 buffer, get the deleted text as a string and set
17661 coding->src_object to that string.
17662 (detect_coding, detect_coding_system): Use the new struct
17663 coding_detection_info.
17664
17665 * coding.h (struct coding_detection_info): New structure.
17666 (struct coding_system): Adjust prototype of the member `detector'.
17667 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17668
176692008-02-01 Kenichi Handa <handa@m17n.org>
17670
17671 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17672
176732008-02-01 Dave Love <fx@gnu.org>
17674
17675 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17676 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17677 to new local and nullify apropos_accumulate before returning.
17678 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17679
176802008-02-01 Kenichi Handa <handa@m17n.org>
17681
17682 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17683 correctly.
e3eea1fc 17684
aac0c6e3
MR
176852008-02-01 Dave Love <fx@gnu.org>
17686
17687 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17688
176892008-02-01 Kenichi Handa <handa@m17n.org>
17690
17691 The following changes are to make character composition happen
17692 automatically on displaying.
17693
17694 * Makefile.in (lisp, shortlisp): Add composite.elc.
17695
17696 * composite.h (Qauto_composed, Vauto_composition_function)
17697 (Qauto_composition_function): Extern them.
17698
17699 * composite.c (Vcomposition_function_table)
17700 (Qcomposition_function_table): Delete variables.
17701 (Qauto_composed, Vauto_composition_function)
17702 (Qauto_composition_function): New variables.
17703 (run_composition_function): Don't call
17704 compose-chars-after-function.
17705 (update_compositions): Clear `auto-composed' text property.
17706 (compose_chars_in_text): Delete this function.
17707 (syms_of_composite): Staticpro Qauto_composed and
17708 Qauto_composition_function. Declare Vauto_composition_function as
17709 a Lisp variable.
17710
17711 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17712
17713 * xdisp.c (it_props): Add an entry for Qauto_composed.
17714 (handle_auto_composed_prop): New function.
17715
17716 * xselect.c (selection_data_to_lisp_data): Don't call
17717 compose_chars_in_text.
17718
177192008-02-01 Dave Love <fx@gnu.org>
17720
17721 * keyboard.c (read_char): Modify checking around use of
17722 Vkeyboard_translate_table.
17723
17724 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17725 and fix C types.
17726
177272008-02-01 Kenichi Handa <handa@m17n.org>
17728
17729 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17730 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17731 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17732 the case that the last byte is '\r' correctly.
17733 (decode_coding): Flush out the unprocessed data correctly.
17734 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17735
177362008-02-01 Dave Love <fx@gnu.org>
17737
17738 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17739 Add XK_ISO... case.
17740 (xaw_scroll_callback): Revert last change.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17745
177462008-02-01 Kenichi Handa <handa@m17n.org>
17747
17748 * xfaces.c (Vface_resizing_fonts): New variable.
17749 (struct font_name): New member `resizing_ratio'.
17750 (font_resizing_ratio): New function.
17751 (split_font_name): Set font->resizing_ratio.
17752 (better_font_p): Pay attention to font->resizing_ratio.
17753 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17754 RESX, and RESY fields.
17755 (try_alternative_families): Try scalable fonts if
17756 Vscalable_fonts_allowed is not Qt.
17757 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17758
177592008-02-01 Dave Love <fx@gnu.org>
17760
17761 * xterm.c (xaw_scroll_callback): Cast correctly.
17762
177632008-02-01 Dave Love <fx@gnu.org>
17764
17765 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17766 (lispy_kana_keys): Comment out.
17767 (make_lispy_event) [XK_kana_A]: Comment out.
17768
17769 * xterm.c (xaw_scroll_callback): Cast call_data.
17770 (XTread_socket): Deal with ASCII keysyms.
17771 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17772
177732008-02-01 Dave Love <fx@gnu.org>
17774
17775 * xterm.c (Vx_keysym_table): New.
17776 (syms_of_xterm): Initialize it.
17777 (XTread_socket): Use it.
17778 From head: Eliminate incorrect optimization that tried to avoid
17779 decoding the output of X*LookupString.
17780 (x_get_font_repertory): Delete charset declaration.
17781
177822008-02-01 Kenichi Handa <handa@m17n.org>
17783
17784 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17785 return 0.
17786 (Fdefine_coding_system_internal): Setup
17787 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17788
177892008-02-01 Dave Love <fx@gnu.org>
17790
17791 * coding.c (Fcheck_coding_system): Doc fix.
17792
17793 * editfns.c (Finsert_byte): Return a proper value.
17794
177952008-02-01 Kenichi Handa <handa@m17n.org>
17796
17797 * coding.c (decode_coding): Fix args to translate_chars. Pay
17798 attention to Vstandard_translation_table_for_decode.
17799 (encode_coding): Fix args to translate_chars. Pay attention to
17800 Vstandard_translation_table_for_encode.
17801
17802 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17803 SINGLE_BYTE_CHAR_P.
17804
17805 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17806 not by SINGLE_BYTE_CHAR_P.
17807
17808 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17809 SINGLE_BYTE_CHAR_P.
17810
17811 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17812 SINGLE_BYTE_CHAR_P.
17813
17814 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17815 by SINGLE_BYTE_CHAR_P.
17816
17817 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17818 SINGLE_BYTE_CHAR_P.
17819
178202008-02-01 Dave Love <fx@gnu.org>
17821
17822 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17823
178242008-02-01 Dave Love <fx@gnu.org>
17825
17826 * fns.c (Flanginfo): Fix typo.
17827
17828 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17829
178302008-02-01 Kenichi Handa <handa@m17n.org>
17831
17832 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17833 (detect_coding_emacs_mule, detect_coding_iso_2022)
17834 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17835 incomplete byte sequence. Don't update *mask when correctly detected.
17836 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17837 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17838 (detect_coding, detect_coding_system): Adjust for the changes above.
17839
178402008-02-01 Kenichi Handa <handa@m17n.org>
17841
17842 * character.c (char_string): Rename from
17843 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17844 (string_char): Rename from string_char.
17845
17846 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17847 if C is greater than MAX_3_BYTE_CHAR.
17848 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17849 string_char instead of string_char_with_unification.
17850
178512008-02-01 Dave Love <fx@gnu.org>
17852
17853 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * keymap.c (push_key_description): Pay attention to force_multibyte.
17858
17859 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17860
178612008-02-01 Dave Love <fx@gnu.org>
17862
17863 * charset.c (define_charset_internal): Rename `supprementary'.
17864
17865 * Makefile.in (lisp, shortlisp): Remove latin-N.
17866
178672008-02-01 Dave Love <fx@gnu.org>
17868
17869 * xfns.c (x_window, x_window): Use use_xim.
17870
17871 * xterm.c (use_xim): Initialize.
17872 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17873 (x_term_init): Maybe set use_xim.
17874
17875 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17876
178772008-02-01 Kenichi Handa <handa@m17n.org>
17878
17879 * search.c (search_buffer): Fix case-fold-search of multibyte
17880 characters.
17881 (boyer_moore): Rename the last argument to char_high_bits.
17882
178832008-02-01 Kenichi Handa <handa@m17n.org>
17884
17885 * xdisp.c (display_string): Fix for the case of zero width glyph.
17886
17887 * xfns.c (x_set_font): Change the error message of the case that
17888 x_new_fontset returns Qt.
17889
17890 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17891 (Finternal_set_lisp_face_attribute): Use signal_error for the
17892 error of invalid fontset.
17893
17894 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17895 fontset, return Qt.
17896
178972008-02-01 Dave Love <fx@gnu.org>
17898
17899 * unexelf.c (unexec): Make .got handling not SGI-specific.
17900
17901 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17902
17903 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17904
17905 * keyboard.c (read_key_sequence): Fix type error.
17906
17907 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17908 type error.
17909
17910 * fontset.c (fontset_add): Return Lisp_Object.
17911
179122008-02-01 Dave Love <fx@gnu.org>
17913
17914 * charset.h (charset_ordered_list_tick): Declare extern.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 The following changes (and some of 2008-02-01 changes of mine) are
17919 for handling syntax, category, and case conversion for unibyte
17920 characters by converting them to multibyte on the fly. With these
17921 changes, we don't have to setup syntax and case tables for unibyte
17922 characters in each language environment.
17923
17924 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17925 multibyte if necessary.
17926
17927 * bytecode.c (Fbyte_code): Likewise.
17928
17929 * character.h (LEADING_CODE_LATIN_1_MIN)
17930 (LEADING_CODE_LATIN_1_MAX): New macros.
17931 (unibyte_to_multibyte_table): Extern it.
17932 (unibyte_char_to_multibyte): New macro.
17933 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17934 (CHAR_LEADING_CODE): New macro.
17935 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17936
17937 * character.c (unibyte_to_multibyte_table): New variable.
17938 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17939 (multibyte_char_to_unibyte): If C is an eight-bit character,
17940 convert it to the corresponding byte value.
17941
17942 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17943 not 1, signals an error. Update the elements of
17944 unibyte_to_multibyte_table.
17945 (init_charset_once): Initialize unibyte_to_multibyte_table.
17946 (syms_of_charset): Define the charset `iso-8859-1'.
17947
17948 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17949 as is without converting it to unibyte. In a unibyte buffer,
17950 convert C to multibyte before checking the syntax.
17951
17952 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17953
17954 * minibuf.c (Fminibuffer_complete_word): Use the macro
17955 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17956
17957 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17958
17959 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17960 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17961 that is zero, convert an eight-bit char to multibyte.
17962 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17963 non-emacs case.
17964 (PATFETCH): Convert an eight-bit char to multibyte.
17965 (HANDLE_UNIBYTE_RANGE): New macro.
17966 (regex_compile): Setup the compiled pattern for multibyte chars
17967 even if the given regex string is unibyte. Use PATFETCH_RAW
17968 instead of PATFETCH in many places. To handle `charset'
17969 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17970 only for ASCII chars.
17971 (analyse_first) <exactn>: Simplify because the compiled pattern
17972 is multibyte.
17973 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17974 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17975 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17976 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17977 multibyte always 1.
17978 (re_search_2): In emacs, set the locale variable multibyte to 1,
17979 otherwise to 0. New local variable target_multibyte. Check it
17980 to decide the multibyteness of STR1 and STR2. If
17981 target_multibyte is zero, convert unibyte chars to multibyte
17982 before translating and checking fastmap.
17983 (TARGET_CHAR_AND_LENGTH): New macro.
17984 (re_match_2_internal): In emacs, set the locale variable multibyte
17985 to 1, otherwise to 0. New local variable target_multibyte. Check
17986 it to decide the multibyteness of STR1 and STR2. Use
17987 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17988 <charset, charset_not>: If multibyte is nonzero, check fastmap
17989 only for ASCII chars. Call bcmp_translate with
17990 target_multibyte, not with multibyte.
17991 <begline>: Declare the local variable C as `unsigned'.
17992 (bcmp_translate): Change the last arg name to target_multibyte.
17993
17994 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17995 the regexp pattern and the matching target. Set cp->buf.multibyte
17996 to the multibyteness of the regexp pattern. Set
17997 cp->but.target_multibyte to the multibyteness of the matching target.
17998 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17999 FETCH_STRING_CHAR_ADVANCE.
18000 (Freplace_match): Convert unibyte chars to multibyte.
18001
18002 * syntax.c (char_quoted, back_comment, scan_words)
18003 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
18004 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
18005 unibyte chars to multibyte.
18006 (skip_chars): Delete the arg syntaxp, and move the code for
18007 handling syntaxes to skip_syntaxes. Change callers.
18008 Fix the case that the multibyteness of STRING and the current
18009 buffer doesn't match.
18010 (skip_syntaxes): New function.
18011 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
18012 SINGLE_BYTE_CHAR_P.
18013
180142008-02-01 Kenichi Handa <handa@m17n.org>
18015
18016 * xfaces.c (QCfontset): New variable.
18017 (LFACE_FONTSET): New macro.
18018 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
18019 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
18020 (Finternal_set_lisp_face_attribute)
18021 (Finternal_get_lisp_face_attribute): Handle QCfontset.
18022 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
18023 check also LFACE_FONTSET_INDEX.
18024 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
18025 attrs[LFACE_FONT_INDEX].
18026 (syms_of_xfaces): Intern and staticpro QCfontset.
18027
18028 * dispextern.h (enum lface_attribute_index): New member
18029 LFACE_FONTSET_INDEX.
18030
18031 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
18032
180332008-02-01 Kenichi Handa <handa@m17n.org>
18034
18035 * coding.c (coding_set_destination): Fix coding->destination for
18036 the case converting a region.
18037 (encode_coding_utf_8): Encode eight-bit chars as single byte.
18038 (encode_coding_object): Fix coding->dst_pos and
18039 coding->dst_pos_byte for the case converting a region.
18040
18041 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
18042
18043 * character.h (BYTE8_STRING): New macro.
18044
18045 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
18046
180472008-02-01 Kenichi Handa <handa@m17n.org>
18048
18049 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
18050 characters by octal form.
18051
18052 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
18053
18054 * buffer.h (_fetch_multibyte_char_len): Delete extern.
18055 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
18056 _fetch_multibyte_char_len.
18057 (FETCH_CHAR_AS_MULTIBYTE): New macro.
18058
18059 * casetab.c (set_canon, set_identity, shuffle): Simplify.
18060
18061 * casefiddle.c (casify_object): Simplify. Handle the case that
18062 the case conversion change the byte length.
18063 (casify_region): Likewise.
18064
18065 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
18066
18067 * character.c (_fetch_multibyte_char_len): Delete this variable.
18068 (syms_of_character): Setup Vprintable_chars.
18069
18070 * editfns.c (Fchar_equal): Fix for the unibyte case.
18071 (Finsert_byte): New function.
18072 (syms_of_editfns): Defsubr it.
18073
18074 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
18075 of direct code 0x3ffff.
18076
18077 * search.c (Freplace_match): Fix for the unibyte case.
18078
180792008-02-01 Kenichi Handa <handa@m17n.org>
18080
18081 * lread.c (safe_to_load_p): Fix the logic.
18082
18083 * syntax.c (scan_words): Don't treat characters belonging to
18084 different scripts as constituting a word.
18085
18086 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18087
18088 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
18089
18090 * emacs.c (main): In the case of --unibyte, instead of aborting on
18091 finding non-empty buffer, make it unibyte.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
18096 to create a fontset.
18097
180982008-02-01 Dave Love <fx@gnu.org>
18099
18100 * character.c (Funibyte_char_to_multibyte): Doc fix.
18101
18102 * xfns.c [HAVE_STDLIB_H]: Fix last change.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * fontset.c (fontset_add): Make the type `int'.
18107 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
18108
18109 * character.c (unibyte_char_to_multibyte)
18110 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
18111 charset_unibyte, not charset_primary.
18112
18113 * charset.h (charset_unibyte): Extern it instead of charset_primary.
18114
18115 * charset.c (charset_unibyte): Rename from charset_primary.
18116 (Funibyte_charset): Rename from Fprimary_charset.
18117 (Fset_unibyte_charset): Rename from Fset_primary_charset.
18118 (syms_of_charset): Adjust for the above changes.
18119
18120 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18121 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18122 it->multibyte_p is zero.
18123
18124 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
18125 Delete extern.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * coding.c (Fdefine_coding_system_internal): Fix category setting
18130 for a coding system of type iso-2022.
18131
181322008-02-01 Kenichi Handa <handa@m17n.org>
18133
18134 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18135
181362008-02-01 Kenichi Handa <handa@m17n.org>
18137
18138 * syntax.c (Vnext_word_boundary_function_table): New variable.
18139 (next-word-boundary-function-table): Declare it as a Lisp variable
18140 in syms_of_syntax.
18141 (scan_words): Call functions in Vnext_word_boundary_function_table
18142 if any.
18143
18144 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18145
18146 * fontset.c (fs_load_font): If fontp->charset is not negative,
18147 return fontp without setting its members.
18148
181492008-02-01 Dave Love <fx@gnu.org>
18150
18151 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18152
18153 * m/sparc.h (HAVE_ALLOCA): Delete.
18154
18155 * s/irix6-5.h: Don't include strings.h.
18156 (bcopy, bzero, bcmp): Don't undef.
18157
18158 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18159
18160 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18161 (TIOCSIGSEND): Don't test IRIX6.
18162 (bcopy, bzero, bcmp): Define conditionally.
18163
181642008-02-01 Kenichi Handa <handa@m17n.org>
18165
18166 * buffer.c (Qas, Qmake, Qto): New variables.
18167 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18168 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18169
18170 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18171 we are inserting a process output into a multibyte buffer.
18172
18173 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18174 multibyte_char_to_unibyte.
18175
18176 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18177 by the primary charset, make it eight-bit char.
18178 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18179
18180 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18181 (charset_8_bit__control, charset_8_bit_graphic)
18182 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18183 (define_charset_internal): New function.
18184 (syms_of_charset): Call define_charset_internal for pre-defined
18185 charsets.
18186
18187 * charset.h (charset_8_bit): Extern it.
18188
18189 * coding.c (make_conversion_work_buffer): Adjust for the change
18190 of Fset_buffer_multibyte.
18191 (encode_coding_raw_text): Increment p0 in the loop.
18192
18193 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18194
18195 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18196 for the change of Fset_buffer_multibyte.
18197
18198 * fns.c (Fstring_to_multibyte): New function.
18199 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18200
182012008-02-01 Dave Love <fx@gnu.org>
18202
18203 * xfns.c (x_put_x_image): Declare args.
18204
18205 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18206 (try_font_list): Declare an arg.
18207
18208 * xdisp.c (message2_nolog, set_message): Declare an arg.
18209
18210 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18211
18212 * syntax.c (scan_sexps_forward): Declare an arg.
18213
18214 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18215 Declare an arg.
18216
18217 * lisp.h (Fnew_fontset): Declare.
18218
18219 * keymap.c (push_key_description): Call CHARACTERP correctly.
18220
18221 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18222 (face_for_char): Delete unused vars.
18223 (Fset_fontset_font): Doc fix. Delete unused vars.
18224
18225 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18226
18227 * composite.c (update_compositions): Declare arg.
18228
18229 * cm.c (calccost, cmgoto): Declare args.
18230
18231 * charset.c: Remove `emacs' conditional. Doc fixes.
18232 (map_char_table_for_charset): Declare.
18233
18234 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18235
18236 * ccl.c: Remove `emacs' conditional.
18237
182382008-02-01 Kenichi Handa <handa@m17n.org>
18239
18240 The following changes are to allow specifying multiple font
18241 patterns for a character range (specified by script or charset).
18242
18243 * Makefile.in (abbrev.o): Depend on syntax.h.
18244 (xfaces.o): Depend on charset.h.
18245
18246 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18247 SINGLE_BYTE_CHAR_P.
18248
18249 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18250
18251 * character.h (Vchar_script_table): Extern it.
18252
18253 * character.c (Vscript_alist): Delete.
18254 (Vchar_script_table, Qchar_script_table): New variable.
18255 (syms_of_character): Declare Vchar_script_table as a lisp variable
18256 and initialize it.
18257
18258 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18259 have property char-table-extra-slots, make no extra slot.
18260
18261 * dispextern.h (struct face): Delete member `charset'.
18262 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18263 SINGLE_BYTE_CHAR_P.
18264 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18265 Add prototypes.
18266 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18267 (generate_ascii_font_name): Rename from generate_ascii_font.
18268
18269 * fontset.h (get_font_repertory_func): New prototype.
18270 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18271 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18272
18273 * fontset.c (Qprepend, Qappend): New variables.
18274 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18275 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18276 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18277 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18278 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18279 (load_font_get_repertory): New functions.
18280 (fontset_set): Delete.
18281 (fontset_face): New arg FACE. Return face ID, not face.
18282 Complete re-write to handle new fontset structure. Change caller.
18283 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18284 (face_for_char): Don't call lookup_face.
18285 (make_fontset_for_ascii_face): New arg FACE.
18286 (fs_load_font): New arg CHARSET_ID. Don't check
18287 Vfont_encoding_alist here.
18288 (find_font_encoding): New function.
18289 (list_fontsets): Use STRINGP, not ! NILP.
18290 (accumulate_script_ranges): New function.
18291 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18292 re-written to handle new fontset structure.
18293 (Ffontset_font): Return a copy of element.
18294 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18295 docstring of font-encoding-alist.
18296
18297 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18298 (Fset_fotset_font): Fix arguments to 5.
18299
18300 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18301
18302 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18303 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18304 (highlight_trailing_whitespace): Adjust for the change of
18305 lookup_named_face.
18306
18307 * xfaces.c: Include charset.h.
18308 (load_face_font): Delete argument C. Change caller.
18309 (generate_ascii_font_name): Rename from generate_ascii_font.
18310 (font_name_registry): New function.
18311 (cache_face): Store ascii faces before non-ascii faces in buckets.
18312 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18313 Lookup only ascii faces.
18314 (lookup_non_ascii_face): New function.
18315 (lookup_named_face): Delete argument C. Change caller.
18316 (lookup_derived_face): Delete argument C. Change caller.
18317 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18318 a string, just call font_list with it.
18319 (choose_face_font): Delete arguments FACE and C. New arg
18320 FONT_SPEC. Change caller.
18321 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18322 Change caller.
18323 (realize_non_ascii_face): New function.
18324 (realize_x_face): Call load_face_font here.
18325 (realize_tty_face): Delete argument C. Change caller.
18326 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18327 get a face ID.
18328 (dump_realized_face): Don't print charset of FACE.
18329
18330 * xfns.c (x_set_font): Always call x_new_fontset and
18331 store_frame_parameter.
18332 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18333 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18334
18335 * xterm.h (x_get_font_repertory): Extern it.
18336
18337 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18338 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18339 it->multibyte_p is zero.
18340 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18341 (x_new_fontset): If FONTSETNAME doesn't match any existing
18342 fontsets, create a new one.
18343 (x_get_font_repertory): New function.
18344
183452008-02-01 Kenichi Handa <handa@m17n.org>
18346
18347 * coding.c (Ffind_coding_systems_region_internal): Detect an
18348 ASCII only string correctly.
18349
18350 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18351 version is 0.
18352
183532008-02-01 Kenichi Handa <handa@m17n.org>
18354
18355 * lread.c: Include "coding.h".
18356 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18357 (load_each_byte, unread_char): New variables.
18358 (readchar_backlog): Delete.
18359 (readchar): Return a character unless load_each_byte is nonzero.
18360 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18361 cons. If unread_char is not -1, simply return it.
18362 (unreadchar): Handle the case that readcharfun is
18363 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18364 (read_multibyte): Delete.
18365 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18366 (read_emacs_mule_char): New functions.
18367 (Fload): Even if the file doesn't have the extension ".elc", if
18368 safe_to_load_p returns a positive version number, assume that the
18369 file contains bytecompiled code. If the version is less than 22,
18370 load the file while decoding multibyte sequences by emacs-mule.
18371 (readevalloop): Don't use readchar_backlog.
18372 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18373 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18374 (read_escape): Delete the arg BYTEREP.
18375 (read1): Set load_each_byte to 1 temporarily while handling
18376 #@NUMBER. Don't call read_multibyte.
18377 (read_vector): Call Fread with a cons. If readcharfun is
18378 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18379 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18380 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18381 and Qload_force_doc_strings.
18382
183832008-02-01 Kenichi Handa <handa@m17n.org>
18384
18385 * xdisp.c (face_before_or_after_it_pos): Call
18386 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18387
183882008-02-01 Kenichi Handa <handa@m17n.org>
18389
18390 * character.h (TRAILING_CODE_P): New macro.
18391 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18392 (string_char_with_unification): Fix prototype.
18393 (Vscript_alist): Extern it.
18394
18395 * character.c (Vscript_alist): New variable.
18396 (string_char_with_unification, str_as_unibyte)
18397 (string_escape_byte8): Add `const' to local variables.
18398 (syms_of_character): Declare script-alist as a Lisp variable.
18399
18400 * charset.h (Vcharset_ordered_list): Extern it.
18401 (charset_ordered_list_tick): Extern it.
18402 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18403 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18404 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18405 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18406 (Funify_charset): Adjust for the change of Funify_charset.
18407
18408 * charset.c (charset_ordered_list_tick): New variable.
18409 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18410 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18411 deunify intead of unify a charset.
18412 (string_xstring_p): Add `const' to local variables.
18413 (find_charsets_in_text): Add `const' to arguments and local variables.
18414 (encode_char): Adjust for the change of Funify_charset. Fix
18415 detecting of invalid code.
18416 (Fset_charset_priority): Increment charset_ordered_list_tick.
18417 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18418 and TO_CODE.
18419
18420 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18421 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18422 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18423 (decode_coding_ccl, consume_chars)
18424 (Ffind_coding_systems_region_internal)
18425 (Fcheck_coding_systems_region): Add `const' to local variables.
18426
18427 * print.c (print_object): Use octal form for printing the
18428 contents of a bool vector.
18429
184302008-02-01 Dave Love <fx@gnu.org>
18431
18432 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18433 <version == 20>: Refuse to load.
18434
184352008-02-01 Dave Love <fx@gnu.org>
18436
18437 * fns.c: Move coding.h.
18438 (Qcodeset, Qdays, Qmonths): New.
18439 (concat): Use CHARACTERP instead of INTEGERP.
18440 (Flocale_codeset): Delete.
18441 (Flanginfo): New function.
18442 (syms_of_fns): Change accordingly.
18443
18444 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18445
184462008-02-01 Dave Love <fx@gnu.org>
18447
18448 * casetab.c (init_casetab_once, init_casetab_once): Fix
18449 CHAR_TABLE_SET call.
18450
18451 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18452
18453 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18454
18455 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18456 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18457 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18458
18459 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18460
18461 * coding.c (ENCODE_DESIGNATION, decode_eol)
18462 (make_conversion_work_buffer, code_conversion_restore)
18463 (Fdefine_coding_system_internal): Convert Lisp types.
18464 (code_conversion_restore): Use EQ, not ==.
18465 (Fencode_coding_string): Fix code_convert_string call.
18466
18467 * coding.h (code_convert_region): Fix prototype.
18468
18469 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18470
18471 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18472 (Ffontset_info): Convert Lisp types.
18473
18474 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18475
18476 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18477
18478 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18479
18480 * chartab.c: Include "...h", not <...h> in some cases.
18481
18482 * callproc.c (Fcall_process): Remove unused variables.
18483
184842008-02-01 Dave Love <fx@gnu.org>
18485
18486 * coding.c (Fset_coding_system_priority): Allow null arg list.
18487
184882008-02-01 Dave Love <fx@gnu.org>
18489
18490 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18491 (Fself_insert_and_exit): Use CHARACTERP.
18492
18493 * callproc.c (Fcall_process): Remove unused vars.
18494
18495 * xterm.c (XTread_socket): Add extra dead keysyms.
18496
18497 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18498
18499 * dispextern.h: Remove prototypes for redraw_frame,
18500 redraw_garbaged_frames.
18501
18502 * cmds.c (Fself_insert_command): Use CHARACTERP.
18503
18504 * chartab.c (make_sub_char_table): Remove unused var.
18505 (Fset_char_table_default, Fmap_char_table): Doc fix.
18506
18507 * keymap.c (access_keymap): Remove generic char code.
18508 (push_key_description): Use CHARACTERP.
18509
185102008-02-01 Dave Love <fx@gnu.org>
18511
18512 * charset.c: Doc fixes.
18513 (Funify_charset): Extra checking.
18514
185152008-02-01 Dave Love <fx@gnu.org>
18516
18517 * lread.c: Remove some unused variables.
18518 (safe_to_load_p): If safe, return the magic number version byte.
18519 (Fload): Maybe use load-with-code-conversion.
18520
185212008-02-01 Kenichi Handa <handa@m17n.org>
18522
18523 * category.c (Fmodify_category_entry): Don't modify the contents
18524 of category_set for characters out of the range. Avoid
18525 unnecessary modification.
18526
18527 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18528 Vchar_unify_table. The default value of the table is now nil.
18529
18530 * character.c (syms_of_character): Setup Vchar_width_table for
18531 eight-bit-control and raw-byte chars.
18532
18533 * charset.h (enum define_charset_arg_index): Delete
18534 charset_arg_parents and add charset_arg_subset and
18535 charset_arg_superset.
18536 (enum charset_attr_index): Delete charset_parents and add
18537 charset_subset and charset_superset.
18538 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18539 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18540 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18541 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18542 (CHARSET_SUPERSET): New macros.
18543 (charset_work): Extern it.
18544 (ENCODE_CHAR): Use charset_work.
18545 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18546 (map_charset_chars): Extern it.
18547
18548 * charset.c (load_charset_map): Set the default value of encoder
18549 and deunifier char-tables to nil.
18550 (map_charset_chars): Change argument. Change callers. Use
18551 map_char_table_for_charset instead of map_char_table.
18552 (Fmap_charset_chars): New optional args from_code and to_code.
18553 (Fdefine_charset_internal): Adjust for the change of
18554 `define-charset' (:parents -> :subset or :superset).
18555 (charset_work): New variable.
18556 (encode_char, syms_of_charset): Adjust for the change of
18557 Fdefine_charset_internal.
18558 (Ffind_charset_string): Setup the vector `charsets' correctly.
18559
18560 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18561 the previous change.
18562 (char_table_ref_and_range): Adjust for the above change.
18563 (map_sub_char_table_for_charset): New function.
18564 (map_char_table_for_charset): New function.
18565
18566 * keymap.c (describe_vector): Handle a char-table directly here.
18567 (describe_char_table): Delete.
18568
18569 * lisp.h (map_charset_chars): Delete.
18570
185712008-02-01 Dave Love <fx@gnu.org>
18572
18573 * fns.c (count_combining): Comment out (unused).
18574 (Flocale_codeset): New.
18575 (syms_of_fns): Defsubr it.
18576
18577 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18578 (size_t): Remove.
18579
185802008-02-01 Dave Love <fx@gnu.org>
18581
18582 * Makefile.in (chartab.o): Depend on charset.h.
18583
185842008-02-01 Kenichi Handa <handa@m17n.org>
18585
18586 * character.c (syms_of_character): Set the default value of
18587 Vprintable_chars to Qnil.
18588
185892008-02-01 Dave Love <fx@gnu.org>
18590
18591 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18592
185932008-02-01 Kenichi Handa <handa@m17n.org>
18594
18595 * charset.c (load_charset_map): Handle the case that from < to
18596 correctly.
18597
18598 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18599 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18600 Pay attention to raw-8-bit chars.
18601
186022008-02-01 Kenichi Handa <handa@m17n.org>
18603
18604 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18605 It is not bytecompiled now.
18606
18607 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18608 (charset_jisx0208): New variables.
18609 (Fdefine_charset_internal): Setup them if appropriate.
18610 (init_charset_once): Initialize them to -1.
18611
18612 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18613 (charset_jisx0208): Extern them.
18614
18615 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18616 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18617 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18618 (setup_iso_safe_charsets): Fix arguments to Fassq.
18619 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18620 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18621 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18622 (encode_coding_iso_2022): Change the 1st arg to
18623 ENCODE_ISO_CHARACTER to a variable.
18624
186252008-02-01 Kenichi Handa <handa@m17n.org>
18626
18627 * charset.h (enum define_charset_arg_index): New enums
18628 charset_arg_min_code and charset_arg_max_code.
18629 (struct charset): New member char_index_offset.
18630
18631 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18632 Take charset->char_index_offset into account.
18633 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18634 args[charset_arg_max_code]. Setup charset.char_index_offset.
18635 (syms_of_charset): Fix args to Fdefine_charset_internal.
18636
186372008-02-01 Dave Love <fx@gnu.org>
18638
18639 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18640
186412008-02-01 Dave Love <fx@gnu.org>
18642
18643 * coding.c: Doc fixes.
18644 (Fcoding_system_aliases): Fix return value.
18645 (Qmac): Remove (duplicated) definition.
18646
186472008-02-01 Dave Love <fx@gnu.org>
18648
362654a6
JB
18649 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18650 New functions.
aac0c6e3
MR
18651
18652 * character.c (Fstring): Doc fix.
18653
18654 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18655
362654a6 18656 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18657 (font-encoding-alist): Doc fix.
18658
186592008-02-01 Dave Love <fx@gnu.org>
18660
18661 * term.c (costs_set): Declare static, non-initialized for pcc.
18662 (encode_terminal_code): Remove unused var.
18663
18664 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18665 for K&R.
18666
18667 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18668
18669 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18670 (suffixes): Move out of make_subsidiaries for K&R.
18671
18672 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18673
18674 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18675
186762008-02-01 Dave Love <fx@gnu.org>
18677
18678 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18679
18680 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18681
186822008-02-01 Yong Lu <lyongu@asia-infonet.com>
18683
18684 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18685
18686 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18687
186882008-02-01 Kenichi Handa <handa@m17n.org>
18689
18690 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18691 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18692
186932008-02-01 Kenichi Handa <handa@m17n.org>
18694
18695 * coding.c (decode_coding_charset): Adjust for the change of
18696 Fdefine_coding_system_internal.
18697 (Fdefine_coding_system_internal): For a coding system of
18698 `charset' type, store a list of charset IDs in
18699 `charset_attr_charset_valids' element of coding attributes.
18700
187012008-02-01 Kenichi Handa <handa@m17n.org>
18702
18703 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18704 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18705 caller. Handle 2-byte and 3-byte charsets correctly.
18706 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18707 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18708 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18709 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18710 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18711 sequence.
18712 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18713 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18714 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18715 and alt&rule composition.
18716 (decode_coding_iso_2022): Handle composition correctly.
18717 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18718
18719 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18720 re-defining a charset. If the charset has :emacs-mule-id, setup
18721 emacs_mule_bytes.
18722 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18723
187242008-02-01 Kenichi Handa <handa@m17n.org>
18725
18726 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18727 (encode_coding_big5, encode_coding_charset): If coding requires safe
18728 encoding, produce a character specified by
18729 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18730
187312008-02-01 Dave Love <fx@gnu.org>
18732
18733 * xterm.c (XSetIMValues): Declare.
18734
18735 * process.c: Conditionally include sys/wait.h, pty.h.
18736
18737 * print.c (print_object): Fix print format for 64-bit systems.
18738
18739 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18740
18741 * buffer.c (emacs_strerror): Declare.
18742
18743 * fontset.c (Fclear_face_cache): Declare.
18744 (accumulate_font_info): Comment-out (unused).
18745 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18746 variables.
18747
18748 * character.h (string_escape_byte8): Declare.
18749
18750 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18751 unused vars.
18752 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18753 (Fmap_charset_chars): Doc fix.
18754
18755 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18756 (Fset_coding_system_priority, Fset_coding_system_priority)
18757 (Fdefine_coding_system_internal): Doc fix.
18758
187592008-02-01 Dave Love <fx@gnu.org>
18760
18761 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18762
187632008-02-01 Kenichi Handa <handa@m17n.org>
18764
18765 * character.c (string_escape_byte8): Make multibyte string with
18766 correct size.
18767
18768 * charset.c (Fmake_char): Delete unnecessary code.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * xfns.c (x_encode_text): Allocate coding.destination here, and
18773 call encode_coding_object with dst_object Qnil.
18774
18775 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18776 multibyte form correctly.
18777
18778 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18779 against Vfont_encoding_alist.
18780
18781 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18782 handling of charset list.
18783 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18784 (decode_coding_object): Move point to coding->dst_pos before
18785 calling post-read-conversion function.
18786 (encode_coding_object): Give correct arguments to
18787 pre-write-conversion. Ignore the return value of
18788 pre-write-conversion function. Pay attention to the case that
18789 pre-write-conversion changes the current buffer. If dst_object is
18790 Qt, even if coding->src_bytes is zero, allocate at least one byte
18791 to coding->destination.
18792
18793 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18794
18795 * charset.c (Fmake_char): Make it more backward compatible.
18796 (Fmap_charset_chars): Fix docstring.
18797
187982008-02-01 Dave Love <fx@gnu.org>
18799
18800 * coding.c: Doc fixes.
18801 (Fdefine_coding_system_alias): Use names, not symbols, in
18802 coding-system-alist.
18803
188042008-02-01 Kenichi Handa <handa@m17n.org>
18805
18806 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18807 of calling free_realized_face.
18808
188092008-02-01 Yong Lu <lyongu@asia-infonet.com>
18810
18811 * charset.c (read_hex): Don't treat SPC as a comment starter.
18812 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18813 (Fdecode_char): Fix typo.
18814
188152008-02-01 Kenichi Handa <handa@m17n.org>
18816
18817 * charset.h (struct charset): New member `code_space_mask'.
18818
18819 * coding.c (coding_set_source): Delete the local variable beg_byte.
18820 (encode_coding_charset, Fdefine_coding_system_internal):
18821 Delete the local variable charset.
18822 (Fdefine_coding_system_internal): Setup
18823 attrs[coding_attr_charset_valids] correctly.
18824
18825 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18826 member to check if CODE is valid or not.
18827 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18828 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18829 is within the range of charset->min_code and carset->max_code.
18830
188312008-02-01 Dave Love <fx@gnu.org>
18832
18833 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18834
18835 * dispextern.h (generate_ascii_font): Fix return type.
18836
18837 * xfaces.c (generate_ascii_font): Fix arg declaration.
18838
18839 * coding.c (coding_inherit_eol_type)
18840 (Fset_terminal_coding_system_internal)
18841 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18842
188432008-02-01 Kenichi Handa <handa@m17n.org>
18844
18845 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18846 multiple charsets correctly.
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * search.c (boyer_moore): Fix handling of multibyte character
18851 translation.
18852
18853 * xdisp.c (display_mode_element): When the variable `elt' is
18854 changed, update `this' and `lisp_string'.
18855
188562008-02-01 Kenichi Handa <handa@m17n.org>
18857
18858 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18859
18860 * callproc.c (Fcall_process): Be sure to give the current buffer
18861 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18862
18863 * charset.c (struct charset_map_entries): New struct.
18864 (load_charset_map): Rename from parse_charset_map. New args
18865 entries and n_entries. Change caller.
18866 (load_charset_map_from_file): Rename from load_charset_map.
18867 Change caller. New arg control_flag. Call load_charset_map at
18868 the tail.
18869 (load_charset_map_from_vector): New function.
18870 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18871 (encode_char): If the charset is compact, change a character index
18872 to a code point.
18873
18874 * coding.c (coding_alloc_by_making_gap): Check the case that the
18875 source and destination are the same correctly.
18876 (decode_coding_raw_text): Set coding->consumed_char and
18877 coding->consumed to 0.
18878 (produce_chars): If coding->chars_at_source is nonzero, update
18879 coding->consumed_char and coding->consumed before calling
18880 alloc_destination.
18881 (Fdefine_coding_system_alias): Register ALIAS in
18882 Vcoding_system_alist.
18883 (syms_of_coding): Define `no-conversion' coding system at the tail.
18884
18885 * fileio.c (Finsert_file_contents): Set coding_system instead of
18886 val. If the current buffer is multibyte, always call
18887 decode_coding_gap.
18888
18889 * xfaces.c (try_font_list): Give higher priority to fontset's
18890 family than face's family.
18891
188922008-02-01 Kenichi Handa <handa@m17n.org>
18893
18894 * callproc.c (Fcall_process): Be sure to give the current buffer
18895 to decode_coding_c_string.
18896
18897 * xfaces.c (try_font_list): Give a family specified in a fontset
18898 higher priority than a family specified in a face.
18899
189002008-02-01 Kenichi Handa <handa@m17n.org>
18901
18902 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18903 Fix arguments to insert_from_buffer.
18904
18905 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18910 (decode_coding_gap): Set coding->dst_multibyte correctly.
18911
189122008-02-01 Kenichi Handa <handa@m17n.org>
18913
18914 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18915 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18916 (encode_coding_utf_16): Substitute coding->default_char for
18917 non-Unicode characters.
18918 (decode_coding): Don't call record_insert here.
18919 (setup_coding_system): Initialize `surrogate' of
18920 coding->spec.utf_16 to 0.
18921 (EMIT_ONE_BYTE): Fix for multibyte case.
18922
18923 * insdel.c (insert_from_gap): Call record_insert.
18924
189252008-02-01 Kenichi Handa <handa@m17n.org>
18926
18927 * casefiddle.c (casify_region): Fix multibyte case.
18928
18929 * character.c (c_string_width): Add return type `int'.
18930 (char_string_with_unification): Delete arg ADVANCED.
18931
18932 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18933 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18934 (CHAR_STRING_ADVANCE): Make it do-while statement.
18935
18936 * chartab.c (sub_char_table_set_range): Optimize for the case
18937 DEPTH == 3. Add workaround code for a GCC optimization bug.
18938
18939 * charset.c (parse_charset_map): Remove an unused variable.
18940
18941 * coding.c: Delete unused variables.
18942
18943 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18944 earlier. If inserted is zero and the coding system doesn't
18945 require flushing, don't call decode_coding_gap.
18946
18947 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18948
189492008-02-01 Kenichi Handa <handa@m17n.org>
18950
18951 The following changes are for using Unicode as an internal
18952 character model, and use UTF-8 format for buffer/string
18953 representation.
18954
18955 * .gdbinit (xchartable): Adjust for the change of char table structure.
18956 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18957
18958 * Makefile.in (obj): Add character.o and chartab.o.
18959 (lisp, shortlisp): Remove utf-8.elc.
18960 (*.o): For many files, change dependency on charset.h to
18961 character.h, and add dependency on character.h.
18962 (character.o, chartab.o): New targets.
18963
18964 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18965 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18966 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18967 of "charset.h".
18968
18969 * dired.c, filelock.c: Include "character.h".
18970
18971 * alloc.c: Include "character.h" instead of "charset.h".
18972 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18973 (syms_of_alloc): Remove defsubr for Smake_char_table.
18974
18975 * buffer.c: Include "character.h" instead of "charset.h", don't
18976 include "coding.h".
18977 (Fset_buffer_multibyte): Adjust for UTF-8.
18978
18979 * buffer.h: EXFUN Fbuffer_live_p.
18980
18981 * callproc.c: Include "character.h" instead of "charset.h".
18982 (Fcall_process): Big change for the new code-conversion APIs.
18983
18984 * casetab.c: Include "character.h" instead of "charset.h".
18985 (set_canon, set_identity, shuffle): Adjust for the new
18986 map_char_table spec.
18987 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18988 accessing the char table structure.
18989
18990 * chartab.c: New file that implements char table.
18991
18992 * category.c: Include "character.h".
18993 (copy_category_entry): New function.
18994 (copy_category_table): Call map_char_table and copy_category_entry.
18995 (Fmake_category_table): Initialize all top-level slots.
18996 (char_category_set): New function.
18997 (modify_lower_category_set): Delete.
18998 (Fmodify_category_entry): Call char_table_ref_and_range.
18999
19000 * category.h (CATEGORY_SET): Just call char_category_set.
19001
19002 * ccl.c: Include "character.h".
19003 (Qccl, Qcclp): New variables.
19004 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
19005 it's less than 256.
19006 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
19007 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
19008 and DST type.
19009 (ccl_driver): Change types of argument, adjust code accordingly.
19010 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
19011 ccl_driver.
19012 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
19013
19014 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
19015 New members src_multibyte, dst_multibyte, consumed, and produced.
19016 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
19017 (CODING_SPEC_CCL_PROGRAM): New macro.
19018 (ccl_driver): Update prototype.
19019 (Qccl, Qcclp, Fccl_program_p): Extern them.
19020 (CHECK_CCL_PROGRAM): New macro.
19021
19022 * character.c, character.h, chartab.c: New files.
19023
19024 * charset.c: Mostly re-written. Move character and multibyte sequence
19025 handling codes to character.c.
19026
19027 * charset.h: Mostly re-written. Move character and multibyte sequence
19028 handling codes to character.h.
19029
19030 * coding.c, coding.h: Mostly re-written.
19031
19032 * composite.c: Include "character.h" instead of "charset.h".
19033 (CHAR_WIDTH): Move to character.h.
19034 (HASH_KEY, HASH_VALUE): Delete.
19035
19036 * composite.h (enum composition_method): Change order of enumeration
19037 symbols.
19038
19039 * data.c: Include "character.h" instead of "charset.h".
19040 (Faref): Call CHAR_TABLE_REF for a char table.
19041 (Faset): Call CHAR_TABLE_SET for a char table.
19042
19043 * dispextern.h (free_realized_face, check_face_attribytes)
19044 (generate_ascii_font): Extern them.
19045 (free_realized_multibyte_face): Delete extern.
19046
19047 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
19048 table structure.
19049
19050 * editfns.c: Include "character.h" instead of "charset.h".
19051 (Fchar_to_string): Always call CHAR_STRING.
19052
19053 * emacs.c (main): Call init_charset_once, init_charset,
19054 syms_of_chartab, and syms_of_character.
19055
19056 * fileio.c: Include "character.h" instead of "charset.h".
19057 (Finsert_file_contents): Big change for the new code-conversion API.
19058 (choose_write_coding_system, Fwrite_region): Likewise.
19059 (build_annotations_2): Delete.
19060 (e_write): Big change for the new code-conversion API.
19061
19062 * fns.c: Include "character.h" instead of "charset.h".
19063 (copy_sub_char_table): Move to chartab.c.
19064 (Fcopy_sequence): Call copy_char_table for a char table.
19065 (concat): Delete codes calling count_multibyte.
19066 (string_char_to_byte, string_byte_to_char): Adjust for the new
19067 multibyte form.
19068 (internal_equal): Adjust for the change of char table structure.
19069 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
19070 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
19071 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
19072 (char_table_translate, optimize_sub_char_table)
19073 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
19074 chartab.c.
19075 (char_table_ref_and_index): Delete.
19076 (HASH_KEY, HASH_VALUE): Move to lisp.h.
19077 (Fmd5): Call preferred_coding_system instead of accessing
19078 Vcoding_category_list. Adjust for the new code-conversion API.
19079 (syms_of_fns): Move defsubr for char table related functions to
19080 chartab.c.
19081
19082 * fontset.c: Mostly re-written.
19083
19084 * fontset.h (struct font_info): Change type of the member encoding_type.
19085 (enum FONT_SPEC_INDEX): New enum.
19086 (fontset_font_pattern, fs_load_font): Update prototype.
19087 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
19088
19089 * indent.c: Include "character.h" instead of "charset.h".
19090 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
19091
19092 * insdel.c: Include "character.h" instead of "charset.h".
19093 (copy_text): Don't refer to Vnonascii_translation_table.
19094 (insert_from_gap): New function.
19095
19096 * keyboard.c: Include "character.h" instead of "charset.h".
19097 (command_loop_1): Never call direct_output_forward_char before
19098 a non-ASCII character.
19099 (read_char): If Vkeyboard_translate_table is a char table, always
19100 translate a character.
19101
19102 * keymap.c: Include "character.h".
19103 (store_in_keymap): Handle the case that IDX is a cons.
19104 (Fdefine_key): Handle the case that KEY is a cons and the car part
19105 is also a cons (range).
19106 (push_key_description): Adjust for the new character code.
19107 (describe_vector): Call describe_char_table for a char table.
19108 (describe_char_table): New function.
19109
19110 * keymap.h (describe_char_table): Extern it.
19111
19112 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
19113 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
19114 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
19115 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
19116 Delete.
19117 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
19118 structure.
19119 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
19120 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
19121 (CHARTAB_SIZE_BITS_3): New macros.
19122 (chartab_size): Extern it.
19123 (struct Lisp_Char_Table): Re-design.
19124 (struct Lisp_Sub_Char_Table): New structure.
19125 (HASH_KEY, HASH_VALUE): Move from fns.c.
19126 (CHARACTERBITS): Define as 22.
19127 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
19128 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
19129 (GC_SUB_CHAR_TABLE_P): New macro.
19130 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19131 (code_convert_string_norecord): Deleted extern.
19132 (init_character_once, syms_of_character, init_charset)
19133 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19134
19135 * lread.c: Include "character.h".
19136 (read_multibyte): New arg NBYTES.
19137 (read_escape): Change the meaning of returned *BYTEREP.
19138 (to_multibyte): Delete.
19139 (read1): Adjust the handling of char table and string.
19140
19141 * print.c: Include "character.h" instead of "charset.h".
19142 (print_string): Convert 8-bit raw bytes to octal form by
19143 string_escape_byte8.
19144 (print_object): Adjust for the new multibyte form. Print 8-bit
19145 raw bytes always in octal form. Handle sub char table correctly.
19146
19147 * process.c: Include "character.h" instead of "charset.h".
19148 (read_process_output, send_process): Adjust for the new
19149 code-conversion API.
19150
19151 * puresize.h (BASE_PURESIZE): Increase.
19152
19153 * regex.c: Include "character.h" instead of "charset.h".
19154 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19155 (regex_compile): Accept a range whose starting and ending
19156 character have different leading bytes.
19157 (analyse_first): Adjust for the above change.
19158
19159 * search.c: Include "character.h" instead of "charset.h".
19160 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19161 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19162
19163 * syntax.c: Include "character.h" instead of "charset.h".
19164 (syntax_parent_lookup): Delete.
19165 (Fmodify_syntax_entry): Accept a cons as CHAR.
19166 (skip_chars): Adjust for the new multibyte form.
19167 (init_syntax_once): Call char_table_set_range instead of directly
19168 accessing the structure of a char table.
19169
19170 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19171 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19172 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19173 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19174
19175 * term.c: Include "buffer.h" and "character.h".
19176 (encode_terminal_code, write_glyphs): Adjust for the new
19177 code-conversion API.
19178 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19179
19180 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19181
19182 * xdisp.c: Include "character.h".
19183 (get_next_display_element): Adjust for the new multibyte form.
19184 (disp_char_vector): Adjust for the new char table structure.
19185 (decode_mode_spec_coding): Adjust for the new structure of
19186 coding system.
19187 (decode_mode_spec): Adjust for the new code-conversion API.
19188
19189 * xfaces.c: Include "character.h" instead of "charset.h".
19190 (load_face_font): Adjust for the change of choose_face_font and
19191 FS_LOAD_FONT.
19192 (generate_ascii_font): New function.
19193 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19194 (set_font_frame_param): Adjust for the change of choose_face_font.
19195 (free_realized_face): Make it public.
19196 (free_realized_faces_for_fontset): Rename from
19197 free_realized_multibyte_face. Free also faces realized for ASCII.
19198 (choose_face_font): Change arguments. Adjust for the change of
19199 fontset_font_pattern and FS_LOAD_FONT.
19200
19201 * xfns.c: Include "character.h".
19202 (x_encode_text): Adjust for the new code-conversion API.
19203
19204 * xselect.c: Don't include "charset.h".
19205 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19206
19207 * xterm.c: Include "character.h".
19208 (x_encode_char): New argument CHARSET. Change caller.
19209 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19210 Call ENCODE_CHAR instead of SPLIT_CHAR.
19211 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19212 CHAR_WIDTH instead of CHARSET_WIDTH.
19213 (XTread_socket): Adjust for the new code-conversion API.
19214 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19215 (x_load_font): Adjust for the change of struct font.
19216
192172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19218
19219 * xfaces.c (face_at_buffer_position): Remove unused vars.
19220
192212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19222
19223 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19224 Fix overflow checking.
19225
192262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19227
19228 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19229 Cancel previous change.
19230
192312008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19232
19233 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19234 ccl->eight_bit_control. Fix check for buffer overflow.
19235 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19236 (ccl_driver): Initialize extra_bytes to 0.
19237
192382008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19239
19240 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19241 return it ORed with ctrl_modifier.
19242
192432008-01-29 Miles Bader <miles@gnu.org>
19244
19245 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19246
192472008-01-28 Jason Rumney <jasonr@gnu.org>
19248
19249 * w32.c (stat): Don't double check for networked drive.
19250
192512008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19252
19253 * window.c (run_window_configuration_change_hook): New function.
19254 Code extracted from set_window_buffer. Set the selected frame.
19255 (set_window_buffer): Use it.
19256 * window.h (run_window_configuration_change_hook): Declare.
19257 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19258
19259 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19260
192612008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19262
19263 * Makefile.in: Remove references to unused macros.
19264
192652008-01-26 Eli Zaretskii <eliz@gnu.org>
19266
19267 * w32.c (g_b_init_get_sid_sub_authority)
19268 (g_b_init_get_sid_sub_authority_count): New static variables.
19269 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19270 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19271 (init_user_info): Use them to retrieve uid and gid.
19272 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19273 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19274 st_uid and st_gid of the file.
19275
192762008-01-26 Jason Rumney <jasonr@gnu.org>
19277
19278 * w32.c (logon_network_drive): New function.
19279 (stat): Use it.
19280
192812008-01-26 Chong Yidong <cyd@stupidchicken.com>
19282
19283 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19284 invisible text covered with an ellipsis.
19285
192862008-01-25 Richard Stallman <rms@gnu.org>
19287
19288 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19289 jump back to beginning. Move some other initializations after that.
19290 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19291 New variables.
19292 (syms_of_xdisp): Init them.
19293
19294 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19295
19296 * buffer.c (reset_buffer_local_variables):
19297 Implement `permanent-local-hook'.
19298 (Qpermanent_local_hook): New variable.
19299 (syms_of_buffer): Init and staticpro it.
19300
193012008-01-25 Michael Albinus <michael.albinus@gmx.de>
19302
19303 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19304
193052008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19306
19307 * fns.c (Fclrhash): Return TABLE.
19308
193092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19310
19311 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19312 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19313 is set even without positional changes.
19314 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19315
19316 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19317
193182008-01-23 Jason Rumney <jasonr@gnu.org>
19319
19320 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19321
19322 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19323 the unicode range available in MULE by locale-coding-system.
19324 Improve dbcs lead byte detection. Set event timestamp and modifiers
19325 earlier.
19326
193272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19328
19329 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19330 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19331 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19332 when used on child processes.
19333
193342008-01-21 Michael Albinus <michael.albinus@gmx.de>
19335
19336 * dbusbind.c (Fdbus_method_return_internal): Rename from
19337 Fdbus_method_return.
19338 (Fdbus_unregister_object): Move to dbus.el.
19339 (Fdbus_call_method, Fdbus_method_return_internal)
19340 (Fdbus_send_signal): Improve debug messages.
19341
193422008-01-20 Martin Rudalics <rudalics@gmx.at>
19343
19344 * undo.c (undo_inhibit_record_point): New variable.
19345 (syms_of_undo): Initialize it.
19346 (record_point): Don't record point when undo_inhibit_record_point
19347 is set.
19348
193492008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19350
19351 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19352
19353 * xdisp.c (Qauto_hscroll_mode): New var.
19354 (syms_of_xdisp): Initialize it.
19355 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19356 window's buffer.
19357 (hscroll_windows): Don't check automatic_hscrolling_p here.
19358
19359 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19360 vscroll if we're setting window-buffer to the value it already has.
19361
193622008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19363
19364 * m/intel386.h: Remove references to XENIX.
19365
193662008-01-17 Andreas Schwab <schwab@suse.de>
19367
19368 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19369 instead of HAVE_X86_64_LIB64_DIR.
19370 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19371
193722008-01-17 Glenn Morris <rgm@gnu.org>
19373
19374 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19375 to HAVE_X86_64_LIB64_DIR.
19376
193772008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19378
19379 * s/irix3-3.h:
19380 * s/irix4-0.h:
19381 * s/386-ix.h:
19382 * s/domain.h:
19383 * s/hpux9-x11r4.h:
19384 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19385
19386 * sysdep.c: Remove code containing references to symbols defined
19387 by unsupported systems.
19388
193892008-01-16 Glenn Morris <rgm@gnu.org>
19390
19391 * coding.c (select-safe-coding-system-function): Doc fix.
19392
193932008-01-15 Glenn Morris <rgm@gnu.org>
19394
19395 * config.in: Revert 2008-01-13 change: this is a generated file.
19396
193972008-01-13 Tom Tromey <tromey@redhat.com>
19398
19399 * lisp.h: Fix typo.
19400
194012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19402
19403 * m/sequent-ptx.h:
19404 * m/sequent.h:
19405 * s/ptx.h:
19406 * s/ptx4-2.h:
19407 * s/ptx4.h: Remove files for systems no longer supported.
19408
19409 * callproc.c (Fcall_process): Fix previous change.
19410
194112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19412
19413 * unexsunos4.c: Remove file, system not supported anymore.
19414
19415 * m/mips.h:
19416 * m/intel386.h:
19417 * callproc.c:
19418 * config.in:
19419 * ecrt0.c:
19420 * emacs.c:
19421 * fileio.c:
19422 * frame.c:
19423 * getpagesize.h:
19424 * keyboard.c:
19425 * lread.c:
19426 * process.c:
19427 * puresize.h:
19428 * sysdep.c:
19429 * systty.h:
19430 * syswait.h:
19431 * unexec.c:
19432 * xdisp.c:
19433 * alloc.c: Remove code containing references to symbols defined by
19434 unsupported systems.
19435
194362008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19437
19438 * coding.c (detect_coding_mask): Fix previous change.
19439
194402008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19441
19442 * coding.c (detect_coding_iso2022): New arg
19443 latin_extra_code_state. Allow Latin extra codes only
19444 when *latin_extra_code_state is nonzero.
19445 (detect_coding_mask): If there is a NULL byte, detect the encoding
19446 as UTF-16 or binary. If Latin extra codes exist, detect the
19447 encoding as ISO-2022 only when there's no other proper encoding is
19448 found.
19449
194502008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19451
19452 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19453 #ifdef MAC_OS.
19454
194552008-01-08 Richard Stallman <rms@gnu.org>
19456
19457 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19458
194592008-01-06 Nick Roberts <nickrob@snap.net.nz>
19460
19461 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19462 menu bar in parentheses.
19463
194642008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19465
19466 * m/7300.h:
19467 * m/acorn.h:
19468 * m/alliant-2800.h:
19469 * m/alliant.h:
19470 * m/alliant1.h:
19471 * m/alliant4.h:
19472 * m/altos.h:
19473 * m/amdahl.h:
19474 * m/apollo.h:
19475 * m/att3b.h:
19476 * m/aviion-intel.h:
19477 * m/aviion.h:
19478 * m/celerity.h:
19479 * m/clipper.h:
19480 * m/cnvrgnt.h:
19481 * m/convex.h:
19482 * m/cydra5.h:
19483 * m/delta88k.h:
19484 * m/dpx2.h:
19485 * m/dual.h:
19486 * m/elxsi.h:
19487 * m/f301.h:
19488 * m/gould-np1.h:
19489 * m/gould.h:
19490 * m/i860.h:
19491 * m/ibmps2-aix.h:
19492 * m/ibmrt-aix.h:
19493 * m/ibmrt.h:
19494 * m/irist.h:
19495 * m/is386.h:
19496 * m/isi-ov.h:
19497 * m/mega68.h:
19498 * m/mg1.h:
19499 * m/news-r6.h:
19500 * m/news-risc.h:
19501 * m/news.h:
19502 * m/nh3000.h:
19503 * m/nh4000.h:
19504 * m/ns16000.h:
19505 * m/ns32000.h:
19506 * m/nu.h:
19507 * m/orion.h:
19508 * m/orion105.h:
19509 * m/paragon.h:
19510 * m/pfa50.h:
19511 * m/plexus.h:
19512 * m/pyramid.h:
19513 * m/pyrmips.h:
19514 * m/sh3el.h:
19515 * m/sps7.h:
19516 * m/sr2k.h:
19517 * m/stride.h:
19518 * m/sun1.h:
19519 * m/sun2.h:
19520 * m/sun3-68881.h:
19521 * m/sun3-fpa.h:
19522 * m/sun3-soft.h:
19523 * m/sun3.h:
19524 * m/sun386.h:
19525 * m/symmetry.h:
19526 * m/tad68k.h:
19527 * m/tahoe.h:
19528 * m/targon31.h:
19529 * m/tek4300.h:
19530 * m/tekxd88.h:
19531 * m/tower32.h:
19532 * m/tower32v3.h:
19533 * m/ustation.h:
19534 * m/wicat.h:
19535 * m/xps100.h:
19536 * s/cxux.h:
19537 * s/cxux7.h:
19538 * s/dgux.h:
19539 * s/dgux4.h:
19540 * s/dgux5-4-3.h:
19541 * s/dgux5-4r2.h:
19542 * s/esix.h:
19543 * s/esix5r4.h:
19544 * s/hiuxmpp.h:
19545 * s/hiuxwe2.h:
19546 * s/iris3-5.h:
19547 * s/iris3-6.h:
19548 * s/isc2-2.h:
19549 * s/isc3-0.h:
19550 * s/isc4-0.h:
19551 * s/isc4-1.h:
19552 * s/newsos5.h:
19553 * s/newsos6.h:
19554 * s/osf1.h:
19555 * s/osf5-0.h:
19556 * s/riscix1-1.h:
19557 * s/riscix12.h:
19558 * s/sco4.h:
19559 * s/sco5.h:
19560 * s/sunos4-0.h:
19561 * s/sunos4-1.h:
19562 * s/sunos413.h:
19563 * s/sunos4shr.h:
19564 * s/umax.h:
19565 * s/unipl5-2.h:
19566 * s/xenix.h:
19567 * cxux-crt0.s:
19568 * unexapollo.c:
19569 * unexconvex.c:
19570 * unexenix.c:
19571 * unexsni.c: Remove files for systems no longer supported.
19572
19573 * m/intel386.h: Remove references to unsupported systems.
19574
19575 * w32.c (get_emacs_configuration): Remove reference to i860.
19576
19577 * sysdep.c: Remove dead code.
19578
195792008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19580
19581 * s/rtu.h:
19582 * m/masscomp.h: Remove files. Platform is obsolete.
19583
195842008-01-04 Michael Albinus <michael.albinus@gmx.de>
19585
19586 * dbusbind.c (Fdbus_method_return): New function.
19587 (xd_read_message): Add the serial number to the event.
19588 (Fdbus_register_method): Activate the function.
19589
195902008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19591
19592 * keyboard.c (read_key_sequence): Fix typo.
19593
195942008-01-03 Michael Albinus <michael.albinus@gmx.de>
19595
19596 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19597 (xd_signature, xd_append_arg): Handle element type detection for
19598 empty arrays.
19599 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19600 SDATA () calls; this must be solved more general.
19601 (Fdbus_register_signal): Use SBYTES instead of strlen.
19602
196032008-01-03 Magnus Henoch <magnus@zemdatav>
19604
19605 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19606 unsigned int for byte values (necessary for big-endian platform).
19607 (Fdbus_call_method): Handle the case of no returned arguments.
19608
196092007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19610
19611 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19612
196132007-12-31 Magnus Henoch <mange@freemail.hu>
19614
19615 * dbusbind.c (xd_signature): Signature of variant is just "v".
19616
196172007-12-30 Michael Albinus <michael.albinus@gmx.de>
19618
19619 * dbusbind.c: Fix several errors and compiler warnings.
19620 Reported by Tom Tromey <tromey@redhat.com>.
19621 (XD_ERROR, XD_DEBUG_MESSAGE)
19622 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19623 (xd_append_arg): Part for basic D-Bus types rewritten.
19624 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19625 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19626 appropriate.
19627 (xd_read_message): Return Qnil. Don't signal an error; it is not
19628 useful during event reading.
19629 (Fdbus_register_signal): Signal an error if the check for
19630 FUNCTIONP fails.
19631 (Fdbus_register_method): New function. The implementation is not
19632 complete, the call of the function signals an error therefore.
19633 (Fdbus_unregister_object): New function, renamed from
19634 Fdbus_unregister_signal. The initial check signals an error, if
19635 the object is not well formed.
19636
196372007-12-30 Richard Stallman <rms@gnu.org>
19638
19639 * textprop.c (get_char_property_and_overlay):
19640 Signal error if POSITION is out of range in a buffer.
19641
196422007-12-29 Martin Rudalics <rudalics@gmx.at>
19643
19644 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19645 because the original parameters are in pure storage now.
19646
196472007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19648
19649 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19650
196512007-12-22 Eli Zaretskii <eliz@gnu.org>
19652
19653 * callint.c (syms_of_callint) <command-history>: Add reference to
19654 history-length in the doc string.
19655
196562007-12-17 Jason Rumney <jasonr@gnu.org>
19657
19658 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19659 before passing as wParam.
19660
196612007-12-22 Michael Albinus <michael.albinus@gmx.de>
19662
19663 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19664 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19665 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19666 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19667 as number.
19668 (Fdbus_call_method): Fix docstring.
19669
196702007-12-21 Michael Albinus <michael.albinus@gmx.de>
19671
19672 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19673 New macros.
19674 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19675 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19676 Simplify.
19677 (xd_signature): New function.
19678 (xd_append_arg): Compute also signatures. Major rewrite.
19679 (xd_retrieve_arg): Make debug messages friendly.
19680 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19681 Check for signatures of arguments.
19682
196832007-12-19 Michael Albinus <michael.albinus@gmx.de>
19684
19685 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19686 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19687 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19688 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19689 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19690 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19691 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19692 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19693 (xd_retrieve_value): Remove. Functionality included in ...
19694 (xd_append_arg): New function.
19695 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19696
196972007-12-16 Michael Albinus <michael.albinus@gmx.de>
19698
19699 * dbusbind.c (top): Include <stdio.h>.
19700 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19701 dbus_message_new_method_call and dbus_message_new_signal.
19702 (Fdbus_register_signal): Rename unique_name to uname.
19703 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19704 non-existing unique name. Fix typos in matching rule. Return an
19705 object which is useful in Fdbus_unregister_signal.
19706 (Fdbus_unregister_signal): Reimplementation, in order to remove
19707 only the corresponding entry.
19708 (Vdbus_registered_functions_table): Change the order of entries.
19709 Apply these changes in xd_read_message and Fdbus_register_signal.
19710
197112007-12-16 Andreas Schwab <schwab@suse.de>
19712
19713 * fileio.c (Finsert_file_contents): Fix overflow check to not
19714 depend on undefined integer overflow.
19715
197162007-12-14 Jason Rumney <jasonr@gnu.org>
19717
19718 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19719 for characters above 127.
19720
197212007-12-13 Jason Rumney <jasonr@gnu.org>
19722
19723 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19724 before dereferencing array.
19725 (lookup_vk_code): Remove zero comparison.
19726
197272007-12-14 Michael Albinus <michael.albinus@gmx.de>
19728
19729 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19730 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19731 Use `unsigned int' instead of `uint'.
19732 (xd_read_message, Fdbus_register_signal): Split expressions into
19733 multiple lines before operators "&&" and "||", according to the
19734 GNU Coding Standards.
19735
197362007-12-14 Eli Zaretskii <eliz@gnu.org>
19737
19738 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19739
197402007-12-12 Juri Linkov <juri@jurta.org>
19741
19742 * buffer.c (Frename_buffer): In interactive spec replace
19743 `read-buffer' with `read-string' that uses `buffer-name-history'
19744 as history, and the current buffer's name as default.
19745
197462007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19749 manipulating the backtrace manually.
19750 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19751 (struct backtrace, backtrace_list): Remove.
19752 (command_loop_1): Remove dead var `no_direct'.
19753
19754 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19755 preserve non-built-in buffer-local variables.
19756 (Fkill_all_local_variables): Don't re-create&re-set permanent
19757 buffer-local variables.
19758
197592007-12-09 Juri Linkov <juri@jurta.org>
19760
19761 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19762 Lisp code that uses `read-buffer' with current buffer as default.
19763
197642007-12-08 Michael Albinus <michael.albinus@gmx.de>
19765
19766 * dbusbind.c (xd_read_message): Generate an event for every
19767 registered handler. There might be several handlers registered
19768 for the same signal.
19769 (Fdbus_register_signal): Don't overwrite a registration for the
19770 same signal. Add a new registration if handlers are different.
19771 (Vdbus_registered_functions_table): Rework doc string.
19772
197732007-12-07 Michael Albinus <michael.albinus@gmx.de>
19774
19775 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19776 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19777 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19778 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19779 Unify argument lists.
19780 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19781 arguments and hash table keys. Use unique name for service.
19782 (Fdbus_unregister_signal): Remove checks.
19783 (Vdbus_registered_functions_table): Fix doc string.
19784
197852007-12-05 Magnus Henoch <mange@freemail.hu>
19786
19787 * process.c (make_process): Initialize pty_flag to 0.
19788
197892007-12-05 Jason Rumney <jasonr@gnu.org>
19790
19791 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19792 specified XBMs.
19793
197942007-12-05 Richard Stallman <rms@gnu.org>
19795
19796 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19797
197982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19799
19800 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19801 New variable.
19802 (mac_try_close_socket) [MAC_OSX]: New function.
19803 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19804 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19805
19806 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19807 Use mac_try_close_socket.
19808
198092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19810
19811 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19812 reloc_base.
19813 (copy_dysymtab): Compute relocation base here.
19814 (rebase_reloc_address) [__ppc64__]: New function.
19815 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19816 changed.
19817
198182007-12-05 Jason Rumney <jasonr@gnu.org>
19819
19820 * w32proc.c (sys_spawnve): Quote args with wildcards.
19821
198222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19823
19824 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19825 __objc_* sections.
19826 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19827
198282007-12-05 Michael Albinus <michael.albinus@gmx.de>
19829
19830 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19831 Move check for Vdbus_registered_functions_table to
19832 xd_read_queued_messages.
19833 (xd_read_queued_messages): Protect xd_read_message calls by
19834 internal_condition_case_1.
19835
198362007-12-04 Michael Albinus <michael.albinus@gmx.de>
19837
19838 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19839 Qdbus_system_bus and Qdbus_session_bus, respectively.
19840 (Vdbus_intern_symbols): Remove.
19841 (Vdbus_registered_functions_table): New hash table.
19842 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19843 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19844 Rewrite in order to manage registered functions by hash table
19845 Vdbus_registered_functions_table.
19846
198472007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19848
19849 * xterm.c: Update URL to Window Manager Specification in comment.
19850
198512007-12-02 Michael Albinus <michael.albinus@gmx.de>
19852
19853 * config.in (HAVE_DBUS): Add.
19854
19855 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19856 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19857 (obj): Add $(DBUS_OBJ).
19858 (LIBES): Add $(DBUS_LIBS).
19859 (dbusbind.o): New target.
19860
19861 * dbusbind.c: New file.
19862
19863 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19864
19865 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19866 (Qdbus_event): New Lisp symbol.
19867 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19868 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19869 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19870
19871 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19872
198732007-12-01 Richard Stallman <rms@gnu.org>
19874
19875 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19876
198772007-11-30 Jason Rumney <jasonr@gnu.org>
19878
19879 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19880 (w32con_reset_terminal_modes): Clear screen buffer.
19881 (w32_face_attributes): Don't use color indexes that are out of range.
19882 Only reverse the default colors.
19883
19884 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19885 WINDOWSNT.
19886
19887 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19888
198892007-11-29 Jason Rumney <jasonr@gnu.org>
19890
19891 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19892 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19893 if the terminal colors are initialized.
19894 (unspecified_fg, unspecified_bg): Remove unused declarations.
19895
198962007-11-29 Andreas Schwab <schwab@suse.de>
19897
19898 * keyboard.c (apply_modifiers): Fix typo.
19899
199002007-11-29 Richard Stallman <rms@gnu.org>
19901
19902 * keymap.c (Fcurrent_local_map): Doc fix.
19903
199042007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19905
19906 * s/gnu-kfreebsd.h: New file.
19907
199082007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19909
19910 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19911 Don't cast redundantly.
19912
19913 * keyboard.c (KEY_TO_CHAR): New macro.
19914 (parse_modifiers, apply_modifiers): Accept integer arguments.
19915 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19916 for chars and symbol keys.
19917 After doing such remapping, apply function-key-map again.
19918
199192007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19920
19921 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19922 compiled anymore.
19923
199242007-11-26 Andreas Schwab <schwab@suse.de>
19925
19926 * process.c (list_processes_1): Fix indentation level of the
19927 command column.
19928
199292007-11-23 Andreas Schwab <schwab@suse.de>
19930
19931 * editfns.c (Fformat): Handle %c specially since it requires the
19932 argument to be of type int.
19933
199342007-11-23 Markus Triska <markus.triska@gmx.at>
19935
19936 * emacs.c (main): Call init_editfns before init_process, since
19937 init_process sets Vprocess_connection_type depending on OS release.
19938
199392007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19940
19941 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19942 (find_symbol_value): Use do_symval_forwarding.
19943
19944 * data.c (set_internal): Set the value in the `cons-cell' (for
19945 Buffer_Local_values) not only for frame-local variables.
19946
199472007-11-22 Andreas Schwab <schwab@suse.de>
19948
19949 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19950 values to sprintf.
19951 * keymap.c (Fsingle_key_description): Likewise.
19952 * print.c (print_object): Likewise.
19953
199542007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19955
19956 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19957 file for image is nil.
19958
199592007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19960
19961 * term.c: Include stdarg.h.
19962 (fatal): Implement using varargs.
19963 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19964
199652007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19966
19967 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19968 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19969 Update call to buffer_slot_type_mismatch.
19970 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19971 (buffer_slot_type_mismatch): Update.
19972 * buffer.c (buffer_local_types): Remove.
19973 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19974 (defvar_per_buffer): Set the type in the buffer_objfwd.
19975
199762007-11-21 Jason Rumney <jasonr@gnu.org>
19977
19978 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19979 CreateFileMapping returns NULL on failure.
19980
199812007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19982
19983 * search.c (Fset_match_data): Remove the `evaporate' feature.
19984 (unwind_set_match_data): Don't use the `evaporate' feature.
19985
199862007-11-21 Jason Rumney <jasonr@gnu.org>
19987
19988 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19989
19990 * w32console.c (w32con_write_glyphs): Remove unused variables.
19991
199922007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19993
19994 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19995
19996 * s/darwin.h (MULTI_KBOARD): Remove.
19997
19998 * macfns.c (x_create_tip_frame, Fx_create_frame)
19999 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
20000
200012007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
20002
20003 * buffer.c (Fbuffer_local_value): Remove redundant test.
20004 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
20005 than in `current-buffer' to match the comment.
20006 Do the swap using swap_in_global_binding.
20007
20008 * data.c (store_symval_forwarding, set_internal):
20009 * eval.c (specbind): Remove dead code.
20010
20011 * coding.c (detect_coding, Fupdate_coding_systems_internal):
20012 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
20013 Since we do not want to see internal Lisp_*fwd objects here.
20014
200152007-11-18 Jan Djärv <jan.h.d@swipnet.se>
20016
20017 * sysdep.c (init_system_name): Use getaddrinfo if available.
20018
20019 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
20020 (x_scroll_bar_note_movement): start, end, with, height in struct
20021 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
20022
200232007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
20024
20025 * puresize.h (BASE_PURESIZE): Increase to 1190000.
20026
200272007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
20028
20029 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
20030 This undoes Richard's change of 14-Oct-2002.
20031
20032 * alloc.c (allocate_other_vector):
20033 * lisp.h (allocate_other_vector): Remove.
20034
20035 * window.c (struct save_window_data): Move non-lisp data to the end
20036 and make it `int' rather than Lisp_Object.
20037 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
20038 Done wrap/unwrap integer values.
20039 (Fset_window_configuration, compare_window_configurations):
20040 Update use of fields to their new types.
20041
20042 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
20043 Turn integer fields into `int'. Merge x_window_low and x_window_high.
20044 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
20045 (SET_SCROLL_BAR_X_WINDOW): Remove.
20046 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
20047 Access the new x_window field directly.
20048 * xterm.c (x_scroll_bar_create): Use a pseudovector.
20049 Don't wrap/unwrap integers into Lisp_Objects.
20050 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
20051 (x_scroll_bar_report_motion):
20052 Don't wrap/unwrap integers into Lisp_Objects.
20053 (x_term_init): Use SDATA.
20054 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
20055 (x_scroll_bar_set_handle, x_scroll_bar_remove)
20056 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
20057 (x_scroll_bar_report_motion, x_scroll_bar_clear):
20058 * xfns.c (x_set_background_color):
20059 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
20060 Access the new x_window field directly.
20061
20062 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
20063 (allocate_pseudovector): Make non-static.
20064
20065 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
20066 (allocate_pseudovector): Declare.
20067 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
20068
200692007-11-15 Andreas Schwab <schwab@suse.de>
20070
20071 * editfns.c (Fformat): Correctly format EMACS_INT values.
20072 Also take precision into account when formatting an integer.
20073
20074 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
20075
200762007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
20077
20078 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
20079 (syms_of_keyboard): Defsubr it.
20080
20081 * data.c (swap_in_global_binding): Fix longstanding bug where
20082 store_symval_forwarding was not called with the right second argument,
20083 thus causing objfwd-ing from being dropped.
20084
200852007-11-14 Juanma Barranquero <lekktu@gmail.com>
20086
20087 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
20088 (Fx_display_pixel_height, Fx_display_planes)
20089 (Fx_display_color_cells, Fx_server_max_request_size)
20090 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20091 (Fx_display_visual_class, Fx_display_save_under):
20092 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
20093 (Fx_display_pixel_height, Fx_display_planes)
20094 (Fx_display_color_cells, Fx_server_max_request_size)
20095 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
20096 (Fx_display_mm_height, Fx_display_mm_width)
20097 (Fx_display_backing_store, Fx_display_visual_class)
20098 (Fw32_select_font, Fx_display_save_under):
20099 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
20100 (Fx_display_pixel_height, Fx_display_planes)
20101 (Fx_display_color_cells, Fx_server_max_request_size)
20102 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
20103 (Fx_display_save_under): Fix typos in docstrings.
20104
201052007-11-14 Juanma Barranquero <lekktu@gmail.com>
20106
20107 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
20108 corresponding to deleted entries; they are an implementation detail.
20109 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
20110 Remove variables.
20111 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
20112 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
20113 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
20114 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
20115 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
20116 (Fw32_define_rgb_color, Fw32_load_color_file)
20117 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
20118 Fix typos in docstrings.
20119 (Fx_server_version): Reflow docstring.
20120 (Fw32_shell_execute): Doc fixes.
20121
201222007-11-13 Juanma Barranquero <lekktu@gmail.com>
20123
20124 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
20125 if w32_parse_hot_key returned nil.
20126
201272007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
20128
20129 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20130
201312007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20132
aac0c6e3
MR
20133 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20134
20135 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20136
20137 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20138 Remove W32_SCROLL_BAR_CLICK_EVENT.
20139
20140 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20141 Add MULTIMEDIA_KEY_EVENT.
20142
20143 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20144 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20145 (make_lispy_event) [WINDOWSNT]: Use it to translate
20146 MULTIMEDIA_KEY_EVENT.
20147
20148 * w32term.h (WM_APPCOMMAND): Define if not already.
20149 (GET_APPCOMMAND_LPARAM): Likewise.
20150
20151 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20152 WM_APPCOMMAND.
20153
20154 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20155 (syms_of_w32fns): Export and initialize it.
20156 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20157
201582007-11-09 Chong Yidong <cyd@stupidchicken.com>
20159
20160 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20161 twice.
20162
20163 * xdisp.c (handle_face_prop): Fix last change.
20164
201652007-11-09 Richard Stallman <rms@gnu.org>
20166
20167 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20168 not just for after-strings and before-strings.
20169 Call face_for_overlay_string and pass the overlay to it.
20170 (handle_display_prop): Determine whether property came from an overlay.
20171 Pass OVERLAY arg to handle_single_display_spec.
20172 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20173 (load_overlay_strings): Fill in it->string_overlays.
20174 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20175
20176 * xfaces.c (face_for_overlay_string): Function renamed from
20177 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20178
20179 * dispextern.h (struct it): New elt string_overlays.
20180 New elt from_overlay, also in stack.
20181 Rearrange a few elements.
20182 (face_for_overlay_string): Decl renamed from
20183 face_at_buffer_position_no_overlays, and add argument.
20184
201852007-11-09 Richard Stallman <rms@gnu.org>
20186
20187 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20188 to get the base face for an overlay string.
20189
20190 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20191
20192 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20193
20194 * xdisp.c (handle_stop): Move some code out of loop.
20195
201962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20197
20198 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20199 Fix conversion from Lisp object to ATSUFontID.
20200
202012007-11-09 Jason Rumney <jasonr@gnu.org>
20202
20203 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20204
202052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20206
20207 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20208 Don't assume regions are aligned to page boundary.
20209 (print_load_command_name): Add LC_UUID if defined.
20210
202112007-11-09 Richard Stallman <rms@gnu.org>
20212
20213 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20214
202152007-11-07 Jason Rumney <jasonr@gnu.org>
20216
20217 * s/windows95.h: Remove.
20218
202192007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20220
20221 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20222 abort with a message on unhandled store_type values.
20223
202242007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20225
20226 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20227 Remove HAVE_X11R5 and HAVE_X11R4.
20228
202292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20230
20231 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20232
202332007-11-01 Johan Bockgård <bojohan@gnu.org>
20234
20235 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20236 Don't set s->stippled_p here, since it has already been set by
20237 x_set_glyph_string_gc from x_draw_glyph_string.
20238
202392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20240
20241 * sunfns.c: Remove file.
20242
20243 * m/sun386.h:
20244 * m/sun2.h:
20245 * m/sparc.h: Remove Sun windows code.
20246
202472007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20248
20249 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20250 (init_keyboard): Set current_kboard's window-system to nil.
20251 (tty_read_avail_input): Typo.
20252 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20253
202542007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20255
20256 * s/usg5-4.h:
20257 * s/usg5-3.h:
20258 * s/ptx.h:
20259 * m/is386.h:
20260 * m/ibmps2-aix.h:
20261 * Makefile.in: Remove all mentions of X10.
20262
20263 * dispnew.c (syms_of_display): Don't mention version 10.
20264
202652007-10-28 Juanma Barranquero <lekktu@gmail.com>
20266
20267 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20268 ($(BLD)/abbrev.$(O)): Remove.
20269
202702007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20271
20272 Rewrite abbrev.c in Elisp.
20273 * image.c (Qcount): Don't declare as extern.
20274 (syms_of_image): Initialize and staticpro `Qcount'.
20275 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20276 * emacs.c (main): Don't call syms_of_abbrev.
20277 * Makefile.in (obj): Remove abbrev.o.
20278 (abbrev.o): Remove.
20279 * abbrev.c: Remove.
20280
202812007-10-26 Martin Rudalics <rudalics@gmx.at>
20282
20283 * window.c (window_min_size_2): Don't count header-line.
20284
202852007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20286
20287 * frame.h (struct frame): Move all bit fields after the first bit
20288 field to take advantage of the available space. Group all the
20289 chars together to reduce wasted space due to padding.
20290
202912007-10-26 Juanma Barranquero <lekktu@gmail.com>
20292
20293 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20294
20295 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20296 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20297 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20298 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20299 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20300 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20301 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20302 (last_marked, mark_object_loop_halt): Make static.
20303
20304 * frame.c (syms_of_frame) <delete-frame-functions>:
20305 Fix typo in docstring.
20306
203072007-10-25 Juanma Barranquero <lekktu@gmail.com>
20308
20309 * w32.c (init_environment): Fix tiny memory leak.
20310 (w32_get_resource): Remove unused variable `ok'.
20311
203122007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20313
20314 Make `window-system' into a keyboard-local variable (rather than
20315 frame-local as done originally by multi-tty).
20316
20317 * keyboard.h (struct kboard): Add Vwindow_system.
20318 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20319 (mark_kboards): Mark Vwindow_system.
20320
20321 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20322 (init_display): Don't set the obsolete `window-system' frame-param.
20323
20324 * xterm.c (x_term_init):
20325 * w32term.c (w32_create_terminal):
20326 * term.c (init_tty): Set Vwindow_system.
20327 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20328 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20329
20330 * xfns.c (Fx_create_frame, x_create_tip_frame):
20331 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20332 * macfns.c (Fx_create_frame):
20333 Don't set the obsolete `window-system' frame-param.
20334
20335 * frame.h (Qwindow_system): Remove.
20336 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20337 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20338
203392007-10-24 Richard Stallman <rms@gnu.org>
20340
20341 * frame.c (x_figure_window_size): For fullscreen case,
20342 set USPosition | PPosition without clobbering rest of window_prompting.
20343
20344 * keyboard.c (Fcurrent_idle_time): Doc fix.
20345
20346 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20347
203482007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20349
20350 * process.c (unwind_request_sigio): Only define if __ultrix__.
20351
20352 * callproc.c (child_setup): Remove spurious *.
20353
20354 * lisp.h (Fget_text_property): Declare.
20355 (have_menus_p): Declare it here rather than in sys-dep header files.
20356 * macterm.h (have_menus_p):
20357 * msdos.h (have_menus_p):
20358 * xterm.h (have_menus_p): Remove.
20359
20360 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20361 (Fmake_variable_frame_local): Just check the variable's const-ness
20362 rather than checking nil or t.
20363
203642007-10-22 Jason Rumney <jasonr@gnu.org>
20365
20366 * w32fns.c: Include math.h.
20367 (w32_abort): Declaration moved to nt/config.nt.
20368
20369 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20370 (abort): Redefinition moved to nt/config.nt.
20371
20372 * m/windowsnt.h: Remove.
20373
203742007-10-22 Juanma Barranquero <lekktu@gmail.com>
20375
20376 * emacs.c (Fdump_emacs): Fix typo in message.
20377 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20378 <installation-directory>: Reflow docstring.
20379
203802007-10-22 Juri Linkov <juri@jurta.org>
20381
20382 * minibuf.c: Allow minibuffer default to be a list of default values.
20383 With empty input use the first element of this list as returned default.
20384 (string_to_object)
20385 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20386 (read_minibuf): If defalt is cons, set histstring to its car.
20387 (Fread_string): If default_value is cons, set val to its car.
20388 (Fread_buffer): If def is cons, use its car.
20389 (Fcompleting_read): If defalt is cons, set val to its car.
20390
203912007-10-21 Michael Albinus <michael.albinus@gmx.de>
20392
20393 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20394
203952007-10-20 Juanma Barranquero <lekktu@gmail.com>
20396
20397 * doc.c (Fdocumentation): Check for advice in all cases.
20398
203992007-10-19 Chong Yidong <cyd@stupidchicken.com>
20400
20401 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20402
204032007-10-19 Richard Stallman <rms@gnu.org>
20404
20405 * doc.c (Fdocumentation): Check for and handle an advised function.
20406
204072007-10-19 Juanma Barranquero <lekktu@gmail.com>
20408
20409 * process.c (Fset_process_filter): Doc fix.
20410
204112007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20412
20413 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20414 which caused key-translation-map to applied repeatedly (thus breaking
20415 double-mode).
20416
204172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20418
20419 * xselect.c (x_own_selection, x_handle_selection_clear)
20420 (x_clear_frame_selections):
20421 * w32menu.c (list_of_panes, list_of_items):
20422 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20423 * textprop.c (validate_plist, interval_has_all_properties)
20424 (interval_has_some_properties, interval_has_some_properties_list)
20425 (add_properties, text_property_list):
20426 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20427 * minibuf.c (Fassoc_string):
20428 * macselect.c (x_own_selection, x_clear_frame_selections)
20429 (Fx_disown_selection_internal):
20430 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20431 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20432
204332007-10-17 Chong Yidong <cyd@stupidchicken.com>
20434
20435 * process.c: Link to libs for calling res_init() if available.
20436 (Fmake_network_process): Call res_init() before getaddrinfo or
20437 gethostbyname, if possible.
20438
204392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20440
20441 * lread.c (read1): Set pvectype for char_tables.
20442
20443 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20444 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20445 Add type checks.
20446 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20447
20448 * alloc.c (free_misc): Use XMISCTYPE.
20449 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20450
204512007-10-17 Glenn Morris <rgm@gnu.org>
20452
20453 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20454 (syms_of_minibuf): Add Qcompletion_ignore_case.
20455 * dired.c (Qcompletion_ignore_case): Change to external.
20456 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20457 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20458 (Fread_file_name): Use it rather than intern'ing.
20459
20460 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20461 (Fread_coding_system): Ignore case of user input.
20462
204632007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20464
20465 * xdisp.c (handle_display_prop): Ignore display specs after
20466 replacing one when string text is being replaced.
20467 (handle_single_display_spec): Pretend as if characters with display
20468 property haven't been consumed only when buffer text is being replaced.
20469
204702007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20471
20472 * xfns.c (Fx_create_frame, Fx_display_list):
20473 * window.c (window_fixed_size_p, enlarge_window)
20474 (shrink_window_lowest_first):
20475 * macterm.c (init_font_name_table):
20476 * macfns.c (Fx_create_frame, Fx_display_list):
20477 * lread.c (close_load_descs):
20478 * keyboard.c (read_char_x_menu_prompt):
20479 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20480 * coding.c (code_convert_region_unwind): Test the type of an object
20481 rather than just !NILP before extracting data from it.
20482
20483 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20484
20485 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20486 (XMISCANY): New macro.
20487 (XMISCTYPE): Use it.
20488 (struct Lisp_Misc_Any): New type.
20489 (union Lisp_Misc): Use it.
20490 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20491 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20492 (find_symbol_value, set_internal, default_value, Fset_default)
20493 (Fmake_variable_buffer_local, Fmake_local_variable)
20494 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20495 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20496 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20497 * alloc.c (allocate_buffer): Set the size and tag.
20498 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20499 Use XMISCANY.
20500 (die): Follow the GNU convention for error messages.
20501 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20502 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20503 tag any more.
20504 (set_buffer_internal_1):
20505 * frame.c (store_frame_param):
20506 * eval.c (specbind):
20507 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20508
20509 * doc.c (Fsnarf_documentation): Simplify.
20510
205112007-10-14 Juanma Barranquero <lekktu@gmail.com>
20512
20513 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20514 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20515
205162007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20517
20518 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20519
205202007-10-14 Juanma Barranquero <lekktu@gmail.com>
20521
20522 * eval.c (do_autoload): Don't save autoloads.
20523
20524 * data.c (Ffset): Save autoload of the function being set.
20525
205262007-10-07 John Paul Wallington <jpw@pobox.com>
20527
20528 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20529 parameter before setting up faces.
20530
205312007-10-13 Eli Zaretskii <eliz@gnu.org>
20532
20533 * ccl.c (Fregister_code_conversion_map):
20534 * keyboard.c (append_tool_bar_item): Reformat last change.
20535
20536 * lisp.h (eabs): Rename from `abs'. All callers changed.
20537
205382007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20539
20540 * buffer.c (add_overlay_mod_hooklist):
20541 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20542 * fontset.c (make_fontset):
20543 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20544 (append_tool_bar_item):
20545 * macmenu.c (grow_menu_items):
20546 * w32menu.c (grow_menu_items):
20547 * xmenu.c (grow_menu_items): Use larger_vector.
20548
205492007-10-13 Eli Zaretskii <eliz@gnu.org>
20550
20551 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20552 selected frame'' on MSDOS).
20553
205542007-10-12 Martin Rudalics <rudalics@gmx.at>
20555
20556 * frame.c (Qexplicit_name): New variable.
20557 (x_report_frame_params): Report it in parameter alist.
20558 (syms_of_frame): Intern and staticpro it.
20559
205602007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20561
20562 * macfns.c (x_create_tip_frame): Set terminal for frame.
20563
205642007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20565
20566 * frame.c (Qenvironment): Remove.
20567 (syms_of_frame) <Qenvironment>: Don't initialize.
20568 (Fdelete_frame): Don't treat the `environment' param specially.
20569 * frame.h (Qenvironment): Don't declare.
20570 * callproc.c (set_initial_environment): Don't set unused frame param.
20571
20572 * frame.c (Fframe_with_environment): Remove.
20573 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20574
20575 * lisp.h (Fframe_with_environment): Don't declare.
20576
205772007-10-10 Juanma Barranquero <lekktu@gmail.com>
20578
20579 * indent.c (indent_tabs_mode, last_known_column)
20580 (last_known_column_modified): Make static.
20581 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20582
205832007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20584
20585 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20586
205872007-10-09 Jason Rumney <jasonr@gnu.org>
20588
20589 * w32term.c (x_set_window_size): Disable code that attempts to tell
20590 Lisp code about a size change before it actually happens.
20591
205922007-10-09 Richard Stallman <rms@gnu.org>
20593
20594 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20595 return HANDLED_RETURN.
20596
205972007-10-08 Martin Rudalics <rudalics@gmx.at>
20598
20599 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20600 when there's an unread command event.
20601
20602 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20603 window autoselection act appropriately when leaving selected frame.
20604 (syms_of_frame): Initialize focus_follows_mouse.
20605 * frame.h (focus_follows_mouse): Extern it.
20606 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20607 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20608 * msdos.c (dos_rawgetc): Likewise.
20609 * w32term.c (w32_read_socket): Likewise.
20610 * xterm.c (handle_one_xevent): Likewise.
20611 * xdisp.c (syms_of_xdisp): In doc-string of
20612 mouse-autoselect-window mention focus-follows-mouse.
20613
206142007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20615
20616 * macterm.c (mac_load_query_font): Fix missing return value.
20617 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20618 Add BLOCK_INPUT.
20619
206202007-10-08 Richard Stallman <rms@gnu.org>
20621
20622 * xdisp.c (get_window_cursor_type): Implement documented behavior
20623 for cursor-in-non-selected-windows = t.
20624
206252007-10-08 Jason Rumney <jasonr@gnu.org>
20626
20627 * w32.c (w32_get_resource): Always close registry keys.
20628
206292007-10-08 Jason Rumney <jasonr@gnu.org>
20630
20631 * makefile.w32-in (LIBS): Add COMCTL32.
20632
20633 * w32fns.c (globals_of_w32fns): Init common controls.
20634
206352007-10-08 Richard Stallman <rms@gnu.org>
20636
20637 * image.c (our_memory_buffer): Rename from omfib_buffer.
20638
206392007-10-08 Richard Stallman <rms@gnu.org>
20640
20641 * buffer.c (Foverlays_at): Doc fix.
20642
206432007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * fns.c (Fplist_put): Preserve uneven tail data.
20646
206472007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20648
20649 * termhooks.h (enum event_kind): Remove trailing comma.
20650
20651 * frame.h (enum): Remove trailing comma.
20652
206532007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20654
20655 * w32proc.c (delete_child): Don't terminate threads of zombies.
20656
206572007-10-08 Martin Rudalics <rudalics@gmx.at>
20658
20659 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20660
20661 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20662 last-repeatable-command.
20663 (init_kboard): Initialize Vlast_repeatable_command.
20664 (command_loop_1): Set it to real_this_command unless that was
20665 bound to an input event.
20666 (mark_kboards): Mark it.
20667
206682007-10-08 Richard Stallman <rms@gnu.org>
20669
20670 * eval.c (condition-case): Doc fix.
20671
206722007-10-08 Masatake YAMATO <jet@gyve.org>
20673
20674 * xfaces.c (tty_supports_face_attributes_p): Fix code
20675 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20676 was copied and not edited.
20677
206782007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20679
20680 Add new `input-decode-map' keymap and use it for terminal
20681 escape sequences.
20682 * keyboard.h (struct kboard): Add Vinput_decode_map.
20683 Remove Vlocal_key_translation_map.
20684 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20685 (init_kboard): Init input-decode-map.
20686 Replace local-key-translation-map back with key-translation-map.
20687 (syms_of_keyboard): Declare input-decode-map.
20688 Remove local-key-translation-map. Update docstrings.
20689 (mark_kboards): Mark Vinput_decode_map.
20690 Don't mark Vlocal_key_translation_map.
20691 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20692 Replace local-key-translation-map back with key-translation-map.
20693 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20694 Bind in input-decode-map rather than function-key-map.
20695
20696 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20697 This was made redundant by the previous introduction of XSETPVECTYPE.
20698
206992007-10-09 Richard Stallman <rms@gnu.org>
20700
20701 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20702
207032007-09-29 Richard Stallman <rms@gnu.org>
20704
20705 * eval.c (internal_condition_case_2, internal_condition_case_1)
20706 (internal_condition_case): Reenable abort if x_catching_errors ()
20707 to see if that really happens and why.
20708
207092007-10-06 Andreas Schwab <schwab@suse.de>
20710
20711 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20712
207132007-10-04 Juanma Barranquero <lekktu@gmail.com>
20714
20715 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20716
207172007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20718
20719 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20720
207212007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20722
20723 * window.h (struct window):
20724 * window.c (struct save_window_data, struct saved_window):
20725 * termhooks.h (struct terminal):
20726 * process.h (struct Lisp_Process):
20727 * frame.h (struct frame):
20728 * buffer.h (struct buffer):
20729 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20730 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20731 The size field of (pseudo)vectors is now unsigned.
20732 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20733
20734 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20735 Turn `count' into an integer.
20736
20737 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20738 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20739 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20740 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20741 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20742
20743 * alloc.c (allocate_pseudovector): New fun.
20744 (ALLOCATE_PSEUDOVECTOR): New macro.
20745 (allocate_window, allocate_terminal, allocate_frame)
20746 (allocate_process): Use it.
20747 (mark_vectorlike): New function.
20748 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20749 (mark_terminals): Use it.
20750 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20751 (Fmake_byte_code): Use XSETPVECTYPE.
20752
20753 * frame.c (Fframe_parameters): Minor simplification.
20754
20755 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20756
20757 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20758
20759 * buffer.c (Fget_buffer_create, init_buffer_once):
20760 * lread.c (defsubr):
20761 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20762
20763 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20764 defined differently in the m/*.h files.
20765 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20766 (XSETPVECTYPE): New macro.
20767 (XSETPSEUDOVECTOR): Use it.
20768
20769 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20770 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20771
20772 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20773 * lread.c (defvar_per_buffer):
20774 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20775
20776 * window.c (candidate_window_p): Only consider as visible frames that
20777 are on the same terminal.
20778
20779 * m/ibms390x.h (MARKBIT): Remove unused macro.
20780
207812007-10-01 Juanma Barranquero <lekktu@gmail.com>
20782
20783 * lread.c (Fload): Fix typo in docstring.
20784
207852007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20786
20787 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20788 of a non-zero value can't yield zero.
20789
207902007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20791
20792 * term.c (term_clear_mouse_face, term_mouse_highlight)
20793 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20794
20795 * print.c (safe_debug_print): Use XHASH.
20796
20797 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20798 Lisp elements such as tags.
20799 (XHASH): New macro.
20800 (EQ): Use it.
20801 (SREF, SSET, STRING_COPYIN): Use SDATA.
20802 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20803
20804 * alloc.c (mark_terminal): Remove left-over declaration.
20805 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20806 (allocate_vectorlike): Remove type argument. Adjust callers.
20807 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20808 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20809
20810 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20811 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20812 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20813 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20814 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20815 Use them.
20816
20817 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20818 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20819 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20820
208212007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20822
20823 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20824 loaded by default.
20825
208262007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20827
20828 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20829 on this tty.
20830 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20831
20832 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20833 Update all users.
20834 (handle_one_term_event): Use Gpm_DrawPointer.
20835 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20836 Signal errors instead of returning nil. Always return nil.
20837 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20838 Make it a noop if gpm-mouse was not activated.
20839 (syms_of_term): Update names.
20840
208412007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20842
20843 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20844 (init_sys_modes): Check that gpm_tty is the current tty.
20845
20846 * alloc.c (allocate_terminal): Set the vector size to only count the
20847 lisp fields. Initialize those to nil.
20848 (mark_object): Don't treat terminals specially.
20849 (mark_terminal): Remove.
20850 (mark_terminals): Use mark_object instead.
20851
20852 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20853 the GC to the beginning.
20854
20855 * indent.h:
20856 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20857
20858 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20859
208602007-09-25 Jason Rumney <jasonr@gnu.org>
20861
20862 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20863
20864 * w32console.c (create_w32cons_output): Remove.
20865
20866 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20867
20868 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20869 (reset_sys_modes): Use reset_terminal_modes_hook.
20870
208712007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20872
20873 * eval.c (do_autoload): Don't output any message.
20874
208752007-09-24 Juri Linkov <juri@jurta.org>
20876
20877 * emacs.c (standard_args): Change priority of "--no-splash"
20878 from 40 to 3. Add "--no-desktop" with the same priority.
20879
208802007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20881
20882 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20883 and optimize the case where they are all 1.
20884
208852007-09-23 Johannes Weiner <hannes@saeurebad.de>
20886
20887 * lisp.h (abs): Define if not defined.
20888 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20889 Don't define `abs', since it's defined in lisp.h.
20890
208912007-09-22 Eli Zaretskii <eliz@gnu.org>
20892
20893 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20894 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20895 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20896 (init_tty): Use DEV_TTY instead of "/dev/tty".
20897 [WINDOWSNT]: No need to protect from NAME arg being null.
20898
208992007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20900
20901 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20902 up the tty state.
20903
209042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20905
20906 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20907 (gpm_tty): Change its type.
20908 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20909 (gpm_tty): Change its type and initialize it.
20910 (Fterm_open_connection): Check the frame is indeed a tty.
20911 Use the new gpm_tty.
20912 (Fterm_close_connection): Use the new gpm_tty.
20913 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20914 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20915
209162007-09-21 Juanma Barranquero <lekktu@gmail.com>
20917
20918 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20919 underline_color, to draw strike-through.
20920
209212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20922
20923 * lisp.h (allocate_terminal): Declare.
20924
20925 * window.c (candidate_window_p): Consider frames that are being placed
20926 by the user as somewhere between visible and iconified.
20927 (window_loop): Prefer windows on the current frame.
20928 (Fselect_window): Move the use of select-frame to the beginning so we
20929 can just delegate all the work (it'll call us back anyway).
20930
20931 * frame.c (Qdisplay_environment_variable):
20932 * frame.h (Qdisplay_environment_variable): Delete.
20933
20934 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20935 of the first arg, since that value may be a union.
20936
20937 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20938 parameter rather than Qdisplay_environment_variable. If all else
20939 fails, look for DISPLAY in initial-environment.
20940
209412007-09-21 Glenn Morris <rgm@gnu.org>
20942
20943 * Makefile.in (emacstool): Remove target.
20944 (lisp, shortlisp): Remove termdev.elc.
20945
209462007-09-21 Markus Triska <markus.triska@gmx.at>
20947
20948 * xterm.c (x_delete_display): Compile session management conditionally.
20949
209502007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20951
20952 * callproc.c (getenv_internal_1): New function.
20953 (getenv_internal): Use it.
20954 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20955
20956 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20957 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20958 (Fset_terminal_parameter): Work with dead terminals as well.
20959 (Fmodify_terminal_parameters): Remove.
20960
20961 * terminal.c (get_terminal): Handle terminals.
20962 Make sure the terminal returned is live.
20963 (create_terminal): Use allocate_terminal.
20964 (mark_terminals): Move to alloc.c.
20965 (delete_terminal): Use terminal->name as liveness status.
20966 NULL out fields after freeing their contents.
20967 Don't deallocate the object.
20968 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20969 rather than an int.
20970 (Fterminal_live_p): Accept non-integer arguments.
20971 (Fterminal_list): Return terminal objects rather than an ints.
20972
20973 * alloc.c (enum mem_type): New member for `terminal' objects.
20974 (allocate_terminal): New function.
20975 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20976 Handle terminals.
20977 (mark_terminal): New fun.
20978 (mark_terminals): Move from terminal.c.
20979
20980 * term.c (get_tty_terminal): Don't treat output_initial specially.
20981 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20982 (delete_tty): Use terminal->name as liveness status.
20983
20984 * termhooks.h (struct terminal): Make it into a pseudovector.
20985 Remove `deleted' replaced by checking `name's nullness.
20986
20987 * print.c (print_object): Handle terminals.
20988
20989 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20990 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20991
20992 * frame.c (make_terminal_frame):
20993 * keyboard.c (tty_read_avail_input):
20994 * w32term.c (x_delete_terminal):
20995 * xfns.c (Fx_create_frame, x_create_tip_frame):
20996 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20997
209982007-09-20 Glenn Morris <rgm@gnu.org>
20999
21000 * process.c (Fmake_network_process): Doc fix.
21001
210022007-09-19 Jason Rumney <jasonr@gnu.org>
21003
21004 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
21005
210062007-09-19 Michaël Cadilhac <michael@cadilhac.name>
21007
21008 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
21009 Fix a C warning regarding variable constness.
21010
21011 * xterm.c (handle_one_xevent): Fix a C warning.
21012
210132007-09-18 Jason Rumney <jasonr@gnu.org>
21014
21015 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
21016
210172007-09-17 Jan Djärv <jan.h.d@swipnet.se>
21018
21019 * gtkutil.c (gdpy_def): New variable.
21020 (xg_initialize): Initialize gdpy_def.
21021 (xg_display_close): If no other display exists, set gdpy_def to a
21022 new connection.
21023
210242007-09-16 Jan Djärv <jan.h.d@swipnet.se>
21025
21026 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
21027 when we have no file name for the icon.
21028 (xg_tool_bar_expose_callback): Remove.
21029 (xg_create_tool_bar): Don't connect expose signal to
21030 xg_tool_bar_expose_callback.
21031 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
21032
210332007-09-16 Andreas Schwab <schwab@suse.de>
21034
21035 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
21036 values instead of zapping them.
21037
210382007-09-14 Glenn Morris <rgm@gnu.org>
21039
21040 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
21041 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
21042 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
21043 scope and rename to omfib_buffer for clarity.
21044 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
21045
210462007-09-14 Kenichi Handa <handa@m17n.org>
21047
21048 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
21049
210502007-09-13 Jason Rumney <jasonr@gnu.org>
21051
21052 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
21053
21054 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
21055
21056 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
21057 (mac_term_init): Call here instead, passing rif.
21058
210592007-09-13 Glenn Morris <rgm@gnu.org>
21060
21061 * s/hpux.h: No longer define `static' as nothing.
21062
210632007-09-13 Johan Bockgård <bojohan@gnu.org>
21064
21065 * callint.c (Fcall_interactively): Remove unused var `fun'.
21066
210672007-09-12 Romain Francoise <romain@orebokech.com>
21068
21069 * window.c (prefer_window_split_horizontally, display_buffer):
21070 Revert 2007-09-08 change.
21071
210722007-09-12 Glenn Morris <rgm@gnu.org>
21073
21074 * alloca.c: Remove file.
21075 * Makefile.in (alloca): Do not undef.
21076 (allocaobj, alloca.o): Remove.
21077 (otherobj): Remove allocaobj.
21078 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
21079 * regex.c (C_ALLOCA): Remove all references and code that was only
21080 used when this was defined.
21081 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
21082 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
21083 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
21084
21085 * Makefile.in (SOURCES, unlock, relock): Delete.
21086
21087 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
21088 (menu_grab_callback): All uses changed.
21089
21090 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
21091 (x_reply_selection_request): All uses changed.
21092
210932007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
21094
21095 * lread.c (load_warn_old_style_backquotes): Change message to look
21096 better when it appears in the middle of byte-compiler messages.
21097
210982007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
21099
21100 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
21101
21102 * xterm.c (x_create_terminal): Add comment.
21103
21104 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
21105
211062007-09-10 Richard Stallman <rms@gnu.org>
21107
21108 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
21109
211102007-09-10 Michaël Cadilhac <michael@cadilhac.name>
21111
21112 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
21113 (DEFUN): Document `intspec', use it instead of `prompt'.
21114
21115 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
21116
21117 * data.c (Finteractive_form): If the interactive specification starts
21118 with a `(', use it as a Lisp form.
21119
21120 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
21121 name and file modes.
21122
21123 * callint.c (Fcall_interactively): Comment fixes.
21124
211252007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
21126
21127 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
21128 and compiled functions.
21129
211302007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21131
21132 * window.c (prefer_window_split_horizontally): New variable.
21133 (display_buffer): Consider splitting window horizontally depending
21134 on prefer_window_split_horizontally.
21135
211362007-09-08 Eli Zaretskii <eliz@gnu.org>
21137
21138 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21139
211402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21141
21142 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21143
21144 * frame.c (x_set_frame_parameters): Check number is positive before
21145 using XFASTINT.
21146
21147 * window.c (freeze_window_start): Don't presume selected_window holds
21148 a window object.
21149 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21150
211512007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21152
21153 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21154
211552007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21156
21157 * window.c (Vsplit_window_preferred_function): New var.
21158 (Fdisplay_buffer): Use it.
21159 (syms_of_window): Export, and initialize it.
21160
211612007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21162
21163 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21164
211652007-09-06 Glenn Morris <rgm@gnu.org>
21166
21167 * gtkutil.c (menu_grab_callback) <cnt>:
21168 * xselect.c (x_reply_selection_request) <cnt>: Move static
21169 variable to file scope.
21170
211712007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21172
21173 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21174 consistent values of selected_frame and selected_window.
21175
211762007-09-04 Jason Rumney <jasonr@gnu.org>
21177
21178 * w32console.c (initialize_w32_display): Zero unused hooks.
21179
211802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21181
21182 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21183 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21184
211852007-09-04 Jason Rumney <jasonr@gnu.org>
21186
21187 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21188 in w32console.c. Set up input. Remove XXX comments that have been
21189 confirmed as correct.
21190
21191 * s/ms-w32.h (MULTI_KBOARD): Define.
21192
21193 * w32console.c (one_and_only_w32cons): Remove.
21194 (initialize_w32_display): Take terminal argument.
21195
21196 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21197 initialize_w32_display.
21198 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21199
21200 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21201
21202 * keyboard.c (discard_mouse_events): Discard it.
21203 (make_lispy_event): Translate it to a lisp event.
21204 (lispy_wheel_names): Add wheel-left and right events.
21205 (syms_of_keyboard): Enlarge wheel_syms.
21206
21207 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21208 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21209
21210 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21211
21212 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21213 from WM_MOUSEHWHEEL.
21214 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21215
21216 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21217 terminal.
21218
21219 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21220 keyboard for the terminal.
21221
212222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21223
21224 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21225 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21226 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21227 and resume-tty-function to resume-tty-hook.
21228 (Fsuspend_tty, Fresume_tty): Use new names.
21229
212302007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21231
21232 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21233 if it starts with "n:".
21234
212352007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21236
21237 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21238
212392007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21240
21241 * frame.h:
21242 * frame.c (Qterm_environment_variable): Remove.
21243 (syms_of_frame): Don't init and staticpro it.
21244
21245 * callproc.c (getenv_internal): Remove special case for $TERM.
21246
21247 * callproc.c (Vinitial_environment): New variable.
21248 (set_initial_environment): Initialize it.
21249 (syms_of_callproc): Declare it.
21250 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21251 TERM under which a process runs is never related to the TERM in which
21252 Emacs is running.
21253
212542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21255
21256 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21257 * s/darwin.h: ... do it here.
21258
212592007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21260
21261 * lisp.h (set_initial_environment): Rename from set_global_environment.
21262
21263 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21264 removed by mistake on the multi-tty branch.
21265
21266 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21267 (Fmodify_frame_parameters): Return a value.
21268
21269 * image.c (png_load): Comment-out var only used in commented-out code.
21270
21271 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21272 before passing it to mark_object.
21273
21274 * xfaces.c (internal_resolve_face_name): Return a value.
21275 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21276
21277 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21278 (x_icon): Comment-out var only used in commented-out code.
21279
212802007-08-29 Romain Francoise <romain@orebokech.com>
21281
21282 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21283 QUIT hasn't been provided.
21284
212852007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21286
21287 * callproc.c (child_setup, getenv_internal): Use the
21288 display-environment-variable and term-environment-variable frame params.
21289 (set_initial_environment): Initialise Vprocess_environment.
21290
21291 * config.in: Disable multi-keyboard support on a mac.
21292
21293 * frame.c (Qterm_environment_variable)
21294 (Qdisplay_environment_variable): New variables.
21295 (syms_of_frame): Intern and staticpro them.
21296 (Fmake_terminal_frame): Disable output method test.
21297
21298 * frame.h: Declare them here.
21299
21300 * macfns.c (x_set_mouse_color): Get rif from the frame.
21301 (x_set_tool_bar_lines): Don't use updating_frame.
21302 (mac_window): Add 2 new parameters for consistency with other systems.
21303 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21304 frame parameters following what is done in X11 and w32. Don't use
21305 FRAME_MAC_DISPLAY_INFO.
21306 (Fx_open_connection, start_hourglass): Remove window-system check.
21307 (x_create_tip_frame): Get the keyboard from the terminal.
21308
21309 * macmenu.c: Reorder includes.
21310 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21311
21312 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21313 terminal parameter.
21314 (x_clear_frame): Add a frame parameter.
21315 (note_mouse_movement): Get rif from the frame.
21316 (mac_term_init): Initialize the terminal.
21317 (mac_initialize): Make static and move terminal initialization ...
21318 (mac_create_terminal): ... to this new function.
21319
21320 * macterm.h (struct mac_display_info): Add terminal.
21321 (mac_initialize): Delete declaration.
21322
21323 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21324
21325 * sysdep.c: Comment out text after #endif.
21326
21327 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21328 is defined. Better initialize ttys in windows. Use terminal
21329 specific mouse_position_hook.
21330
21331 * termhooks.h (union display_info): Add mac_display_info.
21332
21333 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21334 Set the default minibuffer frame, window_system and the rest of the
21335 frame parameters following what is done in X11.
21336
21337 * w32term.c (w32_initialize): Make static.
21338
21339 * xselect.c (x_handle_selection_clear): Only access
21340 terminal->kboard when MULTI_KBOARD is defined.
21341
21342 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21343 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21344
213452007-08-29 Jason Rumney <jasonr@gnu.org>
21346
21347 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21348 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21349
21350 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21351 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21352
21353 * keyboard.c (restore_kboard_configuration): Only define when
21354 MULTI_KBOARD defined.
21355
21356 * makefile.w32-in: Update dependancies from Makefile.in.
21357 (OBJ1): Add terminal.$(O)
21358
21359 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21360 Don't define function body.
21361 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21362
21363 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21364
21365 * w32.c (request_sigio, unrequest_sigio): Remove.
21366
21367 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21368 (w32con_clear_frame, w32con_clear_end_of_line)
21369 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21370 (w32con_delete_glyphs, w32con_set_terminal_window)
21371 (scroll_line, w32_sys_ring_bell): Add frame arg.
21372 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21373 Add terminal arg.
21374 (PICK_FRAME): Remove.
21375 (w32con_write_glyphs): Use frame specific terminal coding.
21376 (one_and_only_w32cons): New global variable.
21377 (initialize_w32_display): Use it for storing hooks.
21378 (create_w32cons_output): New function.
21379
21380 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21381 arg a frame.
21382
21383 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21384 Set window_system.
21385 (x_set_tool_bar_lines): Don't use updating_frame.
21386 (Fx_create_frame): Set terminal and ref count.
21387 (Fx_open_connection): Remove window-system check.
21388
21389 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21390
21391 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21392 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21393 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21394 Add frame arg.
21395 (x_delete_terminal, w32_create_terminal): New functions.
21396 (w32_term_init): Create a terminal.
21397 (w32_initialize): Move terminal specific initialization to
21398 w32_create_terminal.
21399
21400 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21401 (w32_clear_rect, w32_clear_area): Use background from frame.
21402 (w32_display_info): Add terminal.
21403 (w32_sys_ring_bell, x_delete_display): Declare here.
21404
21405 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21406
21407 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21408
214092007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21410
21411 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21412 Fix get_named_tty calls for the controlling tty.
21413
214142007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21415
194d44e7 21416 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21417
214182007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21419
21420 * term.c (tty_insert_glyphs): Add missing first parameter.
21421
214222007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21423
21424 * buffer.c (Fbuffer_list, Fbury_buffer):
21425 Take frame->buried_buffer_list into account.
21426
21427 * cm.c (current_tty): New variable, for cmputc().
21428 (cmputc): Use it.
21429 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21430 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21431 (cmgoto): Add tty parameter. Pass it on to calccost().
21432 Use emacs_tputs() instead of tputs().
21433
21434 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21435 tputs().
21436 (current_tty): New variable, for cmputc().
21437 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21438
21439 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21440 (internal_condition_case, internal_condition_case_1)
21441 (internal_condition_case_2): Don't abort when x_catching_errors.
21442
21443 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21444 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21445 prevent crashes caused by bogus longjmps in read_char.
21446
21447 * keymap.h (Fset_keymap_parent): Add EXFUN.
21448
21449 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21450 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21451 Remove redundant definition.
21452
21453 * macfns.c (x_set_mouse_color, x_make_gc):
21454 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21455
21456 * w32term.c (x_free_frame_resources):
21457 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21458 (w32_initialize): Use the accessor macros for terminal characteristics.
21459
21460 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21461 Use the accessor macros for terminal characteristics.
21462 * msdos.c (internal_terminal_init): Use the accessor macros for
21463 terminal characteristics.
21464 (ScreenVisualBell, internal_terminal_init):
21465 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21466
21467 * termopts.h (no_redraw_on_reenter): Declare.
21468
21469 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21470 (mark_terminals, mark_ttys): Declare.
21471 (Fgarbage_collect): Call them.
21472 (mark_object): Mark buried_buffer_list.
21473
21474 * prefix-args.c: Include stdlib.h for exit.
21475
21476 * syssignal.h: Add comment.
21477
21478 * indent.c: Include stdio.h.
21479
21480 * window.h (Vinitial_window_system): Declare.
21481 (Vwindow_system): Delete declaration.
21482
21483 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21484
21485 * image.c (lookup_image): Don't initialize `c' until the xasserts
21486 have been run.
21487
21488 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21489 FRAME_FOREGROUND_PIXEL.
21490
21491 * print.c (print_preprocess): Don't lose print_depth levels while
21492 iterating.
21493
21494 * widget.c (update_from_various_frame_slots):
21495 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21496
21497 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21498 frames.
21499 (window_internal_height): Remove bogus make_number call.
21500 (init_window_once): Call make_terminal_frame with two zero parameters.
21501
21502 * fileio.c (Fread_file_name): Update comment.
21503
21504 * callint.c (Fcall_interactively):
21505 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21506 Make sure it is correctly unwound.
21507
21508 * xsmfns.c (x_session_close): New function.
21509
21510 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21511 Delete declarations.
21512
21513 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21514 (x_output): Remove background_pixel and foreground_pixel fields.
21515 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21516 (x_delete_device, x_session_close): Declare.
21517
21518 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21519 (read_filtered_event): Call `read_char' with a local
21520 `wrong_kboard_jmpbuf'.
21521
21522 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21523 Don't call single_kboard_state. Use FRAME_RIF.
21524
21525 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21526 systems.
21527
21528 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21529 (Fframe_with_environment, Fset_input_meta_mode)
21530 (Fset_quit_char): EXFUN.
21531 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21532 (init_sys_modes, reset_sys_modes): Update prototypes.
21533 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21534
21535 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21536 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21537 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21538 Delete declarations.
21539 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21540 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21541 New declarations.
21542
21543 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21544 already does that during init_display(). Call syms_of_keymap
21545 before syms_of_keyboard. Call `syms_of_terminal'.
21546 Call set_initial_environment, not set_process_environment.
21547 (shut_down_emacs): Call reset_all_sys_modes() instead of
21548 reset_sys_modes().
21549
21550 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21551 (internal_resolve_face_name, resolve_face_name_error): New functions.
21552 (resolve_face_name): Protect against loops and errors thrown by Fget.
21553 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21554 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21555
21556 * scroll.c: Replace CURTTY() with local variables throughout the
21557 file (where applicable).
21558 (calculate_scrolling, calculate_direct_scrolling)
21559 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21560 characteristics.
21561
21562 * keymap.c (Vfunction_key_map): Remove.
21563 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21564 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21565 (Vkey_translation_map): Remove.
21566 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21567 (Fdescribe_buffer_bindings)
21568 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21569 Update for terminal-local key-translation-map.
21570
21571 * Makefile.in (callproc.o): Update dependencies.
21572 (lisp, shortlisp): Add termdev.elc.
21573 (obj): Add terminal.o.
21574 (terminal.o): Add dependencies.
21575 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21576 (data.o, fns.o): Add termhooks.h dependency.
21577 (SOME_MACHINE_LISP): Add dnd.elc.
21578 (minibuf.o): Fix typo.
21579 Update dependencies.
21580
21581 * data.c (do_symval_forwarding, store_symval_forwarding)
21582 (find_symbol_value): Use the selected frame's keyboard, not
21583 current_kboard.
21584
21585 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21586 Vwindow_system.
21587
21588 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21589 Fmenu_bar_open.
21590 (syms_of_xmenu): Update defsubr.
21591 (mouse_position_for_popup, Fx_popup_menu)
21592 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21593 (set_frame_menubar, free_frame_menubar)
b97439ce 21594 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21595 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21596 an X frame.
21597
21598 * xselect.c (x_own_selection): Abort if not an X frame.
21599 (some_frame_on_display): Check if it is an X frame.
21600 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21601
21602 * coding.c: Include frame.h and termhooks.h.
21603 (terminal_coding, keyboard_coding): Delete.
21604 (Fset_terminal_coding_system_internal)
21605 (Fset_keyboard_coding_system_internal)
21606 (Fkeyboard_coding_system)
21607 (Fterminal_coding_system): Add a terminal parameter.
21608 Get terminal_coding from the terminal.
21609 (init_coding_once): Don't call setup_coding_system here.
21610
21611 * dispextern.h (set_scroll_region, turn_off_insert)
21612 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21613 (tty_clear_end_of_line, tty_setup_colors)
21614 (delete_tty, updating_frame)
21615 (produce_special_glyphs, produce_glyphs, write_glyphs)
21616 (insert_glyphs): Remove.
21617 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21618 (tty_turn_off_highlight, get_tty_size): Add declaration.
21619 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21620
21621 * frame.h (enum output_method): Add output_initial.
21622 (struct x_output): Delete.
21623 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21624 Access foreground_pixel and background_pixel directly from the frame.
21625 (tty_display): Delete.
21626 (struct frame): Add buried_buffer_list, foreground_pixel,
21627 background_pixel and terminal. Delete kboard.
21628 (union output_data): Add tty.
21629 (FRAME_KBOARD): Get the kboard from the terminal.
21630 (FRAME_INITIAL_P): New macro.
21631 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21632 (Qterm_environment_variable, Qdisplay_environment_variable)
21633 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21634 New declarations.
21635
21636 * termchar.h (tty_output, tty_display_info): New structures.
21637 (tty_list): Declare.
21638 (FRAME_TTY, CURTTY): New macros.
21639 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21640 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21641 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21642 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21643
21644 * callproc.c: Include frame.h and termhooks.h, for terminal
21645 parameters.
21646 (add_env): New function.
21647 (child_setup): Use it.
21648 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21649 (getenv_internal): Fix get_terminal_param call.
21650 (Fgetenv_internal, egetenv): Update doc.
21651 (syms_of_callproc): Initialize Vprocess_environment to nil.
21652 Register and initialize them. Remove obsolete defvars. Update doc
21653 strings.
21654 (child_setup): Handle Vlocal_environment_variables.
21655 (getenv_internal): Add terminal parameter.
21656 Handle Vlocal_environment_variables.
21657 (Fgetenv_internal): Add terminal parameter.
21658 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21659 environment in a frame (not terminal) parameter. Update doc strings.
21660 (set_initial_environment): Rename from set_global_environment.
21661 Store Emacs environment in initial frame parameter.
21662
21663 * xdisp.c (redisplay_internal): Update references to
21664 `previous_terminal_frame'.
21665 (display_mode_line, Fformat_mode_line): Replace calls to
21666 `push_frame_kboard' with `push_kboard'.
21667 (get_glyph_string_clip_rects): Add extra parentheses and
21668 braces to prevent compiler warnings.
21669 (calc_pixel_width_or_height): Add xassert to check that the
21670 frame is alive. Don't call `lookup_image' on a termcap frame.
21671 (message2_nolog, message3_nolog, redisplay_internal)
21672 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21673 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21674 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21675 (Fx_display_pixel_width, Fx_display_pixel_height)
21676 (Fx_display_planes, Fx_display_color_cells)
21677 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21678 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21679 (Fx_display_backing_store, Fx_display_visual_class)
21680 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21681 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21682
21683 * xfns.c (x_set_foreground_color x_set_background_color)
21684 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21685 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21686 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21687 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21688 terminal that is being deleted.
21689 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21690 frame parameter, and make sure it overrides any user-supplied setting.
21691 (Fx_close_connection, Fx_synchronize): Unify argument names with
21692 the rest of the DEFUNs.
21693
21694 * dispnew.c (Fsend_string_to_terminal): Update call to
21695 `get_tty_terminal'.
21696 (Fredraw_frame, Fsend_string_to_terminal)
21697 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21698 FRAME_TERMCAP_P and FRAME_TTY.
21699 (window_change_signal): Don't believe width/height values that are
21700 impossibly small.
21701 (Vinitial_window_system): Rename from Vwindow_system.
21702 (termscript, Wcm, rif): Delete.
21703
21704 * termhooks.h (struct terminal): New struct containing the
21705 previously global text display hooks and new members NAME,
21706 DELETED and PARAM_ALIST.
21707 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21708 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21709 (FRAME_RIF): New macros.
21710 (get_terminal_param, get_device): New declarations.
21711 (termscript): Delete declaration.
21712
21713 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21714 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21715 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21716 FRAME_FOREGROUND_PIXEL.
21717 (x_fully_uncatch_errors): Disable definition.
21718 (x_scroll_bar_expose): Fix reference to foreground pixel.
21719 (XTread_socket): Disable loop on all X displays.
21720 (x_delete_terminal): Don't set terminal->deleted and let
21721 delete_terminal delete the frames on the terminal.
21722 (x_delete_display): Doc update to reflect changes in
21723 delete_terminal.
21724 (x_display_info) <terminal>: Move member earlier in the struct.
21725 (deleting_tty): Remove old variable.
21726 (Fsuspend_tty): Call clear_tty_hooks.
21727 (Fresume_tty, init_tty): Call set_tty_hooks.
21728 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21729 errors on X frames.
21730 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21731 (handle_one_xevent): Initialize `f' to NULL.
21732 (x_delete_terminal, x_create_terminal): New functions.
21733 (XTset_terminal_modes, XTreset_terminal_modes)
21734 (XTread_socket, x_connection_closed, x_term_init)
21735 (x_term_init, x_delete_display): Add terminal parameter.
21736 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21737 X connections.
21738
21739 * frame.c: Include termchar.h.
21740 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21741 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21742 (Qdisplay_environment_variable): New vars.
21743 (Fframep): Deal with output_initial.
21744 (Fframe-live-p): Doc fix.
21745 (Fwindow-system): New function.
21746 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21747 (make_terminal_frame): Don't create frames on a terminal that is
21748 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21749 (store_frame_param): Check for found_for_frame before calling XFRAME.
21750 (Fmake_terminal_frame): Handle NULL tty names correctly.
21751 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21752 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21753 frames to refer to a deleted frame in their 'environment parameter.
21754 (Fframe_with_environment): New function.
21755 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21756 (get_future_frame_param): New function.
21757 (Fmake_terminal_frame): Use it.
21758 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21759
21760 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21761 * sysdep.c (reset_sys_modes): Update for renames.
21762
21763 * keyboard.c (tty_read_avail_input): New function.
21764 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21765 (syms_of_keyboard): Defsubr them.
21766 (Fset_input_meta_mode, Fset_quit_char): New functions.
21767 (Fset_input_mode): Split to above functions.
21768 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21769 parameter. Use it in call to `read_char'.
21770 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21771 Set wrong_kboard_jmpbuf correctly in recursive calls.
21772 Use current_kboard to access Vkeyboard_translate_table.
21773 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21774 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21775 Update longjmp invocations. Remember the original current_kboard,
21776 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21777 changes it. Comment out unnecessary calls to
21778 `record_single_kboard_state' and `any_kboard_state'.
21779 Update recursive calls.
21780 (wrong_kboard_jmpbuf): Remove global variable.
21781 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21782 Handle deleted interrupted_kboards correctly; that is a legal
21783 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21784 and read_char calls. Abort if interrupted_kboard died in read_char.
21785 (any_kboard_state, single_kboard_state)
21786 (push_frame_kboard): Remove function.
21787 (pop_kboard): Switch out of single_kboard mode if the kboard has
21788 been deleted. Remove unused variable. Help debugging by not
21789 changing current_kboard unnecessarily. Set current_kboard to the
21790 kboard of the selected frame when the stored kboard object has
21791 been deleted before pop_kboard.
21792 (temporarily_switch_to_single_kboard): Change first parameter to a
21793 frame pointer. Throw an error when caller wants to change kboards
21794 while in single_kboard mode. Don't push_kboard if we weren't in
21795 single kboard state. Don't pop_kboard if we popped into any
21796 kboard state.
21797 (restore_kboard_configuration): Abort if pop_kboard changed the
21798 kboard in single_kboard mode. Call pop_kboard only after setting
21799 up single_kboard mode.
21800 (Frecursive_edit): Switch to single_kboard mode only in nested
21801 command loops.
21802 (cmd_error, command_loop, command_loop_1, timer_check):
21803 Comment out unnecessary call to `any_kboard_state' and
21804 `record_single_kboard_state'.
21805 (delete_kboard): Exit single_kboard mode if we have just deleted
21806 that kboard. Use FRAME_KBOARD.
21807 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21808 `fatal_error_signal'.
21809 (record_single_kboard_state): Don't push_kboard if we weren't in
21810 single kboard state. Don't pop_kboard if we popped into any
21811 kboard state.
21812 (push_frame_kboard): Rename to push_kboard.
21813 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21814 (read_avail_input): Read input from all terminals.
21815 (mark_kboards): Also mark Vkeyboard_translate_table.
21816 (kbd_buffer_store_event_hold): Simplify condition.
21817 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21818 (Vkeyboard_translate_table): Move to struct kboard.
21819 (init_kboard): Initialize Vkeyboard_translate_table.
21820 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21821 Vkeyboard_translate_table. Update doc strings. Update docs of
21822 local-function-key-map and function-key-map.
21823
21824 * terminal.c: New file.
21825
21826 * term.c: Include errno.h.
21827 (Vring_bell_function, device_list, initial_device)
21828 (next_device_id, ring_bell, update_begin, update_end)
21829 (set_terminal_window, cursor_to, raw_cursor_to)
21830 (clear_to_end, clear_frame, clear_end_of_line)
21831 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21832 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21833 (syms_of_term): Move their initialization to terminal.c.
21834 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21835 (Ftty_display_color_cells)
21836 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21837 (clear_tty_hooks, set_tty_hooks)
21838 (init_tty, maybe_fatal): New functions.
21839 (Ftty_type): Return nil if terminal is not on a tty instead of
21840 throwing an error. Doc update.
21841 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21842 Doc update. Initialize new subrs and variables.
21843 (delete_tty): Use terminal->deleted.
21844 (tty_set_terminal_modes): Rename from set_terminal_modes.
21845 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21846 (set_scroll_region): Rename to `tty_set_scroll_region'.
21847 (turn_on_insert): Rename to `tty_turn_on_insert'.
21848 (turn_off_insert): Rename to `tty_turn_off_insert'.
21849 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21850 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21851 (toggle_highligh): Rename to `tty_toggle_highlight'.
21852 (background_highlight): Rename to `tty_background_highlight'.
21853 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21854 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21855 (tty_set_scroll_region, tty_background_highlight)
21856 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21857 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21858 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21859 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21860 Add static modifier.
21861 (tty_reset_terminal_modes, tty_set_terminal_window)
21862 (tty_set_scroll_region, tty_background_highlight)
21863 (tty_highlight_if_desired, tty_cursor_to)
21864 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21865 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21866 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21867 renames.
21868
218692007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21870
21871 * keyboard.c: Qrtl is new.
21872 (parse_tool_bar_item): Handle :rtl keyword.
21873 (syms_of_keyboard): Intern :rtl keyword.
21874
21875 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21876
21877 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21878 so no Lisp code is executed.
21879 (file_for_image, find_rtl_image): New functions.
21880 (xg_get_image_for_pixmap): Use file_for_image.
21881 (update_frame_tool_bar): If direction is RTL, use RTL image if
21882 defined. Use Gtk stock images if defined.
21883
218842007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21885
21886 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21887 for nonexistent or zero-width glyph in composition glyph.
21888
218892007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21890
21891 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21892
21893 * xdisp.c (Finvisible_p): New function.
21894 (syms_of_xdisp): defsubr it.
21895
218962007-08-24 Juanma Barranquero <lekktu@gmail.com>
21897
21898 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21899 Doc fixes.
21900
219012007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21902
21903 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21904
219052007-08-24 Martin Rudalics <rudalics@gmx.at>
21906
21907 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21908 whether decoding has modified buffer contents.
21909
219102007-08-24 Jason Rumney <jasonr@gnu.org>
21911
21912 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21913 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21914 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21915 (init_svg_functions) [HAVE_NTGUI]: New function.
21916 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21917 (svg_load_image): Use them.
21918 (svg_load_image) [HAVE_NTGUI]: Implement background.
21919
219202007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21921
21922 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21923 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21924 (LIBX): Remove @RSVG_LIBS@.
21925 (LIBES): Add $(RSVG_LIBS).
21926
21927 * image.c (svg_load_image): Blend with specified background if exists.
21928 Use IMAGE_BACKGROUND. Add Mac OS Support.
21929
21930 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21931 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21932 Remove macros.
21933 [MAC_OSX] (socket_callback): Do nothing.
21934 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21935 ReceiveNextEvent.
21936 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21937 socket_callback.
21938 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21939
219402007-08-22 Glenn Morris <rgm@gnu.org>
21941
21942 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21943
219442007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21945
21946 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21947
21948 * image.c: Add support for SVG images. Some additional comments
21949 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21950 (svg_image_p): New function to test for SVG image.
21951 (svg_load): New function to load SVG image.
21952 (svg_load_image): New function, helper for svg_load.
21953 (Qsvg): New Lisp_object.
21954 (svg_keyword_index): New enum.
21955 (svg_format): New static `image_keyword' struct.
21956 (svg_type): New static `image_type' struct.
21957 (librsvg/rsvg.h): Include it.
21958
219592007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21960
21961 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21962
219632007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21964
21965 * lread.c (Qold_style_backquotes): New var.
21966 (syms_of_lread): Init and staticpro it.
21967 (load_warn_old_style_backquotes): New fun.
21968 (Fload): Use them to warn about old style backquotes.
21969 (end_of_file_error, Fload): Remove unused vars.
21970
21971 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21972
21973 * lread.c (Vold_style_backquotes): New var.
21974 (syms_of_lread): Init and export it to Elisp.
21975 (read1): Set it when we find an old-style (back)quote.
21976
219772007-08-22 Jason Rumney <jasonr@gnu.org>
21978
21979 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21980
219812007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21982
21983 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21984
219852007-08-19 Richard Stallman <rms@gnu.org>
21986
21987 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21988
219892007-08-19 Andreas Schwab <schwab@suse.de>
21990
21991 * alloc.c (pure): Round PURESIZE up.
21992
219932007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21994
21995 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21996 active frame.
21997
219982007-08-16 Richard Stallman <rms@gnu.org>
21999
22000 * eval.c (Fcommandp): Add parens to clarify.
22001
22002 * minibuf.c (Fall_completions): Use enum for type of table.
22003
22004 * emacs.c (USAGE2): Improve text.
22005
220062007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
22007
22008 * term.c (tty_default_color_capabilities): Declare static
22009 variables in file scope, to avoid HPUX compiler problem.
22010
220112007-08-13 Jan Djärv <jan.h.d@swipnet.se>
22012
22013 * gtkutil.c (update_frame_tool_bar): Use -1 as index
22014 to gtk_toolbar_insert.
22015
220162007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
22017
22018 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
22019
22020 * insdel.c (reset_var_on_error): New fun.
22021 (signal_before_change, signal_after_change):
22022 Use it to reset (after|before)-change-functions to nil in case of error.
22023 Bind inhibit-modification-hooks to t.
22024 Don't bind (after|before)-change-functions to nil while they run.
22025
220262007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22027
22028 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
22029 filling pixmap with stippled background.
22030
220312007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22032
22033 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
22034 Don't use invisible frame as parent window for repositioning.
22035
220362007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
22037
22038 * print.c (new_backquote_output): Rename from old_backquote_output.
22039 (print): Inverse its logic (according to its name) so as to match the
22040 behavior of new_backquote_flag in lread.c.
22041
220422007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22043
22044 * gmalloc.c (posix_memalign): New function.
22045
22046 * macterm.c (frame_highlight, frame_unhighlight): Don't call
22047 ActivateControl/DeactivateControl here.
22048 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
22049 frame-notice-user-settings is non-nil.
22050 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
22051 for kEventParamFMFontStyle.
22052 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
22053 mac_pass_command_to_system and mac_pass_control_to_system here.
22054 (XTread_socket): Call ActivateControl/DeactivateControl here.
22055 (XTread_socket) [TARGET_API_MAC_CARBON]:
22056 Check mac_pass_command_to_system and mac_pass_control_to_system here.
22057 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
22058 for window repositioning.
22059
220602007-08-08 Glenn Morris <rgm@gnu.org>
22061
22062 * Replace `iff' in doc-strings and comments.
22063
220642007-08-07 Chong Yidong <cyd@stupidchicken.com>
22065
22066 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
22067
220682007-08-07 Martin Rudalics <rudalics@gmx.at>
22069
22070 * fileio.c (Finsert_file_contents): Run format-decode and
22071 after_insert_file_functions on entire buffer when REPLACE is
22072 non-nil and inhibit modification_hooks and point_motion_hooks.
22073 For consistency, run after_insert_file_functions iff something
22074 got inserted. Move signal_after_change and update_compositions
22075 after code running after_insert_file_functions. Make sure that
22076 undo_list doesn't record intermediate steps of the decoding process.
22077
220782007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22079
22080 * emacs.c (main)
22081 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
22082 Call malloc_enable_thread on interactive startup.
22083
22084 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
22085 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
22086 [USE_PTHREAD]: Conditionalize with it.
22087 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
22088 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
22089 New functions.
22090
220912007-08-06 Chong Yidong <cyd@stupidchicken.com>
22092
22093 * xdisp.c (redisplay_window): When restoring original buffer
22094 position, make sure it is still valid.
22095
22096 * image.c (png_load): Ignore png-supplied background color.
22097
220982007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22099
22100 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
22101 Use kCFAbsoluteTimeIntervalSince1970.
22102
22103 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
22104 New variable.
22105 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
22106 event loop should be quit.
22107 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
22108 Quit dialog event loop if quit_dialog_event_loop is set.
22109
22110 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
22111 (Selection): New typedef. Use instead of ScrapRef.
22112 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
22113 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
22114 (mac_clear_selection): Rename from clear_scrap.
22115 (get_flavor_type_from_symbol): New argument SEL and subsume function of
22116 scrap_has_target_type. All uses changed.
22117 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22118 (mac_selection_has_target_p): New functions.
22119 (mac_put_selection_value): Rename from put_scrap_string.
22120 (mac_get_selection_value): Rename from get_scrap_string.
22121 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
22122 (put_scrap_private_timestamp, scrap_has_target_type)
22123 (get_scrap_private_timestamp): Remove functions.
22124 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
22125 (x_own_selection, x_get_local_selection):
22126 Use mac_valid_selection_value_p.
22127 (x_own_selection): Don't use put_scrap_private_timestamp.
22128 Record OWNERSHIP-INFO into Vselection_alist instead.
22129 (x_get_local_selection): Don't check type if request is local.
22130 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22131 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22132
221332007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22134
22135 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22136 add comment explaining why.
22137
221382007-08-03 Richard Stallman <rms@gnu.org>
22139
22140 * fileio.c (Fvisited_file_modtime): Use make_time.
22141
221422007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22143
22144 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22145 build.
22146
221472007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22148
22149 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22150
221512007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22152
22153 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22154
221552007-07-30 Richard Stallman <rms@gnu.org>
22156
22157 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22158
221592007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22160
22161 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22162
221632007-07-28 Nick Roberts <nickrob@snap.net.nz>
22164
22165 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22166 remote default-directory.
22167
22168 * buffer.c (mode-line-format): Update doc string.
22169
221702007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22171
22172 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22173 scroll bar gap.
22174 (x_scroll_bar_create): Set bar->fringe_extended_p.
22175 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22176 on frame edge. Check fringe background extension. Don't clear
22177 extended fringe background area.
22178
22179 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22180 (w32_fill_area): Enclose multiple statements with do ... while (0).
22181
22182 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22183 Extend fringe background to scroll bar gap.
22184 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22185 Set bar->fringe_extended_p.
22186 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22187 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22188 background extension. Don't clear extended fringe background area.
22189
22190 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22191 New member fringe_extended_p.
22192
221932007-07-25 Glenn Morris <rgm@gnu.org>
22194
22195 * Relicense all FSF files to GPLv3 or later.
22196
22197 * COPYING: Switch to GPLv3.
22198
221992007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22200
22201 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22202
22203 * data.c (Finteractive_form): Check for the presence of an
22204 `interactive-form' symbol property more thoroughly.
22205
22206 * data.c (Finteractive_form): Use an `interactive-form' property if
22207 present, analogous to the function-documentation property.
22208
222092007-07-24 Jason Rumney <jasonr@gnu.org>
22210
22211 * w32fns.c (x_real_positions): Get real position from OS instead of
22212 calculating it.
22213
222142007-07-23 Jason Rumney <jasonr@gnu.org>
22215
22216 * filelock.c (current_lock_owner): Allow for @ sign in username.
22217
222182007-07-22 Nick Roberts <nickrob@snap.net.nz>
22219
22220 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22221 remote default-directory.
22222
22223 * buffer.c (mode-line-format): Describe above case in doc string.
22224
222252007-07-20 Eli Zaretskii <eliz@gnu.org>
22226
22227 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22228 Define if not defined.
22229
222302007-07-18 Jason Rumney <jasonr@gnu.org>
22231
22232 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22233
222342007-07-18 Richard Stallman <rms@gnu.org>
22235
22236 * data.c (Fsetq_default): Doc fix.
22237
22238 * eval.c (Fsetq): Doc fix.
22239
222402007-07-18 Juanma Barranquero <lekktu@gmail.com>
22241
22242 * coding.c (Ffind_operation_coding_system):
22243 * eval.c (For, Fand): Doc fixes.
22244 Reported by Johan Bockgård.
22245
222462007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22247
22248 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22249
22250 * xterm.h: Declare x_ewmh_activate_frame.
22251
22252 * xterm.c (x_ewmh_activate_frame): New function.
22253 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22254
222552007-07-17 Martin Rudalics <rudalics@gmx.at>
22256
22257 * window.c (Fdisplay_buffer): If largest or LRU window is the
22258 only window, split it even if it is not eligible for splitting.
22259 This restores the original behavior broken by the 2007-07-15
22260 change.
22261
222622007-07-17 Glenn Morris <rgm@gnu.org>
22263
22264 * abbrev.c (abbrev_check_chars): New function.
22265 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22266 Call abbrev_check_chars to check abbrev characters are word
22267 constituents. Doc fix.
22268
222692007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22270
22271 * process.c (Fstart_process, Fmake_network_process)
22272 (read_process_output): Fix up last changes.
22273
222742007-07-16 Eli Zaretskii <eliz@gnu.org>
22275
22276 * makefile.w32-in (clean): Don't delete *~.
22277
222782007-07-16 Andreas Schwab <schwab@suse.de>
22279
22280 * window.c (Fdisplay_buffer): Use NILP.
22281 (Fset_window_scroll_bars): Likewise.
22282
222832007-07-15 Martin Rudalics <rudalics@gmx.at>
22284
22285 * window.c (window_min_size_2): New function.
22286 (window_min_size_1, size_window, Fdisplay_buffer)
22287 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22288 windows without mode- or header-lines when window-min-height is
22289 too small.
22290 (size_window): Reset nodelete_p after testing it, following an
22291 earlier note by Kim F. Storm.
22292 (display_buffer): Do not set split_height_threshold to twice the
22293 value of window_min_height to avoid changing the value of a
22294 customizable variable. Rather explicitly check whether the
22295 height of the window that shall be splitted is at least as large
22296 as split_height_threshold.
22297 (Fwindow_full_width_p): New defun.
22298 (syms_of_window): Defsubr it.
22299
22300 * window.h: Add EXFUN for Fwindow_full_width_p.
22301
223022007-07-14 Jason Rumney <jasonr@gnu.org>
22303
22304 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22305
223062007-07-14 Richard Stallman <rms@gnu.org>
22307
22308 * eval.c (maybe_call_debugger): New function.
22309 (find_handler_clause): Use maybe_call_debugger.
22310 Call it when the handler says `debug'.
22311 Eliminate DEBUGGER_VALUE_PTR.
22312 (Fsignal): Eliminate debugger_value.
22313 (Qdebug): New variable.
22314 (syms_of_eval): Initialize it.
22315
223162007-07-14 Juanma Barranquero <lekktu@gmail.com>
22317
22318 * eval.c (Fprogn):
22319 * keyboard.c (Ftrack_mouse):
22320 * print.c (Fwith_output_to_temp_buffer):
22321 * window.c (Fsave_window_excursion): Doc fix.
22322
223232007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22324
22325 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22326
223272007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22328
22329 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22330 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22331 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22332 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22333 Remove unused encoding_carryover.
22334 * process.c: Adjust all functions accordingly.
22335
223362007-07-12 Richard Stallman <rms@gnu.org>
22337
22338 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22339
223402007-07-11 Jason Rumney <jasonr@gnu.org>
22341
22342 * makefile.w32-in (LIBS): Include OLE32.
22343
22344 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22345 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22346
223472007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22348
22349 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22350 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22351 from a Lisp_Object into a bare pointer.
22352 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22353 Adjust the code correspondingly.
22354
22355 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22356
22357 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22358 (term_show_mouse_face): Remove unused var `j'.
22359 (handle_one_term_event): Remove unused vars `i' and `j'.
22360 Don't cast return value of ttyname since it's not necessary.
22361
223622007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22363
22364 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22365 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22366
22367 * fns.c (map_char_table): Use an array of int for `indices' rather than
22368 an array of Lisp_Objects (which are only ever integers anyway).
22369 (Fmap_char_table): Update caller.
22370 * lisp.h: Update prototype.
22371 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22372 * fontset.c (Ffontset_info):
22373 * casetab.c (set_case_table): Update callers.
22374
22375 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22376
22377 * keymap.c (struct accessible_keymaps_data)
22378 (struct where_is_internal_data): New structures.
22379 (accessible_keymaps_1, where_is_internal_1): Use them to change
22380 interface to adhere to the one used by map_keymap.
22381 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22382 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22383
22384 * keymap.h (map_keymap_function_t): More informative prototype.
22385
223862007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22387
22388 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22389 (looking_at_1): Don't change search_regs and last_thing_searched
22390 if `inhibit-changing-match-data' is non-nil.
22391 (string_match_1, search_buffer, set_search_regs): Likewise.
22392 (syms_of_search): Add Lisp level definition for
22393 `inhibit-changing-match-data' and set it to nil.
22394 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22395 start and end of the match, instead of using values in search_regs.
22396
223972007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22398
22399 * minibuf.c (Fcompleting_read): New value `confirm-only'
22400 for `require-match'.
22401
224022007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22403
22404 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22405 part of the 2007-06-27 change to syms_of_fileio.
22406
224072007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22408
22409 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22410 Check WINDOWP before using XWINDOW. Consolidate return statements.
22411
224122007-06-27 Richard Stallman <rms@gnu.org>
22413
22414 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22415
224162007-06-27 Juanma Barranquero <lekktu@gmail.com>
22417
22418 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22419
224202007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22421
22422 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22423 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22424 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22425 (_free_internal, memalign): Use them.
22426 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22427 Initialize to PTHREAD_MUTEX_INITIALIZER.
22428 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22429 (morecore_nolock): Rename from morecore. All uses changed.
22430 Use only nolock versions of internal allocation functions.
22431 (_malloc_internal_nolock, _realloc_internal_nolock)
22432 (_free_internal_nolock): New functions created from
22433 _malloc_internal, _realloc_internal, and _free_internal.
22434 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22435 Copy hook value to automatic variable before its use.
22436 (memalign): Copy hook value to automatic variable before its use.
22437
224382007-06-26 Kenichi Handa <handa@m17n.org>
22439
22440 * coding.c (Ffind_operation_coding_system): Docstring improved.
22441 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22442
224432007-06-25 David Kastrup <dak@gnu.org>
22444
22445 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22446 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22447 cater for additional parameter.
22448
22449 * keymap.h: Adjust number of parameters to `current-active-maps'.
22450
22451 * doc.c (Fsubstitute_command_keys): Adjust call of
22452 `current-active-maps'.
22453
224542007-06-25 David Kastrup <dak@gnu.org>
22455
22456 * callint.c (Fcall_interactively): Make the parsing of interactive
22457 specs somewhat more readable.
22458
224592007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22460
22461 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22462 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22463 if extended background has already been filled.
22464
224652007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22466
22467 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22468 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22469
22470 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22471 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22472 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22473 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22474 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22475 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22476 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22477 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22478 Run timers during dialog popup.
22479 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22480
224812007-06-21 Jason Rumney <jasonr@gnu.org>
22482
22483 * image.c (convert_mono_to_color_image): Swap fore and background.
22484
224852007-06-20 Jason Rumney <jasonr@gnu.org>
22486
22487 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22488 (w32_free_bdf_font): Unmap memory not handle.
22489
224902007-06-20 Sam Steingold <sds@gnu.org>
22491
22492 * gmalloc.c (__morecore): Fix the declaration to comply with the
22493 definition.
22494
224952007-06-20 Juanma Barranquero <lekktu@gmail.com>
22496
22497 * w32term.c (w32_delete_display): Remove leftover declaration.
22498 (w32_define_cursor, w32_initialize): Make static.
22499
22500 * w32.c (_wsa_errlist): Fix typo in error message.
22501 (init_environment): Ignore any environment variable from the
22502 registry having a null value.
22503
225042007-06-20 Glenn Morris <rgm@gnu.org>
22505
22506 * Makefile.in (LIBGIF): Default to -lgif.
22507
225082007-06-17 Jason Rumney <jasonr@gnu.org>
22509
22510 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22511 unicode strings.
22512
225132007-06-16 Juanma Barranquero <lekktu@gmail.com>
22514
22515 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22516 Fix typo in docstring.
22517
225182007-06-16 Eli Zaretskii <eliz@gnu.org>
22519
22520 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22521 and their keybindings.
22522
225232007-06-15 Chong Yidong <cyd@stupidchicken.com>
22524
22525 * composite.c (update_compositions): Fix last fix.
22526
225272007-06-14 Jason Rumney <jasonr@gnu.org>
22528
22529 * w32.c (get_process_times_fn): New function pointer.
22530 (globals_of_w32): Intialize it if present in kernel32.dll.
22531 (w32_get_internal_run_time): New function.
22532
22533 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22534
225352007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22536
22537 * composite.c (update_compositions): Check the validness of
22538 compositions.
22539
225402007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22541
22542 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22543 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22544
22545 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22546 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22547
22548 * macgui.h (USE_MAC_TOOLBAR): New define.
22549
22550 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22551 Return immediately unless popup is activated.
22552
22553 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22554 background to scroll bar gap.
22555 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22556 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22557 scroll bars on frame edge. Check fringe background extension.
22558 Don't clear extended fringe background area.
22559 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22560 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22561 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22562 [USE_MAC_TOOLBAR]: New macros.
22563 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22564 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22565 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22566 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22567 [USE_MAC_TOOLBAR]: New functions.
22568 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22569 manually if previous repositioning has failed.
22570 (mac_handle_keyboard_event): Use precomputed event kind.
22571 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22572 as tool bar item click. Handle mouse movement over tool bar items.
22573
22574 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22575 toolbar_win_gravity.
22576 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22577 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22578 Add externs.
22579
22580 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22581 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22582
225832007-06-14 Chong Yidong <cyd@stupidchicken.com>
22584
22585 * image.c (search_image_cache): Remove unused variable.
22586
225872007-06-13 Chong Yidong <cyd@stupidchicken.com>
22588
22589 * xfns.c, xmenu.c: Link to xaw3d if available.
22590
225912007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22592
22593 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22594 frame_foreground and frame_background.
22595
22596 * image.c (lookup_image): Save frame foreground and background colors.
22597 (search_image_cache): Check if saved and current frame colors match.
22598
225992007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22600
22601 * regex.c (regex_compile): Remove the `regnum' counter.
22602 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22603
226042007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22605
22606 * term.c: Include intervals.h to declare Fget_text_property.
22607
226082007-06-10 Jason Rumney <jasonr@gnu.org>
22609
22610 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22611
226122007-06-08 Juanma Barranquero <lekktu@gmail.com>
22613
22614 * callint.c (Fcall_interactively):
22615 * editfns.c (Fdelete_and_extract_region):
22616 * fileio.c (Fread_file_name):
22617 * fns.c (Fmapconcat):
22618 * keyboard.c (cmd_error_internal):
22619 * keymap.c (Fkey_description):
22620 * lread.c (openp):
22621 * minibuf.c (read_minibuf):
22622 * search.c (wordify):
22623 * sunfns.c (sel_read):
22624 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22625 * xfns.c (x_default_scroll_bar_color_parameter):
22626 * xmenu.c (menu_help_callback):
22627 * xselect.c (Fx_get_atom_name):
22628 * xterm.c (x_term_init): Use empty_unibyte_string.
22629
226302007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22631
22632 * alloc.c (init_strings): Initialize canonical empty strings.
22633 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22634 canonical empty string when the requested size is 0.
22635
22636 * emacs.c (empty_unibyte_string): Rename from empty_string.
22637 (empty_multibyte_string): New canonical empty string.
22638 (syms_of_emacs): Don't initialize empty_string.
22639
22640 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22641 string, if appropriate.
22642 (empty_unibyte_string, empty_multibyte_string): New externs.
22643 (empty_string): Remove extern.
22644
22645 * lread.c (syms_of_lread): Use empty_unibyte_string.
22646
226472007-06-07 Jason Rumney <jasonr@gnu.org>
22648
22649 * s/ms-w32.h: Don't define HAVE_TZNAME.
22650
22651 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22652
226532007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22654
22655 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22656
22657 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22658 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22659
22660 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22661 Don't call next handler.
22662 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22663 Remove argument. Install handler to application.
22664 (set_frame_menubar): Don't change deep_p.
22665 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22666 FRAME_OUTER_TO_INNER_DIFF_Y.
22667 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22668 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22669 [HAVE_DIALOGS]: New macros.
22670 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22671 Use them.
22672 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22673
22674 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22675 init_service_handler. All callers changed. Return OSStatus value.
22676
22677 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22678 All callers changed so as not to call SetPortWindowPort.
22679 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22680 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22681 mac_draw_string_common.
22682 (mac_draw_image_string_qd): Likewise.
22683 (mac_draw_string_common): Use them. Add INLINE.
22684 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22685 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22686 GetGlobalMouse.
22687 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22688 and FRAME_OUTER_TO_INNER_DIFF_Y.
22689 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22690 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22691 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22692 repositioning window to mac_handle_window_event.
22693 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22694 saving window location to mac_handle_window_event
22695 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22696 (install_menu_target_item_handler): Remove argument in extern.
22697 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22698 Also accept command events.
22699 (do_keystroke): New function created from XTread_socket.
22700 (init_command_handler): Remove functions.
22701 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22702 and save window location by kEventWindowShowing and kEventWindowHiding
22703 handlers here. Don't call next handler for window state change and
22704 focus events.
22705 (mac_handle_application_event, mac_handle_keyboard_event)
22706 [TARGET_API_MAC_CARBON]: New functions.
22707 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22708 kEventWindowShowing and kEventWindowHiding events. Move installation
22709 of mouse, font, text input and menu target item handlers to
22710 install_application_handler.
22711 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22712 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22713 New function.
22714 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22715 Register it.
22716 (XTread_socket) [TARGET_API_MAC_CARBON]:
22717 Consolidate SendEventToEventTarget calls.
22718 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22719 Move application activation handler to mac_handle_application_event.
22720 Move keyboard handler to mac_handle_keyboard_event.
22721 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22722 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22723 init_command_handler. Call install_application_handler.
22724
22725 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22726 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22727
227282007-06-07 Glenn Morris <rgm@gnu.org>
22729
22730 * emacs.c (main): Use `emacs-copyright' in --version output.
22731
227322007-06-06 Chong Yidong <cyd@stupidchicken.com>
22733
22734 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22735
227362007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22737
22738 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22739
22740 * macgui.h: Replace WindowPtr with WindowRef.
22741
22742 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22743 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22744 Replace ControlHandle with ControlRef.
22745 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22746
22747 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22748 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22749 Replace ControlHandle with ControlRef.
22750 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22751 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22752
22753 * macterm.h (struct scroll_bar): Rename member control_handle_low
22754 and control_handle_high to control_ref_low and control_ref_high.
22755 All uses changed.
22756 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22757 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22758 respectively. All uses changed.
22759 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22760 (install_window_handler, remove_window_handler): Replace WindowPtr
22761 with WindowRef in externs.
22762
227632007-06-05 Juanma Barranquero <lekktu@gmail.com>
22764
22765 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22766
227672007-06-03 Nick Roberts <nickrob@snap.net.nz>
22768
22769 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22770
22771 * frame.c (Fmouse_position, Fmouse_pixel_position):
22772 Condition on HAVE_GPM too.
22773
22774 * term.c (term_mouse_highlight): Remove unused variables.
22775 (Fterm_open_connection): Set gpm_zerobased to 1.
22776 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22777 Use zero based co-ordinates.
22778 (handle_one_term_event): Report a drag as mouse movement too.
22779
22780 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22781
227822007-06-03 Chong Yidong <cyd@stupidchicken.com>
22783
22784 * image.c (search_image_cache): New function. Require background
22785 color match if background color is unspecified in the image spec.
22786 (uncache_image, lookup_image): Use it.
22787
227882007-06-01 Juanma Barranquero <lekktu@gmail.com>
22789
22790 * window.c (Fshrink_window): Reflow docstring.
22791
227922007-06-02 Chong Yidong <cyd@stupidchicken.com>
22793
22794 * Version 22.1 released.
22795
227962007-06-01 Richard Stallman <rms@gnu.org>
22797
22798 * xfns.c (x_encode_text): Add GCPRO.
22799
228002007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22801
22802 * xfns.c (x_set_name_internal): Save encoded name before
22803 x_encode_text in case string data is relocated.
22804
228052007-05-31 Richard Stallman <rms@gnu.org>
22806
22807 * buffer.c (syms_of_buffer): Doc fix.
22808
228092007-05-30 Nick Roberts <nickrob@snap.net.nz>
22810
22811 * sysdep.c (init_sys_modes): Add rather than replace with
22812 O_NONBLOCK.
22813
22814 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22815 term_mouse_moveto.
22816
22817 * termhooks.h (term_mouse_moveto): New extern.
22818
22819 * term.c (mouse_face_window): Rename...
22820 (Qmouse_face_window): ...to this.
22821 (term_show_mouse_face, term_clear_mouse_face)
22822 (term_mouse_highlight): Use Qmouse_face_window.
22823 (term_mouse_moveto): New function.
22824 (term_mouse_position): Make it work.
22825 (syms_of_term): Uncomment assignment to mouse_position_hook.
22826 Staticpro Qmouse_face_window.
22827
228282007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22829
22830 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22831 around current_column call.
22832
228332007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22834
22835 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22836 * xdisp.c (next_element_from_buffer):
22837 * window.c (delete_window):
22838 * term.c (term_mouse_highlight):
22839 * msdos.c (getdefdir):
22840 * macterm.c (mac_create_bitmap_from_bitmap_data)
22841 (init_font_name_table):
22842 * fns.c (Fsxhash):
22843 * data.c (Fmake_local_variable):
22844 * ccl.c (ccl_driver): Likewise.
22845
228462007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22847
22848 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22849 Call mac_wakeup_from_rne on window size change.
22850
228512007-05-25 Chong Yidong <cyd@stupidchicken.com>
22852
22853 * image.c (uncache_image): Fix typo.
22854
228552007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22856
22857 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22858
228592007-05-22 Richard Stallman <rms@gnu.org>
22860
22861 * xterm.c (x_connection_closed): Remove NO_RETURN.
22862
228632007-05-22 Martin Rudalics <rudalics@gmx.at>
22864
22865 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22866
228672007-05-21 Chong Yidong <cyd@stupidchicken.com>
22868
22869 * image.c (uncache_image): New function.
22870 (Fimage_refresh): New function.
22871
228722007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22873
22874 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22875
228762007-05-20 Nick Roberts <nickrob@snap.net.nz>
22877
22878 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22879 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22880
228812007-05-20 Nick Roberts <nickrob@snap.net.nz>
22882
22883 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22884 conditional on [HAVE_GPM_H].
22885
228862007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22887
22888 * syntax.c (skip_chars): Update syntax-table only after we checked that
22889 the new location is valid.
22890
228912007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22892
22893 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22894 mac_get_window_bounds.
22895
228962007-05-20 Nick Roberts <nickrob@snap.net.nz>
22897
22898 * Makefile.in (LIBGPM): Allow it to be set from configure.
22899 If set then link Emacs with it.
22900
22901 * config.in: Regenerate.
22902
22903 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22904 New externs.
22905
22906 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22907 Include gpm.h.
22908 (handle_one_term_event, term_gpm): New externs.
22909
22910 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22911 and allow it to be interrupted by SIGIO.
22912
22913 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22914 (wait_reading_process_output): Wait on gpm_fd too.
22915 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22916 (add_gpm_wait_descriptor_called_flag): New variable.
22917 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22918
22919 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22920 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22921 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22922 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22923 (make_lispy_event): Add case GPM_CLICK_EVENT.
22924 (read_avail_input): Handle mouse input.
22925
22926 * term.c (write_glyphs_with_face): New function.
22927 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22928 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22929 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22930 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22931 (last_mouse_x, last_mouse_y): New variables.
22932 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22933 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22934 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22935 (Fterm_close_connection): New functions.
22936 (term_init): Initialise mouse_face_window.
22937
229382007-05-19 Chong Yidong <cyd@stupidchicken.com>
22939
22940 * xdisp.c (redisplay_window): If first window line is a
22941 continuation line, recompute the new window start instead of
22942 recentering.
22943
229442007-05-18 Glenn Morris <rgm@gnu.org>
22945
22946 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22947 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22948
229492007-05-17 Glenn Morris <rgm@gnu.org>
22950
22951 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22952
229532007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22954
22955 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22956 dead key repeat and up events.
22957
229582007-05-14 Chong Yidong <cyd@stupidchicken.com>
22959
22960 * image.c (pbm_load): Check image size for monochrome pbm.
22961
229622007-05-13 Chong Yidong <cyd@stupidchicken.com>
22963
22964 * xterm.c (XTread_socket): Revert last change.
22965
229662007-05-12 Chong Yidong <cyd@stupidchicken.com>
22967
22968 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22969
22970 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22971
229722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22973
22974 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22975 mixup (YAILOM).
22976
229772007-05-07 Andreas Schwab <schwab@suse.de>
22978
22979 * keymap.c (Flookup_key): Fix typo in last change.
22980
229812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22982
22983 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22984 mapping for unibyte strings.
22985
229862007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22987
22988 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22989 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22990
229912007-04-29 Richard Stallman <rms@gnu.org>
22992
22993 * insdel.c (replace_range): For undo, record insertion first.
22994
229952007-04-29 Andreas Schwab <schwab@suse.de>
22996
22997 * lisp.h (VECSIZE): Use OFFSETOF.
22998
229992007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23000
23001 * xdisp.c (try_window_reusing_current_matrix): Fix number of
23002 disabled lines.
23003
230042007-04-28 Richard Stallman <rms@gnu.org>
23005
23006 * lread.c (read_escape): In a string, \s is always space.
23007
230082007-04-27 Jan Djärv <jan.h.d@swipnet.se>
23009
23010 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
23011
23012 * gtkutil.c (xg_update_menubar, create_menus): Create empty
23013 submenu for menu bar items.
23014
23015See ChangeLog.10 for earlier changes.
23016
23017;; Local Variables:
23018;; coding: utf-8
23019;; add-log-time-zone-rule: t
aac0c6e3
MR
23020;; End:
23021
e3eb1dae 23022 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
23023
23024 This file is part of GNU Emacs.
23025
23026 GNU Emacs is free software: you can redistribute it and/or modify
23027 it under the terms of the GNU General Public License as published by
23028 the Free Software Foundation, either version 3 of the License, or
23029 (at your option) any later version.
23030
23031 GNU Emacs is distributed in the hope that it will be useful,
23032 but WITHOUT ANY WARRANTY; without even the implied warranty of
23033 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23034 GNU General Public License for more details.
23035
23036 You should have received a copy of the GNU General Public License
23037 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23038
23039;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40