Provide byte-compiler warnings when set-default a read-only var.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ff5dec5c
SM
12010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4
8785b888
EZ
52010-04-23 Eli Zaretskii <eliz@gnu.org>
6
f1bbc655
EZ
7 Support `display' text properties and overlay strings in bidi
8 buffers.
8785b888
EZ
9 * xdisp.c (pop_it): When the stack is popped after displaying
10 from a string, bidi-iterate to exit from the text portion covered
11 by the `display' property or overlay. (Bug#5988, bug#5920)
12
feeb1604
DN
132010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
14
8e324eb6
DN
15 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
16 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
17
809fcaba
DN
18 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
19 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
20
ed710380
DN
21 Simplify STARTFILES definition.
22 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
23 relying on Makefile.in to define it.
24 * s/cygwin.h (START_FILES): Likewise.
25 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
26
feeb1604
DN
27 Clean up Solaris code.
28 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
29 (LIB_MOTIF): Remove, configure takes care of this.
30 (NOT_USING_MOTIF): Remove, unused.
31 * xrdb.c: Remove #if 0-ed #include.
32 (SYSV): Remove conditional for old SysV.
33 * sysdep.c (closedir): Remove conditional code for Solaris,
34 Solaris has closedir.
35
a0d0b563
JD
362010-04-22 Jan Djärv <jan.h.d@swipnet.se>
37
38 * xsettings.c (read_and_apply_settings): Check if current_font is
39 NULL before strcmp (Bug#6001).
40
56bae7c7
DN
412010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
42
43 Clean up HP-UX files.
44 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
45 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
46 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
47 * s/hpux10-20.h: ... to the only user, here.
48
372b7a95
EZ
492010-04-21 Eli Zaretskii <eliz@gnu.org>
50
51 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
52 use buffer-local values of paragraph-start and paragraph-separate.
53 <paragraph_start_re, paragraph_separate_re>: Rename from
54 fallback_paragraph_start_re and fallback_paragraph_separate_re.
55 (Bug#5992)
56
f904c0f9
JD
572010-04-21 Jan Djärv <jan.h.d@swipnet.se>
58
59 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
60 current_tool_bar_style are new.
61 (store_config_changed_event): Rename from store_font_changed_event.
62 (XSETTINGS_TOOL_BAR_STYLE): New define.
63 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
64 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
65 HAVE_XFT.
66 (something_changedCB): store_font_changed_event is now
67 store_config_changed_event
68 (parse_settings): Rename from parse_xft_settings. Read
69 non-xft xsettings outside #ifdef HAVE_XFT.
70 (read_settings): Renamed from read_xft_settings.
71 (apply_xft_settings): Take current settings as parameter. Do not
72 call read_(xft)_settings.
73 (read_and_apply_settings): New function.
74 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
75 read_and_apply_settings if there are settings to be read.
76 (init_xsettings): Renamed from init_xfd_settings.
77 Call read_and_apply_settings unconditionally.
78 (xsettings_initialize): Call init_xsettings.
79 (Ftool_bar_get_system_style): New function.
80 (syms_of_xsettings): Define Qmonospace_font_name and
81 Qtool_bar_style. Initialize current_tool_bar_style to nil.
82 defsubr Stool_bar_get_system_style. Fprovide on
83 dynamic-setting.
31a01b90 84 Move misplaced HAVE_GCONF
f904c0f9
JD
85
86 * xsettings.h (Ftool_bar_get_system_style): Declare.
87
88 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
89 Qtext, Qboth, Qboth_horiz are new.
90 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
91 Vtool_bar_style, tool_bar_max_label_size.
92
93 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
94
95 * keyboard.c: QClabel is new.
96 (parse_tool_bar_item): Take out QClabel from tool bar items.
97 Try to construct a label if ther is no QClabel.
98 (syms_of_keyboard): Intern :label as QClabel.
99
100 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
101 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
102 New.
103
104 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
105 dynamic-setting.el.
106
107 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
108 (xg_make_tool_item, xg_show_toolbar_item): New function.
109 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
110 Call xg_make_tool_item to make a tool bar item.
111 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
112
113 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
114 into account for toolbars.
115
c632dfda
JD
1162010-04-21 Jan Djärv <jan.h.d@swipnet.se>
117
118 * data.c (make_blv): Declarations before code (Bug#5993).
119
10efe302
GM
1202010-04-21 Glenn Morris <rgm@gnu.org>
121
122 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
123 Define using autoconf, not cpp.
124 (LIBXSM): New variable, set by autoconf.
125 (LIBXT): Use $LIBXSM.
126
4285ac5a
DN
1272010-04-21 Dan Nicolaescu <local_user@dannlt>
128
3ec759e7
DN
129 Remove NOMULTIPLEJOBS, unused.
130 * s/template.h (NOMULTIPLEJOBS):
131 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
132
4285ac5a
DN
133 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
134 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
135 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
136 detects -znocombreloc and passes it to the linker
137 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
138
2807228d
GM
1392010-04-21 Glenn Morris <rgm@gnu.org>
140
141 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
142
574c05e2
KK
1432010-04-21 Karel Klíč <kklic@redhat.com>
144
145 * Makefile.in (LIBSELINUX_LIBS): New.
146 (LIBES): Add $LIBSELINUX_LIBS.
147 * eval.c, lisp.h (call7): New function.
148 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
149 (Ffile_selinux_context, Fset_file_selinux_context):
150 New functions.
151 (Fcopy_file): New parameter preserve-selinux-context.
152 (Frename_file): Preserve selinux context when renaming by copy-file.
153
91eac4bb
JB
1542010-04-21 Juanma Barranquero <lekktu@gmail.com>
155 Eli Zaretskii <eliz@gnu.org>
156
50426a04
JB
157 Don't depend on cm.c or termcap.c on Windows, use stubs.
158 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
159 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
160 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
161 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
162 (sys_tputs, sys_tgetstr): New stubs.
163 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
164 (tputs, tgetstr): New; define to sys_*.
91eac4bb 165
938efb77
JB
1662010-04-20 Juanma Barranquero <lekktu@gmail.com>
167
168 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
169
b4bf28b7
SM
1702010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
171
8b1e1112
SM
172 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
173 Just signal a warning rather than an error when inside a let.
174 (Fmake_variable_frame_local): Add the same test.
175
933ac235
SM
176 * font.c (syms_of_font): Make the style table vars read-only.
177
b4bf28b7
SM
178 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
179 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
180
181 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
182
93d68d0c
EZ
1832010-04-20 Eli Zaretskii <eliz@gnu.org>
184
185 Fix R2L paragraph display on TTY.
186
187 * xdisp.c (unproduce_glyphs): New function.
188 (display_line): Use it when produced glyphs are discarded from R2L
189 glyph rows.
190 (append_composite_glyph): In R2L rows, prepend the glyph rather
191 than appending it.
192
193 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
194 rather than append it. Set up the resolved_level and bidi_type
195 attributes of the appended glyph.
283ccc18
EZ
196 (produce_special_glyphs): Mirror the backslash continuation
197 character in R2L lines.
93d68d0c 198
283ccc18 199 Implement display of R2L paragraphs in GUI sessions.
26cdf528 200
283ccc18
EZ
201 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
202 append_stretch_glyph.
203 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
204 off-by-one error in computing x at end of text in the row.
205 (append_stretch_glyph): In reversed row, prepend the glyph rather
206 than append it. Set resolved_level and bidi_type of the glyph.
207 (extend_face_to_end_of_line): If the row is reversed, prepend a
208 stretch glyph whose width is such that the rightmost glyph will be
209 drawn at the right margin of the window. Fix off-by-one error on
210 TTY frames in testing whether a line needs face extension. Fix
211 face extension at ZV. If this is the last glyph row, use
212 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
213 region face.
214 (set_cursor_from_row, display_line): Use
26cdf528
EZ
215 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
216 row->continuation_lines_width.
283ccc18
EZ
217 (next_element_from_buffer): Don't call bidi_paragraph_init if we
218 are at ZV. Fixes a crash when reseated to ZV by
219 try_window_reusing_current_matrix.
45903529
EZ
220 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
221 which happens with R2L glyph rows. Fixes a crash when inserting a
222 character at end of an R2L line.
283ccc18
EZ
223 (set_cursor_from_row): Don't be fooled by truncated rows: don't
224 treat them as having zero-width characters. Improve comments.
225 Don't reverse pos_before and pos_after for reversed glyph rows.
226 Set cursor.x to negative value when the cursor might be on the
227 left fringe.
228 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
229 left fringe, not the right one.
f951a506
EZ
230 (notice_overwritten_cursor, draw_phys_cursor_glyph)
231 (erase_phys_cursor): For reversed cursor_row, support cursor on
232 the left fringe.
233
283ccc18
EZ
234 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
235 of continuation indicators on the fringes.
236 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
237 left fringe.
238
f951a506
EZ
239 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
240 draw cursor on the left fringe.
241
242 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
243 cursor on the left fringe.
244
f951a506
EZ
245 * dispnew.c (update_text_area): Handle reversed desired rows when
246 the cursor is on the left fringe.
247 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
248 below, not by 0, for when the cursor is on the left fringe.
249
3bb49aaf
JD
2502010-04-20 Jan Djärv <jan.h.d@swipnet.se>
251
252 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
253 widget is a scrollbar.
254
c0be27fd
KH
2552010-04-20 Kenichi Handa <handa@m17n.org>
256
257 * charset.c (char_charset): Consider Vcharset_non_preferred_head
258 only when the arg CHARSET_LIST is nil.
259
ce5b453a
SM
2602010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
261
262 Make variable forwarding explicit rather the using special values.
263 Basically, this makes the structure of buffer-local values and object
264 forwarding explicit in the type of Lisp_Symbols rather than use
265 special Lisp_Objects for that. This tends to lead to slightly more
266 verbose code, but is more C-like, simpler, and makes it easier to make
267 sure we handled all cases, among other things by letting the compiler
268 help us check it.
269 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
270 Removing forwarding objects.
271 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
272 (struct Lisp_Symbol): Make the various forms of variable-forwarding
273 explicit rather than hiding them inside Lisp_Object "values".
274 (XFWDTYPE): New macro.
275 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
276 (XBUFFER_LOCAL_VALUE): Remove.
277 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
278 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
279 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
280 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
281 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
282 Remove the Lisp_Misc_* header.
283 (struct Lisp_Buffer_Local_Value): Redefine.
284 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
285 (struct Lisp_Misc_Any): Add filler to get the right size.
286 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
287 Lisp_Intfwd.
288 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
289 (DEFVAR_KBOARD): Allocate a forwarding object.
290 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
291 (let_shadows_global_binding_p): New function.
292 (union Lisp_Val_Fwd): New type.
293 (make_blv): New function.
294 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
295 (store_symval_forwarding, swap_in_global_binding, Fboundp)
296 (swap_in_symval_forwarding, find_symbol_value, Fset)
297 (let_shadows_buffer_binding_p, set_internal, default_value)
298 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
299 (Fkill_local_variable, Fmake_variable_frame_local)
300 (Flocal_variable_p, Flocal_variable_if_set_p)
301 (Fvariable_binding_locus):
302 * xdisp.c (select_frame_for_redisplay):
303 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
304 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
305 * frame.c (store_frame_param):
306 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
307 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
308 value structure.
309 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
310 (clone_per_buffer_values): Only adjust markers into the current buffer.
311 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
312 (Fbuffer_local_value, set_buffer_internal_1)
313 (swap_out_buffer_local_variables):
314 Adapt to the new symbol value structure.
315 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
316 (defvar_per_buffer): Take a new arg for the fwd object.
317 (buffer_lisp_local_variables): Return a proper alist (different fix
318 for bug#4138).
319 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
320 (Fgarbage_collect): Don't handle buffer_defaults specially.
321 (mark_object): Handle new symbol value structure rather than the old
322 special Lisp_Misc_* objects.
323 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
324 * term.c (set_tty_color_mode):
325 * bidi.c (bidi_initialize): Don't access the ->value field directly.
326 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
327 a buffer_local_flags.
328 * print.c (print_object): Get rid of impossible forwarding objects.
329
fd3998ff
EZ
3302010-04-19 Eli Zaretskii <eliz@gnu.org>
331
332 * bidi.c (bidi_get_type, bidi_get_category)
333 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
334 (bidi_type_of_next_char, bidi_level_of_next_char):
335 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 336
e42cd1a7
JB
3372010-04-19 Juanma Barranquero <lekktu@gmail.com>
338
339 * dired.c (Ffile_attributes): Fix typo in docstring.
340
6e104790 3412010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
342
343 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
344 NSInteger (Bug#5811).
345
6e104790 3462010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
347
348 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
349 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
350
6e104790 3512010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
352
353 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
354
6e104790
SM
3552010-04-19 Chong Yidong <cyd@stupidchicken.com>
356
357 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
358 terminal frames (Bug#5837).
359
37dcfea0
EZ
3602010-04-19 Eli Zaretskii <eliz@gnu.org>
361
d1da276f
EZ
362 * .gdbinit (xsubchartable): New command.
363
37dcfea0
EZ
3642010-04-19 Eli Zaretskii <eliz@gnu.org>
365
366 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 367 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
368 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
369 and
370 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
371
e9515805
SM
3722010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
373
374 * alloc.c (Fpurecopy): Hash-cons if requested.
375 (syms_of_alloc): Update purify-flag docstring.
376
22aa44a8
JD
3772010-04-18 Jan Djärv <jan.h.d@swipnet.se>
378
379 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
380 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
381
ebb5722e
EZ
3822010-04-17 Eli Zaretskii <eliz@gnu.org>
383
384 Fix a crash when an NSM character is inserted at BEGV.
385
386 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
387 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
388 NEUTRAL_B or UNKNOWN_BT.
389
0f4442ef
EZ
3902010-04-16 Eli Zaretskii <eliz@gnu.org>
391
392 * xdisp.c (set_cursor_from_row): Don't consider possibility of
393 other rows with cursor unless they are different from this row and
394 this row is part of a continued line. (Bug#5943)
395
7d4e45f8
DN
3962010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
397
398 * s/freebsd.h: Restore osreldate.h include.
399 Suggested by Naohiro Aota.
400
5ba5ec85
J
4012010-04-16 Jan Djärv <jan.h.d@swipnet.se>
402
403 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
404
20af301d
CY
4052010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
406
407 * s/cygwin.h: Avoid linking against static libgcc.
408
a4b000fb
JL
4092010-04-15 Juri Linkov <juri@jurta.org>
410
411 * window.c: Add Qscroll_command.
412 Remove Vscroll_preserve_screen_position_commands.
413 (window_scroll_pixel_based, window_scroll_line_based): Check the
414 `scroll-command' property on the last command instead of searching
415 the last command in Vscroll_preserve_screen_position_commands.
416 (syms_of_window): Initialize and staticpro `Qscroll_command'.
417 Put Qscroll_command property on Qscroll_up and Qscroll_down.
418 (scroll-preserve-screen-position): Doc fix.
419 (Vscroll_preserve_screen_position_commands): Remove variable.
420
bc319ba4
DN
4212010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
422
6bb24457
DN
423 * xdisp.c (message): Do not use NO_ARG_ARRAY.
424
19d4c244
DN
4252010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
426
427 Reduce cpp use in Makefile.in.
428 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
429 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
430 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
431 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
432 (CRT0_COMPILE): Remove, inline it in the only user.
433
32129746
JL
4342010-04-14 Juri Linkov <juri@jurta.org>
435
436 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
437 `scroll-up-command' and `M-v' from `scroll-down' to
438 `scroll-down-command'.
439
9013a7f8
JL
4402010-04-14 Juri Linkov <juri@jurta.org>
441
442 * window.c (Vscroll_preserve_screen_position_commands): New variable
443 with the default value as the list of Qscroll_down and Qscroll_up.
444 (window_scroll_pixel_based, window_scroll_line_based): Search the
445 last command in the list Vscroll_preserve_screen_position_commands
446 instead of comparing with Qscroll_up and Qscroll_down.
447
4bef8d26
JD
4482010-04-13 Jan Djärv <jan.h.d@swipnet.se>
449
92848133
JD
450 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
451 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
452 does that.
453
4bef8d26
JD
454 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
455 to zero.
456
58b963f7
SM
4572010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
458
84164a0d
SM
459 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
460
2b0a91e7
SM
461 Try to solve the problem of spurious EOF chars in long lines of text
462 sent to interactive subprocesses.
463 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
464 (system_process_attributes): Remove unused var `ttotal'.
465 * process.c (send_process): Don't bother breaking long line with EOF
466 chars when talking to ttys any more.
467 (wait_reading_process_output): Output a warning when called in such
468 a way that it could block without being interruptible.
469
58b963f7
SM
470 Try to detect file modification within the same second.
471 * buffer.h (struct buffer): New field modtime_size.
472 * buffer.c (reset_buffer): Initialize it.
473 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
474 (Fverify_visited_file_modtime): Check it.
475 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
476 (Fset_visited_file_modtime): Set (or clear) it.
477
01f5787b
SM
4782010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
479
480 * process.c (status_notify): Remove unused var `ro'.
481
83725342
JD
4822010-04-12 Jan Djärv <jan.h.d@swipnet.se>
483
484 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
485 more than one visual (Bug#5938).
486
b9465836
DN
4872010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
488
50426a04
JB
489 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
490 Undefine.
b9465836 491
8d9c8ece
DN
4922010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
493
b1f52161
DN
494 Remove C_SWITCH_SYSTEM_TEMACS.
495 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
496 (malloc, realloc, free): Use emacs, not temacs for conditional
497 definition.
498
499 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
500 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
501
8d9c8ece
DN
502 Use autoconf, not cpp for some variables.
503 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
504 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
505 (ALL_CFLAGS): Use them as make variables.
506 (really-lwlib, really-oldXMenu): Do not pass them.
507
1ecb2d3f
JD
5082010-04-11 Jan Djärv <jan.h.d@swipnet.se>
509
510 * xmenu.c (apply_systemfont_to_dialog): New.
511 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
512
3a4fa2f2
SM
5132010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
514
97e53006
SM
515 * process.c (exec_sentinel): Preserve current-buffer.
516
3a4fa2f2
SM
517 * process.c (read_process_output): Move the save-current-buffer to
518 apply to both the filter and the non-filter branches.
519
88df7221
DN
5202010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
521
522 * s/msdos.h (UNEXEC): New definition.
523
5634ff85
YM
5242010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
525
6eff5c3d
YM
526 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
527 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
528
529 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
530 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
531 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
532 TRY_WINDOW_CHECK_MARGINS.
533
534 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
535 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
536 width only when it is for padding.
5634ff85 537
b13aef54
J
5382010-04-09 Jan Djärv <jan.h.d@swipnet.se>
539
540 * xfns.c (Fx_show_tip): Call try_window in a loop until
541 fonts_changed_p is zero (Bug#2423).
542
21d28484
EZ
5432010-04-08 Eli Zaretskii <eliz@gnu.org>
544
545 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
546 the end of TEXT_AREA. (Bug#5856)
547
0269ef77
JD
5482010-04-08 Jan Djärv <jan.h.d@swipnet.se>
549
550 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
551 HAVE_GCONF.
552
5930fe97
EZ
5532010-04-08 Eli Zaretskii <eliz@gnu.org>
554
555 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
556 prev.orig_type, for resolving type of NSM. (Bug#5858)
557
99852628
JD
5582010-04-08 Jan Djärv <jan.h.d@swipnet.se>
559
560 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
561 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
562 in current_font.
563 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
564 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
565 New functions.
566 (syms_of_xsettings): Initialize current_font.
567 defsubr Sfont_get_system_normal_font.
99852628
JD
568
569 * xsettings.h (Ffont_get_system_normal_font,
570 xsettings_get_system_normal_font): Declare.
571
572 * xfns.c (extern xlwmenu_default_font): Remove.
573 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
574 to xlwmenu.c.
575
576 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
577 menu items in UTF-8.
578
579 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
580 (apply_systemfont_to_menu): New function.
581 (set_frame_menubar, create_and_show_popup_menu): Call
582 apply_systemfont_to_menu.
583
7fc874c4
J
5842010-04-07 Jan Djärv <jan.h.d@swipnet.se>
585
586 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
587 FRAME_LINE_TO_PIXEL_Y.
588
589 * xterm.c (x_set_window_size_1): Don't add border_width/height to
590 pixelwidth/height.
591
863bf481
DN
5922010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
593
5e5a3b92
DN
594 Simplify code for HP machines.
595 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
596 for GNU_LINUX, not needed.
597 (UNEXEC, NEED_BSDTTY): Move definitions...
598 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
599
863bf481
DN
600 * m/iris4d.h (UNEXEC): Move definition ...
601 * s/irix6-5.h (UNEXEC): ... here.
602
3e6bec3b
JD
6032010-04-04 Jan Djärv <jan.h.d@swipnet.se>
604
605 * xfns.c (set_machine_and_pid_properties): New function.
606 (Fx_create_frame): Call set_machine_and_pid_properties.
607
2912322b
SM
6082010-04-03 Eli Zaretskii <eliz@gnu.org>
609
1502b819
EZ
610 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
611 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
612 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
613
2912322b
SM
614 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
615 in this function. (Bug#5703)
616
6172010-04-03 Chong Yidong <cyd@stupidchicken.com>
618
619 * nsterm.h: Fix last change.
620
c435b432
DN
6212010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
622
a568f507
DN
623 * m/intel386.h (NO_REMAP): Move definition ...
624 * s/msdos.h (NO_REMAP): ... here.
625
4cd9f6c2
DN
626 * m/vax.h (CRT0_DUMMIES): Remove, unused.
627
c435b432
DN
628 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
629 used on those platforms.
630
42a2c622
DN
6312010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
632
633 Remove extern errno declarations.
634 * xterm.c:
635 * xrdb.c:
636 * w32term.c:
637 * unexec.c:
638 * unexaix.c:
639 * sysdep.c:
640 * process.c:
641 * lread.c:
642 * keyboard.c:
643 * floatfns.c:
644 * filelock.c:
645 * fileio.c:
646 * emacs.c (main):
647 * ecrt0.c:
648 * dispnew.c:
649 * callproc.c:
650 * buffer.c: Remove errno extern declarations.
651 * s/netbsd.h (NEED_ERRNO): Remove.
652
8224f93d
DN
6532010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
654
655 Remove all uses of LIBX11_SYSTEM.
656 * Makefile.in (LIBX11_SYSTEM): Remove.
657 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
658 instead.
659
814062c7
EZ
6602010-04-01 Eli Zaretskii <eliz@gnu.org>
661
ed68db4d
EZ
662 Remove support for DJGPP v1.x (bug#5813).
663
664 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
665 * s/msdos.h:
666 * unexec.c (make_hdr, copy_text_and_data):
667 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 668 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
669 (IT_set_terminal_modes, __write, _rename, gethostname)
670 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
671 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
672 the value of __DJGPP__.
ed68db4d
EZ
673 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
674 compatibility code.
8224f93d
DN
675 * lread.c:
676 * gmalloc.c (memalign):
677 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
678 * emacs.c (main):
679 * dosfns.c (init_dosfns):
ed68db4d
EZ
680 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
681
52f4d8d5
EZ
6822010-04-01 Eli Zaretskii <eliz@gnu.org>
683
814062c7
EZ
684 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
685 string with `cursor' property comes from an `after-string'
686 overlay. (Bug#5816)
687
0dc2e11d
GM
6882010-04-01 Glenn Morris <rgm@gnu.org>
689
690 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
691 Define as Makefile variables.
692 (LIBX): Use above variables rather than directly using autoconf.
693
1d29df59
DN
6942010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
695
696 Clean up BSD_SYSTEM use.
697 * xterm.c:
698 * process.c:
699 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
700 for including <sys/ioctl.h>.
701 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
702 code is only used for MSDOS.
703
1546c559
JL
7042010-03-31 Juri Linkov <juri@jurta.org>
705
706 * image.c: Add `Qextension_data'.
707 (syms_of_image): Initialize and staticpro `Qextension_data'.
708 (Fimage_metadata): Rename from `Fimage_extension_data'.
709 (gif_load): Put GIF extension data to the property
710 `Qextension_data'.
711
b8a1d5a1
CY
7122010-04-05 Chong Yidong <cyd@stupidchicken.com>
713
714 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
715 terminal frames (Bug#5837).
716
6521c534
CY
7172010-03-31 Chong Yidong <cyd@stupidchicken.com>
718
719 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
720 * nsterm.h: Fix prototype.
721
52c30783
EZ
7222010-03-31 Eli Zaretskii <eliz@gnu.org>
723
724 * xdisp.c (highlight_trailing_whitespace): Support highlight of
725 trailing whitespace in right-to-left rows.
726
855a0da7
SM
7272010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
728
729 Get rid of the direct_output optimizations.
730 * keyboard.c (nonundocount): Remove extern declaration.
731 (command_loop_1): Remove brittle optimisation for cheap and
732 common operations.
733 * xdisp.c (redisplay_internal): Don't bother checking
734 redisplay_performed_directly_p any more.
735 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
736 any more.
737 * dispnew.c (redisplay_performed_directly_p)
738 (direct_output_for_insert, direct_output_forward_char):
739 * dispextern.h (redisplay_performed_directly_p)
740 (direct_output_for_insert, direct_output_forward_char): Remove.
741 * cmds.c (nonundocount): Make it static.
742
85738751 7432010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
744
745 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
746
85738751 7472010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
748
749 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
750 invisible (Bug#5766).
751
85738751 7522010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 753
855a0da7
SM
754 * xdisp.c (x_consider_frame_title, update_window_cursor):
755 Remove HAVE_NS conditionals.
194d44e7 756 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
757
758 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
759 filename for the title.
760 (ns_set_doc_edited): Do nothing if the selected window is a
761 minibuffer window.
762
763 * nsterm.h: Add prototypes for ns_set_name_as_filename and
764 ns_set_doc_edited.
765
766 * nsterm.m: Remove unneeded prototype.
767
85738751 7682010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
769
770 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
771 in the DOC file. (Bug#5336)
772
85738751 7732010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
774
775 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
776
75d1428c
SM
7772010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
778
779 * window.c (keys_of_window): Remove redundant/overridden bindings.
780
82043cfb
EZ
7812010-03-30 Eli Zaretskii <eliz@gnu.org>
782
783 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
784 Restore original behavior when the iterator is not bidi_p.
785
b5dd0ae7
DN
7862010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
787
788 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
789
bd924a5d
EZ
7902010-03-30 Eli Zaretskii <eliz@gnu.org>
791
792 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
793 are outside the range of cached character positions.
794
3580374b
JB
7952010-03-30 Juanma Barranquero <lekktu@gmail.com>
796
797 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
798
a7b02820
EZ
7992010-03-30 Eli Zaretskii <eliz@gnu.org>
800
801 Initial support for bidirectional editing.
802
803 * Makefile.in (obj): Include bidi.o.
804 (bidi.o): New target.
805
806 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
807 ($(BLD)/bidi.$(O)): New target.
808
809 * bidi.c: New file.
810
811 * buffer.h (struct buffer): New members bidi_display_reordering
812 and bidi_paragraph_direction.
813
814 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
815 and bidi_paragraph_direction.
816 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
817 and bidi-paragraph-direction.
818 (Fbuffer_swap_text): Swap the values of
819 bidi_display_reordering and bidi_paragraph_direction.
820
821 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
822 (bidi_type_t, bidi_dir_t): New types.
823 (bidi_saved_info, bidi_stack, bidi_it): New structures.
824 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
825 prev_stop, base_level_stop, and eol_pos.
826 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
827 (IT_STACK_SIZE): Enlarge to 5.
828 (struct glyph_row): New member reversed_p.
829 <string_buffer_position>: Update prototype.
830 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
831 glyph_row if bidi_it.paragraph_dir == R2L.
832 (struct glyph): New members resolved_level and bidi_type.
833
834 * dispnew.c (direct_output_forward_char): Give up if we need bidi
835 processing or buffer's direction is right-to-left.
836 (prepare_desired_row): Preserve the reversed_p flag.
837 (row_equal_p): Compare the reversed_p attributes as well.
838
839 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
840 bidi_init_it and set it->paragraph_embedding from the current
841 buffer's value of bidi_paragraph_direction.
842 (reseat_1): Initialize bidi_it.first_elt.
843 (set_iterator_to_next, next_element_from_buffer): Use the value of
844 paragraph_embedding to determine the paragraph direction.
845 (set_iterator_to_next): Under bidi reordering, call
846 bidi_get_next_char_visually. Call bidi_paragraph_init if the
847 new_paragraph flag is set in the bidi iterator.
848 (next_element_from_buffer): If bidi_it.first_elt is set,
849 initialize paragraph direction and find the first character to
850 display in the visual order. If reseated to a middle of a line,
851 prime the bidi iterator starting at the line's beginning. Handle
852 the situation where we overstepped stop_charpos due to
853 non-linearity of the bidi iteration. Likewise for when we back up
854 beyond the previous stop_charpos. When moving across stop_charpos,
855 record it in prev_stop.
856 (display_line): Set row->end and it->start for the next row to the
857 next character in logical order. Always extend reversed_p rows to
858 the end of line, even if they end at ZV. Copy the reversed_p flag
859 to the next glyph row. Keep calling set_cursor_from_row for
860 bidi-reordered rows even if we already have a possible candidate
861 for cursor position. Set row_end after all the row's glyphs have
862 been produced, by looping over the glyphs. Record the position
863 after EOL in it->eol_pos, and use it to set end_pos of the last
864 row produced for a continued line.
865 <Qright_to_left, Qleft_to_right>: New variables.
866 (syms_of_xdisp): Initialize and staticpro them.
867 (string_buffer_position_lim): New function.
868 (string_buffer_position): Most of code moved to
869 string_buffer_position_lim. Last argument and return value are
870 now EMACS_INT; all callers changed.
871 (set_cursor_from_row): Rewritten to support bidirectional text and
872 reversed glyph rows.
873 (text_outside_line_unchanged_p, try_window_id): Disable
874 optimizations if we are reordering bidirectional text and the
875 paragraph direction can be affected by the change.
876 (append_glyph, append_composite_glyph)
877 (produce_image_glyph, append_stretch_glyph): Set the
878 resolved_level and bidi_type members of each glyph.
879 (append_glyph): If the glyph row is reversed, prepend the glyph
880 rather than appending it.
881 (handle_stop_backwards): New function.
882 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
883 (reseat): call handle_stop_backwards to recompute prev_stop and
884 base_level_stop for the new position.
885 (handle_invisible_prop): Under bidi iteration, skip invisible text
886 using bidi_get_next_char_visually. If we are `reseat'ed, init the
887 paragraph direction. Update IT->prev_stop after skipping
888 invisible text.
889 (move_it_in_display_line_to): New variables prev_method
890 and prev_pos. Compare for strict equality in
891 BUFFER_POS_REACHED_P.
892 (try_cursor_movement): Examine all the candidate rows that occlude
893 point, to return the best match. If rows are bidi-reordered
894 and point moved backwards, back up to the row that is not a
895 continuation line, and start looking for a suitable row from
896 there.
897
898 * term.c (append_glyph): Reverse glyphs by pre-pending them,
899 rather than appending, if the glyph_row's reversed_p flag is set.
900 Set the resolved_level and bidi_type members of each glyph.
901
902 * .gdbinit (pbiditype): New command.
903 (pgx): Use it to display bidi level and type of the glyph.
904 (pitx): Display some bidi information about the iterator.
905 (prowlims, pmtxrows): New commands.
906
32a8894e
DN
9072010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
908
909 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
910 * s/usg5-4.h (LIBS_DEBUG):
911 * s/irix6-5.h (C_DEBUG_SWITCH):
912 * s/gnu-linux.h (LIBS_DEBUG):
913 * s/darwin.h (LIBS_DEBUG):
914 * s/bsd-common.h (LIBS_DEBUG):
915 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
916 * m/iris4d.h (LIBS_DEBUG):
917 * m/hp800.h (LIBS_DEBUG): Remove definitions.
918
919 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
920 (LIBS_DEBUG): Remove definition.
921
649dbf36
CY
9222010-03-27 Chong Yidong <cyd@stupidchicken.com>
923
924 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
925 Windows.
926
cad4261f
YM
9272010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
928
929 * process.c (Fmake_network_process): Don't call turn_on_atimers around
930 `connect' (Bug#5723).
931
cd591dbc
HE
9322010-03-25 Helmut Eller <eller.helmut@gmail.com>
933
934 * process.c (Fmake_network_process): Call `select' for interrupted
935 `connect' rather than creating new socket (Bug#5173).
936
e867cb5d 9372010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
938
939 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
940
941 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
942
943 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
944
e867cb5d 9452010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
946
947 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
948 XLoadQueryFont.
949
e867cb5d 9502010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
951
952 * coding.c (decode_coding_ccl): Fix previous change for the
953 multibyte case.
fb608df3
KH
954 (encode_coding_ccl): Don't setup ccl program here. Fix for the
955 case that the output buffer is fullfilled.
956 (encode_coding): Setup ccl program here.
fbdc1721 957
e867cb5d 9582010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
959
960 * editfns.c (Fformat): Account for string precision when computing
961 field width (Bug#5710).
962
5845f0ed
DN
9632010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
964
814fb708
DN
965 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
966
5845f0ed
DN
967 Simplify LIBS_MACHINE definitions.
968 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
969 * m/iris4d.h (LIBS_MACHINE): Likewise.
970 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
971 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 972 * s/netbsd.h: Remove commented out code.
5845f0ed 973
b7064064
DN
9742010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
975
df7734b2
DN
976 Remove dead code dealing with POSIX_SIGNALS.
977 * atimer.c (set_alarm): Remove dead code, all USG systems define
978 POSIX_SIGNALS.
979 * data.c (arith_error): Likewise.
980 * keyboard.c (input_available_signal, handle_user_signal)
981 (interrupt_signal): Likewise.
982 * process.c (sigchld_handler): Likewise.
983 (create_process): Remove if 0 code. Remove HPUX conditional when
984 !defined (POSIX_SIGNALS), it cannot be true.
985 * syssignal.h: Remove USG5_4 and USG conditionals when
986 !POSIX_SIGNALS, they cannot be true.
987
b7064064
DN
988 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
989 NO_SOCK_SIGIO, not used anymore.
990
55da5ee3
DN
9912010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
992
0be96e3a
DN
993 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
994 support vax on BSDs.
995
55da5ee3
DN
996 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
997 * s/aix4-2.h (ORDINARY_LINK): ... here.
998
c0282183
AS
9992010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1000
82c3d67a
AS
1001 * Makefile.in (abs_builddir): Define.
1002 (bootstrap_exe): Use it.
1003 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1004
3613edce
SM
10052010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1006
1007 * Makefile.in (bootstrap_exe): Use an absolute name.
1008
7f110ddc
DN
10092010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1010
22e87574
DN
1011 Remove support for old GNU/Linux using libc version 5.
1012 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1013 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1014
05a670e6
DN
1015 Consolidate redundant definitions in s/bsd-common.h.
1016 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1017 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1018 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1019 doing it in all files that include this one.
1020 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1021 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1022 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1023 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1024 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1025 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1026 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1027 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1028 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1029
2968f561
DN
1030 Consolidate redundant definitions.
1031 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1032 it's undefined in all files that include this one.
1033 (POSIX_SIGNALS): Define here instead of doing it in all files that
1034 include this one.
1035 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1036 (POSIX_SIGNALS): Do not define.
1037 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1038 (POSIX_SIGNALS): Do not define.
1039 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1040 (POSIX_SIGNALS): Do not define.
1041
15d25dc0
DN
1042 Remove support for old UNIX System V systems.
1043 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1044 * s/usg-5-4-2.h: Remove.
1045
07e339e4
DN
1046 Remove support for Solaris on PPC and for old versions.
1047 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1048 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1049 that cancel each other.
1050 * s/sol2-3.h:
1051 * s/sol2-4.h:
1052 * s/sol2-5.h: Remove.
1053 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1054 (NO_REMAP): Remove, unused.
1055 (UNEXEC): Move definition ...
1056 * s/aix4-2.h (UNEXEC): ... here.
1057
7f110ddc
DN
1058 * s/openbsd.h: Remove support for non-ELF and for systems that do
1059 not support shared libraries.
1060 * s/netbsd.h:
1061 * s/freebsd.h: Likewise.
1062
605f35cd
DN
10632010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1064
1065 Remove non-working support for lynxos 3.0.
1066 * s/lynxos.h: Remove file.
1067
1068 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1069 COFF_BSD_SYMBOLS, nothing defines it anymore.
1070
aed71cf4
DN
10712010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1072
1073 Remove obsolete uses of HAVE_SHM.
1074 * emacs.c (standard_args):
1075 (Fdump_emacs):
1076 (syms_of_emacs): Remove code depending on HAVE_SHM.
1077
1078 * alloc.c: Remove HAVE_SHM dependent definition.
1079
1080 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1081
aded53ff
GM
10822010-03-18 Glenn Morris <rgm@gnu.org>
1083
17284745
GM
1084 * emacs.c (USAGE4): Hard-code bug address.
1085 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1086 (bug_reporting_address): Remove.
1087 (main): Don't call bug_reporting_address.
1088
aded53ff
GM
1089 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1090 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1091
303500aa
CY
10922010-03-15 Chong Yidong <cyd@stupidchicken.com>
1093
1094 * xfns.c (Fx_create_frame):
1095 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1096 on left.
1097
cef3058f
CY
10982010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1099
1100 * editfns.c (Fformat): Account for string precision when computing
1101 field width (Bug#5710).
1102
a647d59d
CY
11032010-03-12 Chong Yidong <cyd@stupidchicken.com>
1104
4fa42018
CY
1105 * xfns.c (Fx_create_frame): Set default to Qright.
1106
a647d59d
CY
1107 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1108 all window systems.
1109
6da23aaa
EZ
11102010-03-12 Eli Zaretskii <eliz@gnu.org>
1111
a96f6398 1112 These changes remove termcap.c from the build on Posix platforms.
83d02def 1113 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1114 (MSDOS_OBJ): ...to here.
1115 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1116 now identical to when LIBS_TERMCAP is defined.
1117
1118 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1119
1120 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1121
a96f6398 1122 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1123
288f9fc0
CY
11242010-03-10 Chong Yidong <cyd@stupidchicken.com>
1125
1126 * Branch for 23.2.
1127
d48cd3f4
SM
11282010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1129
1130 Cleanup setup of gl_state in various parts of the code.
1131 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1132 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1133 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1134 (skip_chars):
1135 * regex.c (regex_compile): Use it.
1136 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1137 it's now set in regex_compile when/if we need it.
1138
618db430
SM
11392010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1140
c0335e02
SM
1141 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1142 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1143 (QUIT): Use it to consolidate code and remove redundancy.
1144 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1145
254c06a8
SM
1146 * regex.c (regex_compile): Setup gl_state as well.
1147
618db430
SM
1148 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1149 (in_classes): Use CONSP before XCAR/XCDR.
1150
233f0c9f
CY
11512010-03-03 Chong Yidong <cyd@stupidchicken.com>
1152
1153 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1154 definitions, so that keyboard macros are correctly handled
1155 (Bug#5481).
1156
75f80e63
EZ
11572010-03-02 Eli Zaretskii <eliz@gnu.org>
1158
1159 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1160 text that could be relocated inside the call to emacs_mule_char.
1161 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1162 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1163
dcfb9bc4
KH
11642010-03-02 Kenichi Handa <handa@m17n.org>
1165
fc9a17bc
KH
1166 * character.c (parse_str_as_multibyte): Fix handling of the
1167 multibyte form of raw-bytes.
1168 (str_as_multibyte): Likewise.
1169
dcfb9bc4
KH
1170 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1171 form of raw-bytes.
1172
412c01b6
CY
11732010-02-28 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * charset.c (load_charset_map_from_file)
1176 (load_charset_map_from_vector): Zero out allocated
1177 charset_map_entries before using them.
1178
df7e1ea0
AS
11792010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1180
1181 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1182
fe69a722
CY
11832010-02-27 Chong Yidong <cyd@stupidchicken.com>
1184
4ed28cf4
CY
1185 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1186 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1187
7379cfce
KH
11882010-02-26 Kenichi Handa <handa@m17n.org>
1189
f88cc4d6
KH
1190 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1191
7379cfce
KH
1192 * xdisp.c (reseat_to_string): Fix previous change.
1193
cf2fdcfb
CY
11942010-02-26 David Reitter <david.reitter@gmail.com>
1195
1196 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1197 Lisp_Object (Bug#4736).
1198
cc6c7c75
KH
11992010-02-25 Kenichi Handa <handa@m17n.org>
1200
1201 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1202
32e737d7
JD
12032010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1204
1205 * xterm.c (XTflash): Move declarations before statements.
1206
1207 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1208 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1209 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1210 (xg_create_tool_bar): Remove unused variables.
1211 (x_wm_set_size_hint): Move declarations before statements.
1212 (xg_create_frame_widgets): Remove variable grav,
1213
676cae9f
CY
12142010-02-21 Chong Yidong <cyd@stupidchicken.com>
1215
1216 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1217
886cc2b8
SM
12182010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1219
1220 * term.c (fatal): Add a final \n if needed (bug#5596).
1221
ddb2d8e2
CY
12222010-02-18 Chong Yidong <cyd@stupidchicken.com>
1223
1224 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1225
2a4f8d3d
GM
12262010-02-18 Glenn Morris <rgm@gnu.org>
1227
1228 * callint.c (Finteractive): Doc fix.
1229
ebaf11b6
KH
12302010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1231
886cc2b8
SM
1232 * coding.c (record_conversion_result):
1233 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1234 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1235 memory allocation error.
1236
d0396581
KH
12372010-02-17 Kenichi Handa <handa@m17n.org>
1238
886cc2b8
SM
1239 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1240 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1241 (decode_coding): Setup ccl program here. Keep looping when the
1242 decoder stopped because the output buffer is
1243 fullfilled (bug#5534).
1244
1245 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1246
98599f74
JD
12472010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1248
471e4f04 1249 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1250 bug #5571.
886cc2b8 1251 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1252 overdrawn.
98599f74 1253
182659ae
JD
12542010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1255
1256 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1257 doing_interact here.
1258 (ice_connection_closed): New function.
1259 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1260 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1261 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1262 returns I/O error.
1263 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1264 bug #5512.
1265
9be32c4e 12662010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1267
1268 * nsfont.m (nsfont_open): The system's value for the font descent
1269 is negative, so round it down to avoid clipping.
1270
a2f3eb19
CY
12712010-02-06 Chong Yidong <cyd@stupidchicken.com>
1272
1273 * charset.c (load_charset_map_from_file)
1274 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1275 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1276
3088147c
CY
12772010-02-05 Chong Yidong <cyd@stupidchicken.com>
1278
1279 * charset.c (load_charset_map_from_file): Allocate large
1280 charset_map_entries structure on the heap rather than the stack.
1281 (Bug#5526).
1282
b57d9029
KH
12832010-01-31 Kenichi Handa <handa@m17n.org>
1284
1285 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1286 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1287
c67d885b
CY
12882010-01-31 Chong Yidong <cyd@stupidchicken.com>
1289
1290 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1291 <deactivated@gmail.com> (Bug#3605).
1292
8fab2362
CY
12932010-01-31 David De La Harpe Golden <david@harpegolden.net>
1294
1295 * fileio.c (Frename_file): Correctly rename symlinks to
1296 directories (Bug#5496).
1297
cb2a62f2
CY
12982010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1299
1300 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1301
944c7a26
AS
13022010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1303
1304 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1305
c024ac08
CY
13062010-01-29 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * frame.c (DEFAULT_ROWS): Change default to 35.
1309
1310 * xfns.c (x_default_font_parameter): Change default XFT font to
1311 monospace-10 (Bug#3643).
1312
af93af83
EZ
13132010-01-29 Eli Zaretskii <eliz@gnu.org>
1314
1315 * w32inevt.c (key_event): Remove unnecessary comparison of
1316 event->uChar.AsciiChar with 128.
1317
ca0eb708
CY
13182010-01-28 Chong Yidong <cyd@stupidchicken.com>
1319
b242dbfc
CY
1320 * fileio.c (Frename_file): Fix last change (Bug#5487).
1321
ca0eb708
CY
1322 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1323
1324 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1325
45d45af5
JD
13262010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1327
1328 * xfns.c (Fx_create_frame): Remove window size matching code from
1329 2010-01-15.
1330 (x_get_current_desktop, x_get_desktop_workarea): Remove
1331
7e233730
JR
13322010-01-27 Jason Rumney <jasonr@gnu.org>
1333
1334 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1335 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1336
86e893e3
KH
13372010-01-27 Kenichi Handa <handa@m17n.org>
1338
1339 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1340 pattern string (Bug#4209).
86e893e3 1341
8719abec
CY
13422010-01-27 David De La Harpe Golden <david@harpegolden.net>
1343
1344 * fileio.c (Frename_file): Call copy-directory and
1345 delete-directory for directories, in order to handle cross-device
1346 renaming (Bug#3353).
1347
844794c8
JD
13482010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1349
aa3e13b5 1350 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1351 sizes 24 and 10. Bug #3643.
844794c8 1352
bd4b5750
SM
13532010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1354
8dc1adf6 1355 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1356 * keymap.c (shadow_lookup): Add `remap' arg.
1357 (describe_map, describe_vector): Update calls to shadow_lookup.
1358 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1359 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1360 perform remapping during shadow_lookup check of remapped_sequences.
1361
285d07e2
CY
13622010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1363
1364 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1365 png_check_sig, which has been removed in libpng 1.4.
1366
c6d09b8d
CY
13672010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1368
1369 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1370 lacks this header file).
1371
3d782998
YM
13722010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1373
1374 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1375 as in Emacs 22.
1376
2aff7c53
YM
13772010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1378
1379 * lisp.h (make_pure_string): String pointer arg now points to const.
1380
1381 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1382 args now point to const.
1383
74327f7a
EZ
13842010-01-22 Eli Zaretskii <eliz@gnu.org>
1385
1386 * lread.c (Fload): Don't treat files without .elc extension as
1387 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1388 them. (bug#5303)
1389
4d1e6632
KH
13902010-01-20 Kenichi Handa <handa@m17n.org>
1391
1392 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1393 treat the source as actual byte sequence.
1394
1fdede8f
AM
13952010-01-19 Alan Mackenzie <acm@muc.de>
1396
1397 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1398 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1399 `signal_after_change_p' to `coherent_change_p', and make the
1400 invocation of `modify_region' conditional on it.
1401
67477f30
JD
14022010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1403
1404 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1405 for debug purpose.
1406 (syms_of_xsettings): Declare xft-settings.
1407
244b023e
CY
14082010-01-18 Chong Yidong <cyd@stupidchicken.com>
1409
1410 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1411
617364fe
CY
14122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1413
1414 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1415
4fe22cdf
CY
14162010-01-16 Chong Yidong <cyd@stupidchicken.com>
1417
1418 * emacs.c (standard_args): Adjust arg priorities to reflect how
1419 they are processed in startup.el.
1420
e118d2be
AS
14212010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1422
1423 * Makefile.in (lisp, shortlisp): Update.
1424
523ae620
SM
14252010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1426
1427 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1428 code, link the new kboard into all_kboard before running Lisp code,
1429 and protect the new terminal with GCPRO (Bug#5365).
1430 (x_term_init): Remove unused var `atom'.
1431 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1432
f0d13888
JD
14332010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1434
1435 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1436 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1437 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1438 this. Bug #3643.
f0d13888 1439
cc320f07
KH
14402010-01-15 Kenichi Handa <handa@m17n.org>
1441
1442 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1443
7ffdf101
CY
14442010-01-15 Chong Yidong <cyd@stupidchicken.com>
1445
1446 * nsterm.m (Qnone): Define.
1447
1448 * nsfns.m (Qnone): Move definition to nsterm.m.
1449
d12bd917
KH
14502010-01-14 Kenichi Handa <handa@m17n.org>
1451
1452 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1453 systems.
1454
d9a7c140
KH
14552010-01-14 Kenichi Handa <handa@m17n.org>
1456
1457 Make auto-composition work on all buffers even if they are
1458 fundamental mode.
1459
1460 * composite.c (Vauto_composition_mode): New variable.
1461 (composition_compute_stop_pos): Check Vauto_composition_mode
1462 instead of Vauto_composition_function.
1463 (composition_adjust_point, Ffind_composition_internal): Likewise.
1464 (syms_of_composite): Declare Lisp variable
1465 "auto-composition-mode" here.
1466
63286bb2
CY
14672010-01-13 Chong Yidong <cyd@stupidchicken.com>
1468
1469 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1470 during call to vendor-specific-keysyms (Bug#5365).
1471
c2623ee7
YM
14722010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1473
1474 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1475 Call SIGNAL_THREAD_CHECK (Bug#5333).
1476
1477 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1478 Call SIGNAL_THREAD_CHECK.
1479
0b5397c2
SM
14802010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1481
1482 Try to fix bug#5314. This is probably not the final word, tho.
1483 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1484 recent-auto-save-p as a side-effect.
1485 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1486 * buffer.c (Fkill_buffer, reset_buffer):
1487 * editfns.c (Fsubst_char_in_region):
1488 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1489 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1490
dc954cb2
KH
14912010-01-13 Kenichi Handa <handa@m17n.org>
1492
1493 Display buffer name, etc. in mode line by composing correctly.
1494
1495 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1496 STRING is not nil.
0b5397c2 1497 (display_mode_element): Adjust for the change of
dc954cb2
KH
1498 decode_mode_spec and display_line.
1499 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1500 (display_string): Handle the case that STRING is non-null and
1501 LISP_STRING is not nil.
1502
0b5397c2
SM
1503 * xterm.c (x_draw_composite_glyph_string_foreground):
1504 Pay attention to s->face->overstrike.
dc954cb2
KH
1505
1506 * composite.c (composition_reseat_it): Don't check PT if STRING is
1507 non nil.
1508
4a00eaca
YM
15092010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1510
1511 * keyboard.c (read_char): Don't apply previous change when current
1512 buffer is unchanged by command execution.
1513
60abb287
JD
15142010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1515
1516 * keyboard.c (read_char): Return after executing from special map.
1517
893db5bc
GM
15182010-01-12 Glenn Morris <rgm@gnu.org>
1519
1520 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1521 bug-gnu-emacs rather than emacs-pretest-bug.
1522
4d03ece0
CY
15232010-01-11 Chong Yidong <cyd@stupidchicken.com>
1524
1525 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1526 initializing the Lisp variables that depend on them.
1527
1df47e38
YM
15282010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1529
1530 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1531 Clear areas that will not be updated after change of menu bar lines.
1532 Clear the menu bar window's current matrix when the window gets empty.
1533
2f1c6384
CY
15342010-01-09 Chong Yidong <cyd@stupidchicken.com>
1535
e398c61c
CY
1536 * intervals.h, textprop.c (extend_property_ranges): Return value
1537 and args changed. Discard properties that begin at or after the
1538 new end (Bug#5306).
1539
1540 * editfns.c (Fformat): Caller changed.
1541
e5a29a10
CY
1542 * nsterm.m (ns_set_default_prefs): Delete function.
1543 (syms_of_nsterm): Initialize ns_command_modifier,
1544 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1545 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1546
2f1c6384
CY
1547 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1548 position (Bug#4040).
1549
d427a9fa
EZ
15502010-01-09 Eli Zaretskii <eliz@gnu.org>
1551
1552 * editfns.c (Ffloat_time): Doc fix.
1553
21b9df2f
JD
15542010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1555
1556 * xfns.c (Fx_create_frame): Don't create frame larger than display
1557 by default bug#3643.
1558
4b00d3b1
YM
15592010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1560
1561 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1562 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1563 windows above internal border.
1564
1565 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1566 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1567 windows above internal border.
1568
1569 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1570 tool bar windows specially.
1571
1572 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1573
1574 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1575 specially.
1576 (XTflash): Take account of menu bar height.
1577
1578 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1579 specially.
1580
5075d853
JD
15812010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1582
ac146f82 1583 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1584 also be true before we can return early (bug #5339).
1585
474217c8
CY
15862010-01-06 David Reitter <david.reitter@gmail.com>
1587
1588 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1589 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1590 (Bug#3233).
1591
c0e6d47d
JD
15922010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1593
d0cf45b7
JD
1594 * font.c (font_open_entity): Enable chache and call cached_font_ok
1595 for the driver if defined.
1596 (QCuser_spec): New symbol.
1597 (font_spec_from_name): Save name as user-spec.
1598 (font_load_for_lface): Keep user-spec instead of name.
1599 (font_open_by_name): Save name as user-spec.
1600 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1601 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1602
1603 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1604 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1605 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1606
1607 * font.h (struct font_driver): Add cached_font_ok.
1608
c0e6d47d
JD
1609 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1610
7c583cd8
JD
16112010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1612
1613 * xterm.c (x_new_font): Move code for setting rows/cols before
1614 resizing ...
ac146f82 1615 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1616
1617 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1618 (xg_frame_resized, xg_frame_set_char_size):
1619 Call xg_clear_under_internal_border.
7c583cd8 1620 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1621
03f77f0a
CY
16222010-01-05 Chong Yidong <cyd@stupidchicken.com>
1623
1624 * keyboard.c (read_key_sequence): Catch keyboard switch after
1625 making a new tty frame (Bug#5095).
1626
2a1ef5be
KH
16272010-01-05 Kenichi Handa <handa@m17n.org>
1628
1629 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1630
e3eb1dae
SM
16312010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1632
1633 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1634 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1635 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1636
777013f2
MA
16372010-01-03 Michael Albinus <michael.albinus@gmx.de>
1638
1639 * dbusbind.c (xd_add_watch): Improve debug message.
1640 (xd_remove_watch): Improve debug message. If DATA is the session
1641 bus, unset D-Bus session environment.
1642 (Fdbus_init_bus): Pass the bus as argument to
1643 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1644
8932b1c2
CY
16452010-01-01 Chong Yidong <cyd@stupidchicken.com>
1646
87231e2c
CY
1647 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1648
4801c5fa
CY
1649 * lread.c (syms_of_lread): Make it clearer that these are the
1650 names of loaded files (Bug#5068).
1651
8932b1c2
CY
1652 * eval.c (run_hook_with_args): Handle the case where the global
1653 value has the obsolete single-function form (Bug#5026).
1654
11e3c684
CY
16552009-12-27 Chong Yidong <cyd@stupidchicken.com>
1656
1657 * minibuf.c (Fall_completions): Minor optimization.
1658
5b28ce35
EZ
16592009-12-26 Eli Zaretskii <eliz@gnu.org>
1660
5ce6e4f4
JB
1661 * .gdbinit (pgx): Fix display of composite glyphs.
1662 Display cmp.from and cmp.to as well.
1663 (pitx): Fix last change.
5b28ce35 1664
bcffff46
KH
16652009-12-25 Kenichi Handa <handa@m17n.org>
1666
1667 * composite.h (composition_adjust_point): Update prototype.
1668
1669 * composite.c (composition_reseat_it): Don't make a composition
1670 spanning over point.
1671 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1672 composable characters.
1673 (composition_adjust_point): New arg NEW_PT. Callers changed.
1674
1675 * keyboard.c (command_loop_1): Force redisplay if the last point
1676 was within a composition.
1677 (adjust_point_for_property): Don't adjust point for automatic
1678 composition when called after buffer modification.
1679
3f670e9a
EZ
16802009-12-19 Eli Zaretskii <eliz@gnu.org>
1681
5ce6e4f4
JB
1682 * .gdbinit (pitx): Don't use enum names, use their values.
1683 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1684 (pgx): Don't use enum names, use their values.
1685 (pitmethod): New helper command.
1686 (pitx): Use it to display iteration method.
1687 (pgrowit): New command.
1688
ad903955
EZ
1689 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1690
3f670e9a
EZ
1691 Update dependencies in Makefile.in.
1692
1693 * Makefile.in (alloc.o): Depend on termhooks.h.
1694 (atimer.o): Depend on blockinput.h.
1695 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1696 and frame.h.
1697 (callint.o): Depend on systime.h, coding.h, and composite.h.
1698 (callproc.o): Depend on buffer.h.
1699 (casefiddle.o): Don't depend on charset.h.
1700 (casetab.o): Depend on character.h.
1701 (ccl.o): Depend on composite.h.
1702 (chartab.o): Depend on ccl.h.
1703 (cm.o): Depend on dispextern.h.
1704 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1705 (coding.o): Don't depend on $(INTERVALS_H).
1706 (composite.o): Don't depend on dispextern.h explicitly (it's in
1707 $(INTERVALS_H)). Depend on ccl.h.
1708 (data.o): Depend on systime.h, coding.h, composite.h,
1709 dispextern.h, font.h, and ccl.h.
1710 (dired.o): Depend on composite.h.
1711 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1712 composite.h (it's in $(INTERVALS_H)).
1713 (doc.o): Depend on systime.h, coding.h, and composite.h.
1714 (editfns.o): Don't depend explicitly on dispextern.h.
1715 (emacs.o): Depend on frame.h and coding.h.
1716 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1717 (fileio.o): Depend on frame.h and commands.h. Don't depend
1718 explicitly on dispextern.h.
1719 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1720 composite.h.
1721 (fns.o): Don't depend on termhooks.h.
1722 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1723 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1724 coding.h, $(INTERVALS_H), window.h, xterm.h.
1725 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1726 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1727 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1728 fontset.h, ccl.h, and ftfont.h.
1729 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1730 (gtkutil.o): Depend on dispextern.h and composite.h.
1731 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1732 termhooks.h, and ccl.h.
1733 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1734 (intervals.o): Depend on systime.h and coding.h.
1735 (keyboard.o): Depend on composite.h and coding.h.
1736 (keymap.o): Depend on coding.h and frame.h.
1737 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1738 (macros.o): Depend on systime.h, coding.h, and composite.h.
1739 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1740 and atimer.h.
1741 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1742 dispextern.h explicitly.
0b5397c2
SM
1743 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1744 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1745 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1746 (regex.o): Don't depend on charset.h.
1747 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1748 (search.o): Don't depend explicitly on composite.h.
1749 (sound.o): Depend on atimer.h and systime.h.
1750 (syntax.o): Don't depend explicitly on composite.h.
1751 (sysdep.o): Depend on coding.h and composite.h.
1752 (term.o): Depend on xterm.h and buffer.h.
1753 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1754 (textprop.o): Don't depend on dispextern.h explicitly.
1755 (undo.o): Depend on dispextern.h.
1756 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1757 dispextern.h and composite.h explicitly.
1758 (xdisp.o): Depend on ccl.h.
1759 (xfaces.o): Depend on coding.h and ccl.h.
1760 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1761 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1762 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1763 ftfont.h.
1764 (xgselect.o): New dependency.
1765 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1766 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1767 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1768 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1769 (xsmfns.o): Depend on frame.h and dispextern.h.
1770 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1771 sysselect.h.
1772
7a6f7fea
AS
17732009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1774
1775 * font.c (Fclear_font_cache): Pass correct cache argument to
1776 font_clear_cache.
1777
f4c21026
AS
17782009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1779
1780 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1781 twice.
1782
f7ab0997
CY
17832009-12-15 Chong Yidong <cyd@stupidchicken.com>
1784
1785 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1786 calling file-remote-p. Reported by Jim Meyering.
1787
fa8e045a
MA
17882009-12-15 Michael Albinus <michael.albinus@gmx.de>
1789
1790 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1791 avoid compiler warnings. (Bug #5217)
fa8e045a 1792
a63dba42
KH
17932009-12-14 Kenichi Handa <handa@m17n.org>
1794
1795 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1796 in 8-bit encoding.
1797
5ce6e4f4 17982009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1799
1800 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1801 tooltip windows.
1802
223e5fc6
JD
18032009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1804
36acb2a7
JD
1805 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1806 Xatom_net_window_type.
1807
1808 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1809 Xatom_net_window_type.
1810
b8f00677
JD
1811 * xterm.c (my_log_handler): New function.
1812 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1813 so we can filter out buggy messages. (Bug #5120).
b8f00677 1814
e5f0bc9a
JD
1815 * xterm.c (xg_scroll_callback): Parameter list changed,
1816 use parameter GtkScrollType to determine scroll/line/page.
1817 Only allow dragging if a button < 4 is grabbed (bug #5177).
1818 (xg_end_scroll_callback): New function.
1819 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1820 xg_create_scroll_bar.
1821
1822 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1823 (scroll_end_callback): Remove.
1824 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1825 button-release-event. Replace value-changed event with change-value,
1826 bug #5177,
1827 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1828 bug #5177.
1829
1830 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1831 (xg_create_scroll_bar): Add GCallback end_callback.
1832
223e5fc6
JD
1833 * xftfont.c (QClcdfilter): New variable.
1834 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1835 (syms_of_xftfont): Initialize QClcdfilter.
1836
3c055b77
JD
18372009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1838
1839 * xsettings.c (struct xsettings): Add member seen.
1840 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1841 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1842 (apply_xft_settings): Only update Xft settings with what member seen
1843 indicates as new.
1844
05fe33ff
EZ
18452009-12-12 Eli Zaretskii <eliz@gnu.org>
1846
1847 * dispextern.h (struct text_pos): Use EMACS_INT;
1848 (struct glyph): Use EMACS_INT for charpos.
1849 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1850 region_beg_charpos, region_end_charpos,
1851 redisplay_end_trigger_charpos, and also for
1852 iterator_stack_entry.end_charpos and
1853 iterator_stack_entry.stop_charpos.
1854
e8d7886a
JD
18552009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1856
5ce6e4f4 1857 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1858 (xg_create_scroll_bar): Call scroll_end_callback on button release
1859 event (bug #5177).
1860 (xg_event_is_for_scrollbar): != replaced with ==.
1861
d0db2ec8
KH
18622009-12-12 Kenichi Handa <handa@m17n.org>
1863
1864 * ftfont.c (struct ftfont_info): New member matrix.
1865 (ftfont_open): Setup xftfont_info->matrix.
1866 (MFLTFontFT): New member matrix.
1867 (FLOOR, CEIL, ROUND): New macros.
1868 (ftfont_get_metrics): Handle matrix transformation.
1869 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1870
1871 * xftfont.c (struct xftfont_info): New member matrix.
1872 (xftfont_open): Setup xftfont_info->matrix.
1873
18742009-12-10 Kenichi Handa <handa@m17n.org>
1875
1876 * xdisp.c (append_space_for_newline): Consider face-remapping.
1877
2cc7b62f
AS
18782009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1879
b87dd913
AS
1880 * xsettings.c: Include "keyboard.h".
1881
eba5eb94
AS
1882 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1883
2cc7b62f
AS
1884 Fix implicit function declarations.
1885 * cmds.c: Include "frame.h".
1886 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1887 * frame.h: Move declaration of delete_frame outside of
1888 HAVE_WINDOW_SYSTEM.
1889
a4ef73c8
CY
18902009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1891
1892 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1893
1894 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1895 GTK builds.
1896
944a300c
AS
18972009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1898
1899 * unexelf.c (unexec): Don't search for .data twice.
1900
022eef62
CY
19012009-12-05 Chong Yidong <cyd@stupidchicken.com>
1902
426ac949
CY
1903 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1904 if push failed.
1905 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1906 of push_display_prop (Bug#5000).
1907
022eef62
CY
1908 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1909 value of font_list_entities (Bug#5085).
1910
be95bee9
JB
19112009-12-04 Juanma Barranquero <lekktu@gmail.com>
1912
1913 Fix `string-to-number' to deal consistently with integers and floats.
1914 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1915 trailing characters, not just whitespace.
1916 (read1): Pass new arg 0 to keep old behavior.
1917 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1918 trailing chars, as it is already done for integers. Doc fixes.
1919 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1920
24c2d7ce
EZ
19212009-12-04 Eli Zaretskii <eliz@gnu.org>
1922
0b5397c2
SM
1923 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1924 Delete unused enumeration value.
24c2d7ce 1925
7e694795
EZ
19262009-12-03 Eli Zaretskii <eliz@gnu.org>
1927
1928 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1929
84b31826
SM
19302009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1931
1932 * process.c (Fmake_network_process): Fix up the tests for
1933 "connectionless socket", so they DTRT for seqpacket sockets as well.
1934
f00c449b
SM
19352009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * process.c (Qseqpacket): New symbol.
1938 (HAVE_SEQPACKET): New macro.
1939 (Fmake_network_process): Accept new :type `seqpacket'.
1940 (init_process): Add `seqpacket' feature when applicable.
1941 (syms_of_process): Initialize Qseqpacket.
1942
8096a0ff
YM
19432009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1944
1945 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1946 if entity is Qnil.
1947
3e0de07f
SM
19482009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1949
1950 * print.c (print_preprocess): Preprocess the key_and_value table of
1951 hashtables, even tho they're "hidden" (bug#5082).
1952
abeafb2a
JD
19532009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * frame.c (frame_make_pointer_invisible)
1956 (frame_make_pointer_visible): Declare f before statements.
1957
4bf47195
EZ
19582009-11-28 Eli Zaretskii <eliz@gnu.org>
1959
1960 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1961 omitted dependencies on lisp.h.
1962
c525b3f2
JD
19632009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1964
ece2d4ed
JD
1965 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1966 is NULL.
1967
1968 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1969
1970 * frame.c (frame_make_pointer_invisible)
3e0de07f 1971 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1972 frame.
1973
c525b3f2
JD
1974 * search.c (simple_search): Remove warning by making *p const.
1975
2f00e299
DN
19762009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1977
1978 * xdisp.c (power_letter): Remove duplicate const.
1979
084b049b
JD
19802009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1981
a1fadc6f
JD
1982 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1983
5ce6e4f4 1984 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1985 defaults (bug #5025).
1986
28259cac
SM
19872009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1988
1989 * insdel.c (adjust_markers_for_delete): Move it in the
1990 right direction! (bug#4803)
1991
e8e14166
YM
19922009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1993
1994 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1995
1996 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1997
86677b58
GM
19982009-11-24 Glenn Morris <rgm@gnu.org>
1999
2000 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2001
581e51e8
JD
20022009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2003
cfc86c7a
JD
2004 * Makefile.in: Must create deps for ecrt0.o in its rule.
2005
581e51e8
JD
2006 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2007 because that is what Gtk+ font dialog understands.
2008
2009 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2010 of Fcopy_sequence.
2011 (font_open_by_name): Put name given into QCname for font-object returned.
2012
2013 * frame.c (x_set_font): Save original font name as frame parameter
2014 font-parameter.
2015
2016 * xsettings.c (set_default_xft_settings): New function.
2017 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2018 is found.
2019
8b264ecb
AS
20202009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2021
2022 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2023 searching backwards through multibyte buffer.
2024
872870b2
JD
20252009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2026
2027 * xterm.c: #include xgselect.h.
2028 (x_initialize): Call xgselect_initialize.
2029
2030 * xsettings.c (something_changedCB): C++ comments => C comments.
2031 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2032 does that now.
2033
2034 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2035 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2036 (scroll_bar_button_cb): Remove.
5ce6e4f4 2037 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2038 event.
2039 (xg_create_scroll_bar): Don't bind button-press-event and
2040 button-release-event.
2041
2042 * process.c: Include xgselect.h if defined (USE_GTK) ||
2043 defined (HAVE_GCONF).
2044 (wait_reading_process_output): Call xg_select for the same condition.
2045
2046 * xgselect.c (xg_select): New function to better integrate with
2047 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2048
2049 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2050
2051 * Makefile.in (XOBJ): Add xgselect.o.
2052
62a6e103
AS
20532009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2054
0b5397c2
SM
2055 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2056 Remove ignored second argument. All callers changed.
62a6e103
AS
2057 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2058 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2059 * xdisp.c (string_char_and_length): Likewise.
2060
b0ca0f33
DN
20612009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2062
2063 * xterm.c (x_new_font):
2064 * print.c (print_object):
2065 * cmds.c (Fself_insert_command): Move declarations before statements.
2066
dd5a6279
CY
20672009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2068
2069 * s/cygwin.h: Remove unneeded linker flags.
2070
4a8e097d
JD
20712009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2072
0d1d0d26
JD
2073 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2074
2075 * xsettings.h: Declare xsettings_get_system_font.
2076
2077 * xsettings.c (xsettings_get_system_font): New function.
2078 (init_gconf): No use initiating gconf unless we have Xft also.
2079 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2080 HAVE_GCONF.
2081
4a8e097d
JD
2082 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2083 add a blank entry so it doesn't collapse into nothing.
2084
8ab1650e
SM
20852009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2086
2087 * lread.c (Funintern): Comment out last change.
2088
82c602f0
RS
20892009-11-19 Richard Stallman <rms@gnu.org>
2090
2091 * lread.c (Funintern): Error if symbol is t or nil.
2092
87e32266
SM
20932009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2094
2095 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2096 representation of Lisp integers.
2097 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2098
1b9ac145
AS
20992009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2100
2101 * lisp.h: Remove declaration of Ffont_get_system_font.
2102 * xfns.c: Move include of "xsettings.h".
2103 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2104
dfb3c4c6
JD
21052009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2106
87e32266
SM
2107 * xsettings.c (something_changedCB, Ffont_get_system_font):
2108 Check use_system_font.
dfb3c4c6
JD
2109 (syms_of_xsettings): DEFVAR font-use-system-font.
2110
9370c1d8
AS
21112009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2112
25fe851a
AS
2113 * xfns.c (x_default_font_parameter): Remove dead assignment.
2114
9370c1d8
AS
2115 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2116
637fa988
JD
21172009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2118
87e32266 2119 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2120 not have FC_LCD_*. #define them if not there.
a6eb20d8 2121
87e32266 2122 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2123
637fa988
JD
2124 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2125
2126 * xterm.c (handle_one_xevent): Call xft_settings_event for
2127 ClientMessage, PropertyNotify and DestroyNotify.
2128 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2129 Call xsettings_initialize.
2130
2131 * xftfont.c (xftfont_fix_match): New function.
2132 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2133 Call xftfont_fix_match after XftFontMatch.
2134
2135 * xfont.c (xfont_driver): Initialize all members.
2136
87e32266
SM
2137 * xfns.c (x_default_font_parameter):
2138 Try font from Ffont_get_system_font.
637fa988
JD
2139 Do not get font from x_default_parameter if we got one from
2140 Ffont_get_system_font.
87e32266 2141 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2142
2143 * w32font.c (w32font_driver): Initialize all members.
2144
2145 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2146
2147 * lisp.h: Declare syms_of_xsettings.
2148
87e32266
SM
2149 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2150 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2151
2152 * ftfont.c (ftfont_filter_properties): New function.
2153
2154 * frame.c (x_set_font): Remove unused variable lval.
2155
87e32266 2156 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2157
2158 * font.c (font_put_extra): Don't return if val is nil, it means
2159 boolean option is off.
2160 (font_parse_fcname): Collect all extra properties in extra_props
2161 and call filter_properties for all drivers with extra_props and
2162 font as parameter.
87e32266
SM
2163 (font_open_entity): Do not use cache, it does not pick up new
2164 fontconfig settings like hinting.
637fa988
JD
2165 (font_load_for_lface): If spec had a name in it, store it in entity.
2166
2167 * emacs.c (main): Call syms_of_xsettings
2168
2169 * config.in: HAVE_GCONF is new.
2170
2171 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2172 xsettings.o is new.
2173
5a942932
KH
21742009-11-17 Kenichi Handa <handa@m17n.org>
2175
2176 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2177 back to the default font in case that no suitable font is found.
2178
b7c7a4d1
SM
21792009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2180
2181 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2182 Suggested by Chad Brown <yandros@mit.edu>.
2183 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2184
072f1e39
JD
21852009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2186
2187 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2188
5d1e70a2
AS
21892009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2190
87e32266 2191 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2192
a53cfbe5
JD
21932009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2194
473a99b7
JD
2195 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2196 has a parent.
2197
a53cfbe5 2198 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2199 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2200
2201 * config.in: Generated (AUTO_DEPEND).
2202
f04bb9b2
MA
22032009-11-13 Michael Albinus <michael.albinus@gmx.de>
2204
b7c7a4d1 2205 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2206 Vdbus_registered_functions_table, because it contains also
2207 properties. Fix docstring.
b7c7a4d1 2208 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2209
8f11f7ec
SM
22102009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2211
2212 * alloc.c (mark_object): Don't reprocess marked strings.
2213 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2214 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2215
8a605fe8
KH
22162009-11-13 Kenichi Handa <handa@m17n.org>
2217
8f11f7ec 2218 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2219 semantics of Vword_combining_categories.
2220 (Vword_combining_categories): Describe the slight change of the
2221 semantics.
2222
241c4680
EZ
22232009-11-13 Eli Zaretskii <eliz@gnu.org>
2224
2225 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2226
2227 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2228
5d58e44c
SM
22292009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2230
2231 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2232
5e13f9d3
JB
22332009-11-12 Juanma Barranquero <lekktu@gmail.com>
2234
2235 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2236
cf54c754
DR
22372009-11-11 David Reitter <david.reitter@gmail.com>
2238
2239 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2240 variables to fix 2009-11-09 change.
2241
a4ada374
DN
22422009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2243
91433552
DN
2244 * process.c (ifflag_def): Make flag_sym constant.
2245 (Fnetwork_interface_info): Use a constant pointer.
2246 (ifflag_table):
2247 * xfns.c (cursor_bits):
2248 * xdisp.c (power_letter):
2249 * termcap.c (speeds, esctab):
2250 * sysdep.c (baud_convert):
2251 * keyboard.c (lispy_accent_codes, modifier_names):
2252 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2253 (jpeg_format, tiff_format, gif_format, svg_format)
2254 (interlace_start, interlace_increment, gs_format):
2255 * gtkutil.c (separator_names):
2256 * fringe.c (swap_nibble):
2257 * fns.c (base64_value_to_char, base64_char_to_value):
2258 * fileio.c (make_temp_name_tbl):
2259 * coding.c (suffixes): Make constant.
2260
f4265f6c
DN
2261 * frame.c (make_initial_frame):
2262 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2263 build_string.
2264 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2265
04420943
DN
2266 * s/freebsd.h:
2267 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2268
0a5d24ae
DN
2269 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2270 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2271
a4ada374
DN
2272 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2273 * xterm.c (syms_of_xterm):
2274 * xfaces.c (syms_of_xfaces):
2275 * xdisp.c (syms_of_xdisp):
2276 * lread.c (syms_of_lread):
2277 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2278 build_string.
91433552 2279
a4ada374
DN
2280 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2281
af98fc7f
SM
22822009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2283
8ab1650e 2284 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2285
e90292a9
JD
22862009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2287
2288 * keyboard.h: Declare timer_check.
2289
2290 * keyboard.c (timer_check_2): New function that does what the old
2291 timer_check did.
2292 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2293 returned, i.e. don't return -1 with timers pending.
2294
2295 * process.c: Remove extern declaration of timer_check.
2296
2297 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2298 even if timer_check returned -1.
2299
af98fc7f
SM
2300 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2301 xg_dialog_data.
e90292a9
JD
2302 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2303 the event loop.
2304 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2305 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2306 Destroy the dialog after xg_dialog_run.
2307
045b83c0
SM
23082009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2309
2310 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2311
1fb99a3a
JD
23122009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2313
2314 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2315
04e452cb
JB
23162009-11-09 Juanma Barranquero <lekktu@gmail.com>
2317
2318 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2319
ef7417fd
SM
23202009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2321
2322 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2323 w32menu.c, and nsmenu.m.
2324 Simplify the obsolete case where position is nil.
2325 (cleanup_popup_menu): New function, moved from nsmenu.m.
2326 (struct skp): Remove slot `notreal'.
2327 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2328 adjust callers.
2329 (single_menu_item): Adjust call to parse_menu_item.
2330 (syms_of_menu): Defsubr x-popup-menu.
2331 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2332 (keymap_panes): Don't export any more.
2333 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2334 (xmenu_show): Declare.
2335 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2336 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2337 * keyboard.h (parse_menu_item): Update declaration.
2338 * xmenu.c (Fx_popup_menu): Remove.
2339 (syms_of_xmenu): Don't defsubr x-popup-menu.
2340 * w32menu.c (Fx_popup_menu): Remove.
2341 (syms_of_w32menu): Don't defsubr x-popup-menu.
2342 * nsmenu.m (cleanup_popup_menu): Remove.
2343 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2344 moved to menu.c's Fx_popup_menu.
2345 (Fx_popup_menu): Remove.
2346 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2347 menu_items (it's done in menu.c already).
2348
424d6179
SM
23492009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2350
2351 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2352 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2353
c0df13a6 23542009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2355
2356 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2357 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2358 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2359 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2360
2de9f71c
SM
23612009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2362
2363 Let integers use up 2 tags to give them one extra bit and thus double
2364 their range.
2365 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2366 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2367 New macros.
2368 (enum Lisp_Type): Use them. Give explicit values.
2369 (Lisp_Type_Limit): Remove.
2370 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2371 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2372 Pay attention to USE_2_TAGS_FOR_INTS.
2373 (INTEGERP): Use LISP_INT_TAG_P.
2374 * fns.c (internal_equal): Simplify the default case.
2375 (sxhash): Use case_Lisp_Int.
2376 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2377 any more.
2378 (Ftype_of): Use case_Lisp_Int.
2379 (store_symval_forwarding): Take into account the fact that Ints can
2380 now have more than one tag.
2381 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2382 buffer_slot_type_mismatch):
2383 * xfaces.c (face_attr_equal_p):
2384 * print.c (print_object):
2385 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2386 Use case_Lisp_Int.
2387
323637a2
EZ
23882009-11-06 Eli Zaretskii <eliz@gnu.org>
2389
7ac65b38
EZ
2390 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2391
323637a2
EZ
2392 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2393 warning.
2394
e511451f
JD
23952009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2396
2397 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2398
2399 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2400
2401 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2402 ButtonPressRelease and MotionNotify (bug#4870).
2403
5e2327cf
DN
24042009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2405
5adc433e
DN
2406 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2407
d67b4f80
DN
2408 * xterm.c (syms_of_xterm):
2409 * xselect.c (syms_of_xselect):
2410 * xmenu.c (syms_of_xmenu):
2411 * xfns.c (syms_of_xfns):
2412 * xfaces.c (syms_of_xfaces):
2413 * xdisp.c (syms_of_xdisp):
2414 * window.c (syms_of_window):
2415 * w32fns.c (syms_of_w32fns):
2416 * undo.c (syms_of_undo):
2417 * textprop.c (syms_of_textprop):
2418 * terminal.c (syms_of_terminal):
2419 * syntax.c (syms_of_syntax):
2420 * sound.c (syms_of_sound):
2421 * search.c (syms_of_search):
2422 * print.c (syms_of_print):
2423 * minibuf.c (syms_of_minibuf):
2424 * macros.c (syms_of_macros):
2425 * keymap.c (syms_of_keymap, initial_define_key)
2426 (initial_define_lispy_key):
2427 * keyboard.c (syms_of_keyboard):
2428 * insdel.c (syms_of_insdel):
2429 * image.c (syms_of_image):
2430 * fringe.c (syms_of_fringe):
2431 * frame.c (syms_of_frame):
2432 * fontset.c (syms_of_fontset):
2433 * fns.c (syms_of_fns):
2434 * fns.c (syms_of_fns):
2435 * fileio.c (syms_of_fileio):
2436 * fileio.c (syms_of_fileio):
2437 * eval.c (syms_of_eval):
2438 * doc.c (syms_of_doc):
2439 * dispnew.c (syms_of_display):
2440 * dired.c (syms_of_dired):
2441 * dbusbind.c (syms_of_dbusbind):
2442 * data.c (syms_of_data):
2443 * composite.c (syms_of_composite):
2444 * coding.c (syms_of_coding):
2445 * cmds.c (syms_of_cmds):
2446 * charset.c (define_charset_internal, syms_of_character):
2447 * ccl.c (syms_of_ccl):
2448 * category.c (syms_of_category, init_category_once):
2449 * casetab.c (syms_of_casetab):
2450 * casefiddle.c (syms_of_casefiddle):
2451 * callint.c (syms_of_callint):
2452 * bytecode.c (syms_of_bytecode):
2453 * buffer.c (keys_of_buffer, syms_of_buffer):
2454 * alloc.c (syms_of_alloc):
2455 * process.c (syms_of_process, init_process):
2456 * lread.c (syms_of_lread, init_obarray):
2457 * font.c (build_style_table):
2458 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2459 intern_c_string, calls to make_pure_string with
2460 make_pure_c_string. Use pure_cons instead of Fcons.
2461
5e2327cf
DN
2462 * process.c (socket_options): Make it const.
2463 (set_socket_option, init_process): Use a const pointer.
2464
2465 * lread.c (intern_c_string): New function.
2466 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2467 (defvar_int): Uset it. Make the name const char*.
2468
2469 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2470 (defvar_int): Update prototypes.
2471 (DEFUN, EXFUN): Support for prototypes is now required.
2472 (intern_c_string): New prototype.
2473 (struct Lisp_Subr): Make symbol_name constant.
2474
2475 * font.c (struct table_entry): Remove unused member. Make NAMES
2476 constant.
2477 (weight_table, slant_table, width_table): Make constant.
2478
2479 * emacs.c (struct standard_args): Make name and longname constant.
2480
2481 * character.h (DEFSYM): Use intern_c_string.
2482
a56eaaef
DN
24832009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2484
2485 * alloc.c (make_pure_c_string): New function.
2486
2487 * eval.c (Fautoload): Purecopy all arguments.
2488
f6a07420
KH
24892009-11-05 Kenichi Handa <handa@m17n.org>
2490
2491 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2492 the buffer in case of replace.
2493
5d28d4b1
DN
24942009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2495
2496 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2497
b349d111
SM
24982009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2499
d528b1ce
SM
2500 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2501 when applicable (bug#4851).
2502
b349d111
SM
2503 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2504 (P_): Support for prototypes is now required.
2505
c38eb027
CY
25062009-10-31 Chong Yidong <cyd@stupidchicken.com>
2507
2508 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2509 (Bug#4827).
2510
0405f8d9
EZ
25112009-10-30 Eli Zaretskii <eliz@gnu.org>
2512
d528b1ce 2513 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2514
ca0a881a
DN
25152009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2516
2517 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2518
d528b1ce
SM
2519 * lread.c (Fload): Purecopy the file name when building
2520 Vpreloaded_file_list.
ca0a881a 2521
47e0e0e4
JR
25222009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2523
2524 * w32fns.c (syms_of_w32fns): Change default value of
2525 w32-scroll-lock-modifier to nil. (Bug#2827)
2526
057bce6f
JB
25272009-10-26 Juanma Barranquero <lekktu@gmail.com>
2528
782a943e 2529 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2530
242bc74c
AS
25312009-10-26 Andreas Schwab <schwab@redhat.com>
2532
2533 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2534
522d013a
JB
25352009-10-26 Juanma Barranquero <lekktu@gmail.com>
2536
2537 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2538 For delta < 0, skip check that only makes sense when the mini-window
2539 is going to be enlarged. (Bug#4534)
2540
18060980
CY
25412009-10-25 Chong Yidong <cyd@stupidchicken.com>
2542
2543 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2544 string in menu maps (Bug#4471).
2545
fec8f0fe
CY
25462009-10-24 Chong Yidong <cyd@stupidchicken.com>
2547
2548 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2549 FRAME_NS_VIEW on terminal frames (Bug#4765).
2550
10d66ec0
AS
25512009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2552
1cae01f7
AS
2553 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2554 DBUS_TYPE_UINTnn separately to get proper sign extension.
2555
58a12889
AS
2556 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2557 can properly handle unsigned types.
d528b1ce 2558 (make_uid, make_gid): Remove.
58a12889 2559
987c9327
AS
2560 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2561 types again.
2562
522d013a 2563 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2564 (system_process_attributes): Likewise.
2565
905a9ed3
DN
25662009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2567
2568 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2569
2570 * eval.c (Fautoload): Purecopy the filename. Simplify.
2571
2572 * category.c (Fdefine_category): Purecopy docstring.
2573
a599b3e8
AS
25742009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2575
7b792fc9
AS
2576 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2577
a599b3e8
AS
2578 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2579
b35ac83e
CY
25802009-10-23 Chong Yidong <cyd@stupidchicken.com>
2581
2582 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2583 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2584 (Bug#4775).
2585
e8903e00
SM
25862009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2587
2588 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2589 (init_fileio_once):
2590 * lisp.h (init_fileio_once): Remove.
2591 * emacs.c (main): Don't call init_fileio_once.
2592
8f43cbf3
DN
25932009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2594
2595 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2596
26898943
AS
25972009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2598
2599 * doprnt.c (doprnt): Fix overflow check.
2600
5c646d5a
JD
26012009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2602
3132a7ea
JD
2603 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2604
5c646d5a
JD
2605 * xterm.h (x_wait_for_event): Declare it.
2606
2607 * xterm.c (pending_event_wait): New variable.
2608 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2609 see pending_event_wait.eventtype.
2610 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2611 (x_new_font): Call change_frame_size with new rows/columns before we
2612 try to resize the frame.
5c646d5a 2613 (x_wait_for_event): New function.
d528b1ce
SM
2614 (x_set_window_size_1): Don't change gravity unless change_gravity
2615 is set.
5c646d5a
JD
2616 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2617 don't change frame size, instead wait for the ConfigureNotify.
2618 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2619 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2620 (x_initialize): Initialize pending_event_wait.
2621
2622 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2623 size.
2624
2625 * widget.c (EmacsFrameSetValues): Add comment.
2626 (EmacsFrameSetCharSize): Just call x_set_window_size.
2627
2628 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2629 x_wait_for_event.
d528b1ce 2630 (flush_and_sync): Remove again.
5c646d5a
JD
2631 (xg_get_font_name): Suggest monospace if no previous font is known.
2632
e9c1637d
SM
26332009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2634
2635 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2636 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2637
5a72cccb
YM
26382009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2639
2640 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2641 processing pending events when event is filtered for input method.
ab04798f 2642 (Bug#3681)
5a72cccb 2643
2629aa37
JB
26442009-10-20 Juanma Barranquero <lekktu@gmail.com>
2645
2646 * fns.c: Add #endif accidentally removed in previous change.
2647
c3417a74
DN
26482009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2649
2650 * fns.c: Remove code for unsupported system: MAC_OS.
2651 * image.c: Likewise. Include setjmp.h.
2652
9685cef2
JD
26532009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2654
2655 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2656 pixel -1 (bug #4742).
2657
d7306fe6
DN
26582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2659
019d2c4c
DN
2660 * process.c (create_pty): Remove conditionals for no longer
2661 supported systems: UNIPLUS and RTU.
2662
ee6bacd4
DN
2663 * xterm.c:
2664 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2665
d7306fe6
DN
2666 * alloc.c: Do not define struct catchtag.
2667 * eval.c: Move struct catchtag definition ...
2668 * lisp.h: ... here.
2669
2670 * image.c: Move png.h #include earlier to avoid warnings.
2671
2672 * xterm.c:
2673 * xsmfns.c:
2674 * xselect.c:
2675 * xrdb.c:
2676 * xmenu.c:
2677 * xftfont.c:
2678 * xfont.c:
2679 * xfns.c:
2680 * xfaces.c:
2681 * xdisp.c:
2682 * window.c:
2683 * widget.c:
2684 * w32xfns.c:
2685 * w32uniscribe.c:
2686 * w32term.c:
2687 * w32select.c:
2688 * w32reg.c:
2689 * w32proc.c:
2690 * w32menu.c:
2691 * w32inevt.c:
2692 * w32heap.c:
2693 * w32font.c:
2694 * w32fns.c:
2695 * w32console.c:
2696 * w32.c:
2697 * w16select.c:
2698 * vm-limit.c:
2699 * unexsol.c:
2700 * unexec.c:
2701 * unexcw.c:
2702 * unexaix.c:
2703 * undo.c:
2704 * tparam.c:
2705 * textprop.c:
2706 * terminfo.c:
2707 * terminal.c:
2708 * termcap.c:
2709 * term.c:
2710 * syntax.c:
2711 * sound.c:
2712 * sheap.c:
2713 * search.c:
2714 * scroll.c:
2715 * region-cache.c:
2716 * regex.c:
2717 * ralloc.c:
2718 * process.c:
2719 * print.c:
b024548b
DN
2720 * nsterm.m:
2721 * nsselect.m:
2722 * nsmenu.m:
2723 * nsimage.m:
2724 * nsfont.m:
2725 * nsfns.m:
d7306fe6
DN
2726 * msdos.c:
2727 * minibuf.c:
2728 * menu.c:
2729 * marker.c:
2730 * macros.c:
2731 * keymap.c:
2732 * keyboard.c:
2733 * intervals.c:
2734 * insdel.c:
2735 * indent.c:
2736 * gtkutil.c:
2737 * ftxfont.c:
2738 * ftfont.c:
2739 * fringe.c:
2740 * frame.c:
2741 * fontset.c:
2742 * font.c:
2743 * fns.c:
2744 * floatfns.c:
2745 * filelock.c:
2746 * fileio.c:
2747 * emacs.c:
2748 * editfns.c:
2749 * dosfns.c:
2750 * doprnt.c:
2751 * doc.c:
2752 * dispnew.c:
2753 * dired.c:
2754 * dbusbind.c:
2755 * data.c:
2756 * composite.c:
2757 * coding.c:
2758 * cmds.c:
2759 * cm.c:
2760 * chartab.c:
2761 * charset.c:
2762 * character.c:
2763 * ccl.c:
2764 * category.c:
2765 * casetab.c:
2766 * casefiddle.c:
2767 * callproc.c:
2768 * callint.c:
2769 * bytecode.c:
2770 * buffer.c:
2771 * atimer.c: Include setjmp.h. (Bug#4643)
2772
fd5f21e6
SM
27732009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2774
4c0354d7
SM
2775 Remove leftover table unibyte_to_multibyte_table.
2776 * character.c (unibyte_to_multibyte_table): Remove.
2777 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2778 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2779 * character.h (UNIBYTE_TO_CHAR): New macro.
2780 (MAKE_CHAR_MULTIBYTE): Use it.
2781 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2782 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2783 (message_dolog, set_message_1):
2784 * search.c (Freplace_match):
2785 * editfns.c (Fcompare_buffer_substrings):
2786 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2787 (concat):
2788 * insdel.c (copy_text, count_size_as_multibyte):
2789 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2790 * term.c (produce_glyphs):
2791 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2792 * regex.c (RE_CHAR_TO_MULTIBYTE):
2793 * cmds.c (internal_self_insert):
2794 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2795
fd5f21e6
SM
2796 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2797
4418646e
DN
27982009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2799
2800 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2801
35f5c1d2
JB
28022009-10-16 Juanma Barranquero <lekktu@gmail.com>
2803
2804 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2805
a0cd8f6b
AR
28062009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2807
2808 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2809 still needed under Tiger.
2810
2811 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2812
2813 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2814 __Apple__.
2815
2816 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2817
01a8d3fa
KH
28182009-10-15 Kenichi Handa <handa@m17n.org>
2819
2820 * print.c (print_object): Escape a symbol like "2E10" too.
2821
bf6c75c9 28222009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2823
2824 Cleanups and changes for 64-bit compile under Snow Leopard.
2825 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2826
2827 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2828
c5959062 2829 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2830 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2831 cast argument.
2832 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2833 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2834
2835 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2836
2837 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2838 where appropriate.
2839
2840 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2841 where appropriate.
6e4780c5
JB
2842 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2843 Use stringWithUTF8String.
bf6c75c9
AR
2844 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2845
6e4780c5
JB
2846 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2847 Add formal protocol mention to inheritance.
bf6c75c9
AR
2848 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2849
6e4780c5
JB
2850 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2851 Fix printf format.
bf6c75c9
AR
2852 (ns_query_color): Use CGFloat where appropriate.
2853 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2854 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2855 argument.
2856
3d87f118
AR
2857 * config.in (NS_HAVE_NSINTEGER): Drop.
2858
a95c8102
AR
2859 * dbusbind.c (dbus-method-return-internal)
2860 (dbus-method-error-internal): Use long format in printf, and cast
2861 argument.
2862
2863 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2864 in printf, and cast argument.
2865
6873acca 2866 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2867 cast argument.
2868
9ec6f100
GM
28692009-10-11 Glenn Morris <rgm@gnu.org>
2870
2871 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2872
5be883cd
JD
28732009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2874
2875 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2876 menu bar with a small width so it doesn't enlarge the frame.
2877
d7a39b51
JB
28782009-10-08 Juanma Barranquero <lekktu@gmail.com>
2879
2880 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2881
0c2b6f8e
GM
28822009-10-06 Glenn Morris <rgm@gnu.org>
2883
2884 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2885 SOME_MACHINE_LISP (this enters indirectly via DOC).
2886
e02131a2
EZ
28872009-10-05 Eli Zaretskii <eliz@gnu.org>
2888
2889 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2890
b4744254
EZ
28912009-10-04 Eli Zaretskii <eliz@gnu.org>
2892
2893 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2894 Doc fix.
2895
dbf64827
JB
28962009-10-03 Martin Rudalics <rudalics@gmx.at>
2897
2898 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2899
e9a0aef8
MA
29002009-10-02 Michael Albinus <michael.albinus@gmx.de>
2901
d528b1ce 2902 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2903 used anymore outside fileio.c.
2904
2905 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2906
64eb2b56
JB
29072009-10-01 Juanma Barranquero <lekktu@gmail.com>
2908
2909 * lisp.h (Qdelete_directory_internal):
2910 Declare, instead of Qdelete_directory.
2911
2912 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2913
9d28c33e
SM
29142009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2915
2916 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2917
9d8f3bd9
MA
29182009-10-01 Michael Albinus <michael.albinus@gmx.de>
2919
9d28c33e 2920 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2921 Fdelete_directory. It is not a command anymore. It has no file
2922 name handler.
2923
9694740b
SM
29242009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2925
2926 * xdisp.c (get_next_display_element): Use an enum in last change.
2927
748e162f
KH
29282009-09-28 Kenichi Handa <handa@m17n.org>
2929
9694740b 2930 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2931 unibyte_display_via_language_environment in handling
2932 Vnobreak_char_display.
2933
17efd58d
AR
29342009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2935
2936 * nsterm.h (ns_app_name): New extern variable.
2937
2938 * nsterm.m (ns_app_name): New variable.
2939 (ns_term_init): Set and use it.
2940 (ns_term_shutdown): Use it.
2941
2942 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2943 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2944
2945 * nsfns.m (ns_set_name_iconic, ns_set_name)
2946 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2947 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2948
9694740b
SM
2949 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2950 Remove double-casting in client_data comparison.
31c2d412 2951
3208cb35
YM
29522009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2953
2954 * keyboard.c (make_lispy_event): Remember last wheel direction.
2955 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2956
b7d552d6
GM
29572009-09-26 Glenn Morris <rgm@gnu.org>
2958
2959 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2960 internal.elc. Add term/pc-win.elc.
2961 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2962 term/x-win.elc.
2963 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2964 term/w32-win.elc.
2965 (NS_SUPPORT): New.
2966 (lisp): Add NS_SUPPORT.
2967 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2968
4ff670a8
DR
29692009-09-25 David Reitter <david.reitter@gmail.com>
2970
2971 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2972 on Mac OS X 10.6+ (bug#4513).
2973
feabfb6c
JB
29742009-09-24 Juanma Barranquero <lekktu@gmail.com>
2975
2976 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2977 some parts of Emacs code (like font selection) don't grok them.
2978 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2979
de59072a
AS
29802009-09-24 Andreas Schwab <schwab@redhat.com>
2981
2982 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2983
a489517b
JB
29842009-09-24 Juanma Barranquero <lekktu@gmail.com>
2985
2986 * dired.c (Fdirectory_files): Fix typo in docstring.
2987
0592970c
AR
29882009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2989
2990 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2991 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2992 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2993 under GNUstep.
2994 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2995
2996 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2997 glyph advancement.
2998
48e8a88b
AR
29992009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3000
3001 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3002 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3003
3004 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3005 deleted (bug #4492).
3006
e14f0a78
AR
3007 * nsfont.m (Vns_reg_to_script): New lisp variable.
3008 (syms_of_nsfont): Declare it.
3009 (ns_registry_to_script): New function.
3010 (ns_get_req_script): Call it.
3011 (ns_findfonts): Don't give up on non-unicode registry.
3012
3013 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3014
5b650faa
SM
30152009-09-20 Tom Tromey <tromey@redhat.com>
3016
3017 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3018 batch mode (bug#4228).
3019
a489517b 30202009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3021
3022 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3023 carefully. (Bug #4339)
0bae4e09 3024
fcfe06f3
CY
30252009-09-18 Chong Yidong <cyd@stupidchicken.com>
3026
d798ba87 3027 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3028
31642728
AR
30292009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3030
3031 * emacs.c (inhibit_x_resources): Update doc string for NS.
3032 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3033 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3034
3035 * nsterm.h (ns_no_defaults): Remove.
3036
3037 * nsterm.m (ns_no_defaults): Remove.
3038 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3039 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3040 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3041 don't update the NSWindow itself.
3042 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3043 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3044
3045 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3046 ns_use_qd_smoothing.
3047
3048 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3049 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3050 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3051 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3052
8686ac71
JB
30532009-09-17 Juanma Barranquero <lekktu@gmail.com>
3054
3055 * emacs.c (inhibit_x_resources): New variable.
3056 (main) [HAVE_NS]: Don't process --quick command line option.
3057 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3058
3059 * lisp.h (inhibit_x_resources): Declare it extern.
3060
3061 * w32reg.c (x_get_string_resource):
3062 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3063
e227ba05
EZ
30642009-09-17 Eli Zaretskii <eliz@gnu.org>
3065
362654a6
JB
3066 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3067 Add lisp/term/internal.elc.
e227ba05 3068
742d40e8
SM
30692009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3070
3071 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3072 (bug#4461).
3073
005bd5a2
DN
30742009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3075
3076 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3077
3078 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3079 (OBJECTS_MACHINE): Remove, unused.
3080
f9af9719
SM
30812009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3082
3083 * frame.c (x_get_resource_string): Remove unused.
3084
0307c7d2
JD
30852009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3086
3087 * xterm.c (x_new_font): Call change_frame_size before calling
3088 x_set_window_size, in case frame size won't change.
3089
3090 * frame.c (x_set_font): Remove dead code.
3091
428b13d6
SM
30922009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3093
3094 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3095
5766c380
SM
30962009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * lread.c (Fload): Don't output a message after loading an obsolete
3099 package any more (done in Lisp now).
3100
2fd0161b
CY
31012009-09-12 Chong Yidong <cyd@stupidchicken.com>
3102
3103 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3104
bc5e75b6
SM
31052009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3106
3107 * keymap.c (Fwhere_is_internal): Use nconc2.
3108
c31c985e
AM
31092009-09-11 Alan Mackenzie <acm@muc.de>
3110
3111 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3112 batch mode.
3113
78012bd2
AS
31142009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3115
3116 * xdisp.c (display_mode_element): Detect cycles.
3117
9d889332
SM
31182009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3119
3120 * keymap.c (where_is_internal): Don't erroneously return nil right after
3121 filling the cache.
3122 (where_is_internal_1): Fix up typo.
3123
7ab5d780
GM
31242009-09-11 Glenn Morris <rgm@gnu.org>
3125
3126 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3127 share a common doc-string.
3128
5238a749
SM
31292009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3130
66d77eda
SM
3131 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3132 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3133
5238a749
SM
3134 * keymap.c (QCadvertised_binding): New constant.
3135 (syms_of_keymap): Initialize it.
3136 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3137 if applicable.
3138
19f48442
SM
31392009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3140
50d4ba39
SM
3141 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3142 (parse_menu_item): Streamline since bindings are recomputed all the
3143 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3144 more and don't support lmenu's menu-alias any more either.
3145
a88a5372
SM
3146 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3147 (where_is_internal): Strip it down to only traverse the keymaps.
3148 Move the cache handling from Fwhere_is_internal to here.
3149 (Fwhere_is_internal): Move the handling of remapping and the choice of
3150 the best binding from where_is_internal to here.
3151 Unify the cached/noncached paths, so remapping is also handled
3152 correctly when the cache is used, and so the cache can be used to
3153 speed up remap-handling when applicable.
3154 Give preference to non-remapped bindings.
3155 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3156 non-remapped bindings.
3157 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3158 command remapping.
3159
19f48442
SM
3160 * xdisp.c (display_mode_element): Move list length limit from 50 to
3161 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3162
599498c3 31632009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3164
3165 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3166
f9b7b5ac
SM
31672009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3168
a53af587
JB
3169 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3170 (Bug#4334)
3171
f9b7b5ac
SM
3172 * keymap.c (where_is_internal): Filter out shadowed remappings.
3173 Assume that where_is_internal returns unshadowed bindings to simplify
3174 the code and get rid of the gotos. Use ASIZE.
3175
04f4b72d
JD
31762009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3177
4da146f2
JD
3178 * xterm.c (x_focus_changed): If we get a focusout and pointer
3179 is invisible, make it visible.
3180
04f4b72d
JD
3181 * xterm.h: Remove condition for declaration of
3182 x_*_window_to_frame.
3183
7cef7ce3
SM
31842009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3185
3186 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3187 initial terminal as well.
3188
a54fa5b7
JD
31892009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3190
3191 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3192 x_menubar_window_to_frame.
a54fa5b7 3193
50426a04 3194 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3195 (XTmouse_position): Do not return valid positions
3196 for clicks in the menubar and the toolbar for Gtk+.
3197
3198 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3199 if the widget for the event has the same top level as a frame,
3200 return the frame.
3201 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3202 internal windows, bug #4122.
3203 (x_non_menubar_window_to_frame): Remove.
3204
5a021dd0
GM
32052009-09-02 Glenn Morris <rgm@gnu.org>
3206
3207 * buffer.c (default-major-mode): Move most of the doc from here...
3208 (major-mode): ... to here.
3209
548fe2f3
NR
32102009-08-30 Nick Roberts <nickrob@snap.net.nz>
3211
3212 * process.c (wait_reading_process_output): Keep the descriptor
3213 when pty is used by a non-child process, e.g., in I/O buffer of
3214 GDB this allows inferior to be restarted.
3215
e0840eef
EZ
32162009-08-29 Eli Zaretskii <eliz@gnu.org>
3217
3218 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3219 both branches into one.
3220
82e98df4
SM
32212009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3222
3223 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3224 (main): Use enable-multibyte-characters rather than
3225 default-enable-multibyte-characters. Output a warning message when
3226 running a unibyte session.
3227
890617cb
YM
32282009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3229
3230 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3231 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3232 (copy_data_segment): Also copy __program_vars section.
3233 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3234 (dump_it) [LC_DYLD_INFO]: Use it.
3235
3236 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3237
e7adeadc
EZ
32382009-08-28 Eli Zaretskii <eliz@gnu.org>
3239
3240 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3241 $(SRC)/buildobj.h.
3242 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3243 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3244 $(SRC)/buildobj.h.
3245 (clean): Add buildobj.h.
3246
3ed8bbdc
TZ
32472009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3248
3249 * print.c (print_object): Set escapeflag to 1 when printing
3250 hashtable keys and values.
3251
155a6764
SM
32522009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3253
3254 * lread.c (read_integer): Use doubles (and potentially return a float
3255 number) as we do in string-to-number.
3256 (read1): Use strtol to read integers, signal errors on strtol's
3257 overflow and use floats if strtol's output is too large for
3258 Elisp integers.
3259
877610de
EZ
32602009-08-27 Eli Zaretskii <eliz@gnu.org>
3261
3262 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3263 (make-buildobj-SH): Fix last change.
3264 (SRC): Move to before where it's first used.
3265
ef73e7be
KH
32662009-08-27 Kenichi Handa <handa@m17n.org>
3267
550c8289
KH
3268 * process.c (send_process): Use encode_coding_object instead of
3269 encode_coding_string to perform eol-conversion even if the string
3270 is unibyte.
3271
60afa08d
KH
3272 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3273 character.
3274
ef73e7be 3275 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3276 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3277
7b3a82d7
DN
32782009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3279
5654bf63
DN
3280 * callproc.c (Fcall_process): Remove always true #if.
3281
7b3a82d7
DN
3282 * lisp.h: Replace #if 0 code for checking with text pointing to
3283 the --enable-checking configure flag.
3284
3285 * emacs.c (main): Mention the --enable-profiling configure flag
3286 instead of using CFLAGS.
3287
878bde49
KR
32882009-08-26 Ken Raeburn <raeburn@raeburn.org>
3289
3290 * Makefile.in (buildobj.h): New target.
3291 (doc.o): Depend on it.
3292 (temacs${EXEEXT}): Don't generate buildobj.lst.
3293 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3294 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3295 ($(BLD)/doc.$(O)): Depend on it.
3296 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3297 provided by Eli Zaretskii.)
3298 ($(TEMACS)): Don't generate buildobj.lst.
3299 * doc.c: Include buildobj.h.
3300 (buildobj): New static variable.
3301 (Fsnarf_documentation): Use it, instead of opening and reading
3302 buildobj.lst.
3303
1574224c
MA
33042009-08-25 Michael Albinus <michael.albinus@gmx.de>
3305
3306 * dbusbind.c (Fdbus_call_method)
3307 (Fdbus_call_method_asynchronously): Use English numeric format for
3308 timeout values in doc string.
3309
d9da2f45
KH
33102009-08-25 Kenichi Handa <handa@m17n.org>
3311
ef73e7be
KH
3312 * alloc.c (mark_char_table): New function.
3313 (mark_object): Use mark_char_table for a char-table.
3314
d9da2f45
KH
3315 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3316 (CHAR_TABLE_REF): Use it.
3317
c8edcc01
KR
33182009-08-23 Ken Raeburn <raeburn@raeburn.org>
3319
3320 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3321 before invoking the newly build emacs to check for load-path
3322 shadowing.
3323
7763401b
GM
33242009-08-22 Glenn Morris <rgm@gnu.org>
3325
3326 * Makefile.in (bootstrap_exe): New variable.
3327 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3328 Use ${bootstrap_exe}.
3329
729eadda
EZ
33302009-08-22 Eli Zaretskii <eliz@gnu.org>
3331
3332 * coding.h (encode_coding_string): Don't encode unibyte strings.
3333 (Bug#4047)
3334
eb4c6ace
MA
33352009-08-22 Michael Albinus <michael.albinus@gmx.de>
3336
3337 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3338
3339 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3340 intended as hotfix only.
3341 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3342
36e34d1b
AR
33432009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3344
3345 * nsterm.m (ns_get_color): Update documentation properly for last
3346 change, and clean up loose ends in the code left by it. Fix
3347 longstanding bug with 16-bit hex parsing, and add support for
3348 yet another X11 format (rgb:r/g/b) for compatibility.
3349 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3350 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3351
f983eb8a
SM
33522009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3353
3354 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3355
3f56d3c6
MA
33562009-08-20 Michael Albinus <michael.albinus@gmx.de>
3357
3358 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3359 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3360 (xd_initialize, xd_pending_messages): Check, whether
3361 $DBUS_SESSION_BUS_ADDRESS is set.
3362
fb641d68
YM
33632009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3364
3365 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3366
3367 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3368
cf59a374
GM
33692009-08-20 Glenn Morris <rgm@gnu.org>
3370
3371 * emacs.c (system-type): Doc fix.
3372
1373f3be
SM
33732009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3374
3375 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3376 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3377
058ed861
MA
33782009-08-18 Michael Albinus <michael.albinus@gmx.de>
3379
1373f3be
SM
3380 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3381 New functions.
058ed861
MA
3382 (xd_initialize): Revert change from 2009-08-16.
3383
563a866e 33842009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3385
3386 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3387 font-group vector, return nil.
5fc05db0 3388
e42bdf01
CY
33892009-08-17 Chong Yidong <cyd@stupidchicken.com>
3390
3391 * process.c (status_notify): Don't perform redisplay.
3392 (Fdelete_process, list_processes_1, process_send_signal):
3393 Expliticly perform redisplay.
3394 (wait_reading_process_output): Always check process status, but
3395 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3396
4230ab74
KR
33972009-08-17 Ken Raeburn <raeburn@raeburn.org>
3398
1373f3be 3399 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3400 (XFLOAT_INIT): New macro for storing a float value.
3401 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3402 * fns.c (sxhash): Copy out the value of a float in order to
3403 examine its bytes.
3404 * dbusbind.c (xd_append_arg): Likewise.
3405
4230ab74
KR
3406 * emacs.c (main): Don't call syms_of_data twice.
3407
a0645cdd
MA
34082009-08-16 Michael Albinus <michael.albinus@gmx.de>
3409
3410 * dbusbind.c (xd_initialize): Add connection file descriptor to
3411 input_wait_mask, in order to let select() detect, whether a new
3412 message has been arrived.
ca4f31ea 3413 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3414
485db0ba
MA
34152009-08-15 Michael Albinus <michael.albinus@gmx.de>
3416
1373f3be
SM
3417 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3418 New functions.
485db0ba
MA
3419
3420 * lisp.h (xd_pending_messages): Declare.
3421
3422 * keyboard.c (readable_events): Call xd_pending_messages.
3423
b5b98ff4
CY
34242009-08-15 Chong Yidong <cyd@stupidchicken.com>
3425
1373f3be 3426 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3427
f8354c6e
CY
3428 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3429
b5b98ff4
CY
3430 * buffer.c (set_buffer_internal_1)
3431 (swap_out_buffer_local_variables): Check for unbound local
3432 variables (Bug#4138).
3433
8b9fc636
EZ
34342009-08-14 Eli Zaretskii <eliz@gnu.org>
3435
3436 * process.c (create_pty): Fix last change.
3437
ce959360
CY
34382009-08-13 Chong Yidong <cyd@stupidchicken.com>
3439
3440 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3441 (xbm_load_image): Caller changed.
64b807c9 3442 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3443
c7baf7e9
NR
34442009-08-13 Nick Roberts <nickrob@snap.net.nz>
3445
3446 * process.c (create_pty): New function.
3447 (Fstart_process): Use it to allow Emacs to just associate a pty
3448 with the buffer. See associated change in gdb-mi.el.
3449 (list_processes_1): Deal with no program name.
3450 (start_process_unwind): Use pid == -2 to mean no process.
3451
1ac9108a
SM
34522009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3453
3454 * cmds.c (nonundocount): New global variable.
3455 (keys_of_cmds): Initialize it.
3456 (Fself_insert_command): Use it to combine upto 20 sequential chars
3457 into a single undo entry, just like the Qself_insert_command code in
3458 keyboard.c does.
3459 Call frame_make_pointer_invisible, also like the Qself_insert_command
3460 code in keyboard.c does.
3461 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3462 than its own local replacement for it.
3463
e267324c
KR
34642009-08-10 Ken Raeburn <raeburn@raeburn.org>
3465
1ac9108a 3466 * fns.c (concat): Don't re-set string length to its current value.
77437343 3467
1ac9108a
SM
3468 * coding.h (decode_coding_string, encode_coding_string):
3469 Use SBYTES macro.
f0bed503 3470
1ac9108a 3471 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3472 (doprnt): Merge with doprnt1, discarding lispstrings code.
3473 * lisp.h (doprnt_lisp): Don't declare.
3474
416e006d
JL
34752009-08-07 Juri Linkov <juri@jurta.org>
3476
3477 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3478
6f7d5780
DN
34792009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3480
3481 * print.c (syms_of_print): Undo previous change.
3482
f19a0f5b
TZ
34832009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3484
3485 * lread.c (read1, syms_of_lread): Read hashtables back from the
3486 readable format.
3487
3488 * print.c (print_preprocess, print_object): Print hashtables fully
3489 and readably.
3490 (syms_of_print): Provide 'hashtable-print-readable.
3491
b9173dc2
AR
34922009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3493
3494 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3495 no family set.
3496 (nsfont_open): Handle case when entity has no family.
3497
1586503c
AR
34982009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3499
3500 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3501 element, not a list, for match case.
3502
087048cd
KH
35032009-07-28 Kenichi Handa <handa@m17n.org>
3504
3505 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3506 rigidly.
3507
3508 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3509 font_parse_xlfd. Check font properties more rigidly.
3510
780c2506
DN
35112009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3512
31fd7c5c
JB
3513 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3514 bsd-common.h.
780c2506 3515
a8c0cc18
KH
35162009-07-27 Kenichi Handa <handa@m17n.org>
3517
3518 * xfaces.c (face_with_height): Call font_clear_prop.
3519
4fbe2306
CY
35202009-07-26 Chong Yidong <cyd@stupidchicken.com>
3521
111d9af3
CY
3522 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3523
3524 * xterm.c (x_term_init): Use Qx.
3525
4fbe2306
CY
3526 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3527
1ac9108a 3528 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3529 (ns_get_color): Revert 2009-07-16 change.
3530
beb0b7f9
EZ
35312009-07-25 Eli Zaretskii <eliz@gnu.org>
3532
3533 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3534 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3535
2baf5e76
KR
35362009-07-25 Ken Raeburn <raeburn@raeburn.org>
3537
1ac9108a
SM
3538 * coding.h (decode_coding_string, encode_coding_string):
3539 Use SCHARS macro.
8890e5f5 3540
2baf5e76 3541 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3542 (load_depth): Delete.
2baf5e76
KR
3543 (Qload_in_progress): New variable.
3544 (load_unwind): Don't reference load_depth or load_in_progress.
3545 (Fload): Likewise; specbind Qload_in_progress instead.
3546 (init_lread): Don't initialize load_depth.
3547 (syms_of_lread): Initialize and protect Qload_in_progress.
3548
1395c6f5
AR
35492009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3550
3551 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3552
4e2f36cf
AR
35532009-07-23 Yavor Doganov <yavor@gnu.org>
3554
3555 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3556
5dd9a6f7
AR
35572009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3558
3559 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3560 Bugs 3792, 3720, 2402.
3561 (ns_lookup_indexed_color): Check for bad index.
3562 (ns_index_color): Init unused slot to 0.
3563 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3564 Bug 3714, possibly 3082.
5dd9a6f7 3565
c902b920
JR
35662009-07-22 Jason Rumney <jasonr@gnu.org>
3567
1ac9108a
SM
3568 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3569 Position IME window at cursor (Bug#2570).
c902b920
JR
3570 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3571 (globals_of_w32fns): Dynamically load functions required above.
3572
3573 * w32term.c (w32_draw_window_cursor): Send message to reposition
3574 any IME window.
3575
090101cf
CY
35762009-07-21 Chong Yidong <cyd@stupidchicken.com>
3577
3578 * fileio.c: Revert 2009-07-16 changes.
3579 (Vauto_save_include_big_deletions): New variable.
3580 (Fdo_auto_save): Disable auto-save only if
3581 auto-save-include-big-deletions is nil.
3582
e6583e3d
CY
35832009-07-21 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3586 the overflowed pixels into account (Bug#3879).
3587
ece435a5
KR
35882009-07-21 Ken Raeburn <raeburn@raeburn.org>
3589
3590 * lread.c (load_depth): New variable.
3591 (Fload, load_unwind, init_lread): Set it to the load recursion
3592 depth; set load_in_progress as a simple boolean based on the
3593 current load_depth. (Bug#3892)
3594
40b2d973
AR
35952009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3596
3597 * nsfont.m (ns_has_attribute): Remove.
3598 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3599
10be7e0d
JL
36002009-07-18 Juri Linkov <juri@jurta.org>
3601
3602 * process.c (Fset_process_query_on_exit_flag): Mention killing
3603 a buffer in docstring.
3604
fa055055
KH
36052009-07-17 Kenichi Handa <handa@m17n.org>
3606
3607 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3608
042f7b69
YM
36092009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3610
3611 * nsfns.m (Fns_set_alpha): Remove function.
3612 (syms_of_nsfns): Don't defsubr it.
3613
3614 * nsterm.m (ns_get_color): Remove incompatible color formats.
3615 (ns_color_to_lisp): Generate #rrggbb color format string.
3616
4be941e3
RS
36172009-07-16 Richard Stallman <rms@gnu.org>
3618
3619 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3620 (Fset_buffer_auto_saved): Handle save_length = -2.
3621
4e6b227d
CY
36222009-07-16 Chong Yidong <cyd@stupidchicken.com>
3623
3624 * xterm.c (Qx_gtk_map_stock): New var.
3625
3626 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3627 of calling intern each time.
3628
a1856973
YM
36292009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3630
3631 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3632 does tiling.
3633
3634 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3635
497e54d8
KH
36362009-07-14 Kenichi Handa <handa@m17n.org>
3637
72d36834
KH
3638 * font.c (font_vconcat_entity_vectors): New function.
3639 (struct font_sort_data): New member font_driver_preference.
3640 (font_compare): Check font_driver_preference.
3641 (font_sort_entities): The format of the first argument changed.
3642 (font_delete_unmatched): Likewise.
3643 (font_list_entities): The return type changed.
3644 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3645 (font_find_for_lface): Adjuste for the above changes.
3646 Don't suppress the checking of C even if the repertory supports it.
3647 (Flist_fonts): Adjust for the above changes.
72d36834 3648
1ac9108a
SM
3649 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3650 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3651 Reject a font who has adstyle property that is different from a
3652 langname derived from registry property.
1ac9108a 3653 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3654
b6046155
EZ
36552009-07-13 Eli Zaretskii <eliz@gnu.org>
3656
3657 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3658 local copy of dirfilename.
3659
fb6b6049
KH
36602009-07-13 Kenichi Handa <handa@m17n.org>
3661
e2402a5e
KH
3662 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3663 against max_char.
3664
fb6b6049
KH
3665 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3666 calling XSYMBOL (sym).
3667
65156807
EZ
36682009-07-11 Eli Zaretskii <eliz@gnu.org>
3669
1ac9108a
SM
3670 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3671 New function.
3672 (directory_files_internal) [WINDOWSNT]:
3673 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3674 the filesystem of the directory is fast or slow.
3675
3676 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3677 file name.
3678 (is_slow_fs): New function.
3679 (stat): Use it to determine whether to issue more system calls to
3680 get accurate file attributes, when w32-get-true-file-attributes is
3681 `local'.
3682
e0ab5fcf
JD
36832009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3684
3685 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3686 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3687 parameter font-parameter as default to the font dialog.
3688
784ceded
KH
36892009-07-10 Kenichi Handa <handa@m17n.org>
3690
3691 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3692
fb8edc0b
EZ
36932009-07-09 Eli Zaretskii <eliz@gnu.org>
3694
1ac9108a 3695 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3696
fb8edc0b
EZ
3697 * w32.c (stat): Treat UNC file names as residing on remote
3698 drives. (Bug#3542)
3699
635c75b1
KH
37002009-07-09 Kenichi Handa <handa@m17n.org>
3701
3702 * fontset.c (fontset_find_font): Fix previous change.
3703
c1d5ce94
MA
37042009-07-08 Michael Albinus <michael.albinus@gmx.de>
3705
3706 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3707 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3708 error flag.
3709
edb61b39
KH
37102009-07-08 Kenichi Handa <handa@m17n.org>
3711
374bf7e4
KH
3712 * fontset.c (fontset_find_font): Fix the logic of handling
3713 charset_matched.
3714 (font_for_char): Delete unused var.
3715 (generate_ascii_font_name): Delete it.
3716
edb61b39
KH
3717 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3718
3719 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3720 (encode_coding_sjis): Fix the code range check.
3721
0f3f018c
CY
37222009-07-07 Chong Yidong <cyd@stupidchicken.com>
3723
3724 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3725 (Fexpand_file_name): Copy string data properly (Bug#3772).
3726
fcaf6f3a
JD
37272009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3728
3729 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3730 first MapNotify.
3731
6809ca75
KH
37322009-07-07 Kenichi Handa <handa@m17n.org>
3733
3734 * character.h (unibyte_has_multibyte_table): Delete extern.
3735 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3736
3737 * charset.c (Fset_charset_priority): Update charset_unibyte.
3738 (syms_of_charset): Initialize charset_unibyte.
3739
3740 * character.c (unibyte_has_multibyte_table): Delete it.
3741 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3742 charset_unibyte.
3743 (multibyte_char_to_unibyte_safe): Likewise.
3744 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3745
1ac9108a 3746 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3747 (x_produce_glyphs): Likewise.
3748
3749 * .gdbinit (xcharset): Fix the treating $arg0.
3750
ad9e2d54
EZ
37512009-07-04 Eli Zaretskii <eliz@gnu.org>
3752
3753 Emulation of `getloadavg' on MS-Windows.
50426a04 3754 * w32.c: Include float.h.
ad9e2d54
EZ
3755 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3756 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3757 (get_native_system_info, get_system_times): New functions.
3758 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3759 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3760 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3761 g_b_init_get_system_times, and num_of_processors.
3762
0a3472c7
JR
37632009-07-03 Jason Rumney <jasonr@gnu.org>
3764
3765 * w32term.c (w32_initialize): Use standard types.
3766
80904120
EZ
37672009-07-03 Eli Zaretskii <eliz@gnu.org>
3768
3769 * dired.c (Ffile_attributes): Decode user and group names by the
3770 locale's encoding. (Bug#3443)
3771
6978862d
DN
37722009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3773
f8d23104
DN
3774 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3775 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3776
3777 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3778
3779 * term.c (init_tty): Remove spurious #ifdef.
3780
6978862d
DN
3781 * m/mips.h: Mention this file is also used for netbsd.
3782 * m/pmax.h: Remove file.
3783
e044e4fc
JD
37842009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3785
3786 * xterm.h (struct x_display_info): Add invisible_cursor.
3787 (struct x_output): Add current_cursor.
3788
3789 * xterm.c (XTtoggle_invisible_pointer): New function.
3790 (x_define_frame_cursor): Don't define cursor if invisible or the
3791 same as before. Set current_cursor.
3792 (x_create_terminal): Set toggle_invisible_pointer_hook.
3793
3794 * xfns.c (make_invisible_cursor): New function.
3795 (x_set_mouse_color): Call make_invisible_cursor.
3796 Set current_cursor.
3797 (x_window): Set current_cursor.
3798
3799 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3800
3801 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3802 inserting a character.
3803 (read_avail_input): Call frame_make_pointer_visible.
3804
3805 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3806 (frame_make_pointer_invisible, frame_make_pointer_visible):
3807 New functions.
e044e4fc
JD
3808 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3809
3810 * frame.h: Declare frame_make_pointer_invisible and
3811 frame_make_pointer_visible.
3812 (struct frame): Add pointer_invisible.
3813
574c8efa
JD
38142009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3815
7b507248
JD
3816 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3817 frame isn't visible.
3818 (xg_frame_resized): If width/height is -1, get size of window
3819 from X server.
3820
3821 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3822 for MapNotify.
3823
835bdaa7 3824 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3825 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3826 (flush_and_sync): Reintroduce.
574c8efa 3827
3f1c6666 38282009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3829
31fd7c5c 3830 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3831
3832 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3833 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3834
3835 * frame.h: Declare Qsticky.
3836
cad9ef74
JD
3837 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3838
3839 * nsfns.m (ns_frame_parm_handlers): Ditto.
3840
3841 * frame.c: Declare Qsticky.
3842 (frame_parms): Add sticky.
3843
3844 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3845
3846 * xterm.h: Declare x_set_sticky.
3847
3848 * xterm.c (x_set_sticky): New function.
3849
69b16610
JD
3850 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3851 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3852 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3853
3854 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3855
3856 * frame.c: Qmaximized is new.
3857 (x_set_frame_parameters): Do not handle fullscreen specially.
3858 Only set width and height if explicitly set.
3859 (x_set_fullscreen): Handle Qmaximized.
3860 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3861 (syms_of_frame): Initialize Qmaximized.
3862
1ac9108a
SM
3863 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3864 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3865
3866 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3867 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3868 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3869 set gravity to NorthWestGravity when USE_GTK.
3870 (set_wm_state): New function.
31fd7c5c 3871 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3872 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3873 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3874 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3875 to x_real_positions and x_fullscreen_adjust.
3876
3877 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3878 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3879 flush_and_sync.
3880 (xg_height_changed): New function.
3881 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3882 and gtk_window_set_policy. Set frame gravity after parsing the
3883 geometry string.
3f1c6666
JD
3884 (xg_update_frame_menubar, free_frame_menubar)
3885 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3886 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3887 Remove calls to xg_frame_set_char_size.
3888
fd503d99
KH
38892009-07-01 Kenichi Handa <handa@m17n.org>
3890
3891 * keyboard.c (decode_keyboard_code): New function.
3892 (tty_read_avail_input): Decode the input bytes if necessary.
3893
1ac9108a
SM
3894 * coding.c (setup_coding_system):
3895 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3896 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3897 use Qno_conversion.
3898
24ed93fb
YM
38992009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3900
3901 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3902
99061dfc
CY
39032009-06-30 Chong Yidong <cyd@stupidchicken.com>
3904
1ac9108a 3905 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3906
ff90fbde
JR
39072009-06-30 Jason Rumney <jasonr@gnu.org>
3908
3909 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3910 is already loaded.
3911 Set user model ID if supported (bug#1849).
3912
5f445726
JM
39132009-06-29 Jim Meyering <meyering@redhat.com>
3914
3915 Remove useless if-before-xfree test.
3916 * nsfont.m (nsfont_close): Remove useless test.
3917 * term.c (delete_tty): Likewise.
3918 * w32.c (system_process_attributes): Likewise.
3919 * w32font.c (w32font_close): Likewise.
3920 * xfaces.c (x_free_gc): Likewise.
3921 * xselect.c (buffer): Likewise.
3922
b9607587
AS
39232009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3924
3925 * process.c (send_process): Keep decoded string in a local
3926 variable and protect it from GC. (Bug#3521)
3927
89ba96f4
EZ
39282009-06-28 Eli Zaretskii <eliz@gnu.org>
3929
3930 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3931 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3932
098a1589
CY
39332009-06-28 Chong Yidong <cyd@stupidchicken.com>
3934
485422be
CY
3935 * xdisp.c (start_display, handle_face_prop)
3936 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3937 (redisplay_window, try_window_id, produce_image_glyph):
3938 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3939
098a1589
CY
3940 * xterm.c (x_update_window_begin, x_new_focus_frame)
3941 (x_scroll_bar_handle_click, handle_one_xevent)
3942 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3943 (x_make_frame_visible, x_make_frame_invisible)
3944 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3945 code chunks that are now obsolete.
3946
78c38319
MA
39472009-06-28 Michael Albinus <michael.albinus@gmx.de>
3948
3949 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3950 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3951 for hours, when optimzation is enabled.
3952 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3953 (xd_read_message): Make them static.
3954
4189ed40
CY
39552009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3956
3957 * term.c (turn_on_face): Allow simultaneously bold and dim
3958 terminal faces (Bug#3530).
3959
cd9b5e16
CY
39602009-06-27 Chong Yidong <cyd@stupidchicken.com>
3961
4e23bedb
CY
3962 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3963
cd9b5e16
CY
3964 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3965 truncation glyphs (Bug#3686).
3966
07cc3c35
GM
39672009-06-27 Glenn Morris <rgm@gnu.org>
3968
3969 * m/pmax.h: Restore file, with only netbsd portions.
3970
31fd7c5c 39712009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3972
cd9b5e16 3973 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3974
42d4a64f
KH
39752009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3976
3977 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3978 the arg FORCE_SYMBOL.
3979
930fe55b 39802009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3981
3982 * fontset.c (fontset_find_font): When a usable rfont_def is found
3983 in a fallback font-group, make it the first element of the group.
3984
57ebc3fd
CY
39852009-06-24 Chong Yidong <cyd@stupidchicken.com>
3986
3987 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3988
f084f942
KH
39892009-06-24 Kenichi Handa <handa@m17n.org>
3990
3991 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3992 set for C.
3993 (fontset_font): Record the availability of a font for C both in
3994 the realized fontsets of the current one and the default one.
3995
2f686c87
DN
39962009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3997
3998 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3999 conditional, it is always defined on AIX.
4000
666e158e
MB
40012009-06-23 Miles Bader <miles@gnu.org>
4002
4003 * window.c (Vrecenter_redisplay): New variable.
4004 (syms_of_window): Initialize it.
4005 (Qtty): New extern declaration.
4006 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4007
c6da7cd2
JM
40082009-06-23 Jim Meyering <meyering@redhat.com>
4009
1ac9108a
SM
4010 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4011 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4012 pointer dereferences are guaranteed to be valid.
c6da7cd2 4013
678dca3d
KH
40142009-06-23 Kenichi Handa <handa@m17n.org>
4015
74d75424
KH
4016 * emacs.c (main): Call init_font ().
4017
4018 * font.h (Vfont_log): Extern it.
4019 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4020
4021 * font.c (font_sort_entities, font_list_entities)
4022 (font_matching_entity, font_open_entity)
4023 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4024 (Vfont_log): Delete static.
4025 (font_log_env_checked): Delete this variable.
4026 (font_add_log): Don't check font_log_env_checked.
4027 (font_deferred_log): Check Vfont_log.
4028 (init_font): New function.
4029
678dca3d
KH
4030 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4031
4032 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4033
4034 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4035
4036 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4037
4038 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4039 (face_for_char): Don't call font_deferred_log here.
4040 (font_for_char): Likewise.
4041
8a668709
CY
40422009-06-22 Chong Yidong <cyd@stupidchicken.com>
4043
9a01ee33
CY
4044 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4045 rather than its background_width for drawing the overline and
4046 underline (Bug#489).
4047
4048 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4049 rather than its background_width for drawing the overline and
4050 underline (Bug#489).
ec7c9926
CY
4051 (xg_default_icon_file): New variable.
4052 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4053 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4054
8a668709
CY
4055 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4056 (load_overlay_strings): Remove externs.
4057 (fast_find_position): Function deleted.
4058 (mouse_face_from_buffer_pos): New function, based on
4059 fast_find_position. Correctly handle before-strings,
4060 display-strings, and after-strings (Bug#1220).
4061 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4062
4d4c02d8
CY
40632009-06-21 Chong Yidong <cyd@stupidchicken.com>
4064
1ac9108a 4065 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4066 (move_it_in_display_line_to, move_it_in_display_line_to)
4067 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4068
70243478
CY
40692009-06-21 Chong Yidong <cyd@stupidchicken.com>
4070
4071 * Branch for 23.1.
4072
13087e59
JR
40732009-06-21 Jason Rumney <jasonr@gnu.org>
4074
4075 * w32term.c (keyboard_codepage): New static variable.
4076 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4077 (w32_read_socket) [WM_CHAR]: Use it to decode character
4078 input (bug#3237).
4079 (w32_initialize): Initialize it.
4080 (codepage_for_locale): New function.
4081
4735b74e
KR
40822009-06-20 Ken Raeburn <raeburn@raeburn.org>
4083
4084 * process.c (status_message): Pass Faset index argument as a lisp
4085 object, so as to work with USE_LISP_UNION_TYPE.
4086
0e727afa
YM
40872009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4088
4089 * coding.c (Ffind_coding_systems_region_internal):
4090 Cache checked characters.
4091
cf299835
KH
40922009-06-18 Kenichi Handa <handa@m17n.org>
4093
1ac9108a 4094 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4095
90f20d94
AS
40962009-06-18 Andreas Schwab <aschwab@redhat.com>
4097
4098 * xdisp.c (redisplay_internal): Check that the frame is still
4099 live after redisplay of its windows.
4100 (redisplay_windows): Check that the window is still live.
4101
7f1faf1c
KH
41022009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4103
4104 * coding.c (detect_coding_utf_16): Fix previous change.
4105
cc13543e
KH
41062009-06-16 Kenichi Handa <handa@m17n.org>
4107
4108 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4109 UTF-16 by checking the dispersion of Eth and Oth bytes.
4110
977b85f4
AS
41112009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4112
4113 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4114
66bd43d1
KH
41152009-06-15 Kenichi Handa <handa@m17n.org>
4116
4117 * process.c (status_message): Fix previous change. Be sure to
4118 decode a localized string.
4119
cb5ca9c5
YM
41202009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4121
4122 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4123 add comment explaining why.
4124
ec7709ba 41252009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4126
ec7709ba 4127 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4128
4b7f335c
AR
41292009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4130
4131 * nsfont.m (ns_attribute_value): Remove.
4132 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4133 (ns_has_attribute): Shrink the normal range.
4134 (ns_findfonts): Don't worry about requested spec in determining
4135 need for synthItal.
e41820ee 4136 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4137
73b26103
SZ
41382009-06-14 Seiji Zenitani <zenitani@mac.com>
4139
4140 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4141
5753e4da
KH
41422009-06-11 Kenichi Handa <handa@m17n.org>
4143
4144 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4145 overhang for the static composition case.
4146
3561b671
KH
41472009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4148
5753e4da
KH
4149 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4150 overhang for the automatic composition case.
4151
3561b671
KH
4152 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4153 composition case.
4154
852bbd41
CY
41552009-06-10 Chong Yidong <cyd@stupidchicken.com>
4156
4157 * xdisp.c (get_next_display_element): When handling wrap-prefix
4158 and line-prefix, treat \n as a control character (bug#3502).
4159
9903d1e6
KH
41602009-06-10 Kenichi Handa <handa@m17n.org>
4161
4162 * font.c (font_parse_family_registry): Fix for one-char foundry.
4163 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4164
0bcbaaaa
CY
41652009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4166
4167 * process.c (status_message): Fix handling of multibyte signal
4168 string (Bug#3499).
4169
40aa3f13
JM
41702009-06-09 Jim Meyering <meyering@redhat.com>
4171
1f80c7e2
CY
4172 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4173 color name is missing.
40aa3f13 4174
72d51285
KH
41752009-06-09 Kenichi Handa <handa@m17n.org>
4176
4177 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4178 FROM-CODE and TO-CODE are codepoints of CHARSET.
4179
c1d04d84
AR
41802009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4181
4182 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4183
41842009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4185
4186 Changes to support :script/:lang/:otf in NS font driver.
4187 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4188 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4189 indicate not part of font driver interface, and change callers.
4190 (ns_get_family): Remove pointless null check.
4191 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4192 ns_spec_to_descriptor, ns_descriptor_to_entity.
4193 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4194 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4195 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4196 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4197 (ns_get_req_script, ns_accumulate_script_ranges)
4198 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4199 New functions.
4200 (nsfont_list, nsfont_match): Use ns_findfonts.
4201 (nsfont_open): Use font descriptor instead of traits.
4202 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4203 (dump_glyphstring): Rename to ns_dump_glyphstring.
4204
c7eb9816
AR
4205 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4206
c1d04d84
AR
4207 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4208
4209 * fontset.c (fontset_from_font): Remove NS-specific code.
4210
ec7709ba 42112009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4212
4213 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4214 nonactive windows.
4215
31fd7c5c 42162009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4217
1ac9108a 4218 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4219
68852c13 42202009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4221
4222 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4223
6756cd1d
CY
42242009-06-07 Chong Yidong <cyd@stupidchicken.com>
4225
4226 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4227 account for the overflowing of newlines into the last glyph on the
4228 display line (Bug#3482).
4229
28bf482a
DR
42302009-06-05 David Reitter <david.reitter@gmail.com>
4231
ec7709ba
JB
4232 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4233 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4234 Fns_selection_exists_p, Fns_selection_owner_p.
4235
fdb55376
JR
42362009-06-03 Jason Rumney <jasonr@gnu.org>
4237
4238 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4239 available. (Bug#3379)
4240
05129fbe
KH
42412009-05-29 Kenichi Handa <handa@m17n.org>
4242
1ac9108a
SM
4243 * coding.c (get_translation_table):
4244 Check Venable_character_translation.
05129fbe 4245
ec7709ba 42462009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4247
ec7709ba
JB
4248 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4249 (x_make_frame_visible): Move frame to front rather than calling
15891144 4250 ns_raise_frame().
ec7709ba 4251 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4252 isn't key window.
ec7709ba 4253 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4254 drawRect may be called by NSView even if the frame is hidden.
4255
ec7709ba
JB
4256 * nsfns.m (Fx_create_frame): Follow other ports in
4257 determining visibility; default to t. Ensure async_visible is set.
15891144 4258
21f73755
EZ
42592009-05-23 Eli Zaretskii <eliz@gnu.org>
4260
4261 * dired.c (Ffile_attributes): Doc fix.
4262
34001e41
CY
42632009-05-22 Chong Yidong <cyd@stupidchicken.com>
4264
4265 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4266
46306a17
SM
42672009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4268
4269 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4270 and xfont_scratch_props.
4271 (syms_of_xfont): Do it here instead.
4272 (xfont_find_ccl_program): Delete, unused.
4273 (xfont_open): Delete unused var `i'.
4274
ef6e0694
KH
42752009-05-21 Kenichi Handa <handa@m17n.org>
4276
4277 * fontset.c (Qlatin): Don't make it static.
4278
46306a17
SM
4279 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4280 New functions.
ef6e0694
KH
4281 (xfont_scripts_cache, xfont_scratch_props): New variables.
4282 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4283 (xfont_list_pattern): Argument changed. Callers changed.
4284 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4285 (xfont_list): Don't reject a font spec with :script property.
4286 (xfont_has_char): Fix setting of encoding.
4287 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4288 xfont_scratch_props.
4289
42902009-05-19 Kenichi Handa <handa@m17n.org>
4291
46306a17 4292 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4293 Callers changed.
4294
42952009-05-18 Kenichi Handa <handa@m17n.org>
4296
4297 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4298
ac71ced7
SM
42992009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4300
4301 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4302 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4303
1c6d1051
YM
43042009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4305
4306 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4307 (x_delete_terminal): Dissociate resource database from display and
4308 then call XrmDestroyDatabase before closing display.
4309
9b9b779c
AR
43102009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4311
4312 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4313 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4314 whether selected frame is viable before raising it (based on patch
4315 by David Reitter), and improve commentary.
4316 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4317
cccd42d5
KH
43182009-05-15 Kenichi Handa <handa@m17n.org>
4319
4320 * font.c (Ffont_spec): Check arguments.
4321
337fbd17
CY
43222009-05-14 Chong Yidong <cyd@stupidchicken.com>
4323
4324 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4325 weight when testing attributes (Bug#3282).
4326
47a6002f
JD
43272009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4328
4329 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4330 what we expect to get in the next ConfigureNotify event.
4331
9cb363db
YM
4332 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4333 before Xft one (Bug#1696).
4334
b9126609
CY
43352009-05-07 David Reitter <david.reitter@gmail.com>
4336
4337 * nsfns.m (Fx_display_planes): Compute bitplanes using
4338 NSBitsPerPixelFromDepth (Bug#3207).
4339
27a69fd9
CY
43402009-05-10 Chong Yidong <cyd@stupidchicken.com>
4341
4342 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4343
00f37552
TTN
43442009-05-10 Ulrich Mueller <ulm@gentoo.org>
4345
4346 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4347
2d82a920
DR
43482009-05-07 David Reitter <david.reitter@gmail.com>
4349
ec7709ba
JB
4350 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4351 Respect mouse face background.
2d82a920 4352
46b0d52d
DR
43532009-05-07 David Reitter <david.reitter@gmail.com>
4354
ec7709ba
JB
4355 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4356 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4357 in ns_update_begin and ns_update_end.
4358
ce1b23bb
SM
43592009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4360
5996e1b7
SM
4361 * nsfns.m (ns_get_screen): Rewrite.
4362 Don't presume selected-frame is of type `ns'.
4363
ba98e3a0
SM
4364 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4365 all drivers.
4366
ce1b23bb
SM
4367 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4368
bcda200f
YM
43692009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4370
4371 * keyboard.h (add_user_signal): Fix typo in extern.
4372
4373 * lisp.h (add_user_signal): Remove extern.
4374
4375 * unexelf.c (unexec): Consider a section to precede the .bss section
4376 if its addresses overlap that of .bss.
4377 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4378 instead of dumping process.
4379
864660a2
SM
43802009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4381
4382 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4383
50da4e56
SM
43842009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4385
4386 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4387
51520a1a
DN
43882009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4389
4390 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4391 any statements.
4392
409ea3a1
AS
43932009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4394
59c4c60f
AS
4395 * process.c (read_process_output): Make sure the current buffer is
4396 always restored.
4397
409ea3a1
AS
4398 * coding.c (record_conversion_result): Don't modify
4399 Vlast_code_conversion_error for successful result.
4400 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4401
56f00ed2
KH
44022009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4403
4404 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4405 (load_charset_map): Remove unnecessary code.
56f00ed2 4406
4491c9d2
DR
44072009-04-30 David Reitter <david.reitter@gmail.com>
4408
35f5b128 4409 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4410 through f24.
4411
6970f632
CY
44122009-04-30 Chong Yidong <cyd@stupidchicken.com>
4413
4414 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4415
4416 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4417 face_at_buffer_position.
4418 (face_before_or_after_it_pos, get_next_display_element)
4419 (note_mouse_highlight): Update face_at_buffer_position call.
4420
4421 * term.c (term_mouse_highlight):
4422 * msdos.c (IT_note_mouse_highlight):
4423 * fontset.c (Finternal_char_font):
35f5b128 4424 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4425
4426 * dispextern.h (face_at_buffer_position): Update prototype.
4427
0c616f63
KH
44282009-04-30 Kenichi Handa <handa@m17n.org>
4429
35f5b128 4430 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4431
ad3aaf33
AS
44322009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4433
4434 * callproc.c (Fcall_process): Fix GC protection. Make sure
4435 current buffer is always restored.
4436
c3c963a0
YM
44372009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4438
4439 * atimer.c (init_atimer): Also clear stopped_atimers.
4440
4441 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4442
7e3386cb
YM
4443 * process.c (create_process): Clean up merger residues of
4444 2008-07-17 change.
4445
91f68422
CY
44462009-04-29 Ulrich Mueller <ulm@gentoo.org>
4447
4448 * lread.c (Vread_circle): New variable.
4449 (read1): Disable recursive read if Vread_circle is nil.
4450
24b34550
KH
44512009-04-29 Kenichi Handa <handa@m17n.org>
4452
4453 * fontset.h (set_default_ascii_font): Delete extern.
4454
4455 * fontset.c (set_default_ascii_font): Delete this unused function.
4456
4457 * frame.c (x_set_font): When ARG is a font-object, check if the
4458 font-object matches with the ASCII font-spec of the frame's
9c358bda 4459 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4460
77bf07e1
AS
44612009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4462
4463 * fns.c (Flocale_info): Protect vector from GC during decoding.
4464
4465 * process.c (Fstart_process): Protect argv strings from GC during
4466 encoding.
4467
2c55aacf
AS
44682009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4469
4470 * sysdep.c: Include <ctype.h>.
4471
b892d3c9
DR
44722009-04-27 David Reitter <david.reitter@gmail.com>
4473
35f5b128 4474 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4475 Remove commented-out code.
4476
9d0644c4
JB
44772009-04-26 Johan Bockgård <bojohan@gnu.org>
4478
4479 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4480
b7053016
JR
44812009-04-25 Jason Rumney <jasonr@gnu.org>
4482
4483 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4484
4e8231f3
YM
44852009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4486
4487 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4488 Swap bytes in short integer if fringe bitmap width > 8.
4489
493dcf2c
KH
44902009-04-23 Kenichi Handa <handa@m17n.org>
4491
4492 * xfaces.c (Fx_list_fonts): If a font size is specified in
4493 PATTERN, set it in returned scalable fonts.
4494
401e9e57
CY
44952009-04-22 Chong Yidong <cyd@stupidchicken.com>
4496
708e05dc
CY
4497 * keyboard.c (Fset_input_meta_mode): Doc fix.
4498
4499 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4500
1ac9108a 4501 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4502
4503 * coding.c (Fterminal_coding_system): Doc fix.
4504
4505 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4506 (Fx_display_pixel_height, Fx_display_planes)
4507 (Fx_display_color_cells, Fx_server_max_request_size)
4508 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4509 (Fx_display_mm_height, Fx_display_mm_width)
4510 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4511 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4512 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4513 (check_x_display_info): Handle terminal objects instead of
4514 terminal ids.
4515
401e9e57
CY
4516 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4517 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4518 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4519 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4520
df80c7f0
KH
45212009-04-21 Kenichi Handa <handa@m17n.org>
4522
5a8f12af 4523 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4524 (font_score): Check AVGWIDTH too.
908567ef 4525
df80c7f0
KH
4526 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4527 worst case.
1ac9108a
SM
4528 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4529 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4530
705af33f
JR
45312009-04-19 Jason Rumney <jasonr@gnu.org>
4532
4533 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4534 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4535
4536 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4537 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4538 get_phys_cursor_geometry.
4539
b71ac3dd 4540 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4541 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4542 using get_phys_cursor_geometry.
4543
4544 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4545 correctly calculated.
4546
dc2933eb
JD
45472009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4548
1ac9108a
SM
4549 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4550 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4551 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4552 is deprecated.
4553
973e7849
AS
45542009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4555
4556 * font.c (font_put_frame_data): Use xfree instead of free.
4557
314d66f4
JB
45582009-04-17 Juanma Barranquero <lekktu@gmail.com>
4559
4560 * w32font.c (Qja, Qko): Remove declarations.
4561 (syms_of_w32font): Don't DEFSYM them.
4562
cf702558
CY
45632009-04-17 Chong Yidong <cyd@stupidchicken.com>
4564
4565 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4566
4567 * font.h (Qja, Qko): Extern them.
4568
4569 * ftfont.c (Qja, Qko): Remove declarations.
4570
4571 * xfont.c (Qja, Qko): Remove declarations.
4572
b50504f5
KH
45732009-04-17 Kenichi Handa <handa@m17n.org>
4574
bde25748
KH
4575 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4576 string from a vector to handle Latin-1 characters correctly.
4577
b50504f5
KH
4578 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4579 entity even if the cache hits.
4580
f4646fff
AS
45812009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4582
4583 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4584 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4585
e7deaab0
AS
4586 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4587 * lisp.h: Adjust prototypes.
4588
0a0e7d49
CY
45892009-04-16 Chong Yidong <cyd@stupidchicken.com>
4590
4591 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4592 change (Bug#3003).
4593
3c908a57
KH
45942009-04-16 Kenichi Handa <handa@m17n.org>
4595
1ac9108a 4596 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4597
4598 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4599 adstyle.
4600
4601 * ftfont.c (Qja, Qko): Don't make them static.
4602 (enum ftfont_cache_for): New enum.
4603 (fc_charset_table): Undo the previous change.
4604 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4605 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4606 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4607 non-scarable font, try to get AVERAGE_WIDTH.
4608 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4609 Change ft_face_cache from a list of a hash-table. Don't check
4610 `ja' and `ko' adstyle here.
4611 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4612 FTFONT_CACHE_FOR_CHARET.
4613 (ftfont_get_charset): Undo the previous change.
1ac9108a 4614 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4615 (ftfont_close): Likewise.
4616 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4617
4618 * font.c (font_sort_entites): Change the meaning of the arg
4619 BEST-ONLY. Don't optimize for VEC of lenght 1.
4620 (font_select_entity): Just return the value of font_sort_entites.
4621
4622 * xfaces.c (merge_face_vectors): Reflect font properties in
4623 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4624 font_clear_prop if a face attribute doesn't change.
4625
3c908a57
KH
4626 * charset.h (charset_ksc5601): Extern it.
4627
4628 * charset.c (charset_ksc5601): New variable.
4629 (Fdefine_charset_internal): Set charset_ksc5601.
4630 (init_charset_once): Initialize charset_ksc5601 to -1.
4631
d65859c3
DN
46322009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4633
4634 * fileio.c (history_delete_duplicates): Remove unused declaration.
4635
4636 * callint.c (history_delete_duplicates): New declaration.
4637 (Fcall_interactively): Remove command history duplicates when
4638 history_delete_duplicates is true.
4639
3ba010e5
EZ
46402009-04-14 Eli Zaretskii <eliz@gnu.org>
4641
4642 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4643
06f19b91
KH
46442009-04-14 Kenichi Handa <handa@m17n.org>
4645
4646 * font.c (Ffont_info): Fix docstring. Fix the second element of
4647 the returned value (bug#2949).
4648
2cce8bfc
CY
46492009-04-14 Chong Yidong <cyd@stupidchicken.com>
4650
4651 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4652
d156542d
KH
46532009-04-14 Kenichi Handa <handa@m17n.org>
4654
4655 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4656 encoding charset is ascii_compatible.
4657
4658 * charset.c (Fdefine_charset_internal): Make charset
4659 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4660 code_offset is 0, and covers all ASCII characters.
4661
86fa089e
SM
46622009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4663
4664 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4665 (ns_string_to_pasteboard_internal):
4666 * nsmenu.m (process_dialog):
4667 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4668 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4669 * lisp.h (Fx_load_color_file): Declare.
4670
a8a3728b
KH
46712009-04-13 Kenichi Handa <handa@m17n.org>
4672
1ac9108a 4673 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4674 (font_select_entity): Suppress the code to optimize for the same
4675 kind of fonts.
4676 (font_load_for_lface): Get a font that supports at least ASCII
4677 characters.
4678
4679 * ftfont.c (Qja, Qko): New variables.
4680 (fc_charset_table): Delete uniquifier data for iso8859-1.
4681 (ftfont_get_latin1_charset): New function.
4682 (get_adstyle_property): New function.
4683 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4684 bitmap fonts.
4685 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4686 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4687 `ko' or `ja'.
4688 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4689 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4690 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4691 property.
4692 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4693 (syms_of_ftfont): DEFSYM Qja and Qko.
4694
483670b5
KH
46952009-04-09 Kenichi Handa <handa@m17n.org>
4696
12b55765
KH
4697 * charset.c (map_charset_chars): For a charset of `superset'
4698 method, fix calculation of code range.
4699
483670b5
KH
4700 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4701 from the list of extra properties.
4702 (font_clear_prop): Be sure to delete `:name' font property.
4703
57d3b93b
KH
47042009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4705
b4b2c2ca
YM
4706 * dispnew.c (redraw_overlapping_rows): Fix detection of
4707 overlapping for topmost and bottommost rows.
4708
1ac9108a 4709 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4710
472c3609
JR
47112009-04-06 Jason Rumney <jasonr@gnu.org>
4712
4713 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4714
ab193662
KH
47152009-04-06 Kenichi Handa <handa@m17n.org>
4716
4717 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4718
4719 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4720
0c26f026
KH
47212009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4722
4723 * ftfont.c (ftfont_open): Fix checking of the return value of
4724 FT_Load_Char. Fix setting font->underline_thickness.
4725
e173bbce
CY
47262009-04-04 Chong Yidong <cyd@stupidchicken.com>
4727
4728 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4729 (Fterminal_parameters, Fterminal_parameter)
4730 (Fset_terminal_parameter): In doc string, refer to terminal
4731 objects rather than terminal ids.
4732
693a2698
EZ
47332009-04-04 Eli Zaretskii <eliz@gnu.org>
4734
4735 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4736 ret_lim_data. (Bug#2867)
4737
d5221487
CY
47382009-04-03 Chong Yidong <cyd@stupidchicken.com>
4739
4740 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4741 so they don't get wider than the window, matching 2006-01-23
4742 change to the partner function in xdisp.c (Bug#2800).
4743
223509a3
KH
47442009-04-03 Kenichi Handa <handa@m17n.org>
4745
4746 * print.c (print_object): Make each lowest sub_char_table start a
4747 new line (Bug#2866).
4748
74fcd0b1
KH
47492009-04-02 Kenichi Handa <handa@m17n.org>
4750
4751 * fontset.c (fontset_font): Record no-font when a fontset
4752 explicitly tells not to try another font-specs.
4753
c542407d
SM
47542009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4755
4756 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4757
e3869731
KH
47582009-03-30 Kenichi Handa <handa@m17n.org>
4759
d8d2f142
KH
4760 * fontset.c (fontset_from_font): Specify only registry in a
4761 font-spec for all characters supported by that registry.
4762
e3869731
KH
4763 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4764 even if HAVE_M17N_FLT is not defined.
4765
5da5f805
CY
47662009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4767
4768 * ftfont.c: Conditionalize prototyping and use of
4769 ftfont_variation_glyphs.
4770
ab226c50
SM
47712009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4772
9628fed7
SM
4773 * frame.c (delete_frame): Work around compiler bug.
4774
4775 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4776 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4777 Some more EMACS_INT.
4778 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4779
4780 * xdisp.c (dump_glyph): Fix typo.
4781
ae19ba7c
SM
4782 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4783 (adjust_markers_gap_motion, adjust_markers_for_delete)
4784 (adjust_markers_for_insert, adjust_point)
4785 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4786 (make_gap, copy_text, count_size_as_multibyte, insert)
4787 (insert_and_inherit, insert_before_markers)
4788 (insert_before_markers_and_inherit, insert_1)
4789 (count_combining_before, count_combining_after, insert_1_both)
4790 (insert_from_string, insert_from_string_before_markers)
4791 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4792 (insert_from_buffer_1, adjust_after_replace)
4793 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4794 (replace_range_2, del_range, del_range_1, del_range_byte)
4795 (del_range_both, del_range_2, modify_region)
4796 (prepare_to_modify_buffer, signal_before_change)
4797 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4798 for buffer positions and sizes.
4799 * lisp.h: Adjust prototypes accordingly.
4800
4801 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4802 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4803 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4804
ab226c50
SM
4805 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4806
46dfb8fb
JD
48072009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4808
4809 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4810 lines and columns so we keep the same pixel height and width.
4811
4812 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4813 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4814 (x_handle_net_wm_state): New function to update frame parameter
4815 fullscreen.
4816 (x_term_init): Initialize atoms for _NET_WM_STATE.
4817
4818 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4819
d347e494
SM
48202009-03-27 Kevin Ryde <user42@zip.com.au>
4821
4822 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4823 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4824 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4825 (Fgpm_mouse_stop): Pass that new parameter.
4826 * termhooks.h (close_gpm): Adjust prototype.
4827
84db11d6
SM
48282009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4829
c95a5008
SM
4830 * lisp.h (Fx_focus_frame): Declare.
4831
84db11d6
SM
4832 * callint.c (Fcall_interactively): For '^' just delegate the work to
4833 handle-shift-selection.
4834 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4835
0a1958d6
CY
48362009-03-24 Chong Yidong <cyd@stupidchicken.com>
4837
0bfdff23
CY
4838 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4839
0a1958d6
CY
4840 * data.c (Qinteractive_form): New variable.
4841 (Finteractive_form): Use it.
4842
4843 * eval.c (Fcommandp): Use Qinteractive_form.
4844
58aec0d6
JR
48452009-03-24 Jason Rumney <jasonr@gnu.org>
4846
4847 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4848 Calculate total size precisely. Decode environment variables
4849 before substituting. (Bug#38)
4850
553dd618
KH
48512009-03-24 Kenichi Handa <handa@m17n.org>
4852
4853 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4854 encoding (Bug#2722).
553dd618 4855
c39ea606
JD
48562009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4857
4858 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4859 that gdpy is set.
4860
bc9b2b5e
AM
48612009-03-22 Alan Mackenzie <acm@muc.de>
4862
4863 * callint.c (Finteractive): Clarify the doc string - even
4864 promptless elements need \n separators.
4865
9f995a76
JR
48662009-03-22 Jason Rumney <jasonr@gnu.org>
4867
4868 * w32term.c (syms_of_w32term): Doc fix for
4869 x-use-underline-position-properties.
4870
22749e9a
EZ
48712009-03-21 Eli Zaretskii <eliz@gnu.org>
4872
4873 * w32.c (getpwuid): Change argument type to unsigned.
4874 (struct w32_id): Change type of `rid' member to unsigned.
4875 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4876 argument ID to unsigned. All callers changed.
4877 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4878
e00553bf
EZ
48792009-03-20 Eli Zaretskii <eliz@gnu.org>
4880
4881 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4882 negative, produce a float value.
4883
4884 * dired.c (make_uid, make_gid): New functions.
4885 (Ffile_attributes): Use them to avoid negative UID and GID.
4886
f761d6b6
JB
48872009-03-20 Juanma Barranquero <lekktu@gmail.com>
4888
4889 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4890 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4891 Fix typos in docstrings.
4892
d507f8d7
KH
48932009-03-19 Kenichi Handa <handa@m17n.org>
4894
4895 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4896 changed, use font_load_for_lface to get a new font object.
4897 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4898
4899 * frame.c (x_set_font): Handle the case that ARG is a cons.
4900
c68845e0
GM
49012009-03-19 Glenn Morris <rgm@gnu.org>
4902
4903 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4904
bfa49dd1
CY
49052009-03-19 Chong Yidong <cyd@stupidchicken.com>
4906
4907 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4908
8458d4c1
KH
49092009-03-19 Kenichi Handa <handa@m17n.org>
4910
4911 * charset.c (load_charset_map_from_file): When a mapfile can't be
4912 loaded, signal an error.
4913
78e7d1fe
EZ
49142009-03-18 Eli Zaretskii <eliz@gnu.org>
4915
4916 * dired.c (Ffile_attributes): Make sure UID and GID are always
4917 positive, even if the value is too large for a positive EMACS_INT.
4918 Doc fix.
4919
4920 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4921
5da9fdfa
YM
49222009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4923
4924 * xmenu.c (xdialog_show): Move Fredisplay call ...
4925 (Fx_popup_dialog): ... here.
4926
7519c40d
SM
49272009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4928
4929 * dired.c (file_name_completion): Disable the first optimization just
4930 installed, since it is not implemented correctly.
4931
2cd298e2
SM
49322009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4933
4934 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4935 only if the entry can affect bestmatch.
2cd298e2
SM
4936 Stop the search early, as Ftry_completion already does.
4937
48d37adf
CY
49382009-03-17 Chong Yidong <cyd@stupidchicken.com>
4939
e10c9c93 4940 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4941
9286b16a
CY
49422009-03-15 Chong Yidong <cyd@stupidchicken.com>
4943
4944 * keyboard.c (parse_menu_item): Don't display remappings as menu
4945 equivalent bindings (Bug#788).
4946
f7b146dc
JR
49472009-03-15 Jason Rumney <jasonr@gnu.org>
4948
4949 * w32term.h (WM_EMACS_PAINT): New message.
4950 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4951 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4952 before passing to lisp thread. (Bug#950)
4953
f761d6b6 49542009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4955
d93f9575
CY
4956 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4957 variable as it was never reset.
4958 (ns_term_init): Remove initialization of Lisp-settable defaults
4959 and ns_expand_space.
4960 (-setPanelFromDefaultValues): Remove ns_expand_space.
4961 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4962 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4963 i.e. no additional spacing, similar to Carbon port.
4964
d93f9575
CY
4965 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4966 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4967
305018ec
JD
49682009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4969
4970 * sound.c (alsa_configure): Remove call to deprecated
4971 snd_pcm_sw_params_set_xfer_align.
4972
f761d6b6 49732009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4974
4975 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4976 after clicking in a detached tool bar.
4977 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4978
46e722a9
SM
49792009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4980
348db3dd
SM
4981 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4982 int/Lisp_Object mixup).
46e722a9 4983
a3d16f39
KH
49842009-03-13 Kenichi Handa <handa@m17n.org>
4985
4986 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4987 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4988 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4989 (set_fontset_font): Change ARG to a vector. Handle range_list in
4990 ARG correctly.
4991 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4992 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4993 the above change.
4994 (fontset_from_font): Fix previous change.
fe24f56a 4995 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4996 entry. If FONTSET is the default fontset, don't set the extra
4997 slot of the returning char-table.
4998
b066e6b6
JB
49992009-03-12 Juanma Barranquero <lekktu@gmail.com>
5000
5001 * nsfns.m (Fx_close_connection): Doc fix.
5002 (Fns_do_applescript): Reflow docstring.
5003 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5004 (Fx_display_pixel_width, Fx_display_pixel_height)
5005 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5006 Fix typos in docstrings.
5007 (Fns_set_alpha): Fix typos in error messages.
5008
d472514e 50092009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5010
d472514e 5011 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5012 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5013 were used for such events.
5014
d472514e
JB
5015 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5016 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5017
d472514e 5018 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5019 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5020
fb930676
KH
50212009-03-11 Kenichi Handa <handa@m17n.org>
5022
ff85581a
KH
5023 * font.h (font_open_by_spec): Extern it.
5024
c50b7e98
KH
5025 * font.c (font_open_by_spec): New function.
5026 (font_open_by_name): Use font_open_by_spec.
5027
fb930676
KH
5028 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5029 fontset of the frame.
5030
5031 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5032 modify the default font of frames that use this fontset.
5033 (num_auto_fontsets): New variable.
5034 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5035 name. Be sure to set FONTSET_ASCII to the correct font name.
5036 (update_auto_fontset_alist): New function.
5037
df4e8455
JB
50382009-03-11 Juanma Barranquero <lekktu@gmail.com>
5039
5040 * makefile.w32-in: Update dependencies.
5041
0a375797
AR
50422009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5043
5044 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5045
61313fa3
SM
50462009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5049
b55103fb
CY
50502009-03-10 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * lread.c (Feval_buffer): Doc fix.
5053
dde2559c
KH
50542009-03-09 Kenichi Handa <handa@m17n.org>
5055
5056 * charset.c (Qfile_name_handler_alist): Extern it.
5057 (load_charset_map_from_file): Temporarily bind
5058 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5059
df4e8455 50602009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5061
47f588bb
GM
5062 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5063 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5064
4ddf94bd
AR
50652009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5066
4c9bdfc2
AR
5067 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5068 (x_set_window_size): Change back to calculated method of setting
5069 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5070 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5071 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5072
fe41ae9e
AR
5073 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5074
4c9bdfc2
AR
5075 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5076 accelerator in parens under GNUstep.
5077
825d0875
KH
50782009-03-06 Kenichi Handa <handa@m17n.org>
5079
5080 These changes are to detect incorrect composition sequence without
f3b3be74 5081 looking ahead the source. (Bug#2370)
825d0875
KH
5082
5083 * coding.h: Include "composite.h".
5084 (enum compisition_state): New enum.
5085 (struct compisition_status): New struct.
5086 (struct iso_2022_spec): New member cmp_status.
5087 (struct emacs_mule_spec): New struct.
5088 (struct coding_system): New members ctext_extended_segment_len and
5089 embedded_utf_8. Change the union member
5090 spec.emacs_mule_full_support to spec.emacs_mule.
5091
5092 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5093 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5094 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5095 (ADD_COMPOSITION_DATA): New arg nbytes.
5096 (emacs_mule_char): New arg cmp_status.
5097 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5098 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5099 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5100 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5101 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5102 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5103 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5104 (EMACS_MULE_COMPOSITION_END): New macro.
5105 (emacs_mule_finish_composition): New function.
5106 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5107 (decode_coding_emacs_mule): Avoid long looking ahead while
5108 handling composition.
5109 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5110 (ENCODE_COMPOSITION_RULE): New macro.
5111 (finish_composition): New function.
5112 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5113 (DECODE_COMPOSITION_START): New implementation.
5114 (DECODE_COMPOSITION_END): Likewise.
5115 (STORE_COMPOSITION_RULE): New macro.
5116 (decode_coding_iso_2022): Avoid long looking ahead while handling
5117 composition, CTEXT extended segment, and embedded UTF-8.
5118 (setup_coding_system): For a coding of type iso-2022, reset
5119 CODING_ISO_EXTSEGMENT_LEN (coding) and
5120 CODING_ISO_EMBEDDED_UTF_8 (coding).
5121 (get_translation): Delete arguments last_block, from_nchars,
5122 to_nchars. Callers changed.
5123 (produce_chars): Don't modify charbuf. Adjusted for the change of
5124 get_translation.
98a326f7 5125 (produce_composition): Adjust for the new annotation sequence.
825d0875 5126 (handle_composition_annotation): Likewise.
98a326f7 5127 (consume_chars): Adjust for the change of get_translation.
825d0875 5128
ccbc4452
AR
51292009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5130
4ddf94bd 5131 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5132
988a7ddb
KH
51332009-03-05 Kenichi Handa <handa@m17n.org>
5134
5135 * font.c (font_select_entity): New function.
5136 (font_find_for_lface): Use font_select_entity to select a font.
5137
5138 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5139 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5140 font with C restriction.
5141
98a326f7 51422009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5143
be1bce46 5144 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5145
10ea2b82
JR
51462009-03-04 Jason Rumney <jasonr@gnu.org>
5147
2c93b248 5148 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5149 characters that have already been read. (Bug#2569)
2c93b248 5150
10ea2b82
JR
5151 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5152 Log an error message if check_image_size failed.
5153 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5154 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5155
71a0c011
EZ
51562009-03-02 Eli Zaretskii <eliz@gnu.org>
5157
5158 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5159 when decoding process output.
5160
2f63bba8
RS
51612009-03-01 Richard M Stallman <rms@gnu.org>
5162
5163 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5164
5165 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5166
0a9564cb
EZ
51672009-02-28 Eli Zaretskii <eliz@gnu.org>
5168
5169 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5170 (decode_coding_emacs_mule, decode_coding_iso_2022)
5171 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5172 (decode_coding_raw_text, decode_coding_charset)
5173 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5174 Honor inhibit-eol-conversion. (Bug #2186)
5175
449148b3
JR
51762009-02-28 Jason Rumney <jasonr@gnu.org>
5177
5178 * coding.c (detect_coding_charset): If not checking latin extra,
5179 fail on characters between 0x80 and 0xA0. (Bug#2354)
5180
a4aee864
EZ
51812009-02-28 Eli Zaretskii <eliz@gnu.org>
5182
5183 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5184 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5185
d88bee5a
GM
51862009-02-27 Glenn Morris <rgm@gnu.org>
5187
5188 * callint.c (Finteractive): Doc fix.
5189
a808f22d
KH
51902009-02-27 Kenichi Handa <handa@m17n.org>
5191
5192 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5193
caf8d60c
CY
51942009-02-27 Chong Yidong <cyd@stupidchicken.com>
5195
5196 * font.c (font_style_to_value): Set value for unknown symbols to
5197 100 instead of 255.
b61137ea
CY
5198 (weight_table, slant_table, width_table): Treat "unspecified" as
5199 the default value.
caf8d60c 5200
1a0de25c
JB
52012009-02-26 Juanma Barranquero <lekktu@gmail.com>
5202
5203 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5204
8fc45744
JB
52052009-02-25 Juanma Barranquero <lekktu@gmail.com>
5206
107bd7d1
JB
5207 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5208 error as soon as a recursive load is detected.
8fc45744 5209
f097e223
AR
52102009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5211
5212 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5213 before caching.
5214
8810a12f
KH
52152009-02-24 Kenichi Handa <handa@m17n.org>
5216
5217 * fontset.c (fontset_find_font): Fix the condition for checking
5218 unavailable font.
5219
2c7d1565
GM
52202009-02-24 Glenn Morris <rgm@gnu.org>
5221
5222 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5223 whitespace that confuses documentation.
5224
a20878b6
MB
52252009-02-23 Miles Bader <miles@gnu.org>
5226
5227 * process.c (Flist_system_processes, Fprocess_attributes)
5228 (syms_of_process): Rename `system-process-attributes' to
5229 `process-attributes'.
5230
b3b58c01
AS
52312009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5232
1b3b981b
AS
5233 * coding.h (struct coding_system): Make safe_charsets a pointer to
5234 unsigned char.
5235 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5236 being 255.
5237 (SAFE_CHARSET_P): Likewise.
5238 (setup_iso_safe_charsets): Properly setup safe_charsets.
5239 (Fdefine_coding_system_internal): Likewise.
5240 (setup_coding_system): Likewise. Remove unneeded casts.
5241 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5242 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5243 unneeded casts.
5244
b3b58c01
AS
5245 * insdel.c (del_range_2): Don't modify gap contents when called
5246 from decode_coding_object. (Bug#1809)
5247
0b6f228c
CY
52482009-02-21 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5251 Qfont_object.
5252 (Ftype_of): Recognize font objects.
5253
5254 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5255
5256 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5257 moved to data.c.
5258
52f8870b
AR
52592009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5260
5261 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5262 async_iconified. Based on a patch by Christian Lynbech
5263 <christian.lynbech@tieto.com>.
5264 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5265
7087d5e9
GM
52662009-02-20 Glenn Morris <rgm@gnu.org>
5267
5268 * syntax.c (Fskip_chars_forward): Fix doc typo.
5269
41d2ceef
CY
52702009-02-20 Chong Yidong <cyd@stupidchicken.com>
5271
5272 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5273
1a3b7ca6
CY
52742009-02-19 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5277
73cce38d
KH
52782009-02-19 Kenichi Handa <handa@m17n.org>
5279
5280 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5281 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5282
a51092ee
DN
52832009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5284
5285 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5286
c423ecca
KH
52872009-02-18 Kenichi Handa <handa@m17n.org>
5288
5289 * font.c (font_check_otf_features): Fix handling of `nil' element.
5290 (Ffont_spec): Describe :lang and :otf in the docstring.
5291
4c1958f4
AS
52922009-02-16 Andreas Schwab <schwab@suse.de>
5293
5294 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5295 string.
5296
5704f39a
KH
52972009-02-16 Kenichi Handa <handa@m17n.org>
5298
5299 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5300 (Bug#1723)
5704f39a 5301
8f0085aa
CY
53022009-02-14 Chong Yidong <cyd@stupidchicken.com>
5303
a057d86a 5304 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5305
5306 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5307 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5308
aff01dd9
EZ
53092009-02-14 Eli Zaretskii <eliz@gnu.org>
5310
5311 * msdos.c (MAX_SCREEN_BUF): New macro.
5312 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5313 Encode the entire run of glyphs sharing the same face, instead of
5314 doing that one glyph at a time (fixes a bug with displaying
5315 double-size characters).
5316
ba301db3
AR
53172009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5318
5319 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5320
5321 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5322 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5323 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5324
5325 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5326 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5327
51d861de
SM
53282009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5329
ac146f82 5330 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5331 invisible areas.
5332
7fed8996
JR
53332009-02-12 Jason Rumney <jasonr@gnu.org>
5334
631ea4fb
JR
5335 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5336 (add_font_entity_to_list): Call check_face_name even when family
5337 is unspecified.
5338
cb4a3e42
JR
5339 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5340 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5341 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5342
7fed8996 5343 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5344 raster fonts. (Bug#2219)
7fed8996 5345
895416e3
KH
53462009-02-12 Kenichi Handa <handa@m17n.org>
5347
5348 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5349 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5350 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5351 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5352 (find_automatic_composition): While looking forward and backward,
5353 check static composition. Fix where to stop looking forward.
5354 (composition_adjust_point): Fix checking of static composition.
5355 (Fcomposition_get_gstring): Pay attention to
1dacf998 5356 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5357
5358 * lisp.h (fast_looking_at): Extern it.
5359
5360 * search.c (fast_looking_at): New function.
5361
51d861de 5362 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5363 <struct glyph>.u.cmp.to.
5364 (append_composite_glyph): Likewise.
5365
51d861de 5366 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5367 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5368 composition.
51d861de 5369 (append_composite_glyph): Adjust for the change of
895416e3
KH
5370 <strcut glyph>.u.cmp.to.
5371
8510724d
JB
53722009-02-11 Juanma Barranquero <lekktu@gmail.com>
5373
5374 * casetab.c (init_casetab_once):
5375 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5376 * font.c (font_update_lface):
5377 * fontset.c (Fnew_fontset):
5378 * ftfont.c (ftfont_drive_otf):
5379 * xfont.c (xfont_open):
5380 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5381
294fa707
SM
53822009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5383
5384 * fileio.c (Fwrite_region): !NILP -> CONSP.
5385
b5bfebec
AS
53862009-02-10 Andreas Schwab <schwab@suse.de>
5387
5388 * process.c (send_process): Properly relocate pointer into data
adab88bd 5389 when using encoded data. (Bug#2272)
b5bfebec 5390
cb84a2be
KH
53912009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5392
5393 * coding.c (detect_coding_charset): Fix previous change.
5394
89e09428
JR
53952009-02-08 Jason Rumney <jasonr@gnu.org>
5396
5397 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5398 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5399
4470a277
AS
54002009-02-07 Andreas Schwab <schwab@suse.de>
5401
5402 * unexelf.c (unexec): Fix error message.
5403
3175b12a
AR
54042009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5405
5406 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5407 when modal window is active. (Bug #2152)
3175b12a
AR
5408 (applicationShouldTerminate:): Remove now-unneeded while loop
5409 around NSRunAlertPanel.
5410
5411 * nsmenu.m (popupSession): New file-global variable.
5412 (pop_down_menu): End the popupSession before closing dialog.
5413 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5414 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5415 don't query NSApp for events (just sleep instead).
5416
8434d0b8
EZ
54172009-02-07 Eli Zaretskii <eliz@gnu.org>
5418
51d861de
SM
5419 * coding.c (syms_of_coding) <translation-table-for-input>:
5420 Modify doc string to discourage use for character code unification.
8434d0b8 5421
aa82edfd
CY
54222009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5423
5424 * atimer.c (run_timers): Update pending_atimers.
5425
2d283c7c
CY
54262009-02-06 Chong Yidong <cyd@stupidchicken.com>
5427
eb306cab
CY
5428 * image.c (svg_load_image): Fix last change.
5429
2d283c7c
CY
5430 * xfns.c (Fx_create_frame): Signal an error if no font is
5431 found (Bug#2147).
5432
4d8e170e
JB
54332009-02-05 Juanma Barranquero <lekktu@gmail.com>
5434
5435 * character.c (syms_of_character) <script-representative-chars>:
5436 Fix typo in docstring.
5437
c96169a0
AR
54382009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5439
5440 * nsmenu.m (pop_down_menu): New function.
5441 (ns_popup_dialog): Call it on unwind.
5442 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5443 call timer_check() (Bug#2154).
5444 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5445 handling_signal is set.
5446 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5447
31fd7c5c 5448 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5449
5450 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5451
5452 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5453
51d861de
SM
5454 * keyboard.c (poll_for_input_1, handle_async_input):
5455 Set handling_signal under HAVE_NS.
c96169a0 5456
aacd8ba1
GM
54572009-02-04 Glenn Morris <rgm@gnu.org>
5458
5459 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5460
4cb75c4b
KH
54612009-02-04 Kenichi Handa <handa@m17n.org>
5462
5463 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5464
5465 * charset.c (Fchar_charset): New optional arg restriction.
5466
5467 * coding.h (coding_system_charset_list): Extern it.
5468
5469 * coding.c (coding_system_charset_list): New function.
5470
5471 * composite.c: Include coding.h and termhooks.h.
5472 (composition_gstring_p): Fix for the terminal case.
5473 (composition_gstring_width): Likewise.
5474 (fill_gstring_body): Likewise.
5475 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5476 the frame.
5477 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5478 is within a composition.
867d4bb3 5479 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5480
5481 * term.c (encode_terminal_code): Fix handling of composition.
5482 (produce_composite_glyph): For static composition, get pixel_width
5483 from struct composition.
5484
826ba17e
AS
54852009-02-02 Andreas Schwab <schwab@suse.de>
5486
5487 * unexelf.c (unexec): Handle unaligned bss offset.
5488
8ad093db
AR
54892009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5490
5491 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5492 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5493
8ad093db
AR
5494 * keyboard.c (handle_interrupt): Don't call
5495 quit_throw_to_read_char() under NS.
d0a76a6e 5496
8ad093db
AR
5497 * blockinput.h: Remove NS-specific code.
5498
4d18a7a2
DN
54992009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5500
db878925
DN
5501 * dispnew.c (window_change_signal): Don't try to get the size of a
5502 suspended tty frame.
5503 * term.c (Fresume_tty): Resize if the size has changed while the
5504 tty was suspended.
5505
4d18a7a2
DN
5506 * alloc.c (mark_stack): Properly conditionalize previous change.
5507
8984df7c
JB
55082009-01-30 Juanma Barranquero <lekktu@gmail.com>
5509
5510 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5511 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5512 Remove; this code is not used on Windows.
5513
75f4f1ac
EZ
55142009-01-30 Eli Zaretskii <eliz@gnu.org>
5515
5516 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5517 EOLs that also has stray ^M characters.
5518
07a1e794
JB
55192009-01-30 Juanma Barranquero <lekktu@gmail.com>
5520
5521 * atimer.c (run_timers, alarm_signal_handler):
5522 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5523 * w32inevt.c (w32_console_read_socket):
5524 * w32term.c (w32_read_socket):
5525 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5526
a8b11cc9
CY
55272009-01-30 Chong Yidong <cyd@stupidchicken.com>
5528
5529 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5530 Initialize it as a relative filename pattern.
5531 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5532 (Fcall_process_region): Simplify temp file creation using
5533 temporary-file-directory.
5534
c279587b
EZ
55352009-01-29 Eli Zaretskii <eliz@gnu.org>
5536
5537 * msdos.c: Rename pending_signals to msdos_pending_signals.
5538 (sig_suspender, sigprocmask): Adjust.
5539
a8fe3242
CY
55402009-01-29 Chong Yidong <cyd@stupidchicken.com>
5541
5542 * keyboard.c (pending_signals): New var.
5543 (poll_for_input, input_available_signal, init_keyboard): Set it.
5544 (process_pending_signals): New function.
5545
5546 * lisp.h (QUIT): Check pending_signals instead of
5547 interrupt_input_pending. Use process_pending_signals.
5548
51d861de 5549 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5550
51d861de 5551 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5552
5553 * sysdep.c (emacs_write): Use process_pending_signals.
5554
5555 * xterm.c (XTread_socket): Update pending_signals.
5556
5557 * w32term.c (w32_read_socket): Update pending_signals.
5558
5559 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5560
6570a1c4
KH
55612009-01-29 Kenichi Handa <handa@m17n.org>
5562
5563 * xftfont.c (xftfont_has_char): New function.
5564 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5565
d72a4afa
AR
55662009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5567
5568 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5569 under GNUstep.
5570 (ns_query_color): New declaration.
5571
5572 * nsterm.m (ns_confirm_quit): New variable.
5573 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5574 (EmacsApp-applicationShouldTerminate:): Use it.
5575 (EmacsPrefsController): Let user set it.
5576 (ns_query_color): New function.
5577 (ns_defined_color): Use it.
5578 (ns_initialize): Drop.
5579 (ns_term_init): Add two lines from ns_initialize(), and set
5580 input_interrupt_mode to nil.
5581
5582 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5583 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5584
9fe78804
KH
55852009-01-28 Kenichi Handa <handa@m17n.org>
5586
5587 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5588 (fontset_get_font_group): Remember that no font-group is specified
5589 for C.
9fe78804 5590
fa57de36
CY
55912009-01-27 Chong Yidong <cyd@stupidchicken.com>
5592
930600e9
CY
5593 * fns.c (concat): Check for string overflow (bug#1787).
5594
fa57de36
CY
5595 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5596 Quadruple undo limits (bug#1501).
5597
7179ce7b
KH
55982009-01-27 Kenichi Handa <handa@m17n.org>
5599
5600 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5601 directly use GT_Get_Char_index.
5602
5603 * xftfont.c (struct xftfont_info): New member `index'.
5604
5605 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5606 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5607
5be8fcc0
CY
56082009-01-26 Kenichi Handa <handa@m17n.org>
5609
5610 * fontset.c (fontset_find_font): Fix handling of non-cons return
5611 value of fontset_get_font_group.
5612 (fontset_font): Revert last change.
5613
19ae3e61
JR
56142009-01-26 Jason Rumney <jasonr@gnu.org>
5615
5616 * w32font.c (w32font_list_internal): Return quickly if registry is
5617 unknown. Simplify final return.
5618 (add_font_entity_to_list): Break complex logic down into more
5619 manageable chunks. Move unknown registry check to
5620 w32font_list_internal.
5621
8612b71a
AR
56222009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5623
5624 Changes to remove Feval calls from GUI under NS.
5625
d8038940
JB
5626 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5627 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5628 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5629
5630 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5631 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5632 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5633 instead of NON_ASCII_KEYSTROKE_EVENT.
5634 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5635 (EmacsApp-applicationShouldTerminate:): Query user.
5636 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5637 instead of Feval.
5638
5639 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5640
5641 * keyboard.c (kbd_buffer_get_event): Check for it.
5642 (keys_of_keyboard): Define lispy keys for
5643 ns-put/unput-working-text.
5644
5645 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5646 versions.
5647 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5648
6288ae55
CY
56492009-01-25 Chong Yidong <cyd@stupidchicken.com>
5650
5651 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5652 setting current_buffer directly. (Bug#2044)
6288ae55 5653
289e7f8f
CY
56542009-01-24 Chong Yidong <cyd@stupidchicken.com>
5655
5ce87308 5656 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5657 any work. (Bug#1952, bug#1990).
5ce87308 5658
64cc3cf6 5659 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5660
b3243e6f
AR
56612009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5662
5663 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5664 (ns_no_defaults): New declaration.
5665 (main): Use it.
e0d2e69a 5666
d900b2af 5667 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5668
d900b2af 5669 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5670
d900b2af
AR
5671 * nsterm.m (ns_no_defaults): New variable.
5672 (ns_initialize): Don't read defaults when ns_no_defaults.
5673 (EmacsView-readSelectionFromPasteboard:)
5674 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5675 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5676 (ns_dumpglyphs_stretch): New function.
5677 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5678 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5679
e0d2e69a
AR
5680 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5681
3ac71f5d
CY
56822009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5683
5684 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5685 call for Sparc64.
5686
3fe53a83
AR
56872009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5688
5689 * nsfns.m:
5690 * nsgui.h:
5691 * nsmenu.m:
5692 * nsselect.m:
5693 * nsterm.h:
5694 * nsterm.m: Remove '23' comments that indicated code added during
5695 update from emacs-20 -> emacs-23.
5696
10f87c6f 56972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5698
5699 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5700 ns_alternate_modifier. (Bug#1217)
a3b53a85 5701
c7cef62d
AR
5702 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5703 Display all shortcuts, including those w/o super modifier.
5704
575fb8bd
AR
5705 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5706
918b848b
CY
57072009-01-22 Chong Yidong <cyd@stupidchicken.com>
5708
5709 * fileio.c (Vwrite_region_post_annotation_function)
5710 (Vwrite_region_annotation_buffers): New vars.
5711 (build_annotations_unwind): Just reset
5712 Vwrite_region_annotation_buffers.
5713 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5714 Call write-region-post-annotation-function.
5715 (build_annotations): Add to Vwrite_region_annotation_buffers if
5716 buffer changes.
5717
a39e2539
AR
57182009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5719
5720 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5721 Tiger.
51d861de
SM
5722 * nsfns.m (ns_do_applescript):
5723 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5724
35ed44db
AR
57252009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5726
5727 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5728
cbe0b5bf
AR
57292009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5730
5731 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5732
6049d3a0
AR
5733 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5734
5735 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5736 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5737 handle Ctrl-tab. (Bug#1841)
5738 (ns_get_color): Use unsigned long long for scanned hex string value.
5739 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5740 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5741 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5742 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5743 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5744 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5745 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5746
d3810c21 5747 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5748 DPI. (Bug#1316)
d3810c21
AR
5749 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5750 values in onTiger section.
4c7077c3 5751
e301e634
CY
57522009-01-19 Chong Yidong <cyd@stupidchicken.com>
5753
7f82490b
CY
5754 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5755 Check return value of font_spec_from_name.
64cc3cf6 5756 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5757
5758 * font.c (font_spec_from_name): Return Qnil if font name could not
5759 be parsed.
5760 (font_parse_name): Treat a `?' character as part of an XLFD.
5761
e301e634
CY
5762 * fns.c (Fsubstring): Doc fix.
5763
1c0db158
KH
57642009-01-19 Kenichi Handa <handa@m17n.org>
5765
51d861de 5766 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5767 (ftfont_list): Likewise.
5768
acf20901
JB
57692009-01-18 Juanma Barranquero <lekktu@gmail.com>
5770
fff4e459
JB
5771 * dbusbind.c (Fdbus_register_signal):
5772 * process.c (conv_sockaddr_to_lisp):
5773 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5774
acf20901
JB
5775 * callproc.c (Fgetenv_internal): Doc fix.
5776
e7abcdfb
CY
57772009-01-16 Chong Yidong <cyd@stupidchicken.com>
5778
5779 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5780 it is not even used.
5781
b60861e6
GM
57822009-01-16 Glenn Morris <rgm@gnu.org>
5783
5784 * font.c (Ffont_variation_glyphs): Silence compiler.
5785
8db52afe
JB
57862009-01-15 Juanma Barranquero <lekktu@gmail.com>
5787
5788 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5789 Reported by David Robinow <drobinow@gmail.com>.
5790
4cddb209
KH
57912009-01-15 Kenichi Handa <handa@m17n.org>
5792
51d861de 5793 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5794
f247f67b
JR
57952009-01-14 Jason Rumney <jasonr@gnu.org>
5796
5797 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5798 never a fontset. (Bug#1562)
f247f67b 5799
f56a4450
KH
58002009-01-14 Kenichi Handa <handa@m17n.org>
5801
5802 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5803 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5804
4e99855e
CY
58052009-01-13 Chong Yidong <cyd@stupidchicken.com>
5806
5807 * font.c (font_clear_prop): If clearing the family, clear the font
5808 width index too.
5809
fff4e459 5810 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5811
24f01470
JB
58122009-01-12 Juanma Barranquero <lekktu@gmail.com>
5813
5814 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5815 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5816 functions, use sizeof.
5817
a41240a3
MR
58182009-01-12 Martin Rudalics <rudalics@gmx.at>
5819
5820 * keyboard.c (read_char): Fix case where last_nonmenu_event
5821 returned a bad value with submenus. (Bug#447)
5822
944636b8
CY
58232009-01-12 Chong Yidong <cyd@stupidchicken.com>
5824
5825 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5826 family, clear the font width index too.
5827
0dad7c6f
JR
58282009-01-11 Jason Rumney <jasonr@gnu.org>
5829
5830 * keyboard.c (cmd_error_internal): Exit when errors occur before
5831 frame creation and not in daemon mode. (Bug#1836)
5832
7c2363af
CY
58332009-01-10 Chong Yidong <cyd@stupidchicken.com>
5834
5835 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5836 of a display vector, backtrack.
5837 (try_window_reusing_current_matrix): Check glyph type before
5838 referencing charpos member.
5839
97b1b294
EZ
58402009-01-10 Eli Zaretskii <eliz@gnu.org>
5841
5842 Fix Bug #876:
5843
5844 * coding.c (inhibit_null_byte_detection): New variable.
5845 (detect_coding, detect_coding_system): Don't pay attention to null
5846 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5847 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5848 <inhibit-iso-escape-detection>: Doc fix.
5849
4624b6e3
JR
58502009-01-09 Jason Rumney <jasonr@gnu.org>
5851
5852 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5853 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5854 Only report Unicode Plane 2 fonts as unicode-sip.
5855
323b840c
CY
58562009-01-09 Chong Yidong <cyd@stupidchicken.com>
5857
51d861de
SM
5858 * xfaces.c (Fx_font_family_list): Delete function.
5859 Move compatibility version to faces.el.
323b840c 5860
51d861de 5861 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5862
eba7400d
MR
58632009-01-09 Martin Rudalics <rudalics@gmx.at>
5864
5865 * frame.c (x_set_frame_parameters): Remember requested value for
5866 fullscreen before it's reset by the parameter handler.
5867
4b09796d
GM
58682009-01-09 Glenn Morris <rgm@gnu.org>
5869
5870 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5871 (last_command_event): ... and update all users.
4b09796d
GM
5872 (last_input_char): For clarity, rename to...
5873 (last_input_event): ... and update all users.
5874 (last-command-char, last-input-char): Move to subr.el as aliases.
5875 * cmds.c, commands.h: Update for last_command_char rename.
5876
14ccea62
CY
58772009-01-08 Chong Yidong <cyd@stupidchicken.com>
5878
51d861de 5879 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5880
5f004711
JR
58812009-01-08 Jason Rumney <jasonr@gnu.org>
5882
5883 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5884 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5885 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5886 Don't declare.
fff4e459 5887 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5888 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5889
b71f6f73
KH
58902009-01-07 Kenichi Handa <handa@m17n.org>
5891
50b06221 5892 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5893 remember the coding system used for decoding in
50b06221
KH
5894 coding_system (Bug#1039).
5895
b71f6f73 5896 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5897 breaking the loop. (Bug#870)
b71f6f73
KH
5898 (decode_coding_utf_16, decode_coding_emacs_mule)
5899 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5900 (decode_coding_charset): Likewise.
5901
56f668f7
MR
59022009-01-05 Martin Rudalics <rudalics@gmx.at>
5903
5904 * frame.c (x_set_frame_parameters): Make sure height (width) get
5905 applied when fullwidth (fullheight) is set. (Bug#1522)
5906
5da9424d
JB
59072009-01-04 Juanma Barranquero <lekktu@gmail.com>
5908
5909 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5910 (utc_base): Declare as ULONGLONG, not long double.
5911 (convert_time_raw): Delete.
5912 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5913 (initialize_utc_base): New function.
5914 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5915 (convert_from_time_t): Use initialize_utc_base; compute result with
5916 64-bit arithmetic.
5917 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5918
c4605e09
EZ
59192009-01-03 Eli Zaretskii <eliz@gnu.org>
5920
9acef61c 5921 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5922 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5923 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5924 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5925 [!subprocesses]: Define.
5926 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5927 (Flist_system_processes, Fsystem_process_attributes)
5928 [!subprocesses]: Call list_system_processes and
5929 system_process_attributes instead of returning Qnil.
5930
9acef61c
JB
5931 * dosfns.c (system_process_attributes, list_system_processes):
5932 New functions.
c4605e09
EZ
5933
5934 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5935
5936 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5937 Don't use the default (no-op) implementation.
5938
8b7d0a16
JR
59392009-01-03 Jason Rumney <jasonr@gnu.org>
5940
a6d46bc1
JR
5941 * keyboard.c (parse_modifiers_uncached): Wheel events are
5942 clicks (bug#687).
5943
8b7d0a16
JR
5944 * w32term.c (x_query_colors, x_query_color): New functions.
5945
5946 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5947 (svg_load_image): Cast returned pointers from dynamically loaded
5948 functions. Eliminate W32 specific code.
5949
bfe11752
DN
59502009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5951
89e2438a
DN
5952 * nsfns.m (x_set_foreground_color, x_set_background_color)
5953 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5954 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5955 x_ prefix instead of ns_. Update references.
5956 (syms_of_nsfns): Add a FIXME comment.
5957
5958 * nsterm.m (x_set_cursor_type): New prototype.
5959 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5960
bfe11752
DN
5961 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5962 for Solaris instead of incorrectly providing Qutime and Qcutime.
5963
031da700
EZ
59642009-01-02 Eli Zaretskii <eliz@gnu.org>
5965
5966 * w32.c (process_times): Compute sum of utime and stime.
5967 (system_process_attributes): Add Qtime to the alist.
5968
5969 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5970 and add them to the alist.
5971
5972 * process.c (top level) <Qtime, Qctime>: New variables.
5973 (syms_of_process): staticpro them.
5974 (Fsystem_process_attributes): Add their documentation to the doc
5975 string.
5976
5977 * process.h: Declare Qtime and Qctime.
5978
df23bf08
JR
59792009-01-02 Jason Rumney <jasonr@gnu.org>
5980
9acef61c 5981 * image.c (Qgobject): New symbol.
df23bf08
JR
5982 (syms_of_image): Initialize it.
5983 (init_svg_functions): Load some functions from gobject library.
5984
5bbdf7aa
DN
59852009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5986
5987 * frame.c (make_terminal_frame): Remove redundant code and useless
5988 block.
5989
63136da6
AS
59902009-01-01 Andreas Schwab <schwab@suse.de>
5991
5992 * process.c (conv_sockaddr_to_lisp): Add workaround for
5993 getsockname bug on BSD.
5994
9ef69046
CY
59952009-01-01 Chong Yidong <cyd@stupidchicken.com>
5996
d6fafbe0
CY
5997 * xfns.c (x_create_tip_frame): Set border width of the X window.
5998
51d861de 5999 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6000
f9c34147
JR
60012009-01-01 Jason Rumney <jasonr@gnu.org>
6002
9acef61c 6003 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6004 Don't block input, as per earlier xterm.c changes.
6005
f5497e45
AR
60062008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6007
6008 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6009 (ns_appkit_version_int): New function.
6010 (x-server-version): Use ns_appkit_version_int and follow 21+
6011 convention of returning 3 integers.
6012
c19cab20
KH
60132008-12-30 Kenichi Handa <handa@m17n.org>
6014
6015 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6016 (CHAR_SURROGATE_PAIR_P): New macro.
6017
6018 * font.h (struct font_driver): New member get_variation_glyphs.
6019
9acef61c 6020 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6021 (Ffont_variation_glyphs): New function.
6022 (syms_of_font): Defsubr it.
6023
6024 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6025 ftfont_variation_glyphs.
6026 (setup_otf_gstring): New function.
6027 (ftfont_drive_otf): Use it.
6028 (ftfont_shape_by_flt): Handle variation selector.
6029 (ftfont_variation_glyphs): New function.
6030
28cd591f
MR
60312008-12-30 Martin Rudalics <rudalics@gmx.at>
6032
6033 * frame.c (Vemacs_iconified): Remove.
6034
7f714baf
JR
60352008-12-30 Jason Rumney <jasonr@gnu.org>
6036
6037 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6038 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6039
9d2d22ab
CY
60402008-12-30 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * indent.c (Fvertical_motion): Don't advance iterator if we have
6043 reseated to the desired position.
6044
6045 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6046 checking for pos match.
6047
545312c2
KH
60482008-12-30 Kenichi Handa <handa@m17n.org>
6049
1ede3eb6
KH
6050 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6051 just get the low 8-bit of the code.
6052
545312c2
KH
6053 * font.c (font_intern_prop): Validate str as multibyte.
6054
bd7bbf29
DN
60552008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6056
31e0750e
DN
6057 * dispextern.h (struct face): Move lface and hash from the middle
6058 of bitfields.
6059
bd7bbf29
DN
6060 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6061
b5672e7c
DN
60622008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6063
6064 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6065 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6066 instead of intervals.h.
6067
d704470f
AS
60682008-12-26 Andreas Schwab <schwab@suse.de>
6069
6070 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6071 cons.
6072
54b33868
MR
60732008-12-26 Martin Rudalics <rudalics@gmx.at>
6074
6075 * textprop.c (Qminibuffer_prompt): New variable.
6076 (syms_of_textprop): Initialize it.
6077 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6078 in minibuffer-prompt face. (Bug#1662)
6079
40b615d6
JR
60802008-12-25 Jason Rumney <jasonr@gnu.org>
6081
6082 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6083
baae5c2d
JR
60842008-12-24 Jason Rumney <jasonr@gnu.org>
6085
6086 * ralloc.c (r_alloc_reset_variable): New function.
6087
6088 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6089 record of what points where. (Bug#716)
baae5c2d 6090
a9051c88
DN
60912008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6092
6093 * minibuf.c (read_minibuf): Follow the non-interactive case when
6094 running as a daemon, before detaching.
6095
8b146312
AS
60962008-12-22 Andreas Schwab <schwab@suse.de>
6097
6098 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6099 * gtkutil.c (free_widget_value): Use xfree instead of free.
6100
56f2de10
MR
61012008-12-22 Martin Rudalics <rudalics@gmx.at>
6102
6103 * frame.c (delete_frame): New function derived from
6104 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6105 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6106 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6107 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6108 * frame.h: Extern delete_frame.
6109 * window.c (window_loop):
6110 * terminal.c (delete_terminal):
6111 * xterm.c (x_connection_closed):
6112 * xfns.c (Fx_hide_tip):
9acef61c 6113 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6114
1fc200d6
JR
61152008-12-21 Jason Rumney <jasonr@gnu.org>
6116
6117 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6118 when character maps to .notdef character.
6119
5e252df2
SM
61202008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6121
6122 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6123
99b72cc4
JR
61242008-12-20 Jason Rumney <jasonr@gnu.org>
6125
6126 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6127 a graphical frame on Windows. (Bug#1325)
99b72cc4 6128
acc49a52
JD
61292008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6130
6131 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6132
6ea15123
CY
61332008-12-20 Chong Yidong <cyd@stupidchicken.com>
6134
6135 * minibuf.c (Fread_buffer): Doc fix.
6136
b2dab6c8
JR
61372008-12-20 Jason Rumney <jasonr@gnu.org>
6138
54ea0c87 6139 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6140 server name in UNC paths. (Bug#719)
54ea0c87 6141
b2dab6c8 6142 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6143 charbuf. (Bug#1035)
b2dab6c8 6144
6d1921be
DN
61452008-12-19 Daniel Engeler <engeler@gmail.com>
6146
6147 * sysdep.c (serial_configure): Fix typo.
6148
53934c98
DN
61492008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6150
6151 * sysdep.c: Include alloca.h.
f4f634e8
DN
6152 (system_process_attributes): Add implementation for Solaris.
6153
6154 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6155
06e111a6
DN
61562008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6157
6158 Reorganize implementation of Flist_system_processes and
6159 Fsystem_process_attributes. No functional changes.
6160 * process.c: Don't #include pwd.h, grp.h and limits.h.
6161 (Flist_system_processes): Just call list_system_processes.
6162 (Fsystem_process_attributes): Just call system_process_attributes.
6163 (procfs_list_system_processes, time_from_jiffies)
6164 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6165 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6166
6167 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6168 (list_system_processes): Rename from
6169 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6170 Provide a do nothing implementation.
6171 (system_process_attributes): Rename from
6172 procfs_list_system_processes.
6173 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6174 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6175
6176 * w32.c (list_system_processes): Rename from
6177 w32_list_system_processes.
6178 (system_process_attributes): Rename from
6179 w32_system_process_attributes.
6180
6181 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6182
6183 * process.h (w32_list_system_processes)
6184 (w32_system_process_attributes): Remove.
362654a6
JB
6185 (list_system_processes, system_process_attributes):
6186 New prototypes.
06e111a6 6187
6a705b23
KH
61882008-12-19 Kenichi Handa <handa@m17n.org>
6189
6190 * xfont.c (xfont_decode_coding_xlfd): New function.
6191 (xfont_encode_coding_xlfd): New function.
6192 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6193 (xfont_list): Decode and encode XLFD by iso-8859-1.
6194 (xfont_match): Likewise.
6195 (xfont_list_family): Likewise.
6196 (xfont_open): Likewise.
6197
d66c0241 6198 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6199 names are utf-8.
6200
d66c0241 6201 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6202 names are utf-8.
6203
5a130941
JD
62042008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6205
6206 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6207 changed.
bfd20325
JD
6208 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6209 clicked on a detached tool bar button.
5a130941 6210
fd95644b
DN
62112008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6212
6213 * emacs.c (main): Print and error and exit when no data is read
6214 from the pipe.
6215
e6eee6ae
JR
62162008-12-17 Jason Rumney <jasonr@gnu.org>
6217
6218 * w32font.c (w32font_has_char): Always return -1.
6219
a35dd56b
KH
62202008-12-16 Kenichi Handa <handa@m17n.org>
6221
6222 * font.c (font_open_entity): Fix previous change.
6223
0e3635c2
DN
62242008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6225
6226 * process.c: Include <limits.h>.
6227
d4835507 62282008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6229
6230 * font.c (font_update_drivers): Fix mistake in reconstructing the
6231 driver list.
6232
62332008-12-16 Chong Yidong <cyd@stupidchicken.com>
6234
6235 * font.c (font_clear_cache): Fix format of font cache data.
6236
e2cbc401
CY
62372008-12-15 Chong Yidong <cyd@stupidchicken.com>
6238
6239 * xftfont.c (xftfont_open): Free Xft font pattern if
6240 XftFontOpenPattern fails.
6241
6242 * xterm.c (x_free_frame_resources): Remove extraneous call to
6243 free_frame_faces.
6244
b131d535
CY
62452008-12-13 Chong Yidong <cyd@stupidchicken.com>
6246
6247 * xterm.c (x_delete_display): Move xim_close_dpy call to
6248 x_delete_terminal.
6249 (x_delete_terminal): Call xim_close_dpy.
6250
e6df5336
JR
62512008-12-13 Jason Rumney <jasonr@gnu.org>
6252
6253 * w32font.c (intern_font_name): New function.
6254 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6255 (w32font_open_internal, Fx_select_font): Decode font name.
6256 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6257
6258 * w32font.h (intern_font_name): Declare new function.
6259
6260 * w32uniscribe.c (add_opentype_font_name_to_list):
6261 Use intern_font_name.
6262
20d68145
CY
62632008-12-13 Chong Yidong <cyd@stupidchicken.com>
6264
9f2554de
CY
6265 * frame.c (Fdelete_frame): Call free_font_driver_list.
6266
3d9bec9a
CY
6267 * font.c (free_font_driver_list): Implement missing function.
6268
20d68145
CY
6269 * w32term.c (w32_term_init): Don't initialize the image cache
6270 here; it will be done in init_frame_faces.
6271
6272 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6273 (struct x_display_info): Remove unused member null_pixel. New
6274 member xim_callback_data.
6275
6276 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6277 (xim_initialize): Save pointer to callback function data.
6278 (xim_close_dpy): Free callback function data. Call XCloseIM,
6279 reverting 2008-11-04 change by David Smith.
6280 (x_term_init): Don't initialize the image cache here; it will be
6281 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6282 (x_delete_display): Free x_dnd_atoms member.
6283
96f9306b
KH
62842008-12-13 Kenichi Handa <handa@m17n.org>
6285
6dec9044
JB
6286 * font.c (font_rescale_ratio): Moved from xfaces.c.
6287 Argument type changed. Handle a font-spec too.
96f9306b 6288 (font_score): Check Vface_font_rescale_alist.
6dec9044 6289 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6290
6291 * xfaces.c (font_rescale_ratio): Moved to font.c.
6292
8d5b4964
CY
62932008-12-13 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6296
e6df5336
JR
62972008-12-12 Jason Rumney <jasonr@gnu.org>
6298
6299 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6300 Vwindow_system_version to the real w32 major version.
6301
97c6058a
DN
63022008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6303
6304 * term.c (init_tty): Move setting the terminal name before the
6305 potential user: maybe_fatal.
6306
ec4e88d7
CY
63072008-12-11 Chong Yidong <cyd@stupidchicken.com>
6308
d4835507
JB
6309 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6310 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6311
b4233ec9
JR
63122008-12-11 Jason Rumney <jasonr@gnu.org>
6313
8ec71e23 6314 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6315 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6316
b4233ec9 6317 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6318 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6319
011a0143
JB
63202008-12-11 Juanma Barranquero <lekktu@gmail.com>
6321
6322 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6323
3c309f34
JB
63242008-12-11 Juanma Barranquero <lekktu@gmail.com>
6325
6326 * process.c (Fsystem_process_attributes, syms_of_process):
6327 Fix typo in name of Ssystem_process_attributes.
6328 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6329
fedc6ab5
JB
63302008-12-11 Juanma Barranquero <lekktu@gmail.com>
6331
6332 * syntax.c (Fmodify_syntax_entry): Doc fix.
6333
ba3de0e8
JB
63342008-12-10 Juanma Barranquero <lekktu@gmail.com>
6335
6336 * font.c (Ffont_spec): Move usage to end of docstring.
6337
174f1c74
JR
63382008-12-10 Jason Rumney <jasonr@gnu.org>
6339
6340 * w32font.c (Qcham): New symbol.
6341 (font_supported_scripts): Add cham, and comments for other new
6342 scripts in bitfield from OpenType spec.
9d32f818
JR
6343 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6344 contain characters beyond the bmp.
174f1c74 6345
7b649478
KH
63462008-12-10 Kenichi Handa <handa@m17n.org>
6347
6348 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6349 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6350 Qunicode_sip.
6351
2133e2d1
JB
63522008-12-10 Juanma Barranquero <lekktu@gmail.com>
6353
6354 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6355 (Fcoding_system_put): Use QCdefault_char.
6356 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6357
9af886ee
CY
63582008-12-09 Chong Yidong <cyd@stupidchicken.com>
6359
74d819eb
CY
6360 * xftfont.c (syms_of_xftfont): Fix typo.
6361
4ccfa1c0 6362 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6363
7c19d3ae
DN
63642008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6365
6366 * emacs.c (main): Close daemon_pipe on exec.
6367
567826bb
CY
63682008-12-08 Chong Yidong <cyd@stupidchicken.com>
6369
6370 * termchar.h (struct tty): New members termcap_term_buffer and
6371 termcap_strings_buffer.
6372
6373 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6374 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6375 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6376 All callers changed.
6377 (init_tty): Store termcap data and string buffers in new struct
6378 tty members termcap_term_buffer and termcap_strings_buffer.
6379 (delete_tty): Free them.
4ccfa1c0 6380 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6381
aa96c42b
SZ
63822008-12-07 Seiji Zenitani <zenitani@mac.com>
6383
6384 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6385 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6386
b7e1d896
CY
63872008-12-06 Chong Yidong <cyd@stupidchicken.com>
6388
6389 * coding.c (make_conversion_work_buffer): Disable buffer
6390 modification hooks in the work buffer.
6391
b5ec91a5
EZ
63922008-12-05 Eli Zaretskii <eliz@gnu.org>
6393
6394 * process.c (procfs_system_process_attributes): If `nread' has a
6395 negative value, assign zero to it.
6396
a5d2a52b
CY
63972008-12-05 Chong Yidong <cyd@stupidchicken.com>
6398
68c5540b 6399 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6400
7bf1bb21
KH
64012008-12-05 Kenichi Handa <handa@m17n.org>
6402
6403 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6404 second character is a combining character.
6405
2fdc7d00
EZ
64062008-12-05 Eli Zaretskii <eliz@gnu.org>
6407
6408 * process.c (procfs_system_process_attributes): Don't use cmd,
6409 cmdsize, and q without initializing them first.
6410
bf6bfba8
JR
64112008-12-04 Jason Rumney <jasonr@gnu.org>
6412
6413 * w32font.c (w32font_draw): Initialize orig_clip before getting
6414 it, and delete it when finished.
6415
a3b1a468
DN
64162008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6417
6418 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6419 case when running as a daemon before detaching.
6420
8b8be8eb
JB
64212008-12-03 Juanma Barranquero <lekktu@gmail.com>
6422
805f2638 6423 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6424
b1bde622
KH
64252008-12-03 Kenichi Handa <handa@m17n.org>
6426
e500c47d
KH
6427 * font.c (font_at): Set `multibyte' at first.
6428
ca516334
KH
6429 * coding.c (decode_coding_charset): Check type of an element of
6430 vector VALIDS.
7bf1bb21 6431 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6432
4ccfa1c0 6433 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6434 (font_for_char): Likewise.
6435
1e5ecd37
CY
64362008-12-03 Chong Yidong <cyd@stupidchicken.com>
6437
d5b01609 6438 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6439 (font_update_lface): Handle fonts with corrupted size specs,
6440 i.e. non-int and non-float.
d5b01609 6441
11e3a6e4 6442 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6443 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6444 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6445
ab06788b
CY
6446 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6447
1e5ecd37 6448 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6449 underline_minimum_offset for underline position.
1e5ecd37 6450
63c125ab
DN
64512008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6452
6453 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6454
6455 * character.c (c_string_width): Specify the type for LEN.
6456
3a8406e1
KH
64572008-12-03 Kenichi Handa <handa@m17n.org>
6458
4ccfa1c0 6459 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6460 (decode_coding_utf_8): Likewise.
4ccfa1c0 6461 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6462 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6463
651df7d9
CY
64642008-12-02 Chong Yidong <cyd@stupidchicken.com>
6465
6466 * keyboard.c (make_lispy_position): Only use PT if the selected
6467 window is current.
6468
1f625c6c
AS
64692008-12-02 Andreas Schwab <schwab@suse.de>
6470
f7741ce9
AS
6471 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6472
1f625c6c
AS
6473 * doprnt.c (doprnt1): Fix size of charbuf.
6474
92bc2678
CY
64752008-12-02 Chong Yidong <cyd@stupidchicken.com>
6476
6477 * keyboard.c (timer_check): Revert last change.
6478
93b9e8cc
JB
64792008-12-02 Juanma Barranquero <lekktu@gmail.com>
6480
6481 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6482
fd7a37d5
JB
64832008-12-01 Juanma Barranquero <lekktu@gmail.com>
6484
6485 * makefile.w32-in: Update dependencies.
6486 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6487
c115043b
AS
64882008-12-01 Andreas Schwab <schwab@suse.de>
6489
6490 * font.c (register_font_driver): Use xmalloc.
6491 (font_put_frame_data): Likewise.
6492
f5668d2a
CY
64932008-12-01 Chong Yidong <cyd@stupidchicken.com>
6494
860d96be
CY
6495 * xfaces.c (realize_x_face): Make abort condition clearer.
6496
f5668d2a
CY
6497 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6498
379c17e7
CY
64992008-11-30 Chong Yidong <cyd@stupidchicken.com>
6500
6501 * keyboard.c (timer_check): After a timer runs, ensure that the
6502 selected window's buffer is current.
6503
35f36d65
JB
65042008-11-30 Juanma Barranquero <lekktu@gmail.com>
6505
f952c61c
JB
6506 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6507 It was accidentally restored by the Unicode merge.
6508
35f36d65
JB
6509 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6510
b23077df
JB
65112008-11-29 Juanma Barranquero <lekktu@gmail.com>
6512
6513 * w32proc.c: Include "coding.h".
6514 (Fw32_short_file_name): Encode filename passed to Windows API.
6515 (Fw32_long_file_name): Encode filename passed to Windows API and
6516 decode back the result. (Bug#1433)
6517
b8ebe9dd
KH
65182008-11-29 Kenichi Handa <handa@m17n.org>
6519
8cc53f96
KH
6520 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6521 not before accessing it.
6522
b8ebe9dd
KH
6523 * charset.c (Fdefine_charset_internal): After calculating
6524 min_char, max_char, and fastmap, copy the charset structure again.
6525 (encode_char): Fix the previous change.
6526
59bc82c0
SZ
65272008-11-28 Seiji Zenitani <zenitani@mac.com>
6528
6529 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6530
6531 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6532
6533 * nsterm.m (x_set_frame_alpha): New function.
6534
32247e3d
EZ
65352008-11-27 Eli Zaretskii <eliz@gnu.org>
6536
6537 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6538
b003e5ff
JB
65392008-11-27 Juanma Barranquero <lekktu@gmail.com>
6540
6541 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6542 pointer to check_face_name.
6543
708550f5
KH
65442008-11-27 Kenichi Handa <handa@m17n.org>
6545
6546 * category.h (SET_CATEGORY_SET): Call set_category_set.
6547 (set_category_set): Extern it.
6548
6549 * category.c (hash_get_category_set): New function.
6550 (Fmodify_category_entry): Adjusted for the change of
6551 char_table_ref_and_range. Call hash_get_category_set to get a
6552 category set to store in the table.
6553
6554 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6555 Funify_charset.
6556
2ae37cf0 6557 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6558 (DECODE_CHAR): Check if the decoder vector is ready.
6559 (ENCODE_CHAR): Check if the encoder char-table is ready.
6560 (maybe_unify_char): Extern it.
6561
6562 * charset.c (Vchar_unified_charset_table): Delete it.
6563 (inhibit_load_charset_map): New variable.
6564 (temp_charset_work): New variable.
6565 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6566 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6567 New macros.
6568 (load_charset_map): Meaning of control_flag changed. If
6569 inhibit_load_charset_map is nonzero, setup a table in
6570 temp_charset_work.
6571 (load_charset): New argument control_flag.
6572 (map_charset_for_dump): New function.
6573 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6574 map_charset_for_dump.
6575 (Fdefine_charset_internal): If the charset method is MAP, load
6576 mapping tables by calling load_charset.
6577 (Funify_charset): Don't load a mapping table but directly set
6578 Vchar_unify_table.
6579 (maybe_unify_char): New function.
6580 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6581 Handle the case of inhibit_load_charset_map being nonzero.
6582 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6583 Handle the case of inhibit_load_charset_map being nonzero.
6584 (Fclear_charset_maps): Just free temp_charset_work.
6585 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6586 variable.
6587
6588 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6589 change of char_table_ref_and_range.
6590 (char_table_ref_and_range): Change the meaning of argument FROM
6591 and TO. Now the caller must provide initial values for *FROM
6592 and *TO.
6593
6594 * fontset.c (fontset_add): Adjusted for the change of
6595 char_table_ref_and_range.
6596 (fontset_get_font_group): Likewise.
6597 (Ffontset_info): Likewise.
6598
6599 * keymap.c (describe_vector): Adjusted for the change of
6600 char_table_ref_and_range. For char-table, put boundary between
6601 non-ASCII and 8-bit characters.
6602
6603 * print.c (print_object): For bool-vector, delete unnecessary
6604 check of ASCII_BYTE_P.
6605
9196133b
JR
66062008-11-26 Jason Rumney <jasonr@gnu.org>
6607
6608 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6609 leading in font height. (Bug#879)
9196133b 6610
9f688acf
GM
66112008-11-26 Glenn Morris <rgm@gnu.org>
6612
6613 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6614 redefinition with ifdef. (Bug#1383)
6615
90d19aff
AR
66162008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6617
6618 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6619
4ccfa1c0 66202008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6621
6622 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6623 New EmacsView methods.
6624 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6625 Fixes bug #1048,1357,1414.
6626
66272008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6628
6629 Fix bug #1362.
6630 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6631 is not an indexed color.
6632 * nsterm.m (free_indexed_color): Add argument checking.
6633 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6634
e7d5ecb3
CY
66352008-11-24 Chong Yidong <cyd@stupidchicken.com>
6636
6637 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6638 Document confirm-after-completion value for
6639 minibuffer-completion-confirm.
6640
c285743c
JR
66412008-11-24 Jason Rumney <jasonr@gnu.org>
6642
6643 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6644 warning.
6645
b0857706
JR
66462008-11-23 Jason Rumney <jasonr@gnu.org>
6647
6648 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6649 restored before returning.
6650
6651 * w32font.c (check_face_name): New function.
6652 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6653 fonts. (Bug#642)
b0857706 6654
ee50ff07
MR
66552008-11-22 Martin Rudalics <rudalics@gmx.at>
6656
6657 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6658 confirm-nonexistent-file-or-buffer in doc-string.
6659
b8ff72fa
SM
66602008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6661
6662 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6663 Fix copy/paste typo. Add checks.
6664
cee53ed4
KH
66652008-11-21 Kenichi Handa <handa@m17n.org>
6666
6667 * coding.c (detect_coding_iso_2022): Reject invalid composition
6668 sequence.
6669 (DECODE_COMPOSITION_START): If the current source is the last
6670 block, and the current composition doesn't end, regard this
6671 sequence as invalid.
6672 (decode_coding_iso_2022): Handle invalid composition sequence.
6673
f6ef1e65
MR
66742008-11-20 Martin Rudalics <rudalics@gmx.at>
6675
6676 * window.c (coordinates_in_window): Don't return
6677 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6678 line when the window is not the rightmost one. (Bug#1372)
6679
e08b1705
MR
66802008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6681
6682 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6683
ad98e89f
EZ
66842008-11-15 Eli Zaretskii <eliz@gnu.org>
6685
6686 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6687 and bright_bg if noninteractive is non-zero.
6688
fb098a4b
CY
66892008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6690
6691 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6692 x_draw_glyph_string_background.
6693
6694 * w32term.c (x_draw_glyph_string): Likewise.
6695
ce952b6e
CY
66962008-11-15 Chong Yidong <cyd@stupidchicken.com>
6697
6698 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6699 the next glyph string once past the overhang width.
6700
6701 * nsterm.m (ns_draw_glyph_string): Likewise.
6702
6703 * w32term.c (x_draw_glyph_string): Likewise.
6704
26ea7079
CY
67052008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6706
6707 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6708 double file close.
6709
1c33c906
MR
67102008-11-14 Martin Rudalics <rudalics@gmx.at>
6711
6712 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6713 dedicated status of window before attempting to display another
6714 buffer in it.
6715
8fc29035
JB
67162008-11-14 Juanma Barranquero <lekktu@gmail.com>
6717
6718 * msdos.c (Fmsdos_long_file_names):
6719 (syms_of_msdos) <dos-unsupported-char-glyph>:
6720 * dosfns.c (Fint86): Fix typos in docstrings.
6721
55fb4286
EZ
67222008-11-14 Eli Zaretskii <eliz@gnu.org>
6723
6724 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6725
3fda0315
KY
67262008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6727
6728 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6729
7e849c17
CY
67302008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6731
6732 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6733
6734 * frame.h: Negative alpha means "don't touch".
6735
6736 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6737
6738 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6739
b9fd67bd
DN
67402008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 * hftctl.c:
6743 * chpdef.h:
6744 * acldef.h: Remove files used only for systems no longer supported.
6745
6746 * Makefile.in: Fix .o alphabetical ordering.
6747 (hftctl.o): Remove dependency, file removed.
6748 (keymap.o, print.o): Depend on charset.h.
6749
d5998e03
KH
67502008-11-10 Kenichi Handa <handa@m17n.org>
6751
2ae37cf0 6752 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6753
be70e183
CY
67542008-11-08 Chong Yidong <cyd@stupidchicken.com>
6755
6756 * dired.c (file_name_completion): If completion_ignore_case is
6757 enabled, ignore case when checking completion-regexp-list.
6758
7cf94eac
EZ
67592008-11-08 Eli Zaretskii <eliz@gnu.org>
6760
6761 * vm-limit.c (get_lim_data): Fix last change.
6762
ee107a89
KH
67632008-11-08 Kenichi Handa <handa@m17n.org>
6764
6765 * character.c (Fget_byte): New function.
6766 (syms_of_character): Defsubr Fget_byte.
6767
5fd15622
CY
67682008-11-07 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6771 cursor position is valid after scrolling.
6772
13d62fad
JB
67732008-11-06 Juanma Barranquero <lekktu@gmail.com>
6774
6775 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6776
a1dd2936
GM
67772008-11-06 Glenn Morris <rgm@gnu.org>
6778
6779 * xterm.c (handle_one_xevent): Don't let popup menus cause
6780 mouse-autoselect-window related window switching. (Bug#1261)
6781
860cd236
CY
67822008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6783
6784 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6785
653a3150
AS
67862008-11-04 Andreas Schwab <schwab@suse.de>
6787
6788 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6789
870f5cac
CY
67902008-11-03 Chong Yidong <cyd@stupidchicken.com>
6791
6792 * xfns.c (Fx_wm_set_size_hint): New function.
6793
1e02f3cb
MR
67942008-11-03 Martin Rudalics <rudalics@gmx.at>
6795
6796 * textprop.c (Fprevious_single_char_property_change): Return 0
6797 when there's no change in a string. (Bug#1301)
6798
e630dfc6
MR
67992008-11-02 Martin Rudalics <rudalics@gmx.at>
6800
6801 * frame.c (do_switch_frame): New argument NORECORD passed to
6802 Fselect_window.
6803 (Fselect_frame): New argument NORECORD passed to
6804 do_switch_frame.
6805 (Fset_frame_selected_window): New argument NORECORD passed to
6806 Fselect_frame.
6807 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6808 in call of do_switch_frame.
6809 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6810 Handle NORECORD argument in call of Fselect_frame.
6811 * lisp.h (do_switch_frame, Fselect_frame)
6812 (Fset_frame_selected_window): Adjust declarations.
6813 * window.c (select_frame_norecord): New function.
6814 (run_window_configuration_change_hook): Use it and call
6815 Fselect_frame with NORECORD set.
6816 (Fselect_window): Pass NORECORD to Fselect_frame.
6817 (Fset_window_configuration): Handle NORECORD argument in call of
6818 do_switch_frame.
6819 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6820 Fset_frame_selected_window.
6821 * keyboard.c (command_loop_1): Handle NORECORD in call of
6822 Fselect_frame (currently ifdefd).
6823
9020b223
GM
68242008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6825
6826 * emacs.c (USAGE2): Untabify.
6827
793ffee8
SM
68282008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6829
6830 * composite.c (fill_gstring_header): Fix copy/paste typo.
6831
ab6d1131
MR
68322008-10-31 Martin Rudalics <rudalics@gmx.at>
6833
6834 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6835 (Fother_window): Rename argument and rewrite doc-string.
6836 (select_window_norecord): Fix return value. (Bug#1276)
6837
601a9cf1
JB
68382008-10-30 Juanma Barranquero <lekktu@gmail.com>
6839
6840 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6841 new frames overriding foreground for tooltips. Based on similar patch
6842 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6843
813b0652
CY
68442008-10-29 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * emacs.c (Fdaemon_initialized): Initialize nfd.
6847
4414f58f
MR
68482008-10-29 Martin Rudalics <rudalics@gmx.at>
6849
6850 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6851 (Fwindow_text_height): Clarify doc-strings.
6852 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6853 doc-string of window-scroll-functions.
6854
ecdcaa09
RS
68552008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6856
6857 * category.c (syms_of_category): Fix typo in docstring.
6858
23fe745a
JB
68592008-10-28 Juanma Barranquero <lekktu@gmail.com>
6860
6861 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6862 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6863 Fix typos in docstrings.
6864
ff808935
DN
68652008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6866
6867 * emacs.c (daemon_pipe): Make non-static.
6868 (IS_DAEMON): Move definition ...
6869 * lisp.h (IS_DAEMON): ... here.
6870 (daemon_pipe): Declare.
6871 (is_daemon): Remove.
6872 * dispnew.c (init_display): Use IS_DAEMON.
6873
fc012771
SM
68742008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6875
6876 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6877 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6878
6879 * emacs.c (is_daemon): Remove.
6880 (main): Don't set is_daemon.
6881 (IS_DAEMON): New macro.
6882 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6883 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6884 parent exits.
6885 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6886
d8bdbe6f
CY
68872008-10-27 Chong Yidong <cyd@stupidchicken.com>
6888
d1a072bf
CY
6889 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6890 over-sized glyph, draw it with the default glyph width.
6891
e2e325aa
CY
6892 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6893 glyph, draw it with the default glyph width.
6894
6895 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6896 glyph, draw it with the default glyph width.
6897
d8bdbe6f
CY
6898 * xdisp.c (try_scrolling): When computing the distance from the
6899 scroll margin to PT, try moving some distance past the window
6900 bottom before giving up.
6901
7bfac547
MR
69022008-10-27 Martin Rudalics <rudalics@gmx.at>
6903
6904 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6905 (Fset_window_buffer): Explain in doc-string that a window can be
6906 "strongly" dedicated to its buffer.
6907
4ff029f6
DN
69082008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6909
6910 * emacs.c (daemon_name): New variable.
6911 (main): Deal with --daemon=SERVER_NAME.
6912 (Fdaemonp): Return a name if one was passed to --daemon.
6913
5790ef40
DN
69142008-10-26 Romain Francoise <romain@orebokech.com>
6915
f9bd0df9 6916 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6917 (main): Create a pipe before forking, make the parent exit only after
6918 the child has closed its end of the pipe. Move closing the
6919 descriptors ...
6920 (Fdaemon_initialized): ... here. New function.
6921
f5385255
SM
69222008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6923
4d632321
SM
6924 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6925 the previous unoptimized table.
6926
f5385255
SM
6927 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6928 the distinction between non-nil and non-t value of `dedicated'.
6929
6c56a0f3
CY
69302008-10-25 Chong Yidong <cyd@stupidchicken.com>
6931
6932 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6933 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6934
fec89261
MR
69352008-10-25 Martin Rudalics <rudalics@gmx.at>
6936
6937 * window.c (Fget_buffer_window, Fdelete_windows_on)
6938 (Freplace_buffer_in_windows): Make buffer argument optional and
6939 rename to buffer_or_name.
6940
34fcddd0
CY
69412008-10-24 Chong Yidong <cyd@stupidchicken.com>
6942
f5385255
SM
6943 * xdisp.c (handle_single_display_spec, handle_display_prop):
6944 Undo 2005-05-16 change.
34fcddd0
CY
6945 (handle_stop): Pop iterator if it's loaded with an empty string.
6946 (get_overlay_strings_1): Don't save iterator if it's loaded with
6947 an empty string (bug#1201).
6948
064766f2
KH
69492008-10-24 Kenichi Handa <handa@m17n.org>
6950
6951 * ftfont.c (ftfont_otf_features): Fix previous change.
6952 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6953 calling ftfont_otf_features.
6954
f9bd0df9 69552008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6956
6957 * font.c (font_match_p): Fix for the case that a vector of
6958 characters is in script-representative-chars.
6959
1dae9197
MA
69602008-10-24 Michael Albinus <michael.albinus@gmx.de>
6961
6962 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6963 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6964 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6965 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6966 macro. (Bug#1186)
1dae9197 6967
f9bd0df9 69682008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6969
6970 * s/sol2-10.h: New file.
6971
878a4584
JB
69722008-10-23 Juanma Barranquero <lekktu@gmail.com>
6973
6974 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6975 poor beast has survived 9+ years and the jump from xterm.c!).
6976
cd265ca6
MR
69772008-10-23 Martin Rudalics <rudalics@gmx.at>
6978
6979 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6980 Reword doc-string.
f5385255 6981 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6982
472a4dc9
JB
69832008-10-23 Juanma Barranquero <lekktu@gmail.com>
6984
6985 * character.c (syms_of_character) <script-representative-chars>:
6986 <unicode-category-table>: Doc fixes.
6987
159bd5a2
NF
69882008-10-23 Noah Friedman <friedman@splode.com>
6989
6990 * coding.c (make_conversion_work_buffer): Check that
6991 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6992 Fget_buffer_create.
6993
49f9c344
KH
69942008-10-23 Kenichi Handa <handa@m17n.org>
6995
6996 * font.c (font_add_log): Check the values of extra properties.
6997
12bb3111
MR
69982008-10-22 Martin Rudalics <rudalics@gmx.at>
6999
7000 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7001 Reword doc-string.
7002 (Fset_window_parameter): Use NILP.
7003 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7004 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7005
bbeb4e99
JB
70062008-10-22 Juanma Barranquero <lekktu@gmail.com>
7007
7008 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7009
70102008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7011
7012 * nsfns.m (ns_appkit_version): New function.
7013 (x-server-version): Use it.
7014 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7015 (x-server-vendor): Don't check_ns().
7016
7017 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7018
a9b555d3
JB
70192008-10-22 Juanma Barranquero <lekktu@gmail.com>
7020
7021 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7022 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7023
4626499f
KH
70242008-10-22 Kenichi Handa <handa@m17n.org>
7025
e3681952
KH
7026 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7027 scripts.
7028
4626499f
KH
7029 * category.c (word_boundary_p): Check scripts instead of charset.
7030 Handle nil value in word-separating-categories and
7031 word-combining-categories.
7032 (syms_of_category): Fix docstrings of word-separating-categories
7033 and word-combining-categories.
7034
1560f91a
EZ
70352008-10-21 Eli Zaretskii <eliz@gnu.org>
7036
7037 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7038 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7039
f4668441
MR
70402008-10-21 Martin Rudalics <rudalics@gmx.at>
7041
7042 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7043 Rename arg "buffer" to "buffer_or_name".
7044 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7045 it optional.
7046 (no_switch_window): Remove since the return value is not used.
a9b555d3 7047 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7048 Consider window as dedicated when Fwindow_dedicated_p returns a
7049 non-nil value.
7050 * lisp.h: Remove prototype for no_switch_window.
7051
fd75ddb2
JD
70522008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7053
7054 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7055 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7056
07295713
KH
70572008-10-21 Kenichi Handa <handa@m17n.org>
7058
7059 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7060 check Vlatin_extra_code_table.
7061
712adc82
EZ
70622008-10-20 Eli Zaretskii <eliz@gnu.org>
7063
7064 * fileio.c (Fset_file_modes): Doc fix.
7065
f549eb0b
MA
70662008-10-19 Michael Albinus <michael.albinus@gmx.de>
7067
7068 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7069 in arrays.
7070
aac0c6e3
MR
70712008-10-19 Martin Rudalics <rudalics@gmx.at>
7072
7073 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7074 Mention kill-buffer in doc-string.
7075 (Fset_window_buffer): Reinsert tem check removed in last commit.
7076 (Fenlarge_window, Fshrink_window): Have argument names and
7077 doc-string follow Elisp manual more closely.
7078
70792008-10-18 Eli Zaretskii <eliz@gnu.org>
7080
7081 * fileio.c (Fset_file_modes): Doc fix.
7082
70832008-10-18 Martin Rudalics <rudalics@gmx.at>
7084
7085 * window.c (Fwindow_width, Fset_window_start)
7086 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7087 (Fdelete_windows_on, Freplace_buffer_in_windows):
7088 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7089 (Fwindow_dedicated_p): Make window argument optional.
7090 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7091 (Fset_window_buffer): Respect any non-nil dedicated value for
7092 window. Rename "buffer" argument to "buffer_or_name".
7093
70942008-10-18 Ulrich Mueller <ulm@gentoo.org>
7095
7096 * m/sh3.h: New file, machine description for SuperH.
7097
70982008-10-17 Martin Rudalics <rudalics@gmx.at>
7099
7100 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7101
71022008-10-17 Kenichi Handa <handa@m17n.org>
7103
7104 * ftfont.c (ftfont_otf_features): Fix indexing
7105 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7106
71072008-10-16 Magnus Henoch <mange@freemail.hu>
7108
7109 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7110 (Fdbus_call_method_asynchronously): Ditto.
7111 This change makes C-h f display the argument list.
7112
71132008-10-16 Chong Yidong <cyd@stupidchicken.com>
7114
7115 * fileio.c (Fexpand_file_name): Doc fix.
7116
7117 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7118 of :foreground and :background equivalent to unspecified (20.x
7119 compatibility).
7120
71212008-10-15 Eli Zaretskii <eliz@gnu.org>
7122
7123 * buffer.c (syms_of_buffer): Doc fix.
7124
71252008-10-14 Kenichi Handa <handa@m17n.org>
7126
7127 * font.c (font_clear_prop): When clearing font width, clear the
7128 average width field too.
7129
71302008-10-12 Andreas Schwab <schwab@suse.de>
7131
7132 * ftfont.c (ftfont_shape_by_flt): Make static.
7133 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7134
7135 * font.c: Don't include <m17n-flt.h>.
7136
71372008-10-10 Eli Zaretskii <eliz@gnu.org>
7138
7139 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7140
71412008-10-09 Eli Zaretskii <eliz@gnu.org>
7142
7143 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7144 away code.
7145
71462008-10-09 Chong Yidong <cyd@stupidchicken.com>
7147
7148 * dispnew.c (update_text_area): Avoid looping due to large glyph
7149 overhangs (bug#1070).
7150
71512008-10-09 Kenichi Handa <handa@m17n.org>
7152
7153 * fontset.c (face_for_char): If face->fontset is negative, just
7154 return ascii_face.
7155
f5385255
SM
7156 * font.c (font_delete_unmatched): Fix previous change.
7157 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7158
71592008-10-09 Martin Rudalics <rudalics@gmx.at>
7160
7161 * frame.c (Fraise_frame): On text-only terminals select frame in
7162 order to make it visible. (Bug#1061)
7163
71642008-10-08 Chong Yidong <cyd@stupidchicken.com>
7165
7166 * fontset.c (fontset_find_font): Check frame validity.
7167
71682008-10-07 Chong Yidong <cyd@stupidchicken.com>
7169
a9b555d3 7170 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7171 (xg_display_close): Allow Emacs to close all displays (bug#985).
7172
71732008-10-06 Andreas Schwab <schwab@suse.de>
7174
f5385255 7175 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7176
71772008-10-06 Chong Yidong <cyd@stupidchicken.com>
7178
f5385255 7179 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7180
a9b555d3 7181 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7182
7183 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7184 during initialization.
7185
71862008-10-04 Eli Zaretskii <eliz@gnu.org>
7187
7188 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7189 whole thing on MSDOS frames as well as on a TTY.
7190
7191 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7192 well as for TTY.
7193 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7194 well as on a TTY.
7195
7196 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7197 as well as for TTY.
7198
7199 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7200
7201 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7202 MSDOS frames as well.
7203
72042008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7205
7206 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7207 correct arguments.
b71ac3dd 7208 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7209
72102008-10-03 Glenn Morris <rgm@gnu.org>
7211
7212 * emacs.c (USAGE1): Add --daemon.
7213
72142008-10-02 Eli Zaretskii <eliz@gnu.org>
7215
7216 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7217 100, so it's in percents as advertised.
7218
72192008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7220
7221 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7222 (ns_output.current_cursor, ns_output.desired_cursor)
7223 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7224 (FRAME_NEW_CURSOR_COLOR): Remove.
7225
7226 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7227 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7228 enumeration (HOLLOW_BOX_CURSOR, etc.).
7229
7230 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7231 (draw_window_cursor): Simplify code.
f5385255
SM
7232 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7233 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7234 updates manually.
a9b555d3
JB
7235 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7236 Use core Emacs cursor types.
aac0c6e3 7237
b8ff72fa 7238 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7239
72402008-10-02 Martin Rudalics <rudalics@gmx.at>
7241
7242 * process.c (Faccept_process_output): Fix doc-string.
7243
72442008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7245
7246 * gmalloc.c (__sbrk): Also define for uClibc.
7247
7248 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7249 for uClibc.
7250
72512008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7252
7253 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7254 styles.
7255 (nsfont_open): Reenable the cache.
7256
72572008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7258
7259 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7260 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7261
72622008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7263
7264 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7265 a suspended terminal.
7266
72672008-09-30 Michael Albinus <michael.albinus@gmx.de>
7268
7269 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7270
72712008-09-30 Eli Zaretskii <eliz@gnu.org>
7272
7273 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7274
72752008-09-30 Chong Yidong <cyd@stupidchicken.com>
7276
7277 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7278 in a continued line coincides with a line beginning.
7279
72802008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7281
7282 * nsfont.m (nsfont_trait_distance): Fix bug.
7283 (nsfont_list): Return a list rather than a vector (syncs with Handa
7284 changes of 2008-05-14).
7285 (nsfont_open): Improve logging.
7286
72872008-09-29 Andreas Schwab <schwab@suse.de>
7288
7289 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7290
72912008-09-28 Martin Rudalics <rudalics@gmx.at>
7292
7293 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7294 name as char-resolve-modifiers.
7295 Reported by: Markus Triska <markus.triska@gmx.at>
7296
72972008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7298
7299 * dispnew.c (init_display): Return earlier when running as a daemon.
7300
73012008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7302
7303 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7304
73052008-09-27 Eli Zaretskii <eliz@gnu.org>
7306
7307 * composite.c (Fcomposition_get_gstring)
7308 (Fcompose_region_internal, Fcompose_string_internal)
7309 (Ffind_composition_internal): Doc fix.
7310 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7311 (syms_of_composite) <auto-composition-function>: Doc fix.
7312 (syms_of_composite) <composition-function-table>: Doc fix.
7313
73142008-09-25 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * search.c (wordify): New argument for lax word-ends.
7317 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7318
73192008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7320
7321 * lisp.h (is_daemon): Declare.
7322 * dispnew.c (init_display): Do not try to initialize the terminal
7323 when running as a daemon.
7324
73252008-09-22 Chong Yidong <cyd@stupidchicken.com>
7326
7327 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7328 x_display_pixel_height.
7329
73302008-09-22 Martin Rudalics <rudalics@gmx.at>
7331
7332 * undo.c (record_point): Don't call Fundo_boundary for first
7333 change. (Bug#731)
7334
73352008-09-22 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * emacs.c (Fdaemonp): Doc fix.
7338
73392008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7340
7341 * emacs.c (main): Place #ifdef in the proper place.
7342
73432008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7344
7345 * emacs.c (standard_args): Add --daemon.
7346 (main): Disconnect from the terminal when --daemon is passed.
7347 (is_daemon): New variable.
7348 (Fdaemonp): New function.
7349 (syms_of_emacs): Defsubr it.
7350
73512008-09-20 Chong Yidong <cyd@stupidchicken.com>
7352
7353 * xdisp.c (get_next_display_element): Handle string display
7354 correctly when checking for the end of a box run.
7355
73562008-09-20 Glenn Morris <rgm@gnu.org>
7357
7358 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7359 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7360 (Frename_file): Avoid copying to trash if a rename involves
7361 a delete. (Bug#964).
7362
73632008-09-20 Eli Zaretskii <eliz@gnu.org>
7364
7365 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7366 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7367 frames as well as termcap frames.
7368 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7369 get_named_tty.
7370
73712008-09-19 Eli Zaretskii <eliz@gnu.org>
7372
7373 * process.c (procfs_system_process_attributes): Fix cmdline in
7374 case /proc/PID/cmdline is empty.
7375
7376 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7377 x_display_pixel_height.
7378
73792008-09-19 Juanma Barranquero <lekktu@gmail.com>
7380
7381 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7382
7383 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7384 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7385
73862008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7387
7388 * dispextern.h (struct it): Move line_wrap away from the middle of
7389 bitfields. Move voffset in struct iterator_stack_entry after the
7390 bitfields. Move tab_width near after another short.
7391
73922008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7393
7394 * frame.h (struct frame): Move alpha from the middle of bitfields.
7395
7396 * window.h (struct window): Move frozen_window_start_p after the
7397 rest of the bitfields to reduce padding.
7398
73992008-09-18 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * xterm.h (x_display_info): Remove `height' and `width' members.
7402
7403 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7404
7405 * w32term.h (w32_display_info): Remove `height', `width',
7406 `height_in', and `width_in' members.
7407
b8ff72fa
SM
7408 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7409 New functions.
aac0c6e3
MR
7410 (x_calc_absolute_position): Use them.
7411 (x_term_init): Omit removed `height' and `width' members.
7412
b8ff72fa
SM
7413 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7414 New functions.
aac0c6e3
MR
7415 (w32_read_socket, x_calc_absolute_position): Use them.
7416 (w32_initialize_display_info, w32_term_init): Omit removed members
7417 of w32_display_info.
7418
b8ff72fa
SM
7419 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7420 New functions.
7421 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7422
b8ff72fa
SM
7423 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7424 New functions.
aac0c6e3
MR
7425 (x_calc_absolute_position): Use them.
7426 (x_term_init): Omit removed `height' and `width' members.
7427
7428 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7429 (compute_tip_xy):
7430 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7431 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7432 x_display_pixel_width.
7433
74342008-09-18 Kenichi Handa <handa@m17n.org>
7435
7436 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7437 (composition_compute_stop_pos): Fix handling of static composition.
7438 (Fcomposition_get_gstring): Check FROM and TO at first.
7439
74402008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7441
46e722a9 7442 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7443 mixup (YAILOM).
7444
74452008-09-17 Chong Yidong <cyd@stupidchicken.com>
7446
7447 * indent.c (Fvertical_motion): Use position reported by iterator
7448 instead of PT for determining screen motion (bug#943).
7449
74502008-09-17 Romain Francoise <romain@orebokech.com>
7451
7452 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7453
74542008-09-17 Kenichi Handa <handa@m17n.org>
7455
7456 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7457
7458 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7459 if necessary.
7460
74612008-09-16 Kenichi Handa <handa@m17n.org>
7462
7463 * coding.c (make_conversion_work_buffer): Avoid calling
7464 Fget_buffer_create if it is not necessary.
7465
74662008-09-15 Martin Rudalics <rudalics@gmx.at>
7467
7468 * window.c (Fselect_window): Don't update window_select_count and
7469 use_time when norecord is not nil.
7470
74712008-09-14 Kenichi Handa <handa@m17n.org>
7472
7473 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7474 specpdl_ptr.
7475
74762008-09-12 Kenichi Handa <handa@m17n.org>
7477
7478 * indent.c (scan_for_column): Don't handle automatic composition
7479 if the current buffer is not associated with a window.
7480
7481 * composite.c (composition_reseat_it): If the current buffer is
7482 not associated with a window, ignore the automatic composition.
7483 (find_automatic_composition): Likewise.
7484
74852008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7486
7487 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7488 (Fgpm_mouse_stop): Use it.
7489 * termhooks.h (close_gpm): Declare.
7490 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7491 connection if Gpm_GetEvent fails.
7492
7493 * window.c (set_window_buffer): Always preserve current-buffer.
7494
74952008-09-12 Glenn Morris <rgm@gnu.org>
7496
7497 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7498
74992008-09-11 Glenn Morris <rgm@gnu.org>
7500
7501 * charset.c (charset-map-path): Doc fix.
7502
75032008-09-10 Kenichi Handa <handa@m17n.org>
7504
7505 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7506
7507 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7508 compose a grapheme cluster with the preceding base glyph.
7509
7510 * composite.c (composition_compute_stop_pos): Fix previous change.
7511 Reset cmp_it->id to -1 at first.
7512
75132008-09-10 Glenn Morris <rgm@gnu.org>
7514
7515 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7516
75172008-09-09 Chong Yidong <cyd@stupidchicken.com>
7518
7519 * keyboard.c (read_key_sequence): Reapply translation maps when
7520 switching keyboards.
7521
75222008-09-09 Kenichi Handa <handa@m17n.org>
7523
7524 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7525 characters.
7526
7527 * composite.c (FORWARD_CHAR): Fix calculation
7528 of (POSITION).pos_byte.
7529 (composition_compute_stop_pos): Limit the search of composition to
7530 at most 500 characters ahead. If we reach the limit or find a
7531 newline, set cmp_it->ch to -2 and return 0.
7532 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7533
75342008-09-08 Kenichi Handa <handa@m17n.org>
7535
7536 * indent.c (Fvertical_motion): Be sure to set
7537 it_overshoot_expected if it.cmp_it.id is non-negative.
7538
75392008-09-07 Andreas Schwab <schwab@suse.de>
7540
7541 * callproc.c (Fcall_process): Don't hold references to string data
7542 across garbage collection. Move initialisation of new_argv down
7543 to avoid compiler bug.
7544
75452008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7546
7547 * process.c (Fsystem_process_attributes): Doc fix.
7548
75492008-09-07 Chong Yidong <cyd@stupidchicken.com>
7550
7551 * callproc.c (Fcall_process): Canonicalize current directory name.
7552
7553 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7554 iterator advances to the next line if the current line ends in a
7555 continued tab.
7556
75572008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7558
7559 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7560 member to point to cmp_from.
7561
7562 * xdisp.c: Doc fix for references to gidx data member.
7563
75642008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7567
75682008-09-07 Kenichi Handa <handa@m17n.org>
7569
7570 * composite.c (FORWARD_CHAR): Check STOP after
7571 incrementing (POSITION).pos.
7572
75732008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7574
7575 * process.c (Fsystem_process_attributes): Doc fix.
7576
75772008-09-06 Chong Yidong <cyd@stupidchicken.com>
7578
7579 * keyboard.c (Ftop_level): Doc fix.
7580
75812008-09-06 Eli Zaretskii <eliz@gnu.org>
7582
7583 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7584 minibuffer, don't let lower part of menu invade the echo area.
7585
7586 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7587 "char *q" to access menu text and advance through it. Revert the
7588 change that displayed ">" instead of ASCII character 0x10.
7589
75902008-09-05 Eli Zaretskii <eliz@gnu.org>
7591
7592 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7593 toggle boxes and radio buttons on MS-DOS as well.
7594
75952008-09-05 Kenichi Handa <handa@m17n.org>
7596
7597 * composite.c (autocmp_chars): Check lookback count.
7598 (composition_compute_stop_pos): Set cmp_it->lookback.
7599 (composition_reseat_it): Check lookback count.
7600 (struct position_record): New struct.
7601 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7602 (find_automatic_composition): New function.
7603 (composition_adjust_point): Use find_automatic_composition.
7604
7605 * dispextern.h (struct composition_it): New member lookback.
7606
76072008-09-02 Chong Yidong <cyd@stupidchicken.com>
7608
7609 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7610 if moving by a single line.
7611
76122008-09-02 Andreas Schwab <schwab@suse.de>
7613
7614 * xterm.c (x_delete_display): Fix merge error.
7615
7616 * fileio.c (Fexpand_file_name): Remove unused variables.
7617
76182008-09-02 Eli Zaretskii <eliz@gnu.org>
7619
7620 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7621 storage on all platforms, not just on DOS_NT.
7622
76232008-09-02 Jason Rumney <jasonr@gnu.org>
7624
b8ff72fa
SM
7625 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7626 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7627
76282008-09-01 Chong Yidong <cyd@stupidchicken.com>
7629
7630 * xfaces.c (Finternal_set_alternative_font_family_alist)
7631 (Finternal_set_alternative_font_registry_alist): Properly copy
7632 entire alist structure.
7633
76342008-09-01 Kenichi Handa <handa@m17n.org>
7635
d66c0241 7636 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7637 representative chars of the script is a vector.
d66c0241
JB
7638 (ftfont_list): Handle the case where the representative chars of
7639 the script is a vector.
aac0c6e3
MR
7640
7641 * character.c (syms_of_character): Docstring of
7642 script-representative-chars fixed.
7643
76442008-08-31 Eli Zaretskii <eliz@gnu.org>
7645
7646 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7647 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7648 the menu. Allocate larger buffer for `text', to account for
7649 possible ^C characters.
7650
76512008-08-31 Martin Rudalics <rudalics@gmx.at>
7652
7653 * xdisp.c (prepare_menu_bars): Don't call
7654 Vwindow_size_change_functions with arg Qt.
7655
76562008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7657
7658 * font.h (font_range):
7659 * fileio.c (report_file_error):
46e722a9
SM
7660 * composite.c (composition_update_it): Yet another int/Lisp_Object
7661 mixup (YAILOM).
aac0c6e3
MR
7662
76632008-08-30 Glenn Morris <rgm@gnu.org>
7664
7665 * data.c (Fmake_variable_frame_local): Doc fix.
7666
7667 * frame.c (Fmodify_frame_parameters): Doc fix.
7668
76692008-08-30 Eli Zaretskii <eliz@gnu.org>
7670
7671 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7672 needed by GetTokenInformation.
7673 (w32_system_process_attributes): Check return values of all system
7674 APIs.
7675
7676 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7677 only when the state changes.
7678 (IT_update_begin, IT_update_end): Add termscript trace.
7679
7680 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7681 clipboard is unavailable. Set dst to NULL if it doesn't point to
7682 malloc'ed data.
7683 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7684 passing random values to xfree.
7685
7686 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7687 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7688
76892008-08-29 Jason Rumney <jasonr@gnu.org>
7690
7691 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7692
76932008-08-29 Eli Zaretskii <eliz@gnu.org>
7694
7695 * composite.c (fill_gstring_body): Avoid compiler warnings.
7696
7697 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7698 LGLYPH_SET_CODE to avoid compiler warnings.
7699
2ae37cf0 7700 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7701
7702 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7703
7704 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7705 LGLYPH_SET_CODE.
7706
77072008-08-29 Kenichi Handa <handa@m17n.org>
7708
7709 * fileio.c (report_file_error): Don't downcase the first character
7710 of errstring if it is still unibyte.
7711
77122008-08-29 Kenichi Handa <handa@m17n.org>
7713
7714 These changes are to re-implement the automatic composition so
7715 that it doesn't use text properties.
7716
7717 * Makefile.in (ftfont.o): Depend on composite.h.
7718 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7719
7720 * character.h (Vunicode_category_table): Extern it.
7721
7722 * character.c (Vunicode_category_table): New variable.
7723 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7724
7725 * chartab.c (optimize_sub_char_table): Perform more greedy
7726 optimization.
7727
b8ff72fa
SM
7728 * composite.h (enum composition_method):
7729 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7730 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7731 (Vcomposition_function_table): Extern it.
7732 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7733 (composition_gstring_put_cache, composition_gstring_from_id)
7734 (composition_gstring_p, composition_gstring_width)
7735 (composition_compute_stop_pos, composition_reseat_it)
7736 (composition_update_it, composition_adjust_point): Extern them.
7737 (Fcomposition_get_gstring): EXFUN it.
7738
d66c0241 7739 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7740 (Vcomposition_function_table)
7741 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7742 (gstring_hash_table, gstring_work, gstring_work_headers):
7743 New variables.
aac0c6e3
MR
7744 (gstring_lookup_cache, composition_gstring_put_cache)
7745 (composition_gstring_from_id, composition_gstring_p)
7746 (composition_gstring_width, fill_gstring_header)
7747 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7748 (composition_reseat_it, composition_update_it)
b8ff72fa 7749 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7750 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7751 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7752 Defsubr compostion_get_gstring.
7753
7754 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7755 cmp_id.
7756 (struct glyph_string): Delete the member gidx. New members
7757 cmp_id, cmp_from, and cmp_to.
7758 (enum it_method): Delete GET_FROM_COMPOSITION.
7759 (struct composition_it): New struct.
7760 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7761 Delete c, len, cmp_id, cmp_len in u.comp.
7762
7763 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7764 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7765 (enum lglyph_indices): Likewise.
b8ff72fa 7766 (font_range): Adjust extern.
aac0c6e3
MR
7767 (font_fill_lglyph_metrics): Extern it.
7768
7769 * font.c (QCf): New variable.
7770 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7771 (font_prepare_composition): Delete this function.
7772 (font_range): Type and arguments changed.
7773 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7774 (font_fill_lglyph_metrics): New function.
b8ff72fa 7775 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7776 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7777 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7778 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7779
7780 * fontset.h (font_for_char): Extern it.
7781
7782 * fontset.c (font_for_char): New function.
7783
7784 * ftfont.c: Include composite.h.
7785 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7786 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7787
7788 * indent.c: Include composite.h and dispextern.h.
7789 (check_composition): Delete this function.
7790 (scan_for_column): Handle composition by
7791 composition_compute_stop_pos, composition_reseat_it, and
7792 composition_update_it.
7793 (compute_motion): Likewise.
7794 (Fvertical_motion): Fix checking of composition.
7795
7796 * keyboard.c (adjust_point_for_property): Check composition by
7797 composition_adjust_point.
7798
b8ff72fa 7799 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7800 struct glyph_string.
7801
b8ff72fa
SM
7802 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7803 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7804 struct glyph.
7805 (produce_composite_glyph): Likewise.
7806
b8ff72fa
SM
7807 * w32term.c (x_draw_composite_glyph_string_foreground):
7808 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7809 (x_draw_glyph_string): Likewise.
7810
7811 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7812 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7813
7814 * xdisp.c: Include font.h.
7815 (it_props): Delete the entry for Qauto_composed.
7816 (init_iterator): Initialize it->cmp_it.id to -1.
7817 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7818 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7819 (handle_auto_composed_prop): Delete it.
7820 (handle_composition_prop): Handle only static composition.
7821 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7822 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7823 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7824 (pop_it): Likewise.
7825 (get_next_element): Delete next_element_from_composition.
7826 (CHAR_COMPOSED_P): New macro.
7827 (get_next_display_element): For automatic composition, get a face
7828 from the font in the glyph-string.
7829 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7830 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7831 (next_element_from_string): Check if the character at the current
7832 position is composed by CHAR_COMPOSED_P.
7833 (next_element_from_buffer): Likewise.
d66c0241
JB
7834 (next_element_from_composition): Adjust for the change of struct it.
7835 Update it->cmp_it.
b8ff72fa
SM
7836 (dump_glyph): Adjust for the change of struct glyph.
7837 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7838 it and struct glyph. Don't handle automatic composition here.
7839 (fill_gstring_glyph_string): New function.
7840 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7841 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7842 (BUILD_GSTRING_GLYPH_STRING): New macro.
7843 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7844 automatic composition.
b8ff72fa 7845 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7846 struct glyph.
b8ff72fa 7847 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7848
b8ff72fa 7849 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7850 the change of struct glyph_string.
7851 (x_draw_glyph_string): Likewise.
7852
78532008-08-29 Glenn Morris <rgm@gnu.org>
7854
7855 * buffer.c (word-wrap): Doc fix.
7856 * xdisp.c (truncate-partial-width-windows): Doc fix.
7857 Increase default to 50.
7858
78592008-08-29 Chong Yidong <cyd@stupidchicken.com>
7860
7861 * xdisp.c (update_tool_bar_unwind): New function.
7862 (update_tool_bar): Temporarily set selected frame before building
7863 tool-bar items.
7864
78652008-08-28 Michael Albinus <michael.albinus@gmx.de>
7866
7867 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7868 snprintf, respectively.
7869 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7870
78712008-08-28 Chong Yidong <cyd@stupidchicken.com>
7872
7873 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7874 LDFLAGS to GNUstep CC invocation.
7875
78762008-08-27 Chong Yidong <cyd@stupidchicken.com>
7877
7878 * indent.c (Fvertical_motion): Revert last change. Handle the
7879 general case where we are moving forward, and PT spans multiple
7880 screen lines.
7881
7882 * eval.c (find_handler_clause): Temporarily increase
7883 max-lisp-eval-depth while printing the backtrace buffer, to
7884 guarantee that help-mode code can run.
7885
78862008-08-27 Eli Zaretskii <eliz@gnu.org>
7887
7888 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7889 colors under -rv.
7890 (IT_set_frame_parameters): Don't swap foreground and background
7891 colors if `(reverse . t)' is present in the frame properties.
7892 (internal_terminal_init): Call init_frame_faces only for the
7893 initial frame.
7894
78952008-08-27 Andreas Schwab <schwab@suse.de>
7896
7897 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7898
78992008-08-27 Andreas Schwab <schwab@suse.de>
7900
7901 * search.c (search_buffer): Set char_base to zero only at the end.
7902
79032008-08-27 Kenichi Handa <handa@m17n.org>
7904
b8ff72fa 7905 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7906
79072008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7908
7909 * xterm.c (x_term_init): Temporarily hide the partially
7910 initialized terminal while calling vendor-specific-keysyms.
7911
79122008-08-26 Eli Zaretskii <eliz@gnu.org>
7913
7914 * msdos.c (internal_terminal_init): Most initializations done only
7915 once, especially initial_screen_colors[] and termscript open.
7916
79172008-08-26 Chong Yidong <cyd@stupidchicken.com>
7918
7919 * eval.c (Fcondition_case): Doc fix.
7920
7921 * widgetprv.h (EmacsFramePart): Change font member to the new font
7922 struct.
7923
7924 * widget.c: Include character.h and font.h for XSETFONT.
7925 (setup_frame_gcs): Compute X font id from font struct, just once.
7926
79272008-08-26 Eli Zaretskii <eliz@gnu.org>
7928
7929 * term.c (get_named_tty): Fix last change.
7930
79312008-08-26 Chong Yidong <cyd@stupidchicken.com>
7932
7933 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7934 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7935
79362008-08-25 Eli Zaretskii <eliz@gnu.org>
7937
7938 * frame.c (do_switch_frame): Mark previously displayed frame as
7939 obscured for FRAME_MSDOS_P frames as well.
7940
79412008-08-24 Eli Zaretskii <eliz@gnu.org>
7942
7943 * frame.c (make_terminal_frame): Initialize f->terminal,
7944 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7945 Set the top frame to newly created frame.
7946 (Fmake_terminal_frame): Reuse the_only_display_info.
7947
7948 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7949 estimating available memory.
7950
b97439ce 79512008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7952
7953 * nsterm.m (ns_draw_window_cursor): Don't call
7954 NSDisableScreenUpdates and NSEnableScreenUpdates on
7955 non-NS_IMPL_COCOA systems.
7956
79572008-08-23 Andreas Schwab <schwab@suse.de>
7958
7959 * process.c (procfs_system_process_attributes): Fix use of
7960 uninitialized variables.
7961
79622008-08-23 Eli Zaretskii <eliz@gnu.org>
7963
7964 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7965
7966 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7967 calling tty-set-up-initial-frame-faces.
7968
b8ff72fa
SM
7969 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7970 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7971
7972 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7973 addition to output_termcap.
7974
7975 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7976
7977 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7978 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7979 highlight.
7980
7981 * process.c [!subprocesses]: Define QCname.
7982 (syms_of_process): Intern and staticpro it.
7983
7984 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7985 Adjust for changes in encoding/decoding routines.
7986 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7987 encode_coding and decode_coding.
7988
b8ff72fa 7989 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7990
7991 * dosfns.c: Include frame.h before termhooks.h.
7992 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7993 variable termscript.
7994
7995 * s/msdos.h (USER_FULL_NAME): Define.
7996 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7997
7998 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7999 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8000 pw->pw_gecos.
8001
8002 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8003 SELECTED_FRAME as additional (1st) argument.
8004 (tty_read_avail_input): Handle output_msdos_raw in
8005 addition to output_termcap.
8006
8007 * msdos.c: Include frame.h before termhooks.h.
8008 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8009 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8010 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8011 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8012 (IT_set_terminal_modes, IT_reset_terminal_modes)
8013 (IT_set_frame_parameters): Use tty->termscript instead of a global
8014 variable termscript.
8015 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8016 global variable terminal_coding. Don't refer to
8017 Vnonascii_translation_table.
8018 (internal_terminal_init): Set Vwindow_system in current_kboard.
8019 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8020 Announce date and time of session start, if termscript is open.
8021 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8022 term.c:init_tty). Open termscript only of not already open.
8023 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8024 here instead of dos_ttraw. Don't initialize display if this is an
8025 initial tty. Don't set FRAME_FONT.
8026 (Vwindow_system_version): Bump to 23.
8027 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8028 is available, set up mouse_position_hook.
8029 (dos_ttraw, IT_set_terminal_modes): If called with initial
8030 terminal, do nothing.
8031 (IT_set_frame_parameters): Handle the Qtty_type frame
8032 parameter by calling internal_terminal_init.
8033 (dos_set_window_size, show_mouse_face)
8034 (clear_mouse_face, IT_note_mode_line_highlight)
8035 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8036 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8037 (initialize_msdos_display): New function.
8038 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8039 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8040 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8041 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8042 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8043 (request_sigio, unrequest_sigio): Don't define, now defined on
8044 sysdep.c.
8045 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8046
8047 * term.c [MSDOS]: Include msdos.h.
8048 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8049 conditional to DOS_NT. Allow only one call to this function in a
8050 session. Don't allocate a new struct tty_display_info; instead,
8051 reuse the_only_display_info. Call get_tty_size to get screen
8052 dimensions. Call init_baud_rate to set bad_rate.
8053 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8054 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8055 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8056 (get_tty_terminal, get_named_tty, Ftty_type)
8057 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8058 output_termcap.
b8ff72fa
SM
8059 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8060 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8061 only when subprocesses are supported.
aac0c6e3
MR
8062
8063 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8064 f->output_data.x.
8065 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8066 terminal devices.
8067
5582fbc7 8068 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8069 x_output.
8070 (FRAME_FONT): Use output_data.tty.
8071 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8072 (struct x_display_info): Rename from display_info. Update all users in
8073 msdos.c.
aac0c6e3 8074 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8075 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8076 (dos_ttraw): Update prototype.
8077
8078 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8079 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8080
80812008-08-23 Jason Rumney <jasonr@gnu.org>
8082
8083 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8084 (fn_TIFFSetDirectory): New library function used.
8085 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8086 (tiff_load): Use :index to select among multiple images. Set count
8087 property when multiple images exist.
8088 (gif_format): Use :index, not :image.
8089
80902008-08-23 Chong Yidong <cyd@stupidchicken.com>
8091
8092 * xdisp.c (try_scrolling): Check INT_MAX instead of
8093 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8094 to obtain INT_MAX.
8095
80962008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8097
8098 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8099
81002008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8101
8102 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8103 GNUstep library location.
8104
81052008-08-21 Chong Yidong <cyd@stupidchicken.com>
8106
8107 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8108 before using it.
8109
8110 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8111
81122008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8113
8114 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8115 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8116 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8117 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8118 (EmacsApp-cursor_blink_handler): Remove declaration.
8119 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8120 match 01 Feb 2008 changes in xterm.c.
8121 (ns_read_socket): Add cast to avoid warning.
8122 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8123 GNUstep.
8124
81252008-08-20 Chong Yidong <cyd@stupidchicken.com>
8126
8127 * xselect.c (x_get_foreign_selection): Return nil if desired
8128 selection could not be obtained, instead of signalling an error.
8129
81302008-08-20 David Reitter <david.reitter@gmail.com>
8131
8132 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8133 * nsterm.m: Remove ns-specific code for cursor blinking.
8134 (ns_draw_window_cursor): Clear cursor properly rather than
8135 redrawing the area. Respect width of bar cursors.
8136 These changes enable the use of generic blink-cursor-mode and
8137 generic cursor types in NS and support smooth cursor movements (do
8138 not blink off after command).
8139 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8140 Nextstep, too.
8141
81422008-08-19 Kenichi Handa <handa@m17n.org>
8143
8144 * font.c (Vfont_log_deferred): New variable.
8145 (font_add_log): Check Vfont_log_deferred.
8146 (font_deferred_log): New function.
8147
8148 * font.h (font_deferred_log): Extern it.
8149
8150 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8151 for sorting.
8152 (face_for_char): Use deferred log.
8153
81542008-08-18 Kenichi Handa <handa@m17n.org>
8155
8156 * fontset.c (face_for_char): Add font log.
8157
8158 * font.c (font_add_log): Add the font properties :script, :lang,
8159 and :otf in the log.
8160
81612008-08-17 Chong Yidong <cyd@stupidchicken.com>
8162
8163 * xdisp.c: Remove dead code.
8164 (handle_invisible_prop, next_overlay_string): Defer call to
8165 setup_for_ellipsis.
8166 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8167
81682008-08-15 Chong Yidong <cyd@stupidchicken.com>
8169
8170 * xfaces.c (lookup_derived_face): Properly handle possible zero
8171 return value of get_lface_attributes.
8172 (merge_faces): Don't tell lookup_derived_face to signal an error
8173 if face is not found.
8174
8175 * dired.c (Fdirectory_files): Doc fix.
8176
8177 * process.c (make_process): Initialize kill_without_query struct
8178 member.
8179
81802008-08-15 Eli Zaretskii <eliz@gnu.org>
8181
8182 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8183 Alternative calculation of totphys for Visual Studio 6.
8184
8185 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8186
8187 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8188 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8189 All users changed.
8190 (stat): Only root directory passed to GetDriveType. Allow RAM
8191 disk as well as local fixed disk when w32-get-true-file-attributes
8192 is set to `local'.
8193 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8194 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8195 (w32_cached_id, w32_add_to_cache): New functions.
8196 (get_name_and_id): Look account names in the cache before calling
8197 lookup_account_sid.
8198 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8199 New initialization flags.
8200 (globals_of_w32): Initialize them to zero.
8201 (w32_system_process_attributes): Use w32_cached_id and
8202 w32_add_to_cache.
8203
82042008-08-14 Lawrence Mitchell <wence@gmx.li>
8205
8206 * lread.c (Fread_char, Fread_char_exclusive): If no character
8207 event is read before timeout is reached, return nil, rather than
8208 converting to a number.
8209
82102008-08-14 Chong Yidong <cyd@stupidchicken.com>
8211
8212 * fns.c (use_dialog_box): Doc fix.
8213
8214 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8215 on OS X.
8216
82172008-08-13 Chong Yidong <cyd@stupidchicken.com>
8218
8219 * frame.c (Qns_parse_geometry): New var.
8220 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8221
82222008-08-11 Chong Yidong <cyd@stupidchicken.com>
8223
8224 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8225 space character in calculating tabs.
8226
82272008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8228
8229 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8230
82312008-08-10 Glenn Morris <rgm@gnu.org>
8232
8233 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8234 silence gcc "limited range of data type" warnings in some
8235 make_fixnum_or_float calls.
8236
82372008-08-09 Eli Zaretskii <eliz@gnu.org>
8238
8239 * w32.c (w32_system_process_attributes): If the process does not
8240 exist, return nil.
8241
8242 * w32.c: Include thelp32.h, psapi.h and coding.h.
8243 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8244 declarations.
8245 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8246 (Process32Next_Proc): New typedefs.
8247 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8248 (g_b_init_process32_next, g_b_init_open_thread_token)
8249 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8250 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8251 (g_b_init_get_process_working_set_size)
8252 (g_b_init_global_memory_status_ex): New static variables.
8253 (globals_of_w32): Initialize them.
8254 (create_toolhelp32_snapshot, process32_first, process32_next)
8255 (open_thread_token, impersonate_self, revert_to_self)
8256 (get_process_memory_info, get_process_working_set_size)
8257 (global_memory_status, global_memory_status_ex): New wrapper
8258 functions.
8259 (w32_list_system_processes, w32_system_process_attributes)
8260 (enable_privilege, restore_privilege, ltime, process_times):
8261 New functions.
8262 (convert_time_raw): New function.
8263 (convert_time): Remove conversion of FILETIME into time in 100
8264 nsec units, call convert_time_raw instead.
8265
8266 * process.h (w32_list_system_processes, w32_system_process_attributes):
8267 Add prototypes.
8268 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8269 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8270 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8271 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8272
8273 * process.c (Fsystem_process_attributes): Doc fix.
8274
82752008-08-08 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8278 a continued multi-char glyph; if so, advance to the actual glyph.
8279
82802008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8281
8282 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8283
8284 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8285 (.m.o): Use it.
8286 * config.in: Regenerate.
8287
82882008-08-07 Chong Yidong <cyd@stupidchicken.com>
8289
8290 * xdisp.c (redisplay_window): Revert last change.
8291 (try_window): Check bottom scroll margin too.
8292
82932008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8294
8295 * config.in: Regenerate.
8296
8297 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8298 -list-load-path-shadows'.
8299 (nsgui.h): Reduce number of things depending on it.
8300
83012008-08-06 Chong Yidong <cyd@stupidchicken.com>
8302
8303 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8304 instead of window-end which does the wrong thing at eob.
8305 (try_cursor_movement): Minor optimization.
8306 (redisplay_window): If scroll margin is defined, don't assume
8307 window doesn't need scrolling.
8308
83092008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8310
8311 * config.in: Regenerate.
8312
8313 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8314 (mostlyclean): Don't delete *.d under NS.
8315
8316 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8317
83182008-08-06 Kenichi Handa <handa@m17n.org>
8319
8320 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8321
83222008-08-06 Andreas Schwab <schwab@suse.de>
8323
8324 * config.in: Regenerate.
8325
83262008-08-05 Chong Yidong <cyd@stupidchicken.com>
8327
8328 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8329 forcing a window start.
8330
8331 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8332 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8333
83342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8335
8336 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8337 argument.
8338
83392008-08-05 Juanma Barranquero <lekktu@gmail.com>
8340
8341 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8342 <scroll-down-aggressively, before-change-functions>:
8343 <after-change-functions>: Reflow docstrings.
8344
83452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8346 Ken Raeburn <raeburn@gnu.org>
8347
8348 Dock menu customization, based on a patch by Ken Raeburn, plus some
8349 other fixes.
8350 * nsmenu.m (dockMenu): New variable.
8351 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8352
8353 * nsterm.h (dockMenu): Declare.
8354
8355 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8356 (ns_term_init): Initialize dockMenu.
8357 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8358 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8359 left.
8360
8361 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8362
83632008-08-04 Chong Yidong <cyd@stupidchicken.com>
8364
8365 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8366
8367 * config.in: Regenerate.
8368
83692008-08-04 Seiji Zenitani <zenitani@mac.com>
8370
8371 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8372
83732008-08-04 Chong Yidong <cyd@stupidchicken.com>
8374
8375 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8376
83772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8378
8379 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8380
8381 * keyboard.h: Comment an #endif.
8382
8383 * lisp.h (have_menus_p): Adjust comment.
8384
8385 * menu.c (find_and_return_menu_selection): Fix comparison with
8386 client_data.
8387
8388 * nsmenu.m (popup_activated_flag): New variable.
8389 (popup_activated): New function.
8390 (menu-or-popup-active-p): New exported lisp definition.
8391 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8392 when popup done.
8393 (ns_popup_dialog): Set popup_activated_flag.
8394
8395 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8396 version for GNUstep (handled by conditional typedef in nsterm.m).
8397 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8398 in rgb.txt).
8399
8400 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8401
8402 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8403
8404 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8405
8406 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8407 shortcircuit if popup_activated like GTK and X toolkit.
8408
8409 * m/inter386.h: Change DARWIN to DARWIN_OS.
8410
8411 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8412 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8413 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8414 comment on NO_SOCK_SIGIO.
8415
84162008-08-03 Chong Yidong <cyd@stupidchicken.com>
8417
8418 * nsterm.m (windowDidResize): Remove stopModal call.
8419
84202008-08-03 Andreas Schwab <schwab@suse.de>
8421
8422 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8423 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8424
84252008-08-02 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8428 Don't use uninitialized pointer variable when using getrlimit.
8429
84302008-08-02 Jason Rumney <jasonr@gnu.org>
8431
8432 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8433
84342008-08-02 Eli Zaretskii <eliz@gnu.org>
8435
8436 * alloc.c (NSTATICS): Bump to 0x640.
8437
8438 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8439
8440 * lisp.h: Add prototype for directory_files_internal.
8441
8442 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8443 New functions.
8444 (syms_of_process): Defsubr them. Add initializations for various
8445 Q* symbols used in procfs_system_process_attributes.
8446 (procfs_list_system_processes, procfs_system_process_attributes)
8447 [HAVE_PROCFS]: New functions.
8448 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8449 (procfs_get_total_memory): New functions.
8450
84512008-08-01 Juanma Barranquero <lekktu@gmail.com>
8452
8453 * xfaces.c (Fx_load_color_file): Fix previous change;
8454 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8455
84562008-08-01 Michael Albinus <michael.albinus@gmx.de>
8457
8458 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8459
84602008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8461
8462 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8463
84642008-08-01 Chong Yidong <cyd@stupidchicken.com>
8465
8466 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8467
8468 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8469 define NSApplicationDelegateReplySuccess.
8470 (EmacsView -converstationIdentifier): Use long instead of
8471 NSInteger for GNUstep, since it doesn't have NSInteger.
8472
8473 * xmenu.c: Revert last change.
8474
8475 * keyboard.h: Fix last change.
8476
84772008-08-01 Juanma Barranquero <lekktu@gmail.com>
8478
8479 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8480 on Windows.
8481
84822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8483
8484 Warning clearing and clean-up in NS port.
8485 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8486 Add prototypes.
8487 * nsgui.h (FACE_DEFAULT): Remove, unused.
8488 (XGCValues): Change colors to unsigned long.
8489 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8490 nsterm.m.
8491 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8492 (ns_list_fonts): Remove, unused.
8493 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8494 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8495 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8496 (nsfont_draw): Compare face colors to 0, not nil.
8497 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8498 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8499 (-addSubmenuWithTitle:): Use NSMenuItem class.
8500 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8501 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8502 (ns_clip_to_row): Make gc arg a BOOL.
8503 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8504 ns_clip_to_row() call.
8505 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8506 used). Cast FRAME_FONT assignments.
8507 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8508 (ns_string_to_lispmod): Change arg to const char.
8509 (ns_term_init): Use NSMenuItem class.
8510 (EmacsApp -openFile:): Move to different section of file.
8511 (EmacsApp -application:openFiles:): Don't return a value, call
8512 -replyToOpenOrPrint:.
8513 (EmacsView -keyDown:): Fix up cast.
8514 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8515 (EmacsView -menuDown:): Cast tag in call to
8516 find_and_call_menu_selection().
8517 (ns_list_fonts): Remove, unused.
8518 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8519 (ns_fontname_to_xlfd): Make static.
8520 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8521 Remove prototypes (now in keyboard.h).
8522 (next_menubar_widget_id): Remove, unused.
8523 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8524 Remove prototypes (now in keyboard.h).
8525 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8526
85272008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8528
8529 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8530 (floatfns.o): Depend on syssignal.h.
8531 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8532
8533 * systty.h: Fix previous change that removed BSD_TERMIOS.
8534 Add comments to #ifdefs.
8535
85362008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8537
8538 * w32fns.c (w32-load-color-file): Remove.
8539 (x-open-connection): Use renamed Fx_load_color_file.
8540 * xfaces.c (x-load-color-file): Add.
8541 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8542 Emacs.clr.
8543 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8544
85452008-07-31 Michael Albinus <michael.albinus@gmx.de>
8546
8547 * dbusbind.c (Fdbus_call_method_asynchronously)
8548 (Fdbus_method_error_internal): New defuns.
8549 (xd_read_message): Handle also reply messages.
8550 (Vdbus_registered_functions_table): Extend docstring.
8551
85522008-07-31 Juanma Barranquero <lekktu@gmail.com>
8553
8554 * keyboard.c (gobble_input): Fix previous change.
8555
85562008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8557
8558 * bitmaps/README:
8559 * xfns.c:
8560 * termcap.c:
8561 * term.c:
8562 * syswait.h:
8563 * systty.h:
8564 * systime.h:
8565 * syssignal.h:
8566 * sysdep.c:
8567 * process.h:
8568 * process.c:
8569 * print.c:
8570 * ndir.h:
8571 * lread.c:
8572 * keyboard.c:
8573 * getpagesize.h:
8574 * floatfns.c:
8575 * fileio.c:
8576 * emacs.c:
8577 * doc.c:
8578 * dispnew.c:
8579 * dired.c:
8580 * data.c:
8581 * callproc.c:
8582 * buffer.c:
8583 * README:
8584 * Makefile.in:
8585 * s/template.h:
8586 * s/msdos.h:
8587 * m/vax.h: Remove VMS support.
8588 * s/vms.h:
8589 * vlimit.h:
8590 * uaf.h:
8591 * temacs.opt:
8592 * param.h:
8593 * ioctl.h: Remove file.
8594
85952008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8596
8597 * s/ms-w32.h (MULTI_KBOARD): Remove.
8598 * xterm.c:
8599 * xselect.c:
8600 * xfns.c:
8601 * window.c:
8602 * w32term.c:
8603 * w32fns.c:
8604 * terminal.c:
8605 * termhooks.h:
8606 * term.c:
8607 * sysdep.c:
8608 * keyboard.h:
8609 * keyboard.c:
8610 * frame.h:
8611 * frame.c:
8612 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8613 * config.in: Regenerate.
8614
86152008-07-30 Jason Rumney <jasonr@gnu.org>
8616
8617 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8618
8619 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8620 (w32font_open_internal): Get unicode version of textmetrics.
8621 Don't enable or disable glyph indices here.
8622 (w32font_open): Disable use of glyph indices.
8623
8624 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8625
86262008-07-30 Chong Yidong <cyd@stupidchicken.com>
8627
8628 * minibuf.c (Vread_buffer_function): Doc fix.
8629
86302008-07-30 John Paul Wallington <jpw@pobox.com>
8631
8632 * minibuf.c (read_buffer_completion_ignore_case): New var.
8633 (Fread_buffer): Use it.
8634
86352008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8636
8637 * systty.h (sensemode): Remove empty #if. Remove reference to
8638 BSD_TERMIOS, unused.
8639
8640 * sysdep.c: Remove reference to DGUX.
8641 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8642
8643 * config.in: Regenerate.
8644
86452008-07-30 Jason Rumney <jasonr@gnu.org>
8646
8647 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8648
86492008-07-29 Jason Rumney <jasonr@gnu.org>
8650
8651 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8652 is populated.
8653 (uniscribe_encode_char): Always use uniscribe.
8654 Avoid using context if cache is populated.
8655
86562008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8657
8658 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8659 open menu.
8660
8661 * gtkutil.c (menu_nav_ended): Remove.
8662 (create_menus): Remove signal connect for menu_nav_ended.
8663
86642008-07-28 Chong Yidong <cyd@stupidchicken.com>
8665
8666 * xdisp.c (redisplay_window): Check return value of
8667 compute_window_start_on_continuation_line before forcing a window
8668 start.
8669
86702008-07-28 Jason Rumney <jasonr@gnu.org>
8671
8672 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8673
8674 * w32term.c (w32_enable_unicode_output, cleartype_active):
8675 Remove obsolete display options.
8676 (x_draw_glyph_string_background): Don't use old cleartype_active
8677 workaround.
8678 (w32_initialize): Remove cleartype_active initialization.
8679 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8680
86812008-07-28 Andreas Schwab <schwab@suse.de>
8682
8683 * lisp.h (init_weak_hash_tables, syms_of_font)
8684 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8685 (remove_hash_entry): Don't declare.
8686 * eval.c (maybe_call_debugger): Make static and move before use.
8687 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8688 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8689 * xterm.h (x_set_frame_alpha): Declare.
8690
86912008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8692
8693 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8694 (create_menus): Connect selection-done to menu_nav_ended.
8695
86962008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8697
8698 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8699 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8700 parameter with read of 'alpha' one.
8701 (Qns_frame_parameter): Remove.
5582fbc7 8702 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8703 (next-selection-coding-system, Vselection_coding_system)
8704 (Vnext_selection_coding_system): Drop.
8705
87062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8707
8708 * nsfns.m (do-applescript, do_applescript): Rename to
8709 ns-do-applescript, ns_do_applescript, and move within file.
8710
87112008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8712
8713 Remove support for Mac Carbon.
8714 * mactoolbox.c:
8715 * macterm.h:
8716 * macterm.c:
8717 * macselect.c:
8718 * macmenu.c:
8719 * macgui.h:
8720 * macfns.c:
8721 * mac.c: Remove file.
8722 * s/darwin.h:
8723 * m/intel386.h:
8724 * xfaces.c:
8725 * xdisp.c:
8726 * window.c:
8727 * tparam.c:
8728 * termhooks.h:
8729 * termcap.c:
8730 * term.c:
8731 * syssignal.h:
8732 * sysselect.h:
8733 * sysdep.c:
8734 * process.c:
8735 * lread.c:
8736 * lisp.h:
8737 * keyboard.c:
8738 * image.c:
8739 * fringe.c:
8740 * frame.h:
8741 * frame.c:
8742 * fontset.c:
8743 * font.h:
8744 * font.c:
8745 * fns.c:
8746 * fileio.c:
8747 * emacs.c:
8748 * dispnew.c:
8749 * dispextern.h:
8750 * config.in:
8751 * atimer.c:
2ae37cf0 8752 * Makefile.in: Remove code for Carbon.
aac0c6e3 8753
f0131492 87542008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8755
8756 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8757
87582008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8759
8760 * macterm.h (kCGBitmapByteOrder32Host): New define for
8761 non-universal SDKs.
8762
8763 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8764 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8765
8766 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8767 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8768
87692008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8770
8771 * w32inevt.c: Include dispextern.h.
8772
87732008-07-26 Andreas Schwab <schwab@suse.de>
8774
8775 * print.c (print_object): Fix off-by-one in last change.
8776
87772008-07-25 Juanma Barranquero <lekktu@gmail.com>
8778
8779 * term.c (syms_of_term): Don't initialize default_orig_pair,
8780 default_set_foreground and default_set_background on Windows.
8781
87822008-07-25 Jason Rumney <jasonr@gnu.org>
8783
8784 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8785 ScriptItemize. Clean up return value checking. Remove unused
8786 variables.
8787 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8788 shaping engine.
8789
8790 * w32font.c (w32font_has_char): Handle the case where we can't
8791 determine the script for a character.
8792
87932008-07-25 Chong Yidong <cyd@stupidchicken.com>
8794
8795 * term.c (syms_of_term): Initialize default_orig_pair,
8796 default_set_foreground, and default_set_background.
8797
8798 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8799 clash (bug#86).
8800 (getloadavg): Callers changed.
8801
8802 * image.c (svg_load_image): Fix last change.
8803 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8804 image size is valid. Use g_object_unref instead of deprecated
8805 rsvg_handle_free to free rsvg handle.
8806 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8807
88082008-07-25 Jason Rumney <jasonr@gnu.org>
8809
8810 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8811 surrogates before looking up glyph index.
8812 (w32font_text_extents): Encode as surrogates if falling back to
8813 functions that need UTF-16 wide chars.
8814
8815 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8816 BMP as surrogates before looking up glyph index.
8817
88182008-07-25 Chong Yidong <cyd@stupidchicken.com>
8819
8820 * image.c (svg_load_image): Check for failure in return value of
8821 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8822
88232008-07-25 Jason Rumney <jasonr@gnu.org>
8824
8825 * w32font.c (Fx_select_font): Reverse sense of second arg.
8826
88272008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8828
8829 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8830 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8831
8832 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8833 (PURESIZE): Use it.
8834
88352008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8836
8837 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8838 * m/alpha.h (TEXT_END):
8839 * m/ibmrs6000.h (TEXT_END):
8840 * m/macppc.h (TEXT_END):
8841 * s/darwin.h (TEXT_END):
8842 * s/msdos.h (TEXT_END): Remove, unused.
8843 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8844 * s/cygwin.h: Remove comment.
8845
8846 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8847 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8848 * m/intel386.h (DOT_GLOBAL_START):
8849 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8850 (USG): Remove, file not used on USG platforms.
8851
8852 * Makefile.in (HAVE_X11): Remove empty #else.
8853
88542008-07-24 Andreas Schwab <schwab@suse.de>
8855
8856 * fileio.c (Finsert_file_contents): Properly adjust undo list
8857 after format conversion.
8858
88592008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8860
8861 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8862 (menu_nav_ended): Remove.
8863 (create_menus): Remove signal connect for menu_nav_ended.
8864 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8865 create_menus.
8866 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8867
88682008-07-23 Jason Rumney <jasonr@gnu.org>
8869
8870 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8871 with opened font.
8872 (w32font_open): Set font type to gdi.
8873
8874 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8875
88762008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8877
8878 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8879 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8880 defines it.
8881 * unexec.c (ADDR_CORRECT): Define unconditionally.
8882
8883 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8884
8885 * unexec.c: Remove code depending on !COFF and USG, the file is
8886 not used for such systems.
8887
8888 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8889 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8890 (LD_SWITCH_SYSTEM_1): Remove, update users.
8891
8892 * s/darwin.h (DATA_END):
8893 * m/intel386.h (DATA_END):
8894 * m/ibmrs6000.h (DATA_END):
8895 * m/alpha.h (DATA_END): Remove, unused.
8896
8897 * config.in: Regenerate.
8898 * s/ms-w32.h (subprocesses): Define unconditionally.
8899 * s/template.h (subprocesses): Update comment.
8900 * s/vms.h (subprocesses):
8901 * s/usg5-4.h (subprocesses):
8902 * s/hpux10-20.h (subprocesses):
8903 * s/gnu-linux.h (subprocesses):
8904 * s/cygwin.h (subprocesses):
8905 * s/bsd-common.h (subprocesses):
8906 * s/aix4-2.h (subprocesses):
8907 * s/darwin.h (subprocesses): Do not define, defined by default now.
8908
8909 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8910 Remove all references.
8911 (temacs): Add GNUstep specific ld flags.
8912
8913 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8914 similarly to what X does.
8915
89162008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8917
8918 * nsfns.m (x-list-fonts): Remove.
8919 (syms_of_nsfns): Drop the x-list-fonts declaration.
8920 * nsterm.m: Get rid of remaining "//" comments.
8921
89222008-07-22 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8925
8926 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8927 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8928 (Fns_own_selection_internal, Fx_disown_selection_internal)
8929 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8930
8931 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8932 ... */' style of docstrings. Doc fixes.
8933
89342008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8935
8936 * terminfo.c (UP, BC, PC): Undo previous change.
8937
8938 * nsfns.m: Rename ns prefixed functions/variables to the
8939 corresponding x versions. Update references.
8940
89412008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8942
8943 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8944
89452008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8946
8947 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8948 Remove forwarding functions.
8949 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8950 non-static.
8951 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8952 non-static.
8953 (ns_frame_parm_handlers): Use the new names.
8954 (syms_of_nsfns): Move to the end of file.
8955
8956 * nsterm.m (syms_of_nsterm): Move to the end of file.
8957
8958 * dispnew.c (init_display): Remove code for X10.
8959
89602008-07-22 Jason Rumney <jasonr@gnu.org>
8961
8962 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8963 bare drive.
8964
89652008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8966
8967 * nsterm.m (syms_of_nsterm): Remove debugging println.
8968
89692008-07-22 David Reitter <david.reitter@gmail.com>
8970
8971 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8972 Carbon implementation of the same functionality: execute arbitrary
8973 AppleScript code.
8974
89752008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8976
8977 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8978 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8979 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8980 (Fx_display_mm_height, Fx_display_mm_width)
8981 (Fx_display_backing_store, Fx_display_visual_class)
8982 (Fx_display_save_under, Fx_open_connection)
8983 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8984 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8985 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8986 (Fx_display_pixel_width, Fx_display_pixel_height)
8987 (Fx_display_usable_bounds, Fx_display_planes)
8988 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8989 ... */' style of docstrings.
8990
89912008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8992
8993 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8994 on this platform.
8995 (mips):
8996 * m/iris4d.h (mips): Do not define.
8997 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8998
8999 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9000
9001 * image.c:
9002 * nsfns.m:
9003 * nsselect.m:
9004 * nsterm.h:
9005 * nsterm.m: Rename ns prefixed functions/variables to the
9006 corresponding x versions. Update references.
9007
9008 * m/ibms390x.h (NO_REMAP): Do not undefine.
9009
9010 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9011
90122008-07-21 Chong Yidong <cyd@stupidchicken.com>
9013
9014 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9015 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9016 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9017 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9018 (Fns_display_mm_height, Fns_display_mm_width)
9019 (Fns_display_backing_store, Fns_display_visual_class)
9020 (Fns_display_save_under, Fns_open_connection)
9021 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9022 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9023 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9024 (Fns_display_pixel_width, Fns_display_pixel_height)
9025 (Fns_display_usable_bounds, Fx_display_planes)
9026 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9027
90282008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9029
9030 * print.c (print_object): Check print_depth before searching for
9031 circularities.
9032
90332008-07-21 Michael Albinus <michael.albinus@gmx.de>
9034
9035 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9036 only sprintf.
9037
90382008-07-21 Kenichi Handa <handa@m17n.org>
9039
9040 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9041
90422008-07-20 Andreas Schwab <schwab@suse.de>
9043
9044 * syntax.c (find_start_pos, find_start_value)
9045 (find_start_value_byte, find_start_begv, find_defun_start)
9046 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9047
90482008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9049
9050 * s/sol2-3.h: Insert contents of s/sol2.h.
9051 (LD_SWITCH_SYSTEM): Remove redundant definition.
9052 * s/sol2.h: Remove, unused.
9053
90542008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9055
9056 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9057
90582008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9059
9060 * Makefile.in (ns_appdir): Fix typo in find command.
9061
90622008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9063
9064 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9065
9066 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9067 added not supported anymore.
9068
9069 * s/usg5-4-2.h (LIBS_SYSTEM):
9070 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9071
9072 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9073 * s/lynxos.h (GETPGRP_NO_ARG):
9074 * s/hpux10-20.h (NO_SIOCTL_H):
9075 * s/gnu.h (GETPGRP_NO_ARG):
9076 * s/gnu-linux.h (NO_SIOCTL_H):
9077 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9078 * s/cygwin.h (GETPGRP_NO_ARG):
9079 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9080 (C_DEBUG_SWITCH): Remove duplicate definition.
9081
9082 * m/ibms390.h: Remove boilerplate comments.
9083
9084 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9085
9086 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9087 (wait_reading_process_output): Remove code for SunOS, platform not
9088 supported anymore. Use SOLARIS2 instead of sun.
9089
90902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9091
9092 * font.c (font_open_by_name): Under NS, default lface height to zero.
9093 (font_open_for_lface): Under NS, set size based on frame fontsize.
9094 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9095 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9096
90972008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9098
9099 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9100 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9101 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9102 YES/NO.
9103 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9104 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9105 * Makefile.in (clean): Clear out build destination dir.
9106
91072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9108
9109 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9110 xterm, xselect.
9111 * lisp.h: Remove declaration of hash_remove.
9112 * nsgui.h: Remove redefinitions of hash_remove.
9113 * fns.c (hash_remove): Rename to hash_remove_from_table.
9114
91152008-07-19 Seiji Zenitani <zenitani@mac.com>
9116
9117 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9118 strdup() the family UTF8String before modifying it.
9119
91202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9121
9122 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9123 NS_FACE_BACKGROUND with 0 instead of nil.
9124 * nsfont.m (nsfont_draw): Same.
9125
91262008-07-19 Chong Yidong <cyd@stupidchicken.com>
9127
9128 * nsfns.m (ns_set_background_color): Fix crash.
9129
91302008-07-18 Chong Yidong <cyd@stupidchicken.com>
9131
9132 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9133
91342008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9135
9136 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9137
91382008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9139
9140 * gtkutil.c: Include <config.h> instead of "config.h".
9141
9142 * lisp.h (Foverlay_buffer): Add EXFUN.
9143
9144 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9145 child process to complete child_setup. Undo 2005-09-21 change.
9146
9147 * s/darwin.h: Mention setsid after vfork.
9148
91492008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9150
9151 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9152 Depend on macgui.h.
9153
9154 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9155 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9156
9157 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9158 and f19.
9159 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9160
9161 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9162 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9163 Remove enumerators.
9164
9165 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9166 Check if FACE_FROM_ID returns NULL.
9167
91682008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9169
9170 * w32inevt.c (change_frame_size): Remove extern declaration.
9171 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9172 change_frame_size.
9173
91742008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9175
9176 * getloadavg.c: Revert last change (2008-07-15).
9177
91782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9179
9180 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9181 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9182 from configure.
9183
91842008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9185
9186 * s/sol2.h:
9187 * s/sol2-4.h: Reorganize conditionals.
9188
9189 * ecrt0.c: Remove code depending on m68000, not used anymore.
9190
9191 * fns.c (hash_remove): Make static.
9192 * lisp.h (hash_remove): Don't prototype.
9193
9194 * m/ibmrs6000.h:
9195 * m/ibms390x.h:
9196 * m/macppc.h: Remove boilerplate comments.
9197
9198 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9199 Solaris, which does not need them.
9200
9201 * m/vax.h: Remove comments about unsupported systems.
9202
9203 * s/darwin.h: Reorganize ifdefs.
9204
92052008-07-17 Andreas Schwab <schwab@suse.de>
9206
9207 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9208
92092008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9210
9211 Use SDATA. Follow coding convention of placing operators at
9212 beginning of next line rather than end of previous line, and placing
9213 spaces around infix operators.
9214
9215 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9216 in case it was defined already.
9217 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9218 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9219 ns_default.
9220 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9221 Lisp_Objects.
9222 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9223 (ns_defined_color, ns_color_to_lisp): Declare.
9224 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9225 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9226 it's accepted even with USE_LISP_UNION_TYPE.
9227 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9228 (update_frame_tool_bar): Remove apparently obsolete tests for
9229 non-integerness of f->tool_bar_lines.
9230 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9231 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9232 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9233 (nsfont_open): Don't confuse NULL for Qnil.
9234 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9235 * menu.h (find_and_call_menu_selection):
9236 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9237 (find_and_return_menu_selection): Always return something.
9238 * frame.h: Include dispextern.h for Display_Info.
9239 (display_x_get_resource): Declare.
9240
92412008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9242
9243 * syntax.c: Remove stdio.h include accidentally introduced in
9244 Emacs.app commit.
9245 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9246 NS_IMPL_COCOA.
9247 * keyboard.c (handle_async_input, input_available_signal): Remove
9248 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9249
92502008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9251
9252 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9253 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9254 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9255 Use SDATA.
9256
9257 * keymap.c: Remove all NS-specific code.
9258 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9259 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9260 where_is_preferred_modifier, return a different value depending on how
9261 preferred is the binding.
9262 (where_is_internal): Adjust accordingly.
9263 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9264 Adjust to new preferred_sequence_p.
9265 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9266 * keyboard.c (parse_solitary_modifier): Not static any more.
9267 * keyboard.h (parse_solitary_modifier): Declare.
9268
92692008-07-16 Andreas Schwab <schwab@suse.de>
9270
9271 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9272 of easymenu.
9273
92742008-07-16 Chong Yidong <cyd@stupidchicken.com>
9275
9276 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9277 that we don't move off the line.
9278
92792008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * keyboard.c (Qsuper): Remove.
9282 (parse_menu_item): Don't call where_is_internal specially for NS.
9283
92842008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9285
9286 * s/gnu-linux.h: Remove boilerplate comments.
9287
9288 * m/alpha.h (__ELF__): Consolidate conditions.
9289
9290 * m/m68k.h (linux): Use GNU_LINUX instead.
9291 Remove boilerplate comments.
9292
9293 * m/intel386.h: Undo refactoring from previous change.
9294 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9295 too, remove dead code.
9296 (linux): Use GNU_LINUX instead.
9297
92982008-07-16 Jason Rumney <jasonr@gnu.org>
9299
9300 * w32gui.h: Repeat 26 June changes lost by last change.
9301
93022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9303
9304 * systty.h: Remove code for Aix on 386, unsupported platform.
9305
9306 * s/ms-w32.h: Remove boilerplate comments.
9307 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9308
9309 * s/gnu-linux.h (TERM): Remove support.
9310 (HAVE_SYSVIPC): Remove, unused.
9311 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9312 for this system.
9313
9314 * process.c: Remove support for IRIS, unused.
9315 Remove support for TERM, not relevant anymore.
9316
9317 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9318 used with the definition.
9319
9320 * s/aix4-2.h (static): Do not undef.
9321
9322 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9323 only used on Aix.
9324 (HAVE_SYSVIPC): Remove, unused.
9325
9326 * m/hp800.h (CANNOT_DUMP): Do not undef.
9327
9328 * m/alpha.h: Fix comment.
9329
9330 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9331 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9332 used by this configuration.
9333 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9334 * unexec.c: Remove code depending on HPUX and
9335 USG_SHARED_LIBRARIES, not used with this file. Remove code
9336 depending on IRIS, unused. Remove if 0-ed code.
9337
9338 * s/template.h: Remove comments about static.
9339
9340 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9341 Remove if 0-ed code.
9342 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9343 were the same as the default.
9344 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9345 Remove boilerplate comments.
9346 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9347 (HAVE_SYSVIPC): Remove, unused.
9348 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9349
9350 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9351 Remove boilerplate comments.
9352 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9353 Remove boilerplate comments.
9354 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9355 Remove boilerplate comments.
9356 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9357
9358 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9359 USG systems which do not use DATA_SEG_BITS.
9360 Refactor code. Remove boilerplate comments.
9361
9362 * m/ibms390.h:
9363 * m/m68k.h:
9364 * s/bsd-common.h:
9365 * s/cygwin.h:
9366 * s/darwin.h:
9367 * s/freebsd.h:
9368 * s/gnu.h:
9369 * s/msdos.h: Remove boilerplate comments.
9370
9371 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9372 do not use this file.
aac0c6e3
MR
9373 (IRIS_4D): Remove, unused.
9374
9375 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9376 do not use this file.
aac0c6e3
MR
9377 (SIGN_EXTEND_CHAR):
9378 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9379 * unexmips.c: Remove file, unused.
9380
9381 * editfns.c (Fuser_full_name): Replace the only use of
9382 USER_FULL_NAME with its value.
9383 * config.in: Regenerate.
9384
93852008-07-16 David Reitter <david.reitter@gmail.com>
9386
9387 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9388 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9389
93902008-07-16 Glenn Morris <rgm@gnu.org>
9391
9392 * emacs.c (system-type): Doc fix.
9393
93942008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9395
9396 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9397 If the cache doesn't work, let's fix it, rather than work around it.
9398
93992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9400
9401 * Makefile.in: Correct additions for nsfont.o in last commit.
9402 * nsfont.m: New file (forgot last commit).
9403
94042008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9405
9406 * callproc.c (set_initial_environment): Initialize
9407 Vprocess_environment under CANNOT_DUMP (fixes crash when
9408 batch-compiling for bootstrap).
9409
94102008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9411 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9412
9413 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9414 fix crash due to different init order.
9415
94162008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9417
9418 Changes and additions for NeXTstep windowing system (Cocoa and
9419 GNUstep) support.
9420
9421 * Makefile.in:
9422 * config.in: Support defines and build commands for NS port.
9423 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9424 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9425 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9426 windowing.
9427 (struct face): Add synth_ital field.
9428 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9429 (init_display): Initialize Vinitial_window_system to "ns" when so
9430 compiled.
9431 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9432 (display_arg): Use under NS.
9433 (main): Under NS, allocate autorelease pool and handle command line
9434 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9435 (standard_args): Add NS-specific args.
9436 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9437 * font.c (DEFAULT_ENCODING): New variable.
9438 (font_find_for_lface): Use it.
9439 (syms_of_font): Load syms_of_nsfont under NS.
9440 * font.h: Declare nsfont_driver when compiled under NS.
9441 * fontset.c: When compiling under NS, include nsterm.h.
9442 (fontset_from_font): Autoconstruct fontset under NS.
9443 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9444 symbol, document and use it.
9445 (do_switch_frame): When for_deletion under Cocoa, add
9446 Fraise_frame(Qnil).
9447 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9448 (x_get_arg): Allow "yes" and "no" as boolean values.
9449 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9450 Qright under Cocoa.
9451 (focus-follows-mouse): Default to 0 under NS.
9452 * frame.h (enum output_method): Add output_ns.
9453 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9454 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9455 (FRAME_WINDOW_P): NS-specific definition.
9456 * fringe.c (max_used_fringe_bitmap): Make public.
9457 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9458 (getloadavg): Use NeXT code under descendant OS's.
9459 * image.c (includes and header section, x_create_bitmap_from_data)
9460 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9461 (image_background_transparent, x_clear_image_1)
9462 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9463 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9464 (x_to_xcolors, x_from_xcolors, x_disable_image)
9465 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9466 other GUIs, including XPM support using code originally written for
9467 Carbon GUI.
9468 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9469 using NS API.
9470 (image_ascent): Use font metrics macros instead of direct struct field
9471 access.
9472 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9473 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9474 Also, handle NS as GTK for menu bar purposes.
9475 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9476 toolkit where they differ.
9477 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9478 use cachelist, still needed under NS.
9479 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9480 (struct widget_value): Define it here for menu.c.
9481 * keymap.c (includes): Include modifier internals.
9482 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9483 NS.
9484 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9485 support for preferring sequences using certain modifiers, specified by
9486 the FIRSTONLY argument.
9487 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9488 under NS GNUstep implementation.
9489 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9490 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9491 * menu.c: Include nsterm.h under NS.
9492 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9493 (free_menubar_widget_tree_value, update_submenu_strings)
9494 (find_and_call_menu_selection): Treat NS as X and NT.
9495 (find_and_return_menu_selection): New function, used for popup menus.
9496 * nsgui.h:
9497 * nsterm.h:
9498 * nsfns.m:
9499 * nsimage.m:
9500 * nsmenu.m:
9501 * nsselect.m:
9502 * nsterm.m: New files.
9503 * process.c (wait_reading_process_output): Under NS, call ns_select()
9504 instead of plain select().
9505 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9506 beginning of buffer.
9507 * sysselect.h (init_process): Rename when compiling under Cocoa to
9508 avoid name conflict.
9509 * termhooks.h (display_info): Add ns_display_info to union.
9510 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9511 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9512 COCOA environment.
9513 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9514 unexec() signature. (Note, this will dump, but the resulting file
9515 crashes; unexosx is used instead; keeping around for reference and
9516 possible aid in getting dump working under GNUstep.)
9517 * w32gui.h (button_type, widget_value): Remove definitions (now in
9518 keyboard.h).
9519 * window.c: Include nsterm.h when compiling under NS.
9520 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9521 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9522 other GUI windowing systems.
9523 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9524 GTK.
9525 (x_consider_frame_title): Under NS, set icon type and frame
9526 modified-state indicator; use ns_set_name_as_filename() when using
9527 formatted title.
9528 (update_window_cursor): Make public when compiling under NS.
9529 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9530 (hourglass_atimer, Vhourglass_delay
9531 * xfaces.c (header section, init_frame_faces, clear_font_table)
9532 (defined_color, unload_color, x_face_list_fonts)
9533 (prepare_face_for_display): Add NS support parallel to other GUIs.
9534 Emulate GCs like other non-X GUIs.
9535 (split_font_name): Don't lowercase font name under NS.
9536 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9537 under NS.
9538 * s/darwin.h: Add support for compilation under NS.
9539
95402008-07-15 Jason Rumney <jasonr@gnu.org>
9541
9542 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9543 (w32_show_hourglass): Rename from show_hourglass.
9544 (w32_hide_hourglass): Rename from hide_hourglass.
9545 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9546 (Vhourglass_delay): Declare extern.
9547 (hourglass_started): Remove.
9548
9549 * xdisp.c (Vhourglass_delay): Remove static.
9550 (hourglass_started, start_hourglass, cancel_hourglass):
9551 Don't include these versions on WINDOWSNT.
9552
95532008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9554
9555 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9556 variables (formerly in xfns.c).
9557 (show_hourglass, hide_hourglass): New prototypes (same).
9558 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9559 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9560 in xfns.c).
9561 (syms_of_xdisp): Declare/initialize display-hourglass,
9562 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9563 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9564 formerly in xfns.c.
9565 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9566 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9567 (start_hourglass, cancel_hourglass): Remove.
9568 (show_hourglass, hide_hourglass): Remove prototypes and static
9569 modifiers.
9570 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9571 hourglass_atimer, hourglass_shown_p declaration/initialization.
9572 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9573 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9574 (start_hourglass, cancel_hourglass): Remove.
9575 (show_hourglass, hide_hourglass): Remove prototypes and static
9576 modifiers.
9577 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9578 hourglass_atimer, hourglass_shown_p declaration/initialization.
9579 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9580 (DEFAULT_HOURGLASS_DELAY): Remove.
9581 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9582 hourglass_shown_p declaration/initialization.
9583
95842008-07-14 Jason Rumney <jasonr@gnu.org>
9585
9586 * w32fns.c (w32_get_arg): Remove wrapper function.
9587 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9588 directly.
9589 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9590
95912008-07-14 Kenichi Handa <handa@m17n.org>
9592
9593 * xfont.c (xfont_open): Add workaround for X's bug.
9594
95952008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9596
9597 * fontset.c: Include <stdio.h> unconditionally.
9598
95992008-07-13 Michael Albinus <michael.albinus@gmx.de>
9600
9601 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9602 for filtering.
9603
96042008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9605
9606 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9607
9608 * m/macppc.h:
9609 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9610
9611 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9612 (SPECIAL_EMACS_INT):
9613 * m/ia64.h (SPECIAL_EMACS_INT):
9614 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9615 * s/gnu.h (NLIST_STRUCT):
9616 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9617 * s/gnu-linux.h (LINUX):
9618 * s/msdos.h (HAVE_FACES):
9619 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9620
9621 * systty.h:
9622 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9623 anymore.
9624
96252008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9626
9627 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9628 always defined as int.
9629
9630 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9631 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9632 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9633 * s/freebsd.h (HAVE_WAIT_HEADER):
9634 * s/bsd-common.h (HAVE_UNION_WAIT):
9635 * s/aix4-2.h (HAVE_WAIT_HEADER):
9636 * m/mips.h (HAVE_UNION_WAIT):
9637 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9638 (COFF, static): Do not define, they are undefined later in the file.
9639
9640 * process.c (update_status): Don't use a union.
9641 (status_convert):
9642 (sigchld_handler): Use int instead of WAITTYPE.
9643
96442008-07-12 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * indent.c (Fvertical_motion): Restore hscroll before moving to
9647 goal column.
9648
96492008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9650
9651 * lisp.h: Remove left over code.
9652
96532008-07-11 Andreas Schwab <schwab@suse.de>
9654
9655 * lisp.h: Fix logic in last change.
9656
9657 * menu.h: New file.
9658 * menu.c: Include it.
9659 * xmenu.c: Likewise.
9660 * Makefile.in: Update dependencies.
9661
96622008-07-11 Kenichi Handa <handa@m17n.org>
9663
9664 * fontset.c (fontset_from_font): Cancel the previous change.
9665
96662008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9667
9668 * lisp.h:
9669 * w32heap.c:
9670 * emacs.c:
9671 * alloc.c: Replace all references of NO_UNION_TYPE with
9672 USE_LISP_UNION_TYPE.
9673
9674 * m/xtensa.h (NO_UNION_TYPE):
9675 * m/vax.h (NO_UNION_TYPE):
9676 * m/template.h (NO_UNION_TYPE):
9677 * m/sparc.h (NO_UNION_TYPE):
9678 * m/mips.h (NO_UNION_TYPE):
9679 * m/macppc.h (NO_UNION_TYPE):
9680 * m/m68k.h (NO_UNION_TYPE):
9681 * m/iris4d.h (NO_UNION_TYPE):
9682 * m/intel386.h (NO_UNION_TYPE):
9683 * m/ibms390x.h (NO_UNION_TYPE):
9684 * m/ibms390.h (NO_UNION_TYPE):
9685 * m/ibmrs6000.h (NO_UNION_TYPE):
9686 * m/ia64.h (NO_UNION_TYPE):
9687 * m/hp800.h (NO_UNION_TYPE):
9688 * m/arm.h (NO_UNION_TYPE):
9689 * m/amdx86-64.h (NO_UNION_TYPE):
9690 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9691 defining it the same.
9692
96932008-07-10 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9696
96972008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9698
9699 * fileio.c:
50426a04 9700 * sysdep.c:
aac0c6e3
MR
9701 * systty.h:
9702 * m/ibmrs6000.h:
9703 * m/iris4d.h:
9704 * s/aix4-2.h:
9705 * s/freebsd.h:
9706 * s/gnu-linux.h:
9707 * s/hpux10-20.h:
9708 * s/hpux11.h:
9709 * s/netbsd.h:
9710 * s/sol2-3.h:
9711 * s/sol2-4.h:
9712 * s/sol2.h:
9713 * s/usg5-4.h:
9714 * s/vms.h: Remove references to unused variables.
9715
97162008-07-10 Andreas Schwab <schwab@suse.de>
9717
9718 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9719 pattern before matching the generic family.
9720
97212008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9722
9723 * unexec.c:
9724 * s/vms.h:
9725 * s/usg5-4-2.h:
9726 * s/sol2-5.h:
9727 * s/freebsd.h:
9728 * s/darwin.h: Remove dead code.
9729
9730 * m/template.h:
9731 * m/sparc.h:
9732 * m/mips.h:
9733 * m/m68k.h:
9734 * m/iris4d.h:
9735 * m/intel386.h:
9736 * m/ibms390x.h:
9737 * m/ibms390.h:
9738 * m/ia64.h:
9739 * m/hp800.h:
9740 * m/arm.h:
9741 * m/amdx86-64.h: Remove dead code and references to unused
9742 and compiler defined symbols.
9743
9744 * unexmips.c:
9745 * unexelf.c: Remove references to desupported systems.
9746
9747 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9748
9749 * m/powermac.h: Remove boilerplate comments.
9750 (NO_REMAP): Remove unused definition.
9751
9752 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9753 define them.
9754
97552008-07-10 Kenichi Handa <handa@m17n.org>
9756
9757 * xfont.c (xfont_open): Log the reason of failure.
9758
97592008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9760
9761 * fontset.c (fontset_get_font_group):
9762 * font.c (font_check_otf): Specify argument types.
9763
97642008-07-09 Kenichi Handa <handa@m17n.org>
9765
9766 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9767 non-ASCII char is found.
9768
9769 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9770 (reorder_font_vector): Change the arg preferred_family to font.
9771 Prefer the spec matching with font.
9772 (fontset_get_font_group): New function.
9773 (fontset_find_font): Change the format of an element of a realized
9774 fontset. Use fontset_get_font_group.
9775 (fontset_font): Try the current fontset, the default fontset, the
9776 fallbacks of the current fontset, and the fallbacks of the default
9777 fontset in this order.
9778 (face_for_char): Delete the shortcut to use the current font.
9779 (fontset_from_font): Don't set fonts for Latin in the fontset.
9780
9781 * font.h (font_make_object, font_match_p): Adjust prototypes.
9782
9783 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9784
9785 * font.c (font_make_object): New arg entity and pixelsize.
9786 (font_check_otf_features, font_check_otf): New functions.
9787 (font_match_p): Check :lang, :script, and :otf properties.
9788
9789 * xfont.c (xfont_open): Adjust it for the change of
9790 font_make_object.
9791 (xfont_text_extents): Fix initial setting of metrics.
9792
9793 * ftfont.c (struct ftfont_info): New member index, delete member
9794 fc_charset_idx. Make the member order compatible with struct
9795 xftfont_info.
9796 (fc_charset_table): Change charset names to registry names.
9797 (ftfont_pattern_entity): Delete the args registry and
9798 fc_charset_idx. Change the value of :font-entity property
9799 to (FONTNAME . INDEX). Always set :registry property to
9800 `iso10646-1'.
9801 (struct ftfont_cache_data): New struct.
9802 (ftfont_lookup_cache): New arg for_face.
9803 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9804 (ftfont_driver): Set the member otf_capability.
9805 (ftfont_get_charset): Adjust it for the change of
9806 fc_charset_table.
9807 (OTF_TAG_SYM): New macro.
9808 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9809 for the change of fc_charset_table.
9810 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9811 ftfont_pattern_entity. Add FC_INDEX to objset.
9812 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9813 and ftfont_pattern_entity.
9814 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9815 font_make_object, struct ftfont_info.
9816 (ftfont_has_char): Use ftfont_get_fc_charset.
9817 (ftfont_otf_features, ftfont_otf_capability): New functions.
9818 (ftfont_shape): Use ftfont_get_otf.
9819 (ftfont_text_extents): Fix initial setting of metrics.
9820
9821 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9822 member order compatible with struct ftfont_info.
9823 (xftfont_open): Add FC_CHARSET to the pattern. Set
9824 xftfont_info->ft_size. Don't unlock the face. Check BDF
9825 properties if appropriate.
9826 (xftfont_close): Unlock the face.
9827 (xftfont_anchor_point, xftfont_shape): Deleted.
9828 (syms_of_xftfont): Don't set members anchor_point and shape of
9829 xftfont_driver.
9830
9831 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9832 font_make_object.
9833
9834 * w32font.c (w32font_open): Adjust it for the change of
9835 font_make_object.
9836 (w32font_open_internal): Don't set properties of font_object here.
9837
98382008-07-08 Chong Yidong <cyd@stupidchicken.com>
9839
9840 * macfns.c (x_create_tip_frame):
9841 * w32fns.c (x_create_tip_frame):
9842 * xfns.c (x_create_tip_frame): Pass parameter argument to
9843 face-set-after-frame-default.
9844
9845 * xfaces.c (Finternal_merge_in_global_face): Save merged
9846 attributes for the default face back into the face vector.
9847
98482008-07-08 Andreas Schwab <schwab@suse.de>
9849
9850 * fontset.h: Declare fontset_from_font. Don't declare
9851 new_fontset_from_font and fontset_from_font_name.
9852 * xterm.c: Include "fontset.h".
9853 * Makefile.in (xterm.o): Update dependencies.
9854
98552008-07-08 Glenn Morris <rgm@gnu.org>
9856
9857 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9858 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9859
98602008-07-07 Chong Yidong <cyd@stupidchicken.com>
9861
9862 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9863 (x_set_frame_parameters): Don't bind it.
9864
98652008-07-07 Juanma Barranquero <lekktu@gmail.com>
9866
9867 * w32fns.c (map_w32_filename): Declare extern.
9868
98692008-07-07 Jason Rumney <jasonr@gnu.org>
9870
9871 * w32term.c (WS_EX_LAYERED): Define if not already.
9872
98732008-07-06 Chong Yidong <cyd@stupidchicken.com>
9874
9875 * xfaces.c (set_font_frame_param): Don't try to set the font
9876 parameter if it is still unspecified in the lface.
9877
98782008-07-05 Chong Yidong <cyd@stupidchicken.com>
9879
9880 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9881 face if it didn't already exist.
9882
9883 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9884
98852008-07-05 Andreas Schwab <schwab@suse.de>
9886
9887 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9888
98892008-07-05 Chong Yidong <cyd@stupidchicken.com>
9890
9891 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9892 word-wrapping.
9893 (IT_DISPLAYING_WHITESPACE): New macro.
9894 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9895 when word-wrapping. Simplify word-wrapping logic. Use correct
9896 pixel positions when saving copies of the iterator.
9897 (display_line): Use proper wrap point if the last character on a
9898 line was preceded by whitespace.
9899
99002008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9901
9902 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9903
99042008-07-04 Kenichi Handa <handa@m17n.org>
9905
9906 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9907
9908 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9909
99102008-07-02 Jason Rumney <jasonr@gnu.org>
9911
9912 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9913 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9914
9915 * xdisp.c (next_element_from_display_vector): Move assignment out
9916 of if statement.
9917
99182008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9919
9920 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9921
9922 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9923 (syms_of_fileio): Initialize and export them.
9924 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9925
9926 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9927 (Fsystem_move_file_to_trash): New function.
9928 (syms_of_w32fns): Export it to lisp.
9929
99302008-07-01 Jason Rumney <jasonr@gnu.org>
9931
9932 * w32font.c (w32font_text_extents): Don't count overhang as part
9933 of width.
9934
99352008-06-30 Miles Bader <miles@gnu.org>
9936
9937 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9938 Add `avoid_cursor_p' field.
9939
9940 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9941 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9942 (append_glyph, append_composite_glyph, produce_image_glyph)
9943 (append_stretch_glyph): Initialize avoid_cursor_p.
9944 (get_it_property): Rename from `get_line_height_property'.
9945 (x_produce_glyphs): Use get_it_property.
9946 (handle_line_prefix, push_display_prop): New functions.
9947 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9948 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9949 New variables.
9950 (syms_of_xdisp): Initialize them.
9951
99522008-06-30 Kenichi Handa <handa@m17n.org>
9953
9954 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9955 XftDefaultSubstitute (they are called in XftFontMatch).
9956 (xftfont_open): Fix args to ftfont_font_format.
9957
9958 * ftfont.c (fc_charset_table): New member lang.
9959 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9960 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9961 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9962 (ftfont_open): Fix args to ftfont_font_format.
9963 (ftfont_font_format): New arg filename.
9964
99652008-06-30 Chong Yidong <cyd@stupidchicken.com>
9966
9967 * xfaces.c (Finternal_merge_in_global_face): If default face was
9968 modified, realize it again. Update the font face attribute.
9969
99702008-06-29 Jason Rumney <jasonr@gnu.org>
9971
9972 * w32term.c (x_set_frame_alpha): Fix logic.
9973
99742008-06-29 Kenichi Handa <handa@m17n.org>
9975
9976 * fontset.c (Finternal_char_font): Return font-object instead of
9977 font-name.
9978
9979 * composite.c (get_composition_id): Fix the width calculation for TAB.
9980
99812008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9982
9983 * indent.c (Fvertical_motion): Properly handle float column arg.
9984
99852008-06-28 Jason Rumney <jasonr@gnu.org>
9986
9987 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9988 (pfnSetLayeredWindowAttributes): New function pointer.
9989 (w32_initialize): Initialize it when supported.
9990 (x_set_frame_alpha): New function.
9991
9992 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9993 (w32_frame_parm_handlers): Set alpha handler.
9994
9995 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9996
99972008-06-27 Jason Rumney <jasonr@gnu.org>
9998
9999 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10000 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10001 (w32_to_x_charset, x_to_w32_charset)
10002 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10003 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10004 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10005 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10006 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10007 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10008 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10009 (Qw32_charset_unicode): Remove.
10010 (syms_of_w32fns): Update for above changes.
10011
10012 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10013 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10014 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10015 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10016 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10017 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10018 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10019 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10020 (syms_of_w32font): Update for above changes.
10021
100222008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10023
10024 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10025 removed #if.
10026 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10027
100282008-06-26 Juanma Barranquero <lekktu@gmail.com>
10029 Eli Zaretskii <eliz@gnu.org>
10030
10031 * makefile.w32-in (LOCAL_FLAGS):
10032 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10033
10034 * sysdep.c (_spawnlp, _getpid):
10035 Declare with explicit _cdecl instead of _CRTAPI1.
10036
10037 * editfns.c (Fget_internal_run_time):
10038 Check for WINDOWSNT with #ifdef, not #if.
10039
100402008-06-26 Jason Rumney <jasonr@gnu.org>
10041
10042 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10043
10044 * w32term.c (x_draw_glyph_string_foreground)
10045 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10046 Use FONT_HANDLE macro.
10047 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10048
10049 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10050 (uniscribe_encode_char): Use FONT_HANDLE macro.
10051
10052 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10053 (w32font_text_extents): Use precast w32_font.
10054 (w32font_close): Free cached metrics.
10055 (w32font_open_internal): Allocate space for name on stack.
10056
100572008-06-26 Chong Yidong <cyd@stupidchicken.com>
10058
10059 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10060
100612008-06-26 Jason Rumney <jasonr@gnu.org>
10062
10063 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10064 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10065
100662008-06-26 Juanma Barranquero <lekktu@gmail.com>
10067
10068 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10069
100702008-06-26 Jason Rumney <jasonr@gnu.org>
10071
10072 * w32bdf.c, w32bdf.h: Remove obsolete files.
10073
10074 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10075
10076 * w32gui.h: Don't include w32bdf.h.
10077 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10078 Remove obsolete font support.
10079
10080 * w32font.h (struct w32font_info): Remove compat_w32_font.
10081 Add hfont member.
10082 (FONT_COMPAT): Remove obsolete macro.
10083
10084 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10085 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10086 (w32font_open_internal): Remove compat code. Set new hfont member.
10087 (Fx_select_font): Use new hfont member.
10088
10089 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10090 (uniscribe_encode_char): Use new hfont member.
10091
10092 * w32term.c (x_draw_glyph_string_foreground)
10093 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10094 (x_draw_glyph_string): Use metrics in w32font_info.
10095
100962008-06-26 Kenichi Handa <handa@m17n.org>
10097
10098 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10099
101002008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10101
10102 * unexnext.c:
10103 * m/ews4800.h:
10104 * m/hp9000s300.h:
10105 * m/ibm370aix.h:
10106 * m/mips-siemens.h:
10107 * m/ncr386.h:
10108 * m/next.h:
10109 * m/pmax.h:
10110 * m/powerpcle.h:
10111 * m/tandem-s2.h:
10112 * s/386bsd.h:
10113 * s/bsd386.h:
10114 * s/bsd4-1.h:
10115 * s/bsd4-2.h:
10116 * s/bsdos2-1.h:
10117 * s/bsdos2.h:
10118 * s/bsdos3.h:
10119 * s/bsdos4.h:
10120 * s/nextstep.h:
10121 * s/ultrix4-3.h:
10122 * s/usg5-0.h:
10123 * s/usg5-2-2.h:
10124 * s/usg5-2.h:
10125 * s/usg5-4-3.h:
10126 * s/ux4800.h:
10127 * s/uxpds.h:
10128 * s/uxpv.h: Remove support for obsolete systems.
10129 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10130 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10131 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10132 Remove, insert contents in s/aix4-2.h.
10133 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10134 * s/bsd4-3.h: Rename to ...
10135 * s/bsd-common.h: ... this.
10136 * data.c:
10137 * doc.c:
10138 * ecrt0.c:
10139 * emacs.c:
10140 * fileio.c:
10141 * floatfns.c:
10142 * keyboard.c:
10143 * mem-limits.h:
10144 * print.c:
10145 * process.c:
10146 * sysdep.c:
10147 * syssignal.h:
10148 * systty.h:
10149 * syswait.h:
10150 * term.c:
10151 * unexec.c:
10152 * unexelf.c:
10153 * unexhp9k800.c:
10154 * m/hp800.h:
10155 * m/ibmrs6000.h:
10156 * m/mips.h:
10157 * m/vax.h:
10158 * s/darwin.h:
10159 * s/freebsd.h:
10160 * s/gnu.h:
10161 * s/ms-w32.h:
10162 * s/msdos.h:
10163 * s/netbsd.h:
10164 * s/template.h: Remove references to obsolete variables.
10165
10166 * Makefile.in: Add dependencies for all unexec files.
10167 (admindir): Remove unused variable.
10168 (UNEXEC_SRC): Remove references.
10169
101702008-06-25 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * xfns.c (x_default_font_parameter): If Xft is available, first
10173 try Monospace-12 for the default font.
10174
101752008-06-25 Jason Rumney <jasonr@gnu.org>
10176
10177 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10178
101792008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10180
10181 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10182
10183 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10184
101852008-06-25 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10188 <scroll-conservatively>: Fix typo in docstring.
10189
10190 * xselect.c (Fx_send_client_event): Doc fix.
10191
101922008-06-25 Kenichi Handa <handa@m17n.org>
10193
10194 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10195
10196 * font.c (font_parse_fcname): Remove unused variables.
10197 (font_sort_entites): Delete the arg SPEC. Caller changed.
10198 Fix for the case of ! best_only.
10199 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10200
10201 * lisp.h (Fstring_to_unibyte): EXFUN it.
10202
10203 * character.h (str_to_unibyte): Extern it.
10204
10205 * character.c (str_to_unibyte): New function.
10206
10207 * fns.c (Fstring_to_unibyte): New function.
10208 (syms_of_fns): Defsubr it.
10209
102102008-06-24 Kenichi Handa <handa@m17n.org>
10211
10212 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10213 DPI too.
10214 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10215
102162008-06-24 Andreas Schwab <schwab@suse.de>
10217
10218 * Makefile.in (${lispsource}loaddefs.el): Rename from
10219 ../lisp/loaddefs.el.
10220 (bootstrap-clean): Do what distclean does but don't remove
10221 Makefile.
10222 (distclean): Depend on bootstrap-clean and remove Makefile.
10223
102242008-06-24 Chong Yidong <cyd@stupidchicken.com>
10225
10226 * buffer.h (struct buffer): New member word_wrap.
10227
10228 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10229 word-wrap.
10230 (init_buffer_once): Initialize them.
10231
10232 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10233 line_wrap enum possessing three possible values.
10234
10235 * termopts.h: Replace truncate_partial_width_windows with
10236 Vtruncate_partial_width_windows.
10237
10238 * dispnew.c (direct_output_for_insert): Avoid direct output when
10239 inserting a space with word wrap on.
10240
10241 * indent.c (compute_motion): Obey integer values of
10242 truncate-partial-width-windows.
10243
10244 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10245 replacing truncate_partial_width_windows.
10246 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10247 truncate only if the window width is below that integer.
10248 (start_display, resize_mini_window, produce_stretch_glyph)
10249 (display_string, move_it_in_display_line_to): Use line_wrap.
10250 (back_to_previous_visible_line_start, reseat_1): Reset
10251 string_from_display_prop_p.
10252 (display_line): Extend default face to end of line when wrapping.
10253
102542008-06-24 Kim F. Storm <storm@cua.dk>
10255
10256 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10257 to wrap continued lines at word boundaries.
10258
102592008-06-24 Jason Rumney <jasonr@gnu.org>
10260
10261 * font.c (Ffont_face_attributes): Multiply pixel size before point
10262 conversion to avoid multiplying rounding error.
10263
102642008-06-23 Jason Rumney <jasonr@gnu.org>
10265
10266 * w32term.c (x_draw_glyph_string_background)
10267 (x_draw_glyph_string): Remove old bdf font code.
10268
10269 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10270
102712008-06-22 Kenichi Handa <handa@m17n.org>
10272
10273 * font.c (font_find_for_lface): Try the adstyle specified in
10274 the property of LFACE_FONT of LFACE (if any).
10275
102762008-06-21 Seiji Zenitani <zenitani@mac.com>
10277 Ryo Yoshitake <ryo@shiftmode.net>
10278
10279 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10280
102812008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10282
10283 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10284 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10285 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10286 (witness-emacs): Remove.
10287 (lisp, shortlisp): Move loaddefs.el earlier.
10288 (mostlyclean): Forget about witness-emacs.
10289
102902008-06-22 Glenn Morris <rgm@gnu.org>
10291
10292 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10293 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10294
102952008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10296
10297 * Makefile.in (PRECOMP): Remove.
10298 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10299 (witness-emacs): Run `compile-first'.
10300 (.el.elc): Use the new compile-onefile target.
10301
103022008-06-21 Kenichi Handa <handa@m17n.org>
10303
10304 * xftfont.c (xftfont_open): Handle QCembolden only when
10305 FC_EMBOLDEN is defined.
10306
103072008-06-21 Andreas Schwab <schwab@suse.de>
10308
10309 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10310 (.el.elc): Likewise.
10311
103122008-06-21 Miles Bader <miles@gnu.org>
10313
10314 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10315 build dir, not the lisp source dir.
10316
103172008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10318
10319 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10320 (bootstrapclean): Remove.
10321 (.el.elc): New rule.
10322 (PRECOMP): New var.
10323 (../lisp/subdirs.el): Remove.
10324 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10325 (witness-emacs): New target.
10326 (mostlyclean): Remove witness-emacs as well.
10327 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10328 Add witness-emacs dependency.
10329
103302008-06-20 Chong Yidong <cyd@stupidchicken.com>
10331
10332 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10333 defined by the font.
10334
103352008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10336
10337 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10338 (bootstrap-clean): New target that keeps TAGS around.
10339 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10340 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10341
103422008-06-20 Jason Rumney <jasonr@gnu.org>
10343
10344 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10345 Remove obsolete font code.
10346
10347 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10348 to determine language support.
10349
103502008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10351
10352 * sysdep.c (cfsetspeed): New fun extracted from the code.
10353 (cfmakeraw): Move before first use.
10354
103552008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10356
10357 * sysdep.c (cfmakeraw): Provide fallback implementation.
10358 (serial_configure): Provide fallback implementation of cfsetspeed.
10359
103602008-06-20 Kenichi Handa <handa@m17n.org>
10361
10362 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10363 the pattern.
10364
10365 * fontset.c (fontset_from_font): Copy font_spec before changing
10366 the elements.
10367
10368 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10369
103702008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10371
10372 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10373 for explicit `font' parameters.
10374
10375 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10376
103772008-06-19 Kenichi Handa <handa@m17n.org>
10378
10379 * frame.c: Include <ctype.h>.
10380 (x_set_font_backend): Allow spacing characters in the X resource
10381 for FontBackend.
10382
103832008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10384
10385 * w32fns.c, xfns.c (Qfont_param): New var.
10386 (syms_of_w32fns): Initialize it.
10387 (x_default_font_parameter): Record explicit `font' into
10388 `font-parameter'.
10389
103902008-06-18 Kenichi Handa <handa@m17n.org>
10391
10392 * font.c (font_parse_xlfd): Fix previous change.
10393 (font_parse_fcname): Don't use :fc-unknown-spec.
10394 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10395 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10396 (font_add_log): Prepend the driver name to the resulting fonts.
10397
10398 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10399 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10400 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10401
10402 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10403 (QCembolden): New variables.
10404 (syms_of_xftfont): DEFSYM them.
10405 (xftfont_open): Call XftFontMatch. Don't trust the result of
10406 XftTextExtents8 if the pixel_size is less than 5.
10407
104082008-06-18 Andreas Schwab <schwab@suse.de>
10409
10410 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10411 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10412
104132008-06-18 Jason Rumney <jasonr@gnu.org>
10414
10415 * w32font.c (w32font_list, w32font_match): Add logging.
10416
10417 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10418
104192008-06-17 Chong Yidong <cyd@stupidchicken.com>
10420
10421 * font.c (font_parse_fcname): Store divider characters for
10422 unknown-spec list. For known key symbols, intern using correct
10423 symbol name.
10424
104252008-06-17 Kenichi Handa <handa@m17n.org>
10426
10427 * xfaces.c (realize_default_face): If the frame is not on window
10428 system, set the fontset of face to nil.
10429
104302008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10431
10432 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10433
104342008-06-16 Juanma Barranquero <lekktu@gmail.com>
10435
10436 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10437 (build_font_name_from_vector): Delete externs.
10438
10439 * xfaces.c (struct font_name): Don't declare.
10440
104412008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10442
10443 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10444
104452008-06-16 Chong Yidong <cyd@stupidchicken.com>
10446
10447 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10448
104492008-06-16 Juanma Barranquero <lekktu@gmail.com>
10450
10451 * font.c (Ffont_spec): Fix usage in docstring.
10452 (Ffont_face_attributes): Doc fix.
10453
104542008-06-16 Andreas Schwab <schwab@suse.de>
10455
10456 * font.c (Ffont_face_attributes): Fix definition.
10457
104582008-06-16 Jason Rumney <jasonr@gnu.org>
10459
10460 * font.h (font_style_symbolic_from_value): Remove.
10461
10462 * font.c (font_style_symbolic_from_value): Remove.
10463 (font_style_symbolic): Revert to pre 2008-06-13 version.
10464
10465 * w32font.c (w32_to_fc_weight): New function.
10466 (w32font_full_name, logfont_to_fcname): Use it.
10467
104682008-06-16 Kenichi Handa <handa@m17n.org>
10469
10470 * font.c (font_check_object): Delete it.
10471 (font_clear_cache): Check if a font-object is alive.
10472 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10473 font-object to nil.
10474 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10475 (font_at): Don't call font_check_object.
10476 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10477
104782008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10479
10480 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10481
104822008-06-16 Chong Yidong <cyd@stupidchicken.com>
10483
10484 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10485
104862008-06-15 Chong Yidong <cyd@stupidchicken.com>
10487
10488 * font.c (font_parse_fcname): Only one decimal point.
10489 (font_unparse_fcname): Handle data in family and foundry indices
10490 as symbols, not strings.
10491 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10492
10493 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10494
10495 * font.h (font_unparse_gtkname): Add prototype.
10496
104972008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10498
10499 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10500
105012008-06-15 Andreas Schwab <schwab@suse.de>
10502
10503 * font.c (font_update_drivers): Fix crash when no drivers match.
10504
105052008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10506
10507 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10508 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10509
105102008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10511
10512 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10513
105142008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10515
10516 * process.c (Fserial_process_configure, Fprocess_send_eof):
10517 Use EQ to compare Lisp_Objects.
10518
105192008-06-13 Jason Rumney <jasonr@gnu.org>
10520
10521 * w32fns.c (Fw32_select_font): Remove old font API function.
10522
10523 * w32font.c (logfont_to_fcname): New function.
10524 (Fx_select_font): New font dialog function compatible with
10525 GTK/fontconfig version.
10526
10527 * font.c (font_style_symbolic_from_value): New function.
10528 (font_style_symbolic): Use it.
10529
10530 * font.h (font_style_symbolic_from_value): Declare new function.
10531
105322008-06-13 Juanma Barranquero <lekktu@gmail.com>
10533
10534 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10535 <font-width-table>: Fix typos in docstrings.
10536
105372008-06-13 Daniel Engeler <engeler@gmail.com>
10538
10539 These changes add serial port access.
10540 * process.c: Add HAVE_SERIAL.
10541 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10542 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10543 (list_processes_1, select_wrapper, Fstop_process)
10544 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10545 (status_notify): Modify to handle serial processes.
10546 [HAVE_SERIAL] (Fserial_process_configure)
10547 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10548 New functions.
10549 * process.h (struct Lisp_Process): Add `type'.
10550 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10551 New functions.
10552 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10553 serial ports.
b71ac3dd 10554 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10555 * w32.h: Add FILE_SERIAL.
10556 (struct _child_process): Add ovl_read, ovl_write.
10557
105582008-06-13 Kenichi Handa <handa@m17n.org>
10559
10560 * dispextern.h (enum lface_attribute_index): New member
10561 LFACE_FOUNDRY_INDEX.
10562
10563 * font.c (font_score): Delete arg alternate_families. Check only
10564 weight, slant, width, and size. Ignore the difference of alias
10565 style symbols.
10566 (font_sort_entites): Adjust for the above change. Reflect the
10567 order of font-driver to scores.
10568 (font_list_entities): Don't check alternate_familes here.
10569 (font_clear_prop): Handle foundry.
10570 (font_update_lface): Don't parse "foundry-family" form here.
10571 Handle FONT_FOUNDRY_INDEX.
10572 (font_find_for_lface): Likewise. Handle alternate families here.
10573 If registry is nil, try iso8859-1 and ascii-0.
10574 (font_open_for_lface): Pay attention to size in ENTITY.
10575 (font_open_by_name): Simplify by calling font_load_for_lface.
10576 (free_font_driver_list): Delete it.
10577 (font_update_drivers): Preserve the order of backends.
10578 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10579 of font_score and font_sort_entites.
10580 (font_update_sort_order): Likewise.
10581
10582 * xfaces.c (LFACE_FOUNDRY): New macro.
10583 (check_lface_attrs): Check foundry.
10584 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10585 (merge_face_vectors): Check foundry.
10586 (merge_face_ref): Likewise.
10587 (Finternal_set_lisp_face_attribute): Likewise.
10588 (x_update_menu_appearance): Likewise.
10589 (Finternal_get_lisp_face_attribute): Likewise.
10590 (lface_hash): Likewise.
10591 (lface_same_font_attributes_p): Likewise.
10592 (x_supports_face_attributes_p): Likewise.
10593 (tty_supports_face_attributes_p): Likewise.
10594 (Finternal_set_alternative_font_family_alist): Intern strings.
10595 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10596 (realize_default_face): Set LFACE_FOUNDRY (lface).
10597
10598 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10599 font-driver at first.
10600
10601 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10602
106032008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10604
10605 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10606
106072008-06-12 Jim Meyering <meyering@redhat.com>
10608
10609 Make unexec_free handle NULL the same way free does.
10610 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10611
106122008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10613
10614 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10615 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10616 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10617 (WEAK_ALIAS): Simplify.
10618 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10619 when searching a unibyte buffer.
10620
106212008-06-12 Chong Yidong <cyd@stupidchicken.com>
10622
10623 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10624
106252008-06-12 Juanma Barranquero <lekktu@gmail.com>
10626
10627 * w32font.c: Include ctype.h.
10628
106292008-06-11 Jason Rumney <jasonr@gnu.org>
10630
10631 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10632 misreported as space.
10633 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10634 as aliases for registry iso10646-1.
10635
106362008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * buffer.c (clone_per_buffer_values): Skip `name'.
10639
106402008-06-11 Chong Yidong <cyd@stupidchicken.com>
10641
10642 * font.c (font_parse_fcname): Fix last change; accept decimal
10643 points in font size.
10644
106452008-06-10 Jason Rumney <jasonr@gnu.org>
10646
10647 * w32uniscribe.c (add_opentype_font_name_to_list):
10648 Skip non unicode fonts.
10649
106502008-06-10 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * xfns.c (Fx_font_dialog): New function.
10653
10654 * gtkutil.c (xg_dialog_response_cb): Rename from
10655 xg_file_response_callback.
10656 (pop_down_dialog): Rename from pop_down_file_dialog.
10657 (xg_get_file_name): Callers changed.
10658 (xg_get_font_name): New function.
10659
10660 * gtkutil.h (xg_get_font_name): Insert prototype.
10661
106622008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10663
10664 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10665 x_underline_minimum_display_offset.
10666 (syms_of_xdisp): Declare it here rather than in xterm.c.
10667 * dispextern.h (underline_minimum_offset): Declare it.
10668 * w32term.c (x_draw_glyph_string): Use it.
10669 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10670 (syms_of_xterm): Don't declare it any more.
10671 (x_draw_glyph_string): Adjust to the new name.
10672
8719abec 106732008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10674
10675 * xterm.c (x_underline_minimum_display_offset): New var.
10676 (x_draw_glyph_string): Use it.
10677 (syms_of_xterm): Declare it.
10678
106792008-06-10 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * font.c (font_parse_fcname): Accept GTK-style font names too.
10682
106832008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10684
10685 * dired.c (file_name_completion): Don't return t if the match is exact
10686 but with different capitalization.
10687 * minibuf.c (Ftry_completion): Simplify.
10688
10689 * window.c (Vwindow_point_insertion_type): New var.
10690 (set_window_buffer): Use it.
10691 (syms_of_window): Init and export it to Lisp.
10692
106932008-06-10 Kenichi Handa <handa@m17n.org>
10694
10695 * font.h (font_intern_prop): Prototype adjusted.
10696
10697 * font.c (font_intern_prop): New arg force_symbol.
10698 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10699 Adjust for the change of font_intern_prop.
10700
10701 * ftfont.c (ftfont_pattern_entity):
10702 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10703 (w32_registry):
10704 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10705 the change of font_intern_prop.
10706
107072008-06-09 Juanma Barranquero <lekktu@gmail.com>
10708
10709 * w32menu.c (digest_single_submenu): Declare extern.
10710
107112008-06-09 Jason Rumney <jasonr@gnu.org>
10712
10713 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10714
10715 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10716 (parse_single_submenu): Remove.
10717 (digest_single_submenu): Remove.
10718 (syms_of_w32menu): Don't initialise variables that have moved
10719 to menu.c.
10720 (set_frame_menubar): Sync with version in xmenu.c.
10721 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10722
10723 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10724 Make static again.
10725
107262008-06-09 Jason Rumney <jasonr@gnu.org>
10727
10728 Changes to w32 files related to the move of common menu code
10729 to menu.c on 2008-06-08 by Chong Yidong.
10730
10731 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10732 defs to w32gui.h.
10733 (single_keymap_panes, push_menu_item, push_menu_pane):
10734 Make globally visible.
10735
10736 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10737 (local_free, malloc_widget_value, free_widget_value)
10738 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10739 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10740 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10741 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10742 (menu_items, menu_items_allocated, menu_items_used)
10743 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10744 (init_menu_items, finish_menu_items, discard_menu_items)
10745 (grow_menu_items, push_submenu_start, push_submenu_end)
10746 (push_left_right_boundary, push_menu_pane, push_menu_item)
10747 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10748 (free_menubar_widget_tree_value, parse_single_submenu)
10749 (update_submenu_strings): Remove functions.
10750 (xmalloc_widget_value): Remove and declare extern.
10751
10752 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10753 (OBJ1): Build it.
10754
10755 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10756 (local_heap, local_alloc, local_free, malloc_widget_value)
10757 (free_widget_value): Define here.
10758
107592008-06-09 Kenichi Handa <handa@m17n.org>
10760
10761 * font.h (Qascii_0): Extern it.
10762
10763 * font.c (Qascii_0): New variable.
10764 (syms_of_font): DEFSYM it.
10765 (font_open_by_name): If the registry "iso8859-1" fails, try also
10766 "ascii-0".
10767
10768 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10769
107702008-06-08 Kenichi Handa <handa@m17n.org>
10771
10772 * .gdbinit (xfont): New command.
10773
107742008-06-08 Andreas Schwab <schwab@suse.de>
10775
10776 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10777 * Makefile.in (menu.o): Update dependencies.
10778
10779 * Makefile.in (obj): Always add menu.o.
10780 * emacs.c (main): Always call syms_of_menu.
10781 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10782
107832008-06-08 Chong Yidong <cyd@stupidchicken.com>
10784
10785 * Makefile.in: Compile menu.c.
10786
10787 * lisp.h: Declare syms_of_menu.
10788
10789 * emacs.c (main): Call syms_of_menu.
10790
10791 * keyboard.h: Relocate platform-independent menu definitions from
10792 xmenu.c.
10793
10794 * menu.c: New file. Relocate platform-independent menu
10795 definitions from xmenu.c. Suggested by Adrian Robert.
10796
10797 * xmenu.c: Remove platform-independent menu definitions.
10798 (menu_items menu_items_inuse, menu_items_allocated)
10799 (menu_items_used, menu_items_n_panes)
10800 (menu_items_submenu_depth): Move to keyboard.h.
10801 (init_menu_items, finish_menu_items, unuse_menu_items)
10802 (discard_menu_items, restore_menu_items, save_menu_items)
10803 (grow_menu_items, push_submenu_start, push_submenu_end)
10804 (push_left_right_boundary, push_menu_pane, push_menu_item)
10805 (keymap_panes, single_keymap_panes, single_menu_item)
10806 (list_of_panes, list_of_items, find_and_call_menu_selection)
10807 (xmalloc_widget_value, free_menubar_widget_value_tree)
10808 (parse_single_submenu, digest_single_submenu)
10809 (update_submenu_strings): Move to menu.c.
10810
108112008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10814
108152008-06-06 Miles Bader <miles@gnu.org>
10816
10817 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10818 face, not frame default.
10819
108202008-06-05 Martin Rudalics <rudalics@gmx.at>
10821
10822 * window.c (pop_up_windows, pop_up_frames)
10823 (display_buffer_reuse_frames, Vpop_up_frame_function)
10824 (Vdisplay_buffer_function, Veven_window_heights)
10825 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10826 (Vspecial_display_function, Vsame_window_buffer_names)
10827 (Vsame_window_regexps, split_height_threshold)
10828 (Vsplit_window_preferred_function): Move those vars to window.el.
10829 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10830 (Fdisplay_buffer): Move those functions to window.el.
10831 (syms_of_window): Remove corresponding declarations.
10832 (display_buffer): New function.
10833 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10834 * dispnew.c (Flast_nonminibuf_frame): New function.
10835 * buffer.c (Fpop_to_buffer): Move to window.el.
10836
108372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10840
108412008-06-05 Kenichi Handa <handa@m17n.org>
10842
10843 * coding.c (detect_coding): Fix previous change.
10844 (detect_coding_system): Likewise.
10845
108462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10849
10850 * keymap.c (Vminibuffer_local_filename_must_match_map):
10851 Rename from Vminibuffer_local_must_match_filename_map.
10852 (syms_of_keymap):
10853 * minibuf.c (Fcompleting_read): Adjust accordingly.
10854 * commands.h: Rename declaration as well.
10855
108562008-06-05 Kenichi Handa <handa@m17n.org>
10857
10858 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10859 family name.
10860 (Ffont_put): Likewise.
10861
10862 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10863 current font-spec.
10864
10865 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10866 is unspecified.
10867
10868 * xfaces.c (realize_x_face): If the font-related face attributes
10869 are the same as those of default face, realize a new fontset from
10870 default->fontset.
10871 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10872
108732008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10874
10875 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10876 (move_it_in_display_line): New wrapper.
10877
10878 * window.c (window_scroll_pixel_based_preserve_x)
10879 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10880 (window_scroll_pixel_based, window_scroll_line_based):
10881 Use them to preserve column positions.
10882 (syms_of_window): Initialize them.
10883
10884 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10885 (HPOS . VPOS) pair.
10886
10887 * dispextern.h (move_it_in_display_line): Declare.
10888
108892008-06-05 Juanma Barranquero <lekktu@gmail.com>
10890
10891 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10892 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10893 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10894
108952008-06-04 Juanma Barranquero <lekktu@gmail.com>
10896
10897 * window.c (Fset_window_parameter): Doc fix.
10898 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10899
109002008-06-04 Joakim Verona <joakim@verona.se>
10901
10902 * window.h (struct window): Add new member window_parameters.
10903
10904 * window.c (Fwindow_parameters, Fwindow_parameter)
10905 (Fset_window_parameter): New defuns.
10906 (syms_of_window): Defsubr the new defuns.
10907 (make_window): Initialize window_parameters to nil.
10908
109092008-06-04 John Paul Wallington <jpw@pobox.com>
10910
10911 * eval.c (Fdefmacro): Doc fix.
10912
109132008-06-04 Kenichi Handa <handa@m17n.org>
10914
10915 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10916 Be sure to call setup_coding_system when we find a proper coding system.
10917 (detect_coding_system): Fix handling of coding->head_ascii.
10918
109192008-06-03 Andreas Schwab <schwab@suse.de>
10920
10921 * font.c (font_prop_validate_spacing): Fix last change.
10922
109232008-06-03 Kenichi Handa <handa@m17n.org>
10924
10925 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10926 (font_parse_fcname): Fix handling of unknown key.
10927
10928 * xfont.c (xfont_list): Try an alias.
10929
10930 * charset.c (char_charset): Return NULL if the arg charset_list is
10931 specified and C doesn't belong to any of them.
10932
109332008-06-02 Chip Coldwell <coldwell@redhat.com>
10934
10935 * font.c (font_pixel_size): Don't take cdr of an integer.
10936
109372008-06-02 Jim Meyering <meyering@redhat.com>
10938
10939 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10940 * alloc.c (xfree): Return right away for a NULL arg.
10941 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10942 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10943 * mac.c (create_apple_event_from_event_ref): Likewise.
10944 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10945 Likewise.
10946 * doprnt.c (doprnt1): Likewise.
10947 * frame.c (frame): Likewise.
10948 * keyboard.c (wipe_kboard): Likewise.
10949 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10950 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10951 * term.c (tty_default_color_capabilities, maybe_fatal)
10952 (delete_tty): Likewise.
10953 * w16select.c (string): Likewise.
10954 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10955 * w32bdf.c (w32_free_bdf_font): Likewise.
10956 * w32fns.c (w32_unload_font): Likewise.
10957 * w32font.c (w32font_close): Likewise.
10958 * window.c (size_window): Likewise.
10959 * xselect.c (receive_incremental_selection): Likewise.
10960 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10961 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10962 * w32.c (stat): Likewise.
10963
10964 Remove useless if-before-free tests.
10965 * editfns.c (Fset_time_zone_rule): Likewise.
10966 * lread.c (nosuffix): Likewise.
10967 * ralloc.c (get_bloc): Likewise.
10968 * regex.c (reg_free): Likewise.
10969 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10970 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10971 * xsmfns.c (smc_save_yourself_CB): Likewise.
10972
109732008-06-02 Kenichi Handa <handa@m17n.org>
10974
10975 * font.c (font_find_for_lface): Handle float font size.
10976 (font_open_for_lface): Likewise.
10977
10978 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10979 comparing the properties.
10980
109812008-06-01 Jason Rumney <jasonr@gnu.org>
10982
10983 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10984 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10985 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10986 Don't add empty script list.
10987 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10988
109892008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10990
10991 * Makefile.in (dot, dotdot): Remove, update users.
10992 ".." has been used elsewhere in the file for a long time.
10993 (LIBXT_STATIC): Remove conditional based on unused variable.
10994
109952008-06-01 Miles Bader <miles@gnu.org>
10996
10997 * xfaces.c (Vface_remapping_alist): New variable.
10998 (syms_of_xfaces): Initialize it.
10999 (enum named_merge_point_kind): New type.
11000 (struct named_merge_point): Add `named_merge_point_kind' field.
11001 (push_named_merge_point): Make cycle detection respect different
11002 named-merge-point kinds.
11003 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11004 Remove face-name alias resolution.
11005 (lface_from_face_name): New definition using
11006 `lface_from_face_name_no_resolve'.
11007 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11008 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11009 (get_lface_attributes): New definition that layers face-remapping on
11010 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11011 (lookup_basic_face): New function.
11012 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11013 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11014 `get_lface_attributes'.
11015 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11016 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11017 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11018
11019 * xdisp.c (init_iterator): Pass base_face_id through
11020 `lookup_basic_face' when we actually use it as a face-id.
11021 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11022 DEFAULT_FACE_ID.
11023
11024 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11025 lookup the initial face-id.
11026
11027 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11028
110292008-06-01 Juanma Barranquero <lekktu@gmail.com>
11030
11031 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11032 (Fremove_text_properties): Fix typos in docstrings.
11033
110342008-05-31 Kenichi Handa <handa@m17n.org>
11035
11036 * font.c (font_list_entities): Fix the car part of data to be
11037 stored in the cache.
11038
11039 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11040
110412008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11042
11043 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11044 Add a `test' argument so another predicate than `equal' can be used.
11045 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11046 (map_char_table): Remove unused vars `c' and `i'.
11047 * lisp.h (Foptimize_char_table): Adjust declaration.
11048 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11049
110502008-05-30 Kenichi Handa <handa@m17n.org>
11051
11052 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11053 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11054 defined.
11055
110562008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11057
11058 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11059 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11060 frame-local settings for the same variable.
11061
110622008-05-30 Kenichi Handa <handa@m17n.org>
11063
11064 * fontset.c (Ffont_info): Move to font.c.
11065 (syms_of_fontset): Delete defsubr of Sfont_info.
11066
11067 * font.c (font_style_to_value, font_score): Delete casting of the
11068 args to xstcasecmp.
11069 (register_font_driver): Increment num_font_drivers only when
11070 registering the driver globally.
11071 (Ffont_info): Move from fontset.c. Handle a font object too.
11072 (syms_of_font): Defsubr Sfont_info.
11073
110742008-05-29 Kenichi Handa <handa@m17n.org>
11075
11076 * coding.h (enum define_coding_utf8_arg_index): New enum.
11077 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11078 coding_attr_utf_bom.
11079 (enum utf_bom_type): Rename from utf_16_bom_type.
11080 (struct utf_16_spec): Adjust for the above change.
11081 (struct coding_system): Add utf_8_bom in `spec' union.
11082
11083 * coding.c (CODING_UTF_8_BOM): New macro.
11084 (enum coding_category): Delete coding_category_utf_8, add
11085 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11086 coding_category_utf_8_sig.
11087 (CATEGORY_MASK_UTF_8): Delete it.
11088 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11089 (CATEGORY_MASK_UTF_8_SIG): New macros.
11090 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11091 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11092 CATEGORY_MASK_UTF_8_SIG.
11093 (CATEGORY_MASK_UTF_8): New macro.
11094 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11095 (detect_coding_utf_8): Check BOM.
11096 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11097 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11098 (encode_coding_utf_16): Likewise.
11099 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11100 (detect_coding, detect_coding_system): Handle utf-8-auto.
11101 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11102 (syms_of_coding): Fix setting up of Vcoding_category_table.
11103
111042008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11105
11106 * process.c (Faccept_process_output): If `millisec' is non-nil,
11107 `seconds' default to 0.
11108 (wait_reading_process_output): Also return non-nil if we read output
11109 from a non-running process.
11110
111112008-05-29 Jason Rumney <jasonr@gnu.org>
11112
11113 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11114 `raster' specified.
11115 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11116 in the uniscribe backend, but disallow any font that has no
11117 unicode subrange support.
11118
111192008-05-29 Juanma Barranquero <lekktu@gmail.com>
11120
11121 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11122 Fix typos in docstrings.
11123
111242008-05-29 Kenichi Handa <handa@m17n.org>
11125
11126 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11127 (Fx_family_fonts): Set frame correctly.
11128
111292008-05-28 Jason Rumney <jasonr@gnu.org>
11130
11131 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11132
111332008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11134
11135 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11136 calling build_annotations.
11137
111382008-05-28 Juanma Barranquero <lekktu@gmail.com>
11139
11140 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11141 (Fencode_coding_string):
11142 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11143 <latin-extra-code-table>: Fix typos in docstrings.
11144 (syms_of_coding) <coding-system-alist>: Doc fix.
11145 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11146
111472008-05-28 Kenichi Handa <handa@m17n.org>
11148
11149 * fontset.c (Ffont_info): Don't call font_close_object.
11150
11151 * font.c (font_parse_family_registry): Use Ffont_put to validate
11152 foundry and family.
11153 (font_delete_unmatched): Don't check spacing.
11154 (font_list_entities): Add spacing to the spec to list fonts.
11155
11156 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11157 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11158
11159 * coding.c (encode_coding_raw_text): Fix previous change.
11160 (encode_coding_object): When the dst_object is a buffer and is
11161 different from src_object, move gap to PT.
11162
111632008-05-27 Chong Yidong <cyd@stupidchicken.com>
11164
11165 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11166
111672008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11168
11169 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11170 all branches. Compute it differently.
11171
11172 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11173
111742008-05-27 Juanma Barranquero <lekktu@gmail.com>
11175
11176 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11177 into "else if () ... else ...".
11178
111792008-05-27 Jason Rumney <jasonr@gnu.org>
11180
11181 * w32font.c (w32font_open_internal): Determine if glyph indices
11182 are likely to work here.
11183
111842008-05-27 Chong Yidong <cyd@stupidchicken.com>
11185
11186 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11187 draw overlap glyphs with appropriate highlighting.
11188
111892008-05-27 Kenichi Handa <handa@m17n.org>
11190
11191 * xfont.c (xfont_open): Fix calculation of font->average_width.
11192
111932008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * casefiddle.c (casify_object): Try to guess better whether the
11196 argument is a byte or a char.
11197
111982008-05-26 Andreas Schwab <schwab@suse.de>
11199
11200 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11201 Always send multiples of format size.
11202
11203 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11204
112052008-05-26 Jason Rumney <jasonr@gnu.org>
11206
11207 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11208 (compute_metrics): Don't set failure if we just cleared the cache.
11209 (w32_weight_table): Remove unused variable.
11210 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11211 backwards compatibility.
11212
112132008-05-25 Kenichi Handa <handa@m17n.org>
11214
11215 * w32term.c (x_draw_glyph_string):
11216 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11217
11218 * xfaces.c: Delete unused function prototypes.
11219 (xstrlwr, font_frame): Delete them.
11220 (clear_face_cache): Delete unused variable.
11221
11222 * xftfont.c (xftfont_open): Delete unused variable.
11223 If underline_thickness is not 1, adjust underline_position.
11224
11225 * ftxfont.c (ftxfont_open): Delete unused variable.
11226
11227 * fontset.c (face_for_char): Optimize for the case of no charset
11228 property.
11229
11230 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11231 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11232 (otf_open, font_otf_capability, generate_otf_features)
11233 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11234 Comment out by surrounding "#if 0" and "#endif" for the moment.
11235 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11236 (syms_of_font): Codes for accessing above commented out.
11237
112382008-05-24 Eli Zaretskii <eliz@gnu.org>
11239
11240 * w32proc.c: Include dispextern.h.
11241
11242 * w32.c: Include dispextern.h.
11243
112442008-05-23 Juanma Barranquero <lekktu@gmail.com>
11245
11246 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11247 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11248 Fix typos in docstrings.
11249
112502008-05-23 Jason Rumney <jasonr@gnu.org>
11251
11252 * xsmfns.c: Remove includes that are already included by config.h.
11253
112542008-05-23 Kenichi Handa <handa@m17n.org>
11255
11256 * charset.c (Qemacs, charset_emacs): New variables.
11257 (char_charset): Fix for non-Unicode characters.
11258 (syms_of_charset): Define charset_emacs.
11259
11260 * w32term.c (x_draw_glyph_string): Be sure to update
11261 s->underline_thickness and s->underline_position. Be sure to draw
11262 underline within the current line area.
11263
11264 * xterm.c (x_draw_glyph_string): Be sure to update
11265 s->underline_thickness and s->underline_position. Be sure to draw
11266 underline within the current line area.
11267
11268 * fontset.c: Delete unused variables and add casting for char *
11269 throughout the file.
11270 (fontset_font): Try the fallback fonts of the current fontset
11271 before consulting the default fontset.
11272
11273 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11274
11275 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11276
112772008-05-22 Jason Rumney <jasonr@gnu.org>
11278
11279 * font.c: Don't include strings.h.
11280
11281 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11282
11283 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11284 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11285 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11286 to call xstrcasecmp.
11287
11288 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11289
11290 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11291
11292 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11293
11294 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11295
112962008-05-22 Kenichi Handa <handa@m17n.org>
11297
11298 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11299
11300 * font.c (font_prop_validate_style): Adjust for the format
11301 change of font_style_table.
11302
11303 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11304 two args.
11305
11306 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11307 two args.
11308
113092008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11310
11311 * minibuf.c (keys_of_minibuf): Delete.
11312 * lisp.h (keys_of_minibuf): Delete.
11313 * emacs.c (main): Don't call keys_of_minibuf.
11314
113152008-05-22 Kenichi Handa <handa@m17n.org>
11316
11317 * ftfont.c (ftfont_resolve_generic_family): Rename from
11318 ftfont_list_generic_family. Return a single family for each
11319 generic family.
11320 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11321 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11322 Call font_add_log.
11323 (ftfont_match): Call font_add_log.
11324
11325 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11326 (FONT_DEBUG): Define it.
11327 (font_add_log): Extern it.
11328 (font_assert): Rename from xassert.
11329
11330 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11331 (xfont_list_family): Call font_add_log.
11332 (xfont_match): Likewise.
11333 (memq_no_quit): Delete.
11334
11335 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11336 call of Ffont_xlfd_name.
11337
11338 * xfaces.c (struct table_entry, slant_table, weight_table)
11339 (swidth_table): Move to font.c.
11340
11341 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11342 xassert are changed to font_assert. Delete many unused variables.
11343 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11344 New variables.
11345 (struct table_entry): Move from xfaces.c and modified.
11346 (weight_table, slant_table, width_table): Move from xfaces.c and
11347 contents adjusted for the change of struct table_entry.
11348 (font_style_to_value, font_style_symbolic): Adjust for the
11349 format change of font_style_table.
11350 (font_parse_family_registry): Don't overwrite existing foundry and
11351 family of font_spec.
11352 (font_score): Fix calculation of diff for sizes.
11353 (font_sort_entites): Call font_add_log.
11354 (font_delete_unmatched): Return a newly created list.
11355 (font_list_entities): Fix previous change. Call font_add_log.
11356 (font_matching_entity, font_open_entity, font_close_entity):
11357 Call font_add_log.
11358 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11359 (Finternal_set_font_style_table): Delete.
11360 (BUILD_STYLE_TABLE): New macro.
11361 (build_style_table): New function.
11362 (Vfont_log, font_log_env_checked): New variables.
11363 (font_add_log): New function.
11364 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11365 Declare Lisp variables "font-weight-table", "font-slant-table",
11366 "font-width-table", and "font-log". Initialize font_style_table.
11367
113682008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11369
11370 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11371
113722008-05-21 Seiji Zenitani <zenitani@mac.com>
11373 Ryo Yoshitake <ryo@shiftmode.net>
11374
11375 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11376 (Vframe_alpha_lower_limit): New variable.
11377 (x_set_alpha): New function.
11378
11379 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11380
11381 * xfns.c (x-create-frame, Qalpha):
11382 Initialize the frame parameter `alpha'.
11383 * xterm.c (OPAQUE, OPACITY): New.
11384 (x_set_frame_alpha): New function.
11385 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11386
11387 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11388 * w32fns.c (w32_frame_parm_handlers): Likewise.
11389
113902008-05-20 Jason Rumney <jasonr@gnu.org>
11391
11392 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11393 truetype fonts to opentype list.
11394
113952008-05-20 Juanma Barranquero <lekktu@gmail.com>
11396
11397 * fontset.c (Ffontset_info): Doc fix.
11398 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11399 <ignore-relative-composition>: Fix typos in docstrings.
11400
11401 * font.c (syms-of-font) <font-encoding-alist>:
11402 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11403 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11404 (Ffont_otf_alternates): Doc fixes.
11405
114062008-05-20 Kenichi Handa <handa@m17n.org>
11407
11408 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11409 font.h through out the file.
11410 (FONT_DRIVERS): Rename from FONTOBJ.
11411 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11412 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11413
11414 * emacs.c (main): Call syms_of_font unconditionally.
11415
11416 * font.h (find_font_encoding): Extern it.
11417
11418 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11419 fontset.c.
194d44e7 11420 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11421 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11422 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11423 only when HAVE_WINDOW_SYSTEM is defined.
11424 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11425 when HAVE_WINDOW_SYSTEM is defined.
11426
11427 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11428 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11429
11430 * xfaces.c: Include font.h unconditionally.
11431 (merge_face_ref, merge_face_vectors)
11432 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11433
114342008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11435
11436 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11437 indirect_variable.
11438 * eval.c (lisp_indirect_variable): New fun.
11439 (Fuser_variable_p): Use it.
11440
114412008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11442
11443 * lisp.h (indirect_variable):
11444 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11445 Use Lisp_Symbol pointers rather than Lisp_Object.
11446 Adjust callers.
11447 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11448 To this end, change calling-convention.
11449
11450 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11451 if some non-hidden buffers are selected by string&pred.
11452
114532008-05-19 Chong Yidong <cyd@stupidchicken.com>
11454
11455 * process.c (wait_reading_process_output): Always check status
11456 when in batch mode.
11457
114582008-05-19 Kenichi Handa <handa@m17n.org>
11459
11460 * font.c (font_list_entities): Fix handling of cache.
11461 (font_matching_entity): Likewise.
11462
11463 * ftfont.c (cs_iso8859_1): Delete.
11464 (ft_face_cache): New variable.
11465 (struct ftfont_info): New member fc_charset_idx.
11466 (ftfont_build_basic_charsets): Delete.
11467 (fc_charset_table): New variable.
11468 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11469 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11470 Callers changed.
11471 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11472 (ftfont_spec_pattern): New argument fc_charset_idx.
11473 Check registry more rigidly. Change callers.
11474 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11475 change of :font-entity property of the font.
11476
11477 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11478 property of the font.
11479
114802008-05-18 Juanma Barranquero <lekktu@gmail.com>
11481
11482 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11483 (Funencodable_char_position, Fcheck_coding_systems_region)
11484 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11485 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11486 (Ffind_operation_coding_system, Fset_coding_system_priority)
11487 (Fcoding_system_eol_type): Doc fixes.
11488
114892008-05-17 Glenn Morris <rgm@gnu.org>
11490
11491 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11492
114932008-05-16 Eli Zaretskii <eliz@gnu.org>
11494
11495 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11496 and st_gid.
11497
11498 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11499 HAVE_WINDOW_SYSTEM is not defined.
11500
11501 * xfaces.c (merge_face_ref, merge_face_vectors)
11502 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11503 HAVE_WINDOW_SYSTEM is defined.
11504 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11505
115062008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11507
11508 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11509
115102008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11511
11512 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11513
115142008-05-15 Kenichi Handa <handa@m17n.org>
11515
11516 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11517 preference.
11518
115192008-05-15 Glenn Morris <rgm@gnu.org>
11520
11521 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11522
115232008-05-15 Chong Yidong <cyd@stupidchicken.com>
11524
11525 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11526 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11527
11528 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11529
115302008-05-15 Kenichi Handa <handa@m17n.org>
11531
11532 * ftfont.c (ftfont_list): Downcase family name to check generic
11533 families.
11534
11535 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11536 font-spec for QCfont value.
11537
11538 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11539 buffer. Check the return value of it.
11540
115412008-05-14 Jason Rumney <jasonr@gnu.org>
11542
11543 * w32term.c (w32_get_glyph_overhangs): Remove.
11544 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11545
115462008-05-14 Kenichi Handa <handa@m17n.org>
11547
11548 * font.c (font_prop_validate): Make nil a valid value.
11549 (font_clear_cache): Check if the cached vector of entities is nil
11550 or not.
11551
115522008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11553
11554 * emacs.c (main_thread): Conditionalize on
11555 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11556 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11557
11558 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11559 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11560 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11561
115622008-05-14 Kenichi Handa <handa@m17n.org>
11563
11564 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11565 has no corresponding coding system.
11566
115672008-05-14 Jason Rumney <jasonr@gnu.org>
11568
11569 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11570
11571 * w32font.h (w32font_open_internal): Update declaration.
11572
11573 * w32font.c (w32font_open_internal): Change last argument from
11574 w32font_info struct to font object. Fill in font object from
11575 font_entity. Get Outline metrics if possible. Use them to
11576 calculate underline position and thickness. Use xlfd name as name
11577 property. Don't set codepage.
11578 (w32font_open): Pass font_object to w32font_open_internal. Don't
11579 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11580 (w32font_draw): Use s->font.
11581 (clear_cached_metrics): Don't clear non-existent blocks.
11582
11583 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11584 font was not found.
11585 (x_draw_glyph_string): Use underline position and thickness from font.
11586
11587 * w32uniscribe.c (uniscribe_open): Pass font_object to
11588 w32font_open_internal.
11589
115902008-05-14 Kenichi Handa <handa@m17n.org>
11591
11592 These changes are to delete all legacy font-handling codes, and
11593 make Emacs use only font-backends.
11594
11595 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11596 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11597
11598 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11599
11600 * charset.h (Vcharset_non_preferred_head)
11601 (Vcurrent_iso639_language): Extern them.
11602
11603 * charset.c (Vcharset_non_preferred_head): New variable.
11604 (Vcurrent_iso639_language): New variable.
11605 (syms_of_charset): Declare it as a Lisp variable.
11606 (char_charset): Don't check non preferred charsets. As a last
11607 resort, return charset_unicode.
11608 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11609
11610 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11611 conditionals. Don't check enable_font_backend. Delete all codes
11612 used only when USE_FONT_BACKEND is not defined.
11613
11614 * dispextern.h (struct glyph_string): Change type of `font' to
11615 `struct font *'.
11616 (struct glyph_string): New member underline_position and
11617 underline_thickness.
11618 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11619 (struct face): Change type of `font' to `struct font *'. Remove
11620 members `font_name', `font_info_id'.
11621 (per_char_metric, encode_char): Delete externs.
11622 (calc_pixel_width_or_height): Adjust the prototype.
11623
11624 * emacs.c (enable_font_backend): Delete extern.
11625 (main): Don't set enable_font_backend. Don't check the command
11626 line argument "-disable-font-backend".
11627
11628 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11629 (enum font_property_index): New members FONT_DPI_INDEX,
11630 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11631 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11632 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11633 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11634 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11635 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11636 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11637 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11638 (struct font_spec, struct font_entity): New structs.
11639 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11640 (struct font): Many members from old "struct font_info" moved to
11641 here. Members font and entity deleted.
11642 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11643 the new font-related objects.
11644 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11645 (CHECK_FONT_GET_OBJECT): Likewise.
11646 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11647 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11648 (struct font_driver): New members case_sensitive anc check. Type
11649 of the member list and open changed.
11650 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11651 (font_symbolic_width, font_find_object, font_get_spec)
11652 (font_set_lface_from_name): Delete extern.
11653 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11654
11655 * font.c: Include <strings.h>.
11656 (enable_font_backend): Delete it.
11657 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11658 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11659 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11660 (null_string): Delete it.
11661 (null_vector): Make it static.
11662 (font_family_alist): Delete it.
11663 (Qnormal): Extern it.
11664 (QCextra, QClanguage): Delete it.
11665 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11666 (font_make_spec, font_make_entity, font_make_object)
11667 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11668 the string. Callers changed.
11669 (font_pixel_size): Adjusted for the format change of font-related
11670 objects.
11671 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11672 (font_style_to_value, font_style_symbolic): New function.
11673 (build_font_family_alist): Delete it.
11674 (font_registry_charsets): Use Fassoc_string instead of
11675 assq_no_quit.
11676 (font_prop_validate_symbol): Don't return null_string.
11677 (font_prop_validate_style): Adjusted for the change of
11678 style-related values in a font vector.
11679 (font_property_table): Delete entries for QClanguage and
11680 QCantialias, add entries for QCavgwidth.
11681 (get_font_prop_index): Delete the 2nd argument FROM.
11682 (font_prop_validate): Arguments changed.
11683 (font_put_extra): Adjusted for the change of font-related objects.
11684 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11685 (font_parse_fcname, font_unparse_fcname)
11686 (font_prepare_composition): Likewise.
11687 (font_parse_family_registry): Renamed from font_merge_old_spec.
11688 (otf_open): Delete the 1st arg entity.
11689 (font_otf_capability): Adjusted for the above change.
11690 (font_score): New arg alternate_families. Adjusted for the change
11691 of font-related objects.
11692 (font_sort_entites): New arg best_only.
11693 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11694 Delete them.
11695 (font_match_p): Check alternate families.
11696 (font_find_object): Delete it.
11697 (font_check_object): New function.
11698 (font_clear_cache): Adjusted for the change of font-related objects.
11699 (font_delete_unmatched): New arg.
11700 (font_list_entities): Call font_driver->list with a spec that
11701 doesn't specify style-related properties.
11702 (font_matching_entity): Arguments changed. Caller changed.
11703 (font_open_entity): Adjusted for the change of font-related objects.
11704 (font_close_object, font_has_char, font_encode_char)
11705 (font_get_name, font_get_spec): Likewise.
11706 (font_spec_from_name, font_clear_prop, font_update_lface):
11707 New functions.
11708 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11709 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11710 (font_at): Adjusted for the change of font-related objects.
11711 (font_range): New function.
11712 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11713 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11714 (Fcopy_font_spec, Fmerge_font_spec): New function.
11715 (Ffont_family_list): Renamed from list-families.
11716 (Finternal_set_font_style_table): Arguments changed.
11717 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11718 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11719 change of font-related objects.
11720 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11721
11722 * fontset.h (struct font_info): Delete it. Most members go to
11723 struct font.
11724 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11725 (enum FONT_SPEC_INDEX): Delete it.
11726 (font_info, list_fonts_func, load_font_func, query_font_func)
11727 (set_frame_fontset_func, find_ccl_program_func)
11728 (get_font_repertory_func, new_fontset_from_font_name): Delete
11729 externs.
11730 (fontset_from_font_name): Extern it.
11731 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11732 (FONT_INFO_FROM_FACE): Deleted.
11733 (face_for_font): Adjust prototype.
11734
11735 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11736 conditionals. Don't check enable_font_backend. Delete all codes
11737 used only when USE_FONT_BACKEND is not defined.
11738 (get_font_info_func, list_font_func, load_font_func)
11739 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11740 (get_font_repertory_func): Delete them.
11741 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11742 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11743 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11744 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11745 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11746 (fontset_compare_rfontdef): New function.
11747 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11748 rfont-defs by qsort. Adjusted for the change of font-group vector.
11749 (load_font_get_repertory): Deleted.
11750 (fontset_find_font): Use new macros to ref/set elements of
11751 font-def and rfont-def.
11752 (fontset_font): Fix the timing of remembering that no font for C.
11753 (free_face_fontset): Do nothing if the face has no fontset.
11754 (face_suitable_for_char_p): Use new macros to ref/set elements of
11755 rfont-def.
11756 (face_for_char): Likewise. Call face_for_char with font_object.
11757 (fs_load_font): Delete. Delete #pragma surrounding it.
11758 (fs_query_fontset): Use strcasecmp instead of strcmp.
11759 (generate_ascii_font_name): Adjusted for the format change of
11760 font-spec.
11761 (Fset_fontset_font): Likewise. Use new macros to set elements of
11762 font-def.
11763 (Fnew_fontset): Use font_unparse_xlfd to generate
11764 FONTSET_ASCII (fontset).
11765 (new_fontset_from_font_name): Deleted.
11766 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11767 a fontset is already created for the font. FIx updating of
11768 Vfontset_alias_alist.
11769 (fontset_ascii_font): Deleted.
11770 (Ffont_info): Adjusted for the format change of font-spec.
11771 (Finternal_char_font): Likewise.
11772 (Ffontset_info): Likewise.
11773 (syms_of_fontset): Don't check load_font_func.
11774
11775 * fns.c (internal_equal): Handle PREV_FONT.
11776
11777 * frame.h: Delete USE_FONT_BACKEND conditional.
11778
11779 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11780 conditionals. Don't check enable_font_backend. Delete all codes
11781 used only when USE_FONT_BACKEND is not defined.
11782 (x_set_font): Call x_new_font, not x_new_fontset2.
11783 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11784 already set for the frame.
11785
11786 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11787 a font-entity by font_make_entity. Use font_intern_prop instead
11788 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11789 font property. If a font is scalable, set avgwidth property to 0.
11790 Set font-entity property by font_put_extra.
11791 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11792 (ffont_driver): Adjusted for the change of struct font_driver.
11793 (ftfont_spec_pattern): New function.
11794 (ftfont_list): Return a list, not vector.
11795 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11796 (ftfont_list_family): Don't downcase names.
11797 (ftfont_free_entity): Deleted.
11798 (ftfont_open): Return a font-object. Adjusted for the change of
11799 struct font. Get underline_thickness and underline_position from
11800 font property. Don't update dpyinfo->smallest_font_height and
11801 dpyinfo->smallest_char_width.
11802 (ftfont_close): Don't free `struct font'.
11803 (ftfont_has_char): Adjusted for the format change of font-entity.
11804 (ftfont_encode_char, ftfont_text_extents): Likewise.
11805
11806 * ftxfont.c (ftxfont_list): Return a list, not vector.
11807 (ftxfont_open): Return a font-object. Adjusted for the change of
11808 struct font. Get underline_thickness and underline_position from
11809 font property. Don't update dpyinfo->smallest_font_height and
11810 dpyinfo->smallest_char_width.
11811 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11812 (ftxfont_draw): Adjusted for the change of struct font.
11813
11814 * image.c (image_ascent): Don't include "charset.h". Include
11815 "character.h" and "font.h".
11816
11817 * lisp.h (enum pvec_type): New member PREV_FONT.
11818 (Fassoc_string): EXFUN it.
11819
11820 * print.c: Include font.h.
11821 (print_object): Handle font-related objects.
11822
11823 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11824 conditionals. Don't check enable_font_backend. Delete all codes
11825 used only when USE_FONT_BACKEND is not defined.
11826 (handle_auto_composed_prop): Do nothing if it->f is not on a
11827 window system. Check how many following characters can be
11828 displayed by the same font.
11829 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11830 'struct font *'.
11831 (get_char_face_and_encoding): Assign the whole encoding task to
11832 the `encode-char' method of a font driver.
11833 (fill_composite_glyph_string): Adjusted for the change of `struct
11834 face' and `struct glyph_string'.
11835 (fill_glyph_string): Likewise.
11836 (get_per_char_metric): Arguments changed.
11837 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11838 and `struct glyph_string'.
11839 (produce_stretch_glyph, calc_line_height_property)
11840 (x_produce_glyphs): Likewise.
11841
11842 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11843 conditionals. Don't check enable_font_backend. Delete all codes
11844 used only when USE_FONT_BACKEND is not defined. Use
11845 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11846 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11847 (Qp): Extern them.
11848 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11849 Deleted.
11850 (struct font_name): Deleted.
11851 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11852 (compare_fonts_by_sort_order): New function.
11853 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11854 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11855 Deleted.
11856 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11857 compare_fonts_by_sort_order.
11858 (Fx_font_family_list): Call Ffont_family_list.
11859 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11860 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11861 (face_symbolic_slant, face_symbolic_swidth)
11862 (split_font_name_into_vector, build_font_name_from_vector)
11863 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11864 (font_rescale_ratio, split_font_name, build_font_name)
11865 (free_font_names, sort_fonts, x_face_list_fonts)
11866 (face_font_available_p, sorted_font_list, cmp_font_names)
11867 (font_list_1, concat_font_list, font_list, remove_duplicates):
11868 Deleted.
11869 (Fx_list_fonts): Use Ffont_list.
11870 (LFACE_AVGWIDTH): Deleted.
11871 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11872 by FONTP.
11873 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11874 (set_lface_from_font_name): Delete it.
11875 (set_lface_from_font): Renamed from
11876 set_lface_from_font_and_fontset. Caller changed. Don't set
11877 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11878 for face.
11879 (merge_face_vectors): Copy font-spec if necessary.
11880 Clear properties of the font-spec if necessary.
11881 (merge_face_ref): Clear properties of the font-spec if necessary.
11882 (Finternal_set_lisp_face_attribute): Likewise.
11883 (set_font_frame_param): Use font_load_for_lface to load a
11884 font-object, and call Fmodify_frame_parameters with it.
11885 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11886 font name by Ffont_xlfd_name.
11887 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11888 QCslant, and QCwidth.
11889 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11890 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11891 Compare fonts by EQ.
11892 (lookup_non_ascii_face): Deleted.
11893 (face_for_font): The 2nd argument changed.
11894 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11895 Check atomic font properties by case insensitive.
11896 (realize_non_ascii_face): Set face->overstrike correctly.
11897 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11898 (dump_realized_face): Get font name from
11899 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11900
11901 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11902 conditionals. Don't check enable_font_backend. Delete all codes
11903 used only when USE_FONT_BACKEND is not defined.
11904 (xic_create_xfontset): Original code deleted and renamed from
11905 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11906 (x_make_gc): Don't set GCFont in GCs.
11907 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11908 opened by "fixed".
11909 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11910 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11911 get_font_repertory_func.
11912
11913 * xfont.c: Include <stdlib.h> and "ccl.h".
11914 (struct xfont_info): New structure.
11915 (xfont_query_font): Deleted.
11916 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11917 moved from xterm.c.
11918 (xfont_driver): Adjusted for the change of struct font_driver.
11919 (compare_font_names): New function.
11920 (xfont_list_pattern): Sort font names case insensitively. Make
11921 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11922 (xfont_list): Return a list, not vector.
11923 (xfont_match): If the font doesn't have QCname property, generate
11924 a name from the other font properties.
11925 (xfont_open): Return a font-object. Adjusted for the change of
11926 struct font. Get underline_thickness and underline_position from
11927 font property. Don't update dpyinfo->smallest_font_height and
11928 dpyinfo->smallest_char_width.
11929 (xfont_close): Don't free struct font.
11930 (xfont_prepare_face): Adjusted for the change of struct font.
11931 (xfont_done_face): Deleted.
11932 (xfont_has_char): Adjusted for the change of struct font.
11933 (xfont_encode_char, xfont_draw): Likewise.
11934 (xfont_check): New function.
11935
11936 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11937 callback function.
11938 (xftfont_match): Adjusted for the format change of font-entity.
11939 (xftfont_open): Adjusted for the format change of font-entity and
11940 font-object. Adjusted for the change of struct font. Return a
11941 font-object. Don't update dpyinfo->smallest_font_height and
11942 dpyinfo->smallest_char_width.
11943 (xftfont_close): Block input while calling XftFontClose.
11944 (xftfont_prepare_face): Don't block input while calling
11945 xftfont_get_colors. Adjusted for the change of struct font.
11946 (xftfont_shape): Return value of error case fixed.
11947
11948 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11949
11950 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11951 conditionals.
11952 (FONT_WIDTH): Return (f)->max_width.
11953 (struct x_display_info): Delete member `font'.
11954 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11955 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11956 (struct x_output): Change type of `font' to `struct font *'.
11957
11958 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11959 conditionals. Don't check enable_font_backend. Delete all codes
11960 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11961 (x_per_char_metric, x_encode_char): Deleted.
11962 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11963 (x_compute_glyph_string_overhangs): Adjusted for the change of
11964 `struct face'.
11965 (x_draw_glyph_string_foreground)
11966 (x_draw_composite_glyph_string_foreground): Likewise.
11967 (x_draw_glyph_string): Likewise. Use font->underline_position and
11968 font->underline_thickness.
11969 (x_new_font): Renamed from x_new_fontset2.
11970 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11971 (x_check_font): Call `check' method of a font driver.
11972 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11973 (x_query_font, x_get_font_repertory): Deleted.
11974 (x_find_ccl_program): Renamed and moved to xfont.c.
11975 (x_redisplay_interface): Adjusted for the change of `struct
11976 redisplay_interface'.
11977
11978 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11979 conditionals. Don't check enable_font_backend. Delete all codes
11980 used only when USE_FONT_BACKEND is not defined. Surround non-used
11981 code by "#ifdef OLD_FONT" and "endif".
11982 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11983
11984 * w32font.h (struct w32font_info): New member.
11985 (FONT_COMPAT): New macro.
11986 (w32font_open_internal): Prototype adjusted.
11987
11988 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11989 OLD_FONT" and "endif".
11990
11991 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11992 conditionals. Don't check enable_font_backend. Delete all codes
11993 used only when USE_FONT_BACKEND is not defined.
11994 (w32font_open): Return a font-object. Make a font-object by
11995 font_make_object. Adjusted for the change of struct w32font_info.
11996 (w32font_close): Don't free struct font. Adjusted for the change
11997 of struct w32font_info.
11998 (w32font_encode_char, w32font_text_extents, w32font_draw):
11999 Adjusted for the change of struct w32font_info.
12000 (w32font_draw): Likewise.
12001 (w32font_list_internal): Return a list, not vector.
12002 (w32font_open_internal): Change the 4th arg to font-object.
12003 Adjusted for the change of struct w32font_info and font-object format.
12004 (add_font_name_to_list): Don't downcase names.
12005 (w32_enumfont_pattern_entity): Make a font-entity by
12006 font_make_entity. Adjusted for the format change of font-entity.
12007 Use FONT_SET_STYLE to set a style-related font property. If a
12008 font is scalable, set avgwidth property to 0. Set font-entity
12009 property by font_put_extra.
12010 (font_matches_spec): Adjusted for the format change of font-entity.
12011 (w32_weight_table, w32_decode_weight): New variables.
12012 (w32_encode_weight): New function.
12013 (fill_in_logfont): Adjusted for the format change of font-spec.
12014 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12015 weight value.
12016 (w32font_driver): Adjusted for the change of struct font_driver.
12017
12018 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12019 conditionals. Don't check enable_font_backend. Surround non-used
12020 code by "#ifdef OLD_FONT" and "endif".
12021 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12022 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12023
12024 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12025 conditionals. Don't check enable_font_backend. Delete all codes
12026 used only when USE_FONT_BACKEND is not defined. Surround non-used
12027 code by "#ifdef OLD_FONT" and "endif".
12028
12029 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12030 (uniscribe_open): Return value changed to font-object.
12031 Adjusted for the format change of font-object.
12032 (uniscribe_otf_capability): Adjusted for the change of struct font.
12033 (add_opentype_font_name_to_list): Don't downcase names.
12034 (uniscribe_font_driver): Adjusted for the change of struct
12035 font_driver.
12036
120372008-05-13 Chong Yidong <cyd@stupidchicken.com>
12038
12039 * dispnew.c (update_frame_1): Check if tty output is still valid
12040 before flushing it.
12041
120422008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12043
12044 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12045 to Gtk+ menus.
12046
120472008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12048
12049 * dired.c (file_name_completion): Tweak the code so as to always do it
12050 in a single pass. Tighten the scope of some variables.
12051
12052 * dired.c (Qdefault_directory): New var.
12053 (file_name_completion): Use it instead of Fexpand_file_name.
12054 (syms_of_dired): Initialize it.
12055
120562008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12057
12058 * fileio.c (double_dollars): Remove dead code.
12059
120602008-05-10 Eli Zaretskii <eliz@gnu.org>
12061
12062 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12063 Mention w32-get-true-file-attributes in doc string.
12064
12065 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12066
120672008-05-09 Glenn Morris <rgm@gnu.org>
12068
12069 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12070 2008-04-23.
12071
120722008-05-09 Eli Zaretskii <eliz@gnu.org>
12073
12074 Support for reporting owner and group of each file on MS-Windows:
12075 * dired.c (stat_uname, stat_gname): New functions, with special
12076 implementation for w32.
12077 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12078
12079 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12080 (dflt_group_name): New static variable.
12081 (dflt_group): Rename from the_group.
12082 (init_user_info): Init dflt_group fields. Get user's group name
12083 from LookupAccountSid.
12084 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12085 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12086 New initialization states.
12087 (globals_of_w32): Initialize them to zero. Initialize the default
12088 group name to "None".
12089 (GetFileSecurity_Name): New global var, the name of the function
12090 to call for GetFileSecurity.
12091 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12092 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12093 (get_file_security, get_security_descriptor_owner)
12094 (get_security_descriptor_group, is_valid_sid)
12095 (get_file_security_desc, get_rid, get_name_and_id)
12096 (get_file_owner_and_group): New functions.
12097 (stat): Use get_file_security_desc and get_file_owner_and_group to
12098 report the owner and primary group of each file. Don't ignore the
12099 high 32 bits of file's size, now that st_size is 64-bit wide.
12100 Fix test when to get true file attributes.
12101 (init_user_info): Use get_rid instead of equivalent inline code.
12102 (fstat): Don't ignore the high 32 bits of file's size.
12103
121042008-05-09 Chong Yidong <cyd@stupidchicken.com>
12105
12106 * image.c (png_load): Use correct bit-depth for setting background
12107 color.
12108
121092008-05-08 Eli Zaretskii <eliz@gnu.org>
12110
12111 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12112 epa-hook.elc.
12113
121142008-05-08 Juanma Barranquero <lekktu@gmail.com>
12115
12116 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12117
121182008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12119
12120 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12121 because the original parameters are in pure storage now.
12122 (mac_window): Remove unused params. Update callers.
12123
121242008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12125
12126 * lread.c (substitute_object_recurse): Use lower-level primitives.
12127 Don't signal errors when traversing sub-char-tables.
12128 Don't loop over all the possible characters when traversing char-tables.
12129
12130 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12131 just like we do in print.c.
12132
121332008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12134
12135 * minibuf.c (Ftry_completion): Remove code left over from when we used
12136 scmp instead of Fcompare_strings.
12137
121382008-05-04 Juanma Barranquero <lekktu@gmail.com>
12139
12140 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12141
121422008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12143
12144 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12145 Create bitmap context in native byte order.
12146
12147 * macterm.c (XDrawLine)
12148 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12149 context in native byte order.
12150
121512008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12152
12153 * config.in: Regenerate.
12154
12155 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12156 New definitions for Image I/O support.
12157 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12158 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12159 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12160 (mac_data_provider_release_data, image_load_image_io)
12161 [USE_MAC_IMAGE_IO]: New functions.
12162 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12163 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12164 (init_image_func_pointer) [MAC_OSX]: Remove function.
12165 (image_load_quartz2d) [MAC_OSX]: Check availability of
12166 CGImageCreateWithPNGDataProvider at compile time.
12167 Use lowercase `false' for boolean constant.
12168 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12169 Use image_load_image_io.
12170 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12171 Don't check MyCGImageCreateWithPNGDataProvider.
12172 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12173 Don't call init_image_func_pointer.
12174
12175 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12176
12177 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12178 Make variable non-static.
12179 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12180 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12181
12182 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12183 (RED_FROM_ULONG): Mask off higher bits.
12184 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12185
12186 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12187 Include AvailabilityMacros.h.
12188 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12189 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12190
121912008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12192
12193 * chartab.c (Fset_char_table_range): If range is t, really set all
12194 chars to that value.
12195
121962008-05-03 Eli Zaretskii <eliz@gnu.org>
12197
12198 * dired.c (Ffile_attributes): Don't allow the device number become
12199 negative.
12200
122012008-05-02 Daiki Ueno <ueno@unixuser.org>
12202
12203 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12204
122052008-05-02 Juri Linkov <juri@jurta.org>
12206
12207 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12208 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12209 DEFAULT argument as a list of default values in docstrings.
12210
122112008-05-01 Chong Yidong <cyd@stupidchicken.com>
12212
12213 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12214
122152008-05-01 Martin Rudalics <rudalics@gmx.at>
12216
12217 * dispnew.c (change_frame_size_1): Preserve small windows when
12218 shrinking frames by calling set_window_height|width with third
12219 arg 2.
12220
12221 * window.h (struct window): Replace field too_small_ok by field
12222 resize_proportionally.
12223
12224 * window.c (make_window): Initialize resize_proportionally.
12225 (enlarge_window): Temporarily set resize_proportionally to make
12226 sure that shrink_windows does scale the window proportionally.
12227 (shrink_windows): When window has resize_proportionally set try
12228 to shrink it proportionally by stealing from other windows.
12229 (struct saved_window, Fset_window_configuration)
12230 (compare_window_configurations): Handle resize_proportionally.
12231 (WINDOW_TOTAL_SIZE): New macro.
12232 (window_min_size, shrink_windows, size_window): Use it.
12233 (check_min_window_sizes): Remove. Invalid values of
12234 window-min-height|width are handled by window_min_size_2 now.
12235 (size_window, Fsplit_window, enlarge_window)
12236 (adjust_window_trailing_edge, grow_mini_window): Don't call
12237 check_min_window_sizes.
12238 (window_min_size_2, window_min_size_1, window_min_size):
12239 New argument safe_p for retrieving "safe" minimum sizes.
12240 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12241 (adjust_window_trailing_edge, grow_mini_window):
12242 Adjust arguments of window_min_size... functions.
12243 (shrink_windows): Argument min_size removed. New argument
12244 safe_p allows shrinking windows to their safe minimum sizes.
12245 Calculate minimum size and decide whether a window shall be
12246 deleted for each window individually.
12247 (size_window): When nodelete_p equals 2, tell shrink_windows to
12248 delete windows only if their new minimum size is no more safe.
12249 (shrink_window_lowest_first): Call window_min_size_1 to make
12250 sure to preserve modeline of bottom-most window when resizing
12251 the minibuffer.
12252 (Fset_window_configuration, Fcurrent_window_configuration)
12253 (compare_window_configurations): Do not handle
12254 window-min-height|width any more.
12255 (syms_of_window): Clarify window-min-height|width doc-strings.
12256
122572008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12258
12259 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12260 some more. Copy some of the code from Ftry_completions.
12261 Remove special case code that dates back to initial revision when the
12262 slash was only added when necessary and that can't trigger nowadays.
12263
122642008-04-27 Kenichi Handa <handa@m17n.org>
12265
12266 * font.c (font_prop_validate): Signal `error' instead of `font'.
12267
122682008-04-29 Jason Rumney <jasonr@gnu.org>
12269
12270 * w32fns.c (Fw32_battery_status): New defun.
12271 (syms_of_w32fns): Defsubr it.
12272
122732008-04-28 Andreas Schwab <schwab@suse.de>
12274
12275 * dired.c (file_name_completion): Fix another mixing of encoded
12276 and decoded names.
12277
122782008-04-28 Juanma Barranquero <lekktu@gmail.com>
12279
12280 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12281
122822008-04-27 Juanma Barranquero <lekktu@gmail.com>
12283
12284 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12285
122862008-04-27 Andreas Schwab <schwab@suse.de>
12287
12288 * dired.c (file_name_completion): Fix inappropriate mixing of
12289 encoded and decoded names.
12290
12291 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12292
12293 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12294
122952008-04-26 Eli Zaretskii <eliz@gnu.org>
12296
12297 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12298 2008-03-31, it's not needed anymore with `struct stat' definition
12299 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12300 for the same reasons.
12301
123022008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12303
12304 * m/sparc.h: Additional redefinitions for GNU/Linux.
12305
123062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12307
12308 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12309 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12310 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12311 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12312 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12313 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12314 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12315 Likewise.
12316
12317 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12318 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12319 (mac_ax_number_of_characters): Add externs.
12320 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12321 [USE_MAC_TSM]: Likewise.
12322 (mac_handle_text_input_event) [MAC_OSX]:
12323 Handle kEventTextInputOffsetToPos for no active input area case.
12324 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12325 (mac_handle_document_access_event)
12326 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12327 (install_application_handler) [MAC_OSX]: Register handlers for
12328 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12329 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12330 Register mac_handle_document_access_event.
12331
12332 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12333 Make functions non-static.
12334
123352008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12336
12337 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12338 (read_file_name_completion_ignore_case, insert_default_directory)
12339 (Qdefault_directory): Move to minibuffer.el.
12340 (Fread_file_name): Call the new `read-file-name' instead.
12341
123422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12343
12344 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12345 Make function non-static.
12346 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12347 Remove function.
12348 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12349 Move to mactoolbox.c.
12350 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12351
12352 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12353 (mac_rect_make): New macro.
12354
12355 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12356 instead of float.
12357 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12358 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12359 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12360 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12361 CGRectMake.
12362 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12363 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12364 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12365 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12366 instead of WindowRef in argument type.
12367 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12368 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12369 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12370 instead of DISPLAY. All uses changed.
12371 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12372 (x_calc_absolute_position): Simplify so as not to use
12373 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12374
12375 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12376 instead of WindowRef in argument type.
12377 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12378 [TARGET_API_MAC_CARBON]: Remove externs.
12379 (create_apple_event, mac_event_parameters_to_lisp)
12380 [TARGET_API_MAC_CARBON]: Add externs.
12381
12382 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12383 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12384 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12385 is clicked.
12386 (x_activate_menubar): Remove extern for saved_menu_event_location.
12387 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12388 Move from mac.c.
12389
123902008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12391
12392 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12393 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12394
123952008-04-23 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12398 attributes only for local files.
12399
12400 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12401 default to Qlocal.
12402
124032008-04-22 Juri Linkov <juri@jurta.org>
12404
12405 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12406 read-buffer-to-switch instead of using the letter "B".
12407
124082008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12409
12410 * fileio.c (Qdefault_directory): New variable.
12411 (Fread_file_name): Use it to pass `dir' to the completion functions.
12412
124132008-04-20 Chong Yidong <cyd@stupidchicken.com>
12414
12415 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12416
124172008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * keyboard.c (Vpre_help_message): Remove.
12420 (show_help_echo): Remove default C code.
12421
12422 * dired.c (directory_files_internal, file_name_completion):
12423 Only call ENCODE_FILE if the string is indeed decoded.
12424
124252008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12426
12427 * Makefile.in (TOOLKIT_DEFINES): Remove.
12428 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12429
124302008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12431
12432 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12433 (mactoolbox.o): New target.
12434
12435 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12436 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12437
12438 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12439 Use mac_set_frame_window_background instead of XSetWindowBackground.
12440 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12441 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12442 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12443 instead of SetWindowTitleWithCFString.
12444 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12445 Move function to mactoolbox.c.
12446 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12447 Use mac_set_window_modified instead of SetWindowModified.
12448 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12449 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12450 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12451 FrontNonFloatingWindow. Use mac_activate_window instead of
12452 ActivateWindow. Use mac_active_non_floating_window instead of
12453 ActiveNonFloatingWindow.
12454 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12455 Use mac_show_hourglass and mac_hide_hourglass.
12456 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12457 instead of GetGlobalMouse.
12458 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12459 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12460 Use mac_bring_window_to_front instead of BringToFront.
12461 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12462 mactoolbox.c.
12463 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12464 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12465 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12466 mactoolbox.c.
12467
12468 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12469 (XtPointer): Move typedef from macmenu.c.
12470 (enum button_type): Move enum from macmenu.c.
12471 (widget_value): Move typedef from macmenu.c.
12472 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12473 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12474 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12475 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12476 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12477 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12478 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12479 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12480 (Selection): Move typedef from macselect.c.
12481 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12482 macterm.c.
12483 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12484 (mac_is_window_collapsed, mac_bring_window_to_front)
12485 (mac_send_window_behind, mac_hide_window, mac_show_window)
12486 (mac_collapse_window, mac_front_non_floating_window)
12487 (mac_active_non_floating_window, mac_activate_window)
12488 (mac_move_window_structure, mac_move_window, mac_size_window)
12489 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12490
12491 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12492 (enum mac_menu_kind): Move enum to mactoolbox.c.
12493 (min_menu_id): Move variable to mactoolbox.c.
12494 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12495 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12496 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12497 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12498 [TARGET_API_MAC_CARBON]: Likewise.
12499 (XtPointer): Move typedef to macgui.h.
12500 (enum button_type): Move enum to macgui.h.
12501 (widget_value): Move typedef to macgui.h.
12502 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12503 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12504 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12505 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12506 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12507 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12508 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12509 (popup_activated_flag): Make variable non-static.
12510 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12511 (add_menu_item, fill_menu, dispose_menus):
12512 Move functions to mactoolbox.c.
12513 (restore_show_help_function, menu_target_item_handler)
12514 (install_menu_target_item_handler, mac_handle_dialog_event)
12515 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12516 [TARGET_API_MAC_CARBON]: Likewise.
12517 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12518 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12519 (find_and_call_menu_selection, name_is_separator): Make function
12520 non-static.
12521 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12522 to mactoolbox.c.
12523 (set_frame_menubar): Don't call install_menu_quit_handler.
12524 (menu_item_selection): New variable.
12525 (mac_menu_show): Use create_and_show_popup_menu.
12526 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12527 selection but set variable menu_item_selection. All uses changed.
12528 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12529 Call install_menu_quit_handler. Move to mactoolbox.c.
12530
12531 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12532 (Selection): Move typedef to macgui.h.
12533 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12534 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12535 Make variables non-static.
12536 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12537 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12538 Make functions non-static.
12539 (Vmac_service_selection) [MAC_OSX]: Likewise.
12540 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12541 (mac_valid_selection_target_p, mac_clear_selection)
12542 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12543 (mac_put_selection_value, mac_selection_has_target_p)
12544 (mac_get_selection_value, mac_get_selection_target_list)
12545 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12546 Move functions to mactoolbox.c.
12547 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12548 Likewise.
12549 (copy_scrap_flavor_data, mac_handle_service_event)
12550 (install_service_handler) [MAC_OSX]: Likewise.
12551 (syms_of_macselect) <Vmac_dnd_known_types>:
12552 Use mac_dnd_default_known_types.
12553
12554 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12555 Move to mactoolbox.c.
12556 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12557 (Fx_selection_owner_p): Add EXFUN.
12558 (install_window_handler, remove_window_handler, XSetWindowBackground):
12559 Remove externs.
12560 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12561 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12562 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12563 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12564 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12565 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12566 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12567 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12568 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12569 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12570 (mac_valid_selection_target_p, mac_clear_selection)
12571 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12572 (mac_put_selection_value, mac_selection_has_target_p)
12573 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12574 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12575 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12576 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12577 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12578 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12579 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12580 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12581 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12582
12583 * mactoolbox.c: New file.
12584
125852008-04-18 Jason Rumney <jasonr@gnu.org>
12586
12587 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12588
125892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12590
12591 * character.c (Fmultibyte_char_to_unibyte):
12592 Return latin1 chars unchanged.
12593
12594 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12595 relocated if it points to `name'.
12596
125972008-04-17 Kenichi Handa <handa@m17n.org>
12598
12599 * data.c (Faset): Allow setting a multibyte character in an
12600 ASCII-only unibyte string.
12601
12602 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12603
126042008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12605
12606 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12607 done in config.h.
12608
126092008-04-16 Juanma Barranquero <lekktu@gmail.com>
12610
12611 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12612 (Fchar_direction): Add usage in the docstring.
12613
126142008-04-15 Chong Yidong <cyd@stupidchicken.com>
12615
12616 * keyboard.c (read_key_sequence): Remove always-true checks.
12617
126182008-04-14 Jason Rumney <jasonr@gnu.org>
12619
12620 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12621 compatibility struct, for better underline positioning.
12622
126232008-04-13 David Hansen <david.hansen@gmx.net>
12624
12625 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12626 string.
12627
126282008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12629
12630 * m/hp800.h (XUINT, XSET): Remove.
12631
126322008-04-12 Juanma Barranquero <lekktu@gmail.com>
12633
12634 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12635 previous change.
12636
126372008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12638
12639 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12640 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12641
126422008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12643
12644 * keymap.h (map_keymap_canonical): Declare.
12645 * xmenu.c (single_keymap_panes): Use it.
12646
126472008-04-11 Glenn Morris <rgm@gnu.org>
12648
12649 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12650 set the target's value to that of the alias.
12651
126522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12653
12654 * term.c (set_tty_color_mode): Left over typo.
12655
126562008-04-10 Michael Albinus <michael.albinus@gmx.de>
12657
12658 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12659 only after check for file name handler functions. Signal, when
12660 native functionality is not supported.
12661 (syms_of_fileio): Declare it unconditionally.
12662
126632008-04-10 Jason Rumney <jasonr@gnu.org>
12664
12665 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12666 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12667
12668 * w32.c (logon_network_drive): Also logon to remote drives that
12669 are mapped to drive letters.
12670
126712008-04-10 Glenn Morris <rgm@gnu.org>
12672
12673 * xdisp.c (truncate-partial-width-windows): Doc fix.
12674
126752008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12676
12677 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12678 Move functions to minibuffer.el.
12679 (syms_of_fileio): Don't declare them.
12680
126812008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12684 (syms_of_minibuf): Remove its initialization.
12685
12686 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12687
126882008-04-09 Juanma Barranquero <lekktu@gmail.com>
12689
12690 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12691
126922008-04-09 Jason Rumney <jasonr@gnu.org>
12693
12694 * makefile.w32-in (distclean): Delete makefile too.
12695 (maintainer-clean): New target.
12696
12697 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12698
12699 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12700 for new font backend and composite cases.
12701
127022008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12703
12704 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12705 Most of the code moved to run_timers.
12706 (do_pending_atimers): Call run_timers.
12707 (run_timers): New function.
12708
12709 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12710 run atimers.
12711
12712 * process.c (wait_reading_process_output): The same as above.
12713
127142008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12715
12716 * minibuf.c (last_exact_completion): Remove variable.
12717 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12718 (complete_and_exit_1, complete_and_exit_2)
12719 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12720 (Fdisplay_completion_list, display_completion_list_1)
12721 (Fminibuffer_completion_help, Fself_insert_and_exit)
12722 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12723 minibuffer.el.
12724 (syms_of_minibuf): Remove corresponding initializations.
12725
12726 * keyboard.c (Qdeactivate_mark): New var.
12727 (command_loop_1): Use it to call `deactivate-mark'.
12728 (syms_of_keyboard): Initialize it.
12729
12730 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12731 to another frame.
12732 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12733 Don't call set_tty_color_mode.
12734 (store_frame_param): Reset previous_frame rather than call
12735 set_tty_color_mode.
12736 * term.c (set_tty_color_mode): Rewrite.
12737 * dispextern.h (set_tty_color_mode): New type.
12738 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12739
127402008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12741
12742 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12743 for generic chars, which do not exist any more in emacs-unicode.
12744
127452008-04-08 Michael Albinus <michael.albinus@gmx.de>
12746
12747 * coding.c (detect_coding_emacs_mule)
12748 (Ffind_operation_coding_system): Fix typo.
12749
127502008-04-08 Jason Rumney <jasonr@gnu.org>
12751
12752 * w32uniscribe.c (SNAME): Extract only symbol name.
12753
12754 * w32font.h (struct w32_metric_cache): New struct.
12755 (w32font_info): Use it.
12756 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12757 (CACHE_BLOCKSIZE): New constants.
12758
12759 * w32font.c (Qja, Qko, Qzh): New symbols.
12760 (syms_of_w32font): Initialise them.
12761 (font_matches_spec): Use them to filter by language.
12762 (recompute_cached_metrics): Remove function.
12763 (compute_metrics, clear_cached_metrics): New functions.
12764 (w32font_encode_char): Use them to manage metric cache.
12765 (w32font_text_extents): Cache metrics for all glyphs on demand.
12766 Delay converting glyph indices to WORD until needed.
12767 (w32font_open_internal): Initialize metric cache to empty.
12768 (registry_to_w32_charset): Charset should always be a symbol.
12769 (fill_in_logfont, list_all_matching_fonts): Family should
12770 always be a symbol.
12771
127722008-04-06 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12775 Give up if glyph indices not supported. Use uniscribe obtained
12776 ABC widths for individual metrics. Map glyph clusters back to
12777 characters using fClusterStart flag. Return number of glyphs
12778 produced, not chars processed.
12779 (uniscribe_shape): Map char at FROM to current glyph.
12780
127812008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12782
12783 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12784 Use SetMenuItemHierarchicalMenu.
12785
127862008-04-05 Jason Rumney <jasonr@gnu.org>
12787
12788 * image.c (pbm_load): Allow color values up to 65535.
12789 Throw an error if max_color_idx is outside the supported range.
12790 Report an error when image size is invalid.
12791 Read two bytes at a time when raw images have max_color_idx above 255.
12792
127932008-04-05 Eli Zaretskii <eliz@gnu.org>
12794
12795 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12796 cFileName a file name that includes `?' characters, use the 8+3
12797 alias in cAlternateFileName instead.
12798
127992008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12800
12801 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12802 append "CCL: Quitted" when the CCL program is quitted.
12803 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12804
12805 * ccl.h (struct ccl_program): New member quit_silently.
12806
128072008-04-05 Chong Yidong <cyd@stupidchicken.com>
12808
12809 * search.c (compile_pattern_1): Treat non-nil and non-string of
12810 search-spaces-regexp as nil.
12811
12812 * minibuf.c (Fassoc_string): Tweak docstring.
12813
128142008-04-05 Eli Zaretskii <eliz@gnu.org>
12815
12816 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12817 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12818 2008-03-14 to force inode be positive.
12819
12820 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12821 _S_* ones, since we now use our own sys/stat.h.
12822 (stat, fstat): Don't mangle the inode number.
12823 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12824
128252008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12826
12827 * frame.h (struct frame): Give one more bit to `visible' since we use
12828 values larger than 1 to indicate obscured frames on ttys.
12829
12830 * keymap.c (Qkeymap_canonicalize): New var.
12831 (Fmap_keymap_internal): New fun.
12832 (describe_map): Use keymap-canonicalize.
12833
12834 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12835 (Fundo_boundary): Set them.
12836 (syms_of_undo): Initialize them.
12837 (record_point): Use them instead of last_point_position*.
12838 (last_undo_buffer): Change type.
12839
128402008-04-04 Jason Rumney <jasonr@gnu.org>
12841
12842 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12843 (recompute_cached_metrics): Don't set ascent and descent per char.
12844
12845 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12846 (uniscribe_check_otf): Add GC protection before consing.
12847 Rearrange loop for counting features.
12848
128492008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12850
12851 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12852 buffer with byte-size of source buffer.
12853
128542008-04-03 Chong Yidong <cyd@stupidchicken.com>
12855
12856 * callint.c (Fcall_interactively): Handle temporary region even
12857 when shift-select-mode is off.
12858
128592008-04-03 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12862
128632008-04-03 Kenichi Handa <handa@m17n.org>
12864
12865 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12866 (CATEGORY_MASK_UTF_16): Likewise.
12867 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12868 binary file.
12869 (detect_coding): Add null-byte detection for a binary file.
12870 (detect_coding_system): Likewise.
12871
128722008-04-03 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32uniscribe.c: New file.
12875
12876 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12877
12878 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12879
12880 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12881 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12882 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12883 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12884 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12885 (Qphonetic): New symbols.
12886 (syms_of_w32font): Initialize them.
12887 (font_supported_scripts): Use them.
12888 (w32font_list_family): List all charsets.
12889 (w32font_text_extents, recompute_cached_metrics): Fix metric
12890 calculations.
12891 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12892 Give opentype fonts their own format.
12893 (font_matches_spec): New arguments backend and logfont.
12894 Handle :otf spec for uniscribe backend.
12895 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12896 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12897
12898 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12899 font backend.
12900 (globals_of_w32fns): Initialize uniscribe font backend.
12901
12902 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12903 dependencies.
12904 (w32uniscribe.$(O)): New file to build.
12905 (FONT_OBJ): Include w32uniscribe.$(O).
12906 (LIBS): Add uniscribe libraries.
12907
12908 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12909
129102008-04-02 Chong Yidong <cyd@stupidchicken.com>
12911
12912 * callint.c (Vshift_select_mode): New var.
12913 (Finteractive): Document new ^ spec.
12914 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12915 is present.
12916
12917 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12918 (command_loop_1): Avoid running the direct display versions of
12919 forward-char and backward-char if shift-selection may occur.
12920 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12921 shift-translation takes place.
12922
12923 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12924 avoid clobbering by define-minor-mode.
12925
12926 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12927 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12928
12929 * syntax.c (Fforward_word): Add ^ interactive spec.
12930
12931 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12932 (Fscroll_right): Add ^ interactive spec.
12933
129342008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12935
12936 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12937
12938 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12939
12940 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12941
129422008-03-31 Juri Linkov <juri@jurta.org>
12943
12944 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12945
129462008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12947
12948 * gtkutil.c (xg_set_geometry): Fix indentation.
12949 (xg_resize_outer_widget): Remove.
12950 (x_wm_size_hint_off): Fix indentation.
12951 (xg_frame_set_char_size): Call flush_and_sync after
12952 gtk_window_resize.
12953 (x_wm_set_size_hint): Pass NULL as geometry window to
12954 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12955 Add menu bar and tool bar height to base height.
12956 (xg_update_frame_menubar, free_frame_menubar)
12957 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12958 (update_frame_tool_bar, free_frame_tool_bar):
12959 Change xg_resize_outer_widget to xg_frame_set_char_size.
12960
129612008-03-30 Michael Albinus <michael.albinus@gmx.de>
12962
12963 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12964 (Fdbus_call_method): New parameter TIMEOUT.
12965 (dbus-send-signal): Optimize UNGCPRO call.
12966
129672008-03-29 Juri Linkov <juri@jurta.org>
12968
12969 * window.c (Fdisplay_buffer): Move call to
12970 Vsplit_window_preferred_function out of conditions that check
12971 if window is eligible for vertical splitting.
12972 When Vsplit_window_preferred_function is non-nil, call it and use
12973 its non-nil return value as window. Otherwise, continue doing
12974 vertical splitting using Fsplit_window with arg horflag=nil.
12975 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12976 default value from `split-window' to nil.
12977
129782008-03-29 Juri Linkov <juri@jurta.org>
12979
12980 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12981 for interactive code letters 'b' and 'B'.
12982
129832008-03-29 Eli Zaretskii <eliz@gnu.org>
12984
12985 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12986 multibyte string.
12987
129882008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12989
12990 * keyboard.c (pending_funcalls): New var.
12991 (timer_check): Run it.
12992 (syms_of_keyboard): Initialize it.
12993 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12994 (Vdelete_terminal_functions): New vars.
12995 (syms_of_terminal): Initialize them.
12996 (Fdelete_terminal): Run delete-terminal-functions.
12997 * xdisp.c (safe_eval): Rewrite.
12998 (safe_call2): New fun.
12999 * frame.c (Qdelete_frame_functions): New var.
13000 (syms_of_frame): Initialize it.
13001 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13002 * lisp.h (safe_call2, pending_funcalls): Declare.
13003
130042008-03-28 Andreas Schwab <schwab@suse.de>
13005
13006 * indent.c (Fmove_to_column): Move declaration before statements.
13007
130082008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13009
13010 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13011 (struct frame): Use bit fields for boolean vars.
13012
13013 * process.c (server_accept_connection): Simplify naming.
13014 (emacs_get_tty_pgrp): Use SDATA.
13015
13016 * coding.c (decode_coding_object): Fix last change.
13017
130182008-03-27 Jason Rumney <jasonr@gnu.org>
13019
13020 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13021
130222008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13023
13024 * charset.c (Fdefine_charset_internal): Change the way of
13025 registering charsets in Vcharset_order_list.
13026 (syms_of_charset): Make the charset `eight-bit' supplementary.
13027
130282008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13029
13030 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13031 operations, to avoid having the difference between pointers
13032 overflow.
13033
130342008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13035
13036 * indent.c (check_display_width): New fun.
13037 (scan_for_column): Use it.
13038
13039 * data.c (syms_of_data): Mark most-positive-fixnum and
13040 most-negative-fixnum as constants.
13041
13042 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13043
13044 * indent.c (scan_for_column): Extract from current_column_1.
13045 Merge with the same code from Fmove_to_column.
13046 (current_column_1, Fmove_to_column): Use it.
13047
130482008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13049
13050 * keymap.c (map_keymap_internal): New fun.
13051 (map_keymap): Use it.
13052 (Fmap_keymap_internal): New fun.
13053 (Fmap_keymap): Remove left-out test from before make_save_value.
13054
13055 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13056
13057 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13058 Use XCAR/XCDR.
13059
13060 * process.h (struct Lisp_Process): Remove filter_multibyte.
13061 * process.c (QCfilter_multibyte): Remove.
13062 (setup_process_coding_systems): Don't use filter_multibyte.
13063 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13064 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13065 (Fset_process_filter_multibyte): Change the coding-system to
13066 approximate the previous behavior.
13067 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13068 coding-system.
13069
13070 * coding.c (decode_coding_object): When not decoding into a buffer,
13071 obey the coding system's preference of (uni|multi)byte.
13072
130732008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13074
13075 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13076 every char is changed and has a different byte-length.
13077 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13078 Fix int -> EMACS_INT.
13079
130802008-03-23 David Hansen <david.hansen@gmx.net>
13081
13082 * dbusbind.c (xd_read_message): Remove extra copying of message
13083 strings. Check for NULL `interface' or `member'.
13084
130852008-03-22 Eli Zaretskii <eliz@gnu.org>
13086
13087 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13088 cFileName a file name that includes `?' characters, use the 8+3
13089 alias in cAlternateFileName instead.
13090
130912008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13094
130952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13096
13097 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13098 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13099 work on current_buffer only instead (that was already the case
13100 for some of the code anyway).
13101 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13102 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13103 (SET_PT, SET_PT_BOTH): Adjust.
13104 * intervals.h (set_point, temp_set_point, set_point_both)
13105 (temp_set_point_both): Remove redundant declarations.
13106
131072008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13108
13109 * fileio.c (Finsert_file_contents):
13110 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13111 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13112 when buffer != current_buffer anyway.
13113
131142008-03-20 Andreas Schwab <schwab@suse.de>
13115
13116 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13117 as default.
13118
131192008-03-19 Jason Rumney <jasonr@gnu.org>
13120
13121 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13122 (syms_of_w32fns): Initialize them.
13123 (HOURGLASS_ID): New constant.
13124 (x_window_to_frame): Don't check hourglass_window.
13125 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13126 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13127 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13128 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13129 Only change the cursor if hourglass is not active.
13130 (Fx_create_frame): Initialize frame's current_cursor.
13131 (hourglass_atimer): Remove.
13132 (hourglass_started): New function.
13133 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13134 (show_hourglass): Adapt to w32, changing argument to frame.
13135
13136 * w32term.h (struct w32_output): Remove hourglass_window.
13137 Add current_cursor.
13138
13139 * eval.c (call_debugger, Fsignal):
13140 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13141 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13142 (Fexecute_extended_command, cancel_hourglass_unwind):
13143 * minibuf.c (read_minibuf):
13144 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13145
131462008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13147
13148 * window.c (run_funs): New fun.
13149 (run_window_configuration_change_hook): Use it to run the buffer-local
13150 and the global part of the hook.
13151
13152 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13153 (unwind_format_mode_line): Restore selected window.
13154 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13155
131562008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13157
13158 * editfns.c (Fchar_equal): Check they are valid characters.
13159
13160 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13161
131622008-03-17 Andreas Schwab <schwab@suse.de>
13163
13164 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13165 against a charset.
13166
13167 * lisp.h (Fbuffer_list): Declare.
13168
131692008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13170
aac0c6e3
MR
13171 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13172 handlebox_widget is != 0.
13173
131742008-03-16 Juri Linkov <juri@jurta.org>
13175
13176 * callint.c (Fcall_interactively): For interactive code letters
13177 'b' and 'B' put the buffer list into the list of default "future"
13178 values of the minibuffer.
13179
131802008-03-16 Andreas Schwab <schwab@suse.de>
13181
13182 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13183 modifiers.
13184
13185 * regex.c (re_match_2_internal): Correct matching of a charset
13186 against latin-1 characters.
13187
131882008-03-16 Kenichi Handa <handa@m17n.org>
13189
13190 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13191 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13192 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13193 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13194 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13195 CHAR_STRING_ADVANCE.
13196 (produce_chars): Fix for the case that the source and the
13197 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13198 instead of CHAR_STRING_ADVANCE.
13199 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13200 STRING_CHAR_ADVANCE.
13201
132022008-03-15 Andreas Schwab <schwab@suse.de>
13203
13204 * regex.c (re_match_2_internal): Correct matching of eight bit
13205 characters in unibyte strings.
13206
132072008-03-15 Martin Rudalics <rudalics@gmx.at>
13208
13209 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13210 at end of range when it coincides with the end of the buffer.
13211
132122008-03-14 Eli Zaretskii <eliz@gnu.org>
13213
13214 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13215
13216 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13217
132182008-03-14 Jason Rumney <jasonr@gnu.org>
13219
13220 * editfns.c (initial_tz): New variable.
13221 (syms_of_editfns): Initialize it.
13222 (Fset_time_zone_rule): Set it when first called.
13223 Use it when TZSTRING is nil.
13224
13225 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13226 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13227 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13228 (globals_of_w32fns): Initialize them.
13229 (compute_tip_xy): Use them to position tooltips.
13230
132312008-03-14 Glenn Morris <rgm@gnu.org>
13232
13233 * emacs.c (main): Revert previous change.
13234 (standard_args): Revert -internal-script back to -scriptload,
13235 and remove the long-option form.
13236
132372008-03-13 Glenn Morris <rgm@gnu.org>
13238
13239 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13240 Remove option -enable-font-backend.
13241
132422008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13243
13244 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13245
132462008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13247
13248 * xterm.c (x_connection_closed): For GTK: If this is the last
13249 terminal just exit without closing the display.
13250
132512008-03-11 Jason Rumney <jasonr@gnu.org>
13252
13253 * w32font.c (w32font_full_name): Use floor to round.
13254
f0131492 132552008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13256
13257 * sound.c (alsa_configure): Declare vol at beginning of block.
13258
13259 * fontset.c (Ffontset_info): Remove extra semicolon.
13260
132612008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13264 size of resulting string.
13265
132662008-03-10 Jason Rumney <jasonr@gnu.org>
13267
13268 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13269
132702008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13271
13272 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13273 Don't pretend as if characters with display property haven't been
13274 consumed for string-replacing-string case.
13275
132762008-03-08 Kim F. Storm <storm@cua.dk>
13277
13278 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13279 (get_next_display_element, next_element_from_string)
13280 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13281
132822008-03-08 Andreas Schwab <schwab@suse.de>
13283
13284 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13285
132862008-03-06 Jason Rumney <jasonr@gnu.org>
13287
13288 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13289 when charset not specified. Only translate ANSI to unicode when
13290 font_type is truetype.
13291 (w32font_coverage_ok): New function.
13292 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13293
132942008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13295
13296 * lread.c (Fread_char): Resolve modifiers.
13297 (Fread_char_exclusive): Likewise.
13298
13299 * character.c (char_resolve_modifier_mask): New function.
13300 (char_string): Use char_resolve_modifier_mask.
13301 (Fchar_resolve_modifiers): New function.
13302 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13303 function.
13304
133052008-03-04 Jason Rumney <jasonr@gnu.org>
13306
13307 * makefile.w32-in: Always include w32font.c in the build.
13308 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13309
133102008-03-04 Andreas Schwab <schwab@suse.de>
13311
13312 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13313 (versionclean): Likewise.
13314
133152008-03-04 Juanma Barranquero <lekktu@gmail.com>
13316
13317 * .cvsignore: Add oo.
13318
133192008-03-03 Andreas Schwab <schwab@suse.de>
13320
13321 * coding.c (decode_coding_object): Inhibit gap shrinking while
13322 decoding in place.
13323
133242008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13325
13326 * w32term.c: Remove unused include "gnu.h".
13327 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13328
13329 * gnu.h: Rename to ...
13330 * emacs-icon.h: ... this.
13331 * xterm.c: Use emacs-icon.h instead of gnu.h.
13332 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13333
133342008-03-03 Juanma Barranquero <lekktu@gmail.com>
13335
13336 * w32font.c: Include math.h.
13337
133382008-03-03 Jason Rumney <jasonr@gnu.org>
13339
13340 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13341 Compute options separately.
13342 (w32font_open_internal): Set glyph_idx before caching metrics.
13343
13344 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13345 Define if system headers don't.
13346 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13347 (w32font_encode_char): Don't declare here.
13348
13349 * w32font.c (Quniscribe, QCformat): New symbols.
13350 (syms_of_w32font): Define them.
13351 (w32font_has_char): Indicate uncertainty.
13352 (w32font_encode_char): Encode as glyph point. Make static.
13353 (recompute_cached_metrics): New function.
13354 (w32font_open_internal): Use it. Set font to use glyph points
13355 initially. Set format based on type of font.
13356 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13357 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13358 on it. Set format based on information available here.
13359 (add_font_entity_to_list): Identify backend based on opentype_only.
13360
133612008-03-02 Andreas Schwab <schwab@suse.de>
13362
13363 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13364
13365 * coding.c (decode_coding_big5, produce_chars):
13366 Fix typos in last change.
13367
133682008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13369
13370 * gnu.h: New icon.
13371
133722008-03-02 Kenichi Handa <handa@m17n.org>
13373
13374 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13375 `dos', don't decode '\r' if that is the last in the source.
13376 (decode_coding_utf_16, decode_coding_emacs_mule)
13377 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13378 (decode_coding_raw_text, decode_coding_charset): Likewise.
13379 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13380
133812008-03-01 Jason Rumney <jasonr@gnu.org>
13382
13383 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13384
133852008-03-01 Kim F. Storm <storm@cua.dk>
13386
13387 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13388
133892008-03-01 Jason Rumney <jasonr@gnu.org>
13390
13391 * w32font.c (w32font_full_name): New function.
13392 (w32font_open_internal): Use it.
13393
133942008-03-01 Kim F. Storm <storm@cua.dk>
13395
13396 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13397
133982008-03-01 Jason Rumney <jasonr@gnu.org>
13399
13400 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13401
134022008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13403
13404 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13405 xg_frame_resized when the event is for the edit widget.
13406
13407 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13408
13409 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13410 set_char_size.
13411 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13412 operations on widgets here. Just set frame size if needed.
13413 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13414 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13415 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13416 the whole frame.
13417 (xg_create_tool_bar): Move attachment of the tool bar to
13418 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13419 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13420
134212008-03-01 Jason Rumney <jasonr@gnu.org>
13422
13423 * w32fns.c (w32_msg_pump): Disable debug code.
13424
134252008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13426
13427 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13428
134292008-02-29 Chong Yidong <cyd@stupidchicken.com>
13430
13431 * xdisp.c (next_overlay_string): Don't set
13432 overlay_strings_at_end_processed_p if we're currently reading from
13433 a display string.
13434
134352008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13436
13437 * xdisp.c (get_overlay_strings_1): Fix typo.
13438
134392008-02-29 Chong Yidong <cyd@stupidchicken.com>
13440
13441 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13442
134432008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13444
13445 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13446
13447 * xdisp.c (display_mode_element): Cancel the previous change.
13448 (decode_mode_spec): Likewise.
13449 (handle_auto_composed_prop): Don't make composition if it->string
13450 is a string.
13451
134522008-02-27 Kim F. Storm <storm@cua.dk>
13453
13454 * lisp.h (GLYPH): Change type from int to struct with separate char
13455 and face_id members.
13456 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13457 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13458 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13459 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13460 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13461 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13462 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13463 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13464 handle new Lisp glyph code encoding, either an integer or a cons.
13465
13466 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13467 (GLYPH_ALIAS): Delete.
13468 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13469 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13470 (GLYPH_FROM_CHAR): Replace macro by ...
13471 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13472
13473 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13474 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13475 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13476 (GLYPH_INVALID_P): New macro.
13477 (spec_glyph_lookup_face): Update prototype.
13478
13479 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13480 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13481 new glyph code encoding.
13482 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13483 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13484
13485 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13486 Adapt to new glyph type and new glyph code encoding.
13487
13488 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13489
13490 * indent.c (current_column, current_column_1, Fmove_to_column)
13491 (compute_motion): Adapt to new glyph code encoding.
13492
13493 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13494
134952008-02-27 Chong Yidong <cyd@stupidchicken.com>
13496
13497 * process.c (wait_reading_process_output): Check for window
13498 changes caused by timers.
13499 Suggested by Johan Bockgård.
13500
135012008-02-27 Glenn Morris <rgm@gnu.org>
13502
13503 * emacs.c (USAGE1): Add `--disable-font-backend'.
13504
135052008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13506
13507 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13508 is made to the buffer.
13509
135102008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13511
13512 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13513 (face_at_string_position):
13514 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13515 (face_at_string_position):
13516 * xdisp.c (display_string, next_overlay_change):
13517 * buffer.h (overlays_at):
13518 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13519 Update callers.
13520
135212008-02-26 Chong Yidong <cyd@stupidchicken.com>
13522
13523 * editfns.c (Fformat): Doc fix.
13524
135252008-02-26 Juanma Barranquero <lekktu@gmail.com>
13526
13527 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13528 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13529 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13530
135312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13532
13533 * buffer.c (Fbuffer_swap_text): New function.
13534 (syms_of_buffer): Defsubr it.
13535
135362008-02-25 Chong Yidong <cyd@stupidchicken.com>
13537
13538 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13539
135402008-02-25 Jason Rumney <jasonr@gnu.org>
13541
13542 * w32font.c (w32font_draw): Draw one character at a time when padding.
13543
135442008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13545
13546 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13547 Handle a nil arg. Use run_window_configuration_change_hook.
13548 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13549 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13550 Use run_window_configuration_change_hook.
13551
135522008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13553
13554 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13555 1-pixel width.
13556
135572008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13558
13559 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13560 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13561 if the glyph in the font is zero pixel with.
13562
13563 * dispextern.h (struct glyph_string): New member padding_p.
13564
13565 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13566
13567 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13568
13569 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13570
13571 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13572
13573 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13574
135752008-02-25 Jason Rumney <jasonr@gnu.org>
13576
13577 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13578
135792008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13580
13581 Allow fine-grained image-cache flushing.
13582 * dispextern.h (struct image): Add `dependencies' field.
13583 (clear_image_caches): Change arg to Lisp_Object.
13584 * image.c (make_image): Initialize `dependencies' field.
13585 (clear_image_cache): Change arg to allow fine-grained flushing.
13586 Perform the flush even if image-cache-eviction-delay is nil.
13587 (clear_image_caches): Change arg to Lisp_Object.
13588 (Fclear_image_cache): Expand meaning of the argument.
13589 (mark_image): Mark `dependencies' field.
13590 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13591 (lface_hash): Use XHASH rather than XFASTINT.
13592 (face_at_buffer_position): Fix int -> EMACS_INT position.
13593 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13594 (select_frame_for_redisplay): Remove code duplication.
13595 (redisplay_internal): Adapt arg to call to clear_image_caches.
13596
135972008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13598
13599 * s/vms4-0.h:
13600 * s/vms4-2.h:
13601 * s/vms4-4.h:
13602 * s/vms5-5.h: Remove, unused.
13603
13604 * s/irix5-2.h:
13605 * s/irix6-0.h:
13606 * s/riscos5.h:
13607 * s/mach-bsd4-3.h:
13608 * m/mips4.h: Remove files for obsolete systems.
13609
13610 * Makefile.in:
13611 * filelock.c:
13612 * unexmips.c:
13613 * m/hp9000s300.h:
13614 * m/iris4d.h:
13615 * s/aix3-1.h:
13616 * s/hpux.h:
13617 * s/msdos.h:
13618 * s/usg5-0.h:
13619 * s/usg5-2-2.h:
13620 * s/usg5-2.h:
13621 * s/usg5-3.h: Remove references to obsolete variables.
13622
13623 * s/irix5-0.h: Remove, move all the contents ...
13624 * s/irix6-5.h: ... here. Simplify.
13625 * config.in: Regenerate.
13626
136272008-02-24 Jason Rumney <jasonr@gnu.org>
13628
13629 * w32term.c (x_draw_glyph_string_background): Clear the background
13630 manually when cleartype is in use.
13631 (x_draw_glyph_string_foreground): Draw text transparently when
13632 cleartype is in use.
13633
13634 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13635 a font into it unless we have to.
13636
136372008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13638
13639 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13640 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13641
aac0c6e3
MR
136422008-02-18 Jason Rumney <jasonr@gnu.org>
13643
13644 * w32fns.c (Fw32_shell_execute): Encode parameters.
13645
136462008-02-09 Eli Zaretskii <eliz@gnu.org>
13647
13648 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13649
136502008-02-05 Juanma Barranquero <lekktu@gmail.com>
13651
13652 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13653
136542008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13655
13656 * xterm.c (x_set_offset): Don't change the gravity if
13657 CHANGE_GRAVITY is -1.
13658
136592008-02-23 Chong Yidong <cyd@stupidchicken.com>
13660
13661 * fileio.c (auto_save_error_occurred): New var.
13662 (auto_save_error): Set it.
13663 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13664 error occurred.
13665
136662008-02-23 Eli Zaretskii <eliz@gnu.org>
13667
13668 * w32.c (globals_of_w32): Add initializations for
13669 g_b_init_get_sid_sub_authority and
13670 g_b_init_get_sid_sub_authority_count.
13671
136722008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13673
13674 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13675 (font_parse_xlfd): Use them for sanity check.
13676 (Finternal_set_font_style_table): Make sure the table is bijective.
13677
13678 Consolidate the image_cache to the terminal struct.
13679 * termhooks.h (P_): Remove redundant def.
13680 (struct terminal): New field `image_cache'.
13681 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13682 of FRAME_X_IMAGE_CACHE.
13683 * xterm.h (struct x_display_info): Remove image_cache field.
13684 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13685 * w32term.h (struct w32_display_info): Remove image_cache field.
13686 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13687 * macterm.h (struct mac_display_info): Remove image_cache field.
13688 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13689 * xterm.c (x_term_init):
13690 * w32term.c (w32_term_init):
13691 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13692 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13693 Remove declarations.
13694 (clear_image_caches, mark_image_cache): New declarations.
13695 * xfaces.c (clear_face_cache):
13696 * xdisp.c (redisplay_internal): Use clear_image_caches.
13697 * image.c (clear_image_cache): Don't check that a frame is on
13698 a window-system before checking if it shares the same cache.
13699 (clear_image_caches): New function.
13700 (Fclear_image_cache): Use it.
13701 (mark_image): Move from allo.c.
13702 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13703 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13704 (mark_object): Don't call mark_image_cache for frames.
13705 (mark_terminals): Call mark_image_cache.
13706
13707 * lisp.h (Fdelete_terminal): Declare.
13708
13709 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13710 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13711 wrong_type_argument.
13712
137132008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13714
13715 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13716 malayalam.el, and tamil.el. Add sinhala.el.
13717
137182008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13719
13720 * xterm.c (x_connection_closed): Consolidate identical tests.
13721 (x_delete_terminal): Don't crash if called via x_connection_closed.
13722
137232008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13724
13725 * xdisp.c (decode_mode_spec): New arg string.
13726 (display_mode_element): Adjust for the above change.
13727
137282008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13729
13730 * callint.c (Fcall_interactively): Use AREF.
13731
137322008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13733
13734 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13735
137362008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13737
13738 * xfns.c (Fx_show_tip): Set string to " " if empty.
13739
137402008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13741
13742 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13743 with Qt.
13744
137452008-02-17 Kenichi Handa <handa@m17n.org>
13746
13747 * ftfont.c (ftfont_shape): Return Lispy number.
13748
13749 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13750 for GCs.
13751 (Finternal_set_font_selection_order): Call font_update_sort_order
13752 only when enable_font_backend is set.
13753 (realize_x_face): Set face->font_info to that of default face only
13754 when enable_font_backend is set.
13755
13756 * xdisp.c (handle_composition_prop): Set it->c to the fist
13757 character of the composed region.
13758 (fill_composite_glyph_string): Set base_face->font_info to
13759 s->font_info. Get a face for ascii from base_face->ascii_face.
13760 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13761 with a face already decided.
13762 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13763 non-negative.
13764 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13765 call font_prepare_composition unconditionally.
13766
13767 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13768
13769 * xterm.h (struct x_display_info): New member font.
13770
13771 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13772 (x_set_mouse_face_gc, x_new_font): Likewise.
13773 (x_term_init): Setup display_info->font.
13774 (x_delete_terminal): Free display_info->font.
13775
13776 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13777
13778 * ftxfont.c (ftxfont_default_fid): Delete it.
13779 (ftxfont_open): Set xfont->fid to 0.
13780 (ftxfont_end_for_frame): Clear data specific to the frame and the
13781 font-driver.
13782
13783 * xftfont.c (xftfont_default_fid): Delete it.
13784 (xftfont_open): Set xfont->fid to 0.
13785
13786 * fontset.c (FONTSET_OBJLIST): New macro.
13787 (fontset_find_font): Update font-object list of the fontset.
13788 (free_realized_fontset): New function.
13789 (free_face_fontset): Call free_realized_fontset.
13790 (Ffont_info): Call font_close_object only when enable_font_backend
13791 is set.
13792
13793 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13794 [HAVE_NTGUI]: Include w32term.h.
13795 [MAC_OS]: Include macterm.ch.
13796 (font_otf_ValueRecord): Use make_number.
13797 (font_finish_cache): Fix handling of reference count.
13798 (font_clear_cache): Update num_fonts.
13799 (font_open_entity): Update smallest_char_width and
13800 smallest_font_height of the frame.
13801 (font_close_object): Update num_fonts.
13802 (Fclear_font_cache): Fix finding the target cache data.
13803
138042008-02-16 Glenn Morris <rgm@gnu.org>
13805
13806 * fontset.c (Finternal_char_font): Fix compilation warning.
13807
138082008-02-16 Eli Zaretskii <eliz@gnu.org>
13809
13810 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13811 instead of char arrays. Enlarge the size of array passed to
13812 get_token_information.
13813
13814 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13815 warnings.
13816
138172008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13818
13819 * .gdbinit: Don't set `args', it breaks gdb --args.
13820
138212008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13822
13823 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13824 within a narrowed buffer.
13825
138262008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13827
13828 * coding.c (decode_coding_object, encode_coding_object):
13829 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13830
138312008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13832
13833 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13834 hardcoding 1.
13835 (detect_coding_system):
13836 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13837 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13838 * insdel.c (insert_from_gap):
13839 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13840 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13841 (string_to_multibyte):
13842 * character.c (chars_in_text, multibyte_chars_in_text):
13843 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13844
13845 * character.h (FETCH_STRING_CHAR_ADVANCE)
13846 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13847 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13848 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13849
13850 * casefiddle.c (casify_region): Only call after-change and composition
13851 functions on the part of the region that was changed.
13852
13853 * keyboard.c (read_avail_input):
13854 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13855
138562008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13857
13858 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13859 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13860
138612008-02-11 Juanma Barranquero <lekktu@gmail.com>
13862
13863 * w32menu.c (push_submenu_start, push_submenu_end)
13864 (push_left_right_boundary, push_menu_pane, push_menu_item):
13865 * keyboard.c (read_key_sequence): Don't pass args with side effects
13866 to AREF, it fails when compiling with -DENABLE_CHECKING.
13867
138682008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13869
13870 * Makefile.in (${lispsource}international/charprop.el):
13871 Delete this target.
13872
13873 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13874 emacs-unicode-2.
13875
138762008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13877
13878 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13879
138802008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13881
13882 * frame.c (Qnoelisp): New symbol.
13883 (syms_of_frame): Initialize it.
13884 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13885 harmless Elisp code, from a strong `force' from x_connection_closed.
13886 * frame.h (Qnoelisp): Declare.
13887 * xterm.c (x_connection_closed): Pass `noelisp'.
13888
13889 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13890 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13891 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13892 rather than `int' for the type of `type'.
13893
138942008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13895
13896 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13897
13898 * Makefile.in (GNUC): Remove support for gcc-1.x.
13899
139002008-02-10 Richard Stallman <rms@gnu.org>
13901
13902 * lisp.h (ASET): Use AREF, not ASLOT.
13903
139042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13905
13906 * lisp.h (ASET): Check bounds.
13907
139082008-02-10 Glenn Morris <rgm@gnu.org>
13909
13910 * buffer.c (mode-name): Doc fix.
13911
139122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13913
13914 * Makefile.in:
13915 * emacs.c:
13916 * gmalloc.c:
13917 * keyboard.c:
13918 * lisp.h:
13919 * m/ibm370aix.h:
13920 * process.c:
13921 * regex.c:
13922 * s/hpux.h:
13923 * sysdep.c:
13924 * sysselect.h:
13925 * systty.h:
13926 * unexec.c:
13927 * w32term.c:
13928 * xsmfns.c:
13929 * xterm.c: Remove code that deals with obsolete variables.
13930
13931 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13932
13933 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13934 nothing else needs it anymore.
13935
139362008-02-09 Eli Zaretskii <eliz@gnu.org>
13937
13938 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13939 instead of unibyte_char_to_multibyte.
13940
139412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13942
13943 * s/gnu-linux.h: Remove commented out code.
13944
13945 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13946
13947 * Makefile.in: Update what RMS says about using autoconf.
13948 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13949 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13950 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13951 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13952
139532008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13954
13955 * keymap.c (Fkey_description): Move side effect outside of macro call.
13956
13957 * xfaces.c (Finternal_make_lisp_face):
13958 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13959
13960 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13961 (syms_of_fontset): Use ASET.
13962
13963 * fns.c (concat): Move side effect outside of macro call.
13964 (hash_clear): Use ASET.
13965
139662008-02-08 Richard Stallman <rms@gnu.org>
13967
13968 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13969 If FORCE, and frame has a surrogate minibuffer for another frame,
13970 delete the other frame first.
13971
139722008-02-07 Timo Savola <timo.savola@iki.fi>
13973
13974 * xterm.c (x_detect_focus_change): Handle embed client message.
13975 (handle_one_xevent): Ditto.
13976 (handle_one_xevent): If embedded and we get a button press/release,
13977 request focus.
13978 (xembed_set_info, xembed_send_message): New functions.
13979 (x_make_frame_visible): Call xembed_set_info if embedded.
13980 (x_make_frame_invisible): Call xembed_set_info if embedded.
13981 (x_term_init): Initialize Xatom_XEMBED.
13982 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13983 (x_iconify_frame): Ditto.
13984
13985 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13986 (enum xembed_info, enum xembed_message, enum xembed_focus)
13987 (enum xembed_modifier, enum xembed_accelerator): New.
13988 (xembed_set_info, xembed_send_message): Declare.
13989 (FRAME_X_EMBEDDED_P): New.
13990
13991 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13992 gtk_plug_new.
13993
13994 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13995 window ID of a frame.
13996 (x_window): Reparent frame if embedded.
13997 (Fx_create_frame): Don't set border width if embedded.
13998
13999 * emacs.c (USAGE3): Add --parent-id.
14000 (standard_args): Ditto.
14001
140022008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14003
14004 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14005
140062008-02-07 Jim Meyering <meyering@redhat.com>
14007
14008 Use "do...while (0)", not "if (1)...else" in macro definitions.
14009 The latter provokes a warning from gcc about the empty else, when
14010 followed by ";". Also, without that trailing semicolon, it would
14011 silently swallow up any following statement.
14012 * syntax.h (SETUP_SYNTAX_TABLE)
14013 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14014 * buffer.h (DECODE_POSITION): Likewise.
14015 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14016 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14017 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14018 (FETCH_CHAR_ADVANCE): Likewise.
14019 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14020
140212008-02-07 Jim Meyering <meyering@redhat.com>
14022
14023 * lread.c [lint]: Don't include <sys/inode.h>.
14024
140252008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14026
14027 * xselect.c (x_handle_dnd_message):
14028 * xmenu.c (digest_single_submenu, xmenu_show):
14029 * xdisp.c (with_echo_area_buffer_unwind_data)
14030 (format_mode_line_unwind_data, unwind_format_mode_line)
14031 (display_menu_bar):
14032 * eval.c (Ffetch_bytecode):
14033 * doc.c (store_function_docstring):
14034 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14035 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14036 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14037
140382008-02-07 Kenichi Handa <handa@m17n.org>
14039
14040 * ftxfont.c (ftxfont_open): Don't set
14041 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14042
14043 * ftfont.c (ftfont_open): Fix previous change.
14044
140452008-02-06 Jason Rumney <jasonr@gnu.org>
14046
14047 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14048 Use cached metrics for ASCII characters.
14049 (w32font_open_internal): Don't set font's owning_frame.
14050 Cache metrics for ASCII characters.
14051
14052 * w32font.h (struct w32font_info): Add ascii_metrics.
14053 Remove owning_frame.
14054
140552008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14056
14057 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14058 to negative value.
14059
14060 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14061
14062 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14063
14064 * charset.c (syms_of_charset): Set QCtest and Qeq.
14065
140662008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14067
14068 * process.c (Fstart_process):
14069 * callproc.c (Fcall_process): Handle the case where
14070 Funhandled_file_name_directory returns nil.
14071
14072 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14073 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14074 * font.c (check_gstring): Use them and AREF to access the vector before
14075 we know it's really a gstring.
14076 (Ffont_shape_text): Fix typo.
46e722a9 14077 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14078
14079 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14080 Declare.
14081
14082 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14083
140842008-02-05 Jason Rumney <jasonr@gnu.org>
14085
14086 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14087 Set smallest_font_height and smallest_char_width in display info.
14088
140892008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14090
14091 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14092
140932008-02-05 Miles Bader <miles@gnu.org>
14094
14095 * xfaces.c (get_lface_attributes, merge_named_face)
14096 (lookup_named_face, lookup_derived_face, realize_named_face):
14097 Revert 2008-02-01 change by cyd@stupidchicken.com.
14098
140992008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14100
14101 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14102 fallback fonts.
14103 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14104
141052008-02-04 Jason Rumney <jasonr@gnu.org>
14106
14107 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14108 set full_name.
14109 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14110
141112008-02-03 Jason Rumney <jasonr@gnu.org>
14112
14113 * makefile.w32-in (OBJ1): Include font.o here.
14114 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14115
141162008-02-02 Jason Rumney <jasonr@gnu.org>
14117
14118 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14119
141202008-02-01 Jason Rumney <jasonr@gnu.org>
14121
14122 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14123
14124 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14125
141262008-02-01 Andreas Schwab <schwab@suse.de>
14127
14128 * Makefile.in (shortlisp, lisp): Update for rename of
14129 ../lisp/language/myanmar.el.
14130
141312008-02-01 Chong Yidong <cyd@stupidchicken.com>
14132
14133 * xfaces.c (get_lface_attributes): Delete function.
14134 (merge_named_face, lookup_named_face, lookup_derived_face)
14135 (realize_named_face): Call lface_from_face_name directly, and use
14136 the fact that merge_face_vectors does not alter its FROM argument.
14137
141382008-02-01 Jason Rumney <jasonr@gnu.org>
14139
14140 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14141 input in the default locale. Handle non-Unicode multibyte input.
14142
141432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14144
14145 * fontset.c (reorder_font_vector): Exclude nil elements from the
14146 font group. Don't try multiple fonts.
14147 (fontset_font): Adjust for the above change.
14148 (Finternal_char_font): Return nil if the found font doesn't
14149 contain the character ch.
14150
14151 * Makefile.in (lisp, shortlisp): Add cham.el.
14152
141532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14154
14155 * font.h (FONTP): Make it return 1 also for a font-object.
14156
14157 * .gdbinit (xfontset): New function.
14158
14159 * font.c (font_find_for_lface): Check if the character C is
14160 supported or not only for the first font.
14161
14162 * fontset.c (reorder_font_vector): Fix typo.
14163 (fontset_find_font): Don't add a font-spec specifying a script.
14164 Use 0 (not Qt) for the indication of empty font-group. Change the
14165 format of RFONT-DEF. Return Qt if no font in the font-group
14166 support the character.
14167 (fontset_font): Adjust for the above change. If no font was
14168 found the character, remember that.
14169 (face_for_char): Adjust for the change of RFONT-DEF.
14170 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14171 no font for the target.
14172 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14173
141742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14175
14176 * font.c (font_load_for_face): Handle the case that the font in
14177 face->lface is a string.
14178
141792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14180
14181 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14182
141832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14184
14185 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14186 Fix previous change. If the frame is not on a window system,
14187 signal an error.
14188
141892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14190
14191 * coding.c (decode_coding_object, encode_coding_object): Adjust
14192 marker positions after conversion.
14193
14194 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14195
141962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14197
14198 * font.c (font_find_for_lface): Fix the handling of the return
14199 value of font_has_char.
14200 (Ffont_shape_text): Fix previous change.
14201
14202 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14203 (fontset_ref_and_range): Delete it.
14204 (fontset_find_font): Call char_table_ref_and_range instead of
14205 FONTSET_REF_AND_RANGE.
14206 (make_fontset): Don't setup font groups of Latin here.
14207 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14208 (new_fontset_from_font): Make the specified font the default for
14209 all Latin characters.
14210
142112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14212
14213 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14214 is on a window system before accessing the fontset of the frame.
14215
142162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14217
14218 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14219
14220 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14221 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14222
14223 * font.c (Ffont_shape_text): If the font driver doesn't have a
14224 shaper function, make zero-width glyphs to have at least one-pixel
14225 width. Fix setting of `to' field of glyphs.
14226
142272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14228
14229 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14230 glyphs.
14231
14232 * font.h (struct font_driver): Improve docstring of member `shape'.
14233
142342008-02-01 Kenichi Handa <handa@m17n.org>
14235
14236 * composite.c (syms_of_composite): Fix docstring of
14237 auto-composition-function.
14238
14239 * font.h (LGLYPH_SIZE): New macro.
14240
14241 * font.c (Ffont_fill_gstring): Stop filling when a character not
14242 supported by the font is found.
14243 (Ffont_shape_text): When a shape callback function returns nil,
14244 try at most two more times with larger gstring.
14245 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14246
14247 * xdisp.c (handle_auto_composed_prop): Change the argument to
14248 auto-composition-function.
14249
14250 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14251 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14252 Lispy glyph and store it in the lgstring.
14253
14254 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14255
14256 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14257
142582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14259
14260 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14261
14262 * fontset.c (Vfont_encoding_charset_alist): New variable.
14263 (syms_of_fontset): DEFVAR it.
14264 (reorder_font_vector, fontset_find_font): Optimize for the case of
14265 no need of reordering.
14266 (face_for_char): Map the charset property by
14267 Vfont_encoding_charset_alist.
14268
142692008-02-01 Jason Rumney <jasonr@gnu.org>
14270
14271 * w32font.c (logfonts_match): Don't check adstyle here.
14272 (font_matches_spec): Check here against physical font instead.
14273 (add_font_entity_to_list): Avoid some substitutions.
14274
14275 * font.c (font_parse_fcname): Default weight and slant to normal.
14276 (font_score): Prefer normal fonts if weight or slant unspecified.
14277 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14278 match freetype scores.
14279
142802008-02-01 Jason Rumney <jasonr@gnu.org>
14281
14282 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14283 font, as it may have been deleted.
14284 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14285 most common hyphenless variation.
14286 (logfonts_match): Check generic family.
14287 (font_matches_spec): Don't check generic family here.
14288 (fill_in_logfont): Set generic family based on adstyle.
14289
14290 * w32font.h (w32font_get_cache): Update declaration.
14291
142922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14293
14294 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14295
14296 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14297 If none of the new drivers are available, call font_update_drivers
14298 with the old drivers.
14299
14300 * w32font.c (w32font_get_cache): Adjust the argument type.
14301
14302 * xfont.c (xfont_get_cache): Adjust the argument type.
14303
14304 * font.h (struct font_driver): Change argument type of get_cache.
14305
14306 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14307
14308 * font.c (Ffont_get): Fix arguments to Fassoc.
14309 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14310 (font_clear_cache): New function.
14311 (font_list_entities, font_matching_entity): Use font_get_cache.
14312 (font_update_drivers): Call font_clear_cache when finishing a driver.
14313
14314 * fontset.c (fontset_find_font): Fix previous change.
14315
143162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14317
14318 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14319 dpyinfo->font_table.
14320 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14321 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14322
14323 * font.c (font_at): Handle the case that the arg C is negative.
14324 Handle the unibyte case.
14325 (Ffont_at): Call font_at with the arg C -1.
14326
14327 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14328 the position here, and call font_at with the arg C -1.
14329 Don't check the range of the existing composition at the point.
14330
143312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14332
14333 * fontset.c (fontset_add): New args charset_id and family.
14334 Change caller.
14335 (load_font_get_repertory, fontset_find_font): Assume that
14336 font_spec is always a font-spec object.
14337 (Fset_fontset_font): Always store a font-spec object in a fontset.
14338
14339 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14340 instead of get_property_and_range.
14341
143422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14343
14344 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14345 (xftfont_open): Don't keep locking face.
14346 (xftfont_close): Don't unlock face.
14347 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14348
14349 * fontset.c (fontset_find_font): Don't prefer a font of
14350 supplementary charset.
14351
143522008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14355 script, langsys_tag to langsys, new member script.
14356 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14357 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14358 listing to the script specified in that property. Fix arg to
14359 OTF_check_features.
14360
143612008-02-01 Jason Rumney <jasonr@gnu.org>
14362
14363 * w32font.h: New file.
14364
14365 * w32font.c: Include it.
14366 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14367 (w32font_open): Set owning_frame.
14368 (w32font_text_extents): Use owning_frame.
14369 (struct font_callback_data): Add opentype_only field.
14370 (add_font_entity_to_list): Use it to filter fonts.
14371 Don't check against full name.
14372 (w32font_list_internal): New function.
14373 (w32font_list): Use it.
14374 (w32font_match_internal): New function.
14375 (w32font_match): Use it.
14376 (w32font_open_internal): New function.
14377 (w32font_open): Use it.
14378 (w32font_get_cache, w32font_close, w32font_has_char)
14379 (w32font_encode_char, w32font_text_extents, w32font_draw):
14380 Make non-static.
14381
14382 * makefile.w32-in (w32font.o): Depend on w32font.h.
14383
143842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14385
14386 * charset.c (Fdefine_charset_internal): Record a supplementary
14387 charset at the tail of Vcharset_order_list.
14388
14389 * font.c (Ffont_shape_text): Fix the return value.
14390
14391 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14392
14393 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14394
143952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14396
14397 * ftfont.c (struct OpenTypeSpec): New struct.
14398 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14399 (ftfont_get_open_type_spec): New function.
14400 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14401
14402 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14403
144042008-02-01 Jason Rumney <jasonr@gnu.org>
14405
14406 * w32font.c (add_font_entity_to_list): Compare only the beginning
14407 of full name.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14412 Never return HANDLED_RECOMPUTE_PROPS.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * font.c (font_gstring_produce): Delete it.
14417
14418 * composite.h (COMPOSITION_METHOD):
14419 Handle COMPOSITION_WITH_GLYPH_STRING.
14420
144212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14422
14423 * xfont.c (Qx): Delete.
14424 (syms_of_xfont): Don't initialize Qx.
14425
14426 * composite.h (enum composition_method):
14427 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14428
144292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14430
14431 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14432 (choose_face_font): Accept new form of font-spec.
14433
14434 * frame.h (font_driver_list): Declare it unconditionally.
14435 (struct frame): Define members font_driver_list and font_data_list
14436 unconditionally.
14437
14438 * fontset.c: Include "font.h" unconditionally.
14439 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14440 (Fset_fontset_font): Accept a font-spec object.
14441
14442 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14443 PIXEL_SIZE part a wild card.
14444
14445 * dispextern.h (struct glyph_string): Define members clip and
14446 num_clips unconditionally.
14447 (struct face): Define members font_info and extra unconditionally.
14448
14449 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14450 ftfont_info only when HAVE_LIBOTF is defined.
14451
144522008-02-01 Andreas Schwab <schwab@suse.de>
14453
14454 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14455 and end.
14456
144572008-02-01 Jason Rumney <jasonr@gnu.org>
14458
14459 * w32font.c (w32font_driver): Add new fields.
14460
144612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14462
14463 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14464 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14465 (LIBES): Add @M17N_FLT_CFLAGS@.
14466
14467 * composite.c (compose_text): Don't treat the new style
14468 composition specially.
14469
14470 * emacs.c (main): Call syms_of_font unconditionally.
14471
14472 * font.h (FONT_ENTITY_NOT_LOADABLE)
14473 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14474 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14475 (struct font_driver): New member shape.
14476 (font_registry_charsets): Extern it.
14477 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14478 (font_otf_capability, font_drive_otf): Delete their externs.
14479
14480 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14481 (font_charset_alist, font_registry_charsets): Move from xfont.c
14482 and rename.
14483 (font_prop_validate_otf): New function.
14484 (font_property_table): Register it for QCotf.
14485 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14486 (font_drive_otf): Delete.
14487 (font_prepare_composition): New arg F. Adjust for the change of
14488 lispy gstring.
14489 (font_find_for_lface): New arg C.
14490 (font_load_for_face): Adjust for the change of font_find_for_lface.
14491 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14492 lispy gstring.
14493 (Ffont_shape_text): New function.
14494 (Fopen_font): If the font size is not given, use 12-pixel.
14495 (Ffont_at): New arg STRING.
14496 (syms_of_font): Initalize font_charset_alist.
14497 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14498 conditionally.
14499
14500 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14501 fonts of the same font-spec. Change the format of RFONT-DEF.
14502 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14503 Adjust for the change of RFONT-DEF.
14504 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14505
14506 * ftfont.h: New file.
14507
14508 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14509 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14510 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14511 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14512 font_otf_capability and font_drive_otf, set ftfont_shape.
14513 (ftfont_list): Adjust for the change of :otf property value.
14514 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14515 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14516 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14517 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14518 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14519 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14520
14521 * w32term.c (x_draw_composite_glyph_string_foreground):
14522 Adjust for the change of lispy gstring.
14523
14524 * xdisp.c (handle_composition_prop): Adjust for the change of
14525 lispy gstring. Call a function for auto-composition with the
14526 third arg it->window.
14527 (fill_composite_glyph_string): Adjust for the change of lispy string.
14528 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14529
14530 * xfaces.c (set_font_frame_param): Adjust for the change of
14531 font_find_for_lface.
14532
14533 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14534 (xfont_registry_charsets): Likewise. Change caller.
14535 (syms_of_xfont): Don't handle x_font_charset_alist.
14536
14537 * xftfont.c: Include "ftfont.h".
14538 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14539 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14540 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14541 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14542 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14543 Set xftfont_driver.shape to xftfont_shape.
14544
14545 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14546 the change of lispy gstring.
14547
145482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14549
14550 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14551
145522008-02-01 Jason Rumney <jasonr@gnu.org>
14553
14554 * w32font.c (w32font_draw): Fill background manually.
14555
145562008-02-01 Jason Rumney <jasonr@gnu.org>
14557
14558 * font.c (Qfontp): Remove unused symbol.
14559 (QCantialias): New symbol.
14560 (syms_of_font): Define it.
14561 (font_property_table): Set a validator for QCantialias.
14562
14563 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14564 Define if not already.
14565 (QCfamily): Share with xfaces.c.
14566 (Qstandard, Qsubpixel, Qnatural): New symbols.
14567 (syms_of_w32font): Define them. Don't define QCfamily here.
14568 (w32_antialias_type, lispy_antialias_type): New functions.
14569 (w32_enumfont_pattern_entity): New arg requested_font.
14570 Set antialias parameter if non-default was requested.
14571 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14572
145732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14574
14575 * lread.c (read1): Undo the previous change.
14576
145772008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14578
14579 * frame.c (Fdelete_frame): Call font_update_drivers only when
14580 USE_FONT_BACKEND is defined.
14581
145822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14583
14584 * font.h (struct font_bitmap): New member bits_per_pixel.
14585 (struct font_driver): New members start_for_frame and end_for_frame.
14586 (struct font_data_list): New struct.
14587 (font_put_frame_data, font_get_frame_data): Extern them.
14588
14589 * frame.h (struct frame): New member font_data_list.
14590
14591 * font.c (font_update_drivers): Call driver->start_for_frame and
14592 driver->end_for_frame at proper timings.
14593 (font_put_frame_data, font_get_frame_data): New functions.
14594 (Ffont_spec): Add usage in the docstring.
14595
14596 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14597 (Fdelete_frame): Call font_update_drivers.
14598
14599 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14600 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14601 (xftfont_get_xft_draw): New function.
14602 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14603 (xftfont_end_for_frame): New function.
14604 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14605
14606 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14607 Change argument. Cache GCs in the per-frame data.
14608 (struct ftxfont_frame_data): New struct.
14609 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14610 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14611 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14612 (ftxfont_end_for_frame): New function.
14613 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14614
14615 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14616
146172008-02-01 Kenichi Handa <handa@m17n.org>
14618
14619 * xselect.c (Vselection_coding_system)
14620 (Vnext_selection_coding_system): Delete them.
14621 (syms_of_xselect): Don't declare selection-coding-system and
14622 next-selection-coding-system. They are declared in select.el.
14623
146242008-02-01 Jason Rumney <jasonr@gnu.org>
14625
14626 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14627
14628 * w32fns.c: Include imm.h.
14629 (get_composition_string_fn, get_ime_context_fn): New optional
14630 system functions.
14631 (globals_of_w32fns): Load them from imm32.dll.
14632 (ignore_ime_char): New flag.
14633 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14634 WM_IME_ENDCOMPOSITION messages.
14635
14636 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14637 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14638
146392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14640
14641 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14642 (READCHAR_REPORT_MULTIBYTE): New macro.
14643 (readchar): New 2nd arg MULTIBYTE.
14644 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14645 Make symbol's name multibyte according to the multibyteness of the
14646 source.
14647
146482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14649
14650 * xfaces.c (face_for_overlay_string): Call lookup_face with
14651 correct arguments (fix of synching with the trunk).
14652
146532008-02-01 Kenichi Handa <handa@m17n.org>
14654
14655 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14656 (font_prop_validate_non_neg, font_prop_validate_spacing):
14657 Delete argument prop_index.
14658 (font_property_table): Change arguments to validater. Change Callers.
14659 (font_lispy_object): Delete.
14660 (font_at): Use font_find_object instead fo font_lispy_object.
14661
146622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14663
14664 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14665 and file names.
14666
146672008-02-01 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14670 (font_matches_spec): Remove debug output.
14671 (add_font_entity_to_list): Avoid using substituted fonts.
14672
146732008-02-01 Jason Rumney <jasonr@gnu.org>
14674
14675 * doc.c (Fsnarf_documentation):
14676 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14677
146782008-02-01 Miles Bader <miles@gnu.org>
14679
14680 * dispextern.h (struct glyph_row): Only define "clip" field if
14681 HAVE_WINDOW_SYSTEM is defined.
14682
146832008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14684
14685 Fix up multi-tty merge.
14686
14687 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14688 and indentation.
14689
14690 * xfaces.c (free_realized_face, clear_face_gcs):
14691 Include font_done_for_face in the input_blocked section, just in case.
14692
14693 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14694 (get_char_face_and_encoding): Undo last change and remove the *other*
14695 duplicate definition (i.e. keep the one that's better scoped and that
14696 includes code for the font-backend).
14697
14698 * terminal.c (create_terminal): Default keyboard_coding to
14699 `no-conversion' and terminal_coding to `undecided'.
14700
14701 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14702
14703 * fontset.c (free_realized_fontsets): Check that the table entry does
14704 contain a fontset before trying to compare it to `base'.
14705
14706 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14707 syms_of_charset, and syms_of_coding earlier because init_window_once
14708 now needs Vcoding_system_hash_table to be setup.
14709
14710 * coding.h (default_buffer_file_coding): Remove.
14711
14712 * coding.c (default_buffer_file_coding): Remove.
14713 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14714 than ->symbol, and use the terminal-local coding system.
14715 (syms_of_coding): Don't setup the coding-systems that are not
14716 terminal-local.
14717 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14718
14719 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14720 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14721
14722 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14723 in chartab.c and were re-added here by mistake.
14724 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14725
14726 * doc.c (Fsnarf_documentation):
14727 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14728 src to etc.
14729
14730 * ChangeLog.10: Add mistakenly removed entry.
14731
147322008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14733
14734 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14735
147362008-02-01 Miles Bader <miles@gnu.org>
14737
14738 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14739 Add extra args to FACE_FOR_CHAR.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14744 in sequence.
14745
14746 * chartab.c (map_sub_char_table, map_char_table): If the range
14747 contains just one character, call the function with that character
14748 even if the depth is not 3.
14749
147502008-02-01 Jason Rumney <jasonr@gnu.org>
14751
14752 * w32font.c (w32font_text_extents): Calculate metrics for the
14753 whole string.
14754
147552008-02-01 Jason Rumney <jasonr@gnu.org>
14756
14757 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14758
147592008-02-01 Jason Rumney <jasonr@gnu.org>
14760
14761 * w32term.c (x_set_glyph_string_clipping): Use
14762 get_glyph_string_clip_rects.
14763 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14764 Adjust for the change of struct glyph_string.
14765
14766 * w32font.c (w32font_draw): Do clipping here.
14767
147682008-02-01 Kenichi Handa <handa@m17n.org>
14769
14770 * xftfont.c (xftfont_draw): Adjust for the change of struct
14771 glyph_string.
14772
14773 * xterm.c (x_set_glyph_string_clipping): Use
14774 get_glyph_string_clip_rects.
14775 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14776 Adjust for the change of struct glyph_string.
14777
14778 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14779 the resulting clip(s}.
14780 (expose_overlaps): Add arg r. Change callers. Set it to
14781 row->clip temporarily.
14782 (expose_window): Redraw rows overlapping the exposed area.
14783
14784 * dispextern.h (struct glyph_row): New member clip.
14785 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14786 clip_height, new member clip, and num_clips.
14787
147882008-02-01 Kenichi Handa <handa@m17n.org>
14789
14790 * data.c (Fchar_or_string_p): Fix docstring.
14791
147922008-02-01 Kenichi Handa <handa@m17n.org>
14793
14794 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14795 create a temporary XftDraw object.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * font.c (Ffontp): Fix docstring.
14800
14801 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14802 strong evidence of ISO-2022.
14803
148042008-02-01 Kenichi Handa <handa@m17n.org>
14805
14806 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14807 SYNTAX_ENTRY_FOLLOW_PARENT.
14808
148092008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14810
14811 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14812 its type.
14813 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14814 Update to the new type of weak_hash_tables and next_weak.
14815
14816 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14817 a plain C pointer to Lisp_Hash_Table.
14818
14819 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14820 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14821 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14822 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14823 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14824 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14825 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14826 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14827 (GC_EQ): Remove since they've been identical to their non-GC_
14828 alter-egos ever since the markbit was eradicated.
14829
14830 * alloc.c:
14831 * buffer.c:
14832 * buffer.h:
14833 * data.c:
14834 * fileio.c:
14835 * filelock.c:
14836 * fns.c:
14837 * frame.h:
14838 * lisp.h:
14839 * macterm.c:
14840 * print.c:
14841 * process.c:
14842 * w32fns.c:
14843 * w32menu.c:
14844 * w32term.c:
14845 * xfns.c:
14846 * xmenu.c:
14847 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * chartab.c (map_sub_char_table): Make it work for the top-level
14852 char-table. Fix handling of parent char-table.
14853 (map_char_table): Adjust for the above change.
14854
148552008-02-01 Jason Rumney <jasonr@gnu.org>
14856
14857 * w32font.c (Qgdi): Rename from Qw32.
14858
148592008-02-01 Jason Rumney <jasonr@gnu.org>
14860
14861 * w32bdf.c (get_quoted_string): Make function static.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14866 bigger ascent and descent than those of the font, use them as
14867 font's ascent and descent.
14868
148692008-02-01 Kenichi Handa <handa@m17n.org>
14870
14871 * Makefile.in (${lispsource}international/charprop.el): Move this
14872 target within "#ifdef HAVE_UNIDATA" and "#endif".
14873
148742008-02-01 Kenichi Handa <handa@m17n.org>
14875
14876 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14877 (shortlisp): Add ../lisp/language/tai-viet.el.
14878
148792008-02-01 Ulrich Mueller <ulm@gentoo.org>
14880
14881 * Makefile.in (${lispsource}international/charprop.el): Depend on
14882 temacs${EXEEXT}.
14883
148842008-02-01 Jason Rumney <jasonr@gnu.org>
14885
14886 * w32font.c (w32font_close): Delete the GDI font object.
14887
14888 * w32menu.c: Include character.h.
14889
14890 * w32proc.c: Likewise.
14891
14892 * w32select.c: Likewise.
14893
14894 * makefile.w32-in (w32proc.o): Depend on character.h.
14895
148962008-02-01 Jason Rumney <jasonr@gnu.org>
14897
14898 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14899
14900 * w32menu.c (syms_of_w32menu): Likewise.
14901
14902 * w32proc.c (syms_of_ntproc): Likewise.
14903
14904 * w32select.c (syms_of_w32select): Likewise.
14905
14906 * w32term.c (syms_of_w32term): Likewise.
14907
149082008-02-01 Jason Rumney <jasonr@gnu.org>
14909
14910 * w32font.c (w32font_draw): Delete brush after using it.
14911
149122008-02-01 Jason Rumney <jasonr@gnu.org>
14913
14914 * w32font.c (w32font_open): Don't set font_idx.
14915 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14916 to font settings.
14917 (w32font_draw): Fill background explicitly.
14918
149192008-02-01 Jason Rumney <jasonr@gnu.org>
14920
14921 * w32term.c (w32_initialize): Don't call w32font_initialize.
14922
14923 * w32font.c (w32font_info): Remove subranges.
14924 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14925 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14926 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14927 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14928 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14929 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14930 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14931 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14932 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14933 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14934 New symbols.
14935 (font_callback_data): New struct.
14936 (w32font_list, w32font_match): Use it.
14937 (w32font_open): Don't populate subranges.
14938 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14939 (w32font_encode_char): Always return unicode code-point as-is.
14940 (w32font_text_extents): Supply a transformation matrix to
14941 GetGlyphOutline. Never look up by glyph index. Avoid looping
14942 twice. Use unicode version of GetTexExtentPoint32 instead of
14943 glyph index version.
14944 (set_fonts_frame): Remove.
14945 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14946 set frame parameter. Use backward compatible fake foundries.
14947 Save generic family in extra slot under QCfamily. Make width slot
14948 constant. Save QCspacing value. Save list of scripts instead of
14949 binary subranges.
14950 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14951 (add_font_entity_to_list): Use font_callback_data struct. Filter
14952 unwanted fonts.
14953 (add_one_font_entity_to_list): Use font_callback_data struct.
14954 (w32_registry): Default to iso10646_1.
14955 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14956 string font registries. Don't fill in font name if it is a generic
14957 family name, fill family instead. Use spacing, family and script
14958 extra info to fill pitch, family and charset fields.
14959 (list_all_matching_fonts): Use font_callback_data struct.
14960 (unicode_range_for_char): Remove.
14961 (font_supported_scripts): New function.
14962 (w32font_initialize): Remove.
14963 (syms_of_w32font): Update which symbols are defined.
14964
149652008-02-01 Jason Rumney <jasonr@gnu.org>
14966
14967 * font.c (font_pixel_size): Reverse assq_no_quit args.
14968
14969 * w32term.h (FONT_WIDTH): Report max width, not average.
14970 (FONT_MAX_WIDTH): Remove.
14971 (FONT_AVG_WIDTH): New macro.
14972
14973 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14974 redefinition of FONT_WIDTH.
14975
14976 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14977 (w32_cache_char_metrics): Use FONT_WIDTH.
14978
14979 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14980
149812008-02-01 Jason Rumney <jasonr@gnu.org>
14982
14983 * w32font.c (w32font_open): Make lfHeight negative.
14984
14985 * w32fns.c (x_default_font_parameter): Use new style font name.
14986 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14987
149882008-02-01 Jason Rumney <jasonr@gnu.org>
14989
14990 * w32font.c (QCsubranges): New symbol.
14991 (w32font_open, w32font_has_char): Get subranges from subproperty
14992 of extra.
14993 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14994 (syms_of_w32font): Define :subranges symbol.
14995
14996 * font.c (font_put_extra): Expose externally.
14997
14998 * font.h (font_put_extra): Move declaration from font.c.
14999
15000 * font.c (Ffont_get): Use font driver to determine otf capability.
15001 (adjust_anchor): Check if driver defines anchor_point before using.
15002
15003 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15004 (w32font_draw): Use options.
15005 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15006 Fix detection of truetype fonts.
15007 (registry_to_w32_charset): Handle charsets other than iso8859-1
15008 expressed as lisp symbols.
15009 (w32_registry): Express charset as lisp symbol.
15010 (fill_in_logfont): Reverse pixel and point height logic.
15011 Don't set width here. Set quality to default.
15012
15013 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15014 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15015
15016 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15017 Remove redundant loop and allocation.
15018
15019 * makefile.w32-in (font.o, w32font.o): New objects.
15020 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15021 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15022
15023 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15024 STORE_XCHARB a valid l-value.
15025
15026 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15027 calculations for non-Truetype fonts.
15028 (x_draw_glyph_string): Sync with xterm.c.
15029 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15030 Remove redundant code.
15031 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15032
15033 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15034 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15035
15036 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15037 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15038
15039 * w32font.c: New file for w32 font backend.
15040
150412008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * term.c: Don't include "buffer.h" twice.
15044
150452008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * character.c (Funibyte_string): New function.
15048 (syms_of_character): Defsubr it.
15049
150502008-02-01 Jason Rumney <jasonr@gnu.org>
15051
15052 * w32term.c [USE_FONT_BACKEND]:
15053 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15054 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15055 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15056 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15057 (x_free_frame_resources): Sync with xterm.c.
15058
150592008-02-01 Andreas Schwab <schwab@suse.de>
15060
15061 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15062 char-table size.
15063
150642008-02-01 Kenichi Handa <handa@m17n.org>
15065
15066 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15067
150682008-02-01 Kenichi Handa <handa@m17n.org>
15069
15070 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15071 font_otf_gpos, add font_drive_otf.
15072
15073 * fontset.c (fontset_find_font): Pay attention to font size
15074 specified for a font.
15075 (reorder_font_vector): Check contents of font_def.
15076
15077 * font.c (struct otf_list): Delete it.
15078 (otf_list): Make it a lisp variable.
15079 (otf_open): Use lispy otf_list.
15080 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15081 (check_otf_features): New function.
15082 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15083 New functions.
15084 (font_drive_otf): New function merging font_otf_gsub and
15085 font_otf_gpos.
15086 (font_open_for_lface): New arg spec. Change argument order.
15087 (font_load_for_face): Adjust for the change of font_open_for_lface.
15088 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15089 Ffont_otf_gpos.
15090 (syms_of_font): Staticpro otf_list. Delete defsubr of
15091 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15092
15093 * xfaces.c (set_font_frame_param): Adjust for the change of
15094 font_open_for_lface.
15095
15096 * font.h (font_open_for_lface): Adjust prototype.
15097 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15098 member otf_drive.
15099 (font_otf_gsub, font_otf_gpos): Delete externs.
15100 (font_drive_otf): Extern it.
15101
151022008-02-01 Kenichi Handa <handa@m17n.org>
15103
15104 * font.c (font_at): If the window W is not on a window system,
15105 return Qnil.
15106
15107 * coding.c (produce_chars, encode_coding): Don't call
15108 insert_from_gap if no characters to produce.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15113 Fclear_face_cache.
15114
15115 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15116
151172008-02-01 Miles Bader <miles@gnu.org>
15118
15119 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15120 Parse "--disable-font-backend" option.
15121 (standard_args): Add "--disable-font-backend" option.
15122
151232008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * fontset.c (fontset_find_font): New function.
15126 (fontset_font): Use fontset_find_font.
15127 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15128 Register the specified font for all Latin characters.
15129 (new_fontset_from_font): Register the specified font for all Latin
15130 characters.
15131 (dump_fontset): For a realized fontset, include the base fontset
15132 name in the returned vector.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * character.h (CHAR_STRING): Cast C to unsigned on calling
15137 char_string.
15138
15139 * character.c (char_string): Type of arg C changed to unsigned.
15140 Signal an error if C is an invalid character code.
15141
15142 * editfns.c (general_insert_function, Fchar_to_string):
15143 Use CHARACTERP, not INTEGERP.
15144
151452008-02-01 Kenichi Handa <handa@m17n.org>
15146
15147 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15148 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15149
15150 * regex.c (analyse_first): Fix for multibyte characters in "case
15151 charset:" and "case categoryspec:".
15152
151532008-02-01 Andreas Schwab <schwab@suse.de>
15154
15155 * Makefile.in (LIBES): Move standard libraries to the end.
15156
151572008-02-01 Kenichi Handa <handa@m17n.org>
15158
15159 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15160 nonzero, don't shrink the buffer nextb.
15161
15162 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15163
15164 * coding.c (coding_alloc_by_making_gap): New arg offset.
15165 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15166 offset.
15167 (decode_coding_iso_2022): Update coding->safe_charsets.
15168 (decode_coding_gap): Temporarily set
15169 current_buffer->text->inhibit_shrinking to 1.
15170
151712008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15174 indexing into elements of s->cmp and s->char2b.
15175
151762008-02-01 Juanma Barranquero <lekktu@gmail.com>
15177
15178 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15179
151802008-02-01 Kenichi Handa <handa@m17n.org>
15181
15182 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15183 target_multibyte instead of multibyte.
15184 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15185 (bcmp_translate): Change the argument name from multibyte to
15186 target_multibyte.
15187
151882008-02-01 Kenichi Handa <handa@m17n.org>
15189
15190 These changes are to compile a regexp into a pattern that can be
15191 used both for multibyte and unibyte targets.
15192
15193 * Makefile.in (search.o): Depend on charset.h.
15194
15195 * character.c (multibyte_char_to_unibyte_safe): New function.
15196
15197 * search.c: Include "charset.h".
15198 (compile_pattern_1): Delete argument multibyte. Don't set
15199 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15200 (compile_pattern): Don't compare cp->buf.target_multibyte.
15201 Compare cp->buf.charset_unibyte.
15202 (compile_pattern): Set cp->buf.target_multibyte.
15203
15204 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15205
15206 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15207
15208 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15209 multibyte. Change callers.
15210 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15211 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15212 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15213 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15214 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15215 (regex_compile): Make the compiled pattern usable both for
15216 multibyte and unibyte targets.
15217 (analyse_first): Make the fastmap usable both for multibyte and
15218 unibyte targets.
15219 (TRANSLATE_VIA_MULTIBYTE): Delete.
15220 (re_match_2_internal): Pay attention to the case that the
15221 multibyteness of bufp and target may be different.
15222
152232008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15226 empty box occupy at least one column width.
15227
152282008-02-01 Miles Bader <miles@gnu.org>
15229
15230 * Makefile.in: Remove redundant HAVE_XFT clause.
15231
152322008-02-01 Kenichi Handa <handa@m17n.org>
15233
15234 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15235
152362008-02-01 Kenichi Handa <handa@m17n.org>
15237
15238 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15239 being nil.
15240
152412008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15244
152452008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15248
152492008-02-01 Kenichi Handa <handa@m17n.org>
15250
15251 * search.c (simple_search): Fix previous change.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * xftfont.c (ftfont_font_format): Extern declaration.
15256
15257 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15258
15259 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15260 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15261
15262 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15263 (ftfont_font_format): Fix previous change.
15264
15265 * font.h (Ffont_xlfd_name): EXFUN it.
15266
15267 * font.c (font_parse_xlfd): Fix the array size of `f'.
15268 (register_font_driver): Use EQ to compare driver->type.
15269
15270 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15271 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15272 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15277 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15278
152792008-02-01 Kenichi Handa <handa@m17n.org>
15280
15281 * xfont.c (xfont_open): Set font->format.
15282
15283 * xftfont.c (xftfont_open): Set font->format.
15284
15285 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15286 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15287 (ftfont_open): Set font->format.
15288 (ftfont_font_format): New function.
15289
15290 * font.h (struct font): New member format.
15291
15292 * font.c (Qopentype): New variable.
15293 (syms_of_font): Defsym it.
15294 (Fquery_font): Change the format of the last element of the return
15295 value.
15296
152972008-02-01 Kenichi Handa <handa@m17n.org>
15298
15299 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15300 last resort.
15301
153022008-02-01 Kenichi Handa <handa@m17n.org>
15303
15304 * coding.c (detect_coding_charset): Fix detection of multi-byte
15305 charset.
15306
153072008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15308
15309 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15310
153112008-02-01 Kenichi Handa <handa@m17n.org>
15312
15313 * xdisp.c (get_next_display_element): Set it->face_id for the
15314 first component of a composition.
15315 (x_produce_glyphs): Check if the font is changed or not for composition.
15316
153172008-02-01 Kenichi Handa <handa@m17n.org>
15318
15319 * fontset.c (Qlatin): New variable.
15320 (syms_of_fontset): Define it as a lisp symbol.
15321 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15322
153232008-02-01 Kenichi Handa <handa@m17n.org>
15324
15325 * font.c (font_unparse_fcname): Pay attention to the case that
15326 some of font property is a null string.
15327
153282008-02-01 Kenichi Handa <handa@m17n.org>
15329
15330 * term.c: Include "composite.h".
15331 (encode_terminal_code): Output all components of composition.
15332 Check the size of encode_terminal_src.
15333 (produce_glyphs): For composition, call produce_composite_glyph.
15334 (append_composite_glyph, produce_composite_glyph): New functions.
15335
15336 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15337 is not found, get font_info from the current ascii face.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15342 buffer-file-name to Qnil before calling insert_from_buffer.
15343
15344 * font.c (font_unparse_fcname): Pay attention to the case that
15345 foundry is a null string.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15350
15351 * font.c (Qunicode_sip): New variable.
15352 (syms_of_font): Declare it as a Lisp symbol.
15353
15354 * font.h (Qunicode_sip): Extern it.
15355
153562008-02-01 Kenichi Handa <handa@m17n.org>
15357
15358 * composite.c (get_composition_id): Pay attention to TAB component.
15359
15360 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15361 TAB. Adjust for the change of s->char2b which always points to
15362 the first element of allocated memory.
15363
15364 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15365
15366 * xdisp.c (handle_composition_prop): Set it->c to the first
15367 non-TAB component.
15368 (fill_composite_glyph_string): Change argument.
15369 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15370 (x_produce_glyphs): Fix handling of left/right padding.
15371
153722008-02-01 Kenichi Handa <handa@m17n.org>
15373
15374 * coding.c (detect_coding_system): Fix for handling off
15375 inhibit_iso_escape_detection. Fix for the case that no coding
15376 system is defined for a specific coding category.
15377
153782008-02-01 Kenichi Handa <handa@m17n.org>
15379
15380 * font.c (font_matching_entity): Delete unused local var.
15381
15382 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15383 opening a font.
15384
15385 * fileio.c (Finsert_file_contents): On recovering a file, assume
15386 Unix-like eol.
15387 (choose_write_coding_system): On auto-saving a file, force
15388 Unix-like eol.
15389
15390 * coding.c (setup_coding_system): Fix setting of
15391 coding->common_flags based on eol_type.
15392 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15393 inherit from it.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * alloc.c (NSTATICS): Increas to 0x600.
15398
153992008-02-01 Kenichi Handa <handa@m17n.org>
15400
15401 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15402 (ftfont_list): Don't check :name property.
15403 (ftfont_match): New function.
15404 (ftfont_pattern_entity): If the pattern doesn't contain
15405 FC_SPACING, don't assume FC_MONO.
15406
15407 * font.h (struct font_driver): New member `match'.
15408 (font_update_drivers): Adjust prototype.
15409
15410 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15411 property of FONT.
15412 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15413 them unconditionally.
15414 (font_matching_entity): New function.
15415 (font_open_by_name): Try font_matching_entity if exact match is
15416 not found.
15417 (font_update_drivers): Delete the arg FONT. Return a list of
15418 actually used backends. Don't free faces, font caches here.
15419 Don't store data in frame parameters. Don't call x_set_font.
15420 (Ffont_spec): Store :name property as is.
15421 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15422 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15423 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15424 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15425 Call font->driver->otf_gsub instead of font_otf_gsub.
15426
15427 * frame.c (x_set_font_backend): Do more works that were done in
15428 font_update_drivers before.
15429
15430 * xfont.c (xfont_match): New function.
15431 (xfont_driver): Set xfont_driver.match to xfont_match.
15432 (xfont_draw): Set font in GC if necessary.
15433
15434 * ftxfont.c (ftxfont_match): New function.
15435 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15436
15437 * xftfont.c (xftfont_match): New function.
15438 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15439
154402008-02-01 Kenichi Handa <handa@m17n.org>
15441
15442 * font.h (struct font): New member scalable.
15443 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15444 (font_otf_gsub): Adjust prototype.
15445
15446 * font.c (font_otf_capability): Fix handling of the default langsys.
15447 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15448 Check the contents of SPEC.
15449 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15450 (check_gstring): New function.
15451 (REPLACEMENT_CHARACTER): New macro.
15452 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15453 glyph codes of GSTRING.
15454 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15455 (font_prepare_composition): Set cmp->glyph_len.
15456 (font_open_entity): Set font->scalable.
15457 (Ffont_get): Handle :otf property.
15458 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15459 functions.
15460 (Fquery_font): Use font->font.full_name.
15461 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15462 Sfont_otf_alternates.
15463
15464 * ftfont.c (ftfont_open): Set font->font.full_name and
15465 font->font.name properly. Fix calculation of font->font.height
15466 and font->min_width.
15467
15468 * ftxfont.c (ftxfont_create_gcs): New function.
15469 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15470 (ftxfont_draw_backgrond): Fix filling region.
15471 (ftxfont_default_fid): New function.
15472 (ftxfont_open): Set xfont->fid to the return value of
15473 ftxfont_default_fid.
15474 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15475 (ftxfont_done_face): Free only GCs that are created by
15476 ftxfont_create_gcs.
15477 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15478
15479 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15480 Clip to src->width, etc (not src->clip_XXX).
15481
15482 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15483 FontBackend frame parameter.
15484
154852008-02-01 Kenichi Handa <handa@m17n.org>
15486
15487 * font.h (struct font_driver_list): New member `on'.
15488 (Fclear_font_cache): EXFUN it.
15489 (font_update_drivers): Extern it.
15490
15491 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15492 (font_list_entities): Check driver_list->on.
15493 (register_font_driver): Initalize `on' member to 0.
15494 (font_update_drivers): New function.
15495 (Fclear_font_cache): Check driver_list->on.
15496
15497 * frame.h (Qfont_backend): Extern it.
15498 (x_set_font_backend): Extern it.
15499
15500 * frame.c (Qfont_backend): New variable.
15501 (frame_parms): New element for font-backend.
15502 (x_set_font_backend): New function.
15503
15504 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15505 FontBackend frame parameter.
15506 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15507 x_set_font_backend.
15508
15509 * xfont.c (xfont_list): Don't try listing by :name property if the
15510 name is not for XLFD.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15515 (LGLYPH_SET_TO): New macros.
15516 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15517 element of G is vector or not.
15518 (font_at): Extern it.
15519
15520 * font.c: Include window.h.
15521 (font_lispy_object): New function.
15522 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15523 end of valid glyph.
15524 (font_close_object): Fix getting (struct font *).
15525 (font_at): New function.
15526 (Ffont_get): If FONT is a font-object, get entity from it.
15527 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15528 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15529 range check.
15530 (Ffont_at): New function.
15531 (syms_of_font): Defsubr Sfont_at.
15532
15533 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15534 before the entry for Qcomposition.
15535 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15536 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15537 the font in gstring.
15538 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15539 LGLYPH_FORM (g) to detect the end of valid glyph.
15540 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15541 we are composing with gstring.
15542
15543 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15544 Check if adjustment is vector or not.
15545
15546 * Makefile.in (font.o): Make it depends on window.h.
15547
155482008-02-01 Kenichi Handa <handa@m17n.org>
15549
15550 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15551 adjustment is vector or not.
15552
155532008-02-01 Miles Bader <miles@gnu.org>
15554
15555 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15556
155572008-02-01 Kenichi Handa <handa@m17n.org>
15558
15559 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15560 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15561 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15562
15563 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15564 (DEVICE_DELTA): Fix typo.
15565 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15566 LGLYPH format.
15567
15568 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15569 the change of LGLYPH format.
15570
155712008-02-01 Kenichi Handa <handa@m17n.org>
15572
15573 * ftfont.c (ftfont_list): Fix typo.
15574 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15575
155762008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15577
15578 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15579
15580 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15581 xftface_info is non-NULL.
15582
155832008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15584
15585 * ftfont.c (ftfont_list): Move misplaced #endif.
15586
155872008-02-01 Kenichi Handa <handa@m17n.org>
15588
15589 * ftfont.c (ftfont_list): Pay attention to the case that
15590 FC_CAPABILITY is not defined.
15591
155922008-02-01 Kenichi Handa <handa@m17n.org>
15593
15594 * xftfont.c (xftfont_open): Set charset related members to -1.
15595
15596 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15597 QCname.
15598 (ftfont_open): Set charset related members to -1.
15599
15600 * fontset.c (Votf_script_alist): New variable.
15601 (syms_of_fontset): Initialize it.
15602 (fontset_font): Delete unused variable.
15603
15604 * fontset.h (Votf_script_alist): Extern it.
15605
15606 * font.c (font_find_for_lface): Optimize code.
15607
15608 * font.h (font_close_object, font_merge_old_spec): Extern them.
15609
156102008-02-01 Kenichi Handa <handa@m17n.org>
15611
15612 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15613 (syms_of_font): Initialize them.
15614 (font_pixel_size): Allow float value in dpi.
15615 (font_prop_validate_type): Delete.
15616 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15617 Change caller.
15618 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15619 (font_prop_validate_extra): Delete.
15620 (font_prop_validate_spacing): New function.
15621 (font_property_table): Add elements for all known properties.
15622 (get_font_prop_index): Rename from check_font_prop_name. New
15623 argument FROM. Change caller.
15624 (font_prop_validate): Validate all known properties.
15625 (font_put_extra): Delete argument force. Change caller.
15626 (font_expand_wildcards): Make it static. Fix the way of shrinking
15627 the possible range.
15628 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15629 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15630 Change caller.
15631 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15632 (font_parse_fcname): Delete argument merge. Fix parsing of point
15633 size. Don't validate properties values here. Change caller.
15634 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15635 (font_open_by_name): Delete unused variable.
15636 (Ffont_spec): Likewise. Validate property values.
15637 (Ffont_match_p): New function.
15638
15639 * font.h (QCscalable): Extern it.
15640 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15641
15642 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15643
15644 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15645 (xfont_list_pattern): New function.
15646 (xfont_list): Use xfont_list_pattern.
15647
156482008-02-01 Kenichi Handa <handa@m17n.org>
15649
15650 * font.h (Flist_fonts): EXFUN it.
15651
156522008-02-01 Jason Rumney <jasonr@gnu.org>
15653
15654 * w32term.c (w32_initialize): Add back smoothing_type and
15655 smoothing_enabled definitions.
15656
156572008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15660 s->face->font on determining underline position.
15661
156622008-02-01 Kenichi Handa <handa@m17n.org>
15663
15664 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15665 (font_has_char): Accept font-object too.
15666 (font_find_for_lface): Try at first with a size specified in face.
15667
156682008-02-01 Kenichi Handa <handa@m17n.org>
15669
15670 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15671 font_open_by_name.
15672
156732008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 * font.h (QCspacing, QCdpi): Extern them.
15676 (enum font_spacing): New enum.
15677 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15678
15679 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15680 (QCspacing, QCdpi): New variables.
15681 (syms_of_font): Initialize them.
15682 (font_pixel_size): New function.
15683 (font_put_extra): New function.
15684 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15685 in FONT_EXTRA.
15686 (font_parse_fcname): Handle enumerated values (e.g. bold).
15687 Fix handling font size. Add QCname property that contains only
15688 unknown properties.
15689 (font_score): Change argument. Change caller. Pay attention to
15690 FONT_PIXEL_SIZE_QUANTUM.
15691 (font_sort_entites, font_list_entities, font_find_for_lface)
15692 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15693 (Ffont_spec): Add QCname property that contains only unknown properties.
15694
15695 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15696 include weight in listing pattern, instead check weight of each
15697 listed font. Don't include scalable in pattern. Pay attention to
15698 FONT_PIXEL_SIZE_QUANTUM.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * font.c (font_parse_fcname): Fix parsing of point-size.
15703 (font_unparse_fcname): Produce symbolic names for style properties.
15704 (font_list_entities): Handle float size correctly.
15705 (font_open_by_name): Prefer `normal' property values if the name
15706 doesn't specify them.
15707
15708 * fontset.c (Finternal_char_font): Use font_get_name, not
15709 Ffont_xlfd_name.
15710
15711 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15712 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15713 pattern. Don't force scalable.
15714
15715 * xftfont.c (xftfont_open): For generating a name, start from
15716 96-byte buffer.
15717
157182008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15719
15720 * frame.h (x_new_fontset2): Fix prototype.
15721
157222008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * font.h (struct font_driver): Delete member parse_name.
15725 (font_match_p, font_get_spec, font_parse_fcname)
15726 (font_unparse_fcname): Extern them.
15727 (font_get_name): Adjust prototype.
15728
15729 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15730 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15731 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15732 unnecessary checks for weight, slant, and swidth.
15733 (font_parse_fcname): New function.
15734 (font_unparse_fcname): New function.
15735 (font_parse_name): New function.
15736 (font_match_p): New function.
15737 (font_get_name): Change return value to Lisp string.
15738 (font_get_spec): New function.
15739 (Qunspecified, Qignore_defface): Don't extern them.
15740 (font_find_for_lface): Assume that LFACE is fully specified.
15741 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15742 object, use it for FACE.
15743 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15744 driver->parse_name.
15745 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15746
15747 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15748 prototype.
15749
15750 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15751 argument F. Don't call Fnew_fontset. Instead, directly call
15752 make_fontset.
15753
15754 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15755
15756 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15757 of x_new_fontset2.
15758
15759 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15760 (Qsans__serif): New variables.
15761 (ftfont_generic_family_list): New variable.
15762 (syms_of_ftfont): Initialize the above variables.
15763 (ftfont_pattern_entity): Delete argument NAME.
15764 (ftfont_list_generic_family): New function.
15765 (ftfont_parse_name): Delete this function.
15766 (ftfont_list): Try generic family only when FcFontList found no font.
15767 (ftfont_list_family): Fix args to FcObjectSetBuild.
15768
15769 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15770 object in attrs[LFACE_FONT_INDEX].
15771 (set_lface_from_font_name): Cancel all changes for font-backend.
15772 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15773 function.
15774 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15775 font object in QCfont attribute.
15776 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15777 (realize_default_face) [USE_FONT_BACKEND]: Call
15778 set_lface_from_font_and_fontset.
15779
15780 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15781 "fixed", and signal error here if no suitable font was found.
15782
15783 * xfont.c (xfont_parse_name): Delete this function.
15784
15785 * xftfont.c (xftfont_open): Change coding style of error
15786 handling. Generate fontconfig's fontname pattern.
15787
15788 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15789 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15790
15791 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15792 Both args FONTSET and FONT_OBJECT must be existing ones.
15793
157942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15795
15796 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15797
157982008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15801
15802 * font.h (struct font): Fix typo.
15803
15804 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15805 XLFD_XXX_INDEX.
15806 (enum xlfd_field_mask): New enum.
15807 (intern_font_field): Changed argument. Change caller. If digits
15808 are followed by non-digits, return a symbol.
15809 (font_expand_wildcards): New function.
15810 (font_parse_xlfd): Fix wildcard handling.
15811 (Ffont_spec): If :name is specified, reflect the info in the other
15812 properties.
15813
15814 * ftfont.c (ftfont_pattern_entity): Fix typo.
15815 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15816 locale.
15817
158182008-02-01 Kenichi Handa <handa@m17n.org>
15819
15820 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15821
15822 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15823 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15824 registry doesn't specify encoding part.
15825 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15826 (font_open_by_name): At first try parsing the name.
15827 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15828 as Lisp symbols.
15829
15830 * fontset.c (reorder_font_vector): Pay attention to the case that
15831 the 3rd element of font_def is nil.
15832 (fontset_font): For the default fontset, append one more fontset
15833 elements for a script-based font specification. Don't add script
15834 attribute on finding a font.
15835 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15836 font name.
15837 (fontset_ascii_font): If a font can't be opened, return nil.
15838
15839 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15840 (ftfont_pattern_entity): New function.
15841 (ftfont_get_cache): Assume that freetype_font_cache is already
15842 initialized.
15843 (ftfont_list): Handle the case that a file is specified in font
15844 name. Use ftfont_pattern_entity to generate entities.
15845 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15846 (syms_of_ftfont): Initialize freetype_font_cache.
15847
15848 * xftfont.c (xftfont_open): Make the font name fontconfig's
15849 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15850 (xftfont_close): Free font->font.name if not NULL.
15851
15852 * xfont.c (xfont_list): If script is specified for a font, return
15853 null_vector.
15854 (xfont_list_family): Declare argument type.
15855
15856 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15857 name, set LFACE_FONT (lface) to nil.
15858
15859 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15860 return Qnil.
15861
158622008-02-01 Kenichi Handa <handa@m17n.org>
15863
15864 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15865 (standard_args): Add "-enable-font-backend".
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15870 (struct xftdraw_list, xftdraw_list): Delete them.
15871 (register_xftdraw, check_xftdraw): Delete them.
15872 (xftfont_prepare_face): Don't call register_xftdraw.
15873 (xftfont_done_face): Don't call check_xftdraw.
15874 (xftfont_draw): Get background color only when with_background is
15875 nonzero.
15876
15877 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 These changes are for the new font handling codes.
15882
15883 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15884 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15885 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15886 (FONTSRC, FONTOBJ): New variables.
15887 (obj): Add $(FONTOBJ).
15888 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15889 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15890 @LIBOTF_LIBS@.
15891 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15892 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15893
15894 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15895
15896 * character.h (Vscript_representative_chars): Extern it.
15897
15898 * character.c (Vscript_representative_chars): New variable.
15899 (syms_of_character): Declare it as a Lisp variable.
15900
15901 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15902 enable_font_backend is nonzero, accept the composition method
15903 COMPOSITION_WITH_GLYPH_STRING.
15904
15905 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15906 enumeration COMPOSITION_WITH_GLYPH_STRING.
15907
15908 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15909 members clip_x, clip_y, clip_width, and clip_height.
15910 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15911
15912 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15913 --enable-font-backend. Call syms_of_font.
15914
15915 * fns.c (assoc_no_quit): New function.
15916
15917 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15918 (face_for_font, new_fontset_from_font)
15919 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15920
15921 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15922 (fontset_font, fontset_ascii, face_for_char)
15923 (make_fontset_for_ascii_face, Ffont_info)
15924 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15925 is nonzero, use font-backend mechanism.
15926 (find_font_encoding): Make it non-static.
15927 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15928 New functions.
15929
15930 * frame.h (struct frame): New members resx and resy.
15931 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15932 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15933
15934 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15935 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15936
15937 * lisp.h (assoc_no_quit): Extern it.
15938
15939 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15940 Through out the file, use FONT_INFO_FROM_FACE instead of
15941 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15942 rif->per_char_metric.
15943 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15944 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15945 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15946 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15947 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15948 nonzero, use font-backend mechanism.
15949 (get_per_char_metric): New function.
15950
15951 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15952 (set_lface_from_font_name)
15953 (set_font_frame_param, free_realized_face)
15954 (prepare_face_for_display, clear_face_gcs)
15955 (Finternal_set_font_selection_order, realize_x_face)
15956 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15957 font-backend mechanism.
15958 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15959 (load_face_font) [USE_FONT_BACKEND]: Abort.
15960 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15961 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15962
15963 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15964 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15965 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15966 nonzero, register all available font drivers. Call
15967 x_default_font_parameter for deciding a font.
15968 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15969
15970 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15971 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15972 (x_set_glyph_string_clipping_exactly)
15973 (x_compute_glyph_string_overhangs)
15974 (x_draw_glyph_string_foreground)
15975 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15976 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15977 enable_font_backend is nonzero, use font-backend mechanism.
15978 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15979
159802008-02-01 Kenichi Handa <handa@m17n.org>
15981
15982 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15983 system_eol_type.
15984 (syms_of_coding): Initialize system_eol_type.
15985
15986 * process.c (Fset_process_coding_system): Inherit system's eol
15987 format if necessary.
15988
159892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15990
15991 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * coding.c (decode_eol): Pay attention to buffer relocation in
15996 del_range_2.
15997 (decode_coding): Call decode_eol before restoring undo_list.
15998
159992008-02-01 Kenichi Handa <handa@m17n.org>
16000
16001 * charset.c (Fdefine_charset_internal): Fix setting of
16002 emacs_mule_bytes.
16003
160042008-02-01 Kenichi Handa <handa@m17n.org>
16005
16006 * keyboard.c (read_char): Check if C is a character or not before
16007 looking up Vkeyboard_translate_table.
16008
160092008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16012 condition to terminate the loop.
16013
160142008-02-01 Kenichi Handa <handa@m17n.org>
16015
16016 * coding.c (produce_composition): Compare charbuf[i] instead of
16017 args[i] against 0.
16018 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16019
160202008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16023 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16024 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16025 detect_coding.
16026 (emacs_mule_char): Handle old style (Emacs 20) component character
16027 of a composition.
16028 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16029 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16030 composition rule.
16031 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16032
160332008-02-01 Kenichi Handa <handa@m17n.org>
16034
16035 * coding.c (encode_coding_ccl): Allocate destination dynamically
16036 when necessary.
16037
160382008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16041 the loop. When quitted, show a proper error message.
16042
160432008-02-01 Kenichi Handa <handa@m17n.org>
16044
16045 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16046 src->clip_head and src->clip_tail temporarily instead of src->hl.
16047
16048 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16049 character sequence.
16050 (Fccl_execute_on_string): Use ASET, not XSET.
16051
160522008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16055
160562008-02-01 Kenichi Handa <handa@m17n.org>
16057
16058 * coding.c (decode_coding): Fix the condition of terminating the
16059 decoding loop.
16060
160612008-02-01 Kenichi Handa <handa@m17n.org>
16062
16063 * data.c (Faset): On setting a character bigger than 255 in a
16064 unibyte string, signal an error instead of make the string multibyte.
16065
160662008-02-01 Kenichi Handa <handa@m17n.org>
16067
16068 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16069 made by a mapping table.
16070
160712008-02-01 Kenichi Handa <handa@m17n.org>
16072
16073 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16074 not.
16075 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16076 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16077
16078 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16079 s->face is NULL or not.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16084 (x_draw_glyph_string): Fix drawing of right_overhang and
16085 left_overhang around/on cursor.
16086
16087 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * coding.c (Fdefine_coding_system_internal)
16096 (Fdefine_coding_system_alias): Avoid a duplicated element in
16097 Vcoding_system_alist.
16098
160992008-02-01 Kenichi Handa <handa@m17n.org>
16100
16101 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16102
16103 * coding.c (Qcoding_system_define_form): New variable.
16104 (syms_of_coding): Intern and staticpro it.
16105 (Fcoding_system_p): Check Qcoding_system_define_form.
16106 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16107
16108 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16109 Fcoding_system_p.
16110 (CHECK_CODING_SYSTEM): If ID is not available, call
16111 Fcheck_coding_system.
16112 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16113 Try also Fcheck_coding_system.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * coding.c (code_conversion_restore): GCPRO arg.
16118
161192008-02-01 Kenichi Handa <handa@m17n.org>
16120
16121 * character.c (lisp_string_width): Check multibyteness of STRING.
16122
161232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16124
16125 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16126 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16127 (decode_mac_font_name): Use decode_coding_c_string instead of
16128 decode_coding.
16129 (x_load_font): Initialize fontp->fontset to -1. Set
16130 fontp->encoding_type.
16131
161322008-02-01 Kenichi Handa <handa@m17n.org>
16133
16134 * search.c (search_buffer): Give up BM search on case-fold-search
16135 if one of a target character has a case-equivalence of different
16136 byte length even if that target charcter is an ASCII.
16137 (simple_search): Fix calculation of byte length of matched text.
16138 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * coding.c (decode_coding): Fix handling of invalid bytes.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16147 Unicode characters.
16148
161492008-02-01 Kenichi Handa <handa@m17n.org>
16150
16151 * coding.c (encode_coding_object): If a pre-write-conversion
16152 function makes a new buffer, kill it.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * coding.c (QCascii_compatible_p): New variable.
16157 (syms_of_coding): Initialize it.
16158 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16159 calling string_char.
16160 (record_conversion_result): Add `default:' case.
16161 (coding_charset_list): Delete unused variable `coding_type'.
16162 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16163 property in the plist of the coding system.
16164 (Fcoding_system_put): Check QCascii_compatible_p.
16165
161662008-02-01 Miles Bader <miles@gnu.org>
16167
16168 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16169 removed calculation of frame `f', as it's now used.
16170
161712008-02-01 Kenichi Handa <handa@m17n.org>
16172
16173 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16174 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16175 (UNIDATA): New variable.
16176 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16177 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16178 $(RUN_TEMACS) unconditionally.
16179
161802008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16183 (admindir): New variable.
16184 ($(lispsource)international/charprop.el): New target.
16185
161862008-02-01 Miles Bader <miles@gnu.org>
16187
16188 * character.c (chars-in-region): Remove obsolete function.
16189 (syms_of_character): Remove its initialization.
16190
161912008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16192
16193 * w32select.c (validate_coding_system)
16194 (setup_windows_coding_system): New functions.
16195 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16196 setup_windows_coding_system.
16197 (setup_config, Fw32_get_clipboard_data): Use
16198 validate_coding_system.
16199 (Fx_selection_exists): Move call to setup_config to a place
16200 where signals are allowed.
16201
16202 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16203 (Fcheck_coding_system): Add declarations.
16204
162052008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16208
162092008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16210
16211 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16212 string as the second argument for x_new_fontset.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16217 (encode_coding_object): Use safe_call instead of call2.
16218
162192008-02-01 Kenichi Handa <handa@m17n.org>
16220
16221 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16222
16223 * Makefile.in (lisp): Include charprop.el.
16224
162252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16226
16227 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16228 Not sure if it's unnecessary.
16229
162302008-02-01 Steven Tamm <steventamm@mac.com>
16231
16232 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16233 some possibly unnecessary fontset checking code that crashed
16234 when creating a new frame.
16235
162362008-02-01 Kenichi Handa <handa@m17n.org>
16237
16238 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16239 lookup_face.
16240
16241 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16242
16243 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16244
162452008-02-01 Kenichi Handa <handa@m17n.org>
16246
16247 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16248 (coding_charset_list): New function.
16249
16250 * coding.h (coding_charset_list): Extern it.
16251
162522008-02-01 Kenichi Handa <handa@m17n.org>
16253
16254 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16255 concatenation of family and registry.
16256
162572008-02-01 Kenichi Handa <handa@m17n.org>
16258
16259 * character.h (BYTE8_STRING): Fix typo.
16260
16261 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16262 string to multibyte (sync to HEAD).
16263
16264 * casefiddle.c (casify_region): Handle changes in byte-length
16265 using replace_range_2 (sync to HEAD).
16266
162672008-02-01 Andreas Schwab <schwab@suse.de>
16268
16269 * chartab.c (map_char_table): GCPRO table and arg.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16274 already at limit.
16275
162762008-02-01 Kenichi Handa <handa@m17n.org>
16277
16278 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16279 instead of fast_c_string_match_ignore_case.
16280 (find_font_encoding): Change argument to Lisp_Object. Use
16281 fast_string_match_ignore_case instead of
16282 fast_c_string_match_ignore_case. Change caller.
16283
162842008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * xdisp.c (get_next_display_element): In unibyte case, decide to
16287 display in octal form by checking a character by
16288 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16289
16290 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16291
16292 * character.c (unibyte_has_multibyte_table): New variable.
16293
16294 * character.h (unibyte_has_multibyte_table): Extern it.
16295 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16296
162972008-02-01 Kenichi Handa <handa@m17n.org>
16298
16299 * coding.c (encode_coding_iso_2022): Fix handling of charset
16300 annotation.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * coding.c (setup_coding_system): If coding_system is nil, use
16305 Qundecided.
16306 (Fterminal_coding_system): Return nil if terminal coding system is
16307 `undecided'.
16308 (syms_of_coding): Define coding-system `undecided' here. Setup
16309 terminal_coding as `undecided'.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * xdisp.c (message_dolog, set_message_1): Call
16314 unibyte_char_to_multibyte with arg type int.
16315
16316 * lread.c (read1): Fix reading of a char-table.
16317
16318 * print.c (print_object): Include sub char-table in circularities
16319 detection.
16320
163212008-02-01 Kenichi Handa <handa@m17n.org>
16322
16323 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16324 Append the found sequences in car of ARGS instead of prepending.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * fileio.c (report_file_error): Make a unibyte string from
16329 strerror (errorno).
16330 (Fsubstitute_in_file_name): Fix the arg to
16331 unibyte_char_to_multibyte. It is evaluated twice.
16332
163332008-02-01 Kenichi Handa <handa@m17n.org>
16334
16335 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16340 BOM is not found.
16341 (detect_coding, detect_coding_system): Optimization for ISO-2022
16342 when no 8-bit data is found.
16343
163442008-02-01 Jason Rumney <jasonr@gnu.org>
16345
16346 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16347
163482008-02-01 Kenichi Handa <handa@m17n.org>
16349
16350 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16351 CHARS.
16352
163532008-02-01 Steven Tamm <steventamm@mac.com>
16354
16355 * macterm.c (mac_encode_char): Add charset argument and update
16356 to use encoding_type.
16357 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16358 switch to pure fontset.
16359 (decode_mac_font_name): Temporarily remove decoding.
16360 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16361 (x_load_font): Temporarily remove encoding.
16362
163632008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * xfaces.c (Fface_font): If frame is not on a window system,
16366 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16367 refer to face->font.
16368 (split_font_name_into_vector, build_font_name_from_vector)
16369 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16370 when HAVE_WINDOW_SYSTEM is defined.
16371
163722008-02-01 Kenichi Handa <handa@m17n.org>
16373
16374 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16375 (x_produce_glyphs): Fix setting of members of cmp in case
16376 cmp->glyph_len is zero.
16377
16378 * fontset.c (Fset_fontset_font): Fix docstring.
16379 (Ffontset_info): Make it backward compatible. New arg ALL.
16380
163812008-02-01 Kim F. Storm <storm@cua.dk>
16382
16383 * process.c (read_process_output): Grow decoding_buf when needed;
16384 this could cause a crash in allocate_string and compact_small_strings.
16385
163862008-02-01 Kenichi Handa <handa@m17n.org>
16387
16388 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * coding.c (setup_coding_system): Set coding->common_flags
16393 correctly for raw-text.
16394 (consume_chars): On encoding unibyte text by raw-text, don't check
16395 multibyte form.
16396 (encode_coding): On encoding by raw-text, never use translation tables.
16397
16398 * fileio.c (e_write): Short cut for the case of no encoding.
16399
164002008-02-01 Kenichi Handa <handa@m17n.org>
16401
16402 * coding.c (detect_coding, detect_coding_system): Delete unused
16403 variables.
16404
164052008-02-01 Kenichi Handa <handa@m17n.org>
16406
16407 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16408 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16409
164102008-02-01 Kenichi Handa <handa@m17n.org>
16411
16412 * coding.c (Ffind_coding_systems_region_internal): Include
16413 raw-text and no-conversion in the result.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16418 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16419 FONT_DEF.
16420 (font_def_arg, add_arg, from_arg, to_arg): New args.
16421 (set_fontset_font): Change argument.
16422 (Fset_fontset_font): Fix for the case that TARGET is a script
16423 name and charset name.
16424 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16425
164262008-02-01 Kenichi Handa <handa@m17n.org>
16427
16428 * fontset.c (fontset_font): Rename from fontset_face. Change return
16429 value.
16430 (face_suitable_for_char_p, face_for_char): Adjust for the change
16431 of fontset_font.
16432 (make_fontset_for_ascii_face): Fix setting of the fontset element
16433 for ASCII.
16434 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16435 to get a font name.
16436 (Ffontset_info): Adjust for the change of fontset_font.
16437
16438 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16439
16440 * character.h (LEADING_CODE_LATIN_1_MIN)
16441 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16442
164432008-02-01 Kenichi Handa <handa@m17n.org>
16444
16445 * editfns.c (check_translation): New function.
16446 (Ftranslate_region_internal): Handle M:N mapping.
16447
164482008-02-01 Kenichi Handa <handa@m17n.org>
16449
16450 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16451
164522008-02-01 Kenichi Handa <handa@m17n.org>
16453
16454 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16455 goto invalid_code.
16456 (decode_coding_iso_2022): Fix handling of invalid designation.
16457
16458 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16459 after calling code_conversion_save.
16460
164612008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16464
16465 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16466
16467 * fontset.c: Include "intervals.h".
16468 (fontset_face): Fix comparing of Lisp_Objects.
16469 (free_face_fontset, new_fontset_from_font_name): Fix
16470 Lisp_Object/int mixup.
16471
16472 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16473
16474 * coding.c: Add many prototypes for static functions.
16475 (get_translation_table): Allow max_lookup to be NULL.
16476 (decode_coding, Ffind_coding_systems_region_internal)
16477 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16478 get_translation_table with max_lookup NULL.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * coding.c (get_translation_table): Declare it as Lisp_Object.
16483 (LOOKUP_TRANSLATION_TABLE): New macro.
16484 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16485 instead of CHAR_TABLE_REF.
16486
164872008-02-01 Kenichi Handa <handa@m17n.org>
16488
16489 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16490 annotation data format.
16491 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16492 Change arguments FROM and TO to single argument NCHARS. Change caller.
16493 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16494 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16495 (decode_coding_ccl, decode_coding_charset): Pay attention to
16496 coding->charbuf_used.
16497 (get_translation): New function.
16498 (produce_chars): New arguments translation_table and last_block.
16499 Translate characters here. Return number of carryover chars.
16500 Change caller.
16501 (produce_composition): New argument pos. Change caller.
16502 Adjust for the change of annotation data format.
16503 (produce_charset, produce_annotation): Likewise.
16504 (decode_coding, encode_coding): Don't call translate_chars.
16505 (consume_chars): New arg translation_table. Change caller.
16506 (translate_chars): Delete.
16507 (syms_of_coding): Make translation-table's number of extra slots 2.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * search.c (simple_search): Fix setting this_pos_byte in backward
16512 search.
16513
16514 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16515 byte sequence.
16516 (detect_coding_ccl): Fix setting of the variable valids.
16517
165182008-02-01 Kenichi Handa <handa@m17n.org>
16519
16520 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16521
16522 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16523
16524 * editfns.c (Ftranslate_region_internal): Rename from
16525 Ftranslate_region. Accept a char-table in TABLE.
16526 (syms_of_editfns): Defsubr Stranslate_region_internal.
16527
16528 * xfaces.c (set_lface_from_font_name): If a font is specified for
16529 a frame, generate a fontset from the font.
16530 (build_scalable_font_name): If the scalable font is requested for
16531 a specific size, don't change that size.
16532 (try_font_list): Try a scalable font also in the case that a
16533 pattern string is specified.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * xfaces.c (Fface_font): New optional arg CHARACTER.
16538
165392008-02-01 Kenichi Handa <handa@m17n.org>
16540
16541 * charset.h (CHARSET_OFFSET): New macro.
16542
165432008-02-01 Kenichi Handa <handa@m17n.org>
16544
16545 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16546
16547 * fontset.c (fontset_face): Handle the case that repertory is a
16548 char-table.
16549 (find_font_encoding): Return nil for unknown encoding.
16550 (Fset_fontset_font): Ignore a font of unknown encoding.
16551
165522008-02-01 Kenichi Handa <handa@m17n.org>
16553
16554 * keymap.c (describe_vector): Handle default value of a char table.
16555
16556 * fontset.c (fontset_face): Handle fallback fonts correctly.
16557 (Ffontset_info): Return infomation about fallback fonts.
16558
165592008-02-01 Kenichi Handa <handa@m17n.org>
16560
16561 * fontset.c (FONTSET_DEFAULT): New macro.
16562 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16563 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16564 the case that it is nil.
16565 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16566 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16567
16568 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16569 subset or superset.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * emacs.c (main): Call init_charset after syms_of_XXX.
16574
16575 * charset.c (Vcharset_map_directory): Delete.
16576 (Vcharset_map_path): New variable.
16577 (load_charset_map_from_file): Use Vcharset_map_path instead.
16578 (init_charset): Initialize Vcharset_map_path.
16579 (syms_of_charset): Delete declaration of "charset-map-directory",
16580 add declaration of "charset-map-path".
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16585 ASCII only string.
16586
16587 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16588
16589 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16590 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16591
165922008-02-01 Kenichi Handa <handa@m17n.org>
16593
16594 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16595
16596 * coding.c (QCmnemonic, QCdefalut_char)
16597 (QCdecode_translation_table, QCencode_translation_table)
16598 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16599 (get_translation_table): Return a list of translation tables if
16600 necessary.
16601 (decode_coding): Call get_translation_table with ENCODEP 0.
16602 (char_encodable_p): If translation_table is non-nil, always call
16603 translate_char.
16604 (Fdefine_coding_system_internal): Accept list of translation
16605 tables as :encode-translation-table and :decode-translation-table.
16606 (Fcoding_system_put): New function.
16607 (syms_of_coding): Declare new symbols. Defsubr
16608 Scoding_system_put.
16609 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16610 typically JISX0212.
16611
16612 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16613 when the charset is superset type.
16614
16615 * character.c (translate_char): Accept list of translation tables.
16616
166172008-02-01 Kenichi Handa <handa@m17n.org>
16618
16619 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16620 (CODING_ATTR_TRANS_TBL): New macro.
16621
16622 * coding.c (get_translation_table): New function.
16623 (translate_chars): Fix the bug of skipping annotation data.
16624 (decode_coding, encode_coding): Utilize get_translation_table.
16625 (char_encodable_p, Funencodable_char_position): Translate char if
16626 necessary.
16627 (Ffind_coding_systems_region_internal)
16628 (Fcheck_coding_systems_region): Setup translation table for encode
16629 in a coding system attribute vector in advance.
16630 (Fdefine_coding_system_internal): Allow a symbol as translation
16631 table. For shift-jis type coding system, allow 4th charset.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16636
16637 * xdisp.c (get_next_display_element): Pass -1 as POS to
16638 FACE_FOR_CHAR if displaying a C-string.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * composite.c (get_composition_id): Handle xoff and yoff in a
16643 composition rule.
16644
16645 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16646 (struct composition): New member lbearing and rbearing.
16647
16648 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16649 (x_get_glyph_overhangs): Handle a composition glyph.
16650 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16651
16652 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16653 composition glyph.
16654
166552008-02-01 Kenichi Handa <handa@m17n.org>
16656
16657 * print.c: Include charset.h.
16658 (Vprint_charset_text_property): New variable.
16659 (Qdefault): Extern it.
16660 (PRINT_STRING_NON_CHARSET_FOUND)
16661 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16662 (print_check_string_result): New variable.
16663 (print_check_string_charset_prop): New function.
16664 (print_prune_charset_plist): New variable.
16665 (print_prune_string_charset): New function.
16666 (print_object): Call print_prune_string_charset if
16667 Vprint_charset_text_property is not t.
16668 (print_interval): Print nothing if interval->plist is nil.
16669 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16670 variable. Init and staticpro print_prune_charset_plist.
16671
166722008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * fontset.c (new_fontset_from_font_name): Use the specified font
16675 for all characters in the new fontset.
16676
16677 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16678 OBJECT args.
16679
16680 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16681 OBJECT args for composition too.
16682
16683 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16684 OBJECT args.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16689
16690 * fontset.c (reorder_font_vector): Adjust for the change of
16691 FONT_DEF format.
16692 (fontset_face): New arg id. Change caller.
16693 (face_for_char): New args pos and object.
16694 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16695 (fs_query_fontset): Check NAME by Fassoc too.
16696 (Fset_fontset_font): Allow non-XLFD font name.
16697 (Ffontset_info): Adjust for the change of FONT_DEF format.
16698
16699 * fontset.h (face_for_char): Adjust prototype.
16700
16701 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16702 (append_space, extend_face_to_end_of_line)
16703 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16704 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16705
16706 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16707 POS and OBJECT args.
16708
16709 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16710 POS and OBJECT args.
16711
167122008-02-01 Jason Rumney <jasonr@gnu.org>
16713
16714 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16715 of GlobalAlloc'ed memory.
16716
167172008-02-01 Kenichi Handa <handa@m17n.org>
16718
16719 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16720
16721 * charset.h (charset_table_used): Delete extern.
16722
16723 * charset.c (charset_table_used): Make it static.
16724 (map_charset_chars): Fix args to c_function with.
16725
16726 * chartab.c (map_sub_char_table_for_charset): Fix args to
16727 c_function with.
16728
16729 * coding.h (enum coding_result_code): Delete
16730 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16731
16732 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16733 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16734 (Vlast_code_conversion_error): New variables.
16735 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16736 (ONE_MORE_BYTE): Record error if any instead of signaling an
16737 error. If non-ASCII multibyte char is found, return the negative
16738 value of the code. All callers changed to check it.
16739 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16740 (record_conversion_result): New function. Change all codes setting
16741 coding->result to call this function.
16742 (detect_coding_utf_8, decode_coding_utf_8)
16743 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16744 Don't use the local variable incomplete.
16745 (emacs_mule_char): Change the second arg to `const'.
16746 (decode_coding): Fix of flushing out unprocessed data.
16747 (make_conversion_work_buffer): Fix making of a work buffer.
16748 (decode_coding_object): Return coding->dst_object.
16749
16750 * fontset.c (set_fontset_font): Fix args.
16751
16752 * lisp.h (CHARACTERBITS): Define as 22.
16753
16754 * process.c (send_process): Be sure to set coding->src_multibyte.
16755
16756 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16757
167582008-02-01 Kenichi Handa <handa@m17n.org>
16759
16760 * xdisp.c (handle_auto_composed_prop): Give limit to
16761 Fnext_single_char_property_change.
16762
167632008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * composite.c (syms_of_composite): Don't make the composition hash
16766 table weak.
16767
16768 * fontset.c (Fset_fontset_font): Fix docstring.
16769
16770 * lisp.h (detect_coding_system): Adjust prototype.
16771
16772 * fileio.c (kill_workbuf_unwind): Delete this function.
16773 (Finsert_file_contents): Adjust the call of detect_coding_system.
16774 Get conversion_buffer by code_conversion_save. Use the macro
16775 CODING_MAY_REQUIRE_DECODING. After decoding, update
16776 coding_system.
16777
16778 * coding.h (make_conversion_work_buffer): Delete extern.
16779 (code_conversion_save): Extern it.
16780
16781 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16782 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16783 (decode_coding_utf_8): Don't do eol converion.
16784 (detect_coding_utf_16): Check coding->src_chars, not
16785 coding->src_bytes. Add heuristics for those that have no signature.
16786 (decode_coding_emacs_mule, decode_coding_iso_2022)
16787 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16788 Don't do eol converion.
16789 (adjust_coding_eol_type): Return a new coding system.
16790 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16791 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16792 each change.
16793 (decode_coding): Pay attention to undo_list. Do eol conversion for
16794 all types of coding-systems (if necessary).
16795 (Vcode_conversion_work_buf_list): Delete it.
16796 (Vcode_conversion_reused_workbuf): Rename from
16797 Vcode_conversion_reused_work_buf.
16798 (Vcode_conversion_workbuf_name): New variable.
16799 (reused_workbuf_in_use): New variable.
16800 (make_conversion_work_buffer): Delete the arg DEPTH.
16801 (code_conversion_restore): Change argument to cons.
16802 (code_conversion_save): Delete the argument BUFFER. Change callers.
16803 (detect_coding_system): New argument src_chars. Change callers.
16804 Fix for utf-16 detection.
16805 (init_coding_once): Don't use ISO_carriage_return.
16806 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16807 reused_workbuf_in_use.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * keymap.c (store_in_keymap): Pay attention to the case that idx
16812 is a cons specifying a character range.
16813
168142008-02-01 Kenichi Handa <handa@m17n.org>
16815
16816 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16817 HANDLED_RECOMPUTE_PROPS.
16818
16819 * coding.c (Fdefine_coding_system_internal): Fix checking of
16820 ascii compatibility.
16821
168222008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * charset.c (find_charsets_in_text): Delete unused locale variable.
16825 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16826
16827 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16828 Resync charset_list to Vemacs_mule_charset_list.
16829
16830 * keymap.c (store_in_keymap): Pay attention to the case that idx
16831 is a cons specifying a character range.
16832
168332008-02-01 Kenichi Handa <handa@m17n.org>
16834
16835 * composite.c (update_compositions): Bind inhibit-read-only, etc
16836 to t before calling remove-list-of-text-properties.
16837
16838 * print.c (print_object): Always print ASCII chars as is.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16843
16844 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16845 is a char table.
16846
168472008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * xfaces.c (set_lface_from_font_name): Fix for the case that
16854 FONTNAME is not fontset name.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * fns.c (base64_encode_1): Fix previous change.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * fontset.c (set_fontset_font): New function.
16863 (Fset_fontset_font): If a font is specified for a charset, use
16864 map_charset_chars to store the font spec in a fontset.
16865
168662008-02-01 Kenichi Handa <handa@m17n.org>
16867
16868 * fontset.c (fontset_face): Create a fallback fontset on demand.
16869 (make_fontset): Don't create a fallback fontset here.
16870 (free_face_fontset): Free a fallback fontset (if any) too.
16871 (n_auto_fontsets): Delete this variable.
16872 (auto_fontset_alist): New variable.
16873 (new_fontset_from_font_name): Check auto_fontset_alist.
16874 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16875 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16876 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16877 Defsubr Sfontset_list_all.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16882
168832008-02-01 Kenichi Handa <handa@m17n.org>
16884
16885 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16886
168872008-02-01 Kenichi Handa <handa@m17n.org>
16888
16889 * editfns.c (Fgoto_char): Fix docstring.
16890
168912008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 * insdel.c (insert_from_gap): Adjust intervals correctly.
16894
168952008-02-01 Jason Rumney <jasonr@gnu.org>
16896
16897 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16898 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16899 (w32_initialize): Try to load it.
16900 (x_get_font_repertory): Use it if available.
16901 (w32_encode_char): Add shortcut for unicode output.
16902
16903 * w32fns.c (w32_load_system_font): Default charset to -1.
16904 (x_to_w32_charset): Match all fonts for unicode.
16905 (w32_to_x_charset): New parameter matching. Don't return partial
16906 or wildcard charsets.
16907 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16908 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16909 (w32_to_x_font): Match charset to real charset.
16910 (enum_font_cb2): Always list unicode versions.
16911
16912 * makefile.w32-in (temacs): Increase EMHEAP.
16913
169142008-02-01 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32term.c (w32_encode_char): New charset parameter.
16917 font_info.encoding becomes encoding_type.
16918 (x_get_font_repertory): New function. Warning: stub only!
16919 (x_new_font): Return quickly if font already set.
16920 (x_new_fontset): fontsetname parameter is Lisp_Object.
16921 Use new fs_query_fontset. Try new_fontset_from_font_name.
16922 Use fontset_name for return value.
16923
16924 * w32term.h: Declare x_get_font_repertory.
16925
16926 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16927 place of find_charset_in_text. Use encode_coding_object in place
16928 of encode_coding.
16929 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16930 decode_coding.
16931
16932 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16933 of x_new_fontset.
16934 (w32_load_system_font): Initialize charset as unicode.
16935 font_info.encoding becomes encoding_type.
16936 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16937 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16938 (syms_of_w32fns): Set get_font_repertory_func.
16939
16940 * w32console.c: Include character.h. Use terminal_encode_buffer
16941 from term.c.
16942 (write_glyphs): Use new version of encode_terminal_code. Use
16943 encode_coding_object in place of encode_coding.
16944
16945 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16946 encoding becomes encoding_type.
16947
16948 * term.c (terminal_encode_buffer): Make externally visible.
16949
16950 * makefile.w32-in: Add character.h dependancies.
16951 (character.o, chartab.o): New targets.
16952
169532008-02-01 Kenichi Handa <handa@m17n.org>
16954
16955 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16956 CODING_ID_EOL_TYPE.
16957
169582008-02-01 Andreas Schwab <schwab@suse.de>
16959
16960 * coding.c (produce_chars): Revert last change.
16961
169622008-02-01 Kenichi Handa <handa@m17n.org>
16963
16964 * charset.h (charset_unicode): Extern it.
16965
16966 * charset.c (string_xstring_p): Check by (C >= 0x100).
16967 (find_charsets_in_text): Change format of the arc CHARSETS. New
16968 arg MULTIBYTE.
16969 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16970 change of find_charsets_in_text.
16971 (Fsplit_char): Fix doc. Never return unknown.
16972
16973 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16974
16975 * coding.c (Fdefine_coding_system_alias): Update
16976 Vcoding_system_list.
16977
16978 * fontset.c (load_font_get_repertory): Pay attention to the case
16979 that ENCODING of a font is specified by a char-table.
16980
16981 * xterm.c (x_get_font_repertory): Handle the case that the
16982 encoding of font is other than Unicode.
16983
169842008-02-01 Kenichi Handa <handa@m17n.org>
16985
16986 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16987 if a character is encodable by the terminal coding system. If
16988 not, produces proper number of `?'s. Update
16989 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16990 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16991
169922008-02-01 Kenichi Handa <handa@m17n.org>
16993
16994 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16995 variables.
16996 (encode_terminal_code): Change argument. Encode multiple
16997 characters at once. Store the result of encoding in
16998 terminal_encode_buffer.
16999 (write_glyphs, insert_glyphs): Adjust for the change of
17000 encode_terminal_code.
17001 (term_init): Initialize terminal_encode_buffer and
17002 terminal_encode_buf_size.
17003
17004 * coding.c (consume_chars): If coding->src_object is nil, don't
17005 check annotation.
17006
170072008-02-01 Kenichi Handa <handa@m17n.org>
17008
17009 * character.c (char_string): Use ASCII_CHAR_P instead of
17010 SINGLE_BYTE_CHAR_P.
17011
170122008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * xdisp.c (handle_auto_composed_prop): Check if the last
17015 characters of auto-composed region is newly composed with the
17016 following characters.
17017 (handle_composition_prop): Fix checking of point being inside
17018 composition.
17019
170202008-02-01 Kenichi Handa <handa@m17n.org>
17021
17022 * fns.c (concat): Don't change multibyteness of the result by
17023 concatenating an 8-bit character.
17024
17025 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17026 multibyteness of the result when newelt is an 8-bit character.
17027
170282008-02-01 Dave Love <fx@gnu.org>
17029
17030 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17031 EMACS_INT.
17032
17033 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17034
17035 * xfaces.c (face_numeric_value): Declare dim size_t.
17036 (Finternal_lisp_face_equal_p): Remove unused f.
17037
17038 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17039 (MATRIX_ROW): Remove unused vars.
17040 (draw_glyphs, x_insert_glyphs, fast_find_position)
17041 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17042 byte/char counts.
17043
17044 * regex.c (regex_compile): Remove unused var.
17045
17046 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17047
17048 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17049 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17050
17051 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17052
17053 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17054
17055 * fileio.c (Fwrite_region): Remove unused var.
17056
17057 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17058 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17059
17060 * composite.c (Fremove_list_of_text_properties): Declare.
17061
17062 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17063 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17064 (coding_inherit_eol_type): Remove unused attrs.
17065 (detect_coding): Cast arg of detect_eol.
17066
17067 * charset.c (syms_of_charset): Remove unused var p.
17068 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17069 byte/char counts.
17070
17071 * casetab.c (set_case_table): Remove unused var.
17072
17073 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17074 unused vars.
17075
170762008-02-01 Dave Love <fx@gnu.org>
17077
17078 * xterm.c (x_bitmap_mask): Declare.
17079
170802008-02-01 Dave Love <fx@gnu.org>
17081
17082 * xterm.c (x_term_init): Fix type error.
17083
17084 * lisp.h: Add Funibyte_char_to_multibyte.
17085
17086 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17087 (Fset_coding_system_priority): Doc fix.
17088
17089 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17090
17091 * indent.c (check_composition): Make start and end EMACS_INT.
17092
17093 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17094
17095 * xdisp.c (handle_composition_prop, check_point_in_composition):
17096 Make buffer positions EMACS_INT.
17097
17098 * composite.c (find_composition, run_composition_function)
17099 (update_compositions, Ffind_composition_internal): Make buffer
17100 positions EMACS_INT.
17101
17102 * composite.h (find_composition, update_compositions): Make
17103 position args EMACS_INT.
17104
17105 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17106
17107 * intervals.c (get_property_and_range):
17108 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17109
17110 * unexalpha.c: Don't include varargs.h.
17111
171122008-02-01 Dave Love <fx@gnu.org>
17113
17114 * coding.h (ENCODE_UTF_8): New.
17115
17116 * Makefile.in (gtkutil.o): Depend on coding.h.
17117
17118 * coding.c (Fset_coding_system_priority): Doc fix.
17119
171202008-02-01 Kenichi Handa <handa@m17n.org>
17121
17122 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17123 the case of auto saving.
17124
171252008-02-01 Andreas Schwab <schwab@suse.de>
17126
17127 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17128 `range' from GC.
17129
171302008-02-01 Kenichi Handa <handa@m17n.org>
17131
17132 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17133
171342008-02-01 Kenichi Handa <handa@m17n.org>
17135
17136 * fileio.c (choose_write_coding_system): Return a decided coding system.
17137 (Fwrite_region): Set Vlast_coding_system_used to the return value
17138 of choose_write_coding_system.
17139
171402008-02-01 Kenichi Handa <handa@m17n.org>
17141
17142 * charset.c (Fset_charset_priority): Pay attention to duplicated
17143 arguments.
17144
17145 * coding.c (QCcategory): New variable.
17146 (syms_of_coding): Defsym it. Set all elements of
17147 Vcoding_category_table and their symbol values.
17148 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17149 coding-category-XXX, and coding-category-list.
17150 (Fdefine_coding_system_internal): Add category in the plist.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * callproc.c (Fcall_process): Handle carryover correctly.
17155
17156 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17157 (raw_text_coding_system): Check NILP (coding_system).
17158 (coding_inherit_eol_type): Check NILP (coding_system) and
17159 NILP (parent).
17160 (consume_chars): Fix for the case of raw-text.
17161
17162 * process.c (read_process_output): Handle carryover correctly.
17163
171642008-02-01 Dave Love <fx@gnu.org>
17165
17166 * regex.c (re_search_2): Fix last change.
17167
171682008-02-01 Kenichi Handa <handa@m17n.org>
17169
17170 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17171 target_multibyte. Even in a unibyte case, return a converted
17172 multibyte char.
17173 (GET_CHAR_AFTER): New macro.
17174 (PATFETCH): Translate via multibyte char.
17175 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17176 (SETUP_MULTIBYTE_RANGE): New macro.
17177 (regex_compile): Setup compiled code so that its multibyteness
17178 matches that of a target. Fix the handling of "[X-YZ]" using
17179 SETUP_MULTIBYTE_RANGE.
17180 (analyse_first) <charset>: For filling fastmap for all multibyte
17181 characters, don't check by BASE_LEADING_CODE_P.
17182 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17183 the same as RE_MULTIBYTE_P (bufp) now.
17184 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17185 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17186 (TRANSLATE_VIA_MULTIBYTE): New macro.
17187 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17188 It is the same as RE_MULTIBYTE_P (bufp) now.
17189 <exactn>: Translate via multibyte.
17190 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17191 translate it.
17192 <charset, charset_not>: Fetch a character by
17193 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17194 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17195 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17196 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17197 by GET_CHAR_AFTER.
17198 (bcmp_translate): Likewise.
17199
17200 * search.c (compile_pattern): Check the member target_multibyte,
17201 not the member multibyte of buf.
17202
17203 * lread.c (read1): While reading a string, set force_singlebyte
17204 and force_multibyte correctly.
17205
17206 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17207 up of unibyte_to_multibyte_table.
17208
172092008-02-01 Kenichi Handa <handa@m17n.org>
17210
17211 * coding.c (setup_coding_system): If coding has
17212 post-read-conversion or pre-write-conversion, set
17213 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17214 respectively.
17215 (decode_coding_gap): Run post-read-conversion if any.
17216
17217 * fileio.c (Finsert_file_contents): Even if we read into a
17218 unibyte buffer, check if we must decode the result or not.
17219
172202008-02-01 Kenichi Handa <handa@m17n.org>
17221
17222 * coding.c (make_conversion_work_buffer): Change the work buffer
17223 name to the same one as that of Emacs 21.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * coding.h (make_conversion_work_buffer): Adjust prototype.
17228 (code_conversion_restore): Don't extern it.
17229
17230 * coding.c (detected_mask): Delete unused variable.
17231 (decode_coding_iso_2022): Pay attention to the byte sequence of
17232 CTEXT extended segment, and retain those bytes as is.
17233 (decode_coding_ccl): Delete unused variable `valids'.
17234 (setup_coding_system): Delete unused variable `category'.
17235 (consume_chars): Delete unused variable `category'. Make it work
17236 for non-multibyte case.
17237 (make_conversion_work_buffer): Change argument.
17238 (saved_coding): Delete unused variable.
17239 (code_conversion_restore): Don't check saved_coding->destination.
17240 (code_conversion_save): New function.
17241 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17242 instead of record_unwind_protect.
17243 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17244 (detect_coding_system): Delete unused variable `mask'.
17245 (Fdefine_coding_system_internal): Delete unused variable id.
17246
17247 * fileio.c (kill_workbuf_unwind): New function.
17248 (Finsert_file_contents): On replacing, call
17249 make_conversion_work_buffer with correct args, and call
17250 record_unwind_protect with the first arg kill_workbuf_unwind.
17251
17252 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17257 (fontset_add): Fix for the case that TO is less than TO1.
17258 (Ffontset_info): Don't use fallback fontset on checking the
17259 default fontset.
17260 (dump_fontset): New function for debugging.
17261
17262 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17263 coding_type is Qcharset.
17264
172652008-02-01 Kenichi Handa <handa@m17n.org>
17266
17267 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17268 (map_char_table): Don't inherit the value from the parent on
17269 initializing VAL. Adjust for the above change.
17270
172712008-02-01 Kenichi Handa <handa@m17n.org>
17272
17273 * coding.c (Qsignature, Qendian): Delete these variables.
17274 (syms_of_coding): Don't initialize them.
17275 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17276 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17277 detect_info->found.
17278 (decode_coding_utf_16): Don't detect BOM here.
17279 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17280 is NOT utf_16_without_bom.
17281 (setup_coding_system): For a coding system of type utf-16, check
17282 if the attribute :endian is Qbig or not (not nil or not), and set
17283 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17284 (detect_coding): If coding type is utf-16 and BOM detection is
17285 required, detect it.
17286 (Fdefine_coding_system_internal): For a coding system of type
17287 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17288
172892008-02-01 Kenichi Handa <handa@m17n.org>
17290
17291 * coding.c (coding_set_source): Fix for the case that the current
17292 buffer is different from coding->src_object.
17293 (decode_coding_object): Don't use the conversion work buffer if
17294 DST_OBJECT is a buffer.
17295
172962008-02-01 Dave Love <fx@gnu.org>
17297
17298 * lread.c (read_emacs_mule_char) [len==2]: Index
17299 emacs_mule_charset correctly.
17300
173012008-02-01 Dave Love <fx@gnu.org>
17302
17303 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17304 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17305 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17306 treated specially.)
17307 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17308 (detected_mask): Remove Big5 bits.
17309
173102008-02-01 Kenichi Handa <handa@m17n.org>
17311
17312 The following changes are to make the font rescaling facility
17313 compatible with Emacs 21.
17314
17315 * xfaces.c (Vface_font_rescale_alist): Rename from
17316 Vface_resizing_fonts.
17317 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17318 (font_rescale_ratio): Rename from font_resizing_ratio.
17319 (split_font_name): Set font->rescale_ratio.
17320 (better_font_p): Pay attention to font->rescale_ratio.
17321 (build_scalable_font_name): Likewise. Change RESX, and RESY
17322 fields.
17323 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17324
173252008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17328 (Qutf_16_le): Remove these variables.
17329 (syms_of_coding): Don't DEFSYM them.
17330 (decode_coding_utf_16): Fix handling of BOM.
17331 (encode_coding_utf_16): Fix handling of BOM.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * fileio.c (Finsert_file_contents): On replacing, before decoding
17336 the file into the work buffer, set point of the work buffer to the end.
17337
173382008-02-01 Dave Love <fx@gnu.org>
17339
17340 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17341
173422008-02-01 Dave Love <fx@gnu.org>
17343
17344 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17345 and fix C types.
17346
173472008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 * xdisp.c (SKIP_GLYPHS): New macro.
17350 (set_cursor_from_row): Pay attention to string display properties.
17351
17352 * category.c (copy_category_entry): Fix for the case that RANGE
17353 is an integer.
17354
17355 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17356
17357 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17358
173592008-02-01 Kenichi Handa <handa@m17n.org>
17360
17361 * charset.c (Fcharset_id_internal): New function.
17362 (syms_of_charset): Defsubr it.
17363
17364 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17365 with the last arg charset_list acquired from coding.
17366 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17367 the attribute coding_attr_ccl_valids.
17368
17369 * coding.h (enum define_coding_ccl_arg_index): Set the first
17370 member coding_arg_ccl_decoder to coding_arg_max.
17371
17372 * ccl.h (ccl_driver): Adjust prototype.
17373
17374 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17375 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17376 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17377 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17378 last arg Qnil.
17379
173802008-02-01 Kenichi Handa <handa@m17n.org>
17381
17382 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17383 call encode_char.
17384
17385 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17386
173872008-02-01 Dave Love <fx@gnu.org>
17388
17389 * composite.c (syms_of_composite): Make composition_hash_table weak.
17390
173912008-02-01 Kenichi Handa <handa@m17n.org>
17392
17393 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17394 (font_name_registry): Don't extern them.
17395 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17396
17397 * fontset.h (Qfontset): Don't extern it.
17398 (new_fontset_from_font_name): Extern it.
17399
17400 * fontset.c: Give 8 extra slots to fontset objects.
17401 (Qfontset_info): New variable.
17402 (syms_of_fontset): Defsym it.
17403 (FONTSET_FALLBACK): New macro.
17404 (fontset_face): Try also the default fontset.
17405 (make_fontset): Realize a fallback fontset from the default fontset.
17406 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17407 using split_font_name_into_vector and build_font_name_from_vector.
17408 (Fset_fontset_font): Access the elements of font_spec by enum
17409 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17410 name by using split_font_name_into_vector.
17411 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17412 generate a proper font name from the fontset name. Update
17413 Vfontset_alias_alist.
17414 (n_auto_fontsets): New variable.
17415 (new_fontset_from_font_name): New function.
17416 (Ffont_info): Store the information about fonts generated from the
17417 default fontset in the first extra slot of the returned char-table.
17418
17419 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17420 (font_name_registry): Delete function.
17421 (split_font_name_into_vector): New function.
17422 (build_font_name_from_vector): New function.
17423 (font_list): The argument REGISTRY is now a list of registry names.
17424 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17425 specifies an explicit font name, return the name as is. Make a
17426 list of registy names.
17427
17428 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17429 of x_new_fontset.
17430 (Fx_create_frame): Don't call x_new_fontset here. Just use
17431 x_list_fonts to check the existence of fonts.
17432
17433 * xterm.h (x_new_fontset): Adjust prototype.
17434
17435 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17436 string. Use new_fontset_from_font_name to create a fontset from a
17437 font name.
17438
174392008-02-01 Kenichi Handa <handa@m17n.org>
17440
17441 * syntax.c (Vfind_word_boundary_function_table): New name for
17442 Vnext_word_boundary_function_table.
17443 (find-word-boundary-function-table): New name for
17444 next-word-boundary-function-table.
17445
174462008-02-01 Dave Love <fx@gnu.org>
17447
17448 * Makefile.in: Fix some dependencies.
17449
17450 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17451 set it to nil before returning.
17452
17453 * composite.c (update_compositions): Fix type error.
17454
17455 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * xterm.c (x_new_font): Optimize for the case that the font is
17460 already set for the frame.
17461
174622008-02-01 Kenichi Handa <handa@m17n.org>
17463
17464 * chartab.c (char_table_ascii): Check if the char table contents
17465 is sub-char-table or not.
17466 (char_table_set, char_table_set_range): Fix argument to
17467 char_table_ascii.
17468
17469 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17470 (detect_coding_utf_8, detect_coding_utf_16)
17471 (detect_coding_emacs_mule, detect_coding_iso_2022)
17472 (detect_coding_sjis, detect_coding_big5)
17473 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17474 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17475 sequence is valid in this coding system. Change callers.
17476 (MAX_ANNOTATION_LENGTH): New macro.
17477 (ADD_ANNOTATION_DATA): New macro.
17478 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17479 ADD_ANNOTATION_DATA. Change the format of annotation data.
17480 (ADD_CHARSET_DATA): New macro.
17481 (emacs_mule_char): New argument ID. Change callers.
17482 (decode_coding_emacs_mule, decode_coding_iso_2022)
17483 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17484 Produce charset annotation data in coding->charbuf.
17485 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17486 to charset annotation data in coding->charbuf.
17487 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17488 coding->common_flags if the coding system is iso-2022 based and
17489 uses designation.
17490 (produce_composition): Adjust for the new annotation data format.
17491 (produce_charset): New function.
17492 (produce_annotation): Handle charset annotation.
17493 (handle_composition_annotation, handle_charset_annotation): New
17494 functions.
17495 (consume_chars): Handle charset annotation. Utilize the above two
17496 functions.
17497 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17498 buffer, get the deleted text as a string and set
17499 coding->src_object to that string.
17500 (detect_coding, detect_coding_system): Use the new struct
17501 coding_detection_info.
17502
17503 * coding.h (struct coding_detection_info): New structure.
17504 (struct coding_system): Adjust prototype of the member `detector'.
17505 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17506
175072008-02-01 Kenichi Handa <handa@m17n.org>
17508
17509 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17510
175112008-02-01 Dave Love <fx@gnu.org>
17512
17513 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17514 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17515 to new local and nullify apropos_accumulate before returning.
17516 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17517
175182008-02-01 Kenichi Handa <handa@m17n.org>
17519
17520 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17521 correctly.
e3eea1fc 17522
aac0c6e3
MR
175232008-02-01 Dave Love <fx@gnu.org>
17524
17525 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17526
175272008-02-01 Kenichi Handa <handa@m17n.org>
17528
17529 The following changes are to make character composition happen
17530 automatically on displaying.
17531
17532 * Makefile.in (lisp, shortlisp): Add composite.elc.
17533
17534 * composite.h (Qauto_composed, Vauto_composition_function)
17535 (Qauto_composition_function): Extern them.
17536
17537 * composite.c (Vcomposition_function_table)
17538 (Qcomposition_function_table): Delete variables.
17539 (Qauto_composed, Vauto_composition_function)
17540 (Qauto_composition_function): New variables.
17541 (run_composition_function): Don't call
17542 compose-chars-after-function.
17543 (update_compositions): Clear `auto-composed' text property.
17544 (compose_chars_in_text): Delete this function.
17545 (syms_of_composite): Staticpro Qauto_composed and
17546 Qauto_composition_function. Declare Vauto_composition_function as
17547 a Lisp variable.
17548
17549 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17550
17551 * xdisp.c (it_props): Add an entry for Qauto_composed.
17552 (handle_auto_composed_prop): New function.
17553
17554 * xselect.c (selection_data_to_lisp_data): Don't call
17555 compose_chars_in_text.
17556
175572008-02-01 Dave Love <fx@gnu.org>
17558
17559 * keyboard.c (read_char): Modify checking around use of
17560 Vkeyboard_translate_table.
17561
17562 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17563 and fix C types.
17564
175652008-02-01 Kenichi Handa <handa@m17n.org>
17566
17567 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17568 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17569 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17570 the case that the last byte is '\r' correctly.
17571 (decode_coding): Flush out the unprocessed data correctly.
17572 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17573
175742008-02-01 Dave Love <fx@gnu.org>
17575
17576 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17577 Add XK_ISO... case.
17578 (xaw_scroll_callback): Revert last change.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17583
175842008-02-01 Kenichi Handa <handa@m17n.org>
17585
17586 * xfaces.c (Vface_resizing_fonts): New variable.
17587 (struct font_name): New member `resizing_ratio'.
17588 (font_resizing_ratio): New function.
17589 (split_font_name): Set font->resizing_ratio.
17590 (better_font_p): Pay attention to font->resizing_ratio.
17591 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17592 RESX, and RESY fields.
17593 (try_alternative_families): Try scalable fonts if
17594 Vscalable_fonts_allowed is not Qt.
17595 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17596
175972008-02-01 Dave Love <fx@gnu.org>
17598
17599 * xterm.c (xaw_scroll_callback): Cast correctly.
17600
176012008-02-01 Dave Love <fx@gnu.org>
17602
17603 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17604 (lispy_kana_keys): Comment out.
17605 (make_lispy_event) [XK_kana_A]: Comment out.
17606
17607 * xterm.c (xaw_scroll_callback): Cast call_data.
17608 (XTread_socket): Deal with ASCII keysyms.
17609 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17610
176112008-02-01 Dave Love <fx@gnu.org>
17612
17613 * xterm.c (Vx_keysym_table): New.
17614 (syms_of_xterm): Initialize it.
17615 (XTread_socket): Use it.
17616 From head: Eliminate incorrect optimization that tried to avoid
17617 decoding the output of X*LookupString.
17618 (x_get_font_repertory): Delete charset declaration.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17623 return 0.
17624 (Fdefine_coding_system_internal): Setup
17625 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17626
176272008-02-01 Dave Love <fx@gnu.org>
17628
17629 * coding.c (Fcheck_coding_system): Doc fix.
17630
17631 * editfns.c (Finsert_byte): Return a proper value.
17632
176332008-02-01 Kenichi Handa <handa@m17n.org>
17634
17635 * coding.c (decode_coding): Fix args to translate_chars. Pay
17636 attention to Vstandard_translation_table_for_decode.
17637 (encode_coding): Fix args to translate_chars. Pay attention to
17638 Vstandard_translation_table_for_encode.
17639
17640 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17641 SINGLE_BYTE_CHAR_P.
17642
17643 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17644 not by SINGLE_BYTE_CHAR_P.
17645
17646 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17647 SINGLE_BYTE_CHAR_P.
17648
17649 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17650 SINGLE_BYTE_CHAR_P.
17651
17652 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17653 by SINGLE_BYTE_CHAR_P.
17654
17655 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17656 SINGLE_BYTE_CHAR_P.
17657
176582008-02-01 Dave Love <fx@gnu.org>
17659
17660 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17661
176622008-02-01 Dave Love <fx@gnu.org>
17663
17664 * fns.c (Flanginfo): Fix typo.
17665
17666 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17667
176682008-02-01 Kenichi Handa <handa@m17n.org>
17669
17670 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17671 (detect_coding_emacs_mule, detect_coding_iso_2022)
17672 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17673 incomplete byte sequence. Don't update *mask when correctly detected.
17674 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17675 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17676 (detect_coding, detect_coding_system): Adjust for the changes above.
17677
176782008-02-01 Kenichi Handa <handa@m17n.org>
17679
17680 * character.c (char_string): Rename from
17681 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17682 (string_char): Rename from string_char.
17683
17684 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17685 if C is greater than MAX_3_BYTE_CHAR.
17686 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17687 string_char instead of string_char_with_unification.
17688
176892008-02-01 Dave Love <fx@gnu.org>
17690
17691 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17692
176932008-02-01 Kenichi Handa <handa@m17n.org>
17694
17695 * keymap.c (push_key_description): Pay attention to force_multibyte.
17696
17697 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17698
176992008-02-01 Dave Love <fx@gnu.org>
17700
17701 * charset.c (define_charset_internal): Rename `supprementary'.
17702
17703 * Makefile.in (lisp, shortlisp): Remove latin-N.
17704
177052008-02-01 Dave Love <fx@gnu.org>
17706
17707 * xfns.c (x_window, x_window): Use use_xim.
17708
17709 * xterm.c (use_xim): Initialize.
17710 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17711 (x_term_init): Maybe set use_xim.
17712
17713 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * search.c (search_buffer): Fix case-fold-search of multibyte
17718 characters.
17719 (boyer_moore): Rename the last argument to char_high_bits.
17720
177212008-02-01 Kenichi Handa <handa@m17n.org>
17722
17723 * xdisp.c (display_string): Fix for the case of zero width glyph.
17724
17725 * xfns.c (x_set_font): Change the error message of the case that
17726 x_new_fontset returns Qt.
17727
17728 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17729 (Finternal_set_lisp_face_attribute): Use signal_error for the
17730 error of invalid fontset.
17731
17732 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17733 fontset, return Qt.
17734
177352008-02-01 Dave Love <fx@gnu.org>
17736
17737 * unexelf.c (unexec): Make .got handling not SGI-specific.
17738
17739 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17740
17741 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17742
17743 * keyboard.c (read_key_sequence): Fix type error.
17744
17745 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17746 type error.
17747
17748 * fontset.c (fontset_add): Return Lisp_Object.
17749
177502008-02-01 Dave Love <fx@gnu.org>
17751
17752 * charset.h (charset_ordered_list_tick): Declare extern.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 The following changes (and some of 2008-02-01 changes of mine) are
17757 for handling syntax, category, and case conversion for unibyte
17758 characters by converting them to multibyte on the fly. With these
17759 changes, we don't have to setup syntax and case tables for unibyte
17760 characters in each language environment.
17761
17762 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17763 multibyte if necessary.
17764
17765 * bytecode.c (Fbyte_code): Likewise.
17766
17767 * character.h (LEADING_CODE_LATIN_1_MIN)
17768 (LEADING_CODE_LATIN_1_MAX): New macros.
17769 (unibyte_to_multibyte_table): Extern it.
17770 (unibyte_char_to_multibyte): New macro.
17771 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17772 (CHAR_LEADING_CODE): New macro.
17773 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17774
17775 * character.c (unibyte_to_multibyte_table): New variable.
17776 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17777 (multibyte_char_to_unibyte): If C is an eight-bit character,
17778 convert it to the corresponding byte value.
17779
17780 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17781 not 1, signals an error. Update the elements of
17782 unibyte_to_multibyte_table.
17783 (init_charset_once): Initialize unibyte_to_multibyte_table.
17784 (syms_of_charset): Define the charset `iso-8859-1'.
17785
17786 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17787 as is without converting it to unibyte. In a unibyte buffer,
17788 convert C to multibyte before checking the syntax.
17789
17790 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17791
17792 * minibuf.c (Fminibuffer_complete_word): Use the macro
17793 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17794
17795 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17796
17797 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17798 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17799 that is zero, convert an eight-bit char to multibyte.
17800 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17801 non-emacs case.
17802 (PATFETCH): Convert an eight-bit char to multibyte.
17803 (HANDLE_UNIBYTE_RANGE): New macro.
17804 (regex_compile): Setup the compiled pattern for multibyte chars
17805 even if the given regex string is unibyte. Use PATFETCH_RAW
17806 instead of PATFETCH in many places. To handle `charset'
17807 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17808 only for ASCII chars.
17809 (analyse_first) <exactn>: Simplify because the compiled pattern
17810 is multibyte.
17811 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17812 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17813 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17814 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17815 multibyte always 1.
17816 (re_search_2): In emacs, set the locale variable multibyte to 1,
17817 otherwise to 0. New local variable target_multibyte. Check it
17818 to decide the multibyteness of STR1 and STR2. If
17819 target_multibyte is zero, convert unibyte chars to multibyte
17820 before translating and checking fastmap.
17821 (TARGET_CHAR_AND_LENGTH): New macro.
17822 (re_match_2_internal): In emacs, set the locale variable multibyte
17823 to 1, otherwise to 0. New local variable target_multibyte. Check
17824 it to decide the multibyteness of STR1 and STR2. Use
17825 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17826 <charset, charset_not>: If multibyte is nonzero, check fastmap
17827 only for ASCII chars. Call bcmp_translate with
17828 target_multibyte, not with multibyte.
17829 <begline>: Declare the local variable C as `unsigned'.
17830 (bcmp_translate): Change the last arg name to target_multibyte.
17831
17832 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17833 the regexp pattern and the matching target. Set cp->buf.multibyte
17834 to the multibyteness of the regexp pattern. Set
17835 cp->but.target_multibyte to the multibyteness of the matching target.
17836 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17837 FETCH_STRING_CHAR_ADVANCE.
17838 (Freplace_match): Convert unibyte chars to multibyte.
17839
17840 * syntax.c (char_quoted, back_comment, scan_words)
17841 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17842 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17843 unibyte chars to multibyte.
17844 (skip_chars): Delete the arg syntaxp, and move the code for
17845 handling syntaxes to skip_syntaxes. Change callers.
17846 Fix the case that the multibyteness of STRING and the current
17847 buffer doesn't match.
17848 (skip_syntaxes): New function.
17849 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17850 SINGLE_BYTE_CHAR_P.
17851
178522008-02-01 Kenichi Handa <handa@m17n.org>
17853
17854 * xfaces.c (QCfontset): New variable.
17855 (LFACE_FONTSET): New macro.
17856 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17857 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17858 (Finternal_set_lisp_face_attribute)
17859 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17860 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17861 check also LFACE_FONTSET_INDEX.
17862 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17863 attrs[LFACE_FONT_INDEX].
17864 (syms_of_xfaces): Intern and staticpro QCfontset.
17865
17866 * dispextern.h (enum lface_attribute_index): New member
17867 LFACE_FONTSET_INDEX.
17868
17869 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17870
178712008-02-01 Kenichi Handa <handa@m17n.org>
17872
17873 * coding.c (coding_set_destination): Fix coding->destination for
17874 the case converting a region.
17875 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17876 (encode_coding_object): Fix coding->dst_pos and
17877 coding->dst_pos_byte for the case converting a region.
17878
17879 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17880
17881 * character.h (BYTE8_STRING): New macro.
17882
17883 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17884
178852008-02-01 Kenichi Handa <handa@m17n.org>
17886
17887 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17888 characters by octal form.
17889
17890 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17891
17892 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17893 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17894 _fetch_multibyte_char_len.
17895 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17896
17897 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17898
17899 * casefiddle.c (casify_object): Simplify. Handle the case that
17900 the case conversion change the byte length.
17901 (casify_region): Likewise.
17902
17903 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17904
17905 * character.c (_fetch_multibyte_char_len): Delete this variable.
17906 (syms_of_character): Setup Vprintable_chars.
17907
17908 * editfns.c (Fchar_equal): Fix for the unibyte case.
17909 (Finsert_byte): New function.
17910 (syms_of_editfns): Defsubr it.
17911
17912 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17913 of direct code 0x3ffff.
17914
17915 * search.c (Freplace_match): Fix for the unibyte case.
17916
179172008-02-01 Kenichi Handa <handa@m17n.org>
17918
17919 * lread.c (safe_to_load_p): Fix the logic.
17920
17921 * syntax.c (scan_words): Don't treat characters belonging to
17922 different scripts as constituting a word.
17923
17924 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17925
17926 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17927
17928 * emacs.c (main): In the case of --unibyte, instead of aborting on
17929 finding non-empty buffer, make it unibyte.
17930
179312008-02-01 Kenichi Handa <handa@m17n.org>
17932
17933 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17934 to create a fontset.
17935
179362008-02-01 Dave Love <fx@gnu.org>
17937
17938 * character.c (Funibyte_char_to_multibyte): Doc fix.
17939
17940 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17941
179422008-02-01 Kenichi Handa <handa@m17n.org>
17943
17944 * fontset.c (fontset_add): Make the type `int'.
17945 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17946
17947 * character.c (unibyte_char_to_multibyte)
17948 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17949 charset_unibyte, not charset_primary.
17950
17951 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17952
17953 * charset.c (charset_unibyte): Rename from charset_primary.
17954 (Funibyte_charset): Rename from Fprimary_charset.
17955 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17956 (syms_of_charset): Adjust for the above changes.
17957
17958 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17959 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17960 it->multibyte_p is zero.
17961
17962 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17963 Delete extern.
17964
179652008-02-01 Kenichi Handa <handa@m17n.org>
17966
17967 * coding.c (Fdefine_coding_system_internal): Fix category setting
17968 for a coding system of type iso-2022.
17969
179702008-02-01 Kenichi Handa <handa@m17n.org>
17971
17972 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17973
179742008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * syntax.c (Vnext_word_boundary_function_table): New variable.
17977 (next-word-boundary-function-table): Declare it as a Lisp variable
17978 in syms_of_syntax.
17979 (scan_words): Call functions in Vnext_word_boundary_function_table
17980 if any.
17981
17982 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17983
17984 * fontset.c (fs_load_font): If fontp->charset is not negative,
17985 return fontp without setting its members.
17986
179872008-02-01 Dave Love <fx@gnu.org>
17988
17989 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17990
17991 * m/sparc.h (HAVE_ALLOCA): Delete.
17992
17993 * s/irix6-5.h: Don't include strings.h.
17994 (bcopy, bzero, bcmp): Don't undef.
17995
17996 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17997
17998 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17999 (TIOCSIGSEND): Don't test IRIX6.
18000 (bcopy, bzero, bcmp): Define conditionally.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * buffer.c (Qas, Qmake, Qto): New variables.
18005 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18006 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18007
18008 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18009 we are inserting a process output into a multibyte buffer.
18010
18011 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18012 multibyte_char_to_unibyte.
18013
18014 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18015 by the primary charset, make it eight-bit char.
18016 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18017
18018 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18019 (charset_8_bit__control, charset_8_bit_graphic)
18020 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18021 (define_charset_internal): New function.
18022 (syms_of_charset): Call define_charset_internal for pre-defined
18023 charsets.
18024
18025 * charset.h (charset_8_bit): Extern it.
18026
18027 * coding.c (make_conversion_work_buffer): Adjust for the change
18028 of Fset_buffer_multibyte.
18029 (encode_coding_raw_text): Increment p0 in the loop.
18030
18031 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18032
18033 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18034 for the change of Fset_buffer_multibyte.
18035
18036 * fns.c (Fstring_to_multibyte): New function.
18037 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18038
180392008-02-01 Dave Love <fx@gnu.org>
18040
18041 * xfns.c (x_put_x_image): Declare args.
18042
18043 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18044 (try_font_list): Declare an arg.
18045
18046 * xdisp.c (message2_nolog, set_message): Declare an arg.
18047
18048 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18049
18050 * syntax.c (scan_sexps_forward): Declare an arg.
18051
18052 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18053 Declare an arg.
18054
18055 * lisp.h (Fnew_fontset): Declare.
18056
18057 * keymap.c (push_key_description): Call CHARACTERP correctly.
18058
18059 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18060 (face_for_char): Delete unused vars.
18061 (Fset_fontset_font): Doc fix. Delete unused vars.
18062
18063 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18064
18065 * composite.c (update_compositions): Declare arg.
18066
18067 * cm.c (calccost, cmgoto): Declare args.
18068
18069 * charset.c: Remove `emacs' conditional. Doc fixes.
18070 (map_char_table_for_charset): Declare.
18071
18072 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18073
18074 * ccl.c: Remove `emacs' conditional.
18075
180762008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 The following changes are to allow specifying multiple font
18079 patterns for a character range (specified by script or charset).
18080
18081 * Makefile.in (abbrev.o): Depend on syntax.h.
18082 (xfaces.o): Depend on charset.h.
18083
18084 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18085 SINGLE_BYTE_CHAR_P.
18086
18087 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18088
18089 * character.h (Vchar_script_table): Extern it.
18090
18091 * character.c (Vscript_alist): Delete.
18092 (Vchar_script_table, Qchar_script_table): New variable.
18093 (syms_of_character): Declare Vchar_script_table as a lisp variable
18094 and initialize it.
18095
18096 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18097 have property char-table-extra-slots, make no extra slot.
18098
18099 * dispextern.h (struct face): Delete member `charset'.
18100 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18101 SINGLE_BYTE_CHAR_P.
18102 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18103 Add prototypes.
18104 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18105 (generate_ascii_font_name): Rename from generate_ascii_font.
18106
18107 * fontset.h (get_font_repertory_func): New prototype.
18108 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18109 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18110
18111 * fontset.c (Qprepend, Qappend): New variables.
18112 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18113 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18114 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18115 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18116 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18117 (load_font_get_repertory): New functions.
18118 (fontset_set): Delete.
18119 (fontset_face): New arg FACE. Return face ID, not face.
18120 Complete re-write to handle new fontset structure. Change caller.
18121 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18122 (face_for_char): Don't call lookup_face.
18123 (make_fontset_for_ascii_face): New arg FACE.
18124 (fs_load_font): New arg CHARSET_ID. Don't check
18125 Vfont_encoding_alist here.
18126 (find_font_encoding): New function.
18127 (list_fontsets): Use STRINGP, not ! NILP.
18128 (accumulate_script_ranges): New function.
18129 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18130 re-written to handle new fontset structure.
18131 (Ffontset_font): Return a copy of element.
18132 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18133 docstring of font-encoding-alist.
18134
18135 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18136 (Fset_fotset_font): Fix arguments to 5.
18137
18138 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18139
18140 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18141 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18142 (highlight_trailing_whitespace): Adjust for the change of
18143 lookup_named_face.
18144
18145 * xfaces.c: Include charset.h.
18146 (load_face_font): Delete argument C. Change caller.
18147 (generate_ascii_font_name): Rename from generate_ascii_font.
18148 (font_name_registry): New function.
18149 (cache_face): Store ascii faces before non-ascii faces in buckets.
18150 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18151 Lookup only ascii faces.
18152 (lookup_non_ascii_face): New function.
18153 (lookup_named_face): Delete argument C. Change caller.
18154 (lookup_derived_face): Delete argument C. Change caller.
18155 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18156 a string, just call font_list with it.
18157 (choose_face_font): Delete arguments FACE and C. New arg
18158 FONT_SPEC. Change caller.
18159 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18160 Change caller.
18161 (realize_non_ascii_face): New function.
18162 (realize_x_face): Call load_face_font here.
18163 (realize_tty_face): Delete argument C. Change caller.
18164 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18165 get a face ID.
18166 (dump_realized_face): Don't print charset of FACE.
18167
18168 * xfns.c (x_set_font): Always call x_new_fontset and
18169 store_frame_parameter.
18170 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18171 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18172
18173 * xterm.h (x_get_font_repertory): Extern it.
18174
18175 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18176 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18177 it->multibyte_p is zero.
18178 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18179 (x_new_fontset): If FONTSETNAME doesn't match any existing
18180 fontsets, create a new one.
18181 (x_get_font_repertory): New function.
18182
181832008-02-01 Kenichi Handa <handa@m17n.org>
18184
18185 * coding.c (Ffind_coding_systems_region_internal): Detect an
18186 ASCII only string correctly.
18187
18188 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18189 version is 0.
18190
181912008-02-01 Kenichi Handa <handa@m17n.org>
18192
18193 * lread.c: Include "coding.h".
18194 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18195 (load_each_byte, unread_char): New variables.
18196 (readchar_backlog): Delete.
18197 (readchar): Return a character unless load_each_byte is nonzero.
18198 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18199 cons. If unread_char is not -1, simply return it.
18200 (unreadchar): Handle the case that readcharfun is
18201 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18202 (read_multibyte): Delete.
18203 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18204 (read_emacs_mule_char): New functions.
18205 (Fload): Even if the file doesn't have the extension ".elc", if
18206 safe_to_load_p returns a positive version number, assume that the
18207 file contains bytecompiled code. If the version is less than 22,
18208 load the file while decoding multibyte sequences by emacs-mule.
18209 (readevalloop): Don't use readchar_backlog.
18210 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18211 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18212 (read_escape): Delete the arg BYTEREP.
18213 (read1): Set load_each_byte to 1 temporarily while handling
18214 #@NUMBER. Don't call read_multibyte.
18215 (read_vector): Call Fread with a cons. If readcharfun is
18216 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18217 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18218 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18219 and Qload_force_doc_strings.
18220
182212008-02-01 Kenichi Handa <handa@m17n.org>
18222
18223 * xdisp.c (face_before_or_after_it_pos): Call
18224 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * character.h (TRAILING_CODE_P): New macro.
18229 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18230 (string_char_with_unification): Fix prototype.
18231 (Vscript_alist): Extern it.
18232
18233 * character.c (Vscript_alist): New variable.
18234 (string_char_with_unification, str_as_unibyte)
18235 (string_escape_byte8): Add `const' to local variables.
18236 (syms_of_character): Declare script-alist as a Lisp variable.
18237
18238 * charset.h (Vcharset_ordered_list): Extern it.
18239 (charset_ordered_list_tick): Extern it.
18240 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18241 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18242 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18243 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18244 (Funify_charset): Adjust for the change of Funify_charset.
18245
18246 * charset.c (charset_ordered_list_tick): New variable.
18247 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18248 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18249 deunify intead of unify a charset.
18250 (string_xstring_p): Add `const' to local variables.
18251 (find_charsets_in_text): Add `const' to arguments and local variables.
18252 (encode_char): Adjust for the change of Funify_charset. Fix
18253 detecting of invalid code.
18254 (Fset_charset_priority): Increment charset_ordered_list_tick.
18255 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18256 and TO_CODE.
18257
18258 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18259 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18260 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18261 (decode_coding_ccl, consume_chars)
18262 (Ffind_coding_systems_region_internal)
18263 (Fcheck_coding_systems_region): Add `const' to local variables.
18264
18265 * print.c (print_object): Use octal form for printing the
18266 contents of a bool vector.
18267
182682008-02-01 Dave Love <fx@gnu.org>
18269
18270 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18271 <version == 20>: Refuse to load.
18272
182732008-02-01 Dave Love <fx@gnu.org>
18274
18275 * fns.c: Move coding.h.
18276 (Qcodeset, Qdays, Qmonths): New.
18277 (concat): Use CHARACTERP instead of INTEGERP.
18278 (Flocale_codeset): Delete.
18279 (Flanginfo): New function.
18280 (syms_of_fns): Change accordingly.
18281
18282 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18283
182842008-02-01 Dave Love <fx@gnu.org>
18285
18286 * casetab.c (init_casetab_once, init_casetab_once): Fix
18287 CHAR_TABLE_SET call.
18288
18289 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18290
18291 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18292
18293 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18294 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18295 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18296
18297 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18298
18299 * coding.c (ENCODE_DESIGNATION, decode_eol)
18300 (make_conversion_work_buffer, code_conversion_restore)
18301 (Fdefine_coding_system_internal): Convert Lisp types.
18302 (code_conversion_restore): Use EQ, not ==.
18303 (Fencode_coding_string): Fix code_convert_string call.
18304
18305 * coding.h (code_convert_region): Fix prototype.
18306
18307 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18308
18309 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18310 (Ffontset_info): Convert Lisp types.
18311
18312 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18313
18314 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18315
18316 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18317
18318 * chartab.c: Include "...h", not <...h> in some cases.
18319
18320 * callproc.c (Fcall_process): Remove unused variables.
18321
183222008-02-01 Dave Love <fx@gnu.org>
18323
18324 * coding.c (Fset_coding_system_priority): Allow null arg list.
18325
183262008-02-01 Dave Love <fx@gnu.org>
18327
18328 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18329 (Fself_insert_and_exit): Use CHARACTERP.
18330
18331 * callproc.c (Fcall_process): Remove unused vars.
18332
18333 * xterm.c (XTread_socket): Add extra dead keysyms.
18334
18335 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18336
18337 * dispextern.h: Remove prototypes for redraw_frame,
18338 redraw_garbaged_frames.
18339
18340 * cmds.c (Fself_insert_command): Use CHARACTERP.
18341
18342 * chartab.c (make_sub_char_table): Remove unused var.
18343 (Fset_char_table_default, Fmap_char_table): Doc fix.
18344
18345 * keymap.c (access_keymap): Remove generic char code.
18346 (push_key_description): Use CHARACTERP.
18347
183482008-02-01 Dave Love <fx@gnu.org>
18349
18350 * charset.c: Doc fixes.
18351 (Funify_charset): Extra checking.
18352
183532008-02-01 Dave Love <fx@gnu.org>
18354
18355 * lread.c: Remove some unused variables.
18356 (safe_to_load_p): If safe, return the magic number version byte.
18357 (Fload): Maybe use load-with-code-conversion.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * category.c (Fmodify_category_entry): Don't modify the contents
18362 of category_set for characters out of the range. Avoid
18363 unnecessary modification.
18364
18365 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18366 Vchar_unify_table. The default value of the table is now nil.
18367
18368 * character.c (syms_of_character): Setup Vchar_width_table for
18369 eight-bit-control and raw-byte chars.
18370
18371 * charset.h (enum define_charset_arg_index): Delete
18372 charset_arg_parents and add charset_arg_subset and
18373 charset_arg_superset.
18374 (enum charset_attr_index): Delete charset_parents and add
18375 charset_subset and charset_superset.
18376 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18377 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18378 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18379 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18380 (CHARSET_SUPERSET): New macros.
18381 (charset_work): Extern it.
18382 (ENCODE_CHAR): Use charset_work.
18383 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18384 (map_charset_chars): Extern it.
18385
18386 * charset.c (load_charset_map): Set the default value of encoder
18387 and deunifier char-tables to nil.
18388 (map_charset_chars): Change argument. Change callers. Use
18389 map_char_table_for_charset instead of map_char_table.
18390 (Fmap_charset_chars): New optional args from_code and to_code.
18391 (Fdefine_charset_internal): Adjust for the change of
18392 `define-charset' (:parents -> :subset or :superset).
18393 (charset_work): New variable.
18394 (encode_char, syms_of_charset): Adjust for the change of
18395 Fdefine_charset_internal.
18396 (Ffind_charset_string): Setup the vector `charsets' correctly.
18397
18398 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18399 the previous change.
18400 (char_table_ref_and_range): Adjust for the above change.
18401 (map_sub_char_table_for_charset): New function.
18402 (map_char_table_for_charset): New function.
18403
18404 * keymap.c (describe_vector): Handle a char-table directly here.
18405 (describe_char_table): Delete.
18406
18407 * lisp.h (map_charset_chars): Delete.
18408
184092008-02-01 Dave Love <fx@gnu.org>
18410
18411 * fns.c (count_combining): Comment out (unused).
18412 (Flocale_codeset): New.
18413 (syms_of_fns): Defsubr it.
18414
18415 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18416 (size_t): Remove.
18417
184182008-02-01 Dave Love <fx@gnu.org>
18419
18420 * Makefile.in (chartab.o): Depend on charset.h.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * character.c (syms_of_character): Set the default value of
18425 Vprintable_chars to Qnil.
18426
184272008-02-01 Dave Love <fx@gnu.org>
18428
18429 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18430
184312008-02-01 Kenichi Handa <handa@m17n.org>
18432
18433 * charset.c (load_charset_map): Handle the case that from < to
18434 correctly.
18435
18436 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18437 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18438 Pay attention to raw-8-bit chars.
18439
184402008-02-01 Kenichi Handa <handa@m17n.org>
18441
18442 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18443 It is not bytecompiled now.
18444
18445 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18446 (charset_jisx0208): New variables.
18447 (Fdefine_charset_internal): Setup them if appropriate.
18448 (init_charset_once): Initialize them to -1.
18449
18450 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18451 (charset_jisx0208): Extern them.
18452
18453 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18454 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18455 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18456 (setup_iso_safe_charsets): Fix arguments to Fassq.
18457 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18458 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18459 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18460 (encode_coding_iso_2022): Change the 1st arg to
18461 ENCODE_ISO_CHARACTER to a variable.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * charset.h (enum define_charset_arg_index): New enums
18466 charset_arg_min_code and charset_arg_max_code.
18467 (struct charset): New member char_index_offset.
18468
18469 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18470 Take charset->char_index_offset into account.
18471 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18472 args[charset_arg_max_code]. Setup charset.char_index_offset.
18473 (syms_of_charset): Fix args to Fdefine_charset_internal.
18474
184752008-02-01 Dave Love <fx@gnu.org>
18476
18477 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18478
184792008-02-01 Dave Love <fx@gnu.org>
18480
18481 * coding.c: Doc fixes.
18482 (Fcoding_system_aliases): Fix return value.
18483 (Qmac): Remove (duplicated) definition.
18484
184852008-02-01 Dave Love <fx@gnu.org>
18486
362654a6
JB
18487 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18488 New functions.
aac0c6e3
MR
18489
18490 * character.c (Fstring): Doc fix.
18491
18492 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18493
362654a6 18494 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18495 (font-encoding-alist): Doc fix.
18496
184972008-02-01 Dave Love <fx@gnu.org>
18498
18499 * term.c (costs_set): Declare static, non-initialized for pcc.
18500 (encode_terminal_code): Remove unused var.
18501
18502 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18503 for K&R.
18504
18505 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18506
18507 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18508 (suffixes): Move out of make_subsidiaries for K&R.
18509
18510 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18511
18512 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18513
185142008-02-01 Dave Love <fx@gnu.org>
18515
18516 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18517
18518 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18519
185202008-02-01 Yong Lu <lyongu@asia-infonet.com>
18521
18522 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18523
18524 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18525
185262008-02-01 Kenichi Handa <handa@m17n.org>
18527
18528 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18529 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * coding.c (decode_coding_charset): Adjust for the change of
18534 Fdefine_coding_system_internal.
18535 (Fdefine_coding_system_internal): For a coding system of
18536 `charset' type, store a list of charset IDs in
18537 `charset_attr_charset_valids' element of coding attributes.
18538
185392008-02-01 Kenichi Handa <handa@m17n.org>
18540
18541 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18542 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18543 caller. Handle 2-byte and 3-byte charsets correctly.
18544 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18545 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18546 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18547 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18548 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18549 sequence.
18550 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18551 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18552 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18553 and alt&rule composition.
18554 (decode_coding_iso_2022): Handle composition correctly.
18555 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18556
18557 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18558 re-defining a charset. If the charset has :emacs-mule-id, setup
18559 emacs_mule_bytes.
18560 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18561
185622008-02-01 Kenichi Handa <handa@m17n.org>
18563
18564 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18565 (encode_coding_big5, encode_coding_charset): If coding requires safe
18566 encoding, produce a character specified by
18567 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18568
185692008-02-01 Dave Love <fx@gnu.org>
18570
18571 * xterm.c (XSetIMValues): Declare.
18572
18573 * process.c: Conditionally include sys/wait.h, pty.h.
18574
18575 * print.c (print_object): Fix print format for 64-bit systems.
18576
18577 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18578
18579 * buffer.c (emacs_strerror): Declare.
18580
18581 * fontset.c (Fclear_face_cache): Declare.
18582 (accumulate_font_info): Comment-out (unused).
18583 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18584 variables.
18585
18586 * character.h (string_escape_byte8): Declare.
18587
18588 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18589 unused vars.
18590 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18591 (Fmap_charset_chars): Doc fix.
18592
18593 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18594 (Fset_coding_system_priority, Fset_coding_system_priority)
18595 (Fdefine_coding_system_internal): Doc fix.
18596
185972008-02-01 Dave Love <fx@gnu.org>
18598
18599 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18600
186012008-02-01 Kenichi Handa <handa@m17n.org>
18602
18603 * character.c (string_escape_byte8): Make multibyte string with
18604 correct size.
18605
18606 * charset.c (Fmake_char): Delete unnecessary code.
18607
186082008-02-01 Kenichi Handa <handa@m17n.org>
18609
18610 * xfns.c (x_encode_text): Allocate coding.destination here, and
18611 call encode_coding_object with dst_object Qnil.
18612
18613 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18614 multibyte form correctly.
18615
18616 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18617 against Vfont_encoding_alist.
18618
18619 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18620 handling of charset list.
18621 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18622 (decode_coding_object): Move point to coding->dst_pos before
18623 calling post-read-conversion function.
18624 (encode_coding_object): Give correct arguments to
18625 pre-write-conversion. Ignore the return value of
18626 pre-write-conversion function. Pay attention to the case that
18627 pre-write-conversion changes the current buffer. If dst_object is
18628 Qt, even if coding->src_bytes is zero, allocate at least one byte
18629 to coding->destination.
18630
18631 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18632
18633 * charset.c (Fmake_char): Make it more backward compatible.
18634 (Fmap_charset_chars): Fix docstring.
18635
186362008-02-01 Dave Love <fx@gnu.org>
18637
18638 * coding.c: Doc fixes.
18639 (Fdefine_coding_system_alias): Use names, not symbols, in
18640 coding-system-alist.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18645 of calling free_realized_face.
18646
186472008-02-01 Yong Lu <lyongu@asia-infonet.com>
18648
18649 * charset.c (read_hex): Don't treat SPC as a comment starter.
18650 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18651 (Fdecode_char): Fix typo.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * charset.h (struct charset): New member `code_space_mask'.
18656
18657 * coding.c (coding_set_source): Delete the local variable beg_byte.
18658 (encode_coding_charset, Fdefine_coding_system_internal):
18659 Delete the local variable charset.
18660 (Fdefine_coding_system_internal): Setup
18661 attrs[coding_attr_charset_valids] correctly.
18662
18663 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18664 member to check if CODE is valid or not.
18665 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18666 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18667 is within the range of charset->min_code and carset->max_code.
18668
186692008-02-01 Dave Love <fx@gnu.org>
18670
18671 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18672
18673 * dispextern.h (generate_ascii_font): Fix return type.
18674
18675 * xfaces.c (generate_ascii_font): Fix arg declaration.
18676
18677 * coding.c (coding_inherit_eol_type)
18678 (Fset_terminal_coding_system_internal)
18679 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18684 multiple charsets correctly.
18685
186862008-02-01 Kenichi Handa <handa@m17n.org>
18687
18688 * search.c (boyer_moore): Fix handling of multibyte character
18689 translation.
18690
18691 * xdisp.c (display_mode_element): When the variable `elt' is
18692 changed, update `this' and `lisp_string'.
18693
186942008-02-01 Kenichi Handa <handa@m17n.org>
18695
18696 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18697
18698 * callproc.c (Fcall_process): Be sure to give the current buffer
18699 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18700
18701 * charset.c (struct charset_map_entries): New struct.
18702 (load_charset_map): Rename from parse_charset_map. New args
18703 entries and n_entries. Change caller.
18704 (load_charset_map_from_file): Rename from load_charset_map.
18705 Change caller. New arg control_flag. Call load_charset_map at
18706 the tail.
18707 (load_charset_map_from_vector): New function.
18708 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18709 (encode_char): If the charset is compact, change a character index
18710 to a code point.
18711
18712 * coding.c (coding_alloc_by_making_gap): Check the case that the
18713 source and destination are the same correctly.
18714 (decode_coding_raw_text): Set coding->consumed_char and
18715 coding->consumed to 0.
18716 (produce_chars): If coding->chars_at_source is nonzero, update
18717 coding->consumed_char and coding->consumed before calling
18718 alloc_destination.
18719 (Fdefine_coding_system_alias): Register ALIAS in
18720 Vcoding_system_alist.
18721 (syms_of_coding): Define `no-conversion' coding system at the tail.
18722
18723 * fileio.c (Finsert_file_contents): Set coding_system instead of
18724 val. If the current buffer is multibyte, always call
18725 decode_coding_gap.
18726
18727 * xfaces.c (try_font_list): Give higher priority to fontset's
18728 family than face's family.
18729
187302008-02-01 Kenichi Handa <handa@m17n.org>
18731
18732 * callproc.c (Fcall_process): Be sure to give the current buffer
18733 to decode_coding_c_string.
18734
18735 * xfaces.c (try_font_list): Give a family specified in a fontset
18736 higher priority than a family specified in a face.
18737
187382008-02-01 Kenichi Handa <handa@m17n.org>
18739
18740 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18741 Fix arguments to insert_from_buffer.
18742
18743 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18744
187452008-02-01 Kenichi Handa <handa@m17n.org>
18746
18747 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18748 (decode_coding_gap): Set coding->dst_multibyte correctly.
18749
187502008-02-01 Kenichi Handa <handa@m17n.org>
18751
18752 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18753 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18754 (encode_coding_utf_16): Substitute coding->default_char for
18755 non-Unicode characters.
18756 (decode_coding): Don't call record_insert here.
18757 (setup_coding_system): Initialize `surrogate' of
18758 coding->spec.utf_16 to 0.
18759 (EMIT_ONE_BYTE): Fix for multibyte case.
18760
18761 * insdel.c (insert_from_gap): Call record_insert.
18762
187632008-02-01 Kenichi Handa <handa@m17n.org>
18764
18765 * casefiddle.c (casify_region): Fix multibyte case.
18766
18767 * character.c (c_string_width): Add return type `int'.
18768 (char_string_with_unification): Delete arg ADVANCED.
18769
18770 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18771 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18772 (CHAR_STRING_ADVANCE): Make it do-while statement.
18773
18774 * chartab.c (sub_char_table_set_range): Optimize for the case
18775 DEPTH == 3. Add workaround code for a GCC optimization bug.
18776
18777 * charset.c (parse_charset_map): Remove an unused variable.
18778
18779 * coding.c: Delete unused variables.
18780
18781 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18782 earlier. If inserted is zero and the coding system doesn't
18783 require flushing, don't call decode_coding_gap.
18784
18785 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18786
187872008-02-01 Kenichi Handa <handa@m17n.org>
18788
18789 The following changes are for using Unicode as an internal
18790 character model, and use UTF-8 format for buffer/string
18791 representation.
18792
18793 * .gdbinit (xchartable): Adjust for the change of char table structure.
18794 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18795
18796 * Makefile.in (obj): Add character.o and chartab.o.
18797 (lisp, shortlisp): Remove utf-8.elc.
18798 (*.o): For many files, change dependency on charset.h to
18799 character.h, and add dependency on character.h.
18800 (character.o, chartab.o): New targets.
18801
18802 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18803 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18804 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18805 of "charset.h".
18806
18807 * dired.c, filelock.c: Include "character.h".
18808
18809 * alloc.c: Include "character.h" instead of "charset.h".
18810 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18811 (syms_of_alloc): Remove defsubr for Smake_char_table.
18812
18813 * buffer.c: Include "character.h" instead of "charset.h", don't
18814 include "coding.h".
18815 (Fset_buffer_multibyte): Adjust for UTF-8.
18816
18817 * buffer.h: EXFUN Fbuffer_live_p.
18818
18819 * callproc.c: Include "character.h" instead of "charset.h".
18820 (Fcall_process): Big change for the new code-conversion APIs.
18821
18822 * casetab.c: Include "character.h" instead of "charset.h".
18823 (set_canon, set_identity, shuffle): Adjust for the new
18824 map_char_table spec.
18825 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18826 accessing the char table structure.
18827
18828 * chartab.c: New file that implements char table.
18829
18830 * category.c: Include "character.h".
18831 (copy_category_entry): New function.
18832 (copy_category_table): Call map_char_table and copy_category_entry.
18833 (Fmake_category_table): Initialize all top-level slots.
18834 (char_category_set): New function.
18835 (modify_lower_category_set): Delete.
18836 (Fmodify_category_entry): Call char_table_ref_and_range.
18837
18838 * category.h (CATEGORY_SET): Just call char_category_set.
18839
18840 * ccl.c: Include "character.h".
18841 (Qccl, Qcclp): New variables.
18842 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18843 it's less than 256.
18844 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18845 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18846 and DST type.
18847 (ccl_driver): Change types of argument, adjust code accordingly.
18848 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18849 ccl_driver.
18850 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18851
18852 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18853 New members src_multibyte, dst_multibyte, consumed, and produced.
18854 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18855 (CODING_SPEC_CCL_PROGRAM): New macro.
18856 (ccl_driver): Update prototype.
18857 (Qccl, Qcclp, Fccl_program_p): Extern them.
18858 (CHECK_CCL_PROGRAM): New macro.
18859
18860 * character.c, character.h, chartab.c: New files.
18861
18862 * charset.c: Mostly re-written. Move character and multibyte sequence
18863 handling codes to character.c.
18864
18865 * charset.h: Mostly re-written. Move character and multibyte sequence
18866 handling codes to character.h.
18867
18868 * coding.c, coding.h: Mostly re-written.
18869
18870 * composite.c: Include "character.h" instead of "charset.h".
18871 (CHAR_WIDTH): Move to character.h.
18872 (HASH_KEY, HASH_VALUE): Delete.
18873
18874 * composite.h (enum composition_method): Change order of enumeration
18875 symbols.
18876
18877 * data.c: Include "character.h" instead of "charset.h".
18878 (Faref): Call CHAR_TABLE_REF for a char table.
18879 (Faset): Call CHAR_TABLE_SET for a char table.
18880
18881 * dispextern.h (free_realized_face, check_face_attribytes)
18882 (generate_ascii_font): Extern them.
18883 (free_realized_multibyte_face): Delete extern.
18884
18885 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18886 table structure.
18887
18888 * editfns.c: Include "character.h" instead of "charset.h".
18889 (Fchar_to_string): Always call CHAR_STRING.
18890
18891 * emacs.c (main): Call init_charset_once, init_charset,
18892 syms_of_chartab, and syms_of_character.
18893
18894 * fileio.c: Include "character.h" instead of "charset.h".
18895 (Finsert_file_contents): Big change for the new code-conversion API.
18896 (choose_write_coding_system, Fwrite_region): Likewise.
18897 (build_annotations_2): Delete.
18898 (e_write): Big change for the new code-conversion API.
18899
18900 * fns.c: Include "character.h" instead of "charset.h".
18901 (copy_sub_char_table): Move to chartab.c.
18902 (Fcopy_sequence): Call copy_char_table for a char table.
18903 (concat): Delete codes calling count_multibyte.
18904 (string_char_to_byte, string_byte_to_char): Adjust for the new
18905 multibyte form.
18906 (internal_equal): Adjust for the change of char table structure.
18907 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18908 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18909 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18910 (char_table_translate, optimize_sub_char_table)
18911 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18912 chartab.c.
18913 (char_table_ref_and_index): Delete.
18914 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18915 (Fmd5): Call preferred_coding_system instead of accessing
18916 Vcoding_category_list. Adjust for the new code-conversion API.
18917 (syms_of_fns): Move defsubr for char table related functions to
18918 chartab.c.
18919
18920 * fontset.c: Mostly re-written.
18921
18922 * fontset.h (struct font_info): Change type of the member encoding_type.
18923 (enum FONT_SPEC_INDEX): New enum.
18924 (fontset_font_pattern, fs_load_font): Update prototype.
18925 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18926
18927 * indent.c: Include "character.h" instead of "charset.h".
18928 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18929
18930 * insdel.c: Include "character.h" instead of "charset.h".
18931 (copy_text): Don't refer to Vnonascii_translation_table.
18932 (insert_from_gap): New function.
18933
18934 * keyboard.c: Include "character.h" instead of "charset.h".
18935 (command_loop_1): Never call direct_output_forward_char before
18936 a non-ASCII character.
18937 (read_char): If Vkeyboard_translate_table is a char table, always
18938 translate a character.
18939
18940 * keymap.c: Include "character.h".
18941 (store_in_keymap): Handle the case that IDX is a cons.
18942 (Fdefine_key): Handle the case that KEY is a cons and the car part
18943 is also a cons (range).
18944 (push_key_description): Adjust for the new character code.
18945 (describe_vector): Call describe_char_table for a char table.
18946 (describe_char_table): New function.
18947
18948 * keymap.h (describe_char_table): Extern it.
18949
18950 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18951 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18952 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18953 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18954 Delete.
18955 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18956 structure.
18957 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18958 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18959 (CHARTAB_SIZE_BITS_3): New macros.
18960 (chartab_size): Extern it.
18961 (struct Lisp_Char_Table): Re-design.
18962 (struct Lisp_Sub_Char_Table): New structure.
18963 (HASH_KEY, HASH_VALUE): Move from fns.c.
18964 (CHARACTERBITS): Define as 22.
18965 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18966 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18967 (GC_SUB_CHAR_TABLE_P): New macro.
18968 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18969 (code_convert_string_norecord): Deleted extern.
18970 (init_character_once, syms_of_character, init_charset)
18971 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18972
18973 * lread.c: Include "character.h".
18974 (read_multibyte): New arg NBYTES.
18975 (read_escape): Change the meaning of returned *BYTEREP.
18976 (to_multibyte): Delete.
18977 (read1): Adjust the handling of char table and string.
18978
18979 * print.c: Include "character.h" instead of "charset.h".
18980 (print_string): Convert 8-bit raw bytes to octal form by
18981 string_escape_byte8.
18982 (print_object): Adjust for the new multibyte form. Print 8-bit
18983 raw bytes always in octal form. Handle sub char table correctly.
18984
18985 * process.c: Include "character.h" instead of "charset.h".
18986 (read_process_output, send_process): Adjust for the new
18987 code-conversion API.
18988
18989 * puresize.h (BASE_PURESIZE): Increase.
18990
18991 * regex.c: Include "character.h" instead of "charset.h".
18992 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18993 (regex_compile): Accept a range whose starting and ending
18994 character have different leading bytes.
18995 (analyse_first): Adjust for the above change.
18996
18997 * search.c: Include "character.h" instead of "charset.h".
18998 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18999 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19000
19001 * syntax.c: Include "character.h" instead of "charset.h".
19002 (syntax_parent_lookup): Delete.
19003 (Fmodify_syntax_entry): Accept a cons as CHAR.
19004 (skip_chars): Adjust for the new multibyte form.
19005 (init_syntax_once): Call char_table_set_range instead of directly
19006 accessing the structure of a char table.
19007
19008 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19009 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19010 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19011 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19012
19013 * term.c: Include "buffer.h" and "character.h".
19014 (encode_terminal_code, write_glyphs): Adjust for the new
19015 code-conversion API.
19016 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19017
19018 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19019
19020 * xdisp.c: Include "character.h".
19021 (get_next_display_element): Adjust for the new multibyte form.
19022 (disp_char_vector): Adjust for the new char table structure.
19023 (decode_mode_spec_coding): Adjust for the new structure of
19024 coding system.
19025 (decode_mode_spec): Adjust for the new code-conversion API.
19026
19027 * xfaces.c: Include "character.h" instead of "charset.h".
19028 (load_face_font): Adjust for the change of choose_face_font and
19029 FS_LOAD_FONT.
19030 (generate_ascii_font): New function.
19031 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19032 (set_font_frame_param): Adjust for the change of choose_face_font.
19033 (free_realized_face): Make it public.
19034 (free_realized_faces_for_fontset): Rename from
19035 free_realized_multibyte_face. Free also faces realized for ASCII.
19036 (choose_face_font): Change arguments. Adjust for the change of
19037 fontset_font_pattern and FS_LOAD_FONT.
19038
19039 * xfns.c: Include "character.h".
19040 (x_encode_text): Adjust for the new code-conversion API.
19041
19042 * xselect.c: Don't include "charset.h".
19043 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19044
19045 * xterm.c: Include "character.h".
19046 (x_encode_char): New argument CHARSET. Change caller.
19047 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19048 Call ENCODE_CHAR instead of SPLIT_CHAR.
19049 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19050 CHAR_WIDTH instead of CHARSET_WIDTH.
19051 (XTread_socket): Adjust for the new code-conversion API.
19052 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19053 (x_load_font): Adjust for the change of struct font.
19054
190552008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19056
19057 * xfaces.c (face_at_buffer_position): Remove unused vars.
19058
190592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19060
19061 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19062 Fix overflow checking.
19063
190642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19065
19066 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19067 Cancel previous change.
19068
190692008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19070
19071 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19072 ccl->eight_bit_control. Fix check for buffer overflow.
19073 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19074 (ccl_driver): Initialize extra_bytes to 0.
19075
190762008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19077
19078 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19079 return it ORed with ctrl_modifier.
19080
190812008-01-29 Miles Bader <miles@gnu.org>
19082
19083 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19084
190852008-01-28 Jason Rumney <jasonr@gnu.org>
19086
19087 * w32.c (stat): Don't double check for networked drive.
19088
190892008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * window.c (run_window_configuration_change_hook): New function.
19092 Code extracted from set_window_buffer. Set the selected frame.
19093 (set_window_buffer): Use it.
19094 * window.h (run_window_configuration_change_hook): Declare.
19095 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19096
19097 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19098
190992008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19100
19101 * Makefile.in: Remove references to unused macros.
19102
191032008-01-26 Eli Zaretskii <eliz@gnu.org>
19104
19105 * w32.c (g_b_init_get_sid_sub_authority)
19106 (g_b_init_get_sid_sub_authority_count): New static variables.
19107 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19108 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19109 (init_user_info): Use them to retrieve uid and gid.
19110 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19111 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19112 st_uid and st_gid of the file.
19113
191142008-01-26 Jason Rumney <jasonr@gnu.org>
19115
19116 * w32.c (logon_network_drive): New function.
19117 (stat): Use it.
19118
191192008-01-26 Chong Yidong <cyd@stupidchicken.com>
19120
19121 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19122 invisible text covered with an ellipsis.
19123
191242008-01-25 Richard Stallman <rms@gnu.org>
19125
19126 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19127 jump back to beginning. Move some other initializations after that.
19128 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19129 New variables.
19130 (syms_of_xdisp): Init them.
19131
19132 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19133
19134 * buffer.c (reset_buffer_local_variables):
19135 Implement `permanent-local-hook'.
19136 (Qpermanent_local_hook): New variable.
19137 (syms_of_buffer): Init and staticpro it.
19138
191392008-01-25 Michael Albinus <michael.albinus@gmx.de>
19140
19141 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19142
191432008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19144
19145 * fns.c (Fclrhash): Return TABLE.
19146
191472008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19148
19149 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19150 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19151 is set even without positional changes.
19152 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19153
19154 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19155
191562008-01-23 Jason Rumney <jasonr@gnu.org>
19157
19158 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19159
19160 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19161 the unicode range available in MULE by locale-coding-system.
19162 Improve dbcs lead byte detection. Set event timestamp and modifiers
19163 earlier.
19164
191652008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19166
19167 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19168 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19169 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19170 when used on child processes.
19171
191722008-01-21 Michael Albinus <michael.albinus@gmx.de>
19173
19174 * dbusbind.c (Fdbus_method_return_internal): Rename from
19175 Fdbus_method_return.
19176 (Fdbus_unregister_object): Move to dbus.el.
19177 (Fdbus_call_method, Fdbus_method_return_internal)
19178 (Fdbus_send_signal): Improve debug messages.
19179
191802008-01-20 Martin Rudalics <rudalics@gmx.at>
19181
19182 * undo.c (undo_inhibit_record_point): New variable.
19183 (syms_of_undo): Initialize it.
19184 (record_point): Don't record point when undo_inhibit_record_point
19185 is set.
19186
191872008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19188
19189 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19190
19191 * xdisp.c (Qauto_hscroll_mode): New var.
19192 (syms_of_xdisp): Initialize it.
19193 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19194 window's buffer.
19195 (hscroll_windows): Don't check automatic_hscrolling_p here.
19196
19197 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19198 vscroll if we're setting window-buffer to the value it already has.
19199
192002008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19201
19202 * m/intel386.h: Remove references to XENIX.
19203
192042008-01-17 Andreas Schwab <schwab@suse.de>
19205
19206 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19207 instead of HAVE_X86_64_LIB64_DIR.
19208 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19209
192102008-01-17 Glenn Morris <rgm@gnu.org>
19211
19212 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19213 to HAVE_X86_64_LIB64_DIR.
19214
192152008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19216
19217 * s/irix3-3.h:
19218 * s/irix4-0.h:
19219 * s/386-ix.h:
19220 * s/domain.h:
19221 * s/hpux9-x11r4.h:
19222 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19223
19224 * sysdep.c: Remove code containing references to symbols defined
19225 by unsupported systems.
19226
192272008-01-16 Glenn Morris <rgm@gnu.org>
19228
19229 * coding.c (select-safe-coding-system-function): Doc fix.
19230
192312008-01-15 Glenn Morris <rgm@gnu.org>
19232
19233 * config.in: Revert 2008-01-13 change: this is a generated file.
19234
192352008-01-13 Tom Tromey <tromey@redhat.com>
19236
19237 * lisp.h: Fix typo.
19238
192392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19240
19241 * m/sequent-ptx.h:
19242 * m/sequent.h:
19243 * s/ptx.h:
19244 * s/ptx4-2.h:
19245 * s/ptx4.h: Remove files for systems no longer supported.
19246
19247 * callproc.c (Fcall_process): Fix previous change.
19248
192492008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19250
19251 * unexsunos4.c: Remove file, system not supported anymore.
19252
19253 * m/mips.h:
19254 * m/intel386.h:
19255 * callproc.c:
19256 * config.in:
19257 * ecrt0.c:
19258 * emacs.c:
19259 * fileio.c:
19260 * frame.c:
19261 * getpagesize.h:
19262 * keyboard.c:
19263 * lread.c:
19264 * process.c:
19265 * puresize.h:
19266 * sysdep.c:
19267 * systty.h:
19268 * syswait.h:
19269 * unexec.c:
19270 * xdisp.c:
19271 * alloc.c: Remove code containing references to symbols defined by
19272 unsupported systems.
19273
192742008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19275
19276 * coding.c (detect_coding_mask): Fix previous change.
19277
192782008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19279
19280 * coding.c (detect_coding_iso2022): New arg
19281 latin_extra_code_state. Allow Latin extra codes only
19282 when *latin_extra_code_state is nonzero.
19283 (detect_coding_mask): If there is a NULL byte, detect the encoding
19284 as UTF-16 or binary. If Latin extra codes exist, detect the
19285 encoding as ISO-2022 only when there's no other proper encoding is
19286 found.
19287
192882008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19289
19290 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19291 #ifdef MAC_OS.
19292
192932008-01-08 Richard Stallman <rms@gnu.org>
19294
19295 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19296
192972008-01-06 Nick Roberts <nickrob@snap.net.nz>
19298
19299 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19300 menu bar in parentheses.
19301
193022008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19303
19304 * m/7300.h:
19305 * m/acorn.h:
19306 * m/alliant-2800.h:
19307 * m/alliant.h:
19308 * m/alliant1.h:
19309 * m/alliant4.h:
19310 * m/altos.h:
19311 * m/amdahl.h:
19312 * m/apollo.h:
19313 * m/att3b.h:
19314 * m/aviion-intel.h:
19315 * m/aviion.h:
19316 * m/celerity.h:
19317 * m/clipper.h:
19318 * m/cnvrgnt.h:
19319 * m/convex.h:
19320 * m/cydra5.h:
19321 * m/delta88k.h:
19322 * m/dpx2.h:
19323 * m/dual.h:
19324 * m/elxsi.h:
19325 * m/f301.h:
19326 * m/gould-np1.h:
19327 * m/gould.h:
19328 * m/i860.h:
19329 * m/ibmps2-aix.h:
19330 * m/ibmrt-aix.h:
19331 * m/ibmrt.h:
19332 * m/irist.h:
19333 * m/is386.h:
19334 * m/isi-ov.h:
19335 * m/mega68.h:
19336 * m/mg1.h:
19337 * m/news-r6.h:
19338 * m/news-risc.h:
19339 * m/news.h:
19340 * m/nh3000.h:
19341 * m/nh4000.h:
19342 * m/ns16000.h:
19343 * m/ns32000.h:
19344 * m/nu.h:
19345 * m/orion.h:
19346 * m/orion105.h:
19347 * m/paragon.h:
19348 * m/pfa50.h:
19349 * m/plexus.h:
19350 * m/pyramid.h:
19351 * m/pyrmips.h:
19352 * m/sh3el.h:
19353 * m/sps7.h:
19354 * m/sr2k.h:
19355 * m/stride.h:
19356 * m/sun1.h:
19357 * m/sun2.h:
19358 * m/sun3-68881.h:
19359 * m/sun3-fpa.h:
19360 * m/sun3-soft.h:
19361 * m/sun3.h:
19362 * m/sun386.h:
19363 * m/symmetry.h:
19364 * m/tad68k.h:
19365 * m/tahoe.h:
19366 * m/targon31.h:
19367 * m/tek4300.h:
19368 * m/tekxd88.h:
19369 * m/tower32.h:
19370 * m/tower32v3.h:
19371 * m/ustation.h:
19372 * m/wicat.h:
19373 * m/xps100.h:
19374 * s/cxux.h:
19375 * s/cxux7.h:
19376 * s/dgux.h:
19377 * s/dgux4.h:
19378 * s/dgux5-4-3.h:
19379 * s/dgux5-4r2.h:
19380 * s/esix.h:
19381 * s/esix5r4.h:
19382 * s/hiuxmpp.h:
19383 * s/hiuxwe2.h:
19384 * s/iris3-5.h:
19385 * s/iris3-6.h:
19386 * s/isc2-2.h:
19387 * s/isc3-0.h:
19388 * s/isc4-0.h:
19389 * s/isc4-1.h:
19390 * s/newsos5.h:
19391 * s/newsos6.h:
19392 * s/osf1.h:
19393 * s/osf5-0.h:
19394 * s/riscix1-1.h:
19395 * s/riscix12.h:
19396 * s/sco4.h:
19397 * s/sco5.h:
19398 * s/sunos4-0.h:
19399 * s/sunos4-1.h:
19400 * s/sunos413.h:
19401 * s/sunos4shr.h:
19402 * s/umax.h:
19403 * s/unipl5-2.h:
19404 * s/xenix.h:
19405 * cxux-crt0.s:
19406 * unexapollo.c:
19407 * unexconvex.c:
19408 * unexenix.c:
19409 * unexsni.c: Remove files for systems no longer supported.
19410
19411 * m/intel386.h: Remove references to unsupported systems.
19412
19413 * w32.c (get_emacs_configuration): Remove reference to i860.
19414
19415 * sysdep.c: Remove dead code.
19416
194172008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19418
19419 * s/rtu.h:
19420 * m/masscomp.h: Remove files. Platform is obsolete.
19421
194222008-01-04 Michael Albinus <michael.albinus@gmx.de>
19423
19424 * dbusbind.c (Fdbus_method_return): New function.
19425 (xd_read_message): Add the serial number to the event.
19426 (Fdbus_register_method): Activate the function.
19427
194282008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19429
19430 * keyboard.c (read_key_sequence): Fix typo.
19431
194322008-01-03 Michael Albinus <michael.albinus@gmx.de>
19433
19434 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19435 (xd_signature, xd_append_arg): Handle element type detection for
19436 empty arrays.
19437 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19438 SDATA () calls; this must be solved more general.
19439 (Fdbus_register_signal): Use SBYTES instead of strlen.
19440
194412008-01-03 Magnus Henoch <magnus@zemdatav>
19442
19443 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19444 unsigned int for byte values (necessary for big-endian platform).
19445 (Fdbus_call_method): Handle the case of no returned arguments.
19446
194472007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19448
19449 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19450
194512007-12-31 Magnus Henoch <mange@freemail.hu>
19452
19453 * dbusbind.c (xd_signature): Signature of variant is just "v".
19454
194552007-12-30 Michael Albinus <michael.albinus@gmx.de>
19456
19457 * dbusbind.c: Fix several errors and compiler warnings.
19458 Reported by Tom Tromey <tromey@redhat.com>.
19459 (XD_ERROR, XD_DEBUG_MESSAGE)
19460 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19461 (xd_append_arg): Part for basic D-Bus types rewritten.
19462 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19463 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19464 appropriate.
19465 (xd_read_message): Return Qnil. Don't signal an error; it is not
19466 useful during event reading.
19467 (Fdbus_register_signal): Signal an error if the check for
19468 FUNCTIONP fails.
19469 (Fdbus_register_method): New function. The implementation is not
19470 complete, the call of the function signals an error therefore.
19471 (Fdbus_unregister_object): New function, renamed from
19472 Fdbus_unregister_signal. The initial check signals an error, if
19473 the object is not well formed.
19474
194752007-12-30 Richard Stallman <rms@gnu.org>
19476
19477 * textprop.c (get_char_property_and_overlay):
19478 Signal error if POSITION is out of range in a buffer.
19479
194802007-12-29 Martin Rudalics <rudalics@gmx.at>
19481
19482 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19483 because the original parameters are in pure storage now.
19484
194852007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19486
19487 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19488
194892007-12-22 Eli Zaretskii <eliz@gnu.org>
19490
19491 * callint.c (syms_of_callint) <command-history>: Add reference to
19492 history-length in the doc string.
19493
194942007-12-17 Jason Rumney <jasonr@gnu.org>
19495
19496 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19497 before passing as wParam.
19498
194992007-12-22 Michael Albinus <michael.albinus@gmx.de>
19500
19501 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19502 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19503 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19504 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19505 as number.
19506 (Fdbus_call_method): Fix docstring.
19507
195082007-12-21 Michael Albinus <michael.albinus@gmx.de>
19509
19510 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19511 New macros.
19512 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19513 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19514 Simplify.
19515 (xd_signature): New function.
19516 (xd_append_arg): Compute also signatures. Major rewrite.
19517 (xd_retrieve_arg): Make debug messages friendly.
19518 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19519 Check for signatures of arguments.
19520
195212007-12-19 Michael Albinus <michael.albinus@gmx.de>
19522
19523 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19524 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19525 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19526 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19527 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19528 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19529 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19530 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19531 (xd_retrieve_value): Remove. Functionality included in ...
19532 (xd_append_arg): New function.
19533 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19534
195352007-12-16 Michael Albinus <michael.albinus@gmx.de>
19536
19537 * dbusbind.c (top): Include <stdio.h>.
19538 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19539 dbus_message_new_method_call and dbus_message_new_signal.
19540 (Fdbus_register_signal): Rename unique_name to uname.
19541 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19542 non-existing unique name. Fix typos in matching rule. Return an
19543 object which is useful in Fdbus_unregister_signal.
19544 (Fdbus_unregister_signal): Reimplementation, in order to remove
19545 only the corresponding entry.
19546 (Vdbus_registered_functions_table): Change the order of entries.
19547 Apply these changes in xd_read_message and Fdbus_register_signal.
19548
195492007-12-16 Andreas Schwab <schwab@suse.de>
19550
19551 * fileio.c (Finsert_file_contents): Fix overflow check to not
19552 depend on undefined integer overflow.
19553
195542007-12-14 Jason Rumney <jasonr@gnu.org>
19555
19556 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19557 for characters above 127.
19558
195592007-12-13 Jason Rumney <jasonr@gnu.org>
19560
19561 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19562 before dereferencing array.
19563 (lookup_vk_code): Remove zero comparison.
19564
195652007-12-14 Michael Albinus <michael.albinus@gmx.de>
19566
19567 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19568 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19569 Use `unsigned int' instead of `uint'.
19570 (xd_read_message, Fdbus_register_signal): Split expressions into
19571 multiple lines before operators "&&" and "||", according to the
19572 GNU Coding Standards.
19573
195742007-12-14 Eli Zaretskii <eliz@gnu.org>
19575
19576 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19577
195782007-12-12 Juri Linkov <juri@jurta.org>
19579
19580 * buffer.c (Frename_buffer): In interactive spec replace
19581 `read-buffer' with `read-string' that uses `buffer-name-history'
19582 as history, and the current buffer's name as default.
19583
195842007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19585
19586 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19587 manipulating the backtrace manually.
19588 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19589 (struct backtrace, backtrace_list): Remove.
19590 (command_loop_1): Remove dead var `no_direct'.
19591
19592 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19593 preserve non-built-in buffer-local variables.
19594 (Fkill_all_local_variables): Don't re-create&re-set permanent
19595 buffer-local variables.
19596
195972007-12-09 Juri Linkov <juri@jurta.org>
19598
19599 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19600 Lisp code that uses `read-buffer' with current buffer as default.
19601
196022007-12-08 Michael Albinus <michael.albinus@gmx.de>
19603
19604 * dbusbind.c (xd_read_message): Generate an event for every
19605 registered handler. There might be several handlers registered
19606 for the same signal.
19607 (Fdbus_register_signal): Don't overwrite a registration for the
19608 same signal. Add a new registration if handlers are different.
19609 (Vdbus_registered_functions_table): Rework doc string.
19610
196112007-12-07 Michael Albinus <michael.albinus@gmx.de>
19612
19613 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19614 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19615 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19616 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19617 Unify argument lists.
19618 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19619 arguments and hash table keys. Use unique name for service.
19620 (Fdbus_unregister_signal): Remove checks.
19621 (Vdbus_registered_functions_table): Fix doc string.
19622
196232007-12-05 Magnus Henoch <mange@freemail.hu>
19624
19625 * process.c (make_process): Initialize pty_flag to 0.
19626
196272007-12-05 Jason Rumney <jasonr@gnu.org>
19628
19629 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19630 specified XBMs.
19631
196322007-12-05 Richard Stallman <rms@gnu.org>
19633
19634 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19635
196362007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19637
19638 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19639 New variable.
19640 (mac_try_close_socket) [MAC_OSX]: New function.
19641 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19642 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19643
19644 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19645 Use mac_try_close_socket.
19646
196472007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19648
19649 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19650 reloc_base.
19651 (copy_dysymtab): Compute relocation base here.
19652 (rebase_reloc_address) [__ppc64__]: New function.
19653 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19654 changed.
19655
196562007-12-05 Jason Rumney <jasonr@gnu.org>
19657
19658 * w32proc.c (sys_spawnve): Quote args with wildcards.
19659
196602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19661
19662 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19663 __objc_* sections.
19664 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19665
196662007-12-05 Michael Albinus <michael.albinus@gmx.de>
19667
19668 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19669 Move check for Vdbus_registered_functions_table to
19670 xd_read_queued_messages.
19671 (xd_read_queued_messages): Protect xd_read_message calls by
19672 internal_condition_case_1.
19673
196742007-12-04 Michael Albinus <michael.albinus@gmx.de>
19675
19676 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19677 Qdbus_system_bus and Qdbus_session_bus, respectively.
19678 (Vdbus_intern_symbols): Remove.
19679 (Vdbus_registered_functions_table): New hash table.
19680 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19681 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19682 Rewrite in order to manage registered functions by hash table
19683 Vdbus_registered_functions_table.
19684
196852007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19686
19687 * xterm.c: Update URL to Window Manager Specification in comment.
19688
196892007-12-02 Michael Albinus <michael.albinus@gmx.de>
19690
19691 * config.in (HAVE_DBUS): Add.
19692
19693 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19694 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19695 (obj): Add $(DBUS_OBJ).
19696 (LIBES): Add $(DBUS_LIBS).
19697 (dbusbind.o): New target.
19698
19699 * dbusbind.c: New file.
19700
19701 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19702
19703 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19704 (Qdbus_event): New Lisp symbol.
19705 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19706 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19707 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19708
19709 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19710
197112007-12-01 Richard Stallman <rms@gnu.org>
19712
19713 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19714
197152007-11-30 Jason Rumney <jasonr@gnu.org>
19716
19717 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19718 (w32con_reset_terminal_modes): Clear screen buffer.
19719 (w32_face_attributes): Don't use color indexes that are out of range.
19720 Only reverse the default colors.
19721
19722 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19723 WINDOWSNT.
19724
19725 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19726
197272007-11-29 Jason Rumney <jasonr@gnu.org>
19728
19729 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19730 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19731 if the terminal colors are initialized.
19732 (unspecified_fg, unspecified_bg): Remove unused declarations.
19733
197342007-11-29 Andreas Schwab <schwab@suse.de>
19735
19736 * keyboard.c (apply_modifiers): Fix typo.
19737
197382007-11-29 Richard Stallman <rms@gnu.org>
19739
19740 * keymap.c (Fcurrent_local_map): Doc fix.
19741
197422007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19743
19744 * s/gnu-kfreebsd.h: New file.
19745
197462007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19747
19748 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19749 Don't cast redundantly.
19750
19751 * keyboard.c (KEY_TO_CHAR): New macro.
19752 (parse_modifiers, apply_modifiers): Accept integer arguments.
19753 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19754 for chars and symbol keys.
19755 After doing such remapping, apply function-key-map again.
19756
197572007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19758
19759 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19760 compiled anymore.
19761
197622007-11-26 Andreas Schwab <schwab@suse.de>
19763
19764 * process.c (list_processes_1): Fix indentation level of the
19765 command column.
19766
197672007-11-23 Andreas Schwab <schwab@suse.de>
19768
19769 * editfns.c (Fformat): Handle %c specially since it requires the
19770 argument to be of type int.
19771
197722007-11-23 Markus Triska <markus.triska@gmx.at>
19773
19774 * emacs.c (main): Call init_editfns before init_process, since
19775 init_process sets Vprocess_connection_type depending on OS release.
19776
197772007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19778
19779 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19780 (find_symbol_value): Use do_symval_forwarding.
19781
19782 * data.c (set_internal): Set the value in the `cons-cell' (for
19783 Buffer_Local_values) not only for frame-local variables.
19784
197852007-11-22 Andreas Schwab <schwab@suse.de>
19786
19787 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19788 values to sprintf.
19789 * keymap.c (Fsingle_key_description): Likewise.
19790 * print.c (print_object): Likewise.
19791
197922007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19793
19794 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19795 file for image is nil.
19796
197972007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19798
19799 * term.c: Include stdarg.h.
19800 (fatal): Implement using varargs.
19801 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19802
198032007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19804
19805 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19806 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19807 Update call to buffer_slot_type_mismatch.
19808 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19809 (buffer_slot_type_mismatch): Update.
19810 * buffer.c (buffer_local_types): Remove.
19811 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19812 (defvar_per_buffer): Set the type in the buffer_objfwd.
19813
198142007-11-21 Jason Rumney <jasonr@gnu.org>
19815
19816 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19817 CreateFileMapping returns NULL on failure.
19818
198192007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19820
19821 * search.c (Fset_match_data): Remove the `evaporate' feature.
19822 (unwind_set_match_data): Don't use the `evaporate' feature.
19823
198242007-11-21 Jason Rumney <jasonr@gnu.org>
19825
19826 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19827
19828 * w32console.c (w32con_write_glyphs): Remove unused variables.
19829
198302007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19831
19832 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19833
19834 * s/darwin.h (MULTI_KBOARD): Remove.
19835
19836 * macfns.c (x_create_tip_frame, Fx_create_frame)
19837 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19838
198392007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19840
19841 * buffer.c (Fbuffer_local_value): Remove redundant test.
19842 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19843 than in `current-buffer' to match the comment.
19844 Do the swap using swap_in_global_binding.
19845
19846 * data.c (store_symval_forwarding, set_internal):
19847 * eval.c (specbind): Remove dead code.
19848
19849 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19850 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19851 Since we do not want to see internal Lisp_*fwd objects here.
19852
198532007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19854
19855 * sysdep.c (init_system_name): Use getaddrinfo if available.
19856
19857 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19858 (x_scroll_bar_note_movement): start, end, with, height in struct
19859 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19860
198612007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19862
19863 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19864
198652007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19866
19867 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19868 This undoes Richard's change of 14-Oct-2002.
19869
19870 * alloc.c (allocate_other_vector):
19871 * lisp.h (allocate_other_vector): Remove.
19872
19873 * window.c (struct save_window_data): Move non-lisp data to the end
19874 and make it `int' rather than Lisp_Object.
19875 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19876 Done wrap/unwrap integer values.
19877 (Fset_window_configuration, compare_window_configurations):
19878 Update use of fields to their new types.
19879
19880 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19881 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19882 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19883 (SET_SCROLL_BAR_X_WINDOW): Remove.
19884 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19885 Access the new x_window field directly.
19886 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19887 Don't wrap/unwrap integers into Lisp_Objects.
19888 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19889 (x_scroll_bar_report_motion):
19890 Don't wrap/unwrap integers into Lisp_Objects.
19891 (x_term_init): Use SDATA.
19892 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19893 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19894 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19895 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19896 * xfns.c (x_set_background_color):
19897 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19898 Access the new x_window field directly.
19899
19900 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19901 (allocate_pseudovector): Make non-static.
19902
19903 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19904 (allocate_pseudovector): Declare.
19905 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19906
199072007-11-15 Andreas Schwab <schwab@suse.de>
19908
19909 * editfns.c (Fformat): Correctly format EMACS_INT values.
19910 Also take precision into account when formatting an integer.
19911
19912 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19913
199142007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19915
19916 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19917 (syms_of_keyboard): Defsubr it.
19918
19919 * data.c (swap_in_global_binding): Fix longstanding bug where
19920 store_symval_forwarding was not called with the right second argument,
19921 thus causing objfwd-ing from being dropped.
19922
199232007-11-14 Juanma Barranquero <lekktu@gmail.com>
19924
19925 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19926 (Fx_display_pixel_height, Fx_display_planes)
19927 (Fx_display_color_cells, Fx_server_max_request_size)
19928 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19929 (Fx_display_visual_class, Fx_display_save_under):
19930 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19931 (Fx_display_pixel_height, Fx_display_planes)
19932 (Fx_display_color_cells, Fx_server_max_request_size)
19933 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19934 (Fx_display_mm_height, Fx_display_mm_width)
19935 (Fx_display_backing_store, Fx_display_visual_class)
19936 (Fw32_select_font, Fx_display_save_under):
19937 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19938 (Fx_display_pixel_height, Fx_display_planes)
19939 (Fx_display_color_cells, Fx_server_max_request_size)
19940 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19941 (Fx_display_save_under): Fix typos in docstrings.
19942
199432007-11-14 Juanma Barranquero <lekktu@gmail.com>
19944
19945 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19946 corresponding to deleted entries; they are an implementation detail.
19947 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19948 Remove variables.
19949 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19950 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19951 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19952 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19953 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19954 (Fw32_define_rgb_color, Fw32_load_color_file)
19955 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19956 Fix typos in docstrings.
19957 (Fx_server_version): Reflow docstring.
19958 (Fw32_shell_execute): Doc fixes.
19959
199602007-11-13 Juanma Barranquero <lekktu@gmail.com>
19961
19962 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19963 if w32_parse_hot_key returned nil.
19964
199652007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19966
19967 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19968
199692007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19970
aac0c6e3
MR
19971 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19972
19973 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19974
19975 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19976 Remove W32_SCROLL_BAR_CLICK_EVENT.
19977
19978 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19979 Add MULTIMEDIA_KEY_EVENT.
19980
19981 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19982 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19983 (make_lispy_event) [WINDOWSNT]: Use it to translate
19984 MULTIMEDIA_KEY_EVENT.
19985
19986 * w32term.h (WM_APPCOMMAND): Define if not already.
19987 (GET_APPCOMMAND_LPARAM): Likewise.
19988
19989 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19990 WM_APPCOMMAND.
19991
19992 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19993 (syms_of_w32fns): Export and initialize it.
19994 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19995
199962007-11-09 Chong Yidong <cyd@stupidchicken.com>
19997
19998 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19999 twice.
20000
20001 * xdisp.c (handle_face_prop): Fix last change.
20002
200032007-11-09 Richard Stallman <rms@gnu.org>
20004
20005 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20006 not just for after-strings and before-strings.
20007 Call face_for_overlay_string and pass the overlay to it.
20008 (handle_display_prop): Determine whether property came from an overlay.
20009 Pass OVERLAY arg to handle_single_display_spec.
20010 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20011 (load_overlay_strings): Fill in it->string_overlays.
20012 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20013
20014 * xfaces.c (face_for_overlay_string): Function renamed from
20015 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20016
20017 * dispextern.h (struct it): New elt string_overlays.
20018 New elt from_overlay, also in stack.
20019 Rearrange a few elements.
20020 (face_for_overlay_string): Decl renamed from
20021 face_at_buffer_position_no_overlays, and add argument.
20022
200232007-11-09 Richard Stallman <rms@gnu.org>
20024
20025 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20026 to get the base face for an overlay string.
20027
20028 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20029
20030 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20031
20032 * xdisp.c (handle_stop): Move some code out of loop.
20033
200342007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20035
20036 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20037 Fix conversion from Lisp object to ATSUFontID.
20038
200392007-11-09 Jason Rumney <jasonr@gnu.org>
20040
20041 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20042
200432007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20044
20045 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20046 Don't assume regions are aligned to page boundary.
20047 (print_load_command_name): Add LC_UUID if defined.
20048
200492007-11-09 Richard Stallman <rms@gnu.org>
20050
20051 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20052
200532007-11-07 Jason Rumney <jasonr@gnu.org>
20054
20055 * s/windows95.h: Remove.
20056
200572007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20058
20059 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20060 abort with a message on unhandled store_type values.
20061
200622007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20063
20064 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20065 Remove HAVE_X11R5 and HAVE_X11R4.
20066
200672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20068
20069 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20070
200712007-11-01 Johan Bockgård <bojohan@gnu.org>
20072
20073 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20074 Don't set s->stippled_p here, since it has already been set by
20075 x_set_glyph_string_gc from x_draw_glyph_string.
20076
200772007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20078
20079 * sunfns.c: Remove file.
20080
20081 * m/sun386.h:
20082 * m/sun2.h:
20083 * m/sparc.h: Remove Sun windows code.
20084
200852007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20086
20087 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20088 (init_keyboard): Set current_kboard's window-system to nil.
20089 (tty_read_avail_input): Typo.
20090 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20091
200922007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20093
20094 * s/usg5-4.h:
20095 * s/usg5-3.h:
20096 * s/ptx.h:
20097 * m/is386.h:
20098 * m/ibmps2-aix.h:
20099 * Makefile.in: Remove all mentions of X10.
20100
20101 * dispnew.c (syms_of_display): Don't mention version 10.
20102
201032007-10-28 Juanma Barranquero <lekktu@gmail.com>
20104
20105 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20106 ($(BLD)/abbrev.$(O)): Remove.
20107
201082007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20109
20110 Rewrite abbrev.c in Elisp.
20111 * image.c (Qcount): Don't declare as extern.
20112 (syms_of_image): Initialize and staticpro `Qcount'.
20113 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20114 * emacs.c (main): Don't call syms_of_abbrev.
20115 * Makefile.in (obj): Remove abbrev.o.
20116 (abbrev.o): Remove.
20117 * abbrev.c: Remove.
20118
201192007-10-26 Martin Rudalics <rudalics@gmx.at>
20120
20121 * window.c (window_min_size_2): Don't count header-line.
20122
201232007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20124
20125 * frame.h (struct frame): Move all bit fields after the first bit
20126 field to take advantage of the available space. Group all the
20127 chars together to reduce wasted space due to padding.
20128
201292007-10-26 Juanma Barranquero <lekktu@gmail.com>
20130
20131 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20132
20133 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20134 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20135 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20136 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20137 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20138 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20139 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20140 (last_marked, mark_object_loop_halt): Make static.
20141
20142 * frame.c (syms_of_frame) <delete-frame-functions>:
20143 Fix typo in docstring.
20144
201452007-10-25 Juanma Barranquero <lekktu@gmail.com>
20146
20147 * w32.c (init_environment): Fix tiny memory leak.
20148 (w32_get_resource): Remove unused variable `ok'.
20149
201502007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20151
20152 Make `window-system' into a keyboard-local variable (rather than
20153 frame-local as done originally by multi-tty).
20154
20155 * keyboard.h (struct kboard): Add Vwindow_system.
20156 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20157 (mark_kboards): Mark Vwindow_system.
20158
20159 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20160 (init_display): Don't set the obsolete `window-system' frame-param.
20161
20162 * xterm.c (x_term_init):
20163 * w32term.c (w32_create_terminal):
20164 * term.c (init_tty): Set Vwindow_system.
20165 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20166 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20167
20168 * xfns.c (Fx_create_frame, x_create_tip_frame):
20169 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20170 * macfns.c (Fx_create_frame):
20171 Don't set the obsolete `window-system' frame-param.
20172
20173 * frame.h (Qwindow_system): Remove.
20174 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20175 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20176
201772007-10-24 Richard Stallman <rms@gnu.org>
20178
20179 * frame.c (x_figure_window_size): For fullscreen case,
20180 set USPosition | PPosition without clobbering rest of window_prompting.
20181
20182 * keyboard.c (Fcurrent_idle_time): Doc fix.
20183
20184 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20185
201862007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20187
20188 * process.c (unwind_request_sigio): Only define if __ultrix__.
20189
20190 * callproc.c (child_setup): Remove spurious *.
20191
20192 * lisp.h (Fget_text_property): Declare.
20193 (have_menus_p): Declare it here rather than in sys-dep header files.
20194 * macterm.h (have_menus_p):
20195 * msdos.h (have_menus_p):
20196 * xterm.h (have_menus_p): Remove.
20197
20198 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20199 (Fmake_variable_frame_local): Just check the variable's const-ness
20200 rather than checking nil or t.
20201
202022007-10-22 Jason Rumney <jasonr@gnu.org>
20203
20204 * w32fns.c: Include math.h.
20205 (w32_abort): Declaration moved to nt/config.nt.
20206
20207 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20208 (abort): Redefinition moved to nt/config.nt.
20209
20210 * m/windowsnt.h: Remove.
20211
202122007-10-22 Juanma Barranquero <lekktu@gmail.com>
20213
20214 * emacs.c (Fdump_emacs): Fix typo in message.
20215 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20216 <installation-directory>: Reflow docstring.
20217
202182007-10-22 Juri Linkov <juri@jurta.org>
20219
20220 * minibuf.c: Allow minibuffer default to be a list of default values.
20221 With empty input use the first element of this list as returned default.
20222 (string_to_object)
20223 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20224 (read_minibuf): If defalt is cons, set histstring to its car.
20225 (Fread_string): If default_value is cons, set val to its car.
20226 (Fread_buffer): If def is cons, use its car.
20227 (Fcompleting_read): If defalt is cons, set val to its car.
20228
202292007-10-21 Michael Albinus <michael.albinus@gmx.de>
20230
20231 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20232
202332007-10-20 Juanma Barranquero <lekktu@gmail.com>
20234
20235 * doc.c (Fdocumentation): Check for advice in all cases.
20236
202372007-10-19 Chong Yidong <cyd@stupidchicken.com>
20238
20239 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20240
202412007-10-19 Richard Stallman <rms@gnu.org>
20242
20243 * doc.c (Fdocumentation): Check for and handle an advised function.
20244
202452007-10-19 Juanma Barranquero <lekktu@gmail.com>
20246
20247 * process.c (Fset_process_filter): Doc fix.
20248
202492007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20252 which caused key-translation-map to applied repeatedly (thus breaking
20253 double-mode).
20254
202552007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 * xselect.c (x_own_selection, x_handle_selection_clear)
20258 (x_clear_frame_selections):
20259 * w32menu.c (list_of_panes, list_of_items):
20260 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20261 * textprop.c (validate_plist, interval_has_all_properties)
20262 (interval_has_some_properties, interval_has_some_properties_list)
20263 (add_properties, text_property_list):
20264 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20265 * minibuf.c (Fassoc_string):
20266 * macselect.c (x_own_selection, x_clear_frame_selections)
20267 (Fx_disown_selection_internal):
20268 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20269 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20270
202712007-10-17 Chong Yidong <cyd@stupidchicken.com>
20272
20273 * process.c: Link to libs for calling res_init() if available.
20274 (Fmake_network_process): Call res_init() before getaddrinfo or
20275 gethostbyname, if possible.
20276
202772007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20278
20279 * lread.c (read1): Set pvectype for char_tables.
20280
20281 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20282 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20283 Add type checks.
20284 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20285
20286 * alloc.c (free_misc): Use XMISCTYPE.
20287 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20288
202892007-10-17 Glenn Morris <rgm@gnu.org>
20290
20291 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20292 (syms_of_minibuf): Add Qcompletion_ignore_case.
20293 * dired.c (Qcompletion_ignore_case): Change to external.
20294 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20295 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20296 (Fread_file_name): Use it rather than intern'ing.
20297
20298 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20299 (Fread_coding_system): Ignore case of user input.
20300
203012007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20302
20303 * xdisp.c (handle_display_prop): Ignore display specs after
20304 replacing one when string text is being replaced.
20305 (handle_single_display_spec): Pretend as if characters with display
20306 property haven't been consumed only when buffer text is being replaced.
20307
203082007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20309
20310 * xfns.c (Fx_create_frame, Fx_display_list):
20311 * window.c (window_fixed_size_p, enlarge_window)
20312 (shrink_window_lowest_first):
20313 * macterm.c (init_font_name_table):
20314 * macfns.c (Fx_create_frame, Fx_display_list):
20315 * lread.c (close_load_descs):
20316 * keyboard.c (read_char_x_menu_prompt):
20317 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20318 * coding.c (code_convert_region_unwind): Test the type of an object
20319 rather than just !NILP before extracting data from it.
20320
20321 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20322
20323 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20324 (XMISCANY): New macro.
20325 (XMISCTYPE): Use it.
20326 (struct Lisp_Misc_Any): New type.
20327 (union Lisp_Misc): Use it.
20328 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20329 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20330 (find_symbol_value, set_internal, default_value, Fset_default)
20331 (Fmake_variable_buffer_local, Fmake_local_variable)
20332 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20333 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20334 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20335 * alloc.c (allocate_buffer): Set the size and tag.
20336 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20337 Use XMISCANY.
20338 (die): Follow the GNU convention for error messages.
20339 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20340 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20341 tag any more.
20342 (set_buffer_internal_1):
20343 * frame.c (store_frame_param):
20344 * eval.c (specbind):
20345 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20346
20347 * doc.c (Fsnarf_documentation): Simplify.
20348
203492007-10-14 Juanma Barranquero <lekktu@gmail.com>
20350
20351 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20352 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20353
203542007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20355
20356 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20357
203582007-10-14 Juanma Barranquero <lekktu@gmail.com>
20359
20360 * eval.c (do_autoload): Don't save autoloads.
20361
20362 * data.c (Ffset): Save autoload of the function being set.
20363
203642007-10-07 John Paul Wallington <jpw@pobox.com>
20365
20366 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20367 parameter before setting up faces.
20368
203692007-10-13 Eli Zaretskii <eliz@gnu.org>
20370
20371 * ccl.c (Fregister_code_conversion_map):
20372 * keyboard.c (append_tool_bar_item): Reformat last change.
20373
20374 * lisp.h (eabs): Rename from `abs'. All callers changed.
20375
203762007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20377
20378 * buffer.c (add_overlay_mod_hooklist):
20379 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20380 * fontset.c (make_fontset):
20381 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20382 (append_tool_bar_item):
20383 * macmenu.c (grow_menu_items):
20384 * w32menu.c (grow_menu_items):
20385 * xmenu.c (grow_menu_items): Use larger_vector.
20386
203872007-10-13 Eli Zaretskii <eliz@gnu.org>
20388
20389 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20390 selected frame'' on MSDOS).
20391
203922007-10-12 Martin Rudalics <rudalics@gmx.at>
20393
20394 * frame.c (Qexplicit_name): New variable.
20395 (x_report_frame_params): Report it in parameter alist.
20396 (syms_of_frame): Intern and staticpro it.
20397
203982007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20399
20400 * macfns.c (x_create_tip_frame): Set terminal for frame.
20401
204022007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20403
20404 * frame.c (Qenvironment): Remove.
20405 (syms_of_frame) <Qenvironment>: Don't initialize.
20406 (Fdelete_frame): Don't treat the `environment' param specially.
20407 * frame.h (Qenvironment): Don't declare.
20408 * callproc.c (set_initial_environment): Don't set unused frame param.
20409
20410 * frame.c (Fframe_with_environment): Remove.
20411 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20412
20413 * lisp.h (Fframe_with_environment): Don't declare.
20414
204152007-10-10 Juanma Barranquero <lekktu@gmail.com>
20416
20417 * indent.c (indent_tabs_mode, last_known_column)
20418 (last_known_column_modified): Make static.
20419 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20420
204212007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20422
20423 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20424
204252007-10-09 Jason Rumney <jasonr@gnu.org>
20426
20427 * w32term.c (x_set_window_size): Disable code that attempts to tell
20428 Lisp code about a size change before it actually happens.
20429
204302007-10-09 Richard Stallman <rms@gnu.org>
20431
20432 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20433 return HANDLED_RETURN.
20434
204352007-10-08 Martin Rudalics <rudalics@gmx.at>
20436
20437 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20438 when there's an unread command event.
20439
20440 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20441 window autoselection act appropriately when leaving selected frame.
20442 (syms_of_frame): Initialize focus_follows_mouse.
20443 * frame.h (focus_follows_mouse): Extern it.
20444 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20445 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20446 * msdos.c (dos_rawgetc): Likewise.
20447 * w32term.c (w32_read_socket): Likewise.
20448 * xterm.c (handle_one_xevent): Likewise.
20449 * xdisp.c (syms_of_xdisp): In doc-string of
20450 mouse-autoselect-window mention focus-follows-mouse.
20451
204522007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20453
20454 * macterm.c (mac_load_query_font): Fix missing return value.
20455 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20456 Add BLOCK_INPUT.
20457
204582007-10-08 Richard Stallman <rms@gnu.org>
20459
20460 * xdisp.c (get_window_cursor_type): Implement documented behavior
20461 for cursor-in-non-selected-windows = t.
20462
204632007-10-08 Jason Rumney <jasonr@gnu.org>
20464
20465 * w32.c (w32_get_resource): Always close registry keys.
20466
204672007-10-08 Jason Rumney <jasonr@gnu.org>
20468
20469 * makefile.w32-in (LIBS): Add COMCTL32.
20470
20471 * w32fns.c (globals_of_w32fns): Init common controls.
20472
204732007-10-08 Richard Stallman <rms@gnu.org>
20474
20475 * image.c (our_memory_buffer): Rename from omfib_buffer.
20476
204772007-10-08 Richard Stallman <rms@gnu.org>
20478
20479 * buffer.c (Foverlays_at): Doc fix.
20480
204812007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20482
20483 * fns.c (Fplist_put): Preserve uneven tail data.
20484
204852007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20486
20487 * termhooks.h (enum event_kind): Remove trailing comma.
20488
20489 * frame.h (enum): Remove trailing comma.
20490
204912007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20492
20493 * w32proc.c (delete_child): Don't terminate threads of zombies.
20494
204952007-10-08 Martin Rudalics <rudalics@gmx.at>
20496
20497 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20498
20499 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20500 last-repeatable-command.
20501 (init_kboard): Initialize Vlast_repeatable_command.
20502 (command_loop_1): Set it to real_this_command unless that was
20503 bound to an input event.
20504 (mark_kboards): Mark it.
20505
205062007-10-08 Richard Stallman <rms@gnu.org>
20507
20508 * eval.c (condition-case): Doc fix.
20509
205102007-10-08 Masatake YAMATO <jet@gyve.org>
20511
20512 * xfaces.c (tty_supports_face_attributes_p): Fix code
20513 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20514 was copied and not edited.
20515
205162007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20517
20518 Add new `input-decode-map' keymap and use it for terminal
20519 escape sequences.
20520 * keyboard.h (struct kboard): Add Vinput_decode_map.
20521 Remove Vlocal_key_translation_map.
20522 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20523 (init_kboard): Init input-decode-map.
20524 Replace local-key-translation-map back with key-translation-map.
20525 (syms_of_keyboard): Declare input-decode-map.
20526 Remove local-key-translation-map. Update docstrings.
20527 (mark_kboards): Mark Vinput_decode_map.
20528 Don't mark Vlocal_key_translation_map.
20529 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20530 Replace local-key-translation-map back with key-translation-map.
20531 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20532 Bind in input-decode-map rather than function-key-map.
20533
20534 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20535 This was made redundant by the previous introduction of XSETPVECTYPE.
20536
205372007-10-09 Richard Stallman <rms@gnu.org>
20538
20539 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20540
205412007-09-29 Richard Stallman <rms@gnu.org>
20542
20543 * eval.c (internal_condition_case_2, internal_condition_case_1)
20544 (internal_condition_case): Reenable abort if x_catching_errors ()
20545 to see if that really happens and why.
20546
205472007-10-06 Andreas Schwab <schwab@suse.de>
20548
20549 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20550
205512007-10-04 Juanma Barranquero <lekktu@gmail.com>
20552
20553 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20554
205552007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20556
20557 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20558
205592007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20560
20561 * window.h (struct window):
20562 * window.c (struct save_window_data, struct saved_window):
20563 * termhooks.h (struct terminal):
20564 * process.h (struct Lisp_Process):
20565 * frame.h (struct frame):
20566 * buffer.h (struct buffer):
20567 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20568 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20569 The size field of (pseudo)vectors is now unsigned.
20570 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20571
20572 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20573 Turn `count' into an integer.
20574
20575 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20576 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20577 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20578 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20579 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20580
20581 * alloc.c (allocate_pseudovector): New fun.
20582 (ALLOCATE_PSEUDOVECTOR): New macro.
20583 (allocate_window, allocate_terminal, allocate_frame)
20584 (allocate_process): Use it.
20585 (mark_vectorlike): New function.
20586 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20587 (mark_terminals): Use it.
20588 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20589 (Fmake_byte_code): Use XSETPVECTYPE.
20590
20591 * frame.c (Fframe_parameters): Minor simplification.
20592
20593 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20594
20595 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20596
20597 * buffer.c (Fget_buffer_create, init_buffer_once):
20598 * lread.c (defsubr):
20599 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20600
20601 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20602 defined differently in the m/*.h files.
20603 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20604 (XSETPVECTYPE): New macro.
20605 (XSETPSEUDOVECTOR): Use it.
20606
20607 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20608 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20609
20610 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20611 * lread.c (defvar_per_buffer):
20612 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20613
20614 * window.c (candidate_window_p): Only consider as visible frames that
20615 are on the same terminal.
20616
20617 * m/ibms390x.h (MARKBIT): Remove unused macro.
20618
206192007-10-01 Juanma Barranquero <lekktu@gmail.com>
20620
20621 * lread.c (Fload): Fix typo in docstring.
20622
206232007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20624
20625 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20626 of a non-zero value can't yield zero.
20627
206282007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20629
20630 * term.c (term_clear_mouse_face, term_mouse_highlight)
20631 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20632
20633 * print.c (safe_debug_print): Use XHASH.
20634
20635 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20636 Lisp elements such as tags.
20637 (XHASH): New macro.
20638 (EQ): Use it.
20639 (SREF, SSET, STRING_COPYIN): Use SDATA.
20640 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20641
20642 * alloc.c (mark_terminal): Remove left-over declaration.
20643 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20644 (allocate_vectorlike): Remove type argument. Adjust callers.
20645 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20646 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20647
20648 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20649 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20650 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20651 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20652 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20653 Use them.
20654
20655 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20656 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20657 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20658
206592007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20660
20661 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20662 loaded by default.
20663
206642007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20665
20666 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20667 on this tty.
20668 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20669
20670 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20671 Update all users.
20672 (handle_one_term_event): Use Gpm_DrawPointer.
20673 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20674 Signal errors instead of returning nil. Always return nil.
20675 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20676 Make it a noop if gpm-mouse was not activated.
20677 (syms_of_term): Update names.
20678
206792007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20680
20681 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20682 (init_sys_modes): Check that gpm_tty is the current tty.
20683
20684 * alloc.c (allocate_terminal): Set the vector size to only count the
20685 lisp fields. Initialize those to nil.
20686 (mark_object): Don't treat terminals specially.
20687 (mark_terminal): Remove.
20688 (mark_terminals): Use mark_object instead.
20689
20690 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20691 the GC to the beginning.
20692
20693 * indent.h:
20694 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20695
20696 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20697
206982007-09-25 Jason Rumney <jasonr@gnu.org>
20699
20700 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20701
20702 * w32console.c (create_w32cons_output): Remove.
20703
20704 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20705
20706 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20707 (reset_sys_modes): Use reset_terminal_modes_hook.
20708
207092007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20710
20711 * eval.c (do_autoload): Don't output any message.
20712
207132007-09-24 Juri Linkov <juri@jurta.org>
20714
20715 * emacs.c (standard_args): Change priority of "--no-splash"
20716 from 40 to 3. Add "--no-desktop" with the same priority.
20717
207182007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20719
20720 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20721 and optimize the case where they are all 1.
20722
207232007-09-23 Johannes Weiner <hannes@saeurebad.de>
20724
20725 * lisp.h (abs): Define if not defined.
20726 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20727 Don't define `abs', since it's defined in lisp.h.
20728
207292007-09-22 Eli Zaretskii <eliz@gnu.org>
20730
20731 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20732 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20733 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20734 (init_tty): Use DEV_TTY instead of "/dev/tty".
20735 [WINDOWSNT]: No need to protect from NAME arg being null.
20736
207372007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20738
20739 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20740 up the tty state.
20741
207422007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20743
20744 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20745 (gpm_tty): Change its type.
20746 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20747 (gpm_tty): Change its type and initialize it.
20748 (Fterm_open_connection): Check the frame is indeed a tty.
20749 Use the new gpm_tty.
20750 (Fterm_close_connection): Use the new gpm_tty.
20751 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20752 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20753
207542007-09-21 Juanma Barranquero <lekktu@gmail.com>
20755
20756 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20757 underline_color, to draw strike-through.
20758
207592007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20760
20761 * lisp.h (allocate_terminal): Declare.
20762
20763 * window.c (candidate_window_p): Consider frames that are being placed
20764 by the user as somewhere between visible and iconified.
20765 (window_loop): Prefer windows on the current frame.
20766 (Fselect_window): Move the use of select-frame to the beginning so we
20767 can just delegate all the work (it'll call us back anyway).
20768
20769 * frame.c (Qdisplay_environment_variable):
20770 * frame.h (Qdisplay_environment_variable): Delete.
20771
20772 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20773 of the first arg, since that value may be a union.
20774
20775 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20776 parameter rather than Qdisplay_environment_variable. If all else
20777 fails, look for DISPLAY in initial-environment.
20778
207792007-09-21 Glenn Morris <rgm@gnu.org>
20780
20781 * Makefile.in (emacstool): Remove target.
20782 (lisp, shortlisp): Remove termdev.elc.
20783
207842007-09-21 Markus Triska <markus.triska@gmx.at>
20785
20786 * xterm.c (x_delete_display): Compile session management conditionally.
20787
207882007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20789
20790 * callproc.c (getenv_internal_1): New function.
20791 (getenv_internal): Use it.
20792 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20793
20794 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20795 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20796 (Fset_terminal_parameter): Work with dead terminals as well.
20797 (Fmodify_terminal_parameters): Remove.
20798
20799 * terminal.c (get_terminal): Handle terminals.
20800 Make sure the terminal returned is live.
20801 (create_terminal): Use allocate_terminal.
20802 (mark_terminals): Move to alloc.c.
20803 (delete_terminal): Use terminal->name as liveness status.
20804 NULL out fields after freeing their contents.
20805 Don't deallocate the object.
20806 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20807 rather than an int.
20808 (Fterminal_live_p): Accept non-integer arguments.
20809 (Fterminal_list): Return terminal objects rather than an ints.
20810
20811 * alloc.c (enum mem_type): New member for `terminal' objects.
20812 (allocate_terminal): New function.
20813 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20814 Handle terminals.
20815 (mark_terminal): New fun.
20816 (mark_terminals): Move from terminal.c.
20817
20818 * term.c (get_tty_terminal): Don't treat output_initial specially.
20819 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20820 (delete_tty): Use terminal->name as liveness status.
20821
20822 * termhooks.h (struct terminal): Make it into a pseudovector.
20823 Remove `deleted' replaced by checking `name's nullness.
20824
20825 * print.c (print_object): Handle terminals.
20826
20827 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20828 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20829
20830 * frame.c (make_terminal_frame):
20831 * keyboard.c (tty_read_avail_input):
20832 * w32term.c (x_delete_terminal):
20833 * xfns.c (Fx_create_frame, x_create_tip_frame):
20834 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20835
208362007-09-20 Glenn Morris <rgm@gnu.org>
20837
20838 * process.c (Fmake_network_process): Doc fix.
20839
208402007-09-19 Jason Rumney <jasonr@gnu.org>
20841
20842 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20843
208442007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20845
20846 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20847 Fix a C warning regarding variable constness.
20848
20849 * xterm.c (handle_one_xevent): Fix a C warning.
20850
208512007-09-18 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20854
208552007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20856
20857 * gtkutil.c (gdpy_def): New variable.
20858 (xg_initialize): Initialize gdpy_def.
20859 (xg_display_close): If no other display exists, set gdpy_def to a
20860 new connection.
20861
208622007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20863
20864 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20865 when we have no file name for the icon.
20866 (xg_tool_bar_expose_callback): Remove.
20867 (xg_create_tool_bar): Don't connect expose signal to
20868 xg_tool_bar_expose_callback.
20869 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20870
208712007-09-16 Andreas Schwab <schwab@suse.de>
20872
20873 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20874 values instead of zapping them.
20875
208762007-09-14 Glenn Morris <rgm@gnu.org>
20877
20878 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20879 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20880 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20881 scope and rename to omfib_buffer for clarity.
20882 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20883
208842007-09-14 Kenichi Handa <handa@m17n.org>
20885
20886 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20887
208882007-09-13 Jason Rumney <jasonr@gnu.org>
20889
20890 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20891
20892 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20893
20894 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20895 (mac_term_init): Call here instead, passing rif.
20896
208972007-09-13 Glenn Morris <rgm@gnu.org>
20898
20899 * s/hpux.h: No longer define `static' as nothing.
20900
209012007-09-13 Johan Bockgård <bojohan@gnu.org>
20902
20903 * callint.c (Fcall_interactively): Remove unused var `fun'.
20904
209052007-09-12 Romain Francoise <romain@orebokech.com>
20906
20907 * window.c (prefer_window_split_horizontally, display_buffer):
20908 Revert 2007-09-08 change.
20909
209102007-09-12 Glenn Morris <rgm@gnu.org>
20911
20912 * alloca.c: Remove file.
20913 * Makefile.in (alloca): Do not undef.
20914 (allocaobj, alloca.o): Remove.
20915 (otherobj): Remove allocaobj.
20916 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20917 * regex.c (C_ALLOCA): Remove all references and code that was only
20918 used when this was defined.
20919 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20920 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20921 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20922
20923 * Makefile.in (SOURCES, unlock, relock): Delete.
20924
20925 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20926 (menu_grab_callback): All uses changed.
20927
20928 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20929 (x_reply_selection_request): All uses changed.
20930
209312007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20932
20933 * lread.c (load_warn_old_style_backquotes): Change message to look
20934 better when it appears in the middle of byte-compiler messages.
20935
209362007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20937
20938 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20939
20940 * xterm.c (x_create_terminal): Add comment.
20941
20942 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20943
209442007-09-10 Richard Stallman <rms@gnu.org>
20945
20946 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20947
209482007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20949
20950 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20951 (DEFUN): Document `intspec', use it instead of `prompt'.
20952
20953 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20954
20955 * data.c (Finteractive_form): If the interactive specification starts
20956 with a `(', use it as a Lisp form.
20957
20958 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20959 name and file modes.
20960
20961 * callint.c (Fcall_interactively): Comment fixes.
20962
209632007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20964
20965 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20966 and compiled functions.
20967
209682007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20969
20970 * window.c (prefer_window_split_horizontally): New variable.
20971 (display_buffer): Consider splitting window horizontally depending
20972 on prefer_window_split_horizontally.
20973
209742007-09-08 Eli Zaretskii <eliz@gnu.org>
20975
20976 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20977
209782007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20979
20980 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20981
20982 * frame.c (x_set_frame_parameters): Check number is positive before
20983 using XFASTINT.
20984
20985 * window.c (freeze_window_start): Don't presume selected_window holds
20986 a window object.
20987 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20988
209892007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20990
20991 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20992
209932007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20994
20995 * window.c (Vsplit_window_preferred_function): New var.
20996 (Fdisplay_buffer): Use it.
20997 (syms_of_window): Export, and initialize it.
20998
209992007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21000
21001 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21002
210032007-09-06 Glenn Morris <rgm@gnu.org>
21004
21005 * gtkutil.c (menu_grab_callback) <cnt>:
21006 * xselect.c (x_reply_selection_request) <cnt>: Move static
21007 variable to file scope.
21008
210092007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21010
21011 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21012 consistent values of selected_frame and selected_window.
21013
210142007-09-04 Jason Rumney <jasonr@gnu.org>
21015
21016 * w32console.c (initialize_w32_display): Zero unused hooks.
21017
210182007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21019
21020 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21021 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21022
210232007-09-04 Jason Rumney <jasonr@gnu.org>
21024
21025 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21026 in w32console.c. Set up input. Remove XXX comments that have been
21027 confirmed as correct.
21028
21029 * s/ms-w32.h (MULTI_KBOARD): Define.
21030
21031 * w32console.c (one_and_only_w32cons): Remove.
21032 (initialize_w32_display): Take terminal argument.
21033
21034 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21035 initialize_w32_display.
21036 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21037
21038 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21039
21040 * keyboard.c (discard_mouse_events): Discard it.
21041 (make_lispy_event): Translate it to a lisp event.
21042 (lispy_wheel_names): Add wheel-left and right events.
21043 (syms_of_keyboard): Enlarge wheel_syms.
21044
21045 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21046 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21047
21048 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21049
21050 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21051 from WM_MOUSEHWHEEL.
21052 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21053
21054 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21055 terminal.
21056
21057 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21058 keyboard for the terminal.
21059
210602007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21061
21062 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21063 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21064 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21065 and resume-tty-function to resume-tty-hook.
21066 (Fsuspend_tty, Fresume_tty): Use new names.
21067
210682007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21069
21070 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21071 if it starts with "n:".
21072
210732007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21074
21075 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21076
210772007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21078
21079 * frame.h:
21080 * frame.c (Qterm_environment_variable): Remove.
21081 (syms_of_frame): Don't init and staticpro it.
21082
21083 * callproc.c (getenv_internal): Remove special case for $TERM.
21084
21085 * callproc.c (Vinitial_environment): New variable.
21086 (set_initial_environment): Initialize it.
21087 (syms_of_callproc): Declare it.
21088 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21089 TERM under which a process runs is never related to the TERM in which
21090 Emacs is running.
21091
210922007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21093
21094 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21095 * s/darwin.h: ... do it here.
21096
210972007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21098
21099 * lisp.h (set_initial_environment): Rename from set_global_environment.
21100
21101 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21102 removed by mistake on the multi-tty branch.
21103
21104 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21105 (Fmodify_frame_parameters): Return a value.
21106
21107 * image.c (png_load): Comment-out var only used in commented-out code.
21108
21109 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21110 before passing it to mark_object.
21111
21112 * xfaces.c (internal_resolve_face_name): Return a value.
21113 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21114
21115 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21116 (x_icon): Comment-out var only used in commented-out code.
21117
211182007-08-29 Romain Francoise <romain@orebokech.com>
21119
21120 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21121 QUIT hasn't been provided.
21122
211232007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21124
21125 * callproc.c (child_setup, getenv_internal): Use the
21126 display-environment-variable and term-environment-variable frame params.
21127 (set_initial_environment): Initialise Vprocess_environment.
21128
21129 * config.in: Disable multi-keyboard support on a mac.
21130
21131 * frame.c (Qterm_environment_variable)
21132 (Qdisplay_environment_variable): New variables.
21133 (syms_of_frame): Intern and staticpro them.
21134 (Fmake_terminal_frame): Disable output method test.
21135
21136 * frame.h: Declare them here.
21137
21138 * macfns.c (x_set_mouse_color): Get rif from the frame.
21139 (x_set_tool_bar_lines): Don't use updating_frame.
21140 (mac_window): Add 2 new parameters for consistency with other systems.
21141 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21142 frame parameters following what is done in X11 and w32. Don't use
21143 FRAME_MAC_DISPLAY_INFO.
21144 (Fx_open_connection, start_hourglass): Remove window-system check.
21145 (x_create_tip_frame): Get the keyboard from the terminal.
21146
21147 * macmenu.c: Reorder includes.
21148 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21149
21150 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21151 terminal parameter.
21152 (x_clear_frame): Add a frame parameter.
21153 (note_mouse_movement): Get rif from the frame.
21154 (mac_term_init): Initialize the terminal.
21155 (mac_initialize): Make static and move terminal initialization ...
21156 (mac_create_terminal): ... to this new function.
21157
21158 * macterm.h (struct mac_display_info): Add terminal.
21159 (mac_initialize): Delete declaration.
21160
21161 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21162
21163 * sysdep.c: Comment out text after #endif.
21164
21165 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21166 is defined. Better initialize ttys in windows. Use terminal
21167 specific mouse_position_hook.
21168
21169 * termhooks.h (union display_info): Add mac_display_info.
21170
21171 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21172 Set the default minibuffer frame, window_system and the rest of the
21173 frame parameters following what is done in X11.
21174
21175 * w32term.c (w32_initialize): Make static.
21176
21177 * xselect.c (x_handle_selection_clear): Only access
21178 terminal->kboard when MULTI_KBOARD is defined.
21179
21180 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21181 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21182
211832007-08-29 Jason Rumney <jasonr@gnu.org>
21184
21185 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21186 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21187
21188 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21189 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21190
21191 * keyboard.c (restore_kboard_configuration): Only define when
21192 MULTI_KBOARD defined.
21193
21194 * makefile.w32-in: Update dependancies from Makefile.in.
21195 (OBJ1): Add terminal.$(O)
21196
21197 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21198 Don't define function body.
21199 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21200
21201 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21202
21203 * w32.c (request_sigio, unrequest_sigio): Remove.
21204
21205 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21206 (w32con_clear_frame, w32con_clear_end_of_line)
21207 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21208 (w32con_delete_glyphs, w32con_set_terminal_window)
21209 (scroll_line, w32_sys_ring_bell): Add frame arg.
21210 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21211 Add terminal arg.
21212 (PICK_FRAME): Remove.
21213 (w32con_write_glyphs): Use frame specific terminal coding.
21214 (one_and_only_w32cons): New global variable.
21215 (initialize_w32_display): Use it for storing hooks.
21216 (create_w32cons_output): New function.
21217
21218 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21219 arg a frame.
21220
21221 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21222 Set window_system.
21223 (x_set_tool_bar_lines): Don't use updating_frame.
21224 (Fx_create_frame): Set terminal and ref count.
21225 (Fx_open_connection): Remove window-system check.
21226
21227 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21228
21229 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21230 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21231 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21232 Add frame arg.
21233 (x_delete_terminal, w32_create_terminal): New functions.
21234 (w32_term_init): Create a terminal.
21235 (w32_initialize): Move terminal specific initialization to
21236 w32_create_terminal.
21237
21238 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21239 (w32_clear_rect, w32_clear_area): Use background from frame.
21240 (w32_display_info): Add terminal.
21241 (w32_sys_ring_bell, x_delete_display): Declare here.
21242
21243 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21244
21245 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21246
212472007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21248
21249 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21250 Fix get_named_tty calls for the controlling tty.
21251
212522007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21253
194d44e7 21254 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21255
212562007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21257
21258 * term.c (tty_insert_glyphs): Add missing first parameter.
21259
212602007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21261
21262 * buffer.c (Fbuffer_list, Fbury_buffer):
21263 Take frame->buried_buffer_list into account.
21264
21265 * cm.c (current_tty): New variable, for cmputc().
21266 (cmputc): Use it.
21267 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21268 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21269 (cmgoto): Add tty parameter. Pass it on to calccost().
21270 Use emacs_tputs() instead of tputs().
21271
21272 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21273 tputs().
21274 (current_tty): New variable, for cmputc().
21275 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21276
21277 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21278 (internal_condition_case, internal_condition_case_1)
21279 (internal_condition_case_2): Don't abort when x_catching_errors.
21280
21281 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21282 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21283 prevent crashes caused by bogus longjmps in read_char.
21284
21285 * keymap.h (Fset_keymap_parent): Add EXFUN.
21286
21287 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21288 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21289 Remove redundant definition.
21290
21291 * macfns.c (x_set_mouse_color, x_make_gc):
21292 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21293
21294 * w32term.c (x_free_frame_resources):
21295 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21296 (w32_initialize): Use the accessor macros for terminal characteristics.
21297
21298 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21299 Use the accessor macros for terminal characteristics.
21300 * msdos.c (internal_terminal_init): Use the accessor macros for
21301 terminal characteristics.
21302 (ScreenVisualBell, internal_terminal_init):
21303 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21304
21305 * termopts.h (no_redraw_on_reenter): Declare.
21306
21307 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21308 (mark_terminals, mark_ttys): Declare.
21309 (Fgarbage_collect): Call them.
21310 (mark_object): Mark buried_buffer_list.
21311
21312 * prefix-args.c: Include stdlib.h for exit.
21313
21314 * syssignal.h: Add comment.
21315
21316 * indent.c: Include stdio.h.
21317
21318 * window.h (Vinitial_window_system): Declare.
21319 (Vwindow_system): Delete declaration.
21320
21321 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21322
21323 * image.c (lookup_image): Don't initialize `c' until the xasserts
21324 have been run.
21325
21326 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21327 FRAME_FOREGROUND_PIXEL.
21328
21329 * print.c (print_preprocess): Don't lose print_depth levels while
21330 iterating.
21331
21332 * widget.c (update_from_various_frame_slots):
21333 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21334
21335 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21336 frames.
21337 (window_internal_height): Remove bogus make_number call.
21338 (init_window_once): Call make_terminal_frame with two zero parameters.
21339
21340 * fileio.c (Fread_file_name): Update comment.
21341
21342 * callint.c (Fcall_interactively):
21343 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21344 Make sure it is correctly unwound.
21345
21346 * xsmfns.c (x_session_close): New function.
21347
21348 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21349 Delete declarations.
21350
21351 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21352 (x_output): Remove background_pixel and foreground_pixel fields.
21353 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21354 (x_delete_device, x_session_close): Declare.
21355
21356 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21357 (read_filtered_event): Call `read_char' with a local
21358 `wrong_kboard_jmpbuf'.
21359
21360 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21361 Don't call single_kboard_state. Use FRAME_RIF.
21362
21363 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21364 systems.
21365
21366 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21367 (Fframe_with_environment, Fset_input_meta_mode)
21368 (Fset_quit_char): EXFUN.
21369 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21370 (init_sys_modes, reset_sys_modes): Update prototypes.
21371 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21372
21373 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21374 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21375 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21376 Delete declarations.
21377 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21378 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21379 New declarations.
21380
21381 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21382 already does that during init_display(). Call syms_of_keymap
21383 before syms_of_keyboard. Call `syms_of_terminal'.
21384 Call set_initial_environment, not set_process_environment.
21385 (shut_down_emacs): Call reset_all_sys_modes() instead of
21386 reset_sys_modes().
21387
21388 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21389 (internal_resolve_face_name, resolve_face_name_error): New functions.
21390 (resolve_face_name): Protect against loops and errors thrown by Fget.
21391 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21392 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21393
21394 * scroll.c: Replace CURTTY() with local variables throughout the
21395 file (where applicable).
21396 (calculate_scrolling, calculate_direct_scrolling)
21397 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21398 characteristics.
21399
21400 * keymap.c (Vfunction_key_map): Remove.
21401 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21402 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21403 (Vkey_translation_map): Remove.
21404 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21405 (Fdescribe_buffer_bindings)
21406 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21407 Update for terminal-local key-translation-map.
21408
21409 * Makefile.in (callproc.o): Update dependencies.
21410 (lisp, shortlisp): Add termdev.elc.
21411 (obj): Add terminal.o.
21412 (terminal.o): Add dependencies.
21413 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21414 (data.o, fns.o): Add termhooks.h dependency.
21415 (SOME_MACHINE_LISP): Add dnd.elc.
21416 (minibuf.o): Fix typo.
21417 Update dependencies.
21418
21419 * data.c (do_symval_forwarding, store_symval_forwarding)
21420 (find_symbol_value): Use the selected frame's keyboard, not
21421 current_kboard.
21422
21423 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21424 Vwindow_system.
21425
21426 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21427 Fmenu_bar_open.
21428 (syms_of_xmenu): Update defsubr.
21429 (mouse_position_for_popup, Fx_popup_menu)
21430 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21431 (set_frame_menubar, free_frame_menubar)
b97439ce 21432 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21433 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21434 an X frame.
21435
21436 * xselect.c (x_own_selection): Abort if not an X frame.
21437 (some_frame_on_display): Check if it is an X frame.
21438 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21439
21440 * coding.c: Include frame.h and termhooks.h.
21441 (terminal_coding, keyboard_coding): Delete.
21442 (Fset_terminal_coding_system_internal)
21443 (Fset_keyboard_coding_system_internal)
21444 (Fkeyboard_coding_system)
21445 (Fterminal_coding_system): Add a terminal parameter.
21446 Get terminal_coding from the terminal.
21447 (init_coding_once): Don't call setup_coding_system here.
21448
21449 * dispextern.h (set_scroll_region, turn_off_insert)
21450 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21451 (tty_clear_end_of_line, tty_setup_colors)
21452 (delete_tty, updating_frame)
21453 (produce_special_glyphs, produce_glyphs, write_glyphs)
21454 (insert_glyphs): Remove.
21455 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21456 (tty_turn_off_highlight, get_tty_size): Add declaration.
21457 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21458
21459 * frame.h (enum output_method): Add output_initial.
21460 (struct x_output): Delete.
21461 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21462 Access foreground_pixel and background_pixel directly from the frame.
21463 (tty_display): Delete.
21464 (struct frame): Add buried_buffer_list, foreground_pixel,
21465 background_pixel and terminal. Delete kboard.
21466 (union output_data): Add tty.
21467 (FRAME_KBOARD): Get the kboard from the terminal.
21468 (FRAME_INITIAL_P): New macro.
21469 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21470 (Qterm_environment_variable, Qdisplay_environment_variable)
21471 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21472 New declarations.
21473
21474 * termchar.h (tty_output, tty_display_info): New structures.
21475 (tty_list): Declare.
21476 (FRAME_TTY, CURTTY): New macros.
21477 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21478 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21479 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21480 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21481
21482 * callproc.c: Include frame.h and termhooks.h, for terminal
21483 parameters.
21484 (add_env): New function.
21485 (child_setup): Use it.
21486 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21487 (getenv_internal): Fix get_terminal_param call.
21488 (Fgetenv_internal, egetenv): Update doc.
21489 (syms_of_callproc): Initialize Vprocess_environment to nil.
21490 Register and initialize them. Remove obsolete defvars. Update doc
21491 strings.
21492 (child_setup): Handle Vlocal_environment_variables.
21493 (getenv_internal): Add terminal parameter.
21494 Handle Vlocal_environment_variables.
21495 (Fgetenv_internal): Add terminal parameter.
21496 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21497 environment in a frame (not terminal) parameter. Update doc strings.
21498 (set_initial_environment): Rename from set_global_environment.
21499 Store Emacs environment in initial frame parameter.
21500
21501 * xdisp.c (redisplay_internal): Update references to
21502 `previous_terminal_frame'.
21503 (display_mode_line, Fformat_mode_line): Replace calls to
21504 `push_frame_kboard' with `push_kboard'.
21505 (get_glyph_string_clip_rects): Add extra parentheses and
21506 braces to prevent compiler warnings.
21507 (calc_pixel_width_or_height): Add xassert to check that the
21508 frame is alive. Don't call `lookup_image' on a termcap frame.
21509 (message2_nolog, message3_nolog, redisplay_internal)
21510 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21511 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21512 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21513 (Fx_display_pixel_width, Fx_display_pixel_height)
21514 (Fx_display_planes, Fx_display_color_cells)
21515 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21516 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21517 (Fx_display_backing_store, Fx_display_visual_class)
21518 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21519 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21520
21521 * xfns.c (x_set_foreground_color x_set_background_color)
21522 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21523 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21524 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21525 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21526 terminal that is being deleted.
21527 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21528 frame parameter, and make sure it overrides any user-supplied setting.
21529 (Fx_close_connection, Fx_synchronize): Unify argument names with
21530 the rest of the DEFUNs.
21531
21532 * dispnew.c (Fsend_string_to_terminal): Update call to
21533 `get_tty_terminal'.
21534 (Fredraw_frame, Fsend_string_to_terminal)
21535 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21536 FRAME_TERMCAP_P and FRAME_TTY.
21537 (window_change_signal): Don't believe width/height values that are
21538 impossibly small.
21539 (Vinitial_window_system): Rename from Vwindow_system.
21540 (termscript, Wcm, rif): Delete.
21541
21542 * termhooks.h (struct terminal): New struct containing the
21543 previously global text display hooks and new members NAME,
21544 DELETED and PARAM_ALIST.
21545 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21546 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21547 (FRAME_RIF): New macros.
21548 (get_terminal_param, get_device): New declarations.
21549 (termscript): Delete declaration.
21550
21551 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21552 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21553 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21554 FRAME_FOREGROUND_PIXEL.
21555 (x_fully_uncatch_errors): Disable definition.
21556 (x_scroll_bar_expose): Fix reference to foreground pixel.
21557 (XTread_socket): Disable loop on all X displays.
21558 (x_delete_terminal): Don't set terminal->deleted and let
21559 delete_terminal delete the frames on the terminal.
21560 (x_delete_display): Doc update to reflect changes in
21561 delete_terminal.
21562 (x_display_info) <terminal>: Move member earlier in the struct.
21563 (deleting_tty): Remove old variable.
21564 (Fsuspend_tty): Call clear_tty_hooks.
21565 (Fresume_tty, init_tty): Call set_tty_hooks.
21566 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21567 errors on X frames.
21568 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21569 (handle_one_xevent): Initialize `f' to NULL.
21570 (x_delete_terminal, x_create_terminal): New functions.
21571 (XTset_terminal_modes, XTreset_terminal_modes)
21572 (XTread_socket, x_connection_closed, x_term_init)
21573 (x_term_init, x_delete_display): Add terminal parameter.
21574 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21575 X connections.
21576
21577 * frame.c: Include termchar.h.
21578 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21579 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21580 (Qdisplay_environment_variable): New vars.
21581 (Fframep): Deal with output_initial.
21582 (Fframe-live-p): Doc fix.
21583 (Fwindow-system): New function.
21584 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21585 (make_terminal_frame): Don't create frames on a terminal that is
21586 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21587 (store_frame_param): Check for found_for_frame before calling XFRAME.
21588 (Fmake_terminal_frame): Handle NULL tty names correctly.
21589 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21590 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21591 frames to refer to a deleted frame in their 'environment parameter.
21592 (Fframe_with_environment): New function.
21593 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21594 (get_future_frame_param): New function.
21595 (Fmake_terminal_frame): Use it.
21596 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21597
21598 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21599 * sysdep.c (reset_sys_modes): Update for renames.
21600
21601 * keyboard.c (tty_read_avail_input): New function.
21602 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21603 (syms_of_keyboard): Defsubr them.
21604 (Fset_input_meta_mode, Fset_quit_char): New functions.
21605 (Fset_input_mode): Split to above functions.
21606 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21607 parameter. Use it in call to `read_char'.
21608 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21609 Set wrong_kboard_jmpbuf correctly in recursive calls.
21610 Use current_kboard to access Vkeyboard_translate_table.
21611 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21612 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21613 Update longjmp invocations. Remember the original current_kboard,
21614 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21615 changes it. Comment out unnecessary calls to
21616 `record_single_kboard_state' and `any_kboard_state'.
21617 Update recursive calls.
21618 (wrong_kboard_jmpbuf): Remove global variable.
21619 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21620 Handle deleted interrupted_kboards correctly; that is a legal
21621 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21622 and read_char calls. Abort if interrupted_kboard died in read_char.
21623 (any_kboard_state, single_kboard_state)
21624 (push_frame_kboard): Remove function.
21625 (pop_kboard): Switch out of single_kboard mode if the kboard has
21626 been deleted. Remove unused variable. Help debugging by not
21627 changing current_kboard unnecessarily. Set current_kboard to the
21628 kboard of the selected frame when the stored kboard object has
21629 been deleted before pop_kboard.
21630 (temporarily_switch_to_single_kboard): Change first parameter to a
21631 frame pointer. Throw an error when caller wants to change kboards
21632 while in single_kboard mode. Don't push_kboard if we weren't in
21633 single kboard state. Don't pop_kboard if we popped into any
21634 kboard state.
21635 (restore_kboard_configuration): Abort if pop_kboard changed the
21636 kboard in single_kboard mode. Call pop_kboard only after setting
21637 up single_kboard mode.
21638 (Frecursive_edit): Switch to single_kboard mode only in nested
21639 command loops.
21640 (cmd_error, command_loop, command_loop_1, timer_check):
21641 Comment out unnecessary call to `any_kboard_state' and
21642 `record_single_kboard_state'.
21643 (delete_kboard): Exit single_kboard mode if we have just deleted
21644 that kboard. Use FRAME_KBOARD.
21645 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21646 `fatal_error_signal'.
21647 (record_single_kboard_state): Don't push_kboard if we weren't in
21648 single kboard state. Don't pop_kboard if we popped into any
21649 kboard state.
21650 (push_frame_kboard): Rename to push_kboard.
21651 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21652 (read_avail_input): Read input from all terminals.
21653 (mark_kboards): Also mark Vkeyboard_translate_table.
21654 (kbd_buffer_store_event_hold): Simplify condition.
21655 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21656 (Vkeyboard_translate_table): Move to struct kboard.
21657 (init_kboard): Initialize Vkeyboard_translate_table.
21658 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21659 Vkeyboard_translate_table. Update doc strings. Update docs of
21660 local-function-key-map and function-key-map.
21661
21662 * terminal.c: New file.
21663
21664 * term.c: Include errno.h.
21665 (Vring_bell_function, device_list, initial_device)
21666 (next_device_id, ring_bell, update_begin, update_end)
21667 (set_terminal_window, cursor_to, raw_cursor_to)
21668 (clear_to_end, clear_frame, clear_end_of_line)
21669 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21670 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21671 (syms_of_term): Move their initialization to terminal.c.
21672 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21673 (Ftty_display_color_cells)
21674 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21675 (clear_tty_hooks, set_tty_hooks)
21676 (init_tty, maybe_fatal): New functions.
21677 (Ftty_type): Return nil if terminal is not on a tty instead of
21678 throwing an error. Doc update.
21679 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21680 Doc update. Initialize new subrs and variables.
21681 (delete_tty): Use terminal->deleted.
21682 (tty_set_terminal_modes): Rename from set_terminal_modes.
21683 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21684 (set_scroll_region): Rename to `tty_set_scroll_region'.
21685 (turn_on_insert): Rename to `tty_turn_on_insert'.
21686 (turn_off_insert): Rename to `tty_turn_off_insert'.
21687 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21688 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21689 (toggle_highligh): Rename to `tty_toggle_highlight'.
21690 (background_highlight): Rename to `tty_background_highlight'.
21691 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21692 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21693 (tty_set_scroll_region, tty_background_highlight)
21694 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21695 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21696 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21697 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21698 Add static modifier.
21699 (tty_reset_terminal_modes, tty_set_terminal_window)
21700 (tty_set_scroll_region, tty_background_highlight)
21701 (tty_highlight_if_desired, tty_cursor_to)
21702 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21703 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21704 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21705 renames.
21706
217072007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21708
21709 * keyboard.c: Qrtl is new.
21710 (parse_tool_bar_item): Handle :rtl keyword.
21711 (syms_of_keyboard): Intern :rtl keyword.
21712
21713 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21714
21715 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21716 so no Lisp code is executed.
21717 (file_for_image, find_rtl_image): New functions.
21718 (xg_get_image_for_pixmap): Use file_for_image.
21719 (update_frame_tool_bar): If direction is RTL, use RTL image if
21720 defined. Use Gtk stock images if defined.
21721
217222007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21723
21724 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21725 for nonexistent or zero-width glyph in composition glyph.
21726
217272007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21728
21729 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21730
21731 * xdisp.c (Finvisible_p): New function.
21732 (syms_of_xdisp): defsubr it.
21733
217342007-08-24 Juanma Barranquero <lekktu@gmail.com>
21735
21736 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21737 Doc fixes.
21738
217392007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21740
21741 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21742
217432007-08-24 Martin Rudalics <rudalics@gmx.at>
21744
21745 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21746 whether decoding has modified buffer contents.
21747
217482007-08-24 Jason Rumney <jasonr@gnu.org>
21749
21750 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21751 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21752 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21753 (init_svg_functions) [HAVE_NTGUI]: New function.
21754 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21755 (svg_load_image): Use them.
21756 (svg_load_image) [HAVE_NTGUI]: Implement background.
21757
217582007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21759
21760 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21761 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21762 (LIBX): Remove @RSVG_LIBS@.
21763 (LIBES): Add $(RSVG_LIBS).
21764
21765 * image.c (svg_load_image): Blend with specified background if exists.
21766 Use IMAGE_BACKGROUND. Add Mac OS Support.
21767
21768 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21769 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21770 Remove macros.
21771 [MAC_OSX] (socket_callback): Do nothing.
21772 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21773 ReceiveNextEvent.
21774 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21775 socket_callback.
21776 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21777
217782007-08-22 Glenn Morris <rgm@gnu.org>
21779
21780 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21781
217822007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21783
21784 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21785
21786 * image.c: Add support for SVG images. Some additional comments
21787 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21788 (svg_image_p): New function to test for SVG image.
21789 (svg_load): New function to load SVG image.
21790 (svg_load_image): New function, helper for svg_load.
21791 (Qsvg): New Lisp_object.
21792 (svg_keyword_index): New enum.
21793 (svg_format): New static `image_keyword' struct.
21794 (svg_type): New static `image_type' struct.
21795 (librsvg/rsvg.h): Include it.
21796
217972007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21798
21799 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21800
218012007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21802
21803 * lread.c (Qold_style_backquotes): New var.
21804 (syms_of_lread): Init and staticpro it.
21805 (load_warn_old_style_backquotes): New fun.
21806 (Fload): Use them to warn about old style backquotes.
21807 (end_of_file_error, Fload): Remove unused vars.
21808
21809 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21810
21811 * lread.c (Vold_style_backquotes): New var.
21812 (syms_of_lread): Init and export it to Elisp.
21813 (read1): Set it when we find an old-style (back)quote.
21814
218152007-08-22 Jason Rumney <jasonr@gnu.org>
21816
21817 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21818
218192007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21820
21821 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21822
218232007-08-19 Richard Stallman <rms@gnu.org>
21824
21825 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21826
218272007-08-19 Andreas Schwab <schwab@suse.de>
21828
21829 * alloc.c (pure): Round PURESIZE up.
21830
218312007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21832
21833 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21834 active frame.
21835
218362007-08-16 Richard Stallman <rms@gnu.org>
21837
21838 * eval.c (Fcommandp): Add parens to clarify.
21839
21840 * minibuf.c (Fall_completions): Use enum for type of table.
21841
21842 * emacs.c (USAGE2): Improve text.
21843
218442007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21845
21846 * term.c (tty_default_color_capabilities): Declare static
21847 variables in file scope, to avoid HPUX compiler problem.
21848
218492007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21850
21851 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21852 to gtk_toolbar_insert.
21853
218542007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21855
21856 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21857
21858 * insdel.c (reset_var_on_error): New fun.
21859 (signal_before_change, signal_after_change):
21860 Use it to reset (after|before)-change-functions to nil in case of error.
21861 Bind inhibit-modification-hooks to t.
21862 Don't bind (after|before)-change-functions to nil while they run.
21863
218642007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21865
21866 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21867 filling pixmap with stippled background.
21868
218692007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21870
21871 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21872 Don't use invisible frame as parent window for repositioning.
21873
218742007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21875
21876 * print.c (new_backquote_output): Rename from old_backquote_output.
21877 (print): Inverse its logic (according to its name) so as to match the
21878 behavior of new_backquote_flag in lread.c.
21879
218802007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21881
21882 * gmalloc.c (posix_memalign): New function.
21883
21884 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21885 ActivateControl/DeactivateControl here.
21886 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21887 frame-notice-user-settings is non-nil.
21888 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21889 for kEventParamFMFontStyle.
21890 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21891 mac_pass_command_to_system and mac_pass_control_to_system here.
21892 (XTread_socket): Call ActivateControl/DeactivateControl here.
21893 (XTread_socket) [TARGET_API_MAC_CARBON]:
21894 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21895 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21896 for window repositioning.
21897
218982007-08-08 Glenn Morris <rgm@gnu.org>
21899
21900 * Replace `iff' in doc-strings and comments.
21901
219022007-08-07 Chong Yidong <cyd@stupidchicken.com>
21903
21904 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21905
219062007-08-07 Martin Rudalics <rudalics@gmx.at>
21907
21908 * fileio.c (Finsert_file_contents): Run format-decode and
21909 after_insert_file_functions on entire buffer when REPLACE is
21910 non-nil and inhibit modification_hooks and point_motion_hooks.
21911 For consistency, run after_insert_file_functions iff something
21912 got inserted. Move signal_after_change and update_compositions
21913 after code running after_insert_file_functions. Make sure that
21914 undo_list doesn't record intermediate steps of the decoding process.
21915
219162007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21917
21918 * emacs.c (main)
21919 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21920 Call malloc_enable_thread on interactive startup.
21921
21922 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21923 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21924 [USE_PTHREAD]: Conditionalize with it.
21925 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21926 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21927 New functions.
21928
219292007-08-06 Chong Yidong <cyd@stupidchicken.com>
21930
21931 * xdisp.c (redisplay_window): When restoring original buffer
21932 position, make sure it is still valid.
21933
21934 * image.c (png_load): Ignore png-supplied background color.
21935
219362007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21937
21938 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21939 Use kCFAbsoluteTimeIntervalSince1970.
21940
21941 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21942 New variable.
21943 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21944 event loop should be quit.
21945 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21946 Quit dialog event loop if quit_dialog_event_loop is set.
21947
21948 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21949 (Selection): New typedef. Use instead of ScrapRef.
21950 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21951 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21952 (mac_clear_selection): Rename from clear_scrap.
21953 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21954 scrap_has_target_type. All uses changed.
21955 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21956 (mac_selection_has_target_p): New functions.
21957 (mac_put_selection_value): Rename from put_scrap_string.
21958 (mac_get_selection_value): Rename from get_scrap_string.
21959 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21960 (put_scrap_private_timestamp, scrap_has_target_type)
21961 (get_scrap_private_timestamp): Remove functions.
21962 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21963 (x_own_selection, x_get_local_selection):
21964 Use mac_valid_selection_value_p.
21965 (x_own_selection): Don't use put_scrap_private_timestamp.
21966 Record OWNERSHIP-INFO into Vselection_alist instead.
21967 (x_get_local_selection): Don't check type if request is local.
21968 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21969 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21970
219712007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21972
21973 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21974 add comment explaining why.
21975
219762007-08-03 Richard Stallman <rms@gnu.org>
21977
21978 * fileio.c (Fvisited_file_modtime): Use make_time.
21979
219802007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21981
21982 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21983 build.
21984
219852007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21986
21987 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21988
219892007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21990
21991 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21992
219932007-07-30 Richard Stallman <rms@gnu.org>
21994
21995 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21996
219972007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21998
21999 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22000
220012007-07-28 Nick Roberts <nickrob@snap.net.nz>
22002
22003 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22004 remote default-directory.
22005
22006 * buffer.c (mode-line-format): Update doc string.
22007
220082007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22009
22010 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22011 scroll bar gap.
22012 (x_scroll_bar_create): Set bar->fringe_extended_p.
22013 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22014 on frame edge. Check fringe background extension. Don't clear
22015 extended fringe background area.
22016
22017 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22018 (w32_fill_area): Enclose multiple statements with do ... while (0).
22019
22020 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22021 Extend fringe background to scroll bar gap.
22022 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22023 Set bar->fringe_extended_p.
22024 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22025 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22026 background extension. Don't clear extended fringe background area.
22027
22028 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22029 New member fringe_extended_p.
22030
220312007-07-25 Glenn Morris <rgm@gnu.org>
22032
22033 * Relicense all FSF files to GPLv3 or later.
22034
22035 * COPYING: Switch to GPLv3.
22036
220372007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22038
22039 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22040
22041 * data.c (Finteractive_form): Check for the presence of an
22042 `interactive-form' symbol property more thoroughly.
22043
22044 * data.c (Finteractive_form): Use an `interactive-form' property if
22045 present, analogous to the function-documentation property.
22046
220472007-07-24 Jason Rumney <jasonr@gnu.org>
22048
22049 * w32fns.c (x_real_positions): Get real position from OS instead of
22050 calculating it.
22051
220522007-07-23 Jason Rumney <jasonr@gnu.org>
22053
22054 * filelock.c (current_lock_owner): Allow for @ sign in username.
22055
220562007-07-22 Nick Roberts <nickrob@snap.net.nz>
22057
22058 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22059 remote default-directory.
22060
22061 * buffer.c (mode-line-format): Describe above case in doc string.
22062
220632007-07-20 Eli Zaretskii <eliz@gnu.org>
22064
22065 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22066 Define if not defined.
22067
220682007-07-18 Jason Rumney <jasonr@gnu.org>
22069
22070 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22071
220722007-07-18 Richard Stallman <rms@gnu.org>
22073
22074 * data.c (Fsetq_default): Doc fix.
22075
22076 * eval.c (Fsetq): Doc fix.
22077
220782007-07-18 Juanma Barranquero <lekktu@gmail.com>
22079
22080 * coding.c (Ffind_operation_coding_system):
22081 * eval.c (For, Fand): Doc fixes.
22082 Reported by Johan Bockgård.
22083
220842007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22085
22086 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22087
22088 * xterm.h: Declare x_ewmh_activate_frame.
22089
22090 * xterm.c (x_ewmh_activate_frame): New function.
22091 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22092
220932007-07-17 Martin Rudalics <rudalics@gmx.at>
22094
22095 * window.c (Fdisplay_buffer): If largest or LRU window is the
22096 only window, split it even if it is not eligible for splitting.
22097 This restores the original behavior broken by the 2007-07-15
22098 change.
22099
221002007-07-17 Glenn Morris <rgm@gnu.org>
22101
22102 * abbrev.c (abbrev_check_chars): New function.
22103 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22104 Call abbrev_check_chars to check abbrev characters are word
22105 constituents. Doc fix.
22106
221072007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22108
22109 * process.c (Fstart_process, Fmake_network_process)
22110 (read_process_output): Fix up last changes.
22111
221122007-07-16 Eli Zaretskii <eliz@gnu.org>
22113
22114 * makefile.w32-in (clean): Don't delete *~.
22115
221162007-07-16 Andreas Schwab <schwab@suse.de>
22117
22118 * window.c (Fdisplay_buffer): Use NILP.
22119 (Fset_window_scroll_bars): Likewise.
22120
221212007-07-15 Martin Rudalics <rudalics@gmx.at>
22122
22123 * window.c (window_min_size_2): New function.
22124 (window_min_size_1, size_window, Fdisplay_buffer)
22125 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22126 windows without mode- or header-lines when window-min-height is
22127 too small.
22128 (size_window): Reset nodelete_p after testing it, following an
22129 earlier note by Kim F. Storm.
22130 (display_buffer): Do not set split_height_threshold to twice the
22131 value of window_min_height to avoid changing the value of a
22132 customizable variable. Rather explicitly check whether the
22133 height of the window that shall be splitted is at least as large
22134 as split_height_threshold.
22135 (Fwindow_full_width_p): New defun.
22136 (syms_of_window): Defsubr it.
22137
22138 * window.h: Add EXFUN for Fwindow_full_width_p.
22139
221402007-07-14 Jason Rumney <jasonr@gnu.org>
22141
22142 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22143
221442007-07-14 Richard Stallman <rms@gnu.org>
22145
22146 * eval.c (maybe_call_debugger): New function.
22147 (find_handler_clause): Use maybe_call_debugger.
22148 Call it when the handler says `debug'.
22149 Eliminate DEBUGGER_VALUE_PTR.
22150 (Fsignal): Eliminate debugger_value.
22151 (Qdebug): New variable.
22152 (syms_of_eval): Initialize it.
22153
221542007-07-14 Juanma Barranquero <lekktu@gmail.com>
22155
22156 * eval.c (Fprogn):
22157 * keyboard.c (Ftrack_mouse):
22158 * print.c (Fwith_output_to_temp_buffer):
22159 * window.c (Fsave_window_excursion): Doc fix.
22160
221612007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22162
22163 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22164
221652007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22166
22167 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22168 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22169 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22170 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22171 Remove unused encoding_carryover.
22172 * process.c: Adjust all functions accordingly.
22173
221742007-07-12 Richard Stallman <rms@gnu.org>
22175
22176 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22177
221782007-07-11 Jason Rumney <jasonr@gnu.org>
22179
22180 * makefile.w32-in (LIBS): Include OLE32.
22181
22182 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22183 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22184
221852007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22186
22187 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22188 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22189 from a Lisp_Object into a bare pointer.
22190 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22191 Adjust the code correspondingly.
22192
22193 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22194
22195 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22196 (term_show_mouse_face): Remove unused var `j'.
22197 (handle_one_term_event): Remove unused vars `i' and `j'.
22198 Don't cast return value of ttyname since it's not necessary.
22199
222002007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22201
22202 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22203 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22204
22205 * fns.c (map_char_table): Use an array of int for `indices' rather than
22206 an array of Lisp_Objects (which are only ever integers anyway).
22207 (Fmap_char_table): Update caller.
22208 * lisp.h: Update prototype.
22209 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22210 * fontset.c (Ffontset_info):
22211 * casetab.c (set_case_table): Update callers.
22212
22213 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22214
22215 * keymap.c (struct accessible_keymaps_data)
22216 (struct where_is_internal_data): New structures.
22217 (accessible_keymaps_1, where_is_internal_1): Use them to change
22218 interface to adhere to the one used by map_keymap.
22219 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22220 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22221
22222 * keymap.h (map_keymap_function_t): More informative prototype.
22223
222242007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22225
22226 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22227 (looking_at_1): Don't change search_regs and last_thing_searched
22228 if `inhibit-changing-match-data' is non-nil.
22229 (string_match_1, search_buffer, set_search_regs): Likewise.
22230 (syms_of_search): Add Lisp level definition for
22231 `inhibit-changing-match-data' and set it to nil.
22232 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22233 start and end of the match, instead of using values in search_regs.
22234
222352007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22236
22237 * minibuf.c (Fcompleting_read): New value `confirm-only'
22238 for `require-match'.
22239
222402007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22241
22242 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22243 part of the 2007-06-27 change to syms_of_fileio.
22244
222452007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22246
22247 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22248 Check WINDOWP before using XWINDOW. Consolidate return statements.
22249
222502007-06-27 Richard Stallman <rms@gnu.org>
22251
22252 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22253
222542007-06-27 Juanma Barranquero <lekktu@gmail.com>
22255
22256 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22257
222582007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22259
22260 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22261 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22262 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22263 (_free_internal, memalign): Use them.
22264 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22265 Initialize to PTHREAD_MUTEX_INITIALIZER.
22266 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22267 (morecore_nolock): Rename from morecore. All uses changed.
22268 Use only nolock versions of internal allocation functions.
22269 (_malloc_internal_nolock, _realloc_internal_nolock)
22270 (_free_internal_nolock): New functions created from
22271 _malloc_internal, _realloc_internal, and _free_internal.
22272 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22273 Copy hook value to automatic variable before its use.
22274 (memalign): Copy hook value to automatic variable before its use.
22275
222762007-06-26 Kenichi Handa <handa@m17n.org>
22277
22278 * coding.c (Ffind_operation_coding_system): Docstring improved.
22279 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22280
222812007-06-25 David Kastrup <dak@gnu.org>
22282
22283 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22284 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22285 cater for additional parameter.
22286
22287 * keymap.h: Adjust number of parameters to `current-active-maps'.
22288
22289 * doc.c (Fsubstitute_command_keys): Adjust call of
22290 `current-active-maps'.
22291
222922007-06-25 David Kastrup <dak@gnu.org>
22293
22294 * callint.c (Fcall_interactively): Make the parsing of interactive
22295 specs somewhat more readable.
22296
222972007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22298
22299 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22300 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22301 if extended background has already been filled.
22302
223032007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22304
22305 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22306 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22307
22308 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22309 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22310 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22311 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22312 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22313 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22314 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22315 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22316 Run timers during dialog popup.
22317 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22318
223192007-06-21 Jason Rumney <jasonr@gnu.org>
22320
22321 * image.c (convert_mono_to_color_image): Swap fore and background.
22322
223232007-06-20 Jason Rumney <jasonr@gnu.org>
22324
22325 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22326 (w32_free_bdf_font): Unmap memory not handle.
22327
223282007-06-20 Sam Steingold <sds@gnu.org>
22329
22330 * gmalloc.c (__morecore): Fix the declaration to comply with the
22331 definition.
22332
223332007-06-20 Juanma Barranquero <lekktu@gmail.com>
22334
22335 * w32term.c (w32_delete_display): Remove leftover declaration.
22336 (w32_define_cursor, w32_initialize): Make static.
22337
22338 * w32.c (_wsa_errlist): Fix typo in error message.
22339 (init_environment): Ignore any environment variable from the
22340 registry having a null value.
22341
223422007-06-20 Glenn Morris <rgm@gnu.org>
22343
22344 * Makefile.in (LIBGIF): Default to -lgif.
22345
223462007-06-17 Jason Rumney <jasonr@gnu.org>
22347
22348 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22349 unicode strings.
22350
223512007-06-16 Juanma Barranquero <lekktu@gmail.com>
22352
22353 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22354 Fix typo in docstring.
22355
223562007-06-16 Eli Zaretskii <eliz@gnu.org>
22357
22358 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22359 and their keybindings.
22360
223612007-06-15 Chong Yidong <cyd@stupidchicken.com>
22362
22363 * composite.c (update_compositions): Fix last fix.
22364
223652007-06-14 Jason Rumney <jasonr@gnu.org>
22366
22367 * w32.c (get_process_times_fn): New function pointer.
22368 (globals_of_w32): Intialize it if present in kernel32.dll.
22369 (w32_get_internal_run_time): New function.
22370
22371 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22372
223732007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22374
22375 * composite.c (update_compositions): Check the validness of
22376 compositions.
22377
223782007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22379
22380 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22381 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22382
22383 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22384 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22385
22386 * macgui.h (USE_MAC_TOOLBAR): New define.
22387
22388 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22389 Return immediately unless popup is activated.
22390
22391 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22392 background to scroll bar gap.
22393 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22394 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22395 scroll bars on frame edge. Check fringe background extension.
22396 Don't clear extended fringe background area.
22397 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22398 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22399 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22400 [USE_MAC_TOOLBAR]: New macros.
22401 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22402 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22403 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22404 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22405 [USE_MAC_TOOLBAR]: New functions.
22406 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22407 manually if previous repositioning has failed.
22408 (mac_handle_keyboard_event): Use precomputed event kind.
22409 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22410 as tool bar item click. Handle mouse movement over tool bar items.
22411
22412 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22413 toolbar_win_gravity.
22414 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22415 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22416 Add externs.
22417
22418 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22419 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22420
224212007-06-14 Chong Yidong <cyd@stupidchicken.com>
22422
22423 * image.c (search_image_cache): Remove unused variable.
22424
224252007-06-13 Chong Yidong <cyd@stupidchicken.com>
22426
22427 * xfns.c, xmenu.c: Link to xaw3d if available.
22428
224292007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22430
22431 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22432 frame_foreground and frame_background.
22433
22434 * image.c (lookup_image): Save frame foreground and background colors.
22435 (search_image_cache): Check if saved and current frame colors match.
22436
224372007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22438
22439 * regex.c (regex_compile): Remove the `regnum' counter.
22440 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22441
224422007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22443
22444 * term.c: Include intervals.h to declare Fget_text_property.
22445
224462007-06-10 Jason Rumney <jasonr@gnu.org>
22447
22448 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22449
224502007-06-08 Juanma Barranquero <lekktu@gmail.com>
22451
22452 * callint.c (Fcall_interactively):
22453 * editfns.c (Fdelete_and_extract_region):
22454 * fileio.c (Fread_file_name):
22455 * fns.c (Fmapconcat):
22456 * keyboard.c (cmd_error_internal):
22457 * keymap.c (Fkey_description):
22458 * lread.c (openp):
22459 * minibuf.c (read_minibuf):
22460 * search.c (wordify):
22461 * sunfns.c (sel_read):
22462 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22463 * xfns.c (x_default_scroll_bar_color_parameter):
22464 * xmenu.c (menu_help_callback):
22465 * xselect.c (Fx_get_atom_name):
22466 * xterm.c (x_term_init): Use empty_unibyte_string.
22467
224682007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22469
22470 * alloc.c (init_strings): Initialize canonical empty strings.
22471 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22472 canonical empty string when the requested size is 0.
22473
22474 * emacs.c (empty_unibyte_string): Rename from empty_string.
22475 (empty_multibyte_string): New canonical empty string.
22476 (syms_of_emacs): Don't initialize empty_string.
22477
22478 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22479 string, if appropriate.
22480 (empty_unibyte_string, empty_multibyte_string): New externs.
22481 (empty_string): Remove extern.
22482
22483 * lread.c (syms_of_lread): Use empty_unibyte_string.
22484
224852007-06-07 Jason Rumney <jasonr@gnu.org>
22486
22487 * s/ms-w32.h: Don't define HAVE_TZNAME.
22488
22489 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22490
224912007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22492
22493 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22494
22495 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22496 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22497
22498 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22499 Don't call next handler.
22500 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22501 Remove argument. Install handler to application.
22502 (set_frame_menubar): Don't change deep_p.
22503 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22504 FRAME_OUTER_TO_INNER_DIFF_Y.
22505 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22506 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22507 [HAVE_DIALOGS]: New macros.
22508 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22509 Use them.
22510 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22511
22512 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22513 init_service_handler. All callers changed. Return OSStatus value.
22514
22515 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22516 All callers changed so as not to call SetPortWindowPort.
22517 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22518 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22519 mac_draw_string_common.
22520 (mac_draw_image_string_qd): Likewise.
22521 (mac_draw_string_common): Use them. Add INLINE.
22522 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22523 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22524 GetGlobalMouse.
22525 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22526 and FRAME_OUTER_TO_INNER_DIFF_Y.
22527 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22528 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22529 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22530 repositioning window to mac_handle_window_event.
22531 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22532 saving window location to mac_handle_window_event
22533 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22534 (install_menu_target_item_handler): Remove argument in extern.
22535 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22536 Also accept command events.
22537 (do_keystroke): New function created from XTread_socket.
22538 (init_command_handler): Remove functions.
22539 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22540 and save window location by kEventWindowShowing and kEventWindowHiding
22541 handlers here. Don't call next handler for window state change and
22542 focus events.
22543 (mac_handle_application_event, mac_handle_keyboard_event)
22544 [TARGET_API_MAC_CARBON]: New functions.
22545 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22546 kEventWindowShowing and kEventWindowHiding events. Move installation
22547 of mouse, font, text input and menu target item handlers to
22548 install_application_handler.
22549 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22550 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22551 New function.
22552 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22553 Register it.
22554 (XTread_socket) [TARGET_API_MAC_CARBON]:
22555 Consolidate SendEventToEventTarget calls.
22556 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22557 Move application activation handler to mac_handle_application_event.
22558 Move keyboard handler to mac_handle_keyboard_event.
22559 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22560 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22561 init_command_handler. Call install_application_handler.
22562
22563 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22564 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22565
225662007-06-07 Glenn Morris <rgm@gnu.org>
22567
22568 * emacs.c (main): Use `emacs-copyright' in --version output.
22569
225702007-06-06 Chong Yidong <cyd@stupidchicken.com>
22571
22572 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22573
225742007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22575
22576 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22577
22578 * macgui.h: Replace WindowPtr with WindowRef.
22579
22580 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22581 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22582 Replace ControlHandle with ControlRef.
22583 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22584
22585 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22586 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22587 Replace ControlHandle with ControlRef.
22588 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22589 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22590
22591 * macterm.h (struct scroll_bar): Rename member control_handle_low
22592 and control_handle_high to control_ref_low and control_ref_high.
22593 All uses changed.
22594 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22595 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22596 respectively. All uses changed.
22597 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22598 (install_window_handler, remove_window_handler): Replace WindowPtr
22599 with WindowRef in externs.
22600
226012007-06-05 Juanma Barranquero <lekktu@gmail.com>
22602
22603 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22604
226052007-06-03 Nick Roberts <nickrob@snap.net.nz>
22606
22607 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22608
22609 * frame.c (Fmouse_position, Fmouse_pixel_position):
22610 Condition on HAVE_GPM too.
22611
22612 * term.c (term_mouse_highlight): Remove unused variables.
22613 (Fterm_open_connection): Set gpm_zerobased to 1.
22614 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22615 Use zero based co-ordinates.
22616 (handle_one_term_event): Report a drag as mouse movement too.
22617
22618 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22619
226202007-06-03 Chong Yidong <cyd@stupidchicken.com>
22621
22622 * image.c (search_image_cache): New function. Require background
22623 color match if background color is unspecified in the image spec.
22624 (uncache_image, lookup_image): Use it.
22625
226262007-06-01 Juanma Barranquero <lekktu@gmail.com>
22627
22628 * window.c (Fshrink_window): Reflow docstring.
22629
226302007-06-02 Chong Yidong <cyd@stupidchicken.com>
22631
22632 * Version 22.1 released.
22633
226342007-06-01 Richard Stallman <rms@gnu.org>
22635
22636 * xfns.c (x_encode_text): Add GCPRO.
22637
226382007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22639
22640 * xfns.c (x_set_name_internal): Save encoded name before
22641 x_encode_text in case string data is relocated.
22642
226432007-05-31 Richard Stallman <rms@gnu.org>
22644
22645 * buffer.c (syms_of_buffer): Doc fix.
22646
226472007-05-30 Nick Roberts <nickrob@snap.net.nz>
22648
22649 * sysdep.c (init_sys_modes): Add rather than replace with
22650 O_NONBLOCK.
22651
22652 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22653 term_mouse_moveto.
22654
22655 * termhooks.h (term_mouse_moveto): New extern.
22656
22657 * term.c (mouse_face_window): Rename...
22658 (Qmouse_face_window): ...to this.
22659 (term_show_mouse_face, term_clear_mouse_face)
22660 (term_mouse_highlight): Use Qmouse_face_window.
22661 (term_mouse_moveto): New function.
22662 (term_mouse_position): Make it work.
22663 (syms_of_term): Uncomment assignment to mouse_position_hook.
22664 Staticpro Qmouse_face_window.
22665
226662007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22667
22668 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22669 around current_column call.
22670
226712007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22672
22673 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22674 * xdisp.c (next_element_from_buffer):
22675 * window.c (delete_window):
22676 * term.c (term_mouse_highlight):
22677 * msdos.c (getdefdir):
22678 * macterm.c (mac_create_bitmap_from_bitmap_data)
22679 (init_font_name_table):
22680 * fns.c (Fsxhash):
22681 * data.c (Fmake_local_variable):
22682 * ccl.c (ccl_driver): Likewise.
22683
226842007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22685
22686 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22687 Call mac_wakeup_from_rne on window size change.
22688
226892007-05-25 Chong Yidong <cyd@stupidchicken.com>
22690
22691 * image.c (uncache_image): Fix typo.
22692
226932007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22694
22695 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22696
226972007-05-22 Richard Stallman <rms@gnu.org>
22698
22699 * xterm.c (x_connection_closed): Remove NO_RETURN.
22700
227012007-05-22 Martin Rudalics <rudalics@gmx.at>
22702
22703 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22704
227052007-05-21 Chong Yidong <cyd@stupidchicken.com>
22706
22707 * image.c (uncache_image): New function.
22708 (Fimage_refresh): New function.
22709
227102007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22711
22712 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22713
227142007-05-20 Nick Roberts <nickrob@snap.net.nz>
22715
22716 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22717 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22718
227192007-05-20 Nick Roberts <nickrob@snap.net.nz>
22720
22721 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22722 conditional on [HAVE_GPM_H].
22723
227242007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22725
22726 * syntax.c (skip_chars): Update syntax-table only after we checked that
22727 the new location is valid.
22728
227292007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22730
22731 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22732 mac_get_window_bounds.
22733
227342007-05-20 Nick Roberts <nickrob@snap.net.nz>
22735
22736 * Makefile.in (LIBGPM): Allow it to be set from configure.
22737 If set then link Emacs with it.
22738
22739 * config.in: Regenerate.
22740
22741 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22742 New externs.
22743
22744 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22745 Include gpm.h.
22746 (handle_one_term_event, term_gpm): New externs.
22747
22748 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22749 and allow it to be interrupted by SIGIO.
22750
22751 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22752 (wait_reading_process_output): Wait on gpm_fd too.
22753 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22754 (add_gpm_wait_descriptor_called_flag): New variable.
22755 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22756
22757 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22758 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22759 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22760 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22761 (make_lispy_event): Add case GPM_CLICK_EVENT.
22762 (read_avail_input): Handle mouse input.
22763
22764 * term.c (write_glyphs_with_face): New function.
22765 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22766 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22767 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22768 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22769 (last_mouse_x, last_mouse_y): New variables.
22770 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22771 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22772 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22773 (Fterm_close_connection): New functions.
22774 (term_init): Initialise mouse_face_window.
22775
227762007-05-19 Chong Yidong <cyd@stupidchicken.com>
22777
22778 * xdisp.c (redisplay_window): If first window line is a
22779 continuation line, recompute the new window start instead of
22780 recentering.
22781
227822007-05-18 Glenn Morris <rgm@gnu.org>
22783
22784 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22785 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22786
227872007-05-17 Glenn Morris <rgm@gnu.org>
22788
22789 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22790
227912007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22792
22793 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22794 dead key repeat and up events.
22795
227962007-05-14 Chong Yidong <cyd@stupidchicken.com>
22797
22798 * image.c (pbm_load): Check image size for monochrome pbm.
22799
228002007-05-13 Chong Yidong <cyd@stupidchicken.com>
22801
22802 * xterm.c (XTread_socket): Revert last change.
22803
228042007-05-12 Chong Yidong <cyd@stupidchicken.com>
22805
22806 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22807
22808 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22809
228102007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22811
22812 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22813 mixup (YAILOM).
22814
228152007-05-07 Andreas Schwab <schwab@suse.de>
22816
22817 * keymap.c (Flookup_key): Fix typo in last change.
22818
228192007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22820
22821 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22822 mapping for unibyte strings.
22823
228242007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22825
22826 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22827 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22828
228292007-04-29 Richard Stallman <rms@gnu.org>
22830
22831 * insdel.c (replace_range): For undo, record insertion first.
22832
228332007-04-29 Andreas Schwab <schwab@suse.de>
22834
22835 * lisp.h (VECSIZE): Use OFFSETOF.
22836
228372007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22838
22839 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22840 disabled lines.
22841
228422007-04-28 Richard Stallman <rms@gnu.org>
22843
22844 * lread.c (read_escape): In a string, \s is always space.
22845
228462007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22847
22848 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22849
22850 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22851 submenu for menu bar items.
22852
22853See ChangeLog.10 for earlier changes.
22854
22855;; Local Variables:
22856;; coding: utf-8
22857;; add-log-time-zone-rule: t
aac0c6e3
MR
22858;; End:
22859
e3eb1dae 22860 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22861
22862 This file is part of GNU Emacs.
22863
22864 GNU Emacs is free software: you can redistribute it and/or modify
22865 it under the terms of the GNU General Public License as published by
22866 the Free Software Foundation, either version 3 of the License, or
22867 (at your option) any later version.
22868
22869 GNU Emacs is distributed in the hope that it will be useful,
22870 but WITHOUT ANY WARRANTY; without even the implied warranty of
22871 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22872 GNU General Public License for more details.
22873
22874 You should have received a copy of the GNU General Public License
22875 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22876
22877;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40