Fix display of R2L continued lines in partial-width windows on a TTY.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
59ca28de
EZ
12010-05-01 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (find_row_end): New function, refactored from display_line.
4 (display_line): Use it.
017ea819
EZ
5 (extend_face_to_end_of_line): In almost-filled rows, extend only
6 if the row is R2L and not continued.
59ca28de 7
4fc85283
EZ
82010-04-27 Eli Zaretskii <eliz@gnu.org>
9
10 * xdisp.c (set_cursor_from_row): Fix a crash when a display string
11 is continued to the next line.
12
7482731a
EZ
132010-04-25 Eli Zaretskii <eliz@gnu.org>
14
15 * xdisp.c (set_cursor_from_row): Don't return zero if cursor was
16 found by `cursor' property of a display string.
17 (display_line): Preserve overlay and string info in row->end.
18
adf4f59c
EZ
192010-04-25 Eli Zaretskii <eliz@gnu.org>
20
21 * xdisp.c (display_line): Fix crash with bidi display on the last
22 empty line. (Bug#6030)
f538fcec
EZ
23 (iterate_out_of_display_property): New function, body from pop_it.
24 (pop_it): Use it.
adf4f59c 25
76db6fcc
EZ
262010-04-24 Eli Zaretskii <eliz@gnu.org>
27
a49884a6
EZ
28 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
29 use `get_next_display_element' and `set_iterator_to_next' to
30 advance to the next character, when looking for the character that
31 begins the next row.
32
76db6fcc
EZ
33 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
34 definition of "struct Lisp_Symbol".
35
8785b888
EZ
362010-04-23 Eli Zaretskii <eliz@gnu.org>
37
38 * xdisp.c (pop_it): When the stack is popped after displaying
39 from a string, bidi-iterate to exit from the text portion covered
40 by the `display' property or overlay. (Bug#5988, bug#5920)
b893a150
EZ
41 (set_iterator_to_next, next_element_from_composition): Fix display
42 of composed characters from L2R scripts in bidi buffers.
43 (Bug#5977)
8785b888 44
feeb1604
DN
452010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
46
809fcaba
DN
47 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
48 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
49
ed710380
DN
50 Simplify STARTFILES definition.
51 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
52 relying on Makefile.in to define it.
53 * s/cygwin.h (START_FILES): Likewise.
54 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
55
feeb1604
DN
56 Clean up Solaris code.
57 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
58 (LIB_MOTIF): Remove, configure takes care of this.
59 (NOT_USING_MOTIF): Remove, unused.
60 * xrdb.c: Remove #if 0-ed #include.
61 (SYSV): Remove conditional for old SysV.
62 * sysdep.c (closedir): Remove conditional code for Solaris,
63 Solaris has closedir.
64
a0d0b563
JD
652010-04-22 Jan Djärv <jan.h.d@swipnet.se>
66
67 * xsettings.c (read_and_apply_settings): Check if current_font is
68 NULL before strcmp (Bug#6001).
69
56bae7c7
DN
702010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
71
72 Clean up HP-UX files.
73 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
74 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
75 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
76 * s/hpux10-20.h: ... to the only user, here.
77
372b7a95
EZ
782010-04-21 Eli Zaretskii <eliz@gnu.org>
79
80 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
81 use buffer-local values of paragraph-start and paragraph-separate.
82 <paragraph_start_re, paragraph_separate_re>: Rename from
83 fallback_paragraph_start_re and fallback_paragraph_separate_re.
84 (Bug#5992)
85
f904c0f9
JD
862010-04-21 Jan Djärv <jan.h.d@swipnet.se>
87
88 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
89 current_tool_bar_style are new.
90 (store_config_changed_event): Rename from store_font_changed_event.
91 (XSETTINGS_TOOL_BAR_STYLE): New define.
92 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
93 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
94 HAVE_XFT.
95 (something_changedCB): store_font_changed_event is now
96 store_config_changed_event
97 (parse_settings): Rename from parse_xft_settings. Read
98 non-xft xsettings outside #ifdef HAVE_XFT.
99 (read_settings): Renamed from read_xft_settings.
100 (apply_xft_settings): Take current settings as parameter. Do not
101 call read_(xft)_settings.
102 (read_and_apply_settings): New function.
103 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
104 read_and_apply_settings if there are settings to be read.
105 (init_xsettings): Renamed from init_xfd_settings.
106 Call read_and_apply_settings unconditionally.
107 (xsettings_initialize): Call init_xsettings.
108 (Ftool_bar_get_system_style): New function.
109 (syms_of_xsettings): Define Qmonospace_font_name and
110 Qtool_bar_style. Initialize current_tool_bar_style to nil.
111 defsubr Stool_bar_get_system_style. Fprovide on
112 dynamic-setting.
31a01b90 113 Move misplaced HAVE_GCONF
f904c0f9
JD
114
115 * xsettings.h (Ftool_bar_get_system_style): Declare.
116
117 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
118 Qtext, Qboth, Qboth_horiz are new.
119 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
120 Vtool_bar_style, tool_bar_max_label_size.
121
122 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
123
124 * keyboard.c: QClabel is new.
125 (parse_tool_bar_item): Take out QClabel from tool bar items.
126 Try to construct a label if ther is no QClabel.
127 (syms_of_keyboard): Intern :label as QClabel.
128
129 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
130 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
131 New.
132
133 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
134 dynamic-setting.el.
135
136 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
137 (xg_make_tool_item, xg_show_toolbar_item): New function.
138 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
139 Call xg_make_tool_item to make a tool bar item.
140 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
141
142 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
143 into account for toolbars.
144
c632dfda
JD
1452010-04-21 Jan Djärv <jan.h.d@swipnet.se>
146
147 * data.c (make_blv): Declarations before code (Bug#5993).
148
10efe302
GM
1492010-04-21 Glenn Morris <rgm@gnu.org>
150
151 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
152 Define using autoconf, not cpp.
153 (LIBXSM): New variable, set by autoconf.
154 (LIBXT): Use $LIBXSM.
155
4285ac5a
DN
1562010-04-21 Dan Nicolaescu <local_user@dannlt>
157
3ec759e7
DN
158 Remove NOMULTIPLEJOBS, unused.
159 * s/template.h (NOMULTIPLEJOBS):
160 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
161
4285ac5a
DN
162 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
163 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
164 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
165 detects -znocombreloc and passes it to the linker
166 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
167
2807228d
GM
1682010-04-21 Glenn Morris <rgm@gnu.org>
169
170 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
171
574c05e2
KK
1722010-04-21 Karel Klíč <kklic@redhat.com>
173
174 * Makefile.in (LIBSELINUX_LIBS): New.
175 (LIBES): Add $LIBSELINUX_LIBS.
176 * eval.c, lisp.h (call7): New function.
177 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
178 (Ffile_selinux_context, Fset_file_selinux_context):
179 New functions.
180 (Fcopy_file): New parameter preserve-selinux-context.
181 (Frename_file): Preserve selinux context when renaming by copy-file.
182
91eac4bb
JB
1832010-04-21 Juanma Barranquero <lekktu@gmail.com>
184 Eli Zaretskii <eliz@gnu.org>
185
50426a04
JB
186 Don't depend on cm.c or termcap.c on Windows, use stubs.
187 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
188 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
189 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
190 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
191 (sys_tputs, sys_tgetstr): New stubs.
192 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
193 (tputs, tgetstr): New; define to sys_*.
91eac4bb 194
938efb77
JB
1952010-04-20 Juanma Barranquero <lekktu@gmail.com>
196
197 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
198
b4bf28b7
SM
1992010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
200
8b1e1112
SM
201 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
202 Just signal a warning rather than an error when inside a let.
203 (Fmake_variable_frame_local): Add the same test.
204
933ac235
SM
205 * font.c (syms_of_font): Make the style table vars read-only.
206
b4bf28b7
SM
207 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
208 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
209
210 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
211
93d68d0c
EZ
2122010-04-20 Eli Zaretskii <eliz@gnu.org>
213
214 Fix R2L paragraph display on TTY.
215
216 * xdisp.c (unproduce_glyphs): New function.
217 (display_line): Use it when produced glyphs are discarded from R2L
218 glyph rows.
219 (append_composite_glyph): In R2L rows, prepend the glyph rather
220 than appending it.
221
222 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
223 rather than append it. Set up the resolved_level and bidi_type
224 attributes of the appended glyph.
283ccc18
EZ
225 (produce_special_glyphs): Mirror the backslash continuation
226 character in R2L lines.
93d68d0c 227
283ccc18 228 Implement display of R2L paragraphs in GUI sessions.
26cdf528 229
283ccc18
EZ
230 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
231 append_stretch_glyph.
232 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
233 off-by-one error in computing x at end of text in the row.
234 (append_stretch_glyph): In reversed row, prepend the glyph rather
235 than append it. Set resolved_level and bidi_type of the glyph.
236 (extend_face_to_end_of_line): If the row is reversed, prepend a
237 stretch glyph whose width is such that the rightmost glyph will be
238 drawn at the right margin of the window. Fix off-by-one error on
239 TTY frames in testing whether a line needs face extension. Fix
240 face extension at ZV. If this is the last glyph row, use
241 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
242 region face.
243 (set_cursor_from_row, display_line): Use
26cdf528
EZ
244 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
245 row->continuation_lines_width.
283ccc18
EZ
246 (next_element_from_buffer): Don't call bidi_paragraph_init if we
247 are at ZV. Fixes a crash when reseated to ZV by
248 try_window_reusing_current_matrix.
45903529
EZ
249 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
250 which happens with R2L glyph rows. Fixes a crash when inserting a
251 character at end of an R2L line.
283ccc18
EZ
252 (set_cursor_from_row): Don't be fooled by truncated rows: don't
253 treat them as having zero-width characters. Improve comments.
254 Don't reverse pos_before and pos_after for reversed glyph rows.
255 Set cursor.x to negative value when the cursor might be on the
256 left fringe.
257 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
258 left fringe, not the right one.
f951a506
EZ
259 (notice_overwritten_cursor, draw_phys_cursor_glyph)
260 (erase_phys_cursor): For reversed cursor_row, support cursor on
261 the left fringe.
262
283ccc18
EZ
263 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
264 of continuation indicators on the fringes.
265 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
266 left fringe.
267
f951a506
EZ
268 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
269 draw cursor on the left fringe.
270
271 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
272 cursor on the left fringe.
273
f951a506
EZ
274 * dispnew.c (update_text_area): Handle reversed desired rows when
275 the cursor is on the left fringe.
276 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
277 below, not by 0, for when the cursor is on the left fringe.
278
3bb49aaf
JD
2792010-04-20 Jan Djärv <jan.h.d@swipnet.se>
280
281 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
282 widget is a scrollbar.
283
c0be27fd
KH
2842010-04-20 Kenichi Handa <handa@m17n.org>
285
286 * charset.c (char_charset): Consider Vcharset_non_preferred_head
287 only when the arg CHARSET_LIST is nil.
288
ce5b453a
SM
2892010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
290
291 Make variable forwarding explicit rather the using special values.
292 Basically, this makes the structure of buffer-local values and object
293 forwarding explicit in the type of Lisp_Symbols rather than use
294 special Lisp_Objects for that. This tends to lead to slightly more
295 verbose code, but is more C-like, simpler, and makes it easier to make
296 sure we handled all cases, among other things by letting the compiler
297 help us check it.
298 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
299 Removing forwarding objects.
300 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
301 (struct Lisp_Symbol): Make the various forms of variable-forwarding
302 explicit rather than hiding them inside Lisp_Object "values".
303 (XFWDTYPE): New macro.
304 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
305 (XBUFFER_LOCAL_VALUE): Remove.
306 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
307 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
308 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
309 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
310 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
311 Remove the Lisp_Misc_* header.
312 (struct Lisp_Buffer_Local_Value): Redefine.
313 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
314 (struct Lisp_Misc_Any): Add filler to get the right size.
315 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
316 Lisp_Intfwd.
317 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
318 (DEFVAR_KBOARD): Allocate a forwarding object.
319 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
320 (let_shadows_global_binding_p): New function.
321 (union Lisp_Val_Fwd): New type.
322 (make_blv): New function.
323 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
324 (store_symval_forwarding, swap_in_global_binding, Fboundp)
325 (swap_in_symval_forwarding, find_symbol_value, Fset)
326 (let_shadows_buffer_binding_p, set_internal, default_value)
327 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
328 (Fkill_local_variable, Fmake_variable_frame_local)
329 (Flocal_variable_p, Flocal_variable_if_set_p)
330 (Fvariable_binding_locus):
331 * xdisp.c (select_frame_for_redisplay):
332 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
333 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
334 * frame.c (store_frame_param):
335 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
336 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
337 value structure.
338 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
339 (clone_per_buffer_values): Only adjust markers into the current buffer.
340 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
341 (Fbuffer_local_value, set_buffer_internal_1)
342 (swap_out_buffer_local_variables):
343 Adapt to the new symbol value structure.
344 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
345 (defvar_per_buffer): Take a new arg for the fwd object.
346 (buffer_lisp_local_variables): Return a proper alist (different fix
347 for bug#4138).
348 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
349 (Fgarbage_collect): Don't handle buffer_defaults specially.
350 (mark_object): Handle new symbol value structure rather than the old
351 special Lisp_Misc_* objects.
352 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
353 * term.c (set_tty_color_mode):
354 * bidi.c (bidi_initialize): Don't access the ->value field directly.
355 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
356 a buffer_local_flags.
357 * print.c (print_object): Get rid of impossible forwarding objects.
358
fd3998ff
EZ
3592010-04-19 Eli Zaretskii <eliz@gnu.org>
360
361 * bidi.c (bidi_get_type, bidi_get_category)
362 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
363 (bidi_type_of_next_char, bidi_level_of_next_char):
364 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 365
e42cd1a7
JB
3662010-04-19 Juanma Barranquero <lekktu@gmail.com>
367
368 * dired.c (Ffile_attributes): Fix typo in docstring.
369
6e104790 3702010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
371
372 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
373 NSInteger (Bug#5811).
374
6e104790 3752010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
376
377 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
378 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
379
6e104790 3802010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
381
382 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
383
6e104790
SM
3842010-04-19 Chong Yidong <cyd@stupidchicken.com>
385
386 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
387 terminal frames (Bug#5837).
388
37dcfea0
EZ
3892010-04-19 Eli Zaretskii <eliz@gnu.org>
390
d1da276f
EZ
391 * .gdbinit (xsubchartable): New command.
392
37dcfea0
EZ
3932010-04-19 Eli Zaretskii <eliz@gnu.org>
394
395 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 396 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
397 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
398 and
399 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
400
e9515805
SM
4012010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
402
403 * alloc.c (Fpurecopy): Hash-cons if requested.
404 (syms_of_alloc): Update purify-flag docstring.
405
22aa44a8
JD
4062010-04-18 Jan Djärv <jan.h.d@swipnet.se>
407
408 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
409 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
410
ebb5722e
EZ
4112010-04-17 Eli Zaretskii <eliz@gnu.org>
412
413 Fix a crash when an NSM character is inserted at BEGV.
414
415 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
416 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
417 NEUTRAL_B or UNKNOWN_BT.
418
0f4442ef
EZ
4192010-04-16 Eli Zaretskii <eliz@gnu.org>
420
421 * xdisp.c (set_cursor_from_row): Don't consider possibility of
422 other rows with cursor unless they are different from this row and
423 this row is part of a continued line. (Bug#5943)
424
7d4e45f8
DN
4252010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
426
427 * s/freebsd.h: Restore osreldate.h include.
428 Suggested by Naohiro Aota.
429
5ba5ec85
J
4302010-04-16 Jan Djärv <jan.h.d@swipnet.se>
431
432 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
433
20af301d
CY
4342010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
435
436 * s/cygwin.h: Avoid linking against static libgcc.
437
a4b000fb
JL
4382010-04-15 Juri Linkov <juri@jurta.org>
439
440 * window.c: Add Qscroll_command.
441 Remove Vscroll_preserve_screen_position_commands.
442 (window_scroll_pixel_based, window_scroll_line_based): Check the
443 `scroll-command' property on the last command instead of searching
444 the last command in Vscroll_preserve_screen_position_commands.
445 (syms_of_window): Initialize and staticpro `Qscroll_command'.
446 Put Qscroll_command property on Qscroll_up and Qscroll_down.
447 (scroll-preserve-screen-position): Doc fix.
448 (Vscroll_preserve_screen_position_commands): Remove variable.
449
bc319ba4
DN
4502010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
451
6bb24457
DN
452 * xdisp.c (message): Do not use NO_ARG_ARRAY.
453
19d4c244
DN
4542010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
455
456 Reduce cpp use in Makefile.in.
457 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
458 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
459 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
460 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
461 (CRT0_COMPILE): Remove, inline it in the only user.
462
32129746
JL
4632010-04-14 Juri Linkov <juri@jurta.org>
464
465 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
466 `scroll-up-command' and `M-v' from `scroll-down' to
467 `scroll-down-command'.
468
9013a7f8
JL
4692010-04-14 Juri Linkov <juri@jurta.org>
470
471 * window.c (Vscroll_preserve_screen_position_commands): New variable
472 with the default value as the list of Qscroll_down and Qscroll_up.
473 (window_scroll_pixel_based, window_scroll_line_based): Search the
474 last command in the list Vscroll_preserve_screen_position_commands
475 instead of comparing with Qscroll_up and Qscroll_down.
476
4bef8d26
JD
4772010-04-13 Jan Djärv <jan.h.d@swipnet.se>
478
92848133
JD
479 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
480 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
481 does that.
482
4bef8d26
JD
483 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
484 to zero.
485
58b963f7
SM
4862010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
487
84164a0d
SM
488 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
489
2b0a91e7
SM
490 Try to solve the problem of spurious EOF chars in long lines of text
491 sent to interactive subprocesses.
492 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
493 (system_process_attributes): Remove unused var `ttotal'.
494 * process.c (send_process): Don't bother breaking long line with EOF
495 chars when talking to ttys any more.
496 (wait_reading_process_output): Output a warning when called in such
497 a way that it could block without being interruptible.
498
58b963f7
SM
499 Try to detect file modification within the same second.
500 * buffer.h (struct buffer): New field modtime_size.
501 * buffer.c (reset_buffer): Initialize it.
502 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
503 (Fverify_visited_file_modtime): Check it.
504 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
505 (Fset_visited_file_modtime): Set (or clear) it.
506
01f5787b
SM
5072010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
508
509 * process.c (status_notify): Remove unused var `ro'.
510
83725342
JD
5112010-04-12 Jan Djärv <jan.h.d@swipnet.se>
512
513 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
514 more than one visual (Bug#5938).
515
b9465836
DN
5162010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
517
50426a04
JB
518 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
519 Undefine.
b9465836 520
8d9c8ece
DN
5212010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
522
b1f52161
DN
523 Remove C_SWITCH_SYSTEM_TEMACS.
524 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
525 (malloc, realloc, free): Use emacs, not temacs for conditional
526 definition.
527
528 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
529 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
530
8d9c8ece
DN
531 Use autoconf, not cpp for some variables.
532 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
533 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
534 (ALL_CFLAGS): Use them as make variables.
535 (really-lwlib, really-oldXMenu): Do not pass them.
536
1ecb2d3f
JD
5372010-04-11 Jan Djärv <jan.h.d@swipnet.se>
538
539 * xmenu.c (apply_systemfont_to_dialog): New.
540 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
541
3a4fa2f2
SM
5422010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
543
97e53006
SM
544 * process.c (exec_sentinel): Preserve current-buffer.
545
3a4fa2f2
SM
546 * process.c (read_process_output): Move the save-current-buffer to
547 apply to both the filter and the non-filter branches.
548
88df7221
DN
5492010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
550
551 * s/msdos.h (UNEXEC): New definition.
552
5634ff85
YM
5532010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
554
6eff5c3d
YM
555 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
556 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
557
558 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
559 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
560 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
561 TRY_WINDOW_CHECK_MARGINS.
562
563 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
564 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
565 width only when it is for padding.
5634ff85 566
b13aef54
J
5672010-04-09 Jan Djärv <jan.h.d@swipnet.se>
568
569 * xfns.c (Fx_show_tip): Call try_window in a loop until
570 fonts_changed_p is zero (Bug#2423).
571
21d28484
EZ
5722010-04-08 Eli Zaretskii <eliz@gnu.org>
573
574 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
575 the end of TEXT_AREA. (Bug#5856)
576
0269ef77
JD
5772010-04-08 Jan Djärv <jan.h.d@swipnet.se>
578
579 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
580 HAVE_GCONF.
581
5930fe97
EZ
5822010-04-08 Eli Zaretskii <eliz@gnu.org>
583
584 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
585 prev.orig_type, for resolving type of NSM. (Bug#5858)
586
99852628
JD
5872010-04-08 Jan Djärv <jan.h.d@swipnet.se>
588
589 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
590 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
591 in current_font.
592 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
593 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
594 New functions.
595 (syms_of_xsettings): Initialize current_font.
596 defsubr Sfont_get_system_normal_font.
99852628
JD
597
598 * xsettings.h (Ffont_get_system_normal_font,
599 xsettings_get_system_normal_font): Declare.
600
601 * xfns.c (extern xlwmenu_default_font): Remove.
602 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
603 to xlwmenu.c.
604
605 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
606 menu items in UTF-8.
607
608 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
609 (apply_systemfont_to_menu): New function.
610 (set_frame_menubar, create_and_show_popup_menu): Call
611 apply_systemfont_to_menu.
612
7fc874c4
J
6132010-04-07 Jan Djärv <jan.h.d@swipnet.se>
614
615 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
616 FRAME_LINE_TO_PIXEL_Y.
617
618 * xterm.c (x_set_window_size_1): Don't add border_width/height to
619 pixelwidth/height.
620
863bf481
DN
6212010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
622
5e5a3b92
DN
623 Simplify code for HP machines.
624 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
625 for GNU_LINUX, not needed.
626 (UNEXEC, NEED_BSDTTY): Move definitions...
627 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
628
863bf481
DN
629 * m/iris4d.h (UNEXEC): Move definition ...
630 * s/irix6-5.h (UNEXEC): ... here.
631
3e6bec3b
JD
6322010-04-04 Jan Djärv <jan.h.d@swipnet.se>
633
634 * xfns.c (set_machine_and_pid_properties): New function.
635 (Fx_create_frame): Call set_machine_and_pid_properties.
636
2912322b
SM
6372010-04-03 Eli Zaretskii <eliz@gnu.org>
638
1502b819
EZ
639 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
640 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
641 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
642
2912322b
SM
643 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
644 in this function. (Bug#5703)
645
6462010-04-03 Chong Yidong <cyd@stupidchicken.com>
647
648 * nsterm.h: Fix last change.
649
c435b432
DN
6502010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
651
a568f507
DN
652 * m/intel386.h (NO_REMAP): Move definition ...
653 * s/msdos.h (NO_REMAP): ... here.
654
4cd9f6c2
DN
655 * m/vax.h (CRT0_DUMMIES): Remove, unused.
656
c435b432
DN
657 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
658 used on those platforms.
659
42a2c622
DN
6602010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
661
662 Remove extern errno declarations.
663 * xterm.c:
664 * xrdb.c:
665 * w32term.c:
666 * unexec.c:
667 * unexaix.c:
668 * sysdep.c:
669 * process.c:
670 * lread.c:
671 * keyboard.c:
672 * floatfns.c:
673 * filelock.c:
674 * fileio.c:
675 * emacs.c (main):
676 * ecrt0.c:
677 * dispnew.c:
678 * callproc.c:
679 * buffer.c: Remove errno extern declarations.
680 * s/netbsd.h (NEED_ERRNO): Remove.
681
8224f93d
DN
6822010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
683
684 Remove all uses of LIBX11_SYSTEM.
685 * Makefile.in (LIBX11_SYSTEM): Remove.
686 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
687 instead.
688
814062c7
EZ
6892010-04-01 Eli Zaretskii <eliz@gnu.org>
690
ed68db4d
EZ
691 Remove support for DJGPP v1.x (bug#5813).
692
693 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
694 * s/msdos.h:
695 * unexec.c (make_hdr, copy_text_and_data):
696 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 697 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
698 (IT_set_terminal_modes, __write, _rename, gethostname)
699 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
700 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
701 the value of __DJGPP__.
ed68db4d
EZ
702 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
703 compatibility code.
8224f93d
DN
704 * lread.c:
705 * gmalloc.c (memalign):
706 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
707 * emacs.c (main):
708 * dosfns.c (init_dosfns):
ed68db4d
EZ
709 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
710
52f4d8d5
EZ
7112010-04-01 Eli Zaretskii <eliz@gnu.org>
712
814062c7
EZ
713 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
714 string with `cursor' property comes from an `after-string'
715 overlay. (Bug#5816)
716
0dc2e11d
GM
7172010-04-01 Glenn Morris <rgm@gnu.org>
718
719 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
720 Define as Makefile variables.
721 (LIBX): Use above variables rather than directly using autoconf.
722
1d29df59
DN
7232010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
724
725 Clean up BSD_SYSTEM use.
726 * xterm.c:
727 * process.c:
728 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
729 for including <sys/ioctl.h>.
730 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
731 code is only used for MSDOS.
732
1546c559
JL
7332010-03-31 Juri Linkov <juri@jurta.org>
734
735 * image.c: Add `Qextension_data'.
736 (syms_of_image): Initialize and staticpro `Qextension_data'.
737 (Fimage_metadata): Rename from `Fimage_extension_data'.
738 (gif_load): Put GIF extension data to the property
739 `Qextension_data'.
740
b8a1d5a1
CY
7412010-04-05 Chong Yidong <cyd@stupidchicken.com>
742
743 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
744 terminal frames (Bug#5837).
745
6521c534
CY
7462010-03-31 Chong Yidong <cyd@stupidchicken.com>
747
748 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
749 * nsterm.h: Fix prototype.
750
52c30783
EZ
7512010-03-31 Eli Zaretskii <eliz@gnu.org>
752
753 * xdisp.c (highlight_trailing_whitespace): Support highlight of
754 trailing whitespace in right-to-left rows.
755
855a0da7
SM
7562010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
757
758 Get rid of the direct_output optimizations.
759 * keyboard.c (nonundocount): Remove extern declaration.
760 (command_loop_1): Remove brittle optimisation for cheap and
761 common operations.
762 * xdisp.c (redisplay_internal): Don't bother checking
763 redisplay_performed_directly_p any more.
764 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
765 any more.
766 * dispnew.c (redisplay_performed_directly_p)
767 (direct_output_for_insert, direct_output_forward_char):
768 * dispextern.h (redisplay_performed_directly_p)
769 (direct_output_for_insert, direct_output_forward_char): Remove.
770 * cmds.c (nonundocount): Make it static.
771
85738751 7722010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
773
774 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
775
85738751 7762010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
777
778 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
779 invisible (Bug#5766).
780
85738751 7812010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 782
855a0da7
SM
783 * xdisp.c (x_consider_frame_title, update_window_cursor):
784 Remove HAVE_NS conditionals.
194d44e7 785 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
786
787 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
788 filename for the title.
789 (ns_set_doc_edited): Do nothing if the selected window is a
790 minibuffer window.
791
792 * nsterm.h: Add prototypes for ns_set_name_as_filename and
793 ns_set_doc_edited.
794
795 * nsterm.m: Remove unneeded prototype.
796
85738751 7972010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
798
799 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
800 in the DOC file. (Bug#5336)
801
85738751 8022010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
803
804 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
805
75d1428c
SM
8062010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
807
808 * window.c (keys_of_window): Remove redundant/overridden bindings.
809
82043cfb
EZ
8102010-03-30 Eli Zaretskii <eliz@gnu.org>
811
812 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
813 Restore original behavior when the iterator is not bidi_p.
814
b5dd0ae7
DN
8152010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
816
817 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
818
bd924a5d
EZ
8192010-03-30 Eli Zaretskii <eliz@gnu.org>
820
821 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
822 are outside the range of cached character positions.
823
3580374b
JB
8242010-03-30 Juanma Barranquero <lekktu@gmail.com>
825
826 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
827
a7b02820
EZ
8282010-03-30 Eli Zaretskii <eliz@gnu.org>
829
830 Initial support for bidirectional editing.
831
832 * Makefile.in (obj): Include bidi.o.
833 (bidi.o): New target.
834
835 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
836 ($(BLD)/bidi.$(O)): New target.
837
838 * bidi.c: New file.
839
840 * buffer.h (struct buffer): New members bidi_display_reordering
841 and bidi_paragraph_direction.
842
843 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
844 and bidi_paragraph_direction.
845 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
846 and bidi-paragraph-direction.
847 (Fbuffer_swap_text): Swap the values of
848 bidi_display_reordering and bidi_paragraph_direction.
849
850 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
851 (bidi_type_t, bidi_dir_t): New types.
852 (bidi_saved_info, bidi_stack, bidi_it): New structures.
853 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
854 prev_stop, base_level_stop, and eol_pos.
855 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
856 (IT_STACK_SIZE): Enlarge to 5.
857 (struct glyph_row): New member reversed_p.
858 <string_buffer_position>: Update prototype.
859 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
860 glyph_row if bidi_it.paragraph_dir == R2L.
861 (struct glyph): New members resolved_level and bidi_type.
862
863 * dispnew.c (direct_output_forward_char): Give up if we need bidi
864 processing or buffer's direction is right-to-left.
865 (prepare_desired_row): Preserve the reversed_p flag.
866 (row_equal_p): Compare the reversed_p attributes as well.
867
868 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
869 bidi_init_it and set it->paragraph_embedding from the current
870 buffer's value of bidi_paragraph_direction.
871 (reseat_1): Initialize bidi_it.first_elt.
872 (set_iterator_to_next, next_element_from_buffer): Use the value of
873 paragraph_embedding to determine the paragraph direction.
874 (set_iterator_to_next): Under bidi reordering, call
875 bidi_get_next_char_visually. Call bidi_paragraph_init if the
876 new_paragraph flag is set in the bidi iterator.
877 (next_element_from_buffer): If bidi_it.first_elt is set,
878 initialize paragraph direction and find the first character to
879 display in the visual order. If reseated to a middle of a line,
880 prime the bidi iterator starting at the line's beginning. Handle
881 the situation where we overstepped stop_charpos due to
882 non-linearity of the bidi iteration. Likewise for when we back up
883 beyond the previous stop_charpos. When moving across stop_charpos,
884 record it in prev_stop.
885 (display_line): Set row->end and it->start for the next row to the
886 next character in logical order. Always extend reversed_p rows to
887 the end of line, even if they end at ZV. Copy the reversed_p flag
888 to the next glyph row. Keep calling set_cursor_from_row for
889 bidi-reordered rows even if we already have a possible candidate
890 for cursor position. Set row_end after all the row's glyphs have
891 been produced, by looping over the glyphs. Record the position
892 after EOL in it->eol_pos, and use it to set end_pos of the last
893 row produced for a continued line.
894 <Qright_to_left, Qleft_to_right>: New variables.
895 (syms_of_xdisp): Initialize and staticpro them.
896 (string_buffer_position_lim): New function.
897 (string_buffer_position): Most of code moved to
898 string_buffer_position_lim. Last argument and return value are
899 now EMACS_INT; all callers changed.
900 (set_cursor_from_row): Rewritten to support bidirectional text and
901 reversed glyph rows.
902 (text_outside_line_unchanged_p, try_window_id): Disable
903 optimizations if we are reordering bidirectional text and the
904 paragraph direction can be affected by the change.
905 (append_glyph, append_composite_glyph)
906 (produce_image_glyph, append_stretch_glyph): Set the
907 resolved_level and bidi_type members of each glyph.
908 (append_glyph): If the glyph row is reversed, prepend the glyph
909 rather than appending it.
910 (handle_stop_backwards): New function.
911 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
912 (reseat): call handle_stop_backwards to recompute prev_stop and
913 base_level_stop for the new position.
914 (handle_invisible_prop): Under bidi iteration, skip invisible text
915 using bidi_get_next_char_visually. If we are `reseat'ed, init the
916 paragraph direction. Update IT->prev_stop after skipping
917 invisible text.
918 (move_it_in_display_line_to): New variables prev_method
919 and prev_pos. Compare for strict equality in
920 BUFFER_POS_REACHED_P.
921 (try_cursor_movement): Examine all the candidate rows that occlude
922 point, to return the best match. If rows are bidi-reordered
923 and point moved backwards, back up to the row that is not a
924 continuation line, and start looking for a suitable row from
925 there.
926
927 * term.c (append_glyph): Reverse glyphs by pre-pending them,
928 rather than appending, if the glyph_row's reversed_p flag is set.
929 Set the resolved_level and bidi_type members of each glyph.
930
931 * .gdbinit (pbiditype): New command.
932 (pgx): Use it to display bidi level and type of the glyph.
933 (pitx): Display some bidi information about the iterator.
934 (prowlims, pmtxrows): New commands.
935
32a8894e
DN
9362010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
937
938 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
939 * s/usg5-4.h (LIBS_DEBUG):
940 * s/irix6-5.h (C_DEBUG_SWITCH):
941 * s/gnu-linux.h (LIBS_DEBUG):
942 * s/darwin.h (LIBS_DEBUG):
943 * s/bsd-common.h (LIBS_DEBUG):
944 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
945 * m/iris4d.h (LIBS_DEBUG):
946 * m/hp800.h (LIBS_DEBUG): Remove definitions.
947
948 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
949 (LIBS_DEBUG): Remove definition.
950
649dbf36
CY
9512010-03-27 Chong Yidong <cyd@stupidchicken.com>
952
953 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
954 Windows.
955
cad4261f
YM
9562010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
957
958 * process.c (Fmake_network_process): Don't call turn_on_atimers around
959 `connect' (Bug#5723).
960
cd591dbc
HE
9612010-03-25 Helmut Eller <eller.helmut@gmail.com>
962
963 * process.c (Fmake_network_process): Call `select' for interrupted
964 `connect' rather than creating new socket (Bug#5173).
965
e867cb5d 9662010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
967
968 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
969
970 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
971
972 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
973
e867cb5d 9742010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
975
976 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
977 XLoadQueryFont.
978
e867cb5d 9792010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
980
981 * coding.c (decode_coding_ccl): Fix previous change for the
982 multibyte case.
fb608df3
KH
983 (encode_coding_ccl): Don't setup ccl program here. Fix for the
984 case that the output buffer is fullfilled.
985 (encode_coding): Setup ccl program here.
fbdc1721 986
e867cb5d 9872010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
988
989 * editfns.c (Fformat): Account for string precision when computing
990 field width (Bug#5710).
991
5845f0ed
DN
9922010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
993
814fb708
DN
994 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
995
5845f0ed
DN
996 Simplify LIBS_MACHINE definitions.
997 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
998 * m/iris4d.h (LIBS_MACHINE): Likewise.
999 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1000 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1001 * s/netbsd.h: Remove commented out code.
5845f0ed 1002
b7064064
DN
10032010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1004
df7734b2
DN
1005 Remove dead code dealing with POSIX_SIGNALS.
1006 * atimer.c (set_alarm): Remove dead code, all USG systems define
1007 POSIX_SIGNALS.
1008 * data.c (arith_error): Likewise.
1009 * keyboard.c (input_available_signal, handle_user_signal)
1010 (interrupt_signal): Likewise.
1011 * process.c (sigchld_handler): Likewise.
1012 (create_process): Remove if 0 code. Remove HPUX conditional when
1013 !defined (POSIX_SIGNALS), it cannot be true.
1014 * syssignal.h: Remove USG5_4 and USG conditionals when
1015 !POSIX_SIGNALS, they cannot be true.
1016
b7064064
DN
1017 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1018 NO_SOCK_SIGIO, not used anymore.
1019
55da5ee3
DN
10202010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1021
0be96e3a
DN
1022 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1023 support vax on BSDs.
1024
55da5ee3
DN
1025 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1026 * s/aix4-2.h (ORDINARY_LINK): ... here.
1027
c0282183
AS
10282010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1029
82c3d67a
AS
1030 * Makefile.in (abs_builddir): Define.
1031 (bootstrap_exe): Use it.
1032 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1033
3613edce
SM
10342010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1035
1036 * Makefile.in (bootstrap_exe): Use an absolute name.
1037
7f110ddc
DN
10382010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1039
22e87574
DN
1040 Remove support for old GNU/Linux using libc version 5.
1041 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1042 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1043
05a670e6
DN
1044 Consolidate redundant definitions in s/bsd-common.h.
1045 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1046 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1047 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1048 doing it in all files that include this one.
1049 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1050 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1051 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1052 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1053 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1054 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1055 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1056 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1057 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1058
2968f561
DN
1059 Consolidate redundant definitions.
1060 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1061 it's undefined in all files that include this one.
1062 (POSIX_SIGNALS): Define here instead of doing it in all files that
1063 include this one.
1064 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1065 (POSIX_SIGNALS): Do not define.
1066 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1067 (POSIX_SIGNALS): Do not define.
1068 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1069 (POSIX_SIGNALS): Do not define.
1070
15d25dc0
DN
1071 Remove support for old UNIX System V systems.
1072 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1073 * s/usg-5-4-2.h: Remove.
1074
07e339e4
DN
1075 Remove support for Solaris on PPC and for old versions.
1076 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1077 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1078 that cancel each other.
1079 * s/sol2-3.h:
1080 * s/sol2-4.h:
1081 * s/sol2-5.h: Remove.
1082 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1083 (NO_REMAP): Remove, unused.
1084 (UNEXEC): Move definition ...
1085 * s/aix4-2.h (UNEXEC): ... here.
1086
7f110ddc
DN
1087 * s/openbsd.h: Remove support for non-ELF and for systems that do
1088 not support shared libraries.
1089 * s/netbsd.h:
1090 * s/freebsd.h: Likewise.
1091
605f35cd
DN
10922010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1093
1094 Remove non-working support for lynxos 3.0.
1095 * s/lynxos.h: Remove file.
1096
1097 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1098 COFF_BSD_SYMBOLS, nothing defines it anymore.
1099
aed71cf4
DN
11002010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1101
1102 Remove obsolete uses of HAVE_SHM.
1103 * emacs.c (standard_args):
1104 (Fdump_emacs):
1105 (syms_of_emacs): Remove code depending on HAVE_SHM.
1106
1107 * alloc.c: Remove HAVE_SHM dependent definition.
1108
1109 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1110
aded53ff
GM
11112010-03-18 Glenn Morris <rgm@gnu.org>
1112
17284745
GM
1113 * emacs.c (USAGE4): Hard-code bug address.
1114 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1115 (bug_reporting_address): Remove.
1116 (main): Don't call bug_reporting_address.
1117
aded53ff
GM
1118 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1119 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1120
303500aa
CY
11212010-03-15 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * xfns.c (Fx_create_frame):
1124 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1125 on left.
1126
cef3058f
CY
11272010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1128
1129 * editfns.c (Fformat): Account for string precision when computing
1130 field width (Bug#5710).
1131
a647d59d
CY
11322010-03-12 Chong Yidong <cyd@stupidchicken.com>
1133
4fa42018
CY
1134 * xfns.c (Fx_create_frame): Set default to Qright.
1135
a647d59d
CY
1136 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1137 all window systems.
1138
6da23aaa
EZ
11392010-03-12 Eli Zaretskii <eliz@gnu.org>
1140
a96f6398 1141 These changes remove termcap.c from the build on Posix platforms.
83d02def 1142 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1143 (MSDOS_OBJ): ...to here.
1144 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1145 now identical to when LIBS_TERMCAP is defined.
1146
1147 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1148
1149 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1150
a96f6398 1151 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1152
288f9fc0
CY
11532010-03-10 Chong Yidong <cyd@stupidchicken.com>
1154
1155 * Branch for 23.2.
1156
d48cd3f4
SM
11572010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1158
1159 Cleanup setup of gl_state in various parts of the code.
1160 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1161 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1162 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1163 (skip_chars):
1164 * regex.c (regex_compile): Use it.
1165 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1166 it's now set in regex_compile when/if we need it.
1167
618db430
SM
11682010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1169
c0335e02
SM
1170 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1171 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1172 (QUIT): Use it to consolidate code and remove redundancy.
1173 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1174
254c06a8
SM
1175 * regex.c (regex_compile): Setup gl_state as well.
1176
618db430
SM
1177 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1178 (in_classes): Use CONSP before XCAR/XCDR.
1179
233f0c9f
CY
11802010-03-03 Chong Yidong <cyd@stupidchicken.com>
1181
1182 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1183 definitions, so that keyboard macros are correctly handled
1184 (Bug#5481).
1185
75f80e63
EZ
11862010-03-02 Eli Zaretskii <eliz@gnu.org>
1187
1188 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1189 text that could be relocated inside the call to emacs_mule_char.
1190 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1191 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1192
dcfb9bc4
KH
11932010-03-02 Kenichi Handa <handa@m17n.org>
1194
fc9a17bc
KH
1195 * character.c (parse_str_as_multibyte): Fix handling of the
1196 multibyte form of raw-bytes.
1197 (str_as_multibyte): Likewise.
1198
dcfb9bc4
KH
1199 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1200 form of raw-bytes.
1201
412c01b6
CY
12022010-02-28 Chong Yidong <cyd@stupidchicken.com>
1203
1204 * charset.c (load_charset_map_from_file)
1205 (load_charset_map_from_vector): Zero out allocated
1206 charset_map_entries before using them.
1207
df7e1ea0
AS
12082010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1209
1210 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1211
fe69a722
CY
12122010-02-27 Chong Yidong <cyd@stupidchicken.com>
1213
4ed28cf4
CY
1214 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1215 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1216
7379cfce
KH
12172010-02-26 Kenichi Handa <handa@m17n.org>
1218
f88cc4d6
KH
1219 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1220
7379cfce
KH
1221 * xdisp.c (reseat_to_string): Fix previous change.
1222
cf2fdcfb
CY
12232010-02-26 David Reitter <david.reitter@gmail.com>
1224
1225 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1226 Lisp_Object (Bug#4736).
1227
cc6c7c75
KH
12282010-02-25 Kenichi Handa <handa@m17n.org>
1229
1230 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1231
32e737d7
JD
12322010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1233
1234 * xterm.c (XTflash): Move declarations before statements.
1235
1236 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1237 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1238 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1239 (xg_create_tool_bar): Remove unused variables.
1240 (x_wm_set_size_hint): Move declarations before statements.
1241 (xg_create_frame_widgets): Remove variable grav,
1242
676cae9f
CY
12432010-02-21 Chong Yidong <cyd@stupidchicken.com>
1244
1245 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1246
886cc2b8
SM
12472010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1248
1249 * term.c (fatal): Add a final \n if needed (bug#5596).
1250
ddb2d8e2
CY
12512010-02-18 Chong Yidong <cyd@stupidchicken.com>
1252
1253 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1254
2a4f8d3d
GM
12552010-02-18 Glenn Morris <rgm@gnu.org>
1256
1257 * callint.c (Finteractive): Doc fix.
1258
ebaf11b6
KH
12592010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1260
886cc2b8
SM
1261 * coding.c (record_conversion_result):
1262 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1263 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1264 memory allocation error.
1265
d0396581
KH
12662010-02-17 Kenichi Handa <handa@m17n.org>
1267
886cc2b8
SM
1268 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1269 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1270 (decode_coding): Setup ccl program here. Keep looping when the
1271 decoder stopped because the output buffer is
1272 fullfilled (bug#5534).
1273
1274 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1275
98599f74
JD
12762010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1277
471e4f04 1278 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1279 bug #5571.
886cc2b8 1280 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1281 overdrawn.
98599f74 1282
182659ae
JD
12832010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1284
1285 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1286 doing_interact here.
1287 (ice_connection_closed): New function.
1288 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1289 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1290 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1291 returns I/O error.
1292 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1293 bug #5512.
1294
9be32c4e 12952010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1296
1297 * nsfont.m (nsfont_open): The system's value for the font descent
1298 is negative, so round it down to avoid clipping.
1299
a2f3eb19
CY
13002010-02-06 Chong Yidong <cyd@stupidchicken.com>
1301
1302 * charset.c (load_charset_map_from_file)
1303 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1304 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1305
3088147c
CY
13062010-02-05 Chong Yidong <cyd@stupidchicken.com>
1307
1308 * charset.c (load_charset_map_from_file): Allocate large
1309 charset_map_entries structure on the heap rather than the stack.
1310 (Bug#5526).
1311
b57d9029
KH
13122010-01-31 Kenichi Handa <handa@m17n.org>
1313
1314 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1315 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1316
c67d885b
CY
13172010-01-31 Chong Yidong <cyd@stupidchicken.com>
1318
1319 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1320 <deactivated@gmail.com> (Bug#3605).
1321
8fab2362
CY
13222010-01-31 David De La Harpe Golden <david@harpegolden.net>
1323
1324 * fileio.c (Frename_file): Correctly rename symlinks to
1325 directories (Bug#5496).
1326
cb2a62f2
CY
13272010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1328
1329 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1330
944c7a26
AS
13312010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1332
1333 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1334
c024ac08
CY
13352010-01-29 Chong Yidong <cyd@stupidchicken.com>
1336
1337 * frame.c (DEFAULT_ROWS): Change default to 35.
1338
1339 * xfns.c (x_default_font_parameter): Change default XFT font to
1340 monospace-10 (Bug#3643).
1341
af93af83
EZ
13422010-01-29 Eli Zaretskii <eliz@gnu.org>
1343
1344 * w32inevt.c (key_event): Remove unnecessary comparison of
1345 event->uChar.AsciiChar with 128.
1346
ca0eb708
CY
13472010-01-28 Chong Yidong <cyd@stupidchicken.com>
1348
b242dbfc
CY
1349 * fileio.c (Frename_file): Fix last change (Bug#5487).
1350
ca0eb708
CY
1351 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1352
1353 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1354
45d45af5
JD
13552010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1356
1357 * xfns.c (Fx_create_frame): Remove window size matching code from
1358 2010-01-15.
1359 (x_get_current_desktop, x_get_desktop_workarea): Remove
1360
7e233730
JR
13612010-01-27 Jason Rumney <jasonr@gnu.org>
1362
1363 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1364 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1365
86e893e3
KH
13662010-01-27 Kenichi Handa <handa@m17n.org>
1367
1368 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1369 pattern string (Bug#4209).
86e893e3 1370
8719abec
CY
13712010-01-27 David De La Harpe Golden <david@harpegolden.net>
1372
1373 * fileio.c (Frename_file): Call copy-directory and
1374 delete-directory for directories, in order to handle cross-device
1375 renaming (Bug#3353).
1376
844794c8
JD
13772010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1378
aa3e13b5 1379 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1380 sizes 24 and 10. Bug #3643.
844794c8 1381
bd4b5750
SM
13822010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1383
8dc1adf6 1384 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1385 * keymap.c (shadow_lookup): Add `remap' arg.
1386 (describe_map, describe_vector): Update calls to shadow_lookup.
1387 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1388 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1389 perform remapping during shadow_lookup check of remapped_sequences.
1390
285d07e2
CY
13912010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1392
1393 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1394 png_check_sig, which has been removed in libpng 1.4.
1395
c6d09b8d
CY
13962010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1397
1398 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1399 lacks this header file).
1400
3d782998
YM
14012010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1402
1403 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1404 as in Emacs 22.
1405
2aff7c53
YM
14062010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1407
1408 * lisp.h (make_pure_string): String pointer arg now points to const.
1409
1410 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1411 args now point to const.
1412
74327f7a
EZ
14132010-01-22 Eli Zaretskii <eliz@gnu.org>
1414
1415 * lread.c (Fload): Don't treat files without .elc extension as
1416 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1417 them. (bug#5303)
1418
4d1e6632
KH
14192010-01-20 Kenichi Handa <handa@m17n.org>
1420
1421 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1422 treat the source as actual byte sequence.
1423
1fdede8f
AM
14242010-01-19 Alan Mackenzie <acm@muc.de>
1425
1426 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1427 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1428 `signal_after_change_p' to `coherent_change_p', and make the
1429 invocation of `modify_region' conditional on it.
1430
67477f30
JD
14312010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1432
1433 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1434 for debug purpose.
1435 (syms_of_xsettings): Declare xft-settings.
1436
244b023e
CY
14372010-01-18 Chong Yidong <cyd@stupidchicken.com>
1438
1439 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1440
617364fe
CY
14412010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1442
1443 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1444
4fe22cdf
CY
14452010-01-16 Chong Yidong <cyd@stupidchicken.com>
1446
1447 * emacs.c (standard_args): Adjust arg priorities to reflect how
1448 they are processed in startup.el.
1449
e118d2be
AS
14502010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1451
1452 * Makefile.in (lisp, shortlisp): Update.
1453
523ae620
SM
14542010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1455
1456 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1457 code, link the new kboard into all_kboard before running Lisp code,
1458 and protect the new terminal with GCPRO (Bug#5365).
1459 (x_term_init): Remove unused var `atom'.
1460 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1461
f0d13888
JD
14622010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1463
1464 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1465 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1466 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1467 this. Bug #3643.
f0d13888 1468
cc320f07
KH
14692010-01-15 Kenichi Handa <handa@m17n.org>
1470
1471 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1472
7ffdf101
CY
14732010-01-15 Chong Yidong <cyd@stupidchicken.com>
1474
1475 * nsterm.m (Qnone): Define.
1476
1477 * nsfns.m (Qnone): Move definition to nsterm.m.
1478
d12bd917
KH
14792010-01-14 Kenichi Handa <handa@m17n.org>
1480
1481 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1482 systems.
1483
d9a7c140
KH
14842010-01-14 Kenichi Handa <handa@m17n.org>
1485
1486 Make auto-composition work on all buffers even if they are
1487 fundamental mode.
1488
1489 * composite.c (Vauto_composition_mode): New variable.
1490 (composition_compute_stop_pos): Check Vauto_composition_mode
1491 instead of Vauto_composition_function.
1492 (composition_adjust_point, Ffind_composition_internal): Likewise.
1493 (syms_of_composite): Declare Lisp variable
1494 "auto-composition-mode" here.
1495
63286bb2
CY
14962010-01-13 Chong Yidong <cyd@stupidchicken.com>
1497
1498 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1499 during call to vendor-specific-keysyms (Bug#5365).
1500
c2623ee7
YM
15012010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1502
1503 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1504 Call SIGNAL_THREAD_CHECK (Bug#5333).
1505
1506 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1507 Call SIGNAL_THREAD_CHECK.
1508
0b5397c2
SM
15092010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1510
1511 Try to fix bug#5314. This is probably not the final word, tho.
1512 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1513 recent-auto-save-p as a side-effect.
1514 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1515 * buffer.c (Fkill_buffer, reset_buffer):
1516 * editfns.c (Fsubst_char_in_region):
1517 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1518 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1519
dc954cb2
KH
15202010-01-13 Kenichi Handa <handa@m17n.org>
1521
1522 Display buffer name, etc. in mode line by composing correctly.
1523
1524 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1525 STRING is not nil.
0b5397c2 1526 (display_mode_element): Adjust for the change of
dc954cb2
KH
1527 decode_mode_spec and display_line.
1528 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1529 (display_string): Handle the case that STRING is non-null and
1530 LISP_STRING is not nil.
1531
0b5397c2
SM
1532 * xterm.c (x_draw_composite_glyph_string_foreground):
1533 Pay attention to s->face->overstrike.
dc954cb2
KH
1534
1535 * composite.c (composition_reseat_it): Don't check PT if STRING is
1536 non nil.
1537
4a00eaca
YM
15382010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1539
1540 * keyboard.c (read_char): Don't apply previous change when current
1541 buffer is unchanged by command execution.
1542
60abb287
JD
15432010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1544
1545 * keyboard.c (read_char): Return after executing from special map.
1546
893db5bc
GM
15472010-01-12 Glenn Morris <rgm@gnu.org>
1548
1549 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1550 bug-gnu-emacs rather than emacs-pretest-bug.
1551
4d03ece0
CY
15522010-01-11 Chong Yidong <cyd@stupidchicken.com>
1553
1554 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1555 initializing the Lisp variables that depend on them.
1556
1df47e38
YM
15572010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1558
1559 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1560 Clear areas that will not be updated after change of menu bar lines.
1561 Clear the menu bar window's current matrix when the window gets empty.
1562
2f1c6384
CY
15632010-01-09 Chong Yidong <cyd@stupidchicken.com>
1564
e398c61c
CY
1565 * intervals.h, textprop.c (extend_property_ranges): Return value
1566 and args changed. Discard properties that begin at or after the
1567 new end (Bug#5306).
1568
1569 * editfns.c (Fformat): Caller changed.
1570
e5a29a10
CY
1571 * nsterm.m (ns_set_default_prefs): Delete function.
1572 (syms_of_nsterm): Initialize ns_command_modifier,
1573 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1574 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1575
2f1c6384
CY
1576 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1577 position (Bug#4040).
1578
d427a9fa
EZ
15792010-01-09 Eli Zaretskii <eliz@gnu.org>
1580
1581 * editfns.c (Ffloat_time): Doc fix.
1582
21b9df2f
JD
15832010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1584
1585 * xfns.c (Fx_create_frame): Don't create frame larger than display
1586 by default bug#3643.
1587
4b00d3b1
YM
15882010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1589
1590 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1591 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1592 windows above internal border.
1593
1594 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1595 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1596 windows above internal border.
1597
1598 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1599 tool bar windows specially.
1600
1601 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1602
1603 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1604 specially.
1605 (XTflash): Take account of menu bar height.
1606
1607 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1608 specially.
1609
5075d853
JD
16102010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1611
ac146f82 1612 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1613 also be true before we can return early (bug #5339).
1614
474217c8
CY
16152010-01-06 David Reitter <david.reitter@gmail.com>
1616
1617 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1618 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1619 (Bug#3233).
1620
c0e6d47d
JD
16212010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1622
d0cf45b7
JD
1623 * font.c (font_open_entity): Enable chache and call cached_font_ok
1624 for the driver if defined.
1625 (QCuser_spec): New symbol.
1626 (font_spec_from_name): Save name as user-spec.
1627 (font_load_for_lface): Keep user-spec instead of name.
1628 (font_open_by_name): Save name as user-spec.
1629 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1630 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1631
1632 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1633 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1634 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1635
1636 * font.h (struct font_driver): Add cached_font_ok.
1637
c0e6d47d
JD
1638 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1639
7c583cd8
JD
16402010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1641
1642 * xterm.c (x_new_font): Move code for setting rows/cols before
1643 resizing ...
ac146f82 1644 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1645
1646 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1647 (xg_frame_resized, xg_frame_set_char_size):
1648 Call xg_clear_under_internal_border.
7c583cd8 1649 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1650
03f77f0a
CY
16512010-01-05 Chong Yidong <cyd@stupidchicken.com>
1652
1653 * keyboard.c (read_key_sequence): Catch keyboard switch after
1654 making a new tty frame (Bug#5095).
1655
2a1ef5be
KH
16562010-01-05 Kenichi Handa <handa@m17n.org>
1657
1658 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1659
e3eb1dae
SM
16602010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1661
1662 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1663 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1664 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1665
777013f2
MA
16662010-01-03 Michael Albinus <michael.albinus@gmx.de>
1667
1668 * dbusbind.c (xd_add_watch): Improve debug message.
1669 (xd_remove_watch): Improve debug message. If DATA is the session
1670 bus, unset D-Bus session environment.
1671 (Fdbus_init_bus): Pass the bus as argument to
1672 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1673
8932b1c2
CY
16742010-01-01 Chong Yidong <cyd@stupidchicken.com>
1675
87231e2c
CY
1676 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1677
4801c5fa
CY
1678 * lread.c (syms_of_lread): Make it clearer that these are the
1679 names of loaded files (Bug#5068).
1680
8932b1c2
CY
1681 * eval.c (run_hook_with_args): Handle the case where the global
1682 value has the obsolete single-function form (Bug#5026).
1683
11e3c684
CY
16842009-12-27 Chong Yidong <cyd@stupidchicken.com>
1685
1686 * minibuf.c (Fall_completions): Minor optimization.
1687
5b28ce35
EZ
16882009-12-26 Eli Zaretskii <eliz@gnu.org>
1689
5ce6e4f4
JB
1690 * .gdbinit (pgx): Fix display of composite glyphs.
1691 Display cmp.from and cmp.to as well.
1692 (pitx): Fix last change.
5b28ce35 1693
bcffff46
KH
16942009-12-25 Kenichi Handa <handa@m17n.org>
1695
1696 * composite.h (composition_adjust_point): Update prototype.
1697
1698 * composite.c (composition_reseat_it): Don't make a composition
1699 spanning over point.
1700 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1701 composable characters.
1702 (composition_adjust_point): New arg NEW_PT. Callers changed.
1703
1704 * keyboard.c (command_loop_1): Force redisplay if the last point
1705 was within a composition.
1706 (adjust_point_for_property): Don't adjust point for automatic
1707 composition when called after buffer modification.
1708
3f670e9a
EZ
17092009-12-19 Eli Zaretskii <eliz@gnu.org>
1710
5ce6e4f4
JB
1711 * .gdbinit (pitx): Don't use enum names, use their values.
1712 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1713 (pgx): Don't use enum names, use their values.
1714 (pitmethod): New helper command.
1715 (pitx): Use it to display iteration method.
1716 (pgrowit): New command.
1717
ad903955
EZ
1718 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1719
3f670e9a
EZ
1720 Update dependencies in Makefile.in.
1721
1722 * Makefile.in (alloc.o): Depend on termhooks.h.
1723 (atimer.o): Depend on blockinput.h.
1724 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1725 and frame.h.
1726 (callint.o): Depend on systime.h, coding.h, and composite.h.
1727 (callproc.o): Depend on buffer.h.
1728 (casefiddle.o): Don't depend on charset.h.
1729 (casetab.o): Depend on character.h.
1730 (ccl.o): Depend on composite.h.
1731 (chartab.o): Depend on ccl.h.
1732 (cm.o): Depend on dispextern.h.
1733 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1734 (coding.o): Don't depend on $(INTERVALS_H).
1735 (composite.o): Don't depend on dispextern.h explicitly (it's in
1736 $(INTERVALS_H)). Depend on ccl.h.
1737 (data.o): Depend on systime.h, coding.h, composite.h,
1738 dispextern.h, font.h, and ccl.h.
1739 (dired.o): Depend on composite.h.
1740 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1741 composite.h (it's in $(INTERVALS_H)).
1742 (doc.o): Depend on systime.h, coding.h, and composite.h.
1743 (editfns.o): Don't depend explicitly on dispextern.h.
1744 (emacs.o): Depend on frame.h and coding.h.
1745 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1746 (fileio.o): Depend on frame.h and commands.h. Don't depend
1747 explicitly on dispextern.h.
1748 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1749 composite.h.
1750 (fns.o): Don't depend on termhooks.h.
1751 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1752 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1753 coding.h, $(INTERVALS_H), window.h, xterm.h.
1754 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1755 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1756 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1757 fontset.h, ccl.h, and ftfont.h.
1758 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1759 (gtkutil.o): Depend on dispextern.h and composite.h.
1760 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1761 termhooks.h, and ccl.h.
1762 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1763 (intervals.o): Depend on systime.h and coding.h.
1764 (keyboard.o): Depend on composite.h and coding.h.
1765 (keymap.o): Depend on coding.h and frame.h.
1766 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1767 (macros.o): Depend on systime.h, coding.h, and composite.h.
1768 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1769 and atimer.h.
1770 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1771 dispextern.h explicitly.
0b5397c2
SM
1772 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1773 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1774 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1775 (regex.o): Don't depend on charset.h.
1776 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1777 (search.o): Don't depend explicitly on composite.h.
1778 (sound.o): Depend on atimer.h and systime.h.
1779 (syntax.o): Don't depend explicitly on composite.h.
1780 (sysdep.o): Depend on coding.h and composite.h.
1781 (term.o): Depend on xterm.h and buffer.h.
1782 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1783 (textprop.o): Don't depend on dispextern.h explicitly.
1784 (undo.o): Depend on dispextern.h.
1785 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1786 dispextern.h and composite.h explicitly.
1787 (xdisp.o): Depend on ccl.h.
1788 (xfaces.o): Depend on coding.h and ccl.h.
1789 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1790 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1791 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1792 ftfont.h.
1793 (xgselect.o): New dependency.
1794 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1795 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1796 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1797 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1798 (xsmfns.o): Depend on frame.h and dispextern.h.
1799 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1800 sysselect.h.
1801
7a6f7fea
AS
18022009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1803
1804 * font.c (Fclear_font_cache): Pass correct cache argument to
1805 font_clear_cache.
1806
f4c21026
AS
18072009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1808
1809 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1810 twice.
1811
f7ab0997
CY
18122009-12-15 Chong Yidong <cyd@stupidchicken.com>
1813
1814 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1815 calling file-remote-p. Reported by Jim Meyering.
1816
fa8e045a
MA
18172009-12-15 Michael Albinus <michael.albinus@gmx.de>
1818
1819 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1820 avoid compiler warnings. (Bug #5217)
fa8e045a 1821
a63dba42
KH
18222009-12-14 Kenichi Handa <handa@m17n.org>
1823
1824 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1825 in 8-bit encoding.
1826
5ce6e4f4 18272009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1828
1829 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1830 tooltip windows.
1831
223e5fc6
JD
18322009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1833
36acb2a7
JD
1834 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1835 Xatom_net_window_type.
1836
1837 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1838 Xatom_net_window_type.
1839
b8f00677
JD
1840 * xterm.c (my_log_handler): New function.
1841 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1842 so we can filter out buggy messages. (Bug #5120).
b8f00677 1843
e5f0bc9a
JD
1844 * xterm.c (xg_scroll_callback): Parameter list changed,
1845 use parameter GtkScrollType to determine scroll/line/page.
1846 Only allow dragging if a button < 4 is grabbed (bug #5177).
1847 (xg_end_scroll_callback): New function.
1848 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1849 xg_create_scroll_bar.
1850
1851 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1852 (scroll_end_callback): Remove.
1853 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1854 button-release-event. Replace value-changed event with change-value,
1855 bug #5177,
1856 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1857 bug #5177.
1858
1859 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1860 (xg_create_scroll_bar): Add GCallback end_callback.
1861
223e5fc6
JD
1862 * xftfont.c (QClcdfilter): New variable.
1863 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1864 (syms_of_xftfont): Initialize QClcdfilter.
1865
3c055b77
JD
18662009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1867
1868 * xsettings.c (struct xsettings): Add member seen.
1869 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1870 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1871 (apply_xft_settings): Only update Xft settings with what member seen
1872 indicates as new.
1873
05fe33ff
EZ
18742009-12-12 Eli Zaretskii <eliz@gnu.org>
1875
1876 * dispextern.h (struct text_pos): Use EMACS_INT;
1877 (struct glyph): Use EMACS_INT for charpos.
1878 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1879 region_beg_charpos, region_end_charpos,
1880 redisplay_end_trigger_charpos, and also for
1881 iterator_stack_entry.end_charpos and
1882 iterator_stack_entry.stop_charpos.
1883
e8d7886a
JD
18842009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1885
5ce6e4f4 1886 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1887 (xg_create_scroll_bar): Call scroll_end_callback on button release
1888 event (bug #5177).
1889 (xg_event_is_for_scrollbar): != replaced with ==.
1890
d0db2ec8
KH
18912009-12-12 Kenichi Handa <handa@m17n.org>
1892
1893 * ftfont.c (struct ftfont_info): New member matrix.
1894 (ftfont_open): Setup xftfont_info->matrix.
1895 (MFLTFontFT): New member matrix.
1896 (FLOOR, CEIL, ROUND): New macros.
1897 (ftfont_get_metrics): Handle matrix transformation.
1898 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1899
1900 * xftfont.c (struct xftfont_info): New member matrix.
1901 (xftfont_open): Setup xftfont_info->matrix.
1902
19032009-12-10 Kenichi Handa <handa@m17n.org>
1904
1905 * xdisp.c (append_space_for_newline): Consider face-remapping.
1906
2cc7b62f
AS
19072009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1908
b87dd913
AS
1909 * xsettings.c: Include "keyboard.h".
1910
eba5eb94
AS
1911 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1912
2cc7b62f
AS
1913 Fix implicit function declarations.
1914 * cmds.c: Include "frame.h".
1915 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1916 * frame.h: Move declaration of delete_frame outside of
1917 HAVE_WINDOW_SYSTEM.
1918
a4ef73c8
CY
19192009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1920
1921 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1922
1923 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1924 GTK builds.
1925
944a300c
AS
19262009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1927
1928 * unexelf.c (unexec): Don't search for .data twice.
1929
022eef62
CY
19302009-12-05 Chong Yidong <cyd@stupidchicken.com>
1931
426ac949
CY
1932 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1933 if push failed.
1934 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1935 of push_display_prop (Bug#5000).
1936
022eef62
CY
1937 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1938 value of font_list_entities (Bug#5085).
1939
be95bee9
JB
19402009-12-04 Juanma Barranquero <lekktu@gmail.com>
1941
1942 Fix `string-to-number' to deal consistently with integers and floats.
1943 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1944 trailing characters, not just whitespace.
1945 (read1): Pass new arg 0 to keep old behavior.
1946 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1947 trailing chars, as it is already done for integers. Doc fixes.
1948 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1949
24c2d7ce
EZ
19502009-12-04 Eli Zaretskii <eliz@gnu.org>
1951
0b5397c2
SM
1952 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1953 Delete unused enumeration value.
24c2d7ce 1954
7e694795
EZ
19552009-12-03 Eli Zaretskii <eliz@gnu.org>
1956
1957 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1958
84b31826
SM
19592009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1960
1961 * process.c (Fmake_network_process): Fix up the tests for
1962 "connectionless socket", so they DTRT for seqpacket sockets as well.
1963
f00c449b
SM
19642009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1965
1966 * process.c (Qseqpacket): New symbol.
1967 (HAVE_SEQPACKET): New macro.
1968 (Fmake_network_process): Accept new :type `seqpacket'.
1969 (init_process): Add `seqpacket' feature when applicable.
1970 (syms_of_process): Initialize Qseqpacket.
1971
8096a0ff
YM
19722009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1973
1974 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1975 if entity is Qnil.
1976
3e0de07f
SM
19772009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1978
1979 * print.c (print_preprocess): Preprocess the key_and_value table of
1980 hashtables, even tho they're "hidden" (bug#5082).
1981
abeafb2a
JD
19822009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1983
1984 * frame.c (frame_make_pointer_invisible)
1985 (frame_make_pointer_visible): Declare f before statements.
1986
4bf47195
EZ
19872009-11-28 Eli Zaretskii <eliz@gnu.org>
1988
1989 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1990 omitted dependencies on lisp.h.
1991
c525b3f2
JD
19922009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1993
ece2d4ed
JD
1994 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1995 is NULL.
1996
1997 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1998
1999 * frame.c (frame_make_pointer_invisible)
3e0de07f 2000 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2001 frame.
2002
c525b3f2
JD
2003 * search.c (simple_search): Remove warning by making *p const.
2004
2f00e299
DN
20052009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2006
2007 * xdisp.c (power_letter): Remove duplicate const.
2008
084b049b
JD
20092009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2010
a1fadc6f
JD
2011 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2012
5ce6e4f4 2013 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2014 defaults (bug #5025).
2015
28259cac
SM
20162009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2017
2018 * insdel.c (adjust_markers_for_delete): Move it in the
2019 right direction! (bug#4803)
2020
e8e14166
YM
20212009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2022
2023 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2024
2025 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2026
86677b58
GM
20272009-11-24 Glenn Morris <rgm@gnu.org>
2028
2029 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2030
581e51e8
JD
20312009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2032
cfc86c7a
JD
2033 * Makefile.in: Must create deps for ecrt0.o in its rule.
2034
581e51e8
JD
2035 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2036 because that is what Gtk+ font dialog understands.
2037
2038 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2039 of Fcopy_sequence.
2040 (font_open_by_name): Put name given into QCname for font-object returned.
2041
2042 * frame.c (x_set_font): Save original font name as frame parameter
2043 font-parameter.
2044
2045 * xsettings.c (set_default_xft_settings): New function.
2046 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2047 is found.
2048
8b264ecb
AS
20492009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2050
2051 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2052 searching backwards through multibyte buffer.
2053
872870b2
JD
20542009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2055
2056 * xterm.c: #include xgselect.h.
2057 (x_initialize): Call xgselect_initialize.
2058
2059 * xsettings.c (something_changedCB): C++ comments => C comments.
2060 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2061 does that now.
2062
2063 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2064 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2065 (scroll_bar_button_cb): Remove.
5ce6e4f4 2066 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2067 event.
2068 (xg_create_scroll_bar): Don't bind button-press-event and
2069 button-release-event.
2070
2071 * process.c: Include xgselect.h if defined (USE_GTK) ||
2072 defined (HAVE_GCONF).
2073 (wait_reading_process_output): Call xg_select for the same condition.
2074
2075 * xgselect.c (xg_select): New function to better integrate with
2076 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2077
2078 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2079
2080 * Makefile.in (XOBJ): Add xgselect.o.
2081
62a6e103
AS
20822009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2083
0b5397c2
SM
2084 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2085 Remove ignored second argument. All callers changed.
62a6e103
AS
2086 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2087 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2088 * xdisp.c (string_char_and_length): Likewise.
2089
b0ca0f33
DN
20902009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2091
2092 * xterm.c (x_new_font):
2093 * print.c (print_object):
2094 * cmds.c (Fself_insert_command): Move declarations before statements.
2095
dd5a6279
CY
20962009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2097
2098 * s/cygwin.h: Remove unneeded linker flags.
2099
4a8e097d
JD
21002009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2101
0d1d0d26
JD
2102 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2103
2104 * xsettings.h: Declare xsettings_get_system_font.
2105
2106 * xsettings.c (xsettings_get_system_font): New function.
2107 (init_gconf): No use initiating gconf unless we have Xft also.
2108 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2109 HAVE_GCONF.
2110
4a8e097d
JD
2111 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2112 add a blank entry so it doesn't collapse into nothing.
2113
8ab1650e
SM
21142009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2115
2116 * lread.c (Funintern): Comment out last change.
2117
82c602f0
RS
21182009-11-19 Richard Stallman <rms@gnu.org>
2119
2120 * lread.c (Funintern): Error if symbol is t or nil.
2121
87e32266
SM
21222009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2123
2124 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2125 representation of Lisp integers.
2126 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2127
1b9ac145
AS
21282009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2129
2130 * lisp.h: Remove declaration of Ffont_get_system_font.
2131 * xfns.c: Move include of "xsettings.h".
2132 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2133
dfb3c4c6
JD
21342009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2135
87e32266
SM
2136 * xsettings.c (something_changedCB, Ffont_get_system_font):
2137 Check use_system_font.
dfb3c4c6
JD
2138 (syms_of_xsettings): DEFVAR font-use-system-font.
2139
9370c1d8
AS
21402009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2141
25fe851a
AS
2142 * xfns.c (x_default_font_parameter): Remove dead assignment.
2143
9370c1d8
AS
2144 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2145
637fa988
JD
21462009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2147
87e32266 2148 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2149 not have FC_LCD_*. #define them if not there.
a6eb20d8 2150
87e32266 2151 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2152
637fa988
JD
2153 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2154
2155 * xterm.c (handle_one_xevent): Call xft_settings_event for
2156 ClientMessage, PropertyNotify and DestroyNotify.
2157 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2158 Call xsettings_initialize.
2159
2160 * xftfont.c (xftfont_fix_match): New function.
2161 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2162 Call xftfont_fix_match after XftFontMatch.
2163
2164 * xfont.c (xfont_driver): Initialize all members.
2165
87e32266
SM
2166 * xfns.c (x_default_font_parameter):
2167 Try font from Ffont_get_system_font.
637fa988
JD
2168 Do not get font from x_default_parameter if we got one from
2169 Ffont_get_system_font.
87e32266 2170 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2171
2172 * w32font.c (w32font_driver): Initialize all members.
2173
2174 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2175
2176 * lisp.h: Declare syms_of_xsettings.
2177
87e32266
SM
2178 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2179 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2180
2181 * ftfont.c (ftfont_filter_properties): New function.
2182
2183 * frame.c (x_set_font): Remove unused variable lval.
2184
87e32266 2185 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2186
2187 * font.c (font_put_extra): Don't return if val is nil, it means
2188 boolean option is off.
2189 (font_parse_fcname): Collect all extra properties in extra_props
2190 and call filter_properties for all drivers with extra_props and
2191 font as parameter.
87e32266
SM
2192 (font_open_entity): Do not use cache, it does not pick up new
2193 fontconfig settings like hinting.
637fa988
JD
2194 (font_load_for_lface): If spec had a name in it, store it in entity.
2195
2196 * emacs.c (main): Call syms_of_xsettings
2197
2198 * config.in: HAVE_GCONF is new.
2199
2200 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2201 xsettings.o is new.
2202
5a942932
KH
22032009-11-17 Kenichi Handa <handa@m17n.org>
2204
2205 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2206 back to the default font in case that no suitable font is found.
2207
b7c7a4d1
SM
22082009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2209
2210 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2211 Suggested by Chad Brown <yandros@mit.edu>.
2212 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2213
072f1e39
JD
22142009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2215
2216 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2217
5d1e70a2
AS
22182009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2219
87e32266 2220 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2221
a53cfbe5
JD
22222009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2223
473a99b7
JD
2224 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2225 has a parent.
2226
a53cfbe5 2227 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2228 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2229
2230 * config.in: Generated (AUTO_DEPEND).
2231
f04bb9b2
MA
22322009-11-13 Michael Albinus <michael.albinus@gmx.de>
2233
b7c7a4d1 2234 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2235 Vdbus_registered_functions_table, because it contains also
2236 properties. Fix docstring.
b7c7a4d1 2237 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2238
8f11f7ec
SM
22392009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2240
2241 * alloc.c (mark_object): Don't reprocess marked strings.
2242 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2243 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2244
8a605fe8
KH
22452009-11-13 Kenichi Handa <handa@m17n.org>
2246
8f11f7ec 2247 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2248 semantics of Vword_combining_categories.
2249 (Vword_combining_categories): Describe the slight change of the
2250 semantics.
2251
241c4680
EZ
22522009-11-13 Eli Zaretskii <eliz@gnu.org>
2253
2254 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2255
2256 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2257
5d58e44c
SM
22582009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2259
2260 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2261
5e13f9d3
JB
22622009-11-12 Juanma Barranquero <lekktu@gmail.com>
2263
2264 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2265
cf54c754
DR
22662009-11-11 David Reitter <david.reitter@gmail.com>
2267
2268 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2269 variables to fix 2009-11-09 change.
2270
a4ada374
DN
22712009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2272
91433552
DN
2273 * process.c (ifflag_def): Make flag_sym constant.
2274 (Fnetwork_interface_info): Use a constant pointer.
2275 (ifflag_table):
2276 * xfns.c (cursor_bits):
2277 * xdisp.c (power_letter):
2278 * termcap.c (speeds, esctab):
2279 * sysdep.c (baud_convert):
2280 * keyboard.c (lispy_accent_codes, modifier_names):
2281 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2282 (jpeg_format, tiff_format, gif_format, svg_format)
2283 (interlace_start, interlace_increment, gs_format):
2284 * gtkutil.c (separator_names):
2285 * fringe.c (swap_nibble):
2286 * fns.c (base64_value_to_char, base64_char_to_value):
2287 * fileio.c (make_temp_name_tbl):
2288 * coding.c (suffixes): Make constant.
2289
f4265f6c
DN
2290 * frame.c (make_initial_frame):
2291 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2292 build_string.
2293 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2294
04420943
DN
2295 * s/freebsd.h:
2296 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2297
0a5d24ae
DN
2298 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2299 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2300
a4ada374
DN
2301 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2302 * xterm.c (syms_of_xterm):
2303 * xfaces.c (syms_of_xfaces):
2304 * xdisp.c (syms_of_xdisp):
2305 * lread.c (syms_of_lread):
2306 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2307 build_string.
91433552 2308
a4ada374
DN
2309 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2310
af98fc7f
SM
23112009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2312
8ab1650e 2313 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2314
e90292a9
JD
23152009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2316
2317 * keyboard.h: Declare timer_check.
2318
2319 * keyboard.c (timer_check_2): New function that does what the old
2320 timer_check did.
2321 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2322 returned, i.e. don't return -1 with timers pending.
2323
2324 * process.c: Remove extern declaration of timer_check.
2325
2326 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2327 even if timer_check returned -1.
2328
af98fc7f
SM
2329 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2330 xg_dialog_data.
e90292a9
JD
2331 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2332 the event loop.
2333 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2334 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2335 Destroy the dialog after xg_dialog_run.
2336
045b83c0
SM
23372009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2338
2339 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2340
1fb99a3a
JD
23412009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2342
2343 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2344
04e452cb
JB
23452009-11-09 Juanma Barranquero <lekktu@gmail.com>
2346
2347 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2348
ef7417fd
SM
23492009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2350
2351 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2352 w32menu.c, and nsmenu.m.
2353 Simplify the obsolete case where position is nil.
2354 (cleanup_popup_menu): New function, moved from nsmenu.m.
2355 (struct skp): Remove slot `notreal'.
2356 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2357 adjust callers.
2358 (single_menu_item): Adjust call to parse_menu_item.
2359 (syms_of_menu): Defsubr x-popup-menu.
2360 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2361 (keymap_panes): Don't export any more.
2362 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2363 (xmenu_show): Declare.
2364 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2365 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2366 * keyboard.h (parse_menu_item): Update declaration.
2367 * xmenu.c (Fx_popup_menu): Remove.
2368 (syms_of_xmenu): Don't defsubr x-popup-menu.
2369 * w32menu.c (Fx_popup_menu): Remove.
2370 (syms_of_w32menu): Don't defsubr x-popup-menu.
2371 * nsmenu.m (cleanup_popup_menu): Remove.
2372 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2373 moved to menu.c's Fx_popup_menu.
2374 (Fx_popup_menu): Remove.
2375 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2376 menu_items (it's done in menu.c already).
2377
424d6179
SM
23782009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2379
2380 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2381 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2382
c0df13a6 23832009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2384
2385 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2386 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2387 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2388 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2389
2de9f71c
SM
23902009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2391
2392 Let integers use up 2 tags to give them one extra bit and thus double
2393 their range.
2394 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2395 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2396 New macros.
2397 (enum Lisp_Type): Use them. Give explicit values.
2398 (Lisp_Type_Limit): Remove.
2399 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2400 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2401 Pay attention to USE_2_TAGS_FOR_INTS.
2402 (INTEGERP): Use LISP_INT_TAG_P.
2403 * fns.c (internal_equal): Simplify the default case.
2404 (sxhash): Use case_Lisp_Int.
2405 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2406 any more.
2407 (Ftype_of): Use case_Lisp_Int.
2408 (store_symval_forwarding): Take into account the fact that Ints can
2409 now have more than one tag.
2410 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2411 buffer_slot_type_mismatch):
2412 * xfaces.c (face_attr_equal_p):
2413 * print.c (print_object):
2414 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2415 Use case_Lisp_Int.
2416
323637a2
EZ
24172009-11-06 Eli Zaretskii <eliz@gnu.org>
2418
7ac65b38
EZ
2419 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2420
323637a2
EZ
2421 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2422 warning.
2423
e511451f
JD
24242009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2425
2426 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2427
2428 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2429
2430 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2431 ButtonPressRelease and MotionNotify (bug#4870).
2432
5e2327cf
DN
24332009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2434
5adc433e
DN
2435 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2436
d67b4f80
DN
2437 * xterm.c (syms_of_xterm):
2438 * xselect.c (syms_of_xselect):
2439 * xmenu.c (syms_of_xmenu):
2440 * xfns.c (syms_of_xfns):
2441 * xfaces.c (syms_of_xfaces):
2442 * xdisp.c (syms_of_xdisp):
2443 * window.c (syms_of_window):
2444 * w32fns.c (syms_of_w32fns):
2445 * undo.c (syms_of_undo):
2446 * textprop.c (syms_of_textprop):
2447 * terminal.c (syms_of_terminal):
2448 * syntax.c (syms_of_syntax):
2449 * sound.c (syms_of_sound):
2450 * search.c (syms_of_search):
2451 * print.c (syms_of_print):
2452 * minibuf.c (syms_of_minibuf):
2453 * macros.c (syms_of_macros):
2454 * keymap.c (syms_of_keymap, initial_define_key)
2455 (initial_define_lispy_key):
2456 * keyboard.c (syms_of_keyboard):
2457 * insdel.c (syms_of_insdel):
2458 * image.c (syms_of_image):
2459 * fringe.c (syms_of_fringe):
2460 * frame.c (syms_of_frame):
2461 * fontset.c (syms_of_fontset):
2462 * fns.c (syms_of_fns):
2463 * fns.c (syms_of_fns):
2464 * fileio.c (syms_of_fileio):
2465 * fileio.c (syms_of_fileio):
2466 * eval.c (syms_of_eval):
2467 * doc.c (syms_of_doc):
2468 * dispnew.c (syms_of_display):
2469 * dired.c (syms_of_dired):
2470 * dbusbind.c (syms_of_dbusbind):
2471 * data.c (syms_of_data):
2472 * composite.c (syms_of_composite):
2473 * coding.c (syms_of_coding):
2474 * cmds.c (syms_of_cmds):
2475 * charset.c (define_charset_internal, syms_of_character):
2476 * ccl.c (syms_of_ccl):
2477 * category.c (syms_of_category, init_category_once):
2478 * casetab.c (syms_of_casetab):
2479 * casefiddle.c (syms_of_casefiddle):
2480 * callint.c (syms_of_callint):
2481 * bytecode.c (syms_of_bytecode):
2482 * buffer.c (keys_of_buffer, syms_of_buffer):
2483 * alloc.c (syms_of_alloc):
2484 * process.c (syms_of_process, init_process):
2485 * lread.c (syms_of_lread, init_obarray):
2486 * font.c (build_style_table):
2487 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2488 intern_c_string, calls to make_pure_string with
2489 make_pure_c_string. Use pure_cons instead of Fcons.
2490
5e2327cf
DN
2491 * process.c (socket_options): Make it const.
2492 (set_socket_option, init_process): Use a const pointer.
2493
2494 * lread.c (intern_c_string): New function.
2495 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2496 (defvar_int): Uset it. Make the name const char*.
2497
2498 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2499 (defvar_int): Update prototypes.
2500 (DEFUN, EXFUN): Support for prototypes is now required.
2501 (intern_c_string): New prototype.
2502 (struct Lisp_Subr): Make symbol_name constant.
2503
2504 * font.c (struct table_entry): Remove unused member. Make NAMES
2505 constant.
2506 (weight_table, slant_table, width_table): Make constant.
2507
2508 * emacs.c (struct standard_args): Make name and longname constant.
2509
2510 * character.h (DEFSYM): Use intern_c_string.
2511
a56eaaef
DN
25122009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2513
2514 * alloc.c (make_pure_c_string): New function.
2515
2516 * eval.c (Fautoload): Purecopy all arguments.
2517
f6a07420
KH
25182009-11-05 Kenichi Handa <handa@m17n.org>
2519
2520 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2521 the buffer in case of replace.
2522
5d28d4b1
DN
25232009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2524
2525 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2526
b349d111
SM
25272009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2528
d528b1ce
SM
2529 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2530 when applicable (bug#4851).
2531
b349d111
SM
2532 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2533 (P_): Support for prototypes is now required.
2534
c38eb027
CY
25352009-10-31 Chong Yidong <cyd@stupidchicken.com>
2536
2537 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2538 (Bug#4827).
2539
0405f8d9
EZ
25402009-10-30 Eli Zaretskii <eliz@gnu.org>
2541
d528b1ce 2542 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2543
ca0a881a
DN
25442009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2545
2546 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2547
d528b1ce
SM
2548 * lread.c (Fload): Purecopy the file name when building
2549 Vpreloaded_file_list.
ca0a881a 2550
47e0e0e4
JR
25512009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2552
2553 * w32fns.c (syms_of_w32fns): Change default value of
2554 w32-scroll-lock-modifier to nil. (Bug#2827)
2555
057bce6f
JB
25562009-10-26 Juanma Barranquero <lekktu@gmail.com>
2557
782a943e 2558 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2559
242bc74c
AS
25602009-10-26 Andreas Schwab <schwab@redhat.com>
2561
2562 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2563
522d013a
JB
25642009-10-26 Juanma Barranquero <lekktu@gmail.com>
2565
2566 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2567 For delta < 0, skip check that only makes sense when the mini-window
2568 is going to be enlarged. (Bug#4534)
2569
18060980
CY
25702009-10-25 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2573 string in menu maps (Bug#4471).
2574
fec8f0fe
CY
25752009-10-24 Chong Yidong <cyd@stupidchicken.com>
2576
2577 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2578 FRAME_NS_VIEW on terminal frames (Bug#4765).
2579
10d66ec0
AS
25802009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2581
1cae01f7
AS
2582 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2583 DBUS_TYPE_UINTnn separately to get proper sign extension.
2584
58a12889
AS
2585 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2586 can properly handle unsigned types.
d528b1ce 2587 (make_uid, make_gid): Remove.
58a12889 2588
987c9327
AS
2589 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2590 types again.
2591
522d013a 2592 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2593 (system_process_attributes): Likewise.
2594
905a9ed3
DN
25952009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2596
2597 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2598
2599 * eval.c (Fautoload): Purecopy the filename. Simplify.
2600
2601 * category.c (Fdefine_category): Purecopy docstring.
2602
a599b3e8
AS
26032009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2604
7b792fc9
AS
2605 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2606
a599b3e8
AS
2607 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2608
b35ac83e
CY
26092009-10-23 Chong Yidong <cyd@stupidchicken.com>
2610
2611 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2612 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2613 (Bug#4775).
2614
e8903e00
SM
26152009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2616
2617 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2618 (init_fileio_once):
2619 * lisp.h (init_fileio_once): Remove.
2620 * emacs.c (main): Don't call init_fileio_once.
2621
8f43cbf3
DN
26222009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2623
2624 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2625
26898943
AS
26262009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2627
2628 * doprnt.c (doprnt): Fix overflow check.
2629
5c646d5a
JD
26302009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2631
3132a7ea
JD
2632 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2633
5c646d5a
JD
2634 * xterm.h (x_wait_for_event): Declare it.
2635
2636 * xterm.c (pending_event_wait): New variable.
2637 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2638 see pending_event_wait.eventtype.
2639 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2640 (x_new_font): Call change_frame_size with new rows/columns before we
2641 try to resize the frame.
5c646d5a 2642 (x_wait_for_event): New function.
d528b1ce
SM
2643 (x_set_window_size_1): Don't change gravity unless change_gravity
2644 is set.
5c646d5a
JD
2645 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2646 don't change frame size, instead wait for the ConfigureNotify.
2647 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2648 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2649 (x_initialize): Initialize pending_event_wait.
2650
2651 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2652 size.
2653
2654 * widget.c (EmacsFrameSetValues): Add comment.
2655 (EmacsFrameSetCharSize): Just call x_set_window_size.
2656
2657 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2658 x_wait_for_event.
d528b1ce 2659 (flush_and_sync): Remove again.
5c646d5a
JD
2660 (xg_get_font_name): Suggest monospace if no previous font is known.
2661
e9c1637d
SM
26622009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2663
2664 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2665 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2666
5a72cccb
YM
26672009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2668
2669 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2670 processing pending events when event is filtered for input method.
ab04798f 2671 (Bug#3681)
5a72cccb 2672
2629aa37
JB
26732009-10-20 Juanma Barranquero <lekktu@gmail.com>
2674
2675 * fns.c: Add #endif accidentally removed in previous change.
2676
c3417a74
DN
26772009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2678
2679 * fns.c: Remove code for unsupported system: MAC_OS.
2680 * image.c: Likewise. Include setjmp.h.
2681
9685cef2
JD
26822009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2683
2684 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2685 pixel -1 (bug #4742).
2686
d7306fe6
DN
26872009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2688
019d2c4c
DN
2689 * process.c (create_pty): Remove conditionals for no longer
2690 supported systems: UNIPLUS and RTU.
2691
ee6bacd4
DN
2692 * xterm.c:
2693 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2694
d7306fe6
DN
2695 * alloc.c: Do not define struct catchtag.
2696 * eval.c: Move struct catchtag definition ...
2697 * lisp.h: ... here.
2698
2699 * image.c: Move png.h #include earlier to avoid warnings.
2700
2701 * xterm.c:
2702 * xsmfns.c:
2703 * xselect.c:
2704 * xrdb.c:
2705 * xmenu.c:
2706 * xftfont.c:
2707 * xfont.c:
2708 * xfns.c:
2709 * xfaces.c:
2710 * xdisp.c:
2711 * window.c:
2712 * widget.c:
2713 * w32xfns.c:
2714 * w32uniscribe.c:
2715 * w32term.c:
2716 * w32select.c:
2717 * w32reg.c:
2718 * w32proc.c:
2719 * w32menu.c:
2720 * w32inevt.c:
2721 * w32heap.c:
2722 * w32font.c:
2723 * w32fns.c:
2724 * w32console.c:
2725 * w32.c:
2726 * w16select.c:
2727 * vm-limit.c:
2728 * unexsol.c:
2729 * unexec.c:
2730 * unexcw.c:
2731 * unexaix.c:
2732 * undo.c:
2733 * tparam.c:
2734 * textprop.c:
2735 * terminfo.c:
2736 * terminal.c:
2737 * termcap.c:
2738 * term.c:
2739 * syntax.c:
2740 * sound.c:
2741 * sheap.c:
2742 * search.c:
2743 * scroll.c:
2744 * region-cache.c:
2745 * regex.c:
2746 * ralloc.c:
2747 * process.c:
2748 * print.c:
b024548b
DN
2749 * nsterm.m:
2750 * nsselect.m:
2751 * nsmenu.m:
2752 * nsimage.m:
2753 * nsfont.m:
2754 * nsfns.m:
d7306fe6
DN
2755 * msdos.c:
2756 * minibuf.c:
2757 * menu.c:
2758 * marker.c:
2759 * macros.c:
2760 * keymap.c:
2761 * keyboard.c:
2762 * intervals.c:
2763 * insdel.c:
2764 * indent.c:
2765 * gtkutil.c:
2766 * ftxfont.c:
2767 * ftfont.c:
2768 * fringe.c:
2769 * frame.c:
2770 * fontset.c:
2771 * font.c:
2772 * fns.c:
2773 * floatfns.c:
2774 * filelock.c:
2775 * fileio.c:
2776 * emacs.c:
2777 * editfns.c:
2778 * dosfns.c:
2779 * doprnt.c:
2780 * doc.c:
2781 * dispnew.c:
2782 * dired.c:
2783 * dbusbind.c:
2784 * data.c:
2785 * composite.c:
2786 * coding.c:
2787 * cmds.c:
2788 * cm.c:
2789 * chartab.c:
2790 * charset.c:
2791 * character.c:
2792 * ccl.c:
2793 * category.c:
2794 * casetab.c:
2795 * casefiddle.c:
2796 * callproc.c:
2797 * callint.c:
2798 * bytecode.c:
2799 * buffer.c:
2800 * atimer.c: Include setjmp.h. (Bug#4643)
2801
fd5f21e6
SM
28022009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2803
4c0354d7
SM
2804 Remove leftover table unibyte_to_multibyte_table.
2805 * character.c (unibyte_to_multibyte_table): Remove.
2806 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2807 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2808 * character.h (UNIBYTE_TO_CHAR): New macro.
2809 (MAKE_CHAR_MULTIBYTE): Use it.
2810 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2811 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2812 (message_dolog, set_message_1):
2813 * search.c (Freplace_match):
2814 * editfns.c (Fcompare_buffer_substrings):
2815 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2816 (concat):
2817 * insdel.c (copy_text, count_size_as_multibyte):
2818 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2819 * term.c (produce_glyphs):
2820 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2821 * regex.c (RE_CHAR_TO_MULTIBYTE):
2822 * cmds.c (internal_self_insert):
2823 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2824
fd5f21e6
SM
2825 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2826
4418646e
DN
28272009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2828
2829 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2830
35f5c1d2
JB
28312009-10-16 Juanma Barranquero <lekktu@gmail.com>
2832
2833 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2834
a0cd8f6b
AR
28352009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2836
2837 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2838 still needed under Tiger.
2839
2840 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2841
2842 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2843 __Apple__.
2844
2845 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2846
01a8d3fa
KH
28472009-10-15 Kenichi Handa <handa@m17n.org>
2848
2849 * print.c (print_object): Escape a symbol like "2E10" too.
2850
bf6c75c9 28512009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2852
2853 Cleanups and changes for 64-bit compile under Snow Leopard.
2854 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2855
2856 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2857
c5959062 2858 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2859 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2860 cast argument.
2861 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2862 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2863
2864 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2865
2866 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2867 where appropriate.
2868
2869 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2870 where appropriate.
6e4780c5
JB
2871 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2872 Use stringWithUTF8String.
bf6c75c9
AR
2873 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2874
6e4780c5
JB
2875 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2876 Add formal protocol mention to inheritance.
bf6c75c9
AR
2877 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2878
6e4780c5
JB
2879 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2880 Fix printf format.
bf6c75c9
AR
2881 (ns_query_color): Use CGFloat where appropriate.
2882 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2883 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2884 argument.
2885
3d87f118
AR
2886 * config.in (NS_HAVE_NSINTEGER): Drop.
2887
a95c8102
AR
2888 * dbusbind.c (dbus-method-return-internal)
2889 (dbus-method-error-internal): Use long format in printf, and cast
2890 argument.
2891
2892 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2893 in printf, and cast argument.
2894
6873acca 2895 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2896 cast argument.
2897
9ec6f100
GM
28982009-10-11 Glenn Morris <rgm@gnu.org>
2899
2900 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2901
5be883cd
JD
29022009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2903
2904 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2905 menu bar with a small width so it doesn't enlarge the frame.
2906
d7a39b51
JB
29072009-10-08 Juanma Barranquero <lekktu@gmail.com>
2908
2909 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2910
0c2b6f8e
GM
29112009-10-06 Glenn Morris <rgm@gnu.org>
2912
2913 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2914 SOME_MACHINE_LISP (this enters indirectly via DOC).
2915
e02131a2
EZ
29162009-10-05 Eli Zaretskii <eliz@gnu.org>
2917
2918 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2919
b4744254
EZ
29202009-10-04 Eli Zaretskii <eliz@gnu.org>
2921
2922 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2923 Doc fix.
2924
dbf64827
JB
29252009-10-03 Martin Rudalics <rudalics@gmx.at>
2926
2927 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2928
e9a0aef8
MA
29292009-10-02 Michael Albinus <michael.albinus@gmx.de>
2930
d528b1ce 2931 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2932 used anymore outside fileio.c.
2933
2934 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2935
64eb2b56
JB
29362009-10-01 Juanma Barranquero <lekktu@gmail.com>
2937
2938 * lisp.h (Qdelete_directory_internal):
2939 Declare, instead of Qdelete_directory.
2940
2941 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2942
9d28c33e
SM
29432009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2944
2945 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2946
9d8f3bd9
MA
29472009-10-01 Michael Albinus <michael.albinus@gmx.de>
2948
9d28c33e 2949 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2950 Fdelete_directory. It is not a command anymore. It has no file
2951 name handler.
2952
9694740b
SM
29532009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2954
2955 * xdisp.c (get_next_display_element): Use an enum in last change.
2956
748e162f
KH
29572009-09-28 Kenichi Handa <handa@m17n.org>
2958
9694740b 2959 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2960 unibyte_display_via_language_environment in handling
2961 Vnobreak_char_display.
2962
17efd58d
AR
29632009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2964
2965 * nsterm.h (ns_app_name): New extern variable.
2966
2967 * nsterm.m (ns_app_name): New variable.
2968 (ns_term_init): Set and use it.
2969 (ns_term_shutdown): Use it.
2970
2971 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2972 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2973
2974 * nsfns.m (ns_set_name_iconic, ns_set_name)
2975 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2976 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2977
9694740b
SM
2978 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2979 Remove double-casting in client_data comparison.
31c2d412 2980
3208cb35
YM
29812009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2982
2983 * keyboard.c (make_lispy_event): Remember last wheel direction.
2984 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2985
b7d552d6
GM
29862009-09-26 Glenn Morris <rgm@gnu.org>
2987
2988 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2989 internal.elc. Add term/pc-win.elc.
2990 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2991 term/x-win.elc.
2992 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2993 term/w32-win.elc.
2994 (NS_SUPPORT): New.
2995 (lisp): Add NS_SUPPORT.
2996 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2997
4ff670a8
DR
29982009-09-25 David Reitter <david.reitter@gmail.com>
2999
3000 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3001 on Mac OS X 10.6+ (bug#4513).
3002
feabfb6c
JB
30032009-09-24 Juanma Barranquero <lekktu@gmail.com>
3004
3005 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3006 some parts of Emacs code (like font selection) don't grok them.
3007 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3008
de59072a
AS
30092009-09-24 Andreas Schwab <schwab@redhat.com>
3010
3011 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3012
a489517b
JB
30132009-09-24 Juanma Barranquero <lekktu@gmail.com>
3014
3015 * dired.c (Fdirectory_files): Fix typo in docstring.
3016
0592970c
AR
30172009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3018
3019 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3020 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3021 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3022 under GNUstep.
3023 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3024
3025 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3026 glyph advancement.
3027
48e8a88b
AR
30282009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3029
3030 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3031 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3032
3033 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3034 deleted (bug #4492).
3035
e14f0a78
AR
3036 * nsfont.m (Vns_reg_to_script): New lisp variable.
3037 (syms_of_nsfont): Declare it.
3038 (ns_registry_to_script): New function.
3039 (ns_get_req_script): Call it.
3040 (ns_findfonts): Don't give up on non-unicode registry.
3041
3042 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3043
5b650faa
SM
30442009-09-20 Tom Tromey <tromey@redhat.com>
3045
3046 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3047 batch mode (bug#4228).
3048
a489517b 30492009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3050
3051 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3052 carefully. (Bug #4339)
0bae4e09 3053
fcfe06f3
CY
30542009-09-18 Chong Yidong <cyd@stupidchicken.com>
3055
d798ba87 3056 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3057
31642728
AR
30582009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3059
3060 * emacs.c (inhibit_x_resources): Update doc string for NS.
3061 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3062 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3063
3064 * nsterm.h (ns_no_defaults): Remove.
3065
3066 * nsterm.m (ns_no_defaults): Remove.
3067 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3068 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3069 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3070 don't update the NSWindow itself.
3071 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3072 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3073
3074 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3075 ns_use_qd_smoothing.
3076
3077 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3078 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3079 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3080 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3081
8686ac71
JB
30822009-09-17 Juanma Barranquero <lekktu@gmail.com>
3083
3084 * emacs.c (inhibit_x_resources): New variable.
3085 (main) [HAVE_NS]: Don't process --quick command line option.
3086 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3087
3088 * lisp.h (inhibit_x_resources): Declare it extern.
3089
3090 * w32reg.c (x_get_string_resource):
3091 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3092
e227ba05
EZ
30932009-09-17 Eli Zaretskii <eliz@gnu.org>
3094
362654a6
JB
3095 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3096 Add lisp/term/internal.elc.
e227ba05 3097
742d40e8
SM
30982009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3099
3100 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3101 (bug#4461).
3102
005bd5a2
DN
31032009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3104
3105 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3106
3107 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3108 (OBJECTS_MACHINE): Remove, unused.
3109
f9af9719
SM
31102009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3111
3112 * frame.c (x_get_resource_string): Remove unused.
3113
0307c7d2
JD
31142009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3115
3116 * xterm.c (x_new_font): Call change_frame_size before calling
3117 x_set_window_size, in case frame size won't change.
3118
3119 * frame.c (x_set_font): Remove dead code.
3120
428b13d6
SM
31212009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3122
3123 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3124
5766c380
SM
31252009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3126
3127 * lread.c (Fload): Don't output a message after loading an obsolete
3128 package any more (done in Lisp now).
3129
2fd0161b
CY
31302009-09-12 Chong Yidong <cyd@stupidchicken.com>
3131
3132 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3133
bc5e75b6
SM
31342009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3135
3136 * keymap.c (Fwhere_is_internal): Use nconc2.
3137
c31c985e
AM
31382009-09-11 Alan Mackenzie <acm@muc.de>
3139
3140 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3141 batch mode.
3142
78012bd2
AS
31432009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3144
3145 * xdisp.c (display_mode_element): Detect cycles.
3146
9d889332
SM
31472009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3148
3149 * keymap.c (where_is_internal): Don't erroneously return nil right after
3150 filling the cache.
3151 (where_is_internal_1): Fix up typo.
3152
7ab5d780
GM
31532009-09-11 Glenn Morris <rgm@gnu.org>
3154
3155 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3156 share a common doc-string.
3157
5238a749
SM
31582009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3159
66d77eda
SM
3160 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3161 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3162
5238a749
SM
3163 * keymap.c (QCadvertised_binding): New constant.
3164 (syms_of_keymap): Initialize it.
3165 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3166 if applicable.
3167
19f48442
SM
31682009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3169
50d4ba39
SM
3170 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3171 (parse_menu_item): Streamline since bindings are recomputed all the
3172 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3173 more and don't support lmenu's menu-alias any more either.
3174
a88a5372
SM
3175 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3176 (where_is_internal): Strip it down to only traverse the keymaps.
3177 Move the cache handling from Fwhere_is_internal to here.
3178 (Fwhere_is_internal): Move the handling of remapping and the choice of
3179 the best binding from where_is_internal to here.
3180 Unify the cached/noncached paths, so remapping is also handled
3181 correctly when the cache is used, and so the cache can be used to
3182 speed up remap-handling when applicable.
3183 Give preference to non-remapped bindings.
3184 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3185 non-remapped bindings.
3186 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3187 command remapping.
3188
19f48442
SM
3189 * xdisp.c (display_mode_element): Move list length limit from 50 to
3190 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3191
599498c3 31922009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3193
3194 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3195
f9b7b5ac
SM
31962009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3197
a53af587
JB
3198 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3199 (Bug#4334)
3200
f9b7b5ac
SM
3201 * keymap.c (where_is_internal): Filter out shadowed remappings.
3202 Assume that where_is_internal returns unshadowed bindings to simplify
3203 the code and get rid of the gotos. Use ASIZE.
3204
04f4b72d
JD
32052009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3206
4da146f2
JD
3207 * xterm.c (x_focus_changed): If we get a focusout and pointer
3208 is invisible, make it visible.
3209
04f4b72d
JD
3210 * xterm.h: Remove condition for declaration of
3211 x_*_window_to_frame.
3212
7cef7ce3
SM
32132009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3214
3215 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3216 initial terminal as well.
3217
a54fa5b7
JD
32182009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3219
3220 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3221 x_menubar_window_to_frame.
a54fa5b7 3222
50426a04 3223 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3224 (XTmouse_position): Do not return valid positions
3225 for clicks in the menubar and the toolbar for Gtk+.
3226
3227 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3228 if the widget for the event has the same top level as a frame,
3229 return the frame.
3230 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3231 internal windows, bug #4122.
3232 (x_non_menubar_window_to_frame): Remove.
3233
5a021dd0
GM
32342009-09-02 Glenn Morris <rgm@gnu.org>
3235
3236 * buffer.c (default-major-mode): Move most of the doc from here...
3237 (major-mode): ... to here.
3238
548fe2f3
NR
32392009-08-30 Nick Roberts <nickrob@snap.net.nz>
3240
3241 * process.c (wait_reading_process_output): Keep the descriptor
3242 when pty is used by a non-child process, e.g., in I/O buffer of
3243 GDB this allows inferior to be restarted.
3244
e0840eef
EZ
32452009-08-29 Eli Zaretskii <eliz@gnu.org>
3246
3247 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3248 both branches into one.
3249
82e98df4
SM
32502009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3251
3252 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3253 (main): Use enable-multibyte-characters rather than
3254 default-enable-multibyte-characters. Output a warning message when
3255 running a unibyte session.
3256
890617cb
YM
32572009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3258
3259 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3260 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3261 (copy_data_segment): Also copy __program_vars section.
3262 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3263 (dump_it) [LC_DYLD_INFO]: Use it.
3264
3265 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3266
e7adeadc
EZ
32672009-08-28 Eli Zaretskii <eliz@gnu.org>
3268
3269 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3270 $(SRC)/buildobj.h.
3271 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3272 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3273 $(SRC)/buildobj.h.
3274 (clean): Add buildobj.h.
3275
3ed8bbdc
TZ
32762009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3277
3278 * print.c (print_object): Set escapeflag to 1 when printing
3279 hashtable keys and values.
3280
155a6764
SM
32812009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3282
3283 * lread.c (read_integer): Use doubles (and potentially return a float
3284 number) as we do in string-to-number.
3285 (read1): Use strtol to read integers, signal errors on strtol's
3286 overflow and use floats if strtol's output is too large for
3287 Elisp integers.
3288
877610de
EZ
32892009-08-27 Eli Zaretskii <eliz@gnu.org>
3290
3291 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3292 (make-buildobj-SH): Fix last change.
3293 (SRC): Move to before where it's first used.
3294
ef73e7be
KH
32952009-08-27 Kenichi Handa <handa@m17n.org>
3296
550c8289
KH
3297 * process.c (send_process): Use encode_coding_object instead of
3298 encode_coding_string to perform eol-conversion even if the string
3299 is unibyte.
3300
60afa08d
KH
3301 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3302 character.
3303
ef73e7be 3304 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3305 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3306
7b3a82d7
DN
33072009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3308
5654bf63
DN
3309 * callproc.c (Fcall_process): Remove always true #if.
3310
7b3a82d7
DN
3311 * lisp.h: Replace #if 0 code for checking with text pointing to
3312 the --enable-checking configure flag.
3313
3314 * emacs.c (main): Mention the --enable-profiling configure flag
3315 instead of using CFLAGS.
3316
878bde49
KR
33172009-08-26 Ken Raeburn <raeburn@raeburn.org>
3318
3319 * Makefile.in (buildobj.h): New target.
3320 (doc.o): Depend on it.
3321 (temacs${EXEEXT}): Don't generate buildobj.lst.
3322 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3323 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3324 ($(BLD)/doc.$(O)): Depend on it.
3325 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3326 provided by Eli Zaretskii.)
3327 ($(TEMACS)): Don't generate buildobj.lst.
3328 * doc.c: Include buildobj.h.
3329 (buildobj): New static variable.
3330 (Fsnarf_documentation): Use it, instead of opening and reading
3331 buildobj.lst.
3332
1574224c
MA
33332009-08-25 Michael Albinus <michael.albinus@gmx.de>
3334
3335 * dbusbind.c (Fdbus_call_method)
3336 (Fdbus_call_method_asynchronously): Use English numeric format for
3337 timeout values in doc string.
3338
d9da2f45
KH
33392009-08-25 Kenichi Handa <handa@m17n.org>
3340
ef73e7be
KH
3341 * alloc.c (mark_char_table): New function.
3342 (mark_object): Use mark_char_table for a char-table.
3343
d9da2f45
KH
3344 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3345 (CHAR_TABLE_REF): Use it.
3346
c8edcc01
KR
33472009-08-23 Ken Raeburn <raeburn@raeburn.org>
3348
3349 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3350 before invoking the newly build emacs to check for load-path
3351 shadowing.
3352
7763401b
GM
33532009-08-22 Glenn Morris <rgm@gnu.org>
3354
3355 * Makefile.in (bootstrap_exe): New variable.
3356 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3357 Use ${bootstrap_exe}.
3358
729eadda
EZ
33592009-08-22 Eli Zaretskii <eliz@gnu.org>
3360
3361 * coding.h (encode_coding_string): Don't encode unibyte strings.
3362 (Bug#4047)
3363
eb4c6ace
MA
33642009-08-22 Michael Albinus <michael.albinus@gmx.de>
3365
3366 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3367
3368 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3369 intended as hotfix only.
3370 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3371
36e34d1b
AR
33722009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3373
3374 * nsterm.m (ns_get_color): Update documentation properly for last
3375 change, and clean up loose ends in the code left by it. Fix
3376 longstanding bug with 16-bit hex parsing, and add support for
3377 yet another X11 format (rgb:r/g/b) for compatibility.
3378 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3379 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3380
f983eb8a
SM
33812009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3382
3383 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3384
3f56d3c6
MA
33852009-08-20 Michael Albinus <michael.albinus@gmx.de>
3386
3387 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3388 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3389 (xd_initialize, xd_pending_messages): Check, whether
3390 $DBUS_SESSION_BUS_ADDRESS is set.
3391
fb641d68
YM
33922009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3393
3394 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3395
3396 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3397
cf59a374
GM
33982009-08-20 Glenn Morris <rgm@gnu.org>
3399
3400 * emacs.c (system-type): Doc fix.
3401
1373f3be
SM
34022009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3403
3404 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3405 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3406
058ed861
MA
34072009-08-18 Michael Albinus <michael.albinus@gmx.de>
3408
1373f3be
SM
3409 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3410 New functions.
058ed861
MA
3411 (xd_initialize): Revert change from 2009-08-16.
3412
563a866e 34132009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3414
3415 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3416 font-group vector, return nil.
5fc05db0 3417
e42bdf01
CY
34182009-08-17 Chong Yidong <cyd@stupidchicken.com>
3419
3420 * process.c (status_notify): Don't perform redisplay.
3421 (Fdelete_process, list_processes_1, process_send_signal):
3422 Expliticly perform redisplay.
3423 (wait_reading_process_output): Always check process status, but
3424 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3425
4230ab74
KR
34262009-08-17 Ken Raeburn <raeburn@raeburn.org>
3427
1373f3be 3428 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3429 (XFLOAT_INIT): New macro for storing a float value.
3430 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3431 * fns.c (sxhash): Copy out the value of a float in order to
3432 examine its bytes.
3433 * dbusbind.c (xd_append_arg): Likewise.
3434
4230ab74
KR
3435 * emacs.c (main): Don't call syms_of_data twice.
3436
a0645cdd
MA
34372009-08-16 Michael Albinus <michael.albinus@gmx.de>
3438
3439 * dbusbind.c (xd_initialize): Add connection file descriptor to
3440 input_wait_mask, in order to let select() detect, whether a new
3441 message has been arrived.
ca4f31ea 3442 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3443
485db0ba
MA
34442009-08-15 Michael Albinus <michael.albinus@gmx.de>
3445
1373f3be
SM
3446 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3447 New functions.
485db0ba
MA
3448
3449 * lisp.h (xd_pending_messages): Declare.
3450
3451 * keyboard.c (readable_events): Call xd_pending_messages.
3452
b5b98ff4
CY
34532009-08-15 Chong Yidong <cyd@stupidchicken.com>
3454
1373f3be 3455 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3456
f8354c6e
CY
3457 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3458
b5b98ff4
CY
3459 * buffer.c (set_buffer_internal_1)
3460 (swap_out_buffer_local_variables): Check for unbound local
3461 variables (Bug#4138).
3462
8b9fc636
EZ
34632009-08-14 Eli Zaretskii <eliz@gnu.org>
3464
3465 * process.c (create_pty): Fix last change.
3466
ce959360
CY
34672009-08-13 Chong Yidong <cyd@stupidchicken.com>
3468
3469 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3470 (xbm_load_image): Caller changed.
64b807c9 3471 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3472
c7baf7e9
NR
34732009-08-13 Nick Roberts <nickrob@snap.net.nz>
3474
3475 * process.c (create_pty): New function.
3476 (Fstart_process): Use it to allow Emacs to just associate a pty
3477 with the buffer. See associated change in gdb-mi.el.
3478 (list_processes_1): Deal with no program name.
3479 (start_process_unwind): Use pid == -2 to mean no process.
3480
1ac9108a
SM
34812009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3482
3483 * cmds.c (nonundocount): New global variable.
3484 (keys_of_cmds): Initialize it.
3485 (Fself_insert_command): Use it to combine upto 20 sequential chars
3486 into a single undo entry, just like the Qself_insert_command code in
3487 keyboard.c does.
3488 Call frame_make_pointer_invisible, also like the Qself_insert_command
3489 code in keyboard.c does.
3490 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3491 than its own local replacement for it.
3492
e267324c
KR
34932009-08-10 Ken Raeburn <raeburn@raeburn.org>
3494
1ac9108a 3495 * fns.c (concat): Don't re-set string length to its current value.
77437343 3496
1ac9108a
SM
3497 * coding.h (decode_coding_string, encode_coding_string):
3498 Use SBYTES macro.
f0bed503 3499
1ac9108a 3500 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3501 (doprnt): Merge with doprnt1, discarding lispstrings code.
3502 * lisp.h (doprnt_lisp): Don't declare.
3503
416e006d
JL
35042009-08-07 Juri Linkov <juri@jurta.org>
3505
3506 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3507
6f7d5780
DN
35082009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3509
3510 * print.c (syms_of_print): Undo previous change.
3511
f19a0f5b
TZ
35122009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3513
3514 * lread.c (read1, syms_of_lread): Read hashtables back from the
3515 readable format.
3516
3517 * print.c (print_preprocess, print_object): Print hashtables fully
3518 and readably.
3519 (syms_of_print): Provide 'hashtable-print-readable.
3520
b9173dc2
AR
35212009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3522
3523 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3524 no family set.
3525 (nsfont_open): Handle case when entity has no family.
3526
1586503c
AR
35272009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3528
3529 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3530 element, not a list, for match case.
3531
087048cd
KH
35322009-07-28 Kenichi Handa <handa@m17n.org>
3533
3534 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3535 rigidly.
3536
3537 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3538 font_parse_xlfd. Check font properties more rigidly.
3539
780c2506
DN
35402009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3541
31fd7c5c
JB
3542 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3543 bsd-common.h.
780c2506 3544
a8c0cc18
KH
35452009-07-27 Kenichi Handa <handa@m17n.org>
3546
3547 * xfaces.c (face_with_height): Call font_clear_prop.
3548
4fbe2306
CY
35492009-07-26 Chong Yidong <cyd@stupidchicken.com>
3550
111d9af3
CY
3551 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3552
3553 * xterm.c (x_term_init): Use Qx.
3554
4fbe2306
CY
3555 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3556
1ac9108a 3557 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3558 (ns_get_color): Revert 2009-07-16 change.
3559
beb0b7f9
EZ
35602009-07-25 Eli Zaretskii <eliz@gnu.org>
3561
3562 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3563 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3564
2baf5e76
KR
35652009-07-25 Ken Raeburn <raeburn@raeburn.org>
3566
1ac9108a
SM
3567 * coding.h (decode_coding_string, encode_coding_string):
3568 Use SCHARS macro.
8890e5f5 3569
2baf5e76 3570 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3571 (load_depth): Delete.
2baf5e76
KR
3572 (Qload_in_progress): New variable.
3573 (load_unwind): Don't reference load_depth or load_in_progress.
3574 (Fload): Likewise; specbind Qload_in_progress instead.
3575 (init_lread): Don't initialize load_depth.
3576 (syms_of_lread): Initialize and protect Qload_in_progress.
3577
1395c6f5
AR
35782009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3579
3580 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3581
4e2f36cf
AR
35822009-07-23 Yavor Doganov <yavor@gnu.org>
3583
3584 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3585
5dd9a6f7
AR
35862009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3587
3588 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3589 Bugs 3792, 3720, 2402.
3590 (ns_lookup_indexed_color): Check for bad index.
3591 (ns_index_color): Init unused slot to 0.
3592 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3593 Bug 3714, possibly 3082.
5dd9a6f7 3594
c902b920
JR
35952009-07-22 Jason Rumney <jasonr@gnu.org>
3596
1ac9108a
SM
3597 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3598 Position IME window at cursor (Bug#2570).
c902b920
JR
3599 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3600 (globals_of_w32fns): Dynamically load functions required above.
3601
3602 * w32term.c (w32_draw_window_cursor): Send message to reposition
3603 any IME window.
3604
090101cf
CY
36052009-07-21 Chong Yidong <cyd@stupidchicken.com>
3606
3607 * fileio.c: Revert 2009-07-16 changes.
3608 (Vauto_save_include_big_deletions): New variable.
3609 (Fdo_auto_save): Disable auto-save only if
3610 auto-save-include-big-deletions is nil.
3611
e6583e3d
CY
36122009-07-21 Chong Yidong <cyd@stupidchicken.com>
3613
3614 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3615 the overflowed pixels into account (Bug#3879).
3616
ece435a5
KR
36172009-07-21 Ken Raeburn <raeburn@raeburn.org>
3618
3619 * lread.c (load_depth): New variable.
3620 (Fload, load_unwind, init_lread): Set it to the load recursion
3621 depth; set load_in_progress as a simple boolean based on the
3622 current load_depth. (Bug#3892)
3623
40b2d973
AR
36242009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3625
3626 * nsfont.m (ns_has_attribute): Remove.
3627 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3628
10be7e0d
JL
36292009-07-18 Juri Linkov <juri@jurta.org>
3630
3631 * process.c (Fset_process_query_on_exit_flag): Mention killing
3632 a buffer in docstring.
3633
fa055055
KH
36342009-07-17 Kenichi Handa <handa@m17n.org>
3635
3636 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3637
042f7b69
YM
36382009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3639
3640 * nsfns.m (Fns_set_alpha): Remove function.
3641 (syms_of_nsfns): Don't defsubr it.
3642
3643 * nsterm.m (ns_get_color): Remove incompatible color formats.
3644 (ns_color_to_lisp): Generate #rrggbb color format string.
3645
4be941e3
RS
36462009-07-16 Richard Stallman <rms@gnu.org>
3647
3648 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3649 (Fset_buffer_auto_saved): Handle save_length = -2.
3650
4e6b227d
CY
36512009-07-16 Chong Yidong <cyd@stupidchicken.com>
3652
3653 * xterm.c (Qx_gtk_map_stock): New var.
3654
3655 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3656 of calling intern each time.
3657
a1856973
YM
36582009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3659
3660 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3661 does tiling.
3662
3663 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3664
497e54d8
KH
36652009-07-14 Kenichi Handa <handa@m17n.org>
3666
72d36834
KH
3667 * font.c (font_vconcat_entity_vectors): New function.
3668 (struct font_sort_data): New member font_driver_preference.
3669 (font_compare): Check font_driver_preference.
3670 (font_sort_entities): The format of the first argument changed.
3671 (font_delete_unmatched): Likewise.
3672 (font_list_entities): The return type changed.
3673 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3674 (font_find_for_lface): Adjuste for the above changes.
3675 Don't suppress the checking of C even if the repertory supports it.
3676 (Flist_fonts): Adjust for the above changes.
72d36834 3677
1ac9108a
SM
3678 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3679 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3680 Reject a font who has adstyle property that is different from a
3681 langname derived from registry property.
1ac9108a 3682 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3683
b6046155
EZ
36842009-07-13 Eli Zaretskii <eliz@gnu.org>
3685
3686 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3687 local copy of dirfilename.
3688
fb6b6049
KH
36892009-07-13 Kenichi Handa <handa@m17n.org>
3690
e2402a5e
KH
3691 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3692 against max_char.
3693
fb6b6049
KH
3694 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3695 calling XSYMBOL (sym).
3696
65156807
EZ
36972009-07-11 Eli Zaretskii <eliz@gnu.org>
3698
1ac9108a
SM
3699 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3700 New function.
3701 (directory_files_internal) [WINDOWSNT]:
3702 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3703 the filesystem of the directory is fast or slow.
3704
3705 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3706 file name.
3707 (is_slow_fs): New function.
3708 (stat): Use it to determine whether to issue more system calls to
3709 get accurate file attributes, when w32-get-true-file-attributes is
3710 `local'.
3711
e0ab5fcf
JD
37122009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3713
3714 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3715 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3716 parameter font-parameter as default to the font dialog.
3717
784ceded
KH
37182009-07-10 Kenichi Handa <handa@m17n.org>
3719
3720 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3721
fb8edc0b
EZ
37222009-07-09 Eli Zaretskii <eliz@gnu.org>
3723
1ac9108a 3724 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3725
fb8edc0b
EZ
3726 * w32.c (stat): Treat UNC file names as residing on remote
3727 drives. (Bug#3542)
3728
635c75b1
KH
37292009-07-09 Kenichi Handa <handa@m17n.org>
3730
3731 * fontset.c (fontset_find_font): Fix previous change.
3732
c1d5ce94
MA
37332009-07-08 Michael Albinus <michael.albinus@gmx.de>
3734
3735 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3736 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3737 error flag.
3738
edb61b39
KH
37392009-07-08 Kenichi Handa <handa@m17n.org>
3740
374bf7e4
KH
3741 * fontset.c (fontset_find_font): Fix the logic of handling
3742 charset_matched.
3743 (font_for_char): Delete unused var.
3744 (generate_ascii_font_name): Delete it.
3745
edb61b39
KH
3746 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3747
3748 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3749 (encode_coding_sjis): Fix the code range check.
3750
0f3f018c
CY
37512009-07-07 Chong Yidong <cyd@stupidchicken.com>
3752
3753 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3754 (Fexpand_file_name): Copy string data properly (Bug#3772).
3755
fcaf6f3a
JD
37562009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3757
3758 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3759 first MapNotify.
3760
6809ca75
KH
37612009-07-07 Kenichi Handa <handa@m17n.org>
3762
3763 * character.h (unibyte_has_multibyte_table): Delete extern.
3764 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3765
3766 * charset.c (Fset_charset_priority): Update charset_unibyte.
3767 (syms_of_charset): Initialize charset_unibyte.
3768
3769 * character.c (unibyte_has_multibyte_table): Delete it.
3770 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3771 charset_unibyte.
3772 (multibyte_char_to_unibyte_safe): Likewise.
3773 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3774
1ac9108a 3775 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3776 (x_produce_glyphs): Likewise.
3777
3778 * .gdbinit (xcharset): Fix the treating $arg0.
3779
ad9e2d54
EZ
37802009-07-04 Eli Zaretskii <eliz@gnu.org>
3781
3782 Emulation of `getloadavg' on MS-Windows.
50426a04 3783 * w32.c: Include float.h.
ad9e2d54
EZ
3784 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3785 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3786 (get_native_system_info, get_system_times): New functions.
3787 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3788 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3789 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3790 g_b_init_get_system_times, and num_of_processors.
3791
0a3472c7
JR
37922009-07-03 Jason Rumney <jasonr@gnu.org>
3793
3794 * w32term.c (w32_initialize): Use standard types.
3795
80904120
EZ
37962009-07-03 Eli Zaretskii <eliz@gnu.org>
3797
3798 * dired.c (Ffile_attributes): Decode user and group names by the
3799 locale's encoding. (Bug#3443)
3800
6978862d
DN
38012009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3802
f8d23104
DN
3803 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3804 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3805
3806 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3807
3808 * term.c (init_tty): Remove spurious #ifdef.
3809
6978862d
DN
3810 * m/mips.h: Mention this file is also used for netbsd.
3811 * m/pmax.h: Remove file.
3812
e044e4fc
JD
38132009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3814
3815 * xterm.h (struct x_display_info): Add invisible_cursor.
3816 (struct x_output): Add current_cursor.
3817
3818 * xterm.c (XTtoggle_invisible_pointer): New function.
3819 (x_define_frame_cursor): Don't define cursor if invisible or the
3820 same as before. Set current_cursor.
3821 (x_create_terminal): Set toggle_invisible_pointer_hook.
3822
3823 * xfns.c (make_invisible_cursor): New function.
3824 (x_set_mouse_color): Call make_invisible_cursor.
3825 Set current_cursor.
3826 (x_window): Set current_cursor.
3827
3828 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3829
3830 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3831 inserting a character.
3832 (read_avail_input): Call frame_make_pointer_visible.
3833
3834 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3835 (frame_make_pointer_invisible, frame_make_pointer_visible):
3836 New functions.
e044e4fc
JD
3837 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3838
3839 * frame.h: Declare frame_make_pointer_invisible and
3840 frame_make_pointer_visible.
3841 (struct frame): Add pointer_invisible.
3842
574c8efa
JD
38432009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3844
7b507248
JD
3845 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3846 frame isn't visible.
3847 (xg_frame_resized): If width/height is -1, get size of window
3848 from X server.
3849
3850 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3851 for MapNotify.
3852
835bdaa7 3853 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3854 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3855 (flush_and_sync): Reintroduce.
574c8efa 3856
3f1c6666 38572009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3858
31fd7c5c 3859 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3860
3861 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3862 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3863
3864 * frame.h: Declare Qsticky.
3865
cad9ef74
JD
3866 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3867
3868 * nsfns.m (ns_frame_parm_handlers): Ditto.
3869
3870 * frame.c: Declare Qsticky.
3871 (frame_parms): Add sticky.
3872
3873 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3874
3875 * xterm.h: Declare x_set_sticky.
3876
3877 * xterm.c (x_set_sticky): New function.
3878
69b16610
JD
3879 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3880 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3881 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3882
3883 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3884
3885 * frame.c: Qmaximized is new.
3886 (x_set_frame_parameters): Do not handle fullscreen specially.
3887 Only set width and height if explicitly set.
3888 (x_set_fullscreen): Handle Qmaximized.
3889 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3890 (syms_of_frame): Initialize Qmaximized.
3891
1ac9108a
SM
3892 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3893 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3894
3895 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3896 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3897 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3898 set gravity to NorthWestGravity when USE_GTK.
3899 (set_wm_state): New function.
31fd7c5c 3900 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3901 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3902 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3903 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3904 to x_real_positions and x_fullscreen_adjust.
3905
3906 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3907 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3908 flush_and_sync.
3909 (xg_height_changed): New function.
3910 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3911 and gtk_window_set_policy. Set frame gravity after parsing the
3912 geometry string.
3f1c6666
JD
3913 (xg_update_frame_menubar, free_frame_menubar)
3914 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3915 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3916 Remove calls to xg_frame_set_char_size.
3917
fd503d99
KH
39182009-07-01 Kenichi Handa <handa@m17n.org>
3919
3920 * keyboard.c (decode_keyboard_code): New function.
3921 (tty_read_avail_input): Decode the input bytes if necessary.
3922
1ac9108a
SM
3923 * coding.c (setup_coding_system):
3924 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3925 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3926 use Qno_conversion.
3927
24ed93fb
YM
39282009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3929
3930 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3931
99061dfc
CY
39322009-06-30 Chong Yidong <cyd@stupidchicken.com>
3933
1ac9108a 3934 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3935
ff90fbde
JR
39362009-06-30 Jason Rumney <jasonr@gnu.org>
3937
3938 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3939 is already loaded.
3940 Set user model ID if supported (bug#1849).
3941
5f445726
JM
39422009-06-29 Jim Meyering <meyering@redhat.com>
3943
3944 Remove useless if-before-xfree test.
3945 * nsfont.m (nsfont_close): Remove useless test.
3946 * term.c (delete_tty): Likewise.
3947 * w32.c (system_process_attributes): Likewise.
3948 * w32font.c (w32font_close): Likewise.
3949 * xfaces.c (x_free_gc): Likewise.
3950 * xselect.c (buffer): Likewise.
3951
b9607587
AS
39522009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3953
3954 * process.c (send_process): Keep decoded string in a local
3955 variable and protect it from GC. (Bug#3521)
3956
89ba96f4
EZ
39572009-06-28 Eli Zaretskii <eliz@gnu.org>
3958
3959 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3960 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3961
098a1589
CY
39622009-06-28 Chong Yidong <cyd@stupidchicken.com>
3963
485422be
CY
3964 * xdisp.c (start_display, handle_face_prop)
3965 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3966 (redisplay_window, try_window_id, produce_image_glyph):
3967 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3968
098a1589
CY
3969 * xterm.c (x_update_window_begin, x_new_focus_frame)
3970 (x_scroll_bar_handle_click, handle_one_xevent)
3971 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3972 (x_make_frame_visible, x_make_frame_invisible)
3973 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3974 code chunks that are now obsolete.
3975
78c38319
MA
39762009-06-28 Michael Albinus <michael.albinus@gmx.de>
3977
3978 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3979 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3980 for hours, when optimzation is enabled.
3981 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3982 (xd_read_message): Make them static.
3983
4189ed40
CY
39842009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3985
3986 * term.c (turn_on_face): Allow simultaneously bold and dim
3987 terminal faces (Bug#3530).
3988
cd9b5e16
CY
39892009-06-27 Chong Yidong <cyd@stupidchicken.com>
3990
4e23bedb
CY
3991 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3992
cd9b5e16
CY
3993 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3994 truncation glyphs (Bug#3686).
3995
07cc3c35
GM
39962009-06-27 Glenn Morris <rgm@gnu.org>
3997
3998 * m/pmax.h: Restore file, with only netbsd portions.
3999
31fd7c5c 40002009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4001
cd9b5e16 4002 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4003
42d4a64f
KH
40042009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4005
4006 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4007 the arg FORCE_SYMBOL.
4008
930fe55b 40092009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4010
4011 * fontset.c (fontset_find_font): When a usable rfont_def is found
4012 in a fallback font-group, make it the first element of the group.
4013
57ebc3fd
CY
40142009-06-24 Chong Yidong <cyd@stupidchicken.com>
4015
4016 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4017
f084f942
KH
40182009-06-24 Kenichi Handa <handa@m17n.org>
4019
4020 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4021 set for C.
4022 (fontset_font): Record the availability of a font for C both in
4023 the realized fontsets of the current one and the default one.
4024
2f686c87
DN
40252009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4026
4027 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4028 conditional, it is always defined on AIX.
4029
666e158e
MB
40302009-06-23 Miles Bader <miles@gnu.org>
4031
4032 * window.c (Vrecenter_redisplay): New variable.
4033 (syms_of_window): Initialize it.
4034 (Qtty): New extern declaration.
4035 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4036
c6da7cd2
JM
40372009-06-23 Jim Meyering <meyering@redhat.com>
4038
1ac9108a
SM
4039 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4040 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4041 pointer dereferences are guaranteed to be valid.
c6da7cd2 4042
678dca3d
KH
40432009-06-23 Kenichi Handa <handa@m17n.org>
4044
74d75424
KH
4045 * emacs.c (main): Call init_font ().
4046
4047 * font.h (Vfont_log): Extern it.
4048 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4049
4050 * font.c (font_sort_entities, font_list_entities)
4051 (font_matching_entity, font_open_entity)
4052 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4053 (Vfont_log): Delete static.
4054 (font_log_env_checked): Delete this variable.
4055 (font_add_log): Don't check font_log_env_checked.
4056 (font_deferred_log): Check Vfont_log.
4057 (init_font): New function.
4058
678dca3d
KH
4059 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4060
4061 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4062
4063 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4064
4065 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4066
4067 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4068 (face_for_char): Don't call font_deferred_log here.
4069 (font_for_char): Likewise.
4070
8a668709
CY
40712009-06-22 Chong Yidong <cyd@stupidchicken.com>
4072
9a01ee33
CY
4073 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4074 rather than its background_width for drawing the overline and
4075 underline (Bug#489).
4076
4077 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4078 rather than its background_width for drawing the overline and
4079 underline (Bug#489).
ec7c9926
CY
4080 (xg_default_icon_file): New variable.
4081 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4082 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4083
8a668709
CY
4084 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4085 (load_overlay_strings): Remove externs.
4086 (fast_find_position): Function deleted.
4087 (mouse_face_from_buffer_pos): New function, based on
4088 fast_find_position. Correctly handle before-strings,
4089 display-strings, and after-strings (Bug#1220).
4090 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4091
4d4c02d8
CY
40922009-06-21 Chong Yidong <cyd@stupidchicken.com>
4093
1ac9108a 4094 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4095 (move_it_in_display_line_to, move_it_in_display_line_to)
4096 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4097
70243478
CY
40982009-06-21 Chong Yidong <cyd@stupidchicken.com>
4099
4100 * Branch for 23.1.
4101
13087e59
JR
41022009-06-21 Jason Rumney <jasonr@gnu.org>
4103
4104 * w32term.c (keyboard_codepage): New static variable.
4105 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4106 (w32_read_socket) [WM_CHAR]: Use it to decode character
4107 input (bug#3237).
4108 (w32_initialize): Initialize it.
4109 (codepage_for_locale): New function.
4110
4735b74e
KR
41112009-06-20 Ken Raeburn <raeburn@raeburn.org>
4112
4113 * process.c (status_message): Pass Faset index argument as a lisp
4114 object, so as to work with USE_LISP_UNION_TYPE.
4115
0e727afa
YM
41162009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4117
4118 * coding.c (Ffind_coding_systems_region_internal):
4119 Cache checked characters.
4120
cf299835
KH
41212009-06-18 Kenichi Handa <handa@m17n.org>
4122
1ac9108a 4123 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4124
90f20d94
AS
41252009-06-18 Andreas Schwab <aschwab@redhat.com>
4126
4127 * xdisp.c (redisplay_internal): Check that the frame is still
4128 live after redisplay of its windows.
4129 (redisplay_windows): Check that the window is still live.
4130
7f1faf1c
KH
41312009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4132
4133 * coding.c (detect_coding_utf_16): Fix previous change.
4134
cc13543e
KH
41352009-06-16 Kenichi Handa <handa@m17n.org>
4136
4137 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4138 UTF-16 by checking the dispersion of Eth and Oth bytes.
4139
977b85f4
AS
41402009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4141
4142 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4143
66bd43d1
KH
41442009-06-15 Kenichi Handa <handa@m17n.org>
4145
4146 * process.c (status_message): Fix previous change. Be sure to
4147 decode a localized string.
4148
cb5ca9c5
YM
41492009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4150
4151 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4152 add comment explaining why.
4153
ec7709ba 41542009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4155
ec7709ba 4156 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4157
4b7f335c
AR
41582009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4159
4160 * nsfont.m (ns_attribute_value): Remove.
4161 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4162 (ns_has_attribute): Shrink the normal range.
4163 (ns_findfonts): Don't worry about requested spec in determining
4164 need for synthItal.
e41820ee 4165 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4166
73b26103
SZ
41672009-06-14 Seiji Zenitani <zenitani@mac.com>
4168
4169 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4170
5753e4da
KH
41712009-06-11 Kenichi Handa <handa@m17n.org>
4172
4173 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4174 overhang for the static composition case.
4175
3561b671
KH
41762009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4177
5753e4da
KH
4178 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4179 overhang for the automatic composition case.
4180
3561b671
KH
4181 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4182 composition case.
4183
852bbd41
CY
41842009-06-10 Chong Yidong <cyd@stupidchicken.com>
4185
4186 * xdisp.c (get_next_display_element): When handling wrap-prefix
4187 and line-prefix, treat \n as a control character (bug#3502).
4188
9903d1e6
KH
41892009-06-10 Kenichi Handa <handa@m17n.org>
4190
4191 * font.c (font_parse_family_registry): Fix for one-char foundry.
4192 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4193
0bcbaaaa
CY
41942009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4195
4196 * process.c (status_message): Fix handling of multibyte signal
4197 string (Bug#3499).
4198
40aa3f13
JM
41992009-06-09 Jim Meyering <meyering@redhat.com>
4200
1f80c7e2
CY
4201 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4202 color name is missing.
40aa3f13 4203
72d51285
KH
42042009-06-09 Kenichi Handa <handa@m17n.org>
4205
4206 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4207 FROM-CODE and TO-CODE are codepoints of CHARSET.
4208
c1d04d84
AR
42092009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4210
4211 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4212
42132009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4214
4215 Changes to support :script/:lang/:otf in NS font driver.
4216 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4217 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4218 indicate not part of font driver interface, and change callers.
4219 (ns_get_family): Remove pointless null check.
4220 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4221 ns_spec_to_descriptor, ns_descriptor_to_entity.
4222 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4223 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4224 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4225 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4226 (ns_get_req_script, ns_accumulate_script_ranges)
4227 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4228 New functions.
4229 (nsfont_list, nsfont_match): Use ns_findfonts.
4230 (nsfont_open): Use font descriptor instead of traits.
4231 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4232 (dump_glyphstring): Rename to ns_dump_glyphstring.
4233
c7eb9816
AR
4234 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4235
c1d04d84
AR
4236 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4237
4238 * fontset.c (fontset_from_font): Remove NS-specific code.
4239
ec7709ba 42402009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4241
4242 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4243 nonactive windows.
4244
31fd7c5c 42452009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4246
1ac9108a 4247 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4248
68852c13 42492009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4250
4251 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4252
6756cd1d
CY
42532009-06-07 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4256 account for the overflowing of newlines into the last glyph on the
4257 display line (Bug#3482).
4258
28bf482a
DR
42592009-06-05 David Reitter <david.reitter@gmail.com>
4260
ec7709ba
JB
4261 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4262 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4263 Fns_selection_exists_p, Fns_selection_owner_p.
4264
fdb55376
JR
42652009-06-03 Jason Rumney <jasonr@gnu.org>
4266
4267 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4268 available. (Bug#3379)
4269
05129fbe
KH
42702009-05-29 Kenichi Handa <handa@m17n.org>
4271
1ac9108a
SM
4272 * coding.c (get_translation_table):
4273 Check Venable_character_translation.
05129fbe 4274
ec7709ba 42752009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4276
ec7709ba
JB
4277 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4278 (x_make_frame_visible): Move frame to front rather than calling
15891144 4279 ns_raise_frame().
ec7709ba 4280 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4281 isn't key window.
ec7709ba 4282 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4283 drawRect may be called by NSView even if the frame is hidden.
4284
ec7709ba
JB
4285 * nsfns.m (Fx_create_frame): Follow other ports in
4286 determining visibility; default to t. Ensure async_visible is set.
15891144 4287
21f73755
EZ
42882009-05-23 Eli Zaretskii <eliz@gnu.org>
4289
4290 * dired.c (Ffile_attributes): Doc fix.
4291
34001e41
CY
42922009-05-22 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4295
46306a17
SM
42962009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4297
4298 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4299 and xfont_scratch_props.
4300 (syms_of_xfont): Do it here instead.
4301 (xfont_find_ccl_program): Delete, unused.
4302 (xfont_open): Delete unused var `i'.
4303
ef6e0694
KH
43042009-05-21 Kenichi Handa <handa@m17n.org>
4305
4306 * fontset.c (Qlatin): Don't make it static.
4307
46306a17
SM
4308 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4309 New functions.
ef6e0694
KH
4310 (xfont_scripts_cache, xfont_scratch_props): New variables.
4311 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4312 (xfont_list_pattern): Argument changed. Callers changed.
4313 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4314 (xfont_list): Don't reject a font spec with :script property.
4315 (xfont_has_char): Fix setting of encoding.
4316 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4317 xfont_scratch_props.
4318
43192009-05-19 Kenichi Handa <handa@m17n.org>
4320
46306a17 4321 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4322 Callers changed.
4323
43242009-05-18 Kenichi Handa <handa@m17n.org>
4325
4326 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4327
ac71ced7
SM
43282009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4329
4330 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4331 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4332
1c6d1051
YM
43332009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4334
4335 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4336 (x_delete_terminal): Dissociate resource database from display and
4337 then call XrmDestroyDatabase before closing display.
4338
9b9b779c
AR
43392009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4340
4341 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4342 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4343 whether selected frame is viable before raising it (based on patch
4344 by David Reitter), and improve commentary.
4345 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4346
cccd42d5
KH
43472009-05-15 Kenichi Handa <handa@m17n.org>
4348
4349 * font.c (Ffont_spec): Check arguments.
4350
337fbd17
CY
43512009-05-14 Chong Yidong <cyd@stupidchicken.com>
4352
4353 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4354 weight when testing attributes (Bug#3282).
4355
47a6002f
JD
43562009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4357
4358 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4359 what we expect to get in the next ConfigureNotify event.
4360
9cb363db
YM
4361 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4362 before Xft one (Bug#1696).
4363
b9126609
CY
43642009-05-07 David Reitter <david.reitter@gmail.com>
4365
4366 * nsfns.m (Fx_display_planes): Compute bitplanes using
4367 NSBitsPerPixelFromDepth (Bug#3207).
4368
27a69fd9
CY
43692009-05-10 Chong Yidong <cyd@stupidchicken.com>
4370
4371 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4372
00f37552
TTN
43732009-05-10 Ulrich Mueller <ulm@gentoo.org>
4374
4375 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4376
2d82a920
DR
43772009-05-07 David Reitter <david.reitter@gmail.com>
4378
ec7709ba
JB
4379 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4380 Respect mouse face background.
2d82a920 4381
46b0d52d
DR
43822009-05-07 David Reitter <david.reitter@gmail.com>
4383
ec7709ba
JB
4384 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4385 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4386 in ns_update_begin and ns_update_end.
4387
ce1b23bb
SM
43882009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4389
5996e1b7
SM
4390 * nsfns.m (ns_get_screen): Rewrite.
4391 Don't presume selected-frame is of type `ns'.
4392
ba98e3a0
SM
4393 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4394 all drivers.
4395
ce1b23bb
SM
4396 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4397
bcda200f
YM
43982009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4399
4400 * keyboard.h (add_user_signal): Fix typo in extern.
4401
4402 * lisp.h (add_user_signal): Remove extern.
4403
4404 * unexelf.c (unexec): Consider a section to precede the .bss section
4405 if its addresses overlap that of .bss.
4406 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4407 instead of dumping process.
4408
864660a2
SM
44092009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4410
4411 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4412
50da4e56
SM
44132009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4414
4415 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4416
51520a1a
DN
44172009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4418
4419 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4420 any statements.
4421
409ea3a1
AS
44222009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4423
59c4c60f
AS
4424 * process.c (read_process_output): Make sure the current buffer is
4425 always restored.
4426
409ea3a1
AS
4427 * coding.c (record_conversion_result): Don't modify
4428 Vlast_code_conversion_error for successful result.
4429 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4430
56f00ed2
KH
44312009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4432
4433 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4434 (load_charset_map): Remove unnecessary code.
56f00ed2 4435
4491c9d2
DR
44362009-04-30 David Reitter <david.reitter@gmail.com>
4437
35f5b128 4438 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4439 through f24.
4440
6970f632
CY
44412009-04-30 Chong Yidong <cyd@stupidchicken.com>
4442
4443 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4444
4445 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4446 face_at_buffer_position.
4447 (face_before_or_after_it_pos, get_next_display_element)
4448 (note_mouse_highlight): Update face_at_buffer_position call.
4449
4450 * term.c (term_mouse_highlight):
4451 * msdos.c (IT_note_mouse_highlight):
4452 * fontset.c (Finternal_char_font):
35f5b128 4453 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4454
4455 * dispextern.h (face_at_buffer_position): Update prototype.
4456
0c616f63
KH
44572009-04-30 Kenichi Handa <handa@m17n.org>
4458
35f5b128 4459 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4460
ad3aaf33
AS
44612009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4462
4463 * callproc.c (Fcall_process): Fix GC protection. Make sure
4464 current buffer is always restored.
4465
c3c963a0
YM
44662009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4467
4468 * atimer.c (init_atimer): Also clear stopped_atimers.
4469
4470 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4471
7e3386cb
YM
4472 * process.c (create_process): Clean up merger residues of
4473 2008-07-17 change.
4474
91f68422
CY
44752009-04-29 Ulrich Mueller <ulm@gentoo.org>
4476
4477 * lread.c (Vread_circle): New variable.
4478 (read1): Disable recursive read if Vread_circle is nil.
4479
24b34550
KH
44802009-04-29 Kenichi Handa <handa@m17n.org>
4481
4482 * fontset.h (set_default_ascii_font): Delete extern.
4483
4484 * fontset.c (set_default_ascii_font): Delete this unused function.
4485
4486 * frame.c (x_set_font): When ARG is a font-object, check if the
4487 font-object matches with the ASCII font-spec of the frame's
9c358bda 4488 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4489
77bf07e1
AS
44902009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4491
4492 * fns.c (Flocale_info): Protect vector from GC during decoding.
4493
4494 * process.c (Fstart_process): Protect argv strings from GC during
4495 encoding.
4496
2c55aacf
AS
44972009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4498
4499 * sysdep.c: Include <ctype.h>.
4500
b892d3c9
DR
45012009-04-27 David Reitter <david.reitter@gmail.com>
4502
35f5b128 4503 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4504 Remove commented-out code.
4505
9d0644c4
JB
45062009-04-26 Johan Bockgård <bojohan@gnu.org>
4507
4508 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4509
b7053016
JR
45102009-04-25 Jason Rumney <jasonr@gnu.org>
4511
4512 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4513
4e8231f3
YM
45142009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4515
4516 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4517 Swap bytes in short integer if fringe bitmap width > 8.
4518
493dcf2c
KH
45192009-04-23 Kenichi Handa <handa@m17n.org>
4520
4521 * xfaces.c (Fx_list_fonts): If a font size is specified in
4522 PATTERN, set it in returned scalable fonts.
4523
401e9e57
CY
45242009-04-22 Chong Yidong <cyd@stupidchicken.com>
4525
708e05dc
CY
4526 * keyboard.c (Fset_input_meta_mode): Doc fix.
4527
4528 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4529
1ac9108a 4530 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4531
4532 * coding.c (Fterminal_coding_system): Doc fix.
4533
4534 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4535 (Fx_display_pixel_height, Fx_display_planes)
4536 (Fx_display_color_cells, Fx_server_max_request_size)
4537 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4538 (Fx_display_mm_height, Fx_display_mm_width)
4539 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4540 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4541 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4542 (check_x_display_info): Handle terminal objects instead of
4543 terminal ids.
4544
401e9e57
CY
4545 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4546 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4547 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4548 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4549
df80c7f0
KH
45502009-04-21 Kenichi Handa <handa@m17n.org>
4551
5a8f12af 4552 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4553 (font_score): Check AVGWIDTH too.
908567ef 4554
df80c7f0
KH
4555 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4556 worst case.
1ac9108a
SM
4557 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4558 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4559
705af33f
JR
45602009-04-19 Jason Rumney <jasonr@gnu.org>
4561
4562 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4563 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4564
4565 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4566 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4567 get_phys_cursor_geometry.
4568
b71ac3dd 4569 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4570 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4571 using get_phys_cursor_geometry.
4572
4573 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4574 correctly calculated.
4575
dc2933eb
JD
45762009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4577
1ac9108a
SM
4578 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4579 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4580 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4581 is deprecated.
4582
973e7849
AS
45832009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4584
4585 * font.c (font_put_frame_data): Use xfree instead of free.
4586
314d66f4
JB
45872009-04-17 Juanma Barranquero <lekktu@gmail.com>
4588
4589 * w32font.c (Qja, Qko): Remove declarations.
4590 (syms_of_w32font): Don't DEFSYM them.
4591
cf702558
CY
45922009-04-17 Chong Yidong <cyd@stupidchicken.com>
4593
4594 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4595
4596 * font.h (Qja, Qko): Extern them.
4597
4598 * ftfont.c (Qja, Qko): Remove declarations.
4599
4600 * xfont.c (Qja, Qko): Remove declarations.
4601
b50504f5
KH
46022009-04-17 Kenichi Handa <handa@m17n.org>
4603
bde25748
KH
4604 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4605 string from a vector to handle Latin-1 characters correctly.
4606
b50504f5
KH
4607 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4608 entity even if the cache hits.
4609
f4646fff
AS
46102009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4611
4612 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4613 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4614
e7deaab0
AS
4615 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4616 * lisp.h: Adjust prototypes.
4617
0a0e7d49
CY
46182009-04-16 Chong Yidong <cyd@stupidchicken.com>
4619
4620 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4621 change (Bug#3003).
4622
3c908a57
KH
46232009-04-16 Kenichi Handa <handa@m17n.org>
4624
1ac9108a 4625 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4626
4627 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4628 adstyle.
4629
4630 * ftfont.c (Qja, Qko): Don't make them static.
4631 (enum ftfont_cache_for): New enum.
4632 (fc_charset_table): Undo the previous change.
4633 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4634 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4635 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4636 non-scarable font, try to get AVERAGE_WIDTH.
4637 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4638 Change ft_face_cache from a list of a hash-table. Don't check
4639 `ja' and `ko' adstyle here.
4640 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4641 FTFONT_CACHE_FOR_CHARET.
4642 (ftfont_get_charset): Undo the previous change.
1ac9108a 4643 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4644 (ftfont_close): Likewise.
4645 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4646
4647 * font.c (font_sort_entites): Change the meaning of the arg
4648 BEST-ONLY. Don't optimize for VEC of lenght 1.
4649 (font_select_entity): Just return the value of font_sort_entites.
4650
4651 * xfaces.c (merge_face_vectors): Reflect font properties in
4652 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4653 font_clear_prop if a face attribute doesn't change.
4654
3c908a57
KH
4655 * charset.h (charset_ksc5601): Extern it.
4656
4657 * charset.c (charset_ksc5601): New variable.
4658 (Fdefine_charset_internal): Set charset_ksc5601.
4659 (init_charset_once): Initialize charset_ksc5601 to -1.
4660
d65859c3
DN
46612009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4662
4663 * fileio.c (history_delete_duplicates): Remove unused declaration.
4664
4665 * callint.c (history_delete_duplicates): New declaration.
4666 (Fcall_interactively): Remove command history duplicates when
4667 history_delete_duplicates is true.
4668
3ba010e5
EZ
46692009-04-14 Eli Zaretskii <eliz@gnu.org>
4670
4671 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4672
06f19b91
KH
46732009-04-14 Kenichi Handa <handa@m17n.org>
4674
4675 * font.c (Ffont_info): Fix docstring. Fix the second element of
4676 the returned value (bug#2949).
4677
2cce8bfc
CY
46782009-04-14 Chong Yidong <cyd@stupidchicken.com>
4679
4680 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4681
d156542d
KH
46822009-04-14 Kenichi Handa <handa@m17n.org>
4683
4684 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4685 encoding charset is ascii_compatible.
4686
4687 * charset.c (Fdefine_charset_internal): Make charset
4688 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4689 code_offset is 0, and covers all ASCII characters.
4690
86fa089e
SM
46912009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4692
4693 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4694 (ns_string_to_pasteboard_internal):
4695 * nsmenu.m (process_dialog):
4696 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4697 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4698 * lisp.h (Fx_load_color_file): Declare.
4699
a8a3728b
KH
47002009-04-13 Kenichi Handa <handa@m17n.org>
4701
1ac9108a 4702 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4703 (font_select_entity): Suppress the code to optimize for the same
4704 kind of fonts.
4705 (font_load_for_lface): Get a font that supports at least ASCII
4706 characters.
4707
4708 * ftfont.c (Qja, Qko): New variables.
4709 (fc_charset_table): Delete uniquifier data for iso8859-1.
4710 (ftfont_get_latin1_charset): New function.
4711 (get_adstyle_property): New function.
4712 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4713 bitmap fonts.
4714 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4715 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4716 `ko' or `ja'.
4717 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4718 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4719 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4720 property.
4721 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4722 (syms_of_ftfont): DEFSYM Qja and Qko.
4723
483670b5
KH
47242009-04-09 Kenichi Handa <handa@m17n.org>
4725
12b55765
KH
4726 * charset.c (map_charset_chars): For a charset of `superset'
4727 method, fix calculation of code range.
4728
483670b5
KH
4729 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4730 from the list of extra properties.
4731 (font_clear_prop): Be sure to delete `:name' font property.
4732
57d3b93b
KH
47332009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4734
b4b2c2ca
YM
4735 * dispnew.c (redraw_overlapping_rows): Fix detection of
4736 overlapping for topmost and bottommost rows.
4737
1ac9108a 4738 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4739
472c3609
JR
47402009-04-06 Jason Rumney <jasonr@gnu.org>
4741
4742 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4743
ab193662
KH
47442009-04-06 Kenichi Handa <handa@m17n.org>
4745
4746 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4747
4748 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4749
0c26f026
KH
47502009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4751
4752 * ftfont.c (ftfont_open): Fix checking of the return value of
4753 FT_Load_Char. Fix setting font->underline_thickness.
4754
e173bbce
CY
47552009-04-04 Chong Yidong <cyd@stupidchicken.com>
4756
4757 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4758 (Fterminal_parameters, Fterminal_parameter)
4759 (Fset_terminal_parameter): In doc string, refer to terminal
4760 objects rather than terminal ids.
4761
693a2698
EZ
47622009-04-04 Eli Zaretskii <eliz@gnu.org>
4763
4764 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4765 ret_lim_data. (Bug#2867)
4766
d5221487
CY
47672009-04-03 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4770 so they don't get wider than the window, matching 2006-01-23
4771 change to the partner function in xdisp.c (Bug#2800).
4772
223509a3
KH
47732009-04-03 Kenichi Handa <handa@m17n.org>
4774
4775 * print.c (print_object): Make each lowest sub_char_table start a
4776 new line (Bug#2866).
4777
74fcd0b1
KH
47782009-04-02 Kenichi Handa <handa@m17n.org>
4779
4780 * fontset.c (fontset_font): Record no-font when a fontset
4781 explicitly tells not to try another font-specs.
4782
c542407d
SM
47832009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4784
4785 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4786
e3869731
KH
47872009-03-30 Kenichi Handa <handa@m17n.org>
4788
d8d2f142
KH
4789 * fontset.c (fontset_from_font): Specify only registry in a
4790 font-spec for all characters supported by that registry.
4791
e3869731
KH
4792 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4793 even if HAVE_M17N_FLT is not defined.
4794
5da5f805
CY
47952009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4796
4797 * ftfont.c: Conditionalize prototyping and use of
4798 ftfont_variation_glyphs.
4799
ab226c50
SM
48002009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4801
9628fed7
SM
4802 * frame.c (delete_frame): Work around compiler bug.
4803
4804 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4805 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4806 Some more EMACS_INT.
4807 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4808
4809 * xdisp.c (dump_glyph): Fix typo.
4810
ae19ba7c
SM
4811 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4812 (adjust_markers_gap_motion, adjust_markers_for_delete)
4813 (adjust_markers_for_insert, adjust_point)
4814 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4815 (make_gap, copy_text, count_size_as_multibyte, insert)
4816 (insert_and_inherit, insert_before_markers)
4817 (insert_before_markers_and_inherit, insert_1)
4818 (count_combining_before, count_combining_after, insert_1_both)
4819 (insert_from_string, insert_from_string_before_markers)
4820 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4821 (insert_from_buffer_1, adjust_after_replace)
4822 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4823 (replace_range_2, del_range, del_range_1, del_range_byte)
4824 (del_range_both, del_range_2, modify_region)
4825 (prepare_to_modify_buffer, signal_before_change)
4826 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4827 for buffer positions and sizes.
4828 * lisp.h: Adjust prototypes accordingly.
4829
4830 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4831 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4832 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4833
ab226c50
SM
4834 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4835
46dfb8fb
JD
48362009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4837
4838 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4839 lines and columns so we keep the same pixel height and width.
4840
4841 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4842 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4843 (x_handle_net_wm_state): New function to update frame parameter
4844 fullscreen.
4845 (x_term_init): Initialize atoms for _NET_WM_STATE.
4846
4847 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4848
d347e494
SM
48492009-03-27 Kevin Ryde <user42@zip.com.au>
4850
4851 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4852 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4853 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4854 (Fgpm_mouse_stop): Pass that new parameter.
4855 * termhooks.h (close_gpm): Adjust prototype.
4856
84db11d6
SM
48572009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4858
c95a5008
SM
4859 * lisp.h (Fx_focus_frame): Declare.
4860
84db11d6
SM
4861 * callint.c (Fcall_interactively): For '^' just delegate the work to
4862 handle-shift-selection.
4863 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4864
0a1958d6
CY
48652009-03-24 Chong Yidong <cyd@stupidchicken.com>
4866
0bfdff23
CY
4867 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4868
0a1958d6
CY
4869 * data.c (Qinteractive_form): New variable.
4870 (Finteractive_form): Use it.
4871
4872 * eval.c (Fcommandp): Use Qinteractive_form.
4873
58aec0d6
JR
48742009-03-24 Jason Rumney <jasonr@gnu.org>
4875
4876 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4877 Calculate total size precisely. Decode environment variables
4878 before substituting. (Bug#38)
4879
553dd618
KH
48802009-03-24 Kenichi Handa <handa@m17n.org>
4881
4882 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4883 encoding (Bug#2722).
553dd618 4884
c39ea606
JD
48852009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4886
4887 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4888 that gdpy is set.
4889
bc9b2b5e
AM
48902009-03-22 Alan Mackenzie <acm@muc.de>
4891
4892 * callint.c (Finteractive): Clarify the doc string - even
4893 promptless elements need \n separators.
4894
9f995a76
JR
48952009-03-22 Jason Rumney <jasonr@gnu.org>
4896
4897 * w32term.c (syms_of_w32term): Doc fix for
4898 x-use-underline-position-properties.
4899
22749e9a
EZ
49002009-03-21 Eli Zaretskii <eliz@gnu.org>
4901
4902 * w32.c (getpwuid): Change argument type to unsigned.
4903 (struct w32_id): Change type of `rid' member to unsigned.
4904 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4905 argument ID to unsigned. All callers changed.
4906 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4907
e00553bf
EZ
49082009-03-20 Eli Zaretskii <eliz@gnu.org>
4909
4910 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4911 negative, produce a float value.
4912
4913 * dired.c (make_uid, make_gid): New functions.
4914 (Ffile_attributes): Use them to avoid negative UID and GID.
4915
f761d6b6
JB
49162009-03-20 Juanma Barranquero <lekktu@gmail.com>
4917
4918 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4919 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4920 Fix typos in docstrings.
4921
d507f8d7
KH
49222009-03-19 Kenichi Handa <handa@m17n.org>
4923
4924 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4925 changed, use font_load_for_lface to get a new font object.
4926 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4927
4928 * frame.c (x_set_font): Handle the case that ARG is a cons.
4929
c68845e0
GM
49302009-03-19 Glenn Morris <rgm@gnu.org>
4931
4932 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4933
bfa49dd1
CY
49342009-03-19 Chong Yidong <cyd@stupidchicken.com>
4935
4936 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4937
8458d4c1
KH
49382009-03-19 Kenichi Handa <handa@m17n.org>
4939
4940 * charset.c (load_charset_map_from_file): When a mapfile can't be
4941 loaded, signal an error.
4942
78e7d1fe
EZ
49432009-03-18 Eli Zaretskii <eliz@gnu.org>
4944
4945 * dired.c (Ffile_attributes): Make sure UID and GID are always
4946 positive, even if the value is too large for a positive EMACS_INT.
4947 Doc fix.
4948
4949 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4950
5da9fdfa
YM
49512009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4952
4953 * xmenu.c (xdialog_show): Move Fredisplay call ...
4954 (Fx_popup_dialog): ... here.
4955
7519c40d
SM
49562009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4957
4958 * dired.c (file_name_completion): Disable the first optimization just
4959 installed, since it is not implemented correctly.
4960
2cd298e2
SM
49612009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4962
4963 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4964 only if the entry can affect bestmatch.
2cd298e2
SM
4965 Stop the search early, as Ftry_completion already does.
4966
48d37adf
CY
49672009-03-17 Chong Yidong <cyd@stupidchicken.com>
4968
e10c9c93 4969 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4970
9286b16a
CY
49712009-03-15 Chong Yidong <cyd@stupidchicken.com>
4972
4973 * keyboard.c (parse_menu_item): Don't display remappings as menu
4974 equivalent bindings (Bug#788).
4975
f7b146dc
JR
49762009-03-15 Jason Rumney <jasonr@gnu.org>
4977
4978 * w32term.h (WM_EMACS_PAINT): New message.
4979 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4980 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4981 before passing to lisp thread. (Bug#950)
4982
f761d6b6 49832009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4984
d93f9575
CY
4985 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4986 variable as it was never reset.
4987 (ns_term_init): Remove initialization of Lisp-settable defaults
4988 and ns_expand_space.
4989 (-setPanelFromDefaultValues): Remove ns_expand_space.
4990 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4991 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4992 i.e. no additional spacing, similar to Carbon port.
4993
d93f9575
CY
4994 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4995 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4996
305018ec
JD
49972009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4998
4999 * sound.c (alsa_configure): Remove call to deprecated
5000 snd_pcm_sw_params_set_xfer_align.
5001
f761d6b6 50022009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5003
5004 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5005 after clicking in a detached tool bar.
5006 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5007
46e722a9
SM
50082009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5009
348db3dd
SM
5010 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5011 int/Lisp_Object mixup).
46e722a9 5012
a3d16f39
KH
50132009-03-13 Kenichi Handa <handa@m17n.org>
5014
5015 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5016 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5017 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5018 (set_fontset_font): Change ARG to a vector. Handle range_list in
5019 ARG correctly.
5020 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5021 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5022 the above change.
5023 (fontset_from_font): Fix previous change.
fe24f56a 5024 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5025 entry. If FONTSET is the default fontset, don't set the extra
5026 slot of the returning char-table.
5027
b066e6b6
JB
50282009-03-12 Juanma Barranquero <lekktu@gmail.com>
5029
5030 * nsfns.m (Fx_close_connection): Doc fix.
5031 (Fns_do_applescript): Reflow docstring.
5032 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5033 (Fx_display_pixel_width, Fx_display_pixel_height)
5034 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5035 Fix typos in docstrings.
5036 (Fns_set_alpha): Fix typos in error messages.
5037
d472514e 50382009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5039
d472514e 5040 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5041 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5042 were used for such events.
5043
d472514e
JB
5044 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5045 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5046
d472514e 5047 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5048 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5049
fb930676
KH
50502009-03-11 Kenichi Handa <handa@m17n.org>
5051
ff85581a
KH
5052 * font.h (font_open_by_spec): Extern it.
5053
c50b7e98
KH
5054 * font.c (font_open_by_spec): New function.
5055 (font_open_by_name): Use font_open_by_spec.
5056
fb930676
KH
5057 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5058 fontset of the frame.
5059
5060 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5061 modify the default font of frames that use this fontset.
5062 (num_auto_fontsets): New variable.
5063 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5064 name. Be sure to set FONTSET_ASCII to the correct font name.
5065 (update_auto_fontset_alist): New function.
5066
df4e8455
JB
50672009-03-11 Juanma Barranquero <lekktu@gmail.com>
5068
5069 * makefile.w32-in: Update dependencies.
5070
0a375797
AR
50712009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5072
5073 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5074
61313fa3
SM
50752009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5076
5077 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5078
b55103fb
CY
50792009-03-10 Chong Yidong <cyd@stupidchicken.com>
5080
5081 * lread.c (Feval_buffer): Doc fix.
5082
dde2559c
KH
50832009-03-09 Kenichi Handa <handa@m17n.org>
5084
5085 * charset.c (Qfile_name_handler_alist): Extern it.
5086 (load_charset_map_from_file): Temporarily bind
5087 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5088
df4e8455 50892009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5090
47f588bb
GM
5091 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5092 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5093
4ddf94bd
AR
50942009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5095
4c9bdfc2
AR
5096 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5097 (x_set_window_size): Change back to calculated method of setting
5098 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5099 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5100 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5101
fe41ae9e
AR
5102 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5103
4c9bdfc2
AR
5104 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5105 accelerator in parens under GNUstep.
5106
825d0875
KH
51072009-03-06 Kenichi Handa <handa@m17n.org>
5108
5109 These changes are to detect incorrect composition sequence without
f3b3be74 5110 looking ahead the source. (Bug#2370)
825d0875
KH
5111
5112 * coding.h: Include "composite.h".
5113 (enum compisition_state): New enum.
5114 (struct compisition_status): New struct.
5115 (struct iso_2022_spec): New member cmp_status.
5116 (struct emacs_mule_spec): New struct.
5117 (struct coding_system): New members ctext_extended_segment_len and
5118 embedded_utf_8. Change the union member
5119 spec.emacs_mule_full_support to spec.emacs_mule.
5120
5121 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5122 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5123 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5124 (ADD_COMPOSITION_DATA): New arg nbytes.
5125 (emacs_mule_char): New arg cmp_status.
5126 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5127 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5128 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5129 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5130 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5131 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5132 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5133 (EMACS_MULE_COMPOSITION_END): New macro.
5134 (emacs_mule_finish_composition): New function.
5135 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5136 (decode_coding_emacs_mule): Avoid long looking ahead while
5137 handling composition.
5138 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5139 (ENCODE_COMPOSITION_RULE): New macro.
5140 (finish_composition): New function.
5141 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5142 (DECODE_COMPOSITION_START): New implementation.
5143 (DECODE_COMPOSITION_END): Likewise.
5144 (STORE_COMPOSITION_RULE): New macro.
5145 (decode_coding_iso_2022): Avoid long looking ahead while handling
5146 composition, CTEXT extended segment, and embedded UTF-8.
5147 (setup_coding_system): For a coding of type iso-2022, reset
5148 CODING_ISO_EXTSEGMENT_LEN (coding) and
5149 CODING_ISO_EMBEDDED_UTF_8 (coding).
5150 (get_translation): Delete arguments last_block, from_nchars,
5151 to_nchars. Callers changed.
5152 (produce_chars): Don't modify charbuf. Adjusted for the change of
5153 get_translation.
98a326f7 5154 (produce_composition): Adjust for the new annotation sequence.
825d0875 5155 (handle_composition_annotation): Likewise.
98a326f7 5156 (consume_chars): Adjust for the change of get_translation.
825d0875 5157
ccbc4452
AR
51582009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5159
4ddf94bd 5160 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5161
988a7ddb
KH
51622009-03-05 Kenichi Handa <handa@m17n.org>
5163
5164 * font.c (font_select_entity): New function.
5165 (font_find_for_lface): Use font_select_entity to select a font.
5166
5167 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5168 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5169 font with C restriction.
5170
98a326f7 51712009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5172
be1bce46 5173 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5174
10ea2b82
JR
51752009-03-04 Jason Rumney <jasonr@gnu.org>
5176
2c93b248 5177 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5178 characters that have already been read. (Bug#2569)
2c93b248 5179
10ea2b82
JR
5180 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5181 Log an error message if check_image_size failed.
5182 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5183 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5184
71a0c011
EZ
51852009-03-02 Eli Zaretskii <eliz@gnu.org>
5186
5187 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5188 when decoding process output.
5189
2f63bba8
RS
51902009-03-01 Richard M Stallman <rms@gnu.org>
5191
5192 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5193
5194 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5195
0a9564cb
EZ
51962009-02-28 Eli Zaretskii <eliz@gnu.org>
5197
5198 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5199 (decode_coding_emacs_mule, decode_coding_iso_2022)
5200 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5201 (decode_coding_raw_text, decode_coding_charset)
5202 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5203 Honor inhibit-eol-conversion. (Bug #2186)
5204
449148b3
JR
52052009-02-28 Jason Rumney <jasonr@gnu.org>
5206
5207 * coding.c (detect_coding_charset): If not checking latin extra,
5208 fail on characters between 0x80 and 0xA0. (Bug#2354)
5209
a4aee864
EZ
52102009-02-28 Eli Zaretskii <eliz@gnu.org>
5211
5212 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5213 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5214
d88bee5a
GM
52152009-02-27 Glenn Morris <rgm@gnu.org>
5216
5217 * callint.c (Finteractive): Doc fix.
5218
a808f22d
KH
52192009-02-27 Kenichi Handa <handa@m17n.org>
5220
5221 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5222
caf8d60c
CY
52232009-02-27 Chong Yidong <cyd@stupidchicken.com>
5224
5225 * font.c (font_style_to_value): Set value for unknown symbols to
5226 100 instead of 255.
b61137ea
CY
5227 (weight_table, slant_table, width_table): Treat "unspecified" as
5228 the default value.
caf8d60c 5229
1a0de25c
JB
52302009-02-26 Juanma Barranquero <lekktu@gmail.com>
5231
5232 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5233
8fc45744
JB
52342009-02-25 Juanma Barranquero <lekktu@gmail.com>
5235
107bd7d1
JB
5236 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5237 error as soon as a recursive load is detected.
8fc45744 5238
f097e223
AR
52392009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5240
5241 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5242 before caching.
5243
8810a12f
KH
52442009-02-24 Kenichi Handa <handa@m17n.org>
5245
5246 * fontset.c (fontset_find_font): Fix the condition for checking
5247 unavailable font.
5248
2c7d1565
GM
52492009-02-24 Glenn Morris <rgm@gnu.org>
5250
5251 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5252 whitespace that confuses documentation.
5253
a20878b6
MB
52542009-02-23 Miles Bader <miles@gnu.org>
5255
5256 * process.c (Flist_system_processes, Fprocess_attributes)
5257 (syms_of_process): Rename `system-process-attributes' to
5258 `process-attributes'.
5259
b3b58c01
AS
52602009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5261
1b3b981b
AS
5262 * coding.h (struct coding_system): Make safe_charsets a pointer to
5263 unsigned char.
5264 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5265 being 255.
5266 (SAFE_CHARSET_P): Likewise.
5267 (setup_iso_safe_charsets): Properly setup safe_charsets.
5268 (Fdefine_coding_system_internal): Likewise.
5269 (setup_coding_system): Likewise. Remove unneeded casts.
5270 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5271 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5272 unneeded casts.
5273
b3b58c01
AS
5274 * insdel.c (del_range_2): Don't modify gap contents when called
5275 from decode_coding_object. (Bug#1809)
5276
0b6f228c
CY
52772009-02-21 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5280 Qfont_object.
5281 (Ftype_of): Recognize font objects.
5282
5283 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5284
5285 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5286 moved to data.c.
5287
52f8870b
AR
52882009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5289
5290 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5291 async_iconified. Based on a patch by Christian Lynbech
5292 <christian.lynbech@tieto.com>.
5293 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5294
7087d5e9
GM
52952009-02-20 Glenn Morris <rgm@gnu.org>
5296
5297 * syntax.c (Fskip_chars_forward): Fix doc typo.
5298
41d2ceef
CY
52992009-02-20 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5302
1a3b7ca6
CY
53032009-02-19 Chong Yidong <cyd@stupidchicken.com>
5304
5305 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5306
73cce38d
KH
53072009-02-19 Kenichi Handa <handa@m17n.org>
5308
5309 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5310 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5311
a51092ee
DN
53122009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5313
5314 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5315
c423ecca
KH
53162009-02-18 Kenichi Handa <handa@m17n.org>
5317
5318 * font.c (font_check_otf_features): Fix handling of `nil' element.
5319 (Ffont_spec): Describe :lang and :otf in the docstring.
5320
4c1958f4
AS
53212009-02-16 Andreas Schwab <schwab@suse.de>
5322
5323 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5324 string.
5325
5704f39a
KH
53262009-02-16 Kenichi Handa <handa@m17n.org>
5327
5328 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5329 (Bug#1723)
5704f39a 5330
8f0085aa
CY
53312009-02-14 Chong Yidong <cyd@stupidchicken.com>
5332
a057d86a 5333 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5334
5335 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5336 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5337
aff01dd9
EZ
53382009-02-14 Eli Zaretskii <eliz@gnu.org>
5339
5340 * msdos.c (MAX_SCREEN_BUF): New macro.
5341 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5342 Encode the entire run of glyphs sharing the same face, instead of
5343 doing that one glyph at a time (fixes a bug with displaying
5344 double-size characters).
5345
ba301db3
AR
53462009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5347
5348 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5349
5350 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5351 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5352 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5353
5354 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5355 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5356
51d861de
SM
53572009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5358
ac146f82 5359 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5360 invisible areas.
5361
7fed8996
JR
53622009-02-12 Jason Rumney <jasonr@gnu.org>
5363
631ea4fb
JR
5364 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5365 (add_font_entity_to_list): Call check_face_name even when family
5366 is unspecified.
5367
cb4a3e42
JR
5368 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5369 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5370 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5371
7fed8996 5372 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5373 raster fonts. (Bug#2219)
7fed8996 5374
895416e3
KH
53752009-02-12 Kenichi Handa <handa@m17n.org>
5376
5377 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5378 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5379 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5380 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5381 (find_automatic_composition): While looking forward and backward,
5382 check static composition. Fix where to stop looking forward.
5383 (composition_adjust_point): Fix checking of static composition.
5384 (Fcomposition_get_gstring): Pay attention to
1dacf998 5385 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5386
5387 * lisp.h (fast_looking_at): Extern it.
5388
5389 * search.c (fast_looking_at): New function.
5390
51d861de 5391 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5392 <struct glyph>.u.cmp.to.
5393 (append_composite_glyph): Likewise.
5394
51d861de 5395 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5396 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5397 composition.
51d861de 5398 (append_composite_glyph): Adjust for the change of
895416e3
KH
5399 <strcut glyph>.u.cmp.to.
5400
8510724d
JB
54012009-02-11 Juanma Barranquero <lekktu@gmail.com>
5402
5403 * casetab.c (init_casetab_once):
5404 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5405 * font.c (font_update_lface):
5406 * fontset.c (Fnew_fontset):
5407 * ftfont.c (ftfont_drive_otf):
5408 * xfont.c (xfont_open):
5409 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5410
294fa707
SM
54112009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5412
5413 * fileio.c (Fwrite_region): !NILP -> CONSP.
5414
b5bfebec
AS
54152009-02-10 Andreas Schwab <schwab@suse.de>
5416
5417 * process.c (send_process): Properly relocate pointer into data
adab88bd 5418 when using encoded data. (Bug#2272)
b5bfebec 5419
cb84a2be
KH
54202009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5421
5422 * coding.c (detect_coding_charset): Fix previous change.
5423
89e09428
JR
54242009-02-08 Jason Rumney <jasonr@gnu.org>
5425
5426 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5427 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5428
4470a277
AS
54292009-02-07 Andreas Schwab <schwab@suse.de>
5430
5431 * unexelf.c (unexec): Fix error message.
5432
3175b12a
AR
54332009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5434
5435 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5436 when modal window is active. (Bug #2152)
3175b12a
AR
5437 (applicationShouldTerminate:): Remove now-unneeded while loop
5438 around NSRunAlertPanel.
5439
5440 * nsmenu.m (popupSession): New file-global variable.
5441 (pop_down_menu): End the popupSession before closing dialog.
5442 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5443 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5444 don't query NSApp for events (just sleep instead).
5445
8434d0b8
EZ
54462009-02-07 Eli Zaretskii <eliz@gnu.org>
5447
51d861de
SM
5448 * coding.c (syms_of_coding) <translation-table-for-input>:
5449 Modify doc string to discourage use for character code unification.
8434d0b8 5450
aa82edfd
CY
54512009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5452
5453 * atimer.c (run_timers): Update pending_atimers.
5454
2d283c7c
CY
54552009-02-06 Chong Yidong <cyd@stupidchicken.com>
5456
eb306cab
CY
5457 * image.c (svg_load_image): Fix last change.
5458
2d283c7c
CY
5459 * xfns.c (Fx_create_frame): Signal an error if no font is
5460 found (Bug#2147).
5461
4d8e170e
JB
54622009-02-05 Juanma Barranquero <lekktu@gmail.com>
5463
5464 * character.c (syms_of_character) <script-representative-chars>:
5465 Fix typo in docstring.
5466
c96169a0
AR
54672009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5468
5469 * nsmenu.m (pop_down_menu): New function.
5470 (ns_popup_dialog): Call it on unwind.
5471 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5472 call timer_check() (Bug#2154).
5473 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5474 handling_signal is set.
5475 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5476
31fd7c5c 5477 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5478
5479 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5480
5481 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5482
51d861de
SM
5483 * keyboard.c (poll_for_input_1, handle_async_input):
5484 Set handling_signal under HAVE_NS.
c96169a0 5485
aacd8ba1
GM
54862009-02-04 Glenn Morris <rgm@gnu.org>
5487
5488 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5489
4cb75c4b
KH
54902009-02-04 Kenichi Handa <handa@m17n.org>
5491
5492 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5493
5494 * charset.c (Fchar_charset): New optional arg restriction.
5495
5496 * coding.h (coding_system_charset_list): Extern it.
5497
5498 * coding.c (coding_system_charset_list): New function.
5499
5500 * composite.c: Include coding.h and termhooks.h.
5501 (composition_gstring_p): Fix for the terminal case.
5502 (composition_gstring_width): Likewise.
5503 (fill_gstring_body): Likewise.
5504 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5505 the frame.
5506 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5507 is within a composition.
867d4bb3 5508 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5509
5510 * term.c (encode_terminal_code): Fix handling of composition.
5511 (produce_composite_glyph): For static composition, get pixel_width
5512 from struct composition.
5513
826ba17e
AS
55142009-02-02 Andreas Schwab <schwab@suse.de>
5515
5516 * unexelf.c (unexec): Handle unaligned bss offset.
5517
8ad093db
AR
55182009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5519
5520 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5521 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5522
8ad093db
AR
5523 * keyboard.c (handle_interrupt): Don't call
5524 quit_throw_to_read_char() under NS.
d0a76a6e 5525
8ad093db
AR
5526 * blockinput.h: Remove NS-specific code.
5527
4d18a7a2
DN
55282009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5529
db878925
DN
5530 * dispnew.c (window_change_signal): Don't try to get the size of a
5531 suspended tty frame.
5532 * term.c (Fresume_tty): Resize if the size has changed while the
5533 tty was suspended.
5534
4d18a7a2
DN
5535 * alloc.c (mark_stack): Properly conditionalize previous change.
5536
8984df7c
JB
55372009-01-30 Juanma Barranquero <lekktu@gmail.com>
5538
5539 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5540 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5541 Remove; this code is not used on Windows.
5542
75f4f1ac
EZ
55432009-01-30 Eli Zaretskii <eliz@gnu.org>
5544
5545 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5546 EOLs that also has stray ^M characters.
5547
07a1e794
JB
55482009-01-30 Juanma Barranquero <lekktu@gmail.com>
5549
5550 * atimer.c (run_timers, alarm_signal_handler):
5551 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5552 * w32inevt.c (w32_console_read_socket):
5553 * w32term.c (w32_read_socket):
5554 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5555
a8b11cc9
CY
55562009-01-30 Chong Yidong <cyd@stupidchicken.com>
5557
5558 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5559 Initialize it as a relative filename pattern.
5560 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5561 (Fcall_process_region): Simplify temp file creation using
5562 temporary-file-directory.
5563
c279587b
EZ
55642009-01-29 Eli Zaretskii <eliz@gnu.org>
5565
5566 * msdos.c: Rename pending_signals to msdos_pending_signals.
5567 (sig_suspender, sigprocmask): Adjust.
5568
a8fe3242
CY
55692009-01-29 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * keyboard.c (pending_signals): New var.
5572 (poll_for_input, input_available_signal, init_keyboard): Set it.
5573 (process_pending_signals): New function.
5574
5575 * lisp.h (QUIT): Check pending_signals instead of
5576 interrupt_input_pending. Use process_pending_signals.
5577
51d861de 5578 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5579
51d861de 5580 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5581
5582 * sysdep.c (emacs_write): Use process_pending_signals.
5583
5584 * xterm.c (XTread_socket): Update pending_signals.
5585
5586 * w32term.c (w32_read_socket): Update pending_signals.
5587
5588 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5589
6570a1c4
KH
55902009-01-29 Kenichi Handa <handa@m17n.org>
5591
5592 * xftfont.c (xftfont_has_char): New function.
5593 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5594
d72a4afa
AR
55952009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5598 under GNUstep.
5599 (ns_query_color): New declaration.
5600
5601 * nsterm.m (ns_confirm_quit): New variable.
5602 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5603 (EmacsApp-applicationShouldTerminate:): Use it.
5604 (EmacsPrefsController): Let user set it.
5605 (ns_query_color): New function.
5606 (ns_defined_color): Use it.
5607 (ns_initialize): Drop.
5608 (ns_term_init): Add two lines from ns_initialize(), and set
5609 input_interrupt_mode to nil.
5610
5611 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5612 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5613
9fe78804
KH
56142009-01-28 Kenichi Handa <handa@m17n.org>
5615
5616 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5617 (fontset_get_font_group): Remember that no font-group is specified
5618 for C.
9fe78804 5619
fa57de36
CY
56202009-01-27 Chong Yidong <cyd@stupidchicken.com>
5621
930600e9
CY
5622 * fns.c (concat): Check for string overflow (bug#1787).
5623
fa57de36
CY
5624 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5625 Quadruple undo limits (bug#1501).
5626
7179ce7b
KH
56272009-01-27 Kenichi Handa <handa@m17n.org>
5628
5629 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5630 directly use GT_Get_Char_index.
5631
5632 * xftfont.c (struct xftfont_info): New member `index'.
5633
5634 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5635 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5636
5be8fcc0
CY
56372009-01-26 Kenichi Handa <handa@m17n.org>
5638
5639 * fontset.c (fontset_find_font): Fix handling of non-cons return
5640 value of fontset_get_font_group.
5641 (fontset_font): Revert last change.
5642
19ae3e61
JR
56432009-01-26 Jason Rumney <jasonr@gnu.org>
5644
5645 * w32font.c (w32font_list_internal): Return quickly if registry is
5646 unknown. Simplify final return.
5647 (add_font_entity_to_list): Break complex logic down into more
5648 manageable chunks. Move unknown registry check to
5649 w32font_list_internal.
5650
8612b71a
AR
56512009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5652
5653 Changes to remove Feval calls from GUI under NS.
5654
d8038940
JB
5655 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5656 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5657 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5658
5659 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5660 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5661 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5662 instead of NON_ASCII_KEYSTROKE_EVENT.
5663 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5664 (EmacsApp-applicationShouldTerminate:): Query user.
5665 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5666 instead of Feval.
5667
5668 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5669
5670 * keyboard.c (kbd_buffer_get_event): Check for it.
5671 (keys_of_keyboard): Define lispy keys for
5672 ns-put/unput-working-text.
5673
5674 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5675 versions.
5676 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5677
6288ae55
CY
56782009-01-25 Chong Yidong <cyd@stupidchicken.com>
5679
5680 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5681 setting current_buffer directly. (Bug#2044)
6288ae55 5682
289e7f8f
CY
56832009-01-24 Chong Yidong <cyd@stupidchicken.com>
5684
5ce87308 5685 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5686 any work. (Bug#1952, bug#1990).
5ce87308 5687
64cc3cf6 5688 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5689
b3243e6f
AR
56902009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5691
5692 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5693 (ns_no_defaults): New declaration.
5694 (main): Use it.
e0d2e69a 5695
d900b2af 5696 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5697
d900b2af 5698 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5699
d900b2af
AR
5700 * nsterm.m (ns_no_defaults): New variable.
5701 (ns_initialize): Don't read defaults when ns_no_defaults.
5702 (EmacsView-readSelectionFromPasteboard:)
5703 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5704 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5705 (ns_dumpglyphs_stretch): New function.
5706 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5707 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5708
e0d2e69a
AR
5709 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5710
3ac71f5d
CY
57112009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5712
5713 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5714 call for Sparc64.
5715
3fe53a83
AR
57162009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5717
5718 * nsfns.m:
5719 * nsgui.h:
5720 * nsmenu.m:
5721 * nsselect.m:
5722 * nsterm.h:
5723 * nsterm.m: Remove '23' comments that indicated code added during
5724 update from emacs-20 -> emacs-23.
5725
10f87c6f 57262009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5727
5728 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5729 ns_alternate_modifier. (Bug#1217)
a3b53a85 5730
c7cef62d
AR
5731 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5732 Display all shortcuts, including those w/o super modifier.
5733
575fb8bd
AR
5734 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5735
918b848b
CY
57362009-01-22 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * fileio.c (Vwrite_region_post_annotation_function)
5739 (Vwrite_region_annotation_buffers): New vars.
5740 (build_annotations_unwind): Just reset
5741 Vwrite_region_annotation_buffers.
5742 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5743 Call write-region-post-annotation-function.
5744 (build_annotations): Add to Vwrite_region_annotation_buffers if
5745 buffer changes.
5746
a39e2539
AR
57472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5748
5749 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5750 Tiger.
51d861de
SM
5751 * nsfns.m (ns_do_applescript):
5752 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5753
35ed44db
AR
57542009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5755
5756 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5757
cbe0b5bf
AR
57582009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5759
5760 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5761
6049d3a0
AR
5762 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5763
5764 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5765 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5766 handle Ctrl-tab. (Bug#1841)
5767 (ns_get_color): Use unsigned long long for scanned hex string value.
5768 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5769 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5770 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5771 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5772 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5773 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5774 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5775
d3810c21 5776 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5777 DPI. (Bug#1316)
d3810c21
AR
5778 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5779 values in onTiger section.
4c7077c3 5780
e301e634
CY
57812009-01-19 Chong Yidong <cyd@stupidchicken.com>
5782
7f82490b
CY
5783 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5784 Check return value of font_spec_from_name.
64cc3cf6 5785 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5786
5787 * font.c (font_spec_from_name): Return Qnil if font name could not
5788 be parsed.
5789 (font_parse_name): Treat a `?' character as part of an XLFD.
5790
e301e634
CY
5791 * fns.c (Fsubstring): Doc fix.
5792
1c0db158
KH
57932009-01-19 Kenichi Handa <handa@m17n.org>
5794
51d861de 5795 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5796 (ftfont_list): Likewise.
5797
acf20901
JB
57982009-01-18 Juanma Barranquero <lekktu@gmail.com>
5799
fff4e459
JB
5800 * dbusbind.c (Fdbus_register_signal):
5801 * process.c (conv_sockaddr_to_lisp):
5802 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5803
acf20901
JB
5804 * callproc.c (Fgetenv_internal): Doc fix.
5805
e7abcdfb
CY
58062009-01-16 Chong Yidong <cyd@stupidchicken.com>
5807
5808 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5809 it is not even used.
5810
b60861e6
GM
58112009-01-16 Glenn Morris <rgm@gnu.org>
5812
5813 * font.c (Ffont_variation_glyphs): Silence compiler.
5814
8db52afe
JB
58152009-01-15 Juanma Barranquero <lekktu@gmail.com>
5816
5817 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5818 Reported by David Robinow <drobinow@gmail.com>.
5819
4cddb209
KH
58202009-01-15 Kenichi Handa <handa@m17n.org>
5821
51d861de 5822 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5823
f247f67b
JR
58242009-01-14 Jason Rumney <jasonr@gnu.org>
5825
5826 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5827 never a fontset. (Bug#1562)
f247f67b 5828
f56a4450
KH
58292009-01-14 Kenichi Handa <handa@m17n.org>
5830
5831 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5832 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5833
4e99855e
CY
58342009-01-13 Chong Yidong <cyd@stupidchicken.com>
5835
5836 * font.c (font_clear_prop): If clearing the family, clear the font
5837 width index too.
5838
fff4e459 5839 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5840
24f01470
JB
58412009-01-12 Juanma Barranquero <lekktu@gmail.com>
5842
5843 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5844 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5845 functions, use sizeof.
5846
a41240a3
MR
58472009-01-12 Martin Rudalics <rudalics@gmx.at>
5848
5849 * keyboard.c (read_char): Fix case where last_nonmenu_event
5850 returned a bad value with submenus. (Bug#447)
5851
944636b8
CY
58522009-01-12 Chong Yidong <cyd@stupidchicken.com>
5853
5854 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5855 family, clear the font width index too.
5856
0dad7c6f
JR
58572009-01-11 Jason Rumney <jasonr@gnu.org>
5858
5859 * keyboard.c (cmd_error_internal): Exit when errors occur before
5860 frame creation and not in daemon mode. (Bug#1836)
5861
7c2363af
CY
58622009-01-10 Chong Yidong <cyd@stupidchicken.com>
5863
5864 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5865 of a display vector, backtrack.
5866 (try_window_reusing_current_matrix): Check glyph type before
5867 referencing charpos member.
5868
97b1b294
EZ
58692009-01-10 Eli Zaretskii <eliz@gnu.org>
5870
5871 Fix Bug #876:
5872
5873 * coding.c (inhibit_null_byte_detection): New variable.
5874 (detect_coding, detect_coding_system): Don't pay attention to null
5875 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5876 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5877 <inhibit-iso-escape-detection>: Doc fix.
5878
4624b6e3
JR
58792009-01-09 Jason Rumney <jasonr@gnu.org>
5880
5881 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5882 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5883 Only report Unicode Plane 2 fonts as unicode-sip.
5884
323b840c
CY
58852009-01-09 Chong Yidong <cyd@stupidchicken.com>
5886
51d861de
SM
5887 * xfaces.c (Fx_font_family_list): Delete function.
5888 Move compatibility version to faces.el.
323b840c 5889
51d861de 5890 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5891
eba7400d
MR
58922009-01-09 Martin Rudalics <rudalics@gmx.at>
5893
5894 * frame.c (x_set_frame_parameters): Remember requested value for
5895 fullscreen before it's reset by the parameter handler.
5896
4b09796d
GM
58972009-01-09 Glenn Morris <rgm@gnu.org>
5898
5899 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5900 (last_command_event): ... and update all users.
4b09796d
GM
5901 (last_input_char): For clarity, rename to...
5902 (last_input_event): ... and update all users.
5903 (last-command-char, last-input-char): Move to subr.el as aliases.
5904 * cmds.c, commands.h: Update for last_command_char rename.
5905
14ccea62
CY
59062009-01-08 Chong Yidong <cyd@stupidchicken.com>
5907
51d861de 5908 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5909
5f004711
JR
59102009-01-08 Jason Rumney <jasonr@gnu.org>
5911
5912 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5913 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5914 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5915 Don't declare.
fff4e459 5916 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5917 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5918
b71f6f73
KH
59192009-01-07 Kenichi Handa <handa@m17n.org>
5920
50b06221 5921 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5922 remember the coding system used for decoding in
50b06221
KH
5923 coding_system (Bug#1039).
5924
b71f6f73 5925 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5926 breaking the loop. (Bug#870)
b71f6f73
KH
5927 (decode_coding_utf_16, decode_coding_emacs_mule)
5928 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5929 (decode_coding_charset): Likewise.
5930
56f668f7
MR
59312009-01-05 Martin Rudalics <rudalics@gmx.at>
5932
5933 * frame.c (x_set_frame_parameters): Make sure height (width) get
5934 applied when fullwidth (fullheight) is set. (Bug#1522)
5935
5da9424d
JB
59362009-01-04 Juanma Barranquero <lekktu@gmail.com>
5937
5938 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5939 (utc_base): Declare as ULONGLONG, not long double.
5940 (convert_time_raw): Delete.
5941 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5942 (initialize_utc_base): New function.
5943 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5944 (convert_from_time_t): Use initialize_utc_base; compute result with
5945 64-bit arithmetic.
5946 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5947
c4605e09
EZ
59482009-01-03 Eli Zaretskii <eliz@gnu.org>
5949
9acef61c 5950 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5951 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5952 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5953 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5954 [!subprocesses]: Define.
5955 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5956 (Flist_system_processes, Fsystem_process_attributes)
5957 [!subprocesses]: Call list_system_processes and
5958 system_process_attributes instead of returning Qnil.
5959
9acef61c
JB
5960 * dosfns.c (system_process_attributes, list_system_processes):
5961 New functions.
c4605e09
EZ
5962
5963 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5964
5965 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5966 Don't use the default (no-op) implementation.
5967
8b7d0a16
JR
59682009-01-03 Jason Rumney <jasonr@gnu.org>
5969
a6d46bc1
JR
5970 * keyboard.c (parse_modifiers_uncached): Wheel events are
5971 clicks (bug#687).
5972
8b7d0a16
JR
5973 * w32term.c (x_query_colors, x_query_color): New functions.
5974
5975 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5976 (svg_load_image): Cast returned pointers from dynamically loaded
5977 functions. Eliminate W32 specific code.
5978
bfe11752
DN
59792009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5980
89e2438a
DN
5981 * nsfns.m (x_set_foreground_color, x_set_background_color)
5982 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5983 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5984 x_ prefix instead of ns_. Update references.
5985 (syms_of_nsfns): Add a FIXME comment.
5986
5987 * nsterm.m (x_set_cursor_type): New prototype.
5988 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5989
bfe11752
DN
5990 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5991 for Solaris instead of incorrectly providing Qutime and Qcutime.
5992
031da700
EZ
59932009-01-02 Eli Zaretskii <eliz@gnu.org>
5994
5995 * w32.c (process_times): Compute sum of utime and stime.
5996 (system_process_attributes): Add Qtime to the alist.
5997
5998 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5999 and add them to the alist.
6000
6001 * process.c (top level) <Qtime, Qctime>: New variables.
6002 (syms_of_process): staticpro them.
6003 (Fsystem_process_attributes): Add their documentation to the doc
6004 string.
6005
6006 * process.h: Declare Qtime and Qctime.
6007
df23bf08
JR
60082009-01-02 Jason Rumney <jasonr@gnu.org>
6009
9acef61c 6010 * image.c (Qgobject): New symbol.
df23bf08
JR
6011 (syms_of_image): Initialize it.
6012 (init_svg_functions): Load some functions from gobject library.
6013
5bbdf7aa
DN
60142009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6015
6016 * frame.c (make_terminal_frame): Remove redundant code and useless
6017 block.
6018
63136da6
AS
60192009-01-01 Andreas Schwab <schwab@suse.de>
6020
6021 * process.c (conv_sockaddr_to_lisp): Add workaround for
6022 getsockname bug on BSD.
6023
9ef69046
CY
60242009-01-01 Chong Yidong <cyd@stupidchicken.com>
6025
d6fafbe0
CY
6026 * xfns.c (x_create_tip_frame): Set border width of the X window.
6027
51d861de 6028 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6029
f9c34147
JR
60302009-01-01 Jason Rumney <jasonr@gnu.org>
6031
9acef61c 6032 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6033 Don't block input, as per earlier xterm.c changes.
6034
f5497e45
AR
60352008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6036
6037 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6038 (ns_appkit_version_int): New function.
6039 (x-server-version): Use ns_appkit_version_int and follow 21+
6040 convention of returning 3 integers.
6041
c19cab20
KH
60422008-12-30 Kenichi Handa <handa@m17n.org>
6043
6044 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6045 (CHAR_SURROGATE_PAIR_P): New macro.
6046
6047 * font.h (struct font_driver): New member get_variation_glyphs.
6048
9acef61c 6049 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6050 (Ffont_variation_glyphs): New function.
6051 (syms_of_font): Defsubr it.
6052
6053 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6054 ftfont_variation_glyphs.
6055 (setup_otf_gstring): New function.
6056 (ftfont_drive_otf): Use it.
6057 (ftfont_shape_by_flt): Handle variation selector.
6058 (ftfont_variation_glyphs): New function.
6059
28cd591f
MR
60602008-12-30 Martin Rudalics <rudalics@gmx.at>
6061
6062 * frame.c (Vemacs_iconified): Remove.
6063
7f714baf
JR
60642008-12-30 Jason Rumney <jasonr@gnu.org>
6065
6066 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6067 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6068
9d2d22ab
CY
60692008-12-30 Chong Yidong <cyd@stupidchicken.com>
6070
6071 * indent.c (Fvertical_motion): Don't advance iterator if we have
6072 reseated to the desired position.
6073
6074 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6075 checking for pos match.
6076
545312c2
KH
60772008-12-30 Kenichi Handa <handa@m17n.org>
6078
1ede3eb6
KH
6079 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6080 just get the low 8-bit of the code.
6081
545312c2
KH
6082 * font.c (font_intern_prop): Validate str as multibyte.
6083
bd7bbf29
DN
60842008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6085
31e0750e
DN
6086 * dispextern.h (struct face): Move lface and hash from the middle
6087 of bitfields.
6088
bd7bbf29
DN
6089 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6090
b5672e7c
DN
60912008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6092
6093 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6094 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6095 instead of intervals.h.
6096
d704470f
AS
60972008-12-26 Andreas Schwab <schwab@suse.de>
6098
6099 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6100 cons.
6101
54b33868
MR
61022008-12-26 Martin Rudalics <rudalics@gmx.at>
6103
6104 * textprop.c (Qminibuffer_prompt): New variable.
6105 (syms_of_textprop): Initialize it.
6106 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6107 in minibuffer-prompt face. (Bug#1662)
6108
40b615d6
JR
61092008-12-25 Jason Rumney <jasonr@gnu.org>
6110
6111 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6112
baae5c2d
JR
61132008-12-24 Jason Rumney <jasonr@gnu.org>
6114
6115 * ralloc.c (r_alloc_reset_variable): New function.
6116
6117 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6118 record of what points where. (Bug#716)
baae5c2d 6119
a9051c88
DN
61202008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6121
6122 * minibuf.c (read_minibuf): Follow the non-interactive case when
6123 running as a daemon, before detaching.
6124
8b146312
AS
61252008-12-22 Andreas Schwab <schwab@suse.de>
6126
6127 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6128 * gtkutil.c (free_widget_value): Use xfree instead of free.
6129
56f2de10
MR
61302008-12-22 Martin Rudalics <rudalics@gmx.at>
6131
6132 * frame.c (delete_frame): New function derived from
6133 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6134 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6135 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6136 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6137 * frame.h: Extern delete_frame.
6138 * window.c (window_loop):
6139 * terminal.c (delete_terminal):
6140 * xterm.c (x_connection_closed):
6141 * xfns.c (Fx_hide_tip):
9acef61c 6142 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6143
1fc200d6
JR
61442008-12-21 Jason Rumney <jasonr@gnu.org>
6145
6146 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6147 when character maps to .notdef character.
6148
5e252df2
SM
61492008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6150
6151 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6152
99b72cc4
JR
61532008-12-20 Jason Rumney <jasonr@gnu.org>
6154
6155 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6156 a graphical frame on Windows. (Bug#1325)
99b72cc4 6157
acc49a52
JD
61582008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6159
6160 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6161
6ea15123
CY
61622008-12-20 Chong Yidong <cyd@stupidchicken.com>
6163
6164 * minibuf.c (Fread_buffer): Doc fix.
6165
b2dab6c8
JR
61662008-12-20 Jason Rumney <jasonr@gnu.org>
6167
54ea0c87 6168 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6169 server name in UNC paths. (Bug#719)
54ea0c87 6170
b2dab6c8 6171 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6172 charbuf. (Bug#1035)
b2dab6c8 6173
6d1921be
DN
61742008-12-19 Daniel Engeler <engeler@gmail.com>
6175
6176 * sysdep.c (serial_configure): Fix typo.
6177
53934c98
DN
61782008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6179
6180 * sysdep.c: Include alloca.h.
f4f634e8
DN
6181 (system_process_attributes): Add implementation for Solaris.
6182
6183 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6184
06e111a6
DN
61852008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6186
6187 Reorganize implementation of Flist_system_processes and
6188 Fsystem_process_attributes. No functional changes.
6189 * process.c: Don't #include pwd.h, grp.h and limits.h.
6190 (Flist_system_processes): Just call list_system_processes.
6191 (Fsystem_process_attributes): Just call system_process_attributes.
6192 (procfs_list_system_processes, time_from_jiffies)
6193 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6194 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6195
6196 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6197 (list_system_processes): Rename from
6198 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6199 Provide a do nothing implementation.
6200 (system_process_attributes): Rename from
6201 procfs_list_system_processes.
6202 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6203 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6204
6205 * w32.c (list_system_processes): Rename from
6206 w32_list_system_processes.
6207 (system_process_attributes): Rename from
6208 w32_system_process_attributes.
6209
6210 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6211
6212 * process.h (w32_list_system_processes)
6213 (w32_system_process_attributes): Remove.
362654a6
JB
6214 (list_system_processes, system_process_attributes):
6215 New prototypes.
06e111a6 6216
6a705b23
KH
62172008-12-19 Kenichi Handa <handa@m17n.org>
6218
6219 * xfont.c (xfont_decode_coding_xlfd): New function.
6220 (xfont_encode_coding_xlfd): New function.
6221 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6222 (xfont_list): Decode and encode XLFD by iso-8859-1.
6223 (xfont_match): Likewise.
6224 (xfont_list_family): Likewise.
6225 (xfont_open): Likewise.
6226
d66c0241 6227 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6228 names are utf-8.
6229
d66c0241 6230 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6231 names are utf-8.
6232
5a130941
JD
62332008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6234
6235 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6236 changed.
bfd20325
JD
6237 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6238 clicked on a detached tool bar button.
5a130941 6239
fd95644b
DN
62402008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6241
6242 * emacs.c (main): Print and error and exit when no data is read
6243 from the pipe.
6244
e6eee6ae
JR
62452008-12-17 Jason Rumney <jasonr@gnu.org>
6246
6247 * w32font.c (w32font_has_char): Always return -1.
6248
a35dd56b
KH
62492008-12-16 Kenichi Handa <handa@m17n.org>
6250
6251 * font.c (font_open_entity): Fix previous change.
6252
0e3635c2
DN
62532008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6254
6255 * process.c: Include <limits.h>.
6256
d4835507 62572008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6258
6259 * font.c (font_update_drivers): Fix mistake in reconstructing the
6260 driver list.
6261
62622008-12-16 Chong Yidong <cyd@stupidchicken.com>
6263
6264 * font.c (font_clear_cache): Fix format of font cache data.
6265
e2cbc401
CY
62662008-12-15 Chong Yidong <cyd@stupidchicken.com>
6267
6268 * xftfont.c (xftfont_open): Free Xft font pattern if
6269 XftFontOpenPattern fails.
6270
6271 * xterm.c (x_free_frame_resources): Remove extraneous call to
6272 free_frame_faces.
6273
b131d535
CY
62742008-12-13 Chong Yidong <cyd@stupidchicken.com>
6275
6276 * xterm.c (x_delete_display): Move xim_close_dpy call to
6277 x_delete_terminal.
6278 (x_delete_terminal): Call xim_close_dpy.
6279
e6df5336
JR
62802008-12-13 Jason Rumney <jasonr@gnu.org>
6281
6282 * w32font.c (intern_font_name): New function.
6283 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6284 (w32font_open_internal, Fx_select_font): Decode font name.
6285 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6286
6287 * w32font.h (intern_font_name): Declare new function.
6288
6289 * w32uniscribe.c (add_opentype_font_name_to_list):
6290 Use intern_font_name.
6291
20d68145
CY
62922008-12-13 Chong Yidong <cyd@stupidchicken.com>
6293
9f2554de
CY
6294 * frame.c (Fdelete_frame): Call free_font_driver_list.
6295
3d9bec9a
CY
6296 * font.c (free_font_driver_list): Implement missing function.
6297
20d68145
CY
6298 * w32term.c (w32_term_init): Don't initialize the image cache
6299 here; it will be done in init_frame_faces.
6300
6301 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6302 (struct x_display_info): Remove unused member null_pixel. New
6303 member xim_callback_data.
6304
6305 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6306 (xim_initialize): Save pointer to callback function data.
6307 (xim_close_dpy): Free callback function data. Call XCloseIM,
6308 reverting 2008-11-04 change by David Smith.
6309 (x_term_init): Don't initialize the image cache here; it will be
6310 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6311 (x_delete_display): Free x_dnd_atoms member.
6312
96f9306b
KH
63132008-12-13 Kenichi Handa <handa@m17n.org>
6314
6dec9044
JB
6315 * font.c (font_rescale_ratio): Moved from xfaces.c.
6316 Argument type changed. Handle a font-spec too.
96f9306b 6317 (font_score): Check Vface_font_rescale_alist.
6dec9044 6318 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6319
6320 * xfaces.c (font_rescale_ratio): Moved to font.c.
6321
8d5b4964
CY
63222008-12-13 Chong Yidong <cyd@stupidchicken.com>
6323
6324 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6325
e6df5336
JR
63262008-12-12 Jason Rumney <jasonr@gnu.org>
6327
6328 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6329 Vwindow_system_version to the real w32 major version.
6330
97c6058a
DN
63312008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6332
6333 * term.c (init_tty): Move setting the terminal name before the
6334 potential user: maybe_fatal.
6335
ec4e88d7
CY
63362008-12-11 Chong Yidong <cyd@stupidchicken.com>
6337
d4835507
JB
6338 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6339 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6340
b4233ec9
JR
63412008-12-11 Jason Rumney <jasonr@gnu.org>
6342
8ec71e23 6343 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6344 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6345
b4233ec9 6346 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6347 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6348
011a0143
JB
63492008-12-11 Juanma Barranquero <lekktu@gmail.com>
6350
6351 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6352
3c309f34
JB
63532008-12-11 Juanma Barranquero <lekktu@gmail.com>
6354
6355 * process.c (Fsystem_process_attributes, syms_of_process):
6356 Fix typo in name of Ssystem_process_attributes.
6357 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6358
fedc6ab5
JB
63592008-12-11 Juanma Barranquero <lekktu@gmail.com>
6360
6361 * syntax.c (Fmodify_syntax_entry): Doc fix.
6362
ba3de0e8
JB
63632008-12-10 Juanma Barranquero <lekktu@gmail.com>
6364
6365 * font.c (Ffont_spec): Move usage to end of docstring.
6366
174f1c74
JR
63672008-12-10 Jason Rumney <jasonr@gnu.org>
6368
6369 * w32font.c (Qcham): New symbol.
6370 (font_supported_scripts): Add cham, and comments for other new
6371 scripts in bitfield from OpenType spec.
9d32f818
JR
6372 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6373 contain characters beyond the bmp.
174f1c74 6374
7b649478
KH
63752008-12-10 Kenichi Handa <handa@m17n.org>
6376
6377 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6378 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6379 Qunicode_sip.
6380
2133e2d1
JB
63812008-12-10 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6384 (Fcoding_system_put): Use QCdefault_char.
6385 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6386
9af886ee
CY
63872008-12-09 Chong Yidong <cyd@stupidchicken.com>
6388
74d819eb
CY
6389 * xftfont.c (syms_of_xftfont): Fix typo.
6390
4ccfa1c0 6391 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6392
7c19d3ae
DN
63932008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6394
6395 * emacs.c (main): Close daemon_pipe on exec.
6396
567826bb
CY
63972008-12-08 Chong Yidong <cyd@stupidchicken.com>
6398
6399 * termchar.h (struct tty): New members termcap_term_buffer and
6400 termcap_strings_buffer.
6401
6402 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6403 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6404 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6405 All callers changed.
6406 (init_tty): Store termcap data and string buffers in new struct
6407 tty members termcap_term_buffer and termcap_strings_buffer.
6408 (delete_tty): Free them.
4ccfa1c0 6409 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6410
aa96c42b
SZ
64112008-12-07 Seiji Zenitani <zenitani@mac.com>
6412
6413 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6414 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6415
b7e1d896
CY
64162008-12-06 Chong Yidong <cyd@stupidchicken.com>
6417
6418 * coding.c (make_conversion_work_buffer): Disable buffer
6419 modification hooks in the work buffer.
6420
b5ec91a5
EZ
64212008-12-05 Eli Zaretskii <eliz@gnu.org>
6422
6423 * process.c (procfs_system_process_attributes): If `nread' has a
6424 negative value, assign zero to it.
6425
a5d2a52b
CY
64262008-12-05 Chong Yidong <cyd@stupidchicken.com>
6427
68c5540b 6428 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6429
7bf1bb21
KH
64302008-12-05 Kenichi Handa <handa@m17n.org>
6431
6432 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6433 second character is a combining character.
6434
2fdc7d00
EZ
64352008-12-05 Eli Zaretskii <eliz@gnu.org>
6436
6437 * process.c (procfs_system_process_attributes): Don't use cmd,
6438 cmdsize, and q without initializing them first.
6439
bf6bfba8
JR
64402008-12-04 Jason Rumney <jasonr@gnu.org>
6441
6442 * w32font.c (w32font_draw): Initialize orig_clip before getting
6443 it, and delete it when finished.
6444
a3b1a468
DN
64452008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6446
6447 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6448 case when running as a daemon before detaching.
6449
8b8be8eb
JB
64502008-12-03 Juanma Barranquero <lekktu@gmail.com>
6451
805f2638 6452 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6453
b1bde622
KH
64542008-12-03 Kenichi Handa <handa@m17n.org>
6455
e500c47d
KH
6456 * font.c (font_at): Set `multibyte' at first.
6457
ca516334
KH
6458 * coding.c (decode_coding_charset): Check type of an element of
6459 vector VALIDS.
7bf1bb21 6460 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6461
4ccfa1c0 6462 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6463 (font_for_char): Likewise.
6464
1e5ecd37
CY
64652008-12-03 Chong Yidong <cyd@stupidchicken.com>
6466
d5b01609 6467 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6468 (font_update_lface): Handle fonts with corrupted size specs,
6469 i.e. non-int and non-float.
d5b01609 6470
11e3a6e4 6471 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6472 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6473 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6474
ab06788b
CY
6475 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6476
1e5ecd37 6477 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6478 underline_minimum_offset for underline position.
1e5ecd37 6479
63c125ab
DN
64802008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6481
6482 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6483
6484 * character.c (c_string_width): Specify the type for LEN.
6485
3a8406e1
KH
64862008-12-03 Kenichi Handa <handa@m17n.org>
6487
4ccfa1c0 6488 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6489 (decode_coding_utf_8): Likewise.
4ccfa1c0 6490 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6491 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6492
651df7d9
CY
64932008-12-02 Chong Yidong <cyd@stupidchicken.com>
6494
6495 * keyboard.c (make_lispy_position): Only use PT if the selected
6496 window is current.
6497
1f625c6c
AS
64982008-12-02 Andreas Schwab <schwab@suse.de>
6499
f7741ce9
AS
6500 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6501
1f625c6c
AS
6502 * doprnt.c (doprnt1): Fix size of charbuf.
6503
92bc2678
CY
65042008-12-02 Chong Yidong <cyd@stupidchicken.com>
6505
6506 * keyboard.c (timer_check): Revert last change.
6507
93b9e8cc
JB
65082008-12-02 Juanma Barranquero <lekktu@gmail.com>
6509
6510 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6511
fd7a37d5
JB
65122008-12-01 Juanma Barranquero <lekktu@gmail.com>
6513
6514 * makefile.w32-in: Update dependencies.
6515 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6516
c115043b
AS
65172008-12-01 Andreas Schwab <schwab@suse.de>
6518
6519 * font.c (register_font_driver): Use xmalloc.
6520 (font_put_frame_data): Likewise.
6521
f5668d2a
CY
65222008-12-01 Chong Yidong <cyd@stupidchicken.com>
6523
860d96be
CY
6524 * xfaces.c (realize_x_face): Make abort condition clearer.
6525
f5668d2a
CY
6526 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6527
379c17e7
CY
65282008-11-30 Chong Yidong <cyd@stupidchicken.com>
6529
6530 * keyboard.c (timer_check): After a timer runs, ensure that the
6531 selected window's buffer is current.
6532
35f36d65
JB
65332008-11-30 Juanma Barranquero <lekktu@gmail.com>
6534
f952c61c
JB
6535 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6536 It was accidentally restored by the Unicode merge.
6537
35f36d65
JB
6538 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6539
b23077df
JB
65402008-11-29 Juanma Barranquero <lekktu@gmail.com>
6541
6542 * w32proc.c: Include "coding.h".
6543 (Fw32_short_file_name): Encode filename passed to Windows API.
6544 (Fw32_long_file_name): Encode filename passed to Windows API and
6545 decode back the result. (Bug#1433)
6546
b8ebe9dd
KH
65472008-11-29 Kenichi Handa <handa@m17n.org>
6548
8cc53f96
KH
6549 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6550 not before accessing it.
6551
b8ebe9dd
KH
6552 * charset.c (Fdefine_charset_internal): After calculating
6553 min_char, max_char, and fastmap, copy the charset structure again.
6554 (encode_char): Fix the previous change.
6555
59bc82c0
SZ
65562008-11-28 Seiji Zenitani <zenitani@mac.com>
6557
6558 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6559
6560 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6561
6562 * nsterm.m (x_set_frame_alpha): New function.
6563
32247e3d
EZ
65642008-11-27 Eli Zaretskii <eliz@gnu.org>
6565
6566 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6567
b003e5ff
JB
65682008-11-27 Juanma Barranquero <lekktu@gmail.com>
6569
6570 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6571 pointer to check_face_name.
6572
708550f5
KH
65732008-11-27 Kenichi Handa <handa@m17n.org>
6574
6575 * category.h (SET_CATEGORY_SET): Call set_category_set.
6576 (set_category_set): Extern it.
6577
6578 * category.c (hash_get_category_set): New function.
6579 (Fmodify_category_entry): Adjusted for the change of
6580 char_table_ref_and_range. Call hash_get_category_set to get a
6581 category set to store in the table.
6582
6583 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6584 Funify_charset.
6585
2ae37cf0 6586 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6587 (DECODE_CHAR): Check if the decoder vector is ready.
6588 (ENCODE_CHAR): Check if the encoder char-table is ready.
6589 (maybe_unify_char): Extern it.
6590
6591 * charset.c (Vchar_unified_charset_table): Delete it.
6592 (inhibit_load_charset_map): New variable.
6593 (temp_charset_work): New variable.
6594 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6595 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6596 New macros.
6597 (load_charset_map): Meaning of control_flag changed. If
6598 inhibit_load_charset_map is nonzero, setup a table in
6599 temp_charset_work.
6600 (load_charset): New argument control_flag.
6601 (map_charset_for_dump): New function.
6602 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6603 map_charset_for_dump.
6604 (Fdefine_charset_internal): If the charset method is MAP, load
6605 mapping tables by calling load_charset.
6606 (Funify_charset): Don't load a mapping table but directly set
6607 Vchar_unify_table.
6608 (maybe_unify_char): New function.
6609 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6610 Handle the case of inhibit_load_charset_map being nonzero.
6611 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6612 Handle the case of inhibit_load_charset_map being nonzero.
6613 (Fclear_charset_maps): Just free temp_charset_work.
6614 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6615 variable.
6616
6617 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6618 change of char_table_ref_and_range.
6619 (char_table_ref_and_range): Change the meaning of argument FROM
6620 and TO. Now the caller must provide initial values for *FROM
6621 and *TO.
6622
6623 * fontset.c (fontset_add): Adjusted for the change of
6624 char_table_ref_and_range.
6625 (fontset_get_font_group): Likewise.
6626 (Ffontset_info): Likewise.
6627
6628 * keymap.c (describe_vector): Adjusted for the change of
6629 char_table_ref_and_range. For char-table, put boundary between
6630 non-ASCII and 8-bit characters.
6631
6632 * print.c (print_object): For bool-vector, delete unnecessary
6633 check of ASCII_BYTE_P.
6634
9196133b
JR
66352008-11-26 Jason Rumney <jasonr@gnu.org>
6636
6637 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6638 leading in font height. (Bug#879)
9196133b 6639
9f688acf
GM
66402008-11-26 Glenn Morris <rgm@gnu.org>
6641
6642 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6643 redefinition with ifdef. (Bug#1383)
6644
90d19aff
AR
66452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6646
6647 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6648
4ccfa1c0 66492008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6650
6651 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6652 New EmacsView methods.
6653 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6654 Fixes bug #1048,1357,1414.
6655
66562008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6657
6658 Fix bug #1362.
6659 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6660 is not an indexed color.
6661 * nsterm.m (free_indexed_color): Add argument checking.
6662 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6663
e7d5ecb3
CY
66642008-11-24 Chong Yidong <cyd@stupidchicken.com>
6665
6666 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6667 Document confirm-after-completion value for
6668 minibuffer-completion-confirm.
6669
c285743c
JR
66702008-11-24 Jason Rumney <jasonr@gnu.org>
6671
6672 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6673 warning.
6674
b0857706
JR
66752008-11-23 Jason Rumney <jasonr@gnu.org>
6676
6677 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6678 restored before returning.
6679
6680 * w32font.c (check_face_name): New function.
6681 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6682 fonts. (Bug#642)
b0857706 6683
ee50ff07
MR
66842008-11-22 Martin Rudalics <rudalics@gmx.at>
6685
6686 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6687 confirm-nonexistent-file-or-buffer in doc-string.
6688
b8ff72fa
SM
66892008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6690
6691 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6692 Fix copy/paste typo. Add checks.
6693
cee53ed4
KH
66942008-11-21 Kenichi Handa <handa@m17n.org>
6695
6696 * coding.c (detect_coding_iso_2022): Reject invalid composition
6697 sequence.
6698 (DECODE_COMPOSITION_START): If the current source is the last
6699 block, and the current composition doesn't end, regard this
6700 sequence as invalid.
6701 (decode_coding_iso_2022): Handle invalid composition sequence.
6702
f6ef1e65
MR
67032008-11-20 Martin Rudalics <rudalics@gmx.at>
6704
6705 * window.c (coordinates_in_window): Don't return
6706 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6707 line when the window is not the rightmost one. (Bug#1372)
6708
e08b1705
MR
67092008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6710
6711 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6712
ad98e89f
EZ
67132008-11-15 Eli Zaretskii <eliz@gnu.org>
6714
6715 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6716 and bright_bg if noninteractive is non-zero.
6717
fb098a4b
CY
67182008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6719
6720 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6721 x_draw_glyph_string_background.
6722
6723 * w32term.c (x_draw_glyph_string): Likewise.
6724
ce952b6e
CY
67252008-11-15 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6728 the next glyph string once past the overhang width.
6729
6730 * nsterm.m (ns_draw_glyph_string): Likewise.
6731
6732 * w32term.c (x_draw_glyph_string): Likewise.
6733
26ea7079
CY
67342008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6735
6736 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6737 double file close.
6738
1c33c906
MR
67392008-11-14 Martin Rudalics <rudalics@gmx.at>
6740
6741 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6742 dedicated status of window before attempting to display another
6743 buffer in it.
6744
8fc29035
JB
67452008-11-14 Juanma Barranquero <lekktu@gmail.com>
6746
6747 * msdos.c (Fmsdos_long_file_names):
6748 (syms_of_msdos) <dos-unsupported-char-glyph>:
6749 * dosfns.c (Fint86): Fix typos in docstrings.
6750
55fb4286
EZ
67512008-11-14 Eli Zaretskii <eliz@gnu.org>
6752
6753 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6754
3fda0315
KY
67552008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6756
6757 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6758
7e849c17
CY
67592008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6760
6761 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6762
6763 * frame.h: Negative alpha means "don't touch".
6764
6765 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6766
6767 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6768
b9fd67bd
DN
67692008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6770
6771 * hftctl.c:
6772 * chpdef.h:
6773 * acldef.h: Remove files used only for systems no longer supported.
6774
6775 * Makefile.in: Fix .o alphabetical ordering.
6776 (hftctl.o): Remove dependency, file removed.
6777 (keymap.o, print.o): Depend on charset.h.
6778
d5998e03
KH
67792008-11-10 Kenichi Handa <handa@m17n.org>
6780
2ae37cf0 6781 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6782
be70e183
CY
67832008-11-08 Chong Yidong <cyd@stupidchicken.com>
6784
6785 * dired.c (file_name_completion): If completion_ignore_case is
6786 enabled, ignore case when checking completion-regexp-list.
6787
7cf94eac
EZ
67882008-11-08 Eli Zaretskii <eliz@gnu.org>
6789
6790 * vm-limit.c (get_lim_data): Fix last change.
6791
ee107a89
KH
67922008-11-08 Kenichi Handa <handa@m17n.org>
6793
6794 * character.c (Fget_byte): New function.
6795 (syms_of_character): Defsubr Fget_byte.
6796
5fd15622
CY
67972008-11-07 Chong Yidong <cyd@stupidchicken.com>
6798
6799 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6800 cursor position is valid after scrolling.
6801
13d62fad
JB
68022008-11-06 Juanma Barranquero <lekktu@gmail.com>
6803
6804 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6805
a1dd2936
GM
68062008-11-06 Glenn Morris <rgm@gnu.org>
6807
6808 * xterm.c (handle_one_xevent): Don't let popup menus cause
6809 mouse-autoselect-window related window switching. (Bug#1261)
6810
860cd236
CY
68112008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6812
6813 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6814
653a3150
AS
68152008-11-04 Andreas Schwab <schwab@suse.de>
6816
6817 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6818
870f5cac
CY
68192008-11-03 Chong Yidong <cyd@stupidchicken.com>
6820
6821 * xfns.c (Fx_wm_set_size_hint): New function.
6822
1e02f3cb
MR
68232008-11-03 Martin Rudalics <rudalics@gmx.at>
6824
6825 * textprop.c (Fprevious_single_char_property_change): Return 0
6826 when there's no change in a string. (Bug#1301)
6827
e630dfc6
MR
68282008-11-02 Martin Rudalics <rudalics@gmx.at>
6829
6830 * frame.c (do_switch_frame): New argument NORECORD passed to
6831 Fselect_window.
6832 (Fselect_frame): New argument NORECORD passed to
6833 do_switch_frame.
6834 (Fset_frame_selected_window): New argument NORECORD passed to
6835 Fselect_frame.
6836 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6837 in call of do_switch_frame.
6838 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6839 Handle NORECORD argument in call of Fselect_frame.
6840 * lisp.h (do_switch_frame, Fselect_frame)
6841 (Fset_frame_selected_window): Adjust declarations.
6842 * window.c (select_frame_norecord): New function.
6843 (run_window_configuration_change_hook): Use it and call
6844 Fselect_frame with NORECORD set.
6845 (Fselect_window): Pass NORECORD to Fselect_frame.
6846 (Fset_window_configuration): Handle NORECORD argument in call of
6847 do_switch_frame.
6848 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6849 Fset_frame_selected_window.
6850 * keyboard.c (command_loop_1): Handle NORECORD in call of
6851 Fselect_frame (currently ifdefd).
6852
9020b223
GM
68532008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6854
6855 * emacs.c (USAGE2): Untabify.
6856
793ffee8
SM
68572008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6858
6859 * composite.c (fill_gstring_header): Fix copy/paste typo.
6860
ab6d1131
MR
68612008-10-31 Martin Rudalics <rudalics@gmx.at>
6862
6863 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6864 (Fother_window): Rename argument and rewrite doc-string.
6865 (select_window_norecord): Fix return value. (Bug#1276)
6866
601a9cf1
JB
68672008-10-30 Juanma Barranquero <lekktu@gmail.com>
6868
6869 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6870 new frames overriding foreground for tooltips. Based on similar patch
6871 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6872
813b0652
CY
68732008-10-29 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * emacs.c (Fdaemon_initialized): Initialize nfd.
6876
4414f58f
MR
68772008-10-29 Martin Rudalics <rudalics@gmx.at>
6878
6879 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6880 (Fwindow_text_height): Clarify doc-strings.
6881 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6882 doc-string of window-scroll-functions.
6883
ecdcaa09
RS
68842008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6885
6886 * category.c (syms_of_category): Fix typo in docstring.
6887
23fe745a
JB
68882008-10-28 Juanma Barranquero <lekktu@gmail.com>
6889
6890 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6891 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6892 Fix typos in docstrings.
6893
ff808935
DN
68942008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6895
6896 * emacs.c (daemon_pipe): Make non-static.
6897 (IS_DAEMON): Move definition ...
6898 * lisp.h (IS_DAEMON): ... here.
6899 (daemon_pipe): Declare.
6900 (is_daemon): Remove.
6901 * dispnew.c (init_display): Use IS_DAEMON.
6902
fc012771
SM
69032008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6904
6905 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6906 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6907
6908 * emacs.c (is_daemon): Remove.
6909 (main): Don't set is_daemon.
6910 (IS_DAEMON): New macro.
6911 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6912 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6913 parent exits.
6914 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6915
d8bdbe6f
CY
69162008-10-27 Chong Yidong <cyd@stupidchicken.com>
6917
d1a072bf
CY
6918 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6919 over-sized glyph, draw it with the default glyph width.
6920
e2e325aa
CY
6921 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6922 glyph, draw it with the default glyph width.
6923
6924 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6925 glyph, draw it with the default glyph width.
6926
d8bdbe6f
CY
6927 * xdisp.c (try_scrolling): When computing the distance from the
6928 scroll margin to PT, try moving some distance past the window
6929 bottom before giving up.
6930
7bfac547
MR
69312008-10-27 Martin Rudalics <rudalics@gmx.at>
6932
6933 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6934 (Fset_window_buffer): Explain in doc-string that a window can be
6935 "strongly" dedicated to its buffer.
6936
4ff029f6
DN
69372008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6938
6939 * emacs.c (daemon_name): New variable.
6940 (main): Deal with --daemon=SERVER_NAME.
6941 (Fdaemonp): Return a name if one was passed to --daemon.
6942
5790ef40
DN
69432008-10-26 Romain Francoise <romain@orebokech.com>
6944
f9bd0df9 6945 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6946 (main): Create a pipe before forking, make the parent exit only after
6947 the child has closed its end of the pipe. Move closing the
6948 descriptors ...
6949 (Fdaemon_initialized): ... here. New function.
6950
f5385255
SM
69512008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6952
4d632321
SM
6953 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6954 the previous unoptimized table.
6955
f5385255
SM
6956 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6957 the distinction between non-nil and non-t value of `dedicated'.
6958
6c56a0f3
CY
69592008-10-25 Chong Yidong <cyd@stupidchicken.com>
6960
6961 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6962 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6963
fec89261
MR
69642008-10-25 Martin Rudalics <rudalics@gmx.at>
6965
6966 * window.c (Fget_buffer_window, Fdelete_windows_on)
6967 (Freplace_buffer_in_windows): Make buffer argument optional and
6968 rename to buffer_or_name.
6969
34fcddd0
CY
69702008-10-24 Chong Yidong <cyd@stupidchicken.com>
6971
f5385255
SM
6972 * xdisp.c (handle_single_display_spec, handle_display_prop):
6973 Undo 2005-05-16 change.
34fcddd0
CY
6974 (handle_stop): Pop iterator if it's loaded with an empty string.
6975 (get_overlay_strings_1): Don't save iterator if it's loaded with
6976 an empty string (bug#1201).
6977
064766f2
KH
69782008-10-24 Kenichi Handa <handa@m17n.org>
6979
6980 * ftfont.c (ftfont_otf_features): Fix previous change.
6981 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6982 calling ftfont_otf_features.
6983
f9bd0df9 69842008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6985
6986 * font.c (font_match_p): Fix for the case that a vector of
6987 characters is in script-representative-chars.
6988
1dae9197
MA
69892008-10-24 Michael Albinus <michael.albinus@gmx.de>
6990
6991 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6992 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6993 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6994 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6995 macro. (Bug#1186)
1dae9197 6996
f9bd0df9 69972008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6998
6999 * s/sol2-10.h: New file.
7000
878a4584
JB
70012008-10-23 Juanma Barranquero <lekktu@gmail.com>
7002
7003 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7004 poor beast has survived 9+ years and the jump from xterm.c!).
7005
cd265ca6
MR
70062008-10-23 Martin Rudalics <rudalics@gmx.at>
7007
7008 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7009 Reword doc-string.
f5385255 7010 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7011
472a4dc9
JB
70122008-10-23 Juanma Barranquero <lekktu@gmail.com>
7013
7014 * character.c (syms_of_character) <script-representative-chars>:
7015 <unicode-category-table>: Doc fixes.
7016
159bd5a2
NF
70172008-10-23 Noah Friedman <friedman@splode.com>
7018
7019 * coding.c (make_conversion_work_buffer): Check that
7020 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7021 Fget_buffer_create.
7022
49f9c344
KH
70232008-10-23 Kenichi Handa <handa@m17n.org>
7024
7025 * font.c (font_add_log): Check the values of extra properties.
7026
12bb3111
MR
70272008-10-22 Martin Rudalics <rudalics@gmx.at>
7028
7029 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7030 Reword doc-string.
7031 (Fset_window_parameter): Use NILP.
7032 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7033 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7034
bbeb4e99
JB
70352008-10-22 Juanma Barranquero <lekktu@gmail.com>
7036
7037 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7038
70392008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7040
7041 * nsfns.m (ns_appkit_version): New function.
7042 (x-server-version): Use it.
7043 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7044 (x-server-vendor): Don't check_ns().
7045
7046 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7047
a9b555d3
JB
70482008-10-22 Juanma Barranquero <lekktu@gmail.com>
7049
7050 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7051 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7052
4626499f
KH
70532008-10-22 Kenichi Handa <handa@m17n.org>
7054
e3681952
KH
7055 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7056 scripts.
7057
4626499f
KH
7058 * category.c (word_boundary_p): Check scripts instead of charset.
7059 Handle nil value in word-separating-categories and
7060 word-combining-categories.
7061 (syms_of_category): Fix docstrings of word-separating-categories
7062 and word-combining-categories.
7063
1560f91a
EZ
70642008-10-21 Eli Zaretskii <eliz@gnu.org>
7065
7066 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7067 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7068
f4668441
MR
70692008-10-21 Martin Rudalics <rudalics@gmx.at>
7070
7071 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7072 Rename arg "buffer" to "buffer_or_name".
7073 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7074 it optional.
7075 (no_switch_window): Remove since the return value is not used.
a9b555d3 7076 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7077 Consider window as dedicated when Fwindow_dedicated_p returns a
7078 non-nil value.
7079 * lisp.h: Remove prototype for no_switch_window.
7080
fd75ddb2
JD
70812008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7082
7083 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7084 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7085
07295713
KH
70862008-10-21 Kenichi Handa <handa@m17n.org>
7087
7088 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7089 check Vlatin_extra_code_table.
7090
712adc82
EZ
70912008-10-20 Eli Zaretskii <eliz@gnu.org>
7092
7093 * fileio.c (Fset_file_modes): Doc fix.
7094
f549eb0b
MA
70952008-10-19 Michael Albinus <michael.albinus@gmx.de>
7096
7097 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7098 in arrays.
7099
aac0c6e3
MR
71002008-10-19 Martin Rudalics <rudalics@gmx.at>
7101
7102 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7103 Mention kill-buffer in doc-string.
7104 (Fset_window_buffer): Reinsert tem check removed in last commit.
7105 (Fenlarge_window, Fshrink_window): Have argument names and
7106 doc-string follow Elisp manual more closely.
7107
71082008-10-18 Eli Zaretskii <eliz@gnu.org>
7109
7110 * fileio.c (Fset_file_modes): Doc fix.
7111
71122008-10-18 Martin Rudalics <rudalics@gmx.at>
7113
7114 * window.c (Fwindow_width, Fset_window_start)
7115 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7116 (Fdelete_windows_on, Freplace_buffer_in_windows):
7117 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7118 (Fwindow_dedicated_p): Make window argument optional.
7119 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7120 (Fset_window_buffer): Respect any non-nil dedicated value for
7121 window. Rename "buffer" argument to "buffer_or_name".
7122
71232008-10-18 Ulrich Mueller <ulm@gentoo.org>
7124
7125 * m/sh3.h: New file, machine description for SuperH.
7126
71272008-10-17 Martin Rudalics <rudalics@gmx.at>
7128
7129 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7130
71312008-10-17 Kenichi Handa <handa@m17n.org>
7132
7133 * ftfont.c (ftfont_otf_features): Fix indexing
7134 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7135
71362008-10-16 Magnus Henoch <mange@freemail.hu>
7137
7138 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7139 (Fdbus_call_method_asynchronously): Ditto.
7140 This change makes C-h f display the argument list.
7141
71422008-10-16 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * fileio.c (Fexpand_file_name): Doc fix.
7145
7146 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7147 of :foreground and :background equivalent to unspecified (20.x
7148 compatibility).
7149
71502008-10-15 Eli Zaretskii <eliz@gnu.org>
7151
7152 * buffer.c (syms_of_buffer): Doc fix.
7153
71542008-10-14 Kenichi Handa <handa@m17n.org>
7155
7156 * font.c (font_clear_prop): When clearing font width, clear the
7157 average width field too.
7158
71592008-10-12 Andreas Schwab <schwab@suse.de>
7160
7161 * ftfont.c (ftfont_shape_by_flt): Make static.
7162 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7163
7164 * font.c: Don't include <m17n-flt.h>.
7165
71662008-10-10 Eli Zaretskii <eliz@gnu.org>
7167
7168 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7169
71702008-10-09 Eli Zaretskii <eliz@gnu.org>
7171
7172 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7173 away code.
7174
71752008-10-09 Chong Yidong <cyd@stupidchicken.com>
7176
7177 * dispnew.c (update_text_area): Avoid looping due to large glyph
7178 overhangs (bug#1070).
7179
71802008-10-09 Kenichi Handa <handa@m17n.org>
7181
7182 * fontset.c (face_for_char): If face->fontset is negative, just
7183 return ascii_face.
7184
f5385255
SM
7185 * font.c (font_delete_unmatched): Fix previous change.
7186 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7187
71882008-10-09 Martin Rudalics <rudalics@gmx.at>
7189
7190 * frame.c (Fraise_frame): On text-only terminals select frame in
7191 order to make it visible. (Bug#1061)
7192
71932008-10-08 Chong Yidong <cyd@stupidchicken.com>
7194
7195 * fontset.c (fontset_find_font): Check frame validity.
7196
71972008-10-07 Chong Yidong <cyd@stupidchicken.com>
7198
a9b555d3 7199 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7200 (xg_display_close): Allow Emacs to close all displays (bug#985).
7201
72022008-10-06 Andreas Schwab <schwab@suse.de>
7203
f5385255 7204 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7205
72062008-10-06 Chong Yidong <cyd@stupidchicken.com>
7207
f5385255 7208 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7209
a9b555d3 7210 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7211
7212 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7213 during initialization.
7214
72152008-10-04 Eli Zaretskii <eliz@gnu.org>
7216
7217 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7218 whole thing on MSDOS frames as well as on a TTY.
7219
7220 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7221 well as for TTY.
7222 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7223 well as on a TTY.
7224
7225 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7226 as well as for TTY.
7227
7228 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7229
7230 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7231 MSDOS frames as well.
7232
72332008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7234
7235 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7236 correct arguments.
b71ac3dd 7237 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7238
72392008-10-03 Glenn Morris <rgm@gnu.org>
7240
7241 * emacs.c (USAGE1): Add --daemon.
7242
72432008-10-02 Eli Zaretskii <eliz@gnu.org>
7244
7245 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7246 100, so it's in percents as advertised.
7247
72482008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7249
7250 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7251 (ns_output.current_cursor, ns_output.desired_cursor)
7252 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7253 (FRAME_NEW_CURSOR_COLOR): Remove.
7254
7255 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7256 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7257 enumeration (HOLLOW_BOX_CURSOR, etc.).
7258
7259 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7260 (draw_window_cursor): Simplify code.
f5385255
SM
7261 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7262 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7263 updates manually.
a9b555d3
JB
7264 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7265 Use core Emacs cursor types.
aac0c6e3 7266
b8ff72fa 7267 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7268
72692008-10-02 Martin Rudalics <rudalics@gmx.at>
7270
7271 * process.c (Faccept_process_output): Fix doc-string.
7272
72732008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7274
7275 * gmalloc.c (__sbrk): Also define for uClibc.
7276
7277 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7278 for uClibc.
7279
72802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7281
7282 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7283 styles.
7284 (nsfont_open): Reenable the cache.
7285
72862008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7287
7288 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7289 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7290
72912008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7292
7293 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7294 a suspended terminal.
7295
72962008-09-30 Michael Albinus <michael.albinus@gmx.de>
7297
7298 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7299
73002008-09-30 Eli Zaretskii <eliz@gnu.org>
7301
7302 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7303
73042008-09-30 Chong Yidong <cyd@stupidchicken.com>
7305
7306 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7307 in a continued line coincides with a line beginning.
7308
73092008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7310
7311 * nsfont.m (nsfont_trait_distance): Fix bug.
7312 (nsfont_list): Return a list rather than a vector (syncs with Handa
7313 changes of 2008-05-14).
7314 (nsfont_open): Improve logging.
7315
73162008-09-29 Andreas Schwab <schwab@suse.de>
7317
7318 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7319
73202008-09-28 Martin Rudalics <rudalics@gmx.at>
7321
7322 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7323 name as char-resolve-modifiers.
7324 Reported by: Markus Triska <markus.triska@gmx.at>
7325
73262008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7327
7328 * dispnew.c (init_display): Return earlier when running as a daemon.
7329
73302008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7331
7332 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7333
73342008-09-27 Eli Zaretskii <eliz@gnu.org>
7335
7336 * composite.c (Fcomposition_get_gstring)
7337 (Fcompose_region_internal, Fcompose_string_internal)
7338 (Ffind_composition_internal): Doc fix.
7339 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7340 (syms_of_composite) <auto-composition-function>: Doc fix.
7341 (syms_of_composite) <composition-function-table>: Doc fix.
7342
73432008-09-25 Chong Yidong <cyd@stupidchicken.com>
7344
7345 * search.c (wordify): New argument for lax word-ends.
7346 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7347
73482008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7349
7350 * lisp.h (is_daemon): Declare.
7351 * dispnew.c (init_display): Do not try to initialize the terminal
7352 when running as a daemon.
7353
73542008-09-22 Chong Yidong <cyd@stupidchicken.com>
7355
7356 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7357 x_display_pixel_height.
7358
73592008-09-22 Martin Rudalics <rudalics@gmx.at>
7360
7361 * undo.c (record_point): Don't call Fundo_boundary for first
7362 change. (Bug#731)
7363
73642008-09-22 Juanma Barranquero <lekktu@gmail.com>
7365
7366 * emacs.c (Fdaemonp): Doc fix.
7367
73682008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7369
7370 * emacs.c (main): Place #ifdef in the proper place.
7371
73722008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7373
7374 * emacs.c (standard_args): Add --daemon.
7375 (main): Disconnect from the terminal when --daemon is passed.
7376 (is_daemon): New variable.
7377 (Fdaemonp): New function.
7378 (syms_of_emacs): Defsubr it.
7379
73802008-09-20 Chong Yidong <cyd@stupidchicken.com>
7381
7382 * xdisp.c (get_next_display_element): Handle string display
7383 correctly when checking for the end of a box run.
7384
73852008-09-20 Glenn Morris <rgm@gnu.org>
7386
7387 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7388 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7389 (Frename_file): Avoid copying to trash if a rename involves
7390 a delete. (Bug#964).
7391
73922008-09-20 Eli Zaretskii <eliz@gnu.org>
7393
7394 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7395 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7396 frames as well as termcap frames.
7397 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7398 get_named_tty.
7399
74002008-09-19 Eli Zaretskii <eliz@gnu.org>
7401
7402 * process.c (procfs_system_process_attributes): Fix cmdline in
7403 case /proc/PID/cmdline is empty.
7404
7405 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7406 x_display_pixel_height.
7407
74082008-09-19 Juanma Barranquero <lekktu@gmail.com>
7409
7410 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7411
7412 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7413 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7414
74152008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7416
7417 * dispextern.h (struct it): Move line_wrap away from the middle of
7418 bitfields. Move voffset in struct iterator_stack_entry after the
7419 bitfields. Move tab_width near after another short.
7420
74212008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7422
7423 * frame.h (struct frame): Move alpha from the middle of bitfields.
7424
7425 * window.h (struct window): Move frozen_window_start_p after the
7426 rest of the bitfields to reduce padding.
7427
74282008-09-18 Chong Yidong <cyd@stupidchicken.com>
7429
7430 * xterm.h (x_display_info): Remove `height' and `width' members.
7431
7432 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7433
7434 * w32term.h (w32_display_info): Remove `height', `width',
7435 `height_in', and `width_in' members.
7436
b8ff72fa
SM
7437 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7438 New functions.
aac0c6e3
MR
7439 (x_calc_absolute_position): Use them.
7440 (x_term_init): Omit removed `height' and `width' members.
7441
b8ff72fa
SM
7442 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7443 New functions.
aac0c6e3
MR
7444 (w32_read_socket, x_calc_absolute_position): Use them.
7445 (w32_initialize_display_info, w32_term_init): Omit removed members
7446 of w32_display_info.
7447
b8ff72fa
SM
7448 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7449 New functions.
7450 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7451
b8ff72fa
SM
7452 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7453 New functions.
aac0c6e3
MR
7454 (x_calc_absolute_position): Use them.
7455 (x_term_init): Omit removed `height' and `width' members.
7456
7457 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7458 (compute_tip_xy):
7459 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7460 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7461 x_display_pixel_width.
7462
74632008-09-18 Kenichi Handa <handa@m17n.org>
7464
7465 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7466 (composition_compute_stop_pos): Fix handling of static composition.
7467 (Fcomposition_get_gstring): Check FROM and TO at first.
7468
74692008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7470
46e722a9 7471 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7472 mixup (YAILOM).
7473
74742008-09-17 Chong Yidong <cyd@stupidchicken.com>
7475
7476 * indent.c (Fvertical_motion): Use position reported by iterator
7477 instead of PT for determining screen motion (bug#943).
7478
74792008-09-17 Romain Francoise <romain@orebokech.com>
7480
7481 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7482
74832008-09-17 Kenichi Handa <handa@m17n.org>
7484
7485 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7486
7487 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7488 if necessary.
7489
74902008-09-16 Kenichi Handa <handa@m17n.org>
7491
7492 * coding.c (make_conversion_work_buffer): Avoid calling
7493 Fget_buffer_create if it is not necessary.
7494
74952008-09-15 Martin Rudalics <rudalics@gmx.at>
7496
7497 * window.c (Fselect_window): Don't update window_select_count and
7498 use_time when norecord is not nil.
7499
75002008-09-14 Kenichi Handa <handa@m17n.org>
7501
7502 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7503 specpdl_ptr.
7504
75052008-09-12 Kenichi Handa <handa@m17n.org>
7506
7507 * indent.c (scan_for_column): Don't handle automatic composition
7508 if the current buffer is not associated with a window.
7509
7510 * composite.c (composition_reseat_it): If the current buffer is
7511 not associated with a window, ignore the automatic composition.
7512 (find_automatic_composition): Likewise.
7513
75142008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7515
7516 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7517 (Fgpm_mouse_stop): Use it.
7518 * termhooks.h (close_gpm): Declare.
7519 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7520 connection if Gpm_GetEvent fails.
7521
7522 * window.c (set_window_buffer): Always preserve current-buffer.
7523
75242008-09-12 Glenn Morris <rgm@gnu.org>
7525
7526 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7527
75282008-09-11 Glenn Morris <rgm@gnu.org>
7529
7530 * charset.c (charset-map-path): Doc fix.
7531
75322008-09-10 Kenichi Handa <handa@m17n.org>
7533
7534 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7535
7536 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7537 compose a grapheme cluster with the preceding base glyph.
7538
7539 * composite.c (composition_compute_stop_pos): Fix previous change.
7540 Reset cmp_it->id to -1 at first.
7541
75422008-09-10 Glenn Morris <rgm@gnu.org>
7543
7544 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7545
75462008-09-09 Chong Yidong <cyd@stupidchicken.com>
7547
7548 * keyboard.c (read_key_sequence): Reapply translation maps when
7549 switching keyboards.
7550
75512008-09-09 Kenichi Handa <handa@m17n.org>
7552
7553 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7554 characters.
7555
7556 * composite.c (FORWARD_CHAR): Fix calculation
7557 of (POSITION).pos_byte.
7558 (composition_compute_stop_pos): Limit the search of composition to
7559 at most 500 characters ahead. If we reach the limit or find a
7560 newline, set cmp_it->ch to -2 and return 0.
7561 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7562
75632008-09-08 Kenichi Handa <handa@m17n.org>
7564
7565 * indent.c (Fvertical_motion): Be sure to set
7566 it_overshoot_expected if it.cmp_it.id is non-negative.
7567
75682008-09-07 Andreas Schwab <schwab@suse.de>
7569
7570 * callproc.c (Fcall_process): Don't hold references to string data
7571 across garbage collection. Move initialisation of new_argv down
7572 to avoid compiler bug.
7573
75742008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7575
7576 * process.c (Fsystem_process_attributes): Doc fix.
7577
75782008-09-07 Chong Yidong <cyd@stupidchicken.com>
7579
7580 * callproc.c (Fcall_process): Canonicalize current directory name.
7581
7582 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7583 iterator advances to the next line if the current line ends in a
7584 continued tab.
7585
75862008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7587
7588 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7589 member to point to cmp_from.
7590
7591 * xdisp.c: Doc fix for references to gidx data member.
7592
75932008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7594
7595 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7596
75972008-09-07 Kenichi Handa <handa@m17n.org>
7598
7599 * composite.c (FORWARD_CHAR): Check STOP after
7600 incrementing (POSITION).pos.
7601
76022008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7603
7604 * process.c (Fsystem_process_attributes): Doc fix.
7605
76062008-09-06 Chong Yidong <cyd@stupidchicken.com>
7607
7608 * keyboard.c (Ftop_level): Doc fix.
7609
76102008-09-06 Eli Zaretskii <eliz@gnu.org>
7611
7612 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7613 minibuffer, don't let lower part of menu invade the echo area.
7614
7615 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7616 "char *q" to access menu text and advance through it. Revert the
7617 change that displayed ">" instead of ASCII character 0x10.
7618
76192008-09-05 Eli Zaretskii <eliz@gnu.org>
7620
7621 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7622 toggle boxes and radio buttons on MS-DOS as well.
7623
76242008-09-05 Kenichi Handa <handa@m17n.org>
7625
7626 * composite.c (autocmp_chars): Check lookback count.
7627 (composition_compute_stop_pos): Set cmp_it->lookback.
7628 (composition_reseat_it): Check lookback count.
7629 (struct position_record): New struct.
7630 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7631 (find_automatic_composition): New function.
7632 (composition_adjust_point): Use find_automatic_composition.
7633
7634 * dispextern.h (struct composition_it): New member lookback.
7635
76362008-09-02 Chong Yidong <cyd@stupidchicken.com>
7637
7638 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7639 if moving by a single line.
7640
76412008-09-02 Andreas Schwab <schwab@suse.de>
7642
7643 * xterm.c (x_delete_display): Fix merge error.
7644
7645 * fileio.c (Fexpand_file_name): Remove unused variables.
7646
76472008-09-02 Eli Zaretskii <eliz@gnu.org>
7648
7649 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7650 storage on all platforms, not just on DOS_NT.
7651
76522008-09-02 Jason Rumney <jasonr@gnu.org>
7653
b8ff72fa
SM
7654 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7655 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7656
76572008-09-01 Chong Yidong <cyd@stupidchicken.com>
7658
7659 * xfaces.c (Finternal_set_alternative_font_family_alist)
7660 (Finternal_set_alternative_font_registry_alist): Properly copy
7661 entire alist structure.
7662
76632008-09-01 Kenichi Handa <handa@m17n.org>
7664
d66c0241 7665 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7666 representative chars of the script is a vector.
d66c0241
JB
7667 (ftfont_list): Handle the case where the representative chars of
7668 the script is a vector.
aac0c6e3
MR
7669
7670 * character.c (syms_of_character): Docstring of
7671 script-representative-chars fixed.
7672
76732008-08-31 Eli Zaretskii <eliz@gnu.org>
7674
7675 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7676 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7677 the menu. Allocate larger buffer for `text', to account for
7678 possible ^C characters.
7679
76802008-08-31 Martin Rudalics <rudalics@gmx.at>
7681
7682 * xdisp.c (prepare_menu_bars): Don't call
7683 Vwindow_size_change_functions with arg Qt.
7684
76852008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7686
7687 * font.h (font_range):
7688 * fileio.c (report_file_error):
46e722a9
SM
7689 * composite.c (composition_update_it): Yet another int/Lisp_Object
7690 mixup (YAILOM).
aac0c6e3
MR
7691
76922008-08-30 Glenn Morris <rgm@gnu.org>
7693
7694 * data.c (Fmake_variable_frame_local): Doc fix.
7695
7696 * frame.c (Fmodify_frame_parameters): Doc fix.
7697
76982008-08-30 Eli Zaretskii <eliz@gnu.org>
7699
7700 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7701 needed by GetTokenInformation.
7702 (w32_system_process_attributes): Check return values of all system
7703 APIs.
7704
7705 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7706 only when the state changes.
7707 (IT_update_begin, IT_update_end): Add termscript trace.
7708
7709 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7710 clipboard is unavailable. Set dst to NULL if it doesn't point to
7711 malloc'ed data.
7712 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7713 passing random values to xfree.
7714
7715 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7716 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7717
77182008-08-29 Jason Rumney <jasonr@gnu.org>
7719
7720 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7721
77222008-08-29 Eli Zaretskii <eliz@gnu.org>
7723
7724 * composite.c (fill_gstring_body): Avoid compiler warnings.
7725
7726 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7727 LGLYPH_SET_CODE to avoid compiler warnings.
7728
2ae37cf0 7729 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7730
7731 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7732
7733 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7734 LGLYPH_SET_CODE.
7735
77362008-08-29 Kenichi Handa <handa@m17n.org>
7737
7738 * fileio.c (report_file_error): Don't downcase the first character
7739 of errstring if it is still unibyte.
7740
77412008-08-29 Kenichi Handa <handa@m17n.org>
7742
7743 These changes are to re-implement the automatic composition so
7744 that it doesn't use text properties.
7745
7746 * Makefile.in (ftfont.o): Depend on composite.h.
7747 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7748
7749 * character.h (Vunicode_category_table): Extern it.
7750
7751 * character.c (Vunicode_category_table): New variable.
7752 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7753
7754 * chartab.c (optimize_sub_char_table): Perform more greedy
7755 optimization.
7756
b8ff72fa
SM
7757 * composite.h (enum composition_method):
7758 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7759 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7760 (Vcomposition_function_table): Extern it.
7761 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7762 (composition_gstring_put_cache, composition_gstring_from_id)
7763 (composition_gstring_p, composition_gstring_width)
7764 (composition_compute_stop_pos, composition_reseat_it)
7765 (composition_update_it, composition_adjust_point): Extern them.
7766 (Fcomposition_get_gstring): EXFUN it.
7767
d66c0241 7768 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7769 (Vcomposition_function_table)
7770 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7771 (gstring_hash_table, gstring_work, gstring_work_headers):
7772 New variables.
aac0c6e3
MR
7773 (gstring_lookup_cache, composition_gstring_put_cache)
7774 (composition_gstring_from_id, composition_gstring_p)
7775 (composition_gstring_width, fill_gstring_header)
7776 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7777 (composition_reseat_it, composition_update_it)
b8ff72fa 7778 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7779 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7780 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7781 Defsubr compostion_get_gstring.
7782
7783 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7784 cmp_id.
7785 (struct glyph_string): Delete the member gidx. New members
7786 cmp_id, cmp_from, and cmp_to.
7787 (enum it_method): Delete GET_FROM_COMPOSITION.
7788 (struct composition_it): New struct.
7789 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7790 Delete c, len, cmp_id, cmp_len in u.comp.
7791
7792 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7793 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7794 (enum lglyph_indices): Likewise.
b8ff72fa 7795 (font_range): Adjust extern.
aac0c6e3
MR
7796 (font_fill_lglyph_metrics): Extern it.
7797
7798 * font.c (QCf): New variable.
7799 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7800 (font_prepare_composition): Delete this function.
7801 (font_range): Type and arguments changed.
7802 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7803 (font_fill_lglyph_metrics): New function.
b8ff72fa 7804 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7805 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7806 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7807 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7808
7809 * fontset.h (font_for_char): Extern it.
7810
7811 * fontset.c (font_for_char): New function.
7812
7813 * ftfont.c: Include composite.h.
7814 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7815 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7816
7817 * indent.c: Include composite.h and dispextern.h.
7818 (check_composition): Delete this function.
7819 (scan_for_column): Handle composition by
7820 composition_compute_stop_pos, composition_reseat_it, and
7821 composition_update_it.
7822 (compute_motion): Likewise.
7823 (Fvertical_motion): Fix checking of composition.
7824
7825 * keyboard.c (adjust_point_for_property): Check composition by
7826 composition_adjust_point.
7827
b8ff72fa 7828 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7829 struct glyph_string.
7830
b8ff72fa
SM
7831 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7832 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7833 struct glyph.
7834 (produce_composite_glyph): Likewise.
7835
b8ff72fa
SM
7836 * w32term.c (x_draw_composite_glyph_string_foreground):
7837 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7838 (x_draw_glyph_string): Likewise.
7839
7840 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7841 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7842
7843 * xdisp.c: Include font.h.
7844 (it_props): Delete the entry for Qauto_composed.
7845 (init_iterator): Initialize it->cmp_it.id to -1.
7846 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7847 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7848 (handle_auto_composed_prop): Delete it.
7849 (handle_composition_prop): Handle only static composition.
7850 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7851 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7852 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7853 (pop_it): Likewise.
7854 (get_next_element): Delete next_element_from_composition.
7855 (CHAR_COMPOSED_P): New macro.
7856 (get_next_display_element): For automatic composition, get a face
7857 from the font in the glyph-string.
7858 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7859 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7860 (next_element_from_string): Check if the character at the current
7861 position is composed by CHAR_COMPOSED_P.
7862 (next_element_from_buffer): Likewise.
d66c0241
JB
7863 (next_element_from_composition): Adjust for the change of struct it.
7864 Update it->cmp_it.
b8ff72fa
SM
7865 (dump_glyph): Adjust for the change of struct glyph.
7866 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7867 it and struct glyph. Don't handle automatic composition here.
7868 (fill_gstring_glyph_string): New function.
7869 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7870 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7871 (BUILD_GSTRING_GLYPH_STRING): New macro.
7872 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7873 automatic composition.
b8ff72fa 7874 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7875 struct glyph.
b8ff72fa 7876 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7877
b8ff72fa 7878 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7879 the change of struct glyph_string.
7880 (x_draw_glyph_string): Likewise.
7881
78822008-08-29 Glenn Morris <rgm@gnu.org>
7883
7884 * buffer.c (word-wrap): Doc fix.
7885 * xdisp.c (truncate-partial-width-windows): Doc fix.
7886 Increase default to 50.
7887
78882008-08-29 Chong Yidong <cyd@stupidchicken.com>
7889
7890 * xdisp.c (update_tool_bar_unwind): New function.
7891 (update_tool_bar): Temporarily set selected frame before building
7892 tool-bar items.
7893
78942008-08-28 Michael Albinus <michael.albinus@gmx.de>
7895
7896 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7897 snprintf, respectively.
7898 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7899
79002008-08-28 Chong Yidong <cyd@stupidchicken.com>
7901
7902 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7903 LDFLAGS to GNUstep CC invocation.
7904
79052008-08-27 Chong Yidong <cyd@stupidchicken.com>
7906
7907 * indent.c (Fvertical_motion): Revert last change. Handle the
7908 general case where we are moving forward, and PT spans multiple
7909 screen lines.
7910
7911 * eval.c (find_handler_clause): Temporarily increase
7912 max-lisp-eval-depth while printing the backtrace buffer, to
7913 guarantee that help-mode code can run.
7914
79152008-08-27 Eli Zaretskii <eliz@gnu.org>
7916
7917 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7918 colors under -rv.
7919 (IT_set_frame_parameters): Don't swap foreground and background
7920 colors if `(reverse . t)' is present in the frame properties.
7921 (internal_terminal_init): Call init_frame_faces only for the
7922 initial frame.
7923
79242008-08-27 Andreas Schwab <schwab@suse.de>
7925
7926 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7927
79282008-08-27 Andreas Schwab <schwab@suse.de>
7929
7930 * search.c (search_buffer): Set char_base to zero only at the end.
7931
79322008-08-27 Kenichi Handa <handa@m17n.org>
7933
b8ff72fa 7934 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7935
79362008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7937
7938 * xterm.c (x_term_init): Temporarily hide the partially
7939 initialized terminal while calling vendor-specific-keysyms.
7940
79412008-08-26 Eli Zaretskii <eliz@gnu.org>
7942
7943 * msdos.c (internal_terminal_init): Most initializations done only
7944 once, especially initial_screen_colors[] and termscript open.
7945
79462008-08-26 Chong Yidong <cyd@stupidchicken.com>
7947
7948 * eval.c (Fcondition_case): Doc fix.
7949
7950 * widgetprv.h (EmacsFramePart): Change font member to the new font
7951 struct.
7952
7953 * widget.c: Include character.h and font.h for XSETFONT.
7954 (setup_frame_gcs): Compute X font id from font struct, just once.
7955
79562008-08-26 Eli Zaretskii <eliz@gnu.org>
7957
7958 * term.c (get_named_tty): Fix last change.
7959
79602008-08-26 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7963 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7964
79652008-08-25 Eli Zaretskii <eliz@gnu.org>
7966
7967 * frame.c (do_switch_frame): Mark previously displayed frame as
7968 obscured for FRAME_MSDOS_P frames as well.
7969
79702008-08-24 Eli Zaretskii <eliz@gnu.org>
7971
7972 * frame.c (make_terminal_frame): Initialize f->terminal,
7973 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7974 Set the top frame to newly created frame.
7975 (Fmake_terminal_frame): Reuse the_only_display_info.
7976
7977 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7978 estimating available memory.
7979
b97439ce 79802008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7981
7982 * nsterm.m (ns_draw_window_cursor): Don't call
7983 NSDisableScreenUpdates and NSEnableScreenUpdates on
7984 non-NS_IMPL_COCOA systems.
7985
79862008-08-23 Andreas Schwab <schwab@suse.de>
7987
7988 * process.c (procfs_system_process_attributes): Fix use of
7989 uninitialized variables.
7990
79912008-08-23 Eli Zaretskii <eliz@gnu.org>
7992
7993 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7994
7995 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7996 calling tty-set-up-initial-frame-faces.
7997
b8ff72fa
SM
7998 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7999 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8000
8001 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8002 addition to output_termcap.
8003
8004 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8005
8006 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8007 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8008 highlight.
8009
8010 * process.c [!subprocesses]: Define QCname.
8011 (syms_of_process): Intern and staticpro it.
8012
8013 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8014 Adjust for changes in encoding/decoding routines.
8015 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8016 encode_coding and decode_coding.
8017
b8ff72fa 8018 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8019
8020 * dosfns.c: Include frame.h before termhooks.h.
8021 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8022 variable termscript.
8023
8024 * s/msdos.h (USER_FULL_NAME): Define.
8025 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8026
8027 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8028 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8029 pw->pw_gecos.
8030
8031 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8032 SELECTED_FRAME as additional (1st) argument.
8033 (tty_read_avail_input): Handle output_msdos_raw in
8034 addition to output_termcap.
8035
8036 * msdos.c: Include frame.h before termhooks.h.
8037 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8038 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8039 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8040 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8041 (IT_set_terminal_modes, IT_reset_terminal_modes)
8042 (IT_set_frame_parameters): Use tty->termscript instead of a global
8043 variable termscript.
8044 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8045 global variable terminal_coding. Don't refer to
8046 Vnonascii_translation_table.
8047 (internal_terminal_init): Set Vwindow_system in current_kboard.
8048 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8049 Announce date and time of session start, if termscript is open.
8050 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8051 term.c:init_tty). Open termscript only of not already open.
8052 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8053 here instead of dos_ttraw. Don't initialize display if this is an
8054 initial tty. Don't set FRAME_FONT.
8055 (Vwindow_system_version): Bump to 23.
8056 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8057 is available, set up mouse_position_hook.
8058 (dos_ttraw, IT_set_terminal_modes): If called with initial
8059 terminal, do nothing.
8060 (IT_set_frame_parameters): Handle the Qtty_type frame
8061 parameter by calling internal_terminal_init.
8062 (dos_set_window_size, show_mouse_face)
8063 (clear_mouse_face, IT_note_mode_line_highlight)
8064 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8065 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8066 (initialize_msdos_display): New function.
8067 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8068 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8069 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8070 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8071 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8072 (request_sigio, unrequest_sigio): Don't define, now defined on
8073 sysdep.c.
8074 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8075
8076 * term.c [MSDOS]: Include msdos.h.
8077 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8078 conditional to DOS_NT. Allow only one call to this function in a
8079 session. Don't allocate a new struct tty_display_info; instead,
8080 reuse the_only_display_info. Call get_tty_size to get screen
8081 dimensions. Call init_baud_rate to set bad_rate.
8082 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8083 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8084 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8085 (get_tty_terminal, get_named_tty, Ftty_type)
8086 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8087 output_termcap.
b8ff72fa
SM
8088 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8089 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8090 only when subprocesses are supported.
aac0c6e3
MR
8091
8092 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8093 f->output_data.x.
8094 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8095 terminal devices.
8096
5582fbc7 8097 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8098 x_output.
8099 (FRAME_FONT): Use output_data.tty.
8100 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8101 (struct x_display_info): Rename from display_info. Update all users in
8102 msdos.c.
aac0c6e3 8103 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8104 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8105 (dos_ttraw): Update prototype.
8106
8107 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8108 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8109
81102008-08-23 Jason Rumney <jasonr@gnu.org>
8111
8112 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8113 (fn_TIFFSetDirectory): New library function used.
8114 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8115 (tiff_load): Use :index to select among multiple images. Set count
8116 property when multiple images exist.
8117 (gif_format): Use :index, not :image.
8118
81192008-08-23 Chong Yidong <cyd@stupidchicken.com>
8120
8121 * xdisp.c (try_scrolling): Check INT_MAX instead of
8122 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8123 to obtain INT_MAX.
8124
81252008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8126
8127 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8128
81292008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8130
8131 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8132 GNUstep library location.
8133
81342008-08-21 Chong Yidong <cyd@stupidchicken.com>
8135
8136 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8137 before using it.
8138
8139 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8140
81412008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8142
8143 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8144 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8145 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8146 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8147 (EmacsApp-cursor_blink_handler): Remove declaration.
8148 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8149 match 01 Feb 2008 changes in xterm.c.
8150 (ns_read_socket): Add cast to avoid warning.
8151 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8152 GNUstep.
8153
81542008-08-20 Chong Yidong <cyd@stupidchicken.com>
8155
8156 * xselect.c (x_get_foreign_selection): Return nil if desired
8157 selection could not be obtained, instead of signalling an error.
8158
81592008-08-20 David Reitter <david.reitter@gmail.com>
8160
8161 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8162 * nsterm.m: Remove ns-specific code for cursor blinking.
8163 (ns_draw_window_cursor): Clear cursor properly rather than
8164 redrawing the area. Respect width of bar cursors.
8165 These changes enable the use of generic blink-cursor-mode and
8166 generic cursor types in NS and support smooth cursor movements (do
8167 not blink off after command).
8168 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8169 Nextstep, too.
8170
81712008-08-19 Kenichi Handa <handa@m17n.org>
8172
8173 * font.c (Vfont_log_deferred): New variable.
8174 (font_add_log): Check Vfont_log_deferred.
8175 (font_deferred_log): New function.
8176
8177 * font.h (font_deferred_log): Extern it.
8178
8179 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8180 for sorting.
8181 (face_for_char): Use deferred log.
8182
81832008-08-18 Kenichi Handa <handa@m17n.org>
8184
8185 * fontset.c (face_for_char): Add font log.
8186
8187 * font.c (font_add_log): Add the font properties :script, :lang,
8188 and :otf in the log.
8189
81902008-08-17 Chong Yidong <cyd@stupidchicken.com>
8191
8192 * xdisp.c: Remove dead code.
8193 (handle_invisible_prop, next_overlay_string): Defer call to
8194 setup_for_ellipsis.
8195 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8196
81972008-08-15 Chong Yidong <cyd@stupidchicken.com>
8198
8199 * xfaces.c (lookup_derived_face): Properly handle possible zero
8200 return value of get_lface_attributes.
8201 (merge_faces): Don't tell lookup_derived_face to signal an error
8202 if face is not found.
8203
8204 * dired.c (Fdirectory_files): Doc fix.
8205
8206 * process.c (make_process): Initialize kill_without_query struct
8207 member.
8208
82092008-08-15 Eli Zaretskii <eliz@gnu.org>
8210
8211 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8212 Alternative calculation of totphys for Visual Studio 6.
8213
8214 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8215
8216 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8217 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8218 All users changed.
8219 (stat): Only root directory passed to GetDriveType. Allow RAM
8220 disk as well as local fixed disk when w32-get-true-file-attributes
8221 is set to `local'.
8222 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8223 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8224 (w32_cached_id, w32_add_to_cache): New functions.
8225 (get_name_and_id): Look account names in the cache before calling
8226 lookup_account_sid.
8227 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8228 New initialization flags.
8229 (globals_of_w32): Initialize them to zero.
8230 (w32_system_process_attributes): Use w32_cached_id and
8231 w32_add_to_cache.
8232
82332008-08-14 Lawrence Mitchell <wence@gmx.li>
8234
8235 * lread.c (Fread_char, Fread_char_exclusive): If no character
8236 event is read before timeout is reached, return nil, rather than
8237 converting to a number.
8238
82392008-08-14 Chong Yidong <cyd@stupidchicken.com>
8240
8241 * fns.c (use_dialog_box): Doc fix.
8242
8243 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8244 on OS X.
8245
82462008-08-13 Chong Yidong <cyd@stupidchicken.com>
8247
8248 * frame.c (Qns_parse_geometry): New var.
8249 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8250
82512008-08-11 Chong Yidong <cyd@stupidchicken.com>
8252
8253 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8254 space character in calculating tabs.
8255
82562008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8257
8258 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8259
82602008-08-10 Glenn Morris <rgm@gnu.org>
8261
8262 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8263 silence gcc "limited range of data type" warnings in some
8264 make_fixnum_or_float calls.
8265
82662008-08-09 Eli Zaretskii <eliz@gnu.org>
8267
8268 * w32.c (w32_system_process_attributes): If the process does not
8269 exist, return nil.
8270
8271 * w32.c: Include thelp32.h, psapi.h and coding.h.
8272 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8273 declarations.
8274 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8275 (Process32Next_Proc): New typedefs.
8276 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8277 (g_b_init_process32_next, g_b_init_open_thread_token)
8278 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8279 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8280 (g_b_init_get_process_working_set_size)
8281 (g_b_init_global_memory_status_ex): New static variables.
8282 (globals_of_w32): Initialize them.
8283 (create_toolhelp32_snapshot, process32_first, process32_next)
8284 (open_thread_token, impersonate_self, revert_to_self)
8285 (get_process_memory_info, get_process_working_set_size)
8286 (global_memory_status, global_memory_status_ex): New wrapper
8287 functions.
8288 (w32_list_system_processes, w32_system_process_attributes)
8289 (enable_privilege, restore_privilege, ltime, process_times):
8290 New functions.
8291 (convert_time_raw): New function.
8292 (convert_time): Remove conversion of FILETIME into time in 100
8293 nsec units, call convert_time_raw instead.
8294
8295 * process.h (w32_list_system_processes, w32_system_process_attributes):
8296 Add prototypes.
8297 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8298 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8299 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8300 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8301
8302 * process.c (Fsystem_process_attributes): Doc fix.
8303
83042008-08-08 Chong Yidong <cyd@stupidchicken.com>
8305
8306 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8307 a continued multi-char glyph; if so, advance to the actual glyph.
8308
83092008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8310
8311 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8312
8313 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8314 (.m.o): Use it.
8315 * config.in: Regenerate.
8316
83172008-08-07 Chong Yidong <cyd@stupidchicken.com>
8318
8319 * xdisp.c (redisplay_window): Revert last change.
8320 (try_window): Check bottom scroll margin too.
8321
83222008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8323
8324 * config.in: Regenerate.
8325
8326 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8327 -list-load-path-shadows'.
8328 (nsgui.h): Reduce number of things depending on it.
8329
83302008-08-06 Chong Yidong <cyd@stupidchicken.com>
8331
8332 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8333 instead of window-end which does the wrong thing at eob.
8334 (try_cursor_movement): Minor optimization.
8335 (redisplay_window): If scroll margin is defined, don't assume
8336 window doesn't need scrolling.
8337
83382008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8339
8340 * config.in: Regenerate.
8341
8342 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8343 (mostlyclean): Don't delete *.d under NS.
8344
8345 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8346
83472008-08-06 Kenichi Handa <handa@m17n.org>
8348
8349 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8350
83512008-08-06 Andreas Schwab <schwab@suse.de>
8352
8353 * config.in: Regenerate.
8354
83552008-08-05 Chong Yidong <cyd@stupidchicken.com>
8356
8357 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8358 forcing a window start.
8359
8360 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8361 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8362
83632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8364
8365 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8366 argument.
8367
83682008-08-05 Juanma Barranquero <lekktu@gmail.com>
8369
8370 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8371 <scroll-down-aggressively, before-change-functions>:
8372 <after-change-functions>: Reflow docstrings.
8373
83742008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8375 Ken Raeburn <raeburn@gnu.org>
8376
8377 Dock menu customization, based on a patch by Ken Raeburn, plus some
8378 other fixes.
8379 * nsmenu.m (dockMenu): New variable.
8380 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8381
8382 * nsterm.h (dockMenu): Declare.
8383
8384 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8385 (ns_term_init): Initialize dockMenu.
8386 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8387 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8388 left.
8389
8390 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8391
83922008-08-04 Chong Yidong <cyd@stupidchicken.com>
8393
8394 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8395
8396 * config.in: Regenerate.
8397
83982008-08-04 Seiji Zenitani <zenitani@mac.com>
8399
8400 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8401
84022008-08-04 Chong Yidong <cyd@stupidchicken.com>
8403
8404 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8405
84062008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8407
8408 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8409
8410 * keyboard.h: Comment an #endif.
8411
8412 * lisp.h (have_menus_p): Adjust comment.
8413
8414 * menu.c (find_and_return_menu_selection): Fix comparison with
8415 client_data.
8416
8417 * nsmenu.m (popup_activated_flag): New variable.
8418 (popup_activated): New function.
8419 (menu-or-popup-active-p): New exported lisp definition.
8420 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8421 when popup done.
8422 (ns_popup_dialog): Set popup_activated_flag.
8423
8424 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8425 version for GNUstep (handled by conditional typedef in nsterm.m).
8426 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8427 in rgb.txt).
8428
8429 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8430
8431 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8432
8433 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8434
8435 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8436 shortcircuit if popup_activated like GTK and X toolkit.
8437
8438 * m/inter386.h: Change DARWIN to DARWIN_OS.
8439
8440 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8441 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8442 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8443 comment on NO_SOCK_SIGIO.
8444
84452008-08-03 Chong Yidong <cyd@stupidchicken.com>
8446
8447 * nsterm.m (windowDidResize): Remove stopModal call.
8448
84492008-08-03 Andreas Schwab <schwab@suse.de>
8450
8451 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8452 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8453
84542008-08-02 Chong Yidong <cyd@stupidchicken.com>
8455
8456 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8457 Don't use uninitialized pointer variable when using getrlimit.
8458
84592008-08-02 Jason Rumney <jasonr@gnu.org>
8460
8461 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8462
84632008-08-02 Eli Zaretskii <eliz@gnu.org>
8464
8465 * alloc.c (NSTATICS): Bump to 0x640.
8466
8467 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8468
8469 * lisp.h: Add prototype for directory_files_internal.
8470
8471 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8472 New functions.
8473 (syms_of_process): Defsubr them. Add initializations for various
8474 Q* symbols used in procfs_system_process_attributes.
8475 (procfs_list_system_processes, procfs_system_process_attributes)
8476 [HAVE_PROCFS]: New functions.
8477 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8478 (procfs_get_total_memory): New functions.
8479
84802008-08-01 Juanma Barranquero <lekktu@gmail.com>
8481
8482 * xfaces.c (Fx_load_color_file): Fix previous change;
8483 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8484
84852008-08-01 Michael Albinus <michael.albinus@gmx.de>
8486
8487 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8488
84892008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8490
8491 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8492
84932008-08-01 Chong Yidong <cyd@stupidchicken.com>
8494
8495 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8496
8497 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8498 define NSApplicationDelegateReplySuccess.
8499 (EmacsView -converstationIdentifier): Use long instead of
8500 NSInteger for GNUstep, since it doesn't have NSInteger.
8501
8502 * xmenu.c: Revert last change.
8503
8504 * keyboard.h: Fix last change.
8505
85062008-08-01 Juanma Barranquero <lekktu@gmail.com>
8507
8508 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8509 on Windows.
8510
85112008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8512
8513 Warning clearing and clean-up in NS port.
8514 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8515 Add prototypes.
8516 * nsgui.h (FACE_DEFAULT): Remove, unused.
8517 (XGCValues): Change colors to unsigned long.
8518 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8519 nsterm.m.
8520 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8521 (ns_list_fonts): Remove, unused.
8522 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8523 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8524 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8525 (nsfont_draw): Compare face colors to 0, not nil.
8526 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8527 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8528 (-addSubmenuWithTitle:): Use NSMenuItem class.
8529 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8530 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8531 (ns_clip_to_row): Make gc arg a BOOL.
8532 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8533 ns_clip_to_row() call.
8534 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8535 used). Cast FRAME_FONT assignments.
8536 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8537 (ns_string_to_lispmod): Change arg to const char.
8538 (ns_term_init): Use NSMenuItem class.
8539 (EmacsApp -openFile:): Move to different section of file.
8540 (EmacsApp -application:openFiles:): Don't return a value, call
8541 -replyToOpenOrPrint:.
8542 (EmacsView -keyDown:): Fix up cast.
8543 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8544 (EmacsView -menuDown:): Cast tag in call to
8545 find_and_call_menu_selection().
8546 (ns_list_fonts): Remove, unused.
8547 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8548 (ns_fontname_to_xlfd): Make static.
8549 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8550 Remove prototypes (now in keyboard.h).
8551 (next_menubar_widget_id): Remove, unused.
8552 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8553 Remove prototypes (now in keyboard.h).
8554 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8555
85562008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8557
8558 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8559 (floatfns.o): Depend on syssignal.h.
8560 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8561
8562 * systty.h: Fix previous change that removed BSD_TERMIOS.
8563 Add comments to #ifdefs.
8564
85652008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8566
8567 * w32fns.c (w32-load-color-file): Remove.
8568 (x-open-connection): Use renamed Fx_load_color_file.
8569 * xfaces.c (x-load-color-file): Add.
8570 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8571 Emacs.clr.
8572 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8573
85742008-07-31 Michael Albinus <michael.albinus@gmx.de>
8575
8576 * dbusbind.c (Fdbus_call_method_asynchronously)
8577 (Fdbus_method_error_internal): New defuns.
8578 (xd_read_message): Handle also reply messages.
8579 (Vdbus_registered_functions_table): Extend docstring.
8580
85812008-07-31 Juanma Barranquero <lekktu@gmail.com>
8582
8583 * keyboard.c (gobble_input): Fix previous change.
8584
85852008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8586
8587 * bitmaps/README:
8588 * xfns.c:
8589 * termcap.c:
8590 * term.c:
8591 * syswait.h:
8592 * systty.h:
8593 * systime.h:
8594 * syssignal.h:
8595 * sysdep.c:
8596 * process.h:
8597 * process.c:
8598 * print.c:
8599 * ndir.h:
8600 * lread.c:
8601 * keyboard.c:
8602 * getpagesize.h:
8603 * floatfns.c:
8604 * fileio.c:
8605 * emacs.c:
8606 * doc.c:
8607 * dispnew.c:
8608 * dired.c:
8609 * data.c:
8610 * callproc.c:
8611 * buffer.c:
8612 * README:
8613 * Makefile.in:
8614 * s/template.h:
8615 * s/msdos.h:
8616 * m/vax.h: Remove VMS support.
8617 * s/vms.h:
8618 * vlimit.h:
8619 * uaf.h:
8620 * temacs.opt:
8621 * param.h:
8622 * ioctl.h: Remove file.
8623
86242008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8625
8626 * s/ms-w32.h (MULTI_KBOARD): Remove.
8627 * xterm.c:
8628 * xselect.c:
8629 * xfns.c:
8630 * window.c:
8631 * w32term.c:
8632 * w32fns.c:
8633 * terminal.c:
8634 * termhooks.h:
8635 * term.c:
8636 * sysdep.c:
8637 * keyboard.h:
8638 * keyboard.c:
8639 * frame.h:
8640 * frame.c:
8641 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8642 * config.in: Regenerate.
8643
86442008-07-30 Jason Rumney <jasonr@gnu.org>
8645
8646 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8647
8648 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8649 (w32font_open_internal): Get unicode version of textmetrics.
8650 Don't enable or disable glyph indices here.
8651 (w32font_open): Disable use of glyph indices.
8652
8653 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8654
86552008-07-30 Chong Yidong <cyd@stupidchicken.com>
8656
8657 * minibuf.c (Vread_buffer_function): Doc fix.
8658
86592008-07-30 John Paul Wallington <jpw@pobox.com>
8660
8661 * minibuf.c (read_buffer_completion_ignore_case): New var.
8662 (Fread_buffer): Use it.
8663
86642008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8665
8666 * systty.h (sensemode): Remove empty #if. Remove reference to
8667 BSD_TERMIOS, unused.
8668
8669 * sysdep.c: Remove reference to DGUX.
8670 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8671
8672 * config.in: Regenerate.
8673
86742008-07-30 Jason Rumney <jasonr@gnu.org>
8675
8676 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8677
86782008-07-29 Jason Rumney <jasonr@gnu.org>
8679
8680 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8681 is populated.
8682 (uniscribe_encode_char): Always use uniscribe.
8683 Avoid using context if cache is populated.
8684
86852008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8686
8687 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8688 open menu.
8689
8690 * gtkutil.c (menu_nav_ended): Remove.
8691 (create_menus): Remove signal connect for menu_nav_ended.
8692
86932008-07-28 Chong Yidong <cyd@stupidchicken.com>
8694
8695 * xdisp.c (redisplay_window): Check return value of
8696 compute_window_start_on_continuation_line before forcing a window
8697 start.
8698
86992008-07-28 Jason Rumney <jasonr@gnu.org>
8700
8701 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8702
8703 * w32term.c (w32_enable_unicode_output, cleartype_active):
8704 Remove obsolete display options.
8705 (x_draw_glyph_string_background): Don't use old cleartype_active
8706 workaround.
8707 (w32_initialize): Remove cleartype_active initialization.
8708 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8709
87102008-07-28 Andreas Schwab <schwab@suse.de>
8711
8712 * lisp.h (init_weak_hash_tables, syms_of_font)
8713 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8714 (remove_hash_entry): Don't declare.
8715 * eval.c (maybe_call_debugger): Make static and move before use.
8716 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8717 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8718 * xterm.h (x_set_frame_alpha): Declare.
8719
87202008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8721
8722 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8723 (create_menus): Connect selection-done to menu_nav_ended.
8724
87252008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8726
8727 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8728 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8729 parameter with read of 'alpha' one.
8730 (Qns_frame_parameter): Remove.
5582fbc7 8731 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8732 (next-selection-coding-system, Vselection_coding_system)
8733 (Vnext_selection_coding_system): Drop.
8734
87352008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8736
8737 * nsfns.m (do-applescript, do_applescript): Rename to
8738 ns-do-applescript, ns_do_applescript, and move within file.
8739
87402008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8741
8742 Remove support for Mac Carbon.
8743 * mactoolbox.c:
8744 * macterm.h:
8745 * macterm.c:
8746 * macselect.c:
8747 * macmenu.c:
8748 * macgui.h:
8749 * macfns.c:
8750 * mac.c: Remove file.
8751 * s/darwin.h:
8752 * m/intel386.h:
8753 * xfaces.c:
8754 * xdisp.c:
8755 * window.c:
8756 * tparam.c:
8757 * termhooks.h:
8758 * termcap.c:
8759 * term.c:
8760 * syssignal.h:
8761 * sysselect.h:
8762 * sysdep.c:
8763 * process.c:
8764 * lread.c:
8765 * lisp.h:
8766 * keyboard.c:
8767 * image.c:
8768 * fringe.c:
8769 * frame.h:
8770 * frame.c:
8771 * fontset.c:
8772 * font.h:
8773 * font.c:
8774 * fns.c:
8775 * fileio.c:
8776 * emacs.c:
8777 * dispnew.c:
8778 * dispextern.h:
8779 * config.in:
8780 * atimer.c:
2ae37cf0 8781 * Makefile.in: Remove code for Carbon.
aac0c6e3 8782
f0131492 87832008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8784
8785 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8786
87872008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8788
8789 * macterm.h (kCGBitmapByteOrder32Host): New define for
8790 non-universal SDKs.
8791
8792 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8793 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8794
8795 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8796 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8797
87982008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8799
8800 * w32inevt.c: Include dispextern.h.
8801
88022008-07-26 Andreas Schwab <schwab@suse.de>
8803
8804 * print.c (print_object): Fix off-by-one in last change.
8805
88062008-07-25 Juanma Barranquero <lekktu@gmail.com>
8807
8808 * term.c (syms_of_term): Don't initialize default_orig_pair,
8809 default_set_foreground and default_set_background on Windows.
8810
88112008-07-25 Jason Rumney <jasonr@gnu.org>
8812
8813 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8814 ScriptItemize. Clean up return value checking. Remove unused
8815 variables.
8816 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8817 shaping engine.
8818
8819 * w32font.c (w32font_has_char): Handle the case where we can't
8820 determine the script for a character.
8821
88222008-07-25 Chong Yidong <cyd@stupidchicken.com>
8823
8824 * term.c (syms_of_term): Initialize default_orig_pair,
8825 default_set_foreground, and default_set_background.
8826
8827 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8828 clash (bug#86).
8829 (getloadavg): Callers changed.
8830
8831 * image.c (svg_load_image): Fix last change.
8832 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8833 image size is valid. Use g_object_unref instead of deprecated
8834 rsvg_handle_free to free rsvg handle.
8835 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8836
88372008-07-25 Jason Rumney <jasonr@gnu.org>
8838
8839 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8840 surrogates before looking up glyph index.
8841 (w32font_text_extents): Encode as surrogates if falling back to
8842 functions that need UTF-16 wide chars.
8843
8844 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8845 BMP as surrogates before looking up glyph index.
8846
88472008-07-25 Chong Yidong <cyd@stupidchicken.com>
8848
8849 * image.c (svg_load_image): Check for failure in return value of
8850 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8851
88522008-07-25 Jason Rumney <jasonr@gnu.org>
8853
8854 * w32font.c (Fx_select_font): Reverse sense of second arg.
8855
88562008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8857
8858 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8859 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8860
8861 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8862 (PURESIZE): Use it.
8863
88642008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8865
8866 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8867 * m/alpha.h (TEXT_END):
8868 * m/ibmrs6000.h (TEXT_END):
8869 * m/macppc.h (TEXT_END):
8870 * s/darwin.h (TEXT_END):
8871 * s/msdos.h (TEXT_END): Remove, unused.
8872 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8873 * s/cygwin.h: Remove comment.
8874
8875 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8876 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8877 * m/intel386.h (DOT_GLOBAL_START):
8878 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8879 (USG): Remove, file not used on USG platforms.
8880
8881 * Makefile.in (HAVE_X11): Remove empty #else.
8882
88832008-07-24 Andreas Schwab <schwab@suse.de>
8884
8885 * fileio.c (Finsert_file_contents): Properly adjust undo list
8886 after format conversion.
8887
88882008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8889
8890 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8891 (menu_nav_ended): Remove.
8892 (create_menus): Remove signal connect for menu_nav_ended.
8893 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8894 create_menus.
8895 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8896
88972008-07-23 Jason Rumney <jasonr@gnu.org>
8898
8899 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8900 with opened font.
8901 (w32font_open): Set font type to gdi.
8902
8903 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8904
89052008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8906
8907 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8908 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8909 defines it.
8910 * unexec.c (ADDR_CORRECT): Define unconditionally.
8911
8912 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8913
8914 * unexec.c: Remove code depending on !COFF and USG, the file is
8915 not used for such systems.
8916
8917 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8918 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8919 (LD_SWITCH_SYSTEM_1): Remove, update users.
8920
8921 * s/darwin.h (DATA_END):
8922 * m/intel386.h (DATA_END):
8923 * m/ibmrs6000.h (DATA_END):
8924 * m/alpha.h (DATA_END): Remove, unused.
8925
8926 * config.in: Regenerate.
8927 * s/ms-w32.h (subprocesses): Define unconditionally.
8928 * s/template.h (subprocesses): Update comment.
8929 * s/vms.h (subprocesses):
8930 * s/usg5-4.h (subprocesses):
8931 * s/hpux10-20.h (subprocesses):
8932 * s/gnu-linux.h (subprocesses):
8933 * s/cygwin.h (subprocesses):
8934 * s/bsd-common.h (subprocesses):
8935 * s/aix4-2.h (subprocesses):
8936 * s/darwin.h (subprocesses): Do not define, defined by default now.
8937
8938 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8939 Remove all references.
8940 (temacs): Add GNUstep specific ld flags.
8941
8942 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8943 similarly to what X does.
8944
89452008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8946
8947 * nsfns.m (x-list-fonts): Remove.
8948 (syms_of_nsfns): Drop the x-list-fonts declaration.
8949 * nsterm.m: Get rid of remaining "//" comments.
8950
89512008-07-22 Chong Yidong <cyd@stupidchicken.com>
8952
8953 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8954
8955 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8956 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8957 (Fns_own_selection_internal, Fx_disown_selection_internal)
8958 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8959
8960 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8961 ... */' style of docstrings. Doc fixes.
8962
89632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8964
8965 * terminfo.c (UP, BC, PC): Undo previous change.
8966
8967 * nsfns.m: Rename ns prefixed functions/variables to the
8968 corresponding x versions. Update references.
8969
89702008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8971
8972 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8973
89742008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8975
8976 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8977 Remove forwarding functions.
8978 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8979 non-static.
8980 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8981 non-static.
8982 (ns_frame_parm_handlers): Use the new names.
8983 (syms_of_nsfns): Move to the end of file.
8984
8985 * nsterm.m (syms_of_nsterm): Move to the end of file.
8986
8987 * dispnew.c (init_display): Remove code for X10.
8988
89892008-07-22 Jason Rumney <jasonr@gnu.org>
8990
8991 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8992 bare drive.
8993
89942008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8995
8996 * nsterm.m (syms_of_nsterm): Remove debugging println.
8997
89982008-07-22 David Reitter <david.reitter@gmail.com>
8999
9000 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9001 Carbon implementation of the same functionality: execute arbitrary
9002 AppleScript code.
9003
90042008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9005
9006 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9007 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9008 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9009 (Fx_display_mm_height, Fx_display_mm_width)
9010 (Fx_display_backing_store, Fx_display_visual_class)
9011 (Fx_display_save_under, Fx_open_connection)
9012 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9013 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9014 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9015 (Fx_display_pixel_width, Fx_display_pixel_height)
9016 (Fx_display_usable_bounds, Fx_display_planes)
9017 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9018 ... */' style of docstrings.
9019
90202008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9021
9022 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9023 on this platform.
9024 (mips):
9025 * m/iris4d.h (mips): Do not define.
9026 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9027
9028 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9029
9030 * image.c:
9031 * nsfns.m:
9032 * nsselect.m:
9033 * nsterm.h:
9034 * nsterm.m: Rename ns prefixed functions/variables to the
9035 corresponding x versions. Update references.
9036
9037 * m/ibms390x.h (NO_REMAP): Do not undefine.
9038
9039 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9040
90412008-07-21 Chong Yidong <cyd@stupidchicken.com>
9042
9043 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9044 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9045 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9046 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9047 (Fns_display_mm_height, Fns_display_mm_width)
9048 (Fns_display_backing_store, Fns_display_visual_class)
9049 (Fns_display_save_under, Fns_open_connection)
9050 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9051 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9052 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9053 (Fns_display_pixel_width, Fns_display_pixel_height)
9054 (Fns_display_usable_bounds, Fx_display_planes)
9055 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9056
90572008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9058
9059 * print.c (print_object): Check print_depth before searching for
9060 circularities.
9061
90622008-07-21 Michael Albinus <michael.albinus@gmx.de>
9063
9064 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9065 only sprintf.
9066
90672008-07-21 Kenichi Handa <handa@m17n.org>
9068
9069 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9070
90712008-07-20 Andreas Schwab <schwab@suse.de>
9072
9073 * syntax.c (find_start_pos, find_start_value)
9074 (find_start_value_byte, find_start_begv, find_defun_start)
9075 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9076
90772008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9078
9079 * s/sol2-3.h: Insert contents of s/sol2.h.
9080 (LD_SWITCH_SYSTEM): Remove redundant definition.
9081 * s/sol2.h: Remove, unused.
9082
90832008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9084
9085 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9086
90872008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9088
9089 * Makefile.in (ns_appdir): Fix typo in find command.
9090
90912008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9092
9093 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9094
9095 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9096 added not supported anymore.
9097
9098 * s/usg5-4-2.h (LIBS_SYSTEM):
9099 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9100
9101 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9102 * s/lynxos.h (GETPGRP_NO_ARG):
9103 * s/hpux10-20.h (NO_SIOCTL_H):
9104 * s/gnu.h (GETPGRP_NO_ARG):
9105 * s/gnu-linux.h (NO_SIOCTL_H):
9106 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9107 * s/cygwin.h (GETPGRP_NO_ARG):
9108 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9109 (C_DEBUG_SWITCH): Remove duplicate definition.
9110
9111 * m/ibms390.h: Remove boilerplate comments.
9112
9113 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9114
9115 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9116 (wait_reading_process_output): Remove code for SunOS, platform not
9117 supported anymore. Use SOLARIS2 instead of sun.
9118
91192008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9120
9121 * font.c (font_open_by_name): Under NS, default lface height to zero.
9122 (font_open_for_lface): Under NS, set size based on frame fontsize.
9123 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9124 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9125
91262008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9127
9128 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9129 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9130 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9131 YES/NO.
9132 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9133 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9134 * Makefile.in (clean): Clear out build destination dir.
9135
91362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9137
9138 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9139 xterm, xselect.
9140 * lisp.h: Remove declaration of hash_remove.
9141 * nsgui.h: Remove redefinitions of hash_remove.
9142 * fns.c (hash_remove): Rename to hash_remove_from_table.
9143
91442008-07-19 Seiji Zenitani <zenitani@mac.com>
9145
9146 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9147 strdup() the family UTF8String before modifying it.
9148
91492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9150
9151 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9152 NS_FACE_BACKGROUND with 0 instead of nil.
9153 * nsfont.m (nsfont_draw): Same.
9154
91552008-07-19 Chong Yidong <cyd@stupidchicken.com>
9156
9157 * nsfns.m (ns_set_background_color): Fix crash.
9158
91592008-07-18 Chong Yidong <cyd@stupidchicken.com>
9160
9161 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9162
91632008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9164
9165 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9166
91672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9168
9169 * gtkutil.c: Include <config.h> instead of "config.h".
9170
9171 * lisp.h (Foverlay_buffer): Add EXFUN.
9172
9173 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9174 child process to complete child_setup. Undo 2005-09-21 change.
9175
9176 * s/darwin.h: Mention setsid after vfork.
9177
91782008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9179
9180 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9181 Depend on macgui.h.
9182
9183 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9184 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9185
9186 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9187 and f19.
9188 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9189
9190 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9191 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9192 Remove enumerators.
9193
9194 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9195 Check if FACE_FROM_ID returns NULL.
9196
91972008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9198
9199 * w32inevt.c (change_frame_size): Remove extern declaration.
9200 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9201 change_frame_size.
9202
92032008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9204
9205 * getloadavg.c: Revert last change (2008-07-15).
9206
92072008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9208
9209 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9210 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9211 from configure.
9212
92132008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9214
9215 * s/sol2.h:
9216 * s/sol2-4.h: Reorganize conditionals.
9217
9218 * ecrt0.c: Remove code depending on m68000, not used anymore.
9219
9220 * fns.c (hash_remove): Make static.
9221 * lisp.h (hash_remove): Don't prototype.
9222
9223 * m/ibmrs6000.h:
9224 * m/ibms390x.h:
9225 * m/macppc.h: Remove boilerplate comments.
9226
9227 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9228 Solaris, which does not need them.
9229
9230 * m/vax.h: Remove comments about unsupported systems.
9231
9232 * s/darwin.h: Reorganize ifdefs.
9233
92342008-07-17 Andreas Schwab <schwab@suse.de>
9235
9236 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9237
92382008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 Use SDATA. Follow coding convention of placing operators at
9241 beginning of next line rather than end of previous line, and placing
9242 spaces around infix operators.
9243
9244 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9245 in case it was defined already.
9246 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9247 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9248 ns_default.
9249 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9250 Lisp_Objects.
9251 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9252 (ns_defined_color, ns_color_to_lisp): Declare.
9253 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9254 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9255 it's accepted even with USE_LISP_UNION_TYPE.
9256 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9257 (update_frame_tool_bar): Remove apparently obsolete tests for
9258 non-integerness of f->tool_bar_lines.
9259 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9260 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9261 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9262 (nsfont_open): Don't confuse NULL for Qnil.
9263 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9264 * menu.h (find_and_call_menu_selection):
9265 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9266 (find_and_return_menu_selection): Always return something.
9267 * frame.h: Include dispextern.h for Display_Info.
9268 (display_x_get_resource): Declare.
9269
92702008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9271
9272 * syntax.c: Remove stdio.h include accidentally introduced in
9273 Emacs.app commit.
9274 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9275 NS_IMPL_COCOA.
9276 * keyboard.c (handle_async_input, input_available_signal): Remove
9277 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9278
92792008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9282 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9283 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9284 Use SDATA.
9285
9286 * keymap.c: Remove all NS-specific code.
9287 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9288 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9289 where_is_preferred_modifier, return a different value depending on how
9290 preferred is the binding.
9291 (where_is_internal): Adjust accordingly.
9292 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9293 Adjust to new preferred_sequence_p.
9294 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9295 * keyboard.c (parse_solitary_modifier): Not static any more.
9296 * keyboard.h (parse_solitary_modifier): Declare.
9297
92982008-07-16 Andreas Schwab <schwab@suse.de>
9299
9300 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9301 of easymenu.
9302
93032008-07-16 Chong Yidong <cyd@stupidchicken.com>
9304
9305 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9306 that we don't move off the line.
9307
93082008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9309
9310 * keyboard.c (Qsuper): Remove.
9311 (parse_menu_item): Don't call where_is_internal specially for NS.
9312
93132008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9314
9315 * s/gnu-linux.h: Remove boilerplate comments.
9316
9317 * m/alpha.h (__ELF__): Consolidate conditions.
9318
9319 * m/m68k.h (linux): Use GNU_LINUX instead.
9320 Remove boilerplate comments.
9321
9322 * m/intel386.h: Undo refactoring from previous change.
9323 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9324 too, remove dead code.
9325 (linux): Use GNU_LINUX instead.
9326
93272008-07-16 Jason Rumney <jasonr@gnu.org>
9328
9329 * w32gui.h: Repeat 26 June changes lost by last change.
9330
93312008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9332
9333 * systty.h: Remove code for Aix on 386, unsupported platform.
9334
9335 * s/ms-w32.h: Remove boilerplate comments.
9336 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9337
9338 * s/gnu-linux.h (TERM): Remove support.
9339 (HAVE_SYSVIPC): Remove, unused.
9340 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9341 for this system.
9342
9343 * process.c: Remove support for IRIS, unused.
9344 Remove support for TERM, not relevant anymore.
9345
9346 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9347 used with the definition.
9348
9349 * s/aix4-2.h (static): Do not undef.
9350
9351 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9352 only used on Aix.
9353 (HAVE_SYSVIPC): Remove, unused.
9354
9355 * m/hp800.h (CANNOT_DUMP): Do not undef.
9356
9357 * m/alpha.h: Fix comment.
9358
9359 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9360 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9361 used by this configuration.
9362 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9363 * unexec.c: Remove code depending on HPUX and
9364 USG_SHARED_LIBRARIES, not used with this file. Remove code
9365 depending on IRIS, unused. Remove if 0-ed code.
9366
9367 * s/template.h: Remove comments about static.
9368
9369 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9370 Remove if 0-ed code.
9371 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9372 were the same as the default.
9373 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9374 Remove boilerplate comments.
9375 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9376 (HAVE_SYSVIPC): Remove, unused.
9377 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9378
9379 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9380 Remove boilerplate comments.
9381 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9382 Remove boilerplate comments.
9383 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9384 Remove boilerplate comments.
9385 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9386
9387 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9388 USG systems which do not use DATA_SEG_BITS.
9389 Refactor code. Remove boilerplate comments.
9390
9391 * m/ibms390.h:
9392 * m/m68k.h:
9393 * s/bsd-common.h:
9394 * s/cygwin.h:
9395 * s/darwin.h:
9396 * s/freebsd.h:
9397 * s/gnu.h:
9398 * s/msdos.h: Remove boilerplate comments.
9399
9400 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9401 do not use this file.
aac0c6e3
MR
9402 (IRIS_4D): Remove, unused.
9403
9404 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9405 do not use this file.
aac0c6e3
MR
9406 (SIGN_EXTEND_CHAR):
9407 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9408 * unexmips.c: Remove file, unused.
9409
9410 * editfns.c (Fuser_full_name): Replace the only use of
9411 USER_FULL_NAME with its value.
9412 * config.in: Regenerate.
9413
94142008-07-16 David Reitter <david.reitter@gmail.com>
9415
9416 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9417 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9418
94192008-07-16 Glenn Morris <rgm@gnu.org>
9420
9421 * emacs.c (system-type): Doc fix.
9422
94232008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9424
9425 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9426 If the cache doesn't work, let's fix it, rather than work around it.
9427
94282008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9429
9430 * Makefile.in: Correct additions for nsfont.o in last commit.
9431 * nsfont.m: New file (forgot last commit).
9432
94332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9434
9435 * callproc.c (set_initial_environment): Initialize
9436 Vprocess_environment under CANNOT_DUMP (fixes crash when
9437 batch-compiling for bootstrap).
9438
94392008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9440 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9441
9442 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9443 fix crash due to different init order.
9444
94452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9446
9447 Changes and additions for NeXTstep windowing system (Cocoa and
9448 GNUstep) support.
9449
9450 * Makefile.in:
9451 * config.in: Support defines and build commands for NS port.
9452 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9453 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9454 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9455 windowing.
9456 (struct face): Add synth_ital field.
9457 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9458 (init_display): Initialize Vinitial_window_system to "ns" when so
9459 compiled.
9460 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9461 (display_arg): Use under NS.
9462 (main): Under NS, allocate autorelease pool and handle command line
9463 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9464 (standard_args): Add NS-specific args.
9465 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9466 * font.c (DEFAULT_ENCODING): New variable.
9467 (font_find_for_lface): Use it.
9468 (syms_of_font): Load syms_of_nsfont under NS.
9469 * font.h: Declare nsfont_driver when compiled under NS.
9470 * fontset.c: When compiling under NS, include nsterm.h.
9471 (fontset_from_font): Autoconstruct fontset under NS.
9472 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9473 symbol, document and use it.
9474 (do_switch_frame): When for_deletion under Cocoa, add
9475 Fraise_frame(Qnil).
9476 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9477 (x_get_arg): Allow "yes" and "no" as boolean values.
9478 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9479 Qright under Cocoa.
9480 (focus-follows-mouse): Default to 0 under NS.
9481 * frame.h (enum output_method): Add output_ns.
9482 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9483 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9484 (FRAME_WINDOW_P): NS-specific definition.
9485 * fringe.c (max_used_fringe_bitmap): Make public.
9486 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9487 (getloadavg): Use NeXT code under descendant OS's.
9488 * image.c (includes and header section, x_create_bitmap_from_data)
9489 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9490 (image_background_transparent, x_clear_image_1)
9491 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9492 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9493 (x_to_xcolors, x_from_xcolors, x_disable_image)
9494 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9495 other GUIs, including XPM support using code originally written for
9496 Carbon GUI.
9497 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9498 using NS API.
9499 (image_ascent): Use font metrics macros instead of direct struct field
9500 access.
9501 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9502 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9503 Also, handle NS as GTK for menu bar purposes.
9504 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9505 toolkit where they differ.
9506 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9507 use cachelist, still needed under NS.
9508 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9509 (struct widget_value): Define it here for menu.c.
9510 * keymap.c (includes): Include modifier internals.
9511 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9512 NS.
9513 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9514 support for preferring sequences using certain modifiers, specified by
9515 the FIRSTONLY argument.
9516 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9517 under NS GNUstep implementation.
9518 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9519 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9520 * menu.c: Include nsterm.h under NS.
9521 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9522 (free_menubar_widget_tree_value, update_submenu_strings)
9523 (find_and_call_menu_selection): Treat NS as X and NT.
9524 (find_and_return_menu_selection): New function, used for popup menus.
9525 * nsgui.h:
9526 * nsterm.h:
9527 * nsfns.m:
9528 * nsimage.m:
9529 * nsmenu.m:
9530 * nsselect.m:
9531 * nsterm.m: New files.
9532 * process.c (wait_reading_process_output): Under NS, call ns_select()
9533 instead of plain select().
9534 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9535 beginning of buffer.
9536 * sysselect.h (init_process): Rename when compiling under Cocoa to
9537 avoid name conflict.
9538 * termhooks.h (display_info): Add ns_display_info to union.
9539 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9540 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9541 COCOA environment.
9542 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9543 unexec() signature. (Note, this will dump, but the resulting file
9544 crashes; unexosx is used instead; keeping around for reference and
9545 possible aid in getting dump working under GNUstep.)
9546 * w32gui.h (button_type, widget_value): Remove definitions (now in
9547 keyboard.h).
9548 * window.c: Include nsterm.h when compiling under NS.
9549 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9550 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9551 other GUI windowing systems.
9552 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9553 GTK.
9554 (x_consider_frame_title): Under NS, set icon type and frame
9555 modified-state indicator; use ns_set_name_as_filename() when using
9556 formatted title.
9557 (update_window_cursor): Make public when compiling under NS.
9558 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9559 (hourglass_atimer, Vhourglass_delay
9560 * xfaces.c (header section, init_frame_faces, clear_font_table)
9561 (defined_color, unload_color, x_face_list_fonts)
9562 (prepare_face_for_display): Add NS support parallel to other GUIs.
9563 Emulate GCs like other non-X GUIs.
9564 (split_font_name): Don't lowercase font name under NS.
9565 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9566 under NS.
9567 * s/darwin.h: Add support for compilation under NS.
9568
95692008-07-15 Jason Rumney <jasonr@gnu.org>
9570
9571 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9572 (w32_show_hourglass): Rename from show_hourglass.
9573 (w32_hide_hourglass): Rename from hide_hourglass.
9574 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9575 (Vhourglass_delay): Declare extern.
9576 (hourglass_started): Remove.
9577
9578 * xdisp.c (Vhourglass_delay): Remove static.
9579 (hourglass_started, start_hourglass, cancel_hourglass):
9580 Don't include these versions on WINDOWSNT.
9581
95822008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9583
9584 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9585 variables (formerly in xfns.c).
9586 (show_hourglass, hide_hourglass): New prototypes (same).
9587 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9588 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9589 in xfns.c).
9590 (syms_of_xdisp): Declare/initialize display-hourglass,
9591 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9592 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9593 formerly in xfns.c.
9594 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9595 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9596 (start_hourglass, cancel_hourglass): Remove.
9597 (show_hourglass, hide_hourglass): Remove prototypes and static
9598 modifiers.
9599 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9600 hourglass_atimer, hourglass_shown_p declaration/initialization.
9601 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9602 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9603 (start_hourglass, cancel_hourglass): Remove.
9604 (show_hourglass, hide_hourglass): Remove prototypes and static
9605 modifiers.
9606 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9607 hourglass_atimer, hourglass_shown_p declaration/initialization.
9608 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9609 (DEFAULT_HOURGLASS_DELAY): Remove.
9610 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9611 hourglass_shown_p declaration/initialization.
9612
96132008-07-14 Jason Rumney <jasonr@gnu.org>
9614
9615 * w32fns.c (w32_get_arg): Remove wrapper function.
9616 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9617 directly.
9618 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9619
96202008-07-14 Kenichi Handa <handa@m17n.org>
9621
9622 * xfont.c (xfont_open): Add workaround for X's bug.
9623
96242008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9625
9626 * fontset.c: Include <stdio.h> unconditionally.
9627
96282008-07-13 Michael Albinus <michael.albinus@gmx.de>
9629
9630 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9631 for filtering.
9632
96332008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9634
9635 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9636
9637 * m/macppc.h:
9638 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9639
9640 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9641 (SPECIAL_EMACS_INT):
9642 * m/ia64.h (SPECIAL_EMACS_INT):
9643 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9644 * s/gnu.h (NLIST_STRUCT):
9645 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9646 * s/gnu-linux.h (LINUX):
9647 * s/msdos.h (HAVE_FACES):
9648 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9649
9650 * systty.h:
9651 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9652 anymore.
9653
96542008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9655
9656 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9657 always defined as int.
9658
9659 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9660 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9661 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9662 * s/freebsd.h (HAVE_WAIT_HEADER):
9663 * s/bsd-common.h (HAVE_UNION_WAIT):
9664 * s/aix4-2.h (HAVE_WAIT_HEADER):
9665 * m/mips.h (HAVE_UNION_WAIT):
9666 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9667 (COFF, static): Do not define, they are undefined later in the file.
9668
9669 * process.c (update_status): Don't use a union.
9670 (status_convert):
9671 (sigchld_handler): Use int instead of WAITTYPE.
9672
96732008-07-12 Chong Yidong <cyd@stupidchicken.com>
9674
9675 * indent.c (Fvertical_motion): Restore hscroll before moving to
9676 goal column.
9677
96782008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9679
9680 * lisp.h: Remove left over code.
9681
96822008-07-11 Andreas Schwab <schwab@suse.de>
9683
9684 * lisp.h: Fix logic in last change.
9685
9686 * menu.h: New file.
9687 * menu.c: Include it.
9688 * xmenu.c: Likewise.
9689 * Makefile.in: Update dependencies.
9690
96912008-07-11 Kenichi Handa <handa@m17n.org>
9692
9693 * fontset.c (fontset_from_font): Cancel the previous change.
9694
96952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9696
9697 * lisp.h:
9698 * w32heap.c:
9699 * emacs.c:
9700 * alloc.c: Replace all references of NO_UNION_TYPE with
9701 USE_LISP_UNION_TYPE.
9702
9703 * m/xtensa.h (NO_UNION_TYPE):
9704 * m/vax.h (NO_UNION_TYPE):
9705 * m/template.h (NO_UNION_TYPE):
9706 * m/sparc.h (NO_UNION_TYPE):
9707 * m/mips.h (NO_UNION_TYPE):
9708 * m/macppc.h (NO_UNION_TYPE):
9709 * m/m68k.h (NO_UNION_TYPE):
9710 * m/iris4d.h (NO_UNION_TYPE):
9711 * m/intel386.h (NO_UNION_TYPE):
9712 * m/ibms390x.h (NO_UNION_TYPE):
9713 * m/ibms390.h (NO_UNION_TYPE):
9714 * m/ibmrs6000.h (NO_UNION_TYPE):
9715 * m/ia64.h (NO_UNION_TYPE):
9716 * m/hp800.h (NO_UNION_TYPE):
9717 * m/arm.h (NO_UNION_TYPE):
9718 * m/amdx86-64.h (NO_UNION_TYPE):
9719 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9720 defining it the same.
9721
97222008-07-10 Chong Yidong <cyd@stupidchicken.com>
9723
9724 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9725
97262008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9727
9728 * fileio.c:
50426a04 9729 * sysdep.c:
aac0c6e3
MR
9730 * systty.h:
9731 * m/ibmrs6000.h:
9732 * m/iris4d.h:
9733 * s/aix4-2.h:
9734 * s/freebsd.h:
9735 * s/gnu-linux.h:
9736 * s/hpux10-20.h:
9737 * s/hpux11.h:
9738 * s/netbsd.h:
9739 * s/sol2-3.h:
9740 * s/sol2-4.h:
9741 * s/sol2.h:
9742 * s/usg5-4.h:
9743 * s/vms.h: Remove references to unused variables.
9744
97452008-07-10 Andreas Schwab <schwab@suse.de>
9746
9747 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9748 pattern before matching the generic family.
9749
97502008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9751
9752 * unexec.c:
9753 * s/vms.h:
9754 * s/usg5-4-2.h:
9755 * s/sol2-5.h:
9756 * s/freebsd.h:
9757 * s/darwin.h: Remove dead code.
9758
9759 * m/template.h:
9760 * m/sparc.h:
9761 * m/mips.h:
9762 * m/m68k.h:
9763 * m/iris4d.h:
9764 * m/intel386.h:
9765 * m/ibms390x.h:
9766 * m/ibms390.h:
9767 * m/ia64.h:
9768 * m/hp800.h:
9769 * m/arm.h:
9770 * m/amdx86-64.h: Remove dead code and references to unused
9771 and compiler defined symbols.
9772
9773 * unexmips.c:
9774 * unexelf.c: Remove references to desupported systems.
9775
9776 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9777
9778 * m/powermac.h: Remove boilerplate comments.
9779 (NO_REMAP): Remove unused definition.
9780
9781 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9782 define them.
9783
97842008-07-10 Kenichi Handa <handa@m17n.org>
9785
9786 * xfont.c (xfont_open): Log the reason of failure.
9787
97882008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9789
9790 * fontset.c (fontset_get_font_group):
9791 * font.c (font_check_otf): Specify argument types.
9792
97932008-07-09 Kenichi Handa <handa@m17n.org>
9794
9795 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9796 non-ASCII char is found.
9797
9798 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9799 (reorder_font_vector): Change the arg preferred_family to font.
9800 Prefer the spec matching with font.
9801 (fontset_get_font_group): New function.
9802 (fontset_find_font): Change the format of an element of a realized
9803 fontset. Use fontset_get_font_group.
9804 (fontset_font): Try the current fontset, the default fontset, the
9805 fallbacks of the current fontset, and the fallbacks of the default
9806 fontset in this order.
9807 (face_for_char): Delete the shortcut to use the current font.
9808 (fontset_from_font): Don't set fonts for Latin in the fontset.
9809
9810 * font.h (font_make_object, font_match_p): Adjust prototypes.
9811
9812 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9813
9814 * font.c (font_make_object): New arg entity and pixelsize.
9815 (font_check_otf_features, font_check_otf): New functions.
9816 (font_match_p): Check :lang, :script, and :otf properties.
9817
9818 * xfont.c (xfont_open): Adjust it for the change of
9819 font_make_object.
9820 (xfont_text_extents): Fix initial setting of metrics.
9821
9822 * ftfont.c (struct ftfont_info): New member index, delete member
9823 fc_charset_idx. Make the member order compatible with struct
9824 xftfont_info.
9825 (fc_charset_table): Change charset names to registry names.
9826 (ftfont_pattern_entity): Delete the args registry and
9827 fc_charset_idx. Change the value of :font-entity property
9828 to (FONTNAME . INDEX). Always set :registry property to
9829 `iso10646-1'.
9830 (struct ftfont_cache_data): New struct.
9831 (ftfont_lookup_cache): New arg for_face.
9832 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9833 (ftfont_driver): Set the member otf_capability.
9834 (ftfont_get_charset): Adjust it for the change of
9835 fc_charset_table.
9836 (OTF_TAG_SYM): New macro.
9837 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9838 for the change of fc_charset_table.
9839 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9840 ftfont_pattern_entity. Add FC_INDEX to objset.
9841 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9842 and ftfont_pattern_entity.
9843 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9844 font_make_object, struct ftfont_info.
9845 (ftfont_has_char): Use ftfont_get_fc_charset.
9846 (ftfont_otf_features, ftfont_otf_capability): New functions.
9847 (ftfont_shape): Use ftfont_get_otf.
9848 (ftfont_text_extents): Fix initial setting of metrics.
9849
9850 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9851 member order compatible with struct ftfont_info.
9852 (xftfont_open): Add FC_CHARSET to the pattern. Set
9853 xftfont_info->ft_size. Don't unlock the face. Check BDF
9854 properties if appropriate.
9855 (xftfont_close): Unlock the face.
9856 (xftfont_anchor_point, xftfont_shape): Deleted.
9857 (syms_of_xftfont): Don't set members anchor_point and shape of
9858 xftfont_driver.
9859
9860 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9861 font_make_object.
9862
9863 * w32font.c (w32font_open): Adjust it for the change of
9864 font_make_object.
9865 (w32font_open_internal): Don't set properties of font_object here.
9866
98672008-07-08 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * macfns.c (x_create_tip_frame):
9870 * w32fns.c (x_create_tip_frame):
9871 * xfns.c (x_create_tip_frame): Pass parameter argument to
9872 face-set-after-frame-default.
9873
9874 * xfaces.c (Finternal_merge_in_global_face): Save merged
9875 attributes for the default face back into the face vector.
9876
98772008-07-08 Andreas Schwab <schwab@suse.de>
9878
9879 * fontset.h: Declare fontset_from_font. Don't declare
9880 new_fontset_from_font and fontset_from_font_name.
9881 * xterm.c: Include "fontset.h".
9882 * Makefile.in (xterm.o): Update dependencies.
9883
98842008-07-08 Glenn Morris <rgm@gnu.org>
9885
9886 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9887 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9888
98892008-07-07 Chong Yidong <cyd@stupidchicken.com>
9890
9891 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9892 (x_set_frame_parameters): Don't bind it.
9893
98942008-07-07 Juanma Barranquero <lekktu@gmail.com>
9895
9896 * w32fns.c (map_w32_filename): Declare extern.
9897
98982008-07-07 Jason Rumney <jasonr@gnu.org>
9899
9900 * w32term.c (WS_EX_LAYERED): Define if not already.
9901
99022008-07-06 Chong Yidong <cyd@stupidchicken.com>
9903
9904 * xfaces.c (set_font_frame_param): Don't try to set the font
9905 parameter if it is still unspecified in the lface.
9906
99072008-07-05 Chong Yidong <cyd@stupidchicken.com>
9908
9909 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9910 face if it didn't already exist.
9911
9912 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9913
99142008-07-05 Andreas Schwab <schwab@suse.de>
9915
9916 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9917
99182008-07-05 Chong Yidong <cyd@stupidchicken.com>
9919
9920 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9921 word-wrapping.
9922 (IT_DISPLAYING_WHITESPACE): New macro.
9923 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9924 when word-wrapping. Simplify word-wrapping logic. Use correct
9925 pixel positions when saving copies of the iterator.
9926 (display_line): Use proper wrap point if the last character on a
9927 line was preceded by whitespace.
9928
99292008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9930
9931 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9932
99332008-07-04 Kenichi Handa <handa@m17n.org>
9934
9935 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9936
9937 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9938
99392008-07-02 Jason Rumney <jasonr@gnu.org>
9940
9941 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9942 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9943
9944 * xdisp.c (next_element_from_display_vector): Move assignment out
9945 of if statement.
9946
99472008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9948
9949 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9950
9951 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9952 (syms_of_fileio): Initialize and export them.
9953 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9954
9955 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9956 (Fsystem_move_file_to_trash): New function.
9957 (syms_of_w32fns): Export it to lisp.
9958
99592008-07-01 Jason Rumney <jasonr@gnu.org>
9960
9961 * w32font.c (w32font_text_extents): Don't count overhang as part
9962 of width.
9963
99642008-06-30 Miles Bader <miles@gnu.org>
9965
9966 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9967 Add `avoid_cursor_p' field.
9968
9969 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9970 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9971 (append_glyph, append_composite_glyph, produce_image_glyph)
9972 (append_stretch_glyph): Initialize avoid_cursor_p.
9973 (get_it_property): Rename from `get_line_height_property'.
9974 (x_produce_glyphs): Use get_it_property.
9975 (handle_line_prefix, push_display_prop): New functions.
9976 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9977 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9978 New variables.
9979 (syms_of_xdisp): Initialize them.
9980
99812008-06-30 Kenichi Handa <handa@m17n.org>
9982
9983 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9984 XftDefaultSubstitute (they are called in XftFontMatch).
9985 (xftfont_open): Fix args to ftfont_font_format.
9986
9987 * ftfont.c (fc_charset_table): New member lang.
9988 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9989 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9990 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9991 (ftfont_open): Fix args to ftfont_font_format.
9992 (ftfont_font_format): New arg filename.
9993
99942008-06-30 Chong Yidong <cyd@stupidchicken.com>
9995
9996 * xfaces.c (Finternal_merge_in_global_face): If default face was
9997 modified, realize it again. Update the font face attribute.
9998
99992008-06-29 Jason Rumney <jasonr@gnu.org>
10000
10001 * w32term.c (x_set_frame_alpha): Fix logic.
10002
100032008-06-29 Kenichi Handa <handa@m17n.org>
10004
10005 * fontset.c (Finternal_char_font): Return font-object instead of
10006 font-name.
10007
10008 * composite.c (get_composition_id): Fix the width calculation for TAB.
10009
100102008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * indent.c (Fvertical_motion): Properly handle float column arg.
10013
100142008-06-28 Jason Rumney <jasonr@gnu.org>
10015
10016 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10017 (pfnSetLayeredWindowAttributes): New function pointer.
10018 (w32_initialize): Initialize it when supported.
10019 (x_set_frame_alpha): New function.
10020
10021 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10022 (w32_frame_parm_handlers): Set alpha handler.
10023
10024 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10025
100262008-06-27 Jason Rumney <jasonr@gnu.org>
10027
10028 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10029 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10030 (w32_to_x_charset, x_to_w32_charset)
10031 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10032 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10033 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10034 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10035 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10036 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10037 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10038 (Qw32_charset_unicode): Remove.
10039 (syms_of_w32fns): Update for above changes.
10040
10041 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10042 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10043 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10044 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10045 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10046 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10047 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10048 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10049 (syms_of_w32font): Update for above changes.
10050
100512008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10052
10053 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10054 removed #if.
10055 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10056
100572008-06-26 Juanma Barranquero <lekktu@gmail.com>
10058 Eli Zaretskii <eliz@gnu.org>
10059
10060 * makefile.w32-in (LOCAL_FLAGS):
10061 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10062
10063 * sysdep.c (_spawnlp, _getpid):
10064 Declare with explicit _cdecl instead of _CRTAPI1.
10065
10066 * editfns.c (Fget_internal_run_time):
10067 Check for WINDOWSNT with #ifdef, not #if.
10068
100692008-06-26 Jason Rumney <jasonr@gnu.org>
10070
10071 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10072
10073 * w32term.c (x_draw_glyph_string_foreground)
10074 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10075 Use FONT_HANDLE macro.
10076 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10077
10078 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10079 (uniscribe_encode_char): Use FONT_HANDLE macro.
10080
10081 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10082 (w32font_text_extents): Use precast w32_font.
10083 (w32font_close): Free cached metrics.
10084 (w32font_open_internal): Allocate space for name on stack.
10085
100862008-06-26 Chong Yidong <cyd@stupidchicken.com>
10087
10088 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10089
100902008-06-26 Jason Rumney <jasonr@gnu.org>
10091
10092 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10093 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10094
100952008-06-26 Juanma Barranquero <lekktu@gmail.com>
10096
10097 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10098
100992008-06-26 Jason Rumney <jasonr@gnu.org>
10100
10101 * w32bdf.c, w32bdf.h: Remove obsolete files.
10102
10103 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10104
10105 * w32gui.h: Don't include w32bdf.h.
10106 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10107 Remove obsolete font support.
10108
10109 * w32font.h (struct w32font_info): Remove compat_w32_font.
10110 Add hfont member.
10111 (FONT_COMPAT): Remove obsolete macro.
10112
10113 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10114 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10115 (w32font_open_internal): Remove compat code. Set new hfont member.
10116 (Fx_select_font): Use new hfont member.
10117
10118 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10119 (uniscribe_encode_char): Use new hfont member.
10120
10121 * w32term.c (x_draw_glyph_string_foreground)
10122 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10123 (x_draw_glyph_string): Use metrics in w32font_info.
10124
101252008-06-26 Kenichi Handa <handa@m17n.org>
10126
10127 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10128
101292008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10130
10131 * unexnext.c:
10132 * m/ews4800.h:
10133 * m/hp9000s300.h:
10134 * m/ibm370aix.h:
10135 * m/mips-siemens.h:
10136 * m/ncr386.h:
10137 * m/next.h:
10138 * m/pmax.h:
10139 * m/powerpcle.h:
10140 * m/tandem-s2.h:
10141 * s/386bsd.h:
10142 * s/bsd386.h:
10143 * s/bsd4-1.h:
10144 * s/bsd4-2.h:
10145 * s/bsdos2-1.h:
10146 * s/bsdos2.h:
10147 * s/bsdos3.h:
10148 * s/bsdos4.h:
10149 * s/nextstep.h:
10150 * s/ultrix4-3.h:
10151 * s/usg5-0.h:
10152 * s/usg5-2-2.h:
10153 * s/usg5-2.h:
10154 * s/usg5-4-3.h:
10155 * s/ux4800.h:
10156 * s/uxpds.h:
10157 * s/uxpv.h: Remove support for obsolete systems.
10158 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10159 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10160 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10161 Remove, insert contents in s/aix4-2.h.
10162 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10163 * s/bsd4-3.h: Rename to ...
10164 * s/bsd-common.h: ... this.
10165 * data.c:
10166 * doc.c:
10167 * ecrt0.c:
10168 * emacs.c:
10169 * fileio.c:
10170 * floatfns.c:
10171 * keyboard.c:
10172 * mem-limits.h:
10173 * print.c:
10174 * process.c:
10175 * sysdep.c:
10176 * syssignal.h:
10177 * systty.h:
10178 * syswait.h:
10179 * term.c:
10180 * unexec.c:
10181 * unexelf.c:
10182 * unexhp9k800.c:
10183 * m/hp800.h:
10184 * m/ibmrs6000.h:
10185 * m/mips.h:
10186 * m/vax.h:
10187 * s/darwin.h:
10188 * s/freebsd.h:
10189 * s/gnu.h:
10190 * s/ms-w32.h:
10191 * s/msdos.h:
10192 * s/netbsd.h:
10193 * s/template.h: Remove references to obsolete variables.
10194
10195 * Makefile.in: Add dependencies for all unexec files.
10196 (admindir): Remove unused variable.
10197 (UNEXEC_SRC): Remove references.
10198
101992008-06-25 Chong Yidong <cyd@stupidchicken.com>
10200
10201 * xfns.c (x_default_font_parameter): If Xft is available, first
10202 try Monospace-12 for the default font.
10203
102042008-06-25 Jason Rumney <jasonr@gnu.org>
10205
10206 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10207
102082008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10209
10210 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10211
10212 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10213
102142008-06-25 Juanma Barranquero <lekktu@gmail.com>
10215
10216 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10217 <scroll-conservatively>: Fix typo in docstring.
10218
10219 * xselect.c (Fx_send_client_event): Doc fix.
10220
102212008-06-25 Kenichi Handa <handa@m17n.org>
10222
10223 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10224
10225 * font.c (font_parse_fcname): Remove unused variables.
10226 (font_sort_entites): Delete the arg SPEC. Caller changed.
10227 Fix for the case of ! best_only.
10228 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10229
10230 * lisp.h (Fstring_to_unibyte): EXFUN it.
10231
10232 * character.h (str_to_unibyte): Extern it.
10233
10234 * character.c (str_to_unibyte): New function.
10235
10236 * fns.c (Fstring_to_unibyte): New function.
10237 (syms_of_fns): Defsubr it.
10238
102392008-06-24 Kenichi Handa <handa@m17n.org>
10240
10241 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10242 DPI too.
10243 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10244
102452008-06-24 Andreas Schwab <schwab@suse.de>
10246
10247 * Makefile.in (${lispsource}loaddefs.el): Rename from
10248 ../lisp/loaddefs.el.
10249 (bootstrap-clean): Do what distclean does but don't remove
10250 Makefile.
10251 (distclean): Depend on bootstrap-clean and remove Makefile.
10252
102532008-06-24 Chong Yidong <cyd@stupidchicken.com>
10254
10255 * buffer.h (struct buffer): New member word_wrap.
10256
10257 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10258 word-wrap.
10259 (init_buffer_once): Initialize them.
10260
10261 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10262 line_wrap enum possessing three possible values.
10263
10264 * termopts.h: Replace truncate_partial_width_windows with
10265 Vtruncate_partial_width_windows.
10266
10267 * dispnew.c (direct_output_for_insert): Avoid direct output when
10268 inserting a space with word wrap on.
10269
10270 * indent.c (compute_motion): Obey integer values of
10271 truncate-partial-width-windows.
10272
10273 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10274 replacing truncate_partial_width_windows.
10275 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10276 truncate only if the window width is below that integer.
10277 (start_display, resize_mini_window, produce_stretch_glyph)
10278 (display_string, move_it_in_display_line_to): Use line_wrap.
10279 (back_to_previous_visible_line_start, reseat_1): Reset
10280 string_from_display_prop_p.
10281 (display_line): Extend default face to end of line when wrapping.
10282
102832008-06-24 Kim F. Storm <storm@cua.dk>
10284
10285 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10286 to wrap continued lines at word boundaries.
10287
102882008-06-24 Jason Rumney <jasonr@gnu.org>
10289
10290 * font.c (Ffont_face_attributes): Multiply pixel size before point
10291 conversion to avoid multiplying rounding error.
10292
102932008-06-23 Jason Rumney <jasonr@gnu.org>
10294
10295 * w32term.c (x_draw_glyph_string_background)
10296 (x_draw_glyph_string): Remove old bdf font code.
10297
10298 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10299
103002008-06-22 Kenichi Handa <handa@m17n.org>
10301
10302 * font.c (font_find_for_lface): Try the adstyle specified in
10303 the property of LFACE_FONT of LFACE (if any).
10304
103052008-06-21 Seiji Zenitani <zenitani@mac.com>
10306 Ryo Yoshitake <ryo@shiftmode.net>
10307
10308 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10309
103102008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10311
10312 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10313 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10314 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10315 (witness-emacs): Remove.
10316 (lisp, shortlisp): Move loaddefs.el earlier.
10317 (mostlyclean): Forget about witness-emacs.
10318
103192008-06-22 Glenn Morris <rgm@gnu.org>
10320
10321 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10322 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10323
103242008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10325
10326 * Makefile.in (PRECOMP): Remove.
10327 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10328 (witness-emacs): Run `compile-first'.
10329 (.el.elc): Use the new compile-onefile target.
10330
103312008-06-21 Kenichi Handa <handa@m17n.org>
10332
10333 * xftfont.c (xftfont_open): Handle QCembolden only when
10334 FC_EMBOLDEN is defined.
10335
103362008-06-21 Andreas Schwab <schwab@suse.de>
10337
10338 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10339 (.el.elc): Likewise.
10340
103412008-06-21 Miles Bader <miles@gnu.org>
10342
10343 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10344 build dir, not the lisp source dir.
10345
103462008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10347
10348 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10349 (bootstrapclean): Remove.
10350 (.el.elc): New rule.
10351 (PRECOMP): New var.
10352 (../lisp/subdirs.el): Remove.
10353 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10354 (witness-emacs): New target.
10355 (mostlyclean): Remove witness-emacs as well.
10356 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10357 Add witness-emacs dependency.
10358
103592008-06-20 Chong Yidong <cyd@stupidchicken.com>
10360
10361 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10362 defined by the font.
10363
103642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10365
10366 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10367 (bootstrap-clean): New target that keeps TAGS around.
10368 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10369 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10370
103712008-06-20 Jason Rumney <jasonr@gnu.org>
10372
10373 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10374 Remove obsolete font code.
10375
10376 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10377 to determine language support.
10378
103792008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10380
10381 * sysdep.c (cfsetspeed): New fun extracted from the code.
10382 (cfmakeraw): Move before first use.
10383
103842008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10385
10386 * sysdep.c (cfmakeraw): Provide fallback implementation.
10387 (serial_configure): Provide fallback implementation of cfsetspeed.
10388
103892008-06-20 Kenichi Handa <handa@m17n.org>
10390
10391 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10392 the pattern.
10393
10394 * fontset.c (fontset_from_font): Copy font_spec before changing
10395 the elements.
10396
10397 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10398
103992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10400
10401 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10402 for explicit `font' parameters.
10403
10404 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10405
104062008-06-19 Kenichi Handa <handa@m17n.org>
10407
10408 * frame.c: Include <ctype.h>.
10409 (x_set_font_backend): Allow spacing characters in the X resource
10410 for FontBackend.
10411
104122008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * w32fns.c, xfns.c (Qfont_param): New var.
10415 (syms_of_w32fns): Initialize it.
10416 (x_default_font_parameter): Record explicit `font' into
10417 `font-parameter'.
10418
104192008-06-18 Kenichi Handa <handa@m17n.org>
10420
10421 * font.c (font_parse_xlfd): Fix previous change.
10422 (font_parse_fcname): Don't use :fc-unknown-spec.
10423 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10424 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10425 (font_add_log): Prepend the driver name to the resulting fonts.
10426
10427 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10428 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10429 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10430
10431 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10432 (QCembolden): New variables.
10433 (syms_of_xftfont): DEFSYM them.
10434 (xftfont_open): Call XftFontMatch. Don't trust the result of
10435 XftTextExtents8 if the pixel_size is less than 5.
10436
104372008-06-18 Andreas Schwab <schwab@suse.de>
10438
10439 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10440 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10441
104422008-06-18 Jason Rumney <jasonr@gnu.org>
10443
10444 * w32font.c (w32font_list, w32font_match): Add logging.
10445
10446 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10447
104482008-06-17 Chong Yidong <cyd@stupidchicken.com>
10449
10450 * font.c (font_parse_fcname): Store divider characters for
10451 unknown-spec list. For known key symbols, intern using correct
10452 symbol name.
10453
104542008-06-17 Kenichi Handa <handa@m17n.org>
10455
10456 * xfaces.c (realize_default_face): If the frame is not on window
10457 system, set the fontset of face to nil.
10458
104592008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10460
10461 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10462
104632008-06-16 Juanma Barranquero <lekktu@gmail.com>
10464
10465 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10466 (build_font_name_from_vector): Delete externs.
10467
10468 * xfaces.c (struct font_name): Don't declare.
10469
104702008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10471
10472 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10473
104742008-06-16 Chong Yidong <cyd@stupidchicken.com>
10475
10476 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10477
104782008-06-16 Juanma Barranquero <lekktu@gmail.com>
10479
10480 * font.c (Ffont_spec): Fix usage in docstring.
10481 (Ffont_face_attributes): Doc fix.
10482
104832008-06-16 Andreas Schwab <schwab@suse.de>
10484
10485 * font.c (Ffont_face_attributes): Fix definition.
10486
104872008-06-16 Jason Rumney <jasonr@gnu.org>
10488
10489 * font.h (font_style_symbolic_from_value): Remove.
10490
10491 * font.c (font_style_symbolic_from_value): Remove.
10492 (font_style_symbolic): Revert to pre 2008-06-13 version.
10493
10494 * w32font.c (w32_to_fc_weight): New function.
10495 (w32font_full_name, logfont_to_fcname): Use it.
10496
104972008-06-16 Kenichi Handa <handa@m17n.org>
10498
10499 * font.c (font_check_object): Delete it.
10500 (font_clear_cache): Check if a font-object is alive.
10501 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10502 font-object to nil.
10503 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10504 (font_at): Don't call font_check_object.
10505 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10506
105072008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10508
10509 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10510
105112008-06-16 Chong Yidong <cyd@stupidchicken.com>
10512
10513 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10514
105152008-06-15 Chong Yidong <cyd@stupidchicken.com>
10516
10517 * font.c (font_parse_fcname): Only one decimal point.
10518 (font_unparse_fcname): Handle data in family and foundry indices
10519 as symbols, not strings.
10520 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10521
10522 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10523
10524 * font.h (font_unparse_gtkname): Add prototype.
10525
105262008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10527
10528 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10529
105302008-06-15 Andreas Schwab <schwab@suse.de>
10531
10532 * font.c (font_update_drivers): Fix crash when no drivers match.
10533
105342008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10535
10536 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10537 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10538
105392008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10540
10541 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10542
105432008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10544
10545 * process.c (Fserial_process_configure, Fprocess_send_eof):
10546 Use EQ to compare Lisp_Objects.
10547
105482008-06-13 Jason Rumney <jasonr@gnu.org>
10549
10550 * w32fns.c (Fw32_select_font): Remove old font API function.
10551
10552 * w32font.c (logfont_to_fcname): New function.
10553 (Fx_select_font): New font dialog function compatible with
10554 GTK/fontconfig version.
10555
10556 * font.c (font_style_symbolic_from_value): New function.
10557 (font_style_symbolic): Use it.
10558
10559 * font.h (font_style_symbolic_from_value): Declare new function.
10560
105612008-06-13 Juanma Barranquero <lekktu@gmail.com>
10562
10563 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10564 <font-width-table>: Fix typos in docstrings.
10565
105662008-06-13 Daniel Engeler <engeler@gmail.com>
10567
10568 These changes add serial port access.
10569 * process.c: Add HAVE_SERIAL.
10570 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10571 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10572 (list_processes_1, select_wrapper, Fstop_process)
10573 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10574 (status_notify): Modify to handle serial processes.
10575 [HAVE_SERIAL] (Fserial_process_configure)
10576 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10577 New functions.
10578 * process.h (struct Lisp_Process): Add `type'.
10579 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10580 New functions.
10581 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10582 serial ports.
b71ac3dd 10583 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10584 * w32.h: Add FILE_SERIAL.
10585 (struct _child_process): Add ovl_read, ovl_write.
10586
105872008-06-13 Kenichi Handa <handa@m17n.org>
10588
10589 * dispextern.h (enum lface_attribute_index): New member
10590 LFACE_FOUNDRY_INDEX.
10591
10592 * font.c (font_score): Delete arg alternate_families. Check only
10593 weight, slant, width, and size. Ignore the difference of alias
10594 style symbols.
10595 (font_sort_entites): Adjust for the above change. Reflect the
10596 order of font-driver to scores.
10597 (font_list_entities): Don't check alternate_familes here.
10598 (font_clear_prop): Handle foundry.
10599 (font_update_lface): Don't parse "foundry-family" form here.
10600 Handle FONT_FOUNDRY_INDEX.
10601 (font_find_for_lface): Likewise. Handle alternate families here.
10602 If registry is nil, try iso8859-1 and ascii-0.
10603 (font_open_for_lface): Pay attention to size in ENTITY.
10604 (font_open_by_name): Simplify by calling font_load_for_lface.
10605 (free_font_driver_list): Delete it.
10606 (font_update_drivers): Preserve the order of backends.
10607 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10608 of font_score and font_sort_entites.
10609 (font_update_sort_order): Likewise.
10610
10611 * xfaces.c (LFACE_FOUNDRY): New macro.
10612 (check_lface_attrs): Check foundry.
10613 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10614 (merge_face_vectors): Check foundry.
10615 (merge_face_ref): Likewise.
10616 (Finternal_set_lisp_face_attribute): Likewise.
10617 (x_update_menu_appearance): Likewise.
10618 (Finternal_get_lisp_face_attribute): Likewise.
10619 (lface_hash): Likewise.
10620 (lface_same_font_attributes_p): Likewise.
10621 (x_supports_face_attributes_p): Likewise.
10622 (tty_supports_face_attributes_p): Likewise.
10623 (Finternal_set_alternative_font_family_alist): Intern strings.
10624 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10625 (realize_default_face): Set LFACE_FOUNDRY (lface).
10626
10627 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10628 font-driver at first.
10629
10630 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10631
106322008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10633
10634 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10635
106362008-06-12 Jim Meyering <meyering@redhat.com>
10637
10638 Make unexec_free handle NULL the same way free does.
10639 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10640
106412008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10642
10643 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10644 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10645 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10646 (WEAK_ALIAS): Simplify.
10647 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10648 when searching a unibyte buffer.
10649
106502008-06-12 Chong Yidong <cyd@stupidchicken.com>
10651
10652 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10653
106542008-06-12 Juanma Barranquero <lekktu@gmail.com>
10655
10656 * w32font.c: Include ctype.h.
10657
106582008-06-11 Jason Rumney <jasonr@gnu.org>
10659
10660 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10661 misreported as space.
10662 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10663 as aliases for registry iso10646-1.
10664
106652008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10666
10667 * buffer.c (clone_per_buffer_values): Skip `name'.
10668
106692008-06-11 Chong Yidong <cyd@stupidchicken.com>
10670
10671 * font.c (font_parse_fcname): Fix last change; accept decimal
10672 points in font size.
10673
106742008-06-10 Jason Rumney <jasonr@gnu.org>
10675
10676 * w32uniscribe.c (add_opentype_font_name_to_list):
10677 Skip non unicode fonts.
10678
106792008-06-10 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * xfns.c (Fx_font_dialog): New function.
10682
10683 * gtkutil.c (xg_dialog_response_cb): Rename from
10684 xg_file_response_callback.
10685 (pop_down_dialog): Rename from pop_down_file_dialog.
10686 (xg_get_file_name): Callers changed.
10687 (xg_get_font_name): New function.
10688
10689 * gtkutil.h (xg_get_font_name): Insert prototype.
10690
106912008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10692
10693 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10694 x_underline_minimum_display_offset.
10695 (syms_of_xdisp): Declare it here rather than in xterm.c.
10696 * dispextern.h (underline_minimum_offset): Declare it.
10697 * w32term.c (x_draw_glyph_string): Use it.
10698 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10699 (syms_of_xterm): Don't declare it any more.
10700 (x_draw_glyph_string): Adjust to the new name.
10701
8719abec 107022008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10703
10704 * xterm.c (x_underline_minimum_display_offset): New var.
10705 (x_draw_glyph_string): Use it.
10706 (syms_of_xterm): Declare it.
10707
107082008-06-10 Chong Yidong <cyd@stupidchicken.com>
10709
10710 * font.c (font_parse_fcname): Accept GTK-style font names too.
10711
107122008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * dired.c (file_name_completion): Don't return t if the match is exact
10715 but with different capitalization.
10716 * minibuf.c (Ftry_completion): Simplify.
10717
10718 * window.c (Vwindow_point_insertion_type): New var.
10719 (set_window_buffer): Use it.
10720 (syms_of_window): Init and export it to Lisp.
10721
107222008-06-10 Kenichi Handa <handa@m17n.org>
10723
10724 * font.h (font_intern_prop): Prototype adjusted.
10725
10726 * font.c (font_intern_prop): New arg force_symbol.
10727 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10728 Adjust for the change of font_intern_prop.
10729
10730 * ftfont.c (ftfont_pattern_entity):
10731 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10732 (w32_registry):
10733 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10734 the change of font_intern_prop.
10735
107362008-06-09 Juanma Barranquero <lekktu@gmail.com>
10737
10738 * w32menu.c (digest_single_submenu): Declare extern.
10739
107402008-06-09 Jason Rumney <jasonr@gnu.org>
10741
10742 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10743
10744 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10745 (parse_single_submenu): Remove.
10746 (digest_single_submenu): Remove.
10747 (syms_of_w32menu): Don't initialise variables that have moved
10748 to menu.c.
10749 (set_frame_menubar): Sync with version in xmenu.c.
10750 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10751
10752 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10753 Make static again.
10754
107552008-06-09 Jason Rumney <jasonr@gnu.org>
10756
10757 Changes to w32 files related to the move of common menu code
10758 to menu.c on 2008-06-08 by Chong Yidong.
10759
10760 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10761 defs to w32gui.h.
10762 (single_keymap_panes, push_menu_item, push_menu_pane):
10763 Make globally visible.
10764
10765 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10766 (local_free, malloc_widget_value, free_widget_value)
10767 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10768 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10769 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10770 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10771 (menu_items, menu_items_allocated, menu_items_used)
10772 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10773 (init_menu_items, finish_menu_items, discard_menu_items)
10774 (grow_menu_items, push_submenu_start, push_submenu_end)
10775 (push_left_right_boundary, push_menu_pane, push_menu_item)
10776 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10777 (free_menubar_widget_tree_value, parse_single_submenu)
10778 (update_submenu_strings): Remove functions.
10779 (xmalloc_widget_value): Remove and declare extern.
10780
10781 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10782 (OBJ1): Build it.
10783
10784 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10785 (local_heap, local_alloc, local_free, malloc_widget_value)
10786 (free_widget_value): Define here.
10787
107882008-06-09 Kenichi Handa <handa@m17n.org>
10789
10790 * font.h (Qascii_0): Extern it.
10791
10792 * font.c (Qascii_0): New variable.
10793 (syms_of_font): DEFSYM it.
10794 (font_open_by_name): If the registry "iso8859-1" fails, try also
10795 "ascii-0".
10796
10797 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10798
107992008-06-08 Kenichi Handa <handa@m17n.org>
10800
10801 * .gdbinit (xfont): New command.
10802
108032008-06-08 Andreas Schwab <schwab@suse.de>
10804
10805 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10806 * Makefile.in (menu.o): Update dependencies.
10807
10808 * Makefile.in (obj): Always add menu.o.
10809 * emacs.c (main): Always call syms_of_menu.
10810 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10811
108122008-06-08 Chong Yidong <cyd@stupidchicken.com>
10813
10814 * Makefile.in: Compile menu.c.
10815
10816 * lisp.h: Declare syms_of_menu.
10817
10818 * emacs.c (main): Call syms_of_menu.
10819
10820 * keyboard.h: Relocate platform-independent menu definitions from
10821 xmenu.c.
10822
10823 * menu.c: New file. Relocate platform-independent menu
10824 definitions from xmenu.c. Suggested by Adrian Robert.
10825
10826 * xmenu.c: Remove platform-independent menu definitions.
10827 (menu_items menu_items_inuse, menu_items_allocated)
10828 (menu_items_used, menu_items_n_panes)
10829 (menu_items_submenu_depth): Move to keyboard.h.
10830 (init_menu_items, finish_menu_items, unuse_menu_items)
10831 (discard_menu_items, restore_menu_items, save_menu_items)
10832 (grow_menu_items, push_submenu_start, push_submenu_end)
10833 (push_left_right_boundary, push_menu_pane, push_menu_item)
10834 (keymap_panes, single_keymap_panes, single_menu_item)
10835 (list_of_panes, list_of_items, find_and_call_menu_selection)
10836 (xmalloc_widget_value, free_menubar_widget_value_tree)
10837 (parse_single_submenu, digest_single_submenu)
10838 (update_submenu_strings): Move to menu.c.
10839
108402008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10841
10842 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10843
108442008-06-06 Miles Bader <miles@gnu.org>
10845
10846 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10847 face, not frame default.
10848
108492008-06-05 Martin Rudalics <rudalics@gmx.at>
10850
10851 * window.c (pop_up_windows, pop_up_frames)
10852 (display_buffer_reuse_frames, Vpop_up_frame_function)
10853 (Vdisplay_buffer_function, Veven_window_heights)
10854 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10855 (Vspecial_display_function, Vsame_window_buffer_names)
10856 (Vsame_window_regexps, split_height_threshold)
10857 (Vsplit_window_preferred_function): Move those vars to window.el.
10858 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10859 (Fdisplay_buffer): Move those functions to window.el.
10860 (syms_of_window): Remove corresponding declarations.
10861 (display_buffer): New function.
10862 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10863 * dispnew.c (Flast_nonminibuf_frame): New function.
10864 * buffer.c (Fpop_to_buffer): Move to window.el.
10865
108662008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10867
10868 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10869
108702008-06-05 Kenichi Handa <handa@m17n.org>
10871
10872 * coding.c (detect_coding): Fix previous change.
10873 (detect_coding_system): Likewise.
10874
108752008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10876
10877 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10878
10879 * keymap.c (Vminibuffer_local_filename_must_match_map):
10880 Rename from Vminibuffer_local_must_match_filename_map.
10881 (syms_of_keymap):
10882 * minibuf.c (Fcompleting_read): Adjust accordingly.
10883 * commands.h: Rename declaration as well.
10884
108852008-06-05 Kenichi Handa <handa@m17n.org>
10886
10887 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10888 family name.
10889 (Ffont_put): Likewise.
10890
10891 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10892 current font-spec.
10893
10894 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10895 is unspecified.
10896
10897 * xfaces.c (realize_x_face): If the font-related face attributes
10898 are the same as those of default face, realize a new fontset from
10899 default->fontset.
10900 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10901
109022008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10903
10904 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10905 (move_it_in_display_line): New wrapper.
10906
10907 * window.c (window_scroll_pixel_based_preserve_x)
10908 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10909 (window_scroll_pixel_based, window_scroll_line_based):
10910 Use them to preserve column positions.
10911 (syms_of_window): Initialize them.
10912
10913 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10914 (HPOS . VPOS) pair.
10915
10916 * dispextern.h (move_it_in_display_line): Declare.
10917
109182008-06-05 Juanma Barranquero <lekktu@gmail.com>
10919
10920 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10921 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10922 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10923
109242008-06-04 Juanma Barranquero <lekktu@gmail.com>
10925
10926 * window.c (Fset_window_parameter): Doc fix.
10927 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10928
109292008-06-04 Joakim Verona <joakim@verona.se>
10930
10931 * window.h (struct window): Add new member window_parameters.
10932
10933 * window.c (Fwindow_parameters, Fwindow_parameter)
10934 (Fset_window_parameter): New defuns.
10935 (syms_of_window): Defsubr the new defuns.
10936 (make_window): Initialize window_parameters to nil.
10937
109382008-06-04 John Paul Wallington <jpw@pobox.com>
10939
10940 * eval.c (Fdefmacro): Doc fix.
10941
109422008-06-04 Kenichi Handa <handa@m17n.org>
10943
10944 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10945 Be sure to call setup_coding_system when we find a proper coding system.
10946 (detect_coding_system): Fix handling of coding->head_ascii.
10947
109482008-06-03 Andreas Schwab <schwab@suse.de>
10949
10950 * font.c (font_prop_validate_spacing): Fix last change.
10951
109522008-06-03 Kenichi Handa <handa@m17n.org>
10953
10954 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10955 (font_parse_fcname): Fix handling of unknown key.
10956
10957 * xfont.c (xfont_list): Try an alias.
10958
10959 * charset.c (char_charset): Return NULL if the arg charset_list is
10960 specified and C doesn't belong to any of them.
10961
109622008-06-02 Chip Coldwell <coldwell@redhat.com>
10963
10964 * font.c (font_pixel_size): Don't take cdr of an integer.
10965
109662008-06-02 Jim Meyering <meyering@redhat.com>
10967
10968 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10969 * alloc.c (xfree): Return right away for a NULL arg.
10970 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10971 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10972 * mac.c (create_apple_event_from_event_ref): Likewise.
10973 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10974 Likewise.
10975 * doprnt.c (doprnt1): Likewise.
10976 * frame.c (frame): Likewise.
10977 * keyboard.c (wipe_kboard): Likewise.
10978 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10979 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10980 * term.c (tty_default_color_capabilities, maybe_fatal)
10981 (delete_tty): Likewise.
10982 * w16select.c (string): Likewise.
10983 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10984 * w32bdf.c (w32_free_bdf_font): Likewise.
10985 * w32fns.c (w32_unload_font): Likewise.
10986 * w32font.c (w32font_close): Likewise.
10987 * window.c (size_window): Likewise.
10988 * xselect.c (receive_incremental_selection): Likewise.
10989 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10990 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10991 * w32.c (stat): Likewise.
10992
10993 Remove useless if-before-free tests.
10994 * editfns.c (Fset_time_zone_rule): Likewise.
10995 * lread.c (nosuffix): Likewise.
10996 * ralloc.c (get_bloc): Likewise.
10997 * regex.c (reg_free): Likewise.
10998 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10999 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11000 * xsmfns.c (smc_save_yourself_CB): Likewise.
11001
110022008-06-02 Kenichi Handa <handa@m17n.org>
11003
11004 * font.c (font_find_for_lface): Handle float font size.
11005 (font_open_for_lface): Likewise.
11006
11007 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11008 comparing the properties.
11009
110102008-06-01 Jason Rumney <jasonr@gnu.org>
11011
11012 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11013 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11014 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11015 Don't add empty script list.
11016 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11017
110182008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11019
11020 * Makefile.in (dot, dotdot): Remove, update users.
11021 ".." has been used elsewhere in the file for a long time.
11022 (LIBXT_STATIC): Remove conditional based on unused variable.
11023
110242008-06-01 Miles Bader <miles@gnu.org>
11025
11026 * xfaces.c (Vface_remapping_alist): New variable.
11027 (syms_of_xfaces): Initialize it.
11028 (enum named_merge_point_kind): New type.
11029 (struct named_merge_point): Add `named_merge_point_kind' field.
11030 (push_named_merge_point): Make cycle detection respect different
11031 named-merge-point kinds.
11032 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11033 Remove face-name alias resolution.
11034 (lface_from_face_name): New definition using
11035 `lface_from_face_name_no_resolve'.
11036 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11037 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11038 (get_lface_attributes): New definition that layers face-remapping on
11039 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11040 (lookup_basic_face): New function.
11041 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11042 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11043 `get_lface_attributes'.
11044 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11045 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11046 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11047
11048 * xdisp.c (init_iterator): Pass base_face_id through
11049 `lookup_basic_face' when we actually use it as a face-id.
11050 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11051 DEFAULT_FACE_ID.
11052
11053 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11054 lookup the initial face-id.
11055
11056 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11057
110582008-06-01 Juanma Barranquero <lekktu@gmail.com>
11059
11060 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11061 (Fremove_text_properties): Fix typos in docstrings.
11062
110632008-05-31 Kenichi Handa <handa@m17n.org>
11064
11065 * font.c (font_list_entities): Fix the car part of data to be
11066 stored in the cache.
11067
11068 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11069
110702008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11071
11072 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11073 Add a `test' argument so another predicate than `equal' can be used.
11074 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11075 (map_char_table): Remove unused vars `c' and `i'.
11076 * lisp.h (Foptimize_char_table): Adjust declaration.
11077 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11078
110792008-05-30 Kenichi Handa <handa@m17n.org>
11080
11081 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11082 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11083 defined.
11084
110852008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11086
11087 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11088 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11089 frame-local settings for the same variable.
11090
110912008-05-30 Kenichi Handa <handa@m17n.org>
11092
11093 * fontset.c (Ffont_info): Move to font.c.
11094 (syms_of_fontset): Delete defsubr of Sfont_info.
11095
11096 * font.c (font_style_to_value, font_score): Delete casting of the
11097 args to xstcasecmp.
11098 (register_font_driver): Increment num_font_drivers only when
11099 registering the driver globally.
11100 (Ffont_info): Move from fontset.c. Handle a font object too.
11101 (syms_of_font): Defsubr Sfont_info.
11102
111032008-05-29 Kenichi Handa <handa@m17n.org>
11104
11105 * coding.h (enum define_coding_utf8_arg_index): New enum.
11106 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11107 coding_attr_utf_bom.
11108 (enum utf_bom_type): Rename from utf_16_bom_type.
11109 (struct utf_16_spec): Adjust for the above change.
11110 (struct coding_system): Add utf_8_bom in `spec' union.
11111
11112 * coding.c (CODING_UTF_8_BOM): New macro.
11113 (enum coding_category): Delete coding_category_utf_8, add
11114 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11115 coding_category_utf_8_sig.
11116 (CATEGORY_MASK_UTF_8): Delete it.
11117 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11118 (CATEGORY_MASK_UTF_8_SIG): New macros.
11119 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11120 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11121 CATEGORY_MASK_UTF_8_SIG.
11122 (CATEGORY_MASK_UTF_8): New macro.
11123 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11124 (detect_coding_utf_8): Check BOM.
11125 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11126 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11127 (encode_coding_utf_16): Likewise.
11128 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11129 (detect_coding, detect_coding_system): Handle utf-8-auto.
11130 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11131 (syms_of_coding): Fix setting up of Vcoding_category_table.
11132
111332008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11134
11135 * process.c (Faccept_process_output): If `millisec' is non-nil,
11136 `seconds' default to 0.
11137 (wait_reading_process_output): Also return non-nil if we read output
11138 from a non-running process.
11139
111402008-05-29 Jason Rumney <jasonr@gnu.org>
11141
11142 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11143 `raster' specified.
11144 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11145 in the uniscribe backend, but disallow any font that has no
11146 unicode subrange support.
11147
111482008-05-29 Juanma Barranquero <lekktu@gmail.com>
11149
11150 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11151 Fix typos in docstrings.
11152
111532008-05-29 Kenichi Handa <handa@m17n.org>
11154
11155 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11156 (Fx_family_fonts): Set frame correctly.
11157
111582008-05-28 Jason Rumney <jasonr@gnu.org>
11159
11160 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11161
111622008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11163
11164 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11165 calling build_annotations.
11166
111672008-05-28 Juanma Barranquero <lekktu@gmail.com>
11168
11169 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11170 (Fencode_coding_string):
11171 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11172 <latin-extra-code-table>: Fix typos in docstrings.
11173 (syms_of_coding) <coding-system-alist>: Doc fix.
11174 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11175
111762008-05-28 Kenichi Handa <handa@m17n.org>
11177
11178 * fontset.c (Ffont_info): Don't call font_close_object.
11179
11180 * font.c (font_parse_family_registry): Use Ffont_put to validate
11181 foundry and family.
11182 (font_delete_unmatched): Don't check spacing.
11183 (font_list_entities): Add spacing to the spec to list fonts.
11184
11185 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11186 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11187
11188 * coding.c (encode_coding_raw_text): Fix previous change.
11189 (encode_coding_object): When the dst_object is a buffer and is
11190 different from src_object, move gap to PT.
11191
111922008-05-27 Chong Yidong <cyd@stupidchicken.com>
11193
11194 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11195
111962008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11197
11198 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11199 all branches. Compute it differently.
11200
11201 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11202
112032008-05-27 Juanma Barranquero <lekktu@gmail.com>
11204
11205 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11206 into "else if () ... else ...".
11207
112082008-05-27 Jason Rumney <jasonr@gnu.org>
11209
11210 * w32font.c (w32font_open_internal): Determine if glyph indices
11211 are likely to work here.
11212
112132008-05-27 Chong Yidong <cyd@stupidchicken.com>
11214
11215 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11216 draw overlap glyphs with appropriate highlighting.
11217
112182008-05-27 Kenichi Handa <handa@m17n.org>
11219
11220 * xfont.c (xfont_open): Fix calculation of font->average_width.
11221
112222008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11223
11224 * casefiddle.c (casify_object): Try to guess better whether the
11225 argument is a byte or a char.
11226
112272008-05-26 Andreas Schwab <schwab@suse.de>
11228
11229 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11230 Always send multiples of format size.
11231
11232 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11233
112342008-05-26 Jason Rumney <jasonr@gnu.org>
11235
11236 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11237 (compute_metrics): Don't set failure if we just cleared the cache.
11238 (w32_weight_table): Remove unused variable.
11239 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11240 backwards compatibility.
11241
112422008-05-25 Kenichi Handa <handa@m17n.org>
11243
11244 * w32term.c (x_draw_glyph_string):
11245 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11246
11247 * xfaces.c: Delete unused function prototypes.
11248 (xstrlwr, font_frame): Delete them.
11249 (clear_face_cache): Delete unused variable.
11250
11251 * xftfont.c (xftfont_open): Delete unused variable.
11252 If underline_thickness is not 1, adjust underline_position.
11253
11254 * ftxfont.c (ftxfont_open): Delete unused variable.
11255
11256 * fontset.c (face_for_char): Optimize for the case of no charset
11257 property.
11258
11259 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11260 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11261 (otf_open, font_otf_capability, generate_otf_features)
11262 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11263 Comment out by surrounding "#if 0" and "#endif" for the moment.
11264 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11265 (syms_of_font): Codes for accessing above commented out.
11266
112672008-05-24 Eli Zaretskii <eliz@gnu.org>
11268
11269 * w32proc.c: Include dispextern.h.
11270
11271 * w32.c: Include dispextern.h.
11272
112732008-05-23 Juanma Barranquero <lekktu@gmail.com>
11274
11275 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11276 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11277 Fix typos in docstrings.
11278
112792008-05-23 Jason Rumney <jasonr@gnu.org>
11280
11281 * xsmfns.c: Remove includes that are already included by config.h.
11282
112832008-05-23 Kenichi Handa <handa@m17n.org>
11284
11285 * charset.c (Qemacs, charset_emacs): New variables.
11286 (char_charset): Fix for non-Unicode characters.
11287 (syms_of_charset): Define charset_emacs.
11288
11289 * w32term.c (x_draw_glyph_string): Be sure to update
11290 s->underline_thickness and s->underline_position. Be sure to draw
11291 underline within the current line area.
11292
11293 * xterm.c (x_draw_glyph_string): Be sure to update
11294 s->underline_thickness and s->underline_position. Be sure to draw
11295 underline within the current line area.
11296
11297 * fontset.c: Delete unused variables and add casting for char *
11298 throughout the file.
11299 (fontset_font): Try the fallback fonts of the current fontset
11300 before consulting the default fontset.
11301
11302 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11303
11304 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11305
113062008-05-22 Jason Rumney <jasonr@gnu.org>
11307
11308 * font.c: Don't include strings.h.
11309
11310 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11311
11312 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11313 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11314 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11315 to call xstrcasecmp.
11316
11317 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11318
11319 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11320
11321 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11322
11323 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11324
113252008-05-22 Kenichi Handa <handa@m17n.org>
11326
11327 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11328
11329 * font.c (font_prop_validate_style): Adjust for the format
11330 change of font_style_table.
11331
11332 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11333 two args.
11334
11335 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11336 two args.
11337
113382008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11339
11340 * minibuf.c (keys_of_minibuf): Delete.
11341 * lisp.h (keys_of_minibuf): Delete.
11342 * emacs.c (main): Don't call keys_of_minibuf.
11343
113442008-05-22 Kenichi Handa <handa@m17n.org>
11345
11346 * ftfont.c (ftfont_resolve_generic_family): Rename from
11347 ftfont_list_generic_family. Return a single family for each
11348 generic family.
11349 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11350 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11351 Call font_add_log.
11352 (ftfont_match): Call font_add_log.
11353
11354 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11355 (FONT_DEBUG): Define it.
11356 (font_add_log): Extern it.
11357 (font_assert): Rename from xassert.
11358
11359 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11360 (xfont_list_family): Call font_add_log.
11361 (xfont_match): Likewise.
11362 (memq_no_quit): Delete.
11363
11364 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11365 call of Ffont_xlfd_name.
11366
11367 * xfaces.c (struct table_entry, slant_table, weight_table)
11368 (swidth_table): Move to font.c.
11369
11370 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11371 xassert are changed to font_assert. Delete many unused variables.
11372 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11373 New variables.
11374 (struct table_entry): Move from xfaces.c and modified.
11375 (weight_table, slant_table, width_table): Move from xfaces.c and
11376 contents adjusted for the change of struct table_entry.
11377 (font_style_to_value, font_style_symbolic): Adjust for the
11378 format change of font_style_table.
11379 (font_parse_family_registry): Don't overwrite existing foundry and
11380 family of font_spec.
11381 (font_score): Fix calculation of diff for sizes.
11382 (font_sort_entites): Call font_add_log.
11383 (font_delete_unmatched): Return a newly created list.
11384 (font_list_entities): Fix previous change. Call font_add_log.
11385 (font_matching_entity, font_open_entity, font_close_entity):
11386 Call font_add_log.
11387 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11388 (Finternal_set_font_style_table): Delete.
11389 (BUILD_STYLE_TABLE): New macro.
11390 (build_style_table): New function.
11391 (Vfont_log, font_log_env_checked): New variables.
11392 (font_add_log): New function.
11393 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11394 Declare Lisp variables "font-weight-table", "font-slant-table",
11395 "font-width-table", and "font-log". Initialize font_style_table.
11396
113972008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11398
11399 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11400
114012008-05-21 Seiji Zenitani <zenitani@mac.com>
11402 Ryo Yoshitake <ryo@shiftmode.net>
11403
11404 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11405 (Vframe_alpha_lower_limit): New variable.
11406 (x_set_alpha): New function.
11407
11408 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11409
11410 * xfns.c (x-create-frame, Qalpha):
11411 Initialize the frame parameter `alpha'.
11412 * xterm.c (OPAQUE, OPACITY): New.
11413 (x_set_frame_alpha): New function.
11414 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11415
11416 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11417 * w32fns.c (w32_frame_parm_handlers): Likewise.
11418
114192008-05-20 Jason Rumney <jasonr@gnu.org>
11420
11421 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11422 truetype fonts to opentype list.
11423
114242008-05-20 Juanma Barranquero <lekktu@gmail.com>
11425
11426 * fontset.c (Ffontset_info): Doc fix.
11427 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11428 <ignore-relative-composition>: Fix typos in docstrings.
11429
11430 * font.c (syms-of-font) <font-encoding-alist>:
11431 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11432 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11433 (Ffont_otf_alternates): Doc fixes.
11434
114352008-05-20 Kenichi Handa <handa@m17n.org>
11436
11437 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11438 font.h through out the file.
11439 (FONT_DRIVERS): Rename from FONTOBJ.
11440 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11441 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11442
11443 * emacs.c (main): Call syms_of_font unconditionally.
11444
11445 * font.h (find_font_encoding): Extern it.
11446
11447 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11448 fontset.c.
194d44e7 11449 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11450 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11451 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11452 only when HAVE_WINDOW_SYSTEM is defined.
11453 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11454 when HAVE_WINDOW_SYSTEM is defined.
11455
11456 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11457 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11458
11459 * xfaces.c: Include font.h unconditionally.
11460 (merge_face_ref, merge_face_vectors)
11461 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11462
114632008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11464
11465 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11466 indirect_variable.
11467 * eval.c (lisp_indirect_variable): New fun.
11468 (Fuser_variable_p): Use it.
11469
114702008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11471
11472 * lisp.h (indirect_variable):
11473 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11474 Use Lisp_Symbol pointers rather than Lisp_Object.
11475 Adjust callers.
11476 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11477 To this end, change calling-convention.
11478
11479 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11480 if some non-hidden buffers are selected by string&pred.
11481
114822008-05-19 Chong Yidong <cyd@stupidchicken.com>
11483
11484 * process.c (wait_reading_process_output): Always check status
11485 when in batch mode.
11486
114872008-05-19 Kenichi Handa <handa@m17n.org>
11488
11489 * font.c (font_list_entities): Fix handling of cache.
11490 (font_matching_entity): Likewise.
11491
11492 * ftfont.c (cs_iso8859_1): Delete.
11493 (ft_face_cache): New variable.
11494 (struct ftfont_info): New member fc_charset_idx.
11495 (ftfont_build_basic_charsets): Delete.
11496 (fc_charset_table): New variable.
11497 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11498 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11499 Callers changed.
11500 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11501 (ftfont_spec_pattern): New argument fc_charset_idx.
11502 Check registry more rigidly. Change callers.
11503 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11504 change of :font-entity property of the font.
11505
11506 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11507 property of the font.
11508
115092008-05-18 Juanma Barranquero <lekktu@gmail.com>
11510
11511 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11512 (Funencodable_char_position, Fcheck_coding_systems_region)
11513 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11514 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11515 (Ffind_operation_coding_system, Fset_coding_system_priority)
11516 (Fcoding_system_eol_type): Doc fixes.
11517
115182008-05-17 Glenn Morris <rgm@gnu.org>
11519
11520 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11521
115222008-05-16 Eli Zaretskii <eliz@gnu.org>
11523
11524 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11525 and st_gid.
11526
11527 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11528 HAVE_WINDOW_SYSTEM is not defined.
11529
11530 * xfaces.c (merge_face_ref, merge_face_vectors)
11531 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11532 HAVE_WINDOW_SYSTEM is defined.
11533 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11534
115352008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11536
11537 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11538
115392008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11540
11541 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11542
115432008-05-15 Kenichi Handa <handa@m17n.org>
11544
11545 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11546 preference.
11547
115482008-05-15 Glenn Morris <rgm@gnu.org>
11549
11550 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11551
115522008-05-15 Chong Yidong <cyd@stupidchicken.com>
11553
11554 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11555 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11556
11557 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11558
115592008-05-15 Kenichi Handa <handa@m17n.org>
11560
11561 * ftfont.c (ftfont_list): Downcase family name to check generic
11562 families.
11563
11564 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11565 font-spec for QCfont value.
11566
11567 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11568 buffer. Check the return value of it.
11569
115702008-05-14 Jason Rumney <jasonr@gnu.org>
11571
11572 * w32term.c (w32_get_glyph_overhangs): Remove.
11573 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11574
115752008-05-14 Kenichi Handa <handa@m17n.org>
11576
11577 * font.c (font_prop_validate): Make nil a valid value.
11578 (font_clear_cache): Check if the cached vector of entities is nil
11579 or not.
11580
115812008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11582
11583 * emacs.c (main_thread): Conditionalize on
11584 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11585 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11586
11587 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11588 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11589 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11590
115912008-05-14 Kenichi Handa <handa@m17n.org>
11592
11593 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11594 has no corresponding coding system.
11595
115962008-05-14 Jason Rumney <jasonr@gnu.org>
11597
11598 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11599
11600 * w32font.h (w32font_open_internal): Update declaration.
11601
11602 * w32font.c (w32font_open_internal): Change last argument from
11603 w32font_info struct to font object. Fill in font object from
11604 font_entity. Get Outline metrics if possible. Use them to
11605 calculate underline position and thickness. Use xlfd name as name
11606 property. Don't set codepage.
11607 (w32font_open): Pass font_object to w32font_open_internal. Don't
11608 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11609 (w32font_draw): Use s->font.
11610 (clear_cached_metrics): Don't clear non-existent blocks.
11611
11612 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11613 font was not found.
11614 (x_draw_glyph_string): Use underline position and thickness from font.
11615
11616 * w32uniscribe.c (uniscribe_open): Pass font_object to
11617 w32font_open_internal.
11618
116192008-05-14 Kenichi Handa <handa@m17n.org>
11620
11621 These changes are to delete all legacy font-handling codes, and
11622 make Emacs use only font-backends.
11623
11624 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11625 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11626
11627 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11628
11629 * charset.h (Vcharset_non_preferred_head)
11630 (Vcurrent_iso639_language): Extern them.
11631
11632 * charset.c (Vcharset_non_preferred_head): New variable.
11633 (Vcurrent_iso639_language): New variable.
11634 (syms_of_charset): Declare it as a Lisp variable.
11635 (char_charset): Don't check non preferred charsets. As a last
11636 resort, return charset_unicode.
11637 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11638
11639 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11640 conditionals. Don't check enable_font_backend. Delete all codes
11641 used only when USE_FONT_BACKEND is not defined.
11642
11643 * dispextern.h (struct glyph_string): Change type of `font' to
11644 `struct font *'.
11645 (struct glyph_string): New member underline_position and
11646 underline_thickness.
11647 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11648 (struct face): Change type of `font' to `struct font *'. Remove
11649 members `font_name', `font_info_id'.
11650 (per_char_metric, encode_char): Delete externs.
11651 (calc_pixel_width_or_height): Adjust the prototype.
11652
11653 * emacs.c (enable_font_backend): Delete extern.
11654 (main): Don't set enable_font_backend. Don't check the command
11655 line argument "-disable-font-backend".
11656
11657 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11658 (enum font_property_index): New members FONT_DPI_INDEX,
11659 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11660 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11661 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11662 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11663 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11664 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11665 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11666 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11667 (struct font_spec, struct font_entity): New structs.
11668 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11669 (struct font): Many members from old "struct font_info" moved to
11670 here. Members font and entity deleted.
11671 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11672 the new font-related objects.
11673 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11674 (CHECK_FONT_GET_OBJECT): Likewise.
11675 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11676 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11677 (struct font_driver): New members case_sensitive anc check. Type
11678 of the member list and open changed.
11679 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11680 (font_symbolic_width, font_find_object, font_get_spec)
11681 (font_set_lface_from_name): Delete extern.
11682 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11683
11684 * font.c: Include <strings.h>.
11685 (enable_font_backend): Delete it.
11686 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11687 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11688 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11689 (null_string): Delete it.
11690 (null_vector): Make it static.
11691 (font_family_alist): Delete it.
11692 (Qnormal): Extern it.
11693 (QCextra, QClanguage): Delete it.
11694 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11695 (font_make_spec, font_make_entity, font_make_object)
11696 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11697 the string. Callers changed.
11698 (font_pixel_size): Adjusted for the format change of font-related
11699 objects.
11700 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11701 (font_style_to_value, font_style_symbolic): New function.
11702 (build_font_family_alist): Delete it.
11703 (font_registry_charsets): Use Fassoc_string instead of
11704 assq_no_quit.
11705 (font_prop_validate_symbol): Don't return null_string.
11706 (font_prop_validate_style): Adjusted for the change of
11707 style-related values in a font vector.
11708 (font_property_table): Delete entries for QClanguage and
11709 QCantialias, add entries for QCavgwidth.
11710 (get_font_prop_index): Delete the 2nd argument FROM.
11711 (font_prop_validate): Arguments changed.
11712 (font_put_extra): Adjusted for the change of font-related objects.
11713 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11714 (font_parse_fcname, font_unparse_fcname)
11715 (font_prepare_composition): Likewise.
11716 (font_parse_family_registry): Renamed from font_merge_old_spec.
11717 (otf_open): Delete the 1st arg entity.
11718 (font_otf_capability): Adjusted for the above change.
11719 (font_score): New arg alternate_families. Adjusted for the change
11720 of font-related objects.
11721 (font_sort_entites): New arg best_only.
11722 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11723 Delete them.
11724 (font_match_p): Check alternate families.
11725 (font_find_object): Delete it.
11726 (font_check_object): New function.
11727 (font_clear_cache): Adjusted for the change of font-related objects.
11728 (font_delete_unmatched): New arg.
11729 (font_list_entities): Call font_driver->list with a spec that
11730 doesn't specify style-related properties.
11731 (font_matching_entity): Arguments changed. Caller changed.
11732 (font_open_entity): Adjusted for the change of font-related objects.
11733 (font_close_object, font_has_char, font_encode_char)
11734 (font_get_name, font_get_spec): Likewise.
11735 (font_spec_from_name, font_clear_prop, font_update_lface):
11736 New functions.
11737 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11738 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11739 (font_at): Adjusted for the change of font-related objects.
11740 (font_range): New function.
11741 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11742 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11743 (Fcopy_font_spec, Fmerge_font_spec): New function.
11744 (Ffont_family_list): Renamed from list-families.
11745 (Finternal_set_font_style_table): Arguments changed.
11746 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11747 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11748 change of font-related objects.
11749 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11750
11751 * fontset.h (struct font_info): Delete it. Most members go to
11752 struct font.
11753 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11754 (enum FONT_SPEC_INDEX): Delete it.
11755 (font_info, list_fonts_func, load_font_func, query_font_func)
11756 (set_frame_fontset_func, find_ccl_program_func)
11757 (get_font_repertory_func, new_fontset_from_font_name): Delete
11758 externs.
11759 (fontset_from_font_name): Extern it.
11760 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11761 (FONT_INFO_FROM_FACE): Deleted.
11762 (face_for_font): Adjust prototype.
11763
11764 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11765 conditionals. Don't check enable_font_backend. Delete all codes
11766 used only when USE_FONT_BACKEND is not defined.
11767 (get_font_info_func, list_font_func, load_font_func)
11768 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11769 (get_font_repertory_func): Delete them.
11770 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11771 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11772 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11773 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11774 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11775 (fontset_compare_rfontdef): New function.
11776 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11777 rfont-defs by qsort. Adjusted for the change of font-group vector.
11778 (load_font_get_repertory): Deleted.
11779 (fontset_find_font): Use new macros to ref/set elements of
11780 font-def and rfont-def.
11781 (fontset_font): Fix the timing of remembering that no font for C.
11782 (free_face_fontset): Do nothing if the face has no fontset.
11783 (face_suitable_for_char_p): Use new macros to ref/set elements of
11784 rfont-def.
11785 (face_for_char): Likewise. Call face_for_char with font_object.
11786 (fs_load_font): Delete. Delete #pragma surrounding it.
11787 (fs_query_fontset): Use strcasecmp instead of strcmp.
11788 (generate_ascii_font_name): Adjusted for the format change of
11789 font-spec.
11790 (Fset_fontset_font): Likewise. Use new macros to set elements of
11791 font-def.
11792 (Fnew_fontset): Use font_unparse_xlfd to generate
11793 FONTSET_ASCII (fontset).
11794 (new_fontset_from_font_name): Deleted.
11795 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11796 a fontset is already created for the font. FIx updating of
11797 Vfontset_alias_alist.
11798 (fontset_ascii_font): Deleted.
11799 (Ffont_info): Adjusted for the format change of font-spec.
11800 (Finternal_char_font): Likewise.
11801 (Ffontset_info): Likewise.
11802 (syms_of_fontset): Don't check load_font_func.
11803
11804 * fns.c (internal_equal): Handle PREV_FONT.
11805
11806 * frame.h: Delete USE_FONT_BACKEND conditional.
11807
11808 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11809 conditionals. Don't check enable_font_backend. Delete all codes
11810 used only when USE_FONT_BACKEND is not defined.
11811 (x_set_font): Call x_new_font, not x_new_fontset2.
11812 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11813 already set for the frame.
11814
11815 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11816 a font-entity by font_make_entity. Use font_intern_prop instead
11817 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11818 font property. If a font is scalable, set avgwidth property to 0.
11819 Set font-entity property by font_put_extra.
11820 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11821 (ffont_driver): Adjusted for the change of struct font_driver.
11822 (ftfont_spec_pattern): New function.
11823 (ftfont_list): Return a list, not vector.
11824 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11825 (ftfont_list_family): Don't downcase names.
11826 (ftfont_free_entity): Deleted.
11827 (ftfont_open): Return a font-object. Adjusted for the change of
11828 struct font. Get underline_thickness and underline_position from
11829 font property. Don't update dpyinfo->smallest_font_height and
11830 dpyinfo->smallest_char_width.
11831 (ftfont_close): Don't free `struct font'.
11832 (ftfont_has_char): Adjusted for the format change of font-entity.
11833 (ftfont_encode_char, ftfont_text_extents): Likewise.
11834
11835 * ftxfont.c (ftxfont_list): Return a list, not vector.
11836 (ftxfont_open): Return a font-object. Adjusted for the change of
11837 struct font. Get underline_thickness and underline_position from
11838 font property. Don't update dpyinfo->smallest_font_height and
11839 dpyinfo->smallest_char_width.
11840 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11841 (ftxfont_draw): Adjusted for the change of struct font.
11842
11843 * image.c (image_ascent): Don't include "charset.h". Include
11844 "character.h" and "font.h".
11845
11846 * lisp.h (enum pvec_type): New member PREV_FONT.
11847 (Fassoc_string): EXFUN it.
11848
11849 * print.c: Include font.h.
11850 (print_object): Handle font-related objects.
11851
11852 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11853 conditionals. Don't check enable_font_backend. Delete all codes
11854 used only when USE_FONT_BACKEND is not defined.
11855 (handle_auto_composed_prop): Do nothing if it->f is not on a
11856 window system. Check how many following characters can be
11857 displayed by the same font.
11858 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11859 'struct font *'.
11860 (get_char_face_and_encoding): Assign the whole encoding task to
11861 the `encode-char' method of a font driver.
11862 (fill_composite_glyph_string): Adjusted for the change of `struct
11863 face' and `struct glyph_string'.
11864 (fill_glyph_string): Likewise.
11865 (get_per_char_metric): Arguments changed.
11866 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11867 and `struct glyph_string'.
11868 (produce_stretch_glyph, calc_line_height_property)
11869 (x_produce_glyphs): Likewise.
11870
11871 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11872 conditionals. Don't check enable_font_backend. Delete all codes
11873 used only when USE_FONT_BACKEND is not defined. Use
11874 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11875 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11876 (Qp): Extern them.
11877 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11878 Deleted.
11879 (struct font_name): Deleted.
11880 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11881 (compare_fonts_by_sort_order): New function.
11882 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11883 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11884 Deleted.
11885 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11886 compare_fonts_by_sort_order.
11887 (Fx_font_family_list): Call Ffont_family_list.
11888 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11889 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11890 (face_symbolic_slant, face_symbolic_swidth)
11891 (split_font_name_into_vector, build_font_name_from_vector)
11892 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11893 (font_rescale_ratio, split_font_name, build_font_name)
11894 (free_font_names, sort_fonts, x_face_list_fonts)
11895 (face_font_available_p, sorted_font_list, cmp_font_names)
11896 (font_list_1, concat_font_list, font_list, remove_duplicates):
11897 Deleted.
11898 (Fx_list_fonts): Use Ffont_list.
11899 (LFACE_AVGWIDTH): Deleted.
11900 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11901 by FONTP.
11902 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11903 (set_lface_from_font_name): Delete it.
11904 (set_lface_from_font): Renamed from
11905 set_lface_from_font_and_fontset. Caller changed. Don't set
11906 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11907 for face.
11908 (merge_face_vectors): Copy font-spec if necessary.
11909 Clear properties of the font-spec if necessary.
11910 (merge_face_ref): Clear properties of the font-spec if necessary.
11911 (Finternal_set_lisp_face_attribute): Likewise.
11912 (set_font_frame_param): Use font_load_for_lface to load a
11913 font-object, and call Fmodify_frame_parameters with it.
11914 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11915 font name by Ffont_xlfd_name.
11916 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11917 QCslant, and QCwidth.
11918 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11919 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11920 Compare fonts by EQ.
11921 (lookup_non_ascii_face): Deleted.
11922 (face_for_font): The 2nd argument changed.
11923 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11924 Check atomic font properties by case insensitive.
11925 (realize_non_ascii_face): Set face->overstrike correctly.
11926 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11927 (dump_realized_face): Get font name from
11928 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11929
11930 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11931 conditionals. Don't check enable_font_backend. Delete all codes
11932 used only when USE_FONT_BACKEND is not defined.
11933 (xic_create_xfontset): Original code deleted and renamed from
11934 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11935 (x_make_gc): Don't set GCFont in GCs.
11936 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11937 opened by "fixed".
11938 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11939 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11940 get_font_repertory_func.
11941
11942 * xfont.c: Include <stdlib.h> and "ccl.h".
11943 (struct xfont_info): New structure.
11944 (xfont_query_font): Deleted.
11945 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11946 moved from xterm.c.
11947 (xfont_driver): Adjusted for the change of struct font_driver.
11948 (compare_font_names): New function.
11949 (xfont_list_pattern): Sort font names case insensitively. Make
11950 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11951 (xfont_list): Return a list, not vector.
11952 (xfont_match): If the font doesn't have QCname property, generate
11953 a name from the other font properties.
11954 (xfont_open): Return a font-object. Adjusted for the change of
11955 struct font. Get underline_thickness and underline_position from
11956 font property. Don't update dpyinfo->smallest_font_height and
11957 dpyinfo->smallest_char_width.
11958 (xfont_close): Don't free struct font.
11959 (xfont_prepare_face): Adjusted for the change of struct font.
11960 (xfont_done_face): Deleted.
11961 (xfont_has_char): Adjusted for the change of struct font.
11962 (xfont_encode_char, xfont_draw): Likewise.
11963 (xfont_check): New function.
11964
11965 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11966 callback function.
11967 (xftfont_match): Adjusted for the format change of font-entity.
11968 (xftfont_open): Adjusted for the format change of font-entity and
11969 font-object. Adjusted for the change of struct font. Return a
11970 font-object. Don't update dpyinfo->smallest_font_height and
11971 dpyinfo->smallest_char_width.
11972 (xftfont_close): Block input while calling XftFontClose.
11973 (xftfont_prepare_face): Don't block input while calling
11974 xftfont_get_colors. Adjusted for the change of struct font.
11975 (xftfont_shape): Return value of error case fixed.
11976
11977 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11978
11979 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11980 conditionals.
11981 (FONT_WIDTH): Return (f)->max_width.
11982 (struct x_display_info): Delete member `font'.
11983 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11984 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11985 (struct x_output): Change type of `font' to `struct font *'.
11986
11987 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11988 conditionals. Don't check enable_font_backend. Delete all codes
11989 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11990 (x_per_char_metric, x_encode_char): Deleted.
11991 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11992 (x_compute_glyph_string_overhangs): Adjusted for the change of
11993 `struct face'.
11994 (x_draw_glyph_string_foreground)
11995 (x_draw_composite_glyph_string_foreground): Likewise.
11996 (x_draw_glyph_string): Likewise. Use font->underline_position and
11997 font->underline_thickness.
11998 (x_new_font): Renamed from x_new_fontset2.
11999 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12000 (x_check_font): Call `check' method of a font driver.
12001 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12002 (x_query_font, x_get_font_repertory): Deleted.
12003 (x_find_ccl_program): Renamed and moved to xfont.c.
12004 (x_redisplay_interface): Adjusted for the change of `struct
12005 redisplay_interface'.
12006
12007 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12008 conditionals. Don't check enable_font_backend. Delete all codes
12009 used only when USE_FONT_BACKEND is not defined. Surround non-used
12010 code by "#ifdef OLD_FONT" and "endif".
12011 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12012
12013 * w32font.h (struct w32font_info): New member.
12014 (FONT_COMPAT): New macro.
12015 (w32font_open_internal): Prototype adjusted.
12016
12017 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12018 OLD_FONT" and "endif".
12019
12020 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12021 conditionals. Don't check enable_font_backend. Delete all codes
12022 used only when USE_FONT_BACKEND is not defined.
12023 (w32font_open): Return a font-object. Make a font-object by
12024 font_make_object. Adjusted for the change of struct w32font_info.
12025 (w32font_close): Don't free struct font. Adjusted for the change
12026 of struct w32font_info.
12027 (w32font_encode_char, w32font_text_extents, w32font_draw):
12028 Adjusted for the change of struct w32font_info.
12029 (w32font_draw): Likewise.
12030 (w32font_list_internal): Return a list, not vector.
12031 (w32font_open_internal): Change the 4th arg to font-object.
12032 Adjusted for the change of struct w32font_info and font-object format.
12033 (add_font_name_to_list): Don't downcase names.
12034 (w32_enumfont_pattern_entity): Make a font-entity by
12035 font_make_entity. Adjusted for the format change of font-entity.
12036 Use FONT_SET_STYLE to set a style-related font property. If a
12037 font is scalable, set avgwidth property to 0. Set font-entity
12038 property by font_put_extra.
12039 (font_matches_spec): Adjusted for the format change of font-entity.
12040 (w32_weight_table, w32_decode_weight): New variables.
12041 (w32_encode_weight): New function.
12042 (fill_in_logfont): Adjusted for the format change of font-spec.
12043 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12044 weight value.
12045 (w32font_driver): Adjusted for the change of struct font_driver.
12046
12047 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12048 conditionals. Don't check enable_font_backend. Surround non-used
12049 code by "#ifdef OLD_FONT" and "endif".
12050 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12051 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12052
12053 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12054 conditionals. Don't check enable_font_backend. Delete all codes
12055 used only when USE_FONT_BACKEND is not defined. Surround non-used
12056 code by "#ifdef OLD_FONT" and "endif".
12057
12058 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12059 (uniscribe_open): Return value changed to font-object.
12060 Adjusted for the format change of font-object.
12061 (uniscribe_otf_capability): Adjusted for the change of struct font.
12062 (add_opentype_font_name_to_list): Don't downcase names.
12063 (uniscribe_font_driver): Adjusted for the change of struct
12064 font_driver.
12065
120662008-05-13 Chong Yidong <cyd@stupidchicken.com>
12067
12068 * dispnew.c (update_frame_1): Check if tty output is still valid
12069 before flushing it.
12070
120712008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12072
12073 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12074 to Gtk+ menus.
12075
120762008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12077
12078 * dired.c (file_name_completion): Tweak the code so as to always do it
12079 in a single pass. Tighten the scope of some variables.
12080
12081 * dired.c (Qdefault_directory): New var.
12082 (file_name_completion): Use it instead of Fexpand_file_name.
12083 (syms_of_dired): Initialize it.
12084
120852008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12086
12087 * fileio.c (double_dollars): Remove dead code.
12088
120892008-05-10 Eli Zaretskii <eliz@gnu.org>
12090
12091 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12092 Mention w32-get-true-file-attributes in doc string.
12093
12094 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12095
120962008-05-09 Glenn Morris <rgm@gnu.org>
12097
12098 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12099 2008-04-23.
12100
121012008-05-09 Eli Zaretskii <eliz@gnu.org>
12102
12103 Support for reporting owner and group of each file on MS-Windows:
12104 * dired.c (stat_uname, stat_gname): New functions, with special
12105 implementation for w32.
12106 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12107
12108 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12109 (dflt_group_name): New static variable.
12110 (dflt_group): Rename from the_group.
12111 (init_user_info): Init dflt_group fields. Get user's group name
12112 from LookupAccountSid.
12113 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12114 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12115 New initialization states.
12116 (globals_of_w32): Initialize them to zero. Initialize the default
12117 group name to "None".
12118 (GetFileSecurity_Name): New global var, the name of the function
12119 to call for GetFileSecurity.
12120 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12121 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12122 (get_file_security, get_security_descriptor_owner)
12123 (get_security_descriptor_group, is_valid_sid)
12124 (get_file_security_desc, get_rid, get_name_and_id)
12125 (get_file_owner_and_group): New functions.
12126 (stat): Use get_file_security_desc and get_file_owner_and_group to
12127 report the owner and primary group of each file. Don't ignore the
12128 high 32 bits of file's size, now that st_size is 64-bit wide.
12129 Fix test when to get true file attributes.
12130 (init_user_info): Use get_rid instead of equivalent inline code.
12131 (fstat): Don't ignore the high 32 bits of file's size.
12132
121332008-05-09 Chong Yidong <cyd@stupidchicken.com>
12134
12135 * image.c (png_load): Use correct bit-depth for setting background
12136 color.
12137
121382008-05-08 Eli Zaretskii <eliz@gnu.org>
12139
12140 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12141 epa-hook.elc.
12142
121432008-05-08 Juanma Barranquero <lekktu@gmail.com>
12144
12145 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12146
121472008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12148
12149 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12150 because the original parameters are in pure storage now.
12151 (mac_window): Remove unused params. Update callers.
12152
121532008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12154
12155 * lread.c (substitute_object_recurse): Use lower-level primitives.
12156 Don't signal errors when traversing sub-char-tables.
12157 Don't loop over all the possible characters when traversing char-tables.
12158
12159 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12160 just like we do in print.c.
12161
121622008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12163
12164 * minibuf.c (Ftry_completion): Remove code left over from when we used
12165 scmp instead of Fcompare_strings.
12166
121672008-05-04 Juanma Barranquero <lekktu@gmail.com>
12168
12169 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12170
121712008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12172
12173 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12174 Create bitmap context in native byte order.
12175
12176 * macterm.c (XDrawLine)
12177 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12178 context in native byte order.
12179
121802008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12181
12182 * config.in: Regenerate.
12183
12184 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12185 New definitions for Image I/O support.
12186 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12187 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12188 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12189 (mac_data_provider_release_data, image_load_image_io)
12190 [USE_MAC_IMAGE_IO]: New functions.
12191 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12192 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12193 (init_image_func_pointer) [MAC_OSX]: Remove function.
12194 (image_load_quartz2d) [MAC_OSX]: Check availability of
12195 CGImageCreateWithPNGDataProvider at compile time.
12196 Use lowercase `false' for boolean constant.
12197 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12198 Use image_load_image_io.
12199 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12200 Don't check MyCGImageCreateWithPNGDataProvider.
12201 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12202 Don't call init_image_func_pointer.
12203
12204 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12205
12206 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12207 Make variable non-static.
12208 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12209 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12210
12211 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12212 (RED_FROM_ULONG): Mask off higher bits.
12213 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12214
12215 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12216 Include AvailabilityMacros.h.
12217 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12218 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12219
122202008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12221
12222 * chartab.c (Fset_char_table_range): If range is t, really set all
12223 chars to that value.
12224
122252008-05-03 Eli Zaretskii <eliz@gnu.org>
12226
12227 * dired.c (Ffile_attributes): Don't allow the device number become
12228 negative.
12229
122302008-05-02 Daiki Ueno <ueno@unixuser.org>
12231
12232 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12233
122342008-05-02 Juri Linkov <juri@jurta.org>
12235
12236 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12237 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12238 DEFAULT argument as a list of default values in docstrings.
12239
122402008-05-01 Chong Yidong <cyd@stupidchicken.com>
12241
12242 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12243
122442008-05-01 Martin Rudalics <rudalics@gmx.at>
12245
12246 * dispnew.c (change_frame_size_1): Preserve small windows when
12247 shrinking frames by calling set_window_height|width with third
12248 arg 2.
12249
12250 * window.h (struct window): Replace field too_small_ok by field
12251 resize_proportionally.
12252
12253 * window.c (make_window): Initialize resize_proportionally.
12254 (enlarge_window): Temporarily set resize_proportionally to make
12255 sure that shrink_windows does scale the window proportionally.
12256 (shrink_windows): When window has resize_proportionally set try
12257 to shrink it proportionally by stealing from other windows.
12258 (struct saved_window, Fset_window_configuration)
12259 (compare_window_configurations): Handle resize_proportionally.
12260 (WINDOW_TOTAL_SIZE): New macro.
12261 (window_min_size, shrink_windows, size_window): Use it.
12262 (check_min_window_sizes): Remove. Invalid values of
12263 window-min-height|width are handled by window_min_size_2 now.
12264 (size_window, Fsplit_window, enlarge_window)
12265 (adjust_window_trailing_edge, grow_mini_window): Don't call
12266 check_min_window_sizes.
12267 (window_min_size_2, window_min_size_1, window_min_size):
12268 New argument safe_p for retrieving "safe" minimum sizes.
12269 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12270 (adjust_window_trailing_edge, grow_mini_window):
12271 Adjust arguments of window_min_size... functions.
12272 (shrink_windows): Argument min_size removed. New argument
12273 safe_p allows shrinking windows to their safe minimum sizes.
12274 Calculate minimum size and decide whether a window shall be
12275 deleted for each window individually.
12276 (size_window): When nodelete_p equals 2, tell shrink_windows to
12277 delete windows only if their new minimum size is no more safe.
12278 (shrink_window_lowest_first): Call window_min_size_1 to make
12279 sure to preserve modeline of bottom-most window when resizing
12280 the minibuffer.
12281 (Fset_window_configuration, Fcurrent_window_configuration)
12282 (compare_window_configurations): Do not handle
12283 window-min-height|width any more.
12284 (syms_of_window): Clarify window-min-height|width doc-strings.
12285
122862008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12287
12288 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12289 some more. Copy some of the code from Ftry_completions.
12290 Remove special case code that dates back to initial revision when the
12291 slash was only added when necessary and that can't trigger nowadays.
12292
122932008-04-27 Kenichi Handa <handa@m17n.org>
12294
12295 * font.c (font_prop_validate): Signal `error' instead of `font'.
12296
122972008-04-29 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32fns.c (Fw32_battery_status): New defun.
12300 (syms_of_w32fns): Defsubr it.
12301
123022008-04-28 Andreas Schwab <schwab@suse.de>
12303
12304 * dired.c (file_name_completion): Fix another mixing of encoded
12305 and decoded names.
12306
123072008-04-28 Juanma Barranquero <lekktu@gmail.com>
12308
12309 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12310
123112008-04-27 Juanma Barranquero <lekktu@gmail.com>
12312
12313 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12314
123152008-04-27 Andreas Schwab <schwab@suse.de>
12316
12317 * dired.c (file_name_completion): Fix inappropriate mixing of
12318 encoded and decoded names.
12319
12320 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12321
12322 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12323
123242008-04-26 Eli Zaretskii <eliz@gnu.org>
12325
12326 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12327 2008-03-31, it's not needed anymore with `struct stat' definition
12328 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12329 for the same reasons.
12330
123312008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12332
12333 * m/sparc.h: Additional redefinitions for GNU/Linux.
12334
123352008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12336
12337 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12338 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12339 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12340 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12341 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12342 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12343 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12344 Likewise.
12345
12346 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12347 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12348 (mac_ax_number_of_characters): Add externs.
12349 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12350 [USE_MAC_TSM]: Likewise.
12351 (mac_handle_text_input_event) [MAC_OSX]:
12352 Handle kEventTextInputOffsetToPos for no active input area case.
12353 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12354 (mac_handle_document_access_event)
12355 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12356 (install_application_handler) [MAC_OSX]: Register handlers for
12357 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12358 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12359 Register mac_handle_document_access_event.
12360
12361 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12362 Make functions non-static.
12363
123642008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12365
12366 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12367 (read_file_name_completion_ignore_case, insert_default_directory)
12368 (Qdefault_directory): Move to minibuffer.el.
12369 (Fread_file_name): Call the new `read-file-name' instead.
12370
123712008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12372
12373 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12374 Make function non-static.
12375 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12376 Remove function.
12377 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12378 Move to mactoolbox.c.
12379 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12380
12381 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12382 (mac_rect_make): New macro.
12383
12384 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12385 instead of float.
12386 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12387 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12388 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12389 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12390 CGRectMake.
12391 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12392 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12393 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12394 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12395 instead of WindowRef in argument type.
12396 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12397 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12398 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12399 instead of DISPLAY. All uses changed.
12400 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12401 (x_calc_absolute_position): Simplify so as not to use
12402 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12403
12404 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12405 instead of WindowRef in argument type.
12406 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12407 [TARGET_API_MAC_CARBON]: Remove externs.
12408 (create_apple_event, mac_event_parameters_to_lisp)
12409 [TARGET_API_MAC_CARBON]: Add externs.
12410
12411 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12412 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12413 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12414 is clicked.
12415 (x_activate_menubar): Remove extern for saved_menu_event_location.
12416 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12417 Move from mac.c.
12418
124192008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12420
12421 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12422 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12423
124242008-04-23 Jason Rumney <jasonr@gnu.org>
12425
12426 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12427 attributes only for local files.
12428
12429 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12430 default to Qlocal.
12431
124322008-04-22 Juri Linkov <juri@jurta.org>
12433
12434 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12435 read-buffer-to-switch instead of using the letter "B".
12436
124372008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12438
12439 * fileio.c (Qdefault_directory): New variable.
12440 (Fread_file_name): Use it to pass `dir' to the completion functions.
12441
124422008-04-20 Chong Yidong <cyd@stupidchicken.com>
12443
12444 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12445
124462008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12447
12448 * keyboard.c (Vpre_help_message): Remove.
12449 (show_help_echo): Remove default C code.
12450
12451 * dired.c (directory_files_internal, file_name_completion):
12452 Only call ENCODE_FILE if the string is indeed decoded.
12453
124542008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12455
12456 * Makefile.in (TOOLKIT_DEFINES): Remove.
12457 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12458
124592008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12460
12461 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12462 (mactoolbox.o): New target.
12463
12464 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12465 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12466
12467 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12468 Use mac_set_frame_window_background instead of XSetWindowBackground.
12469 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12470 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12471 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12472 instead of SetWindowTitleWithCFString.
12473 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12474 Move function to mactoolbox.c.
12475 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12476 Use mac_set_window_modified instead of SetWindowModified.
12477 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12478 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12479 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12480 FrontNonFloatingWindow. Use mac_activate_window instead of
12481 ActivateWindow. Use mac_active_non_floating_window instead of
12482 ActiveNonFloatingWindow.
12483 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12484 Use mac_show_hourglass and mac_hide_hourglass.
12485 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12486 instead of GetGlobalMouse.
12487 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12488 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12489 Use mac_bring_window_to_front instead of BringToFront.
12490 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12491 mactoolbox.c.
12492 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12493 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12494 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12495 mactoolbox.c.
12496
12497 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12498 (XtPointer): Move typedef from macmenu.c.
12499 (enum button_type): Move enum from macmenu.c.
12500 (widget_value): Move typedef from macmenu.c.
12501 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
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 from macmenu.c.
12509 (Selection): Move typedef from macselect.c.
12510 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12511 macterm.c.
12512 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12513 (mac_is_window_collapsed, mac_bring_window_to_front)
12514 (mac_send_window_behind, mac_hide_window, mac_show_window)
12515 (mac_collapse_window, mac_front_non_floating_window)
12516 (mac_active_non_floating_window, mac_activate_window)
12517 (mac_move_window_structure, mac_move_window, mac_size_window)
12518 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12519
12520 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12521 (enum mac_menu_kind): Move enum to mactoolbox.c.
12522 (min_menu_id): Move variable to mactoolbox.c.
12523 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12524 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12525 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12526 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12527 [TARGET_API_MAC_CARBON]: Likewise.
12528 (XtPointer): Move typedef to macgui.h.
12529 (enum button_type): Move enum to macgui.h.
12530 (widget_value): Move typedef to macgui.h.
12531 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12532 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12533 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12534 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12535 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12536 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12537 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12538 (popup_activated_flag): Make variable non-static.
12539 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12540 (add_menu_item, fill_menu, dispose_menus):
12541 Move functions to mactoolbox.c.
12542 (restore_show_help_function, menu_target_item_handler)
12543 (install_menu_target_item_handler, mac_handle_dialog_event)
12544 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12545 [TARGET_API_MAC_CARBON]: Likewise.
12546 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12547 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12548 (find_and_call_menu_selection, name_is_separator): Make function
12549 non-static.
12550 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12551 to mactoolbox.c.
12552 (set_frame_menubar): Don't call install_menu_quit_handler.
12553 (menu_item_selection): New variable.
12554 (mac_menu_show): Use create_and_show_popup_menu.
12555 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12556 selection but set variable menu_item_selection. All uses changed.
12557 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12558 Call install_menu_quit_handler. Move to mactoolbox.c.
12559
12560 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12561 (Selection): Move typedef to macgui.h.
12562 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12563 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12564 Make variables non-static.
12565 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12566 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12567 Make functions non-static.
12568 (Vmac_service_selection) [MAC_OSX]: Likewise.
12569 (mac_get_selection_from_symbol, get_flavor_type_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)
12574 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12575 Move functions to mactoolbox.c.
12576 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12577 Likewise.
12578 (copy_scrap_flavor_data, mac_handle_service_event)
12579 (install_service_handler) [MAC_OSX]: Likewise.
12580 (syms_of_macselect) <Vmac_dnd_known_types>:
12581 Use mac_dnd_default_known_types.
12582
12583 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12584 Move to mactoolbox.c.
12585 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12586 (Fx_selection_owner_p): Add EXFUN.
12587 (install_window_handler, remove_window_handler, XSetWindowBackground):
12588 Remove externs.
12589 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12590 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12591 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12592 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12593 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12594 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12595 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12596 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12597 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12598 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12599 (mac_valid_selection_target_p, mac_clear_selection)
12600 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12601 (mac_put_selection_value, mac_selection_has_target_p)
12602 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12603 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12604 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12605 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12606 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12607 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12608 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12609 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12610 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12611
12612 * mactoolbox.c: New file.
12613
126142008-04-18 Jason Rumney <jasonr@gnu.org>
12615
12616 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12617
126182008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12619
12620 * character.c (Fmultibyte_char_to_unibyte):
12621 Return latin1 chars unchanged.
12622
12623 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12624 relocated if it points to `name'.
12625
126262008-04-17 Kenichi Handa <handa@m17n.org>
12627
12628 * data.c (Faset): Allow setting a multibyte character in an
12629 ASCII-only unibyte string.
12630
12631 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12632
126332008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12634
12635 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12636 done in config.h.
12637
126382008-04-16 Juanma Barranquero <lekktu@gmail.com>
12639
12640 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12641 (Fchar_direction): Add usage in the docstring.
12642
126432008-04-15 Chong Yidong <cyd@stupidchicken.com>
12644
12645 * keyboard.c (read_key_sequence): Remove always-true checks.
12646
126472008-04-14 Jason Rumney <jasonr@gnu.org>
12648
12649 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12650 compatibility struct, for better underline positioning.
12651
126522008-04-13 David Hansen <david.hansen@gmx.net>
12653
12654 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12655 string.
12656
126572008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12658
12659 * m/hp800.h (XUINT, XSET): Remove.
12660
126612008-04-12 Juanma Barranquero <lekktu@gmail.com>
12662
12663 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12664 previous change.
12665
126662008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12667
12668 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12669 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12670
126712008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * keymap.h (map_keymap_canonical): Declare.
12674 * xmenu.c (single_keymap_panes): Use it.
12675
126762008-04-11 Glenn Morris <rgm@gnu.org>
12677
12678 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12679 set the target's value to that of the alias.
12680
126812008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12682
12683 * term.c (set_tty_color_mode): Left over typo.
12684
126852008-04-10 Michael Albinus <michael.albinus@gmx.de>
12686
12687 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12688 only after check for file name handler functions. Signal, when
12689 native functionality is not supported.
12690 (syms_of_fileio): Declare it unconditionally.
12691
126922008-04-10 Jason Rumney <jasonr@gnu.org>
12693
12694 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12695 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12696
12697 * w32.c (logon_network_drive): Also logon to remote drives that
12698 are mapped to drive letters.
12699
127002008-04-10 Glenn Morris <rgm@gnu.org>
12701
12702 * xdisp.c (truncate-partial-width-windows): Doc fix.
12703
127042008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12705
12706 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12707 Move functions to minibuffer.el.
12708 (syms_of_fileio): Don't declare them.
12709
127102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12711
12712 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12713 (syms_of_minibuf): Remove its initialization.
12714
12715 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12716
127172008-04-09 Juanma Barranquero <lekktu@gmail.com>
12718
12719 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12720
127212008-04-09 Jason Rumney <jasonr@gnu.org>
12722
12723 * makefile.w32-in (distclean): Delete makefile too.
12724 (maintainer-clean): New target.
12725
12726 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12727
12728 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12729 for new font backend and composite cases.
12730
127312008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12732
12733 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12734 Most of the code moved to run_timers.
12735 (do_pending_atimers): Call run_timers.
12736 (run_timers): New function.
12737
12738 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12739 run atimers.
12740
12741 * process.c (wait_reading_process_output): The same as above.
12742
127432008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12744
12745 * minibuf.c (last_exact_completion): Remove variable.
12746 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12747 (complete_and_exit_1, complete_and_exit_2)
12748 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12749 (Fdisplay_completion_list, display_completion_list_1)
12750 (Fminibuffer_completion_help, Fself_insert_and_exit)
12751 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12752 minibuffer.el.
12753 (syms_of_minibuf): Remove corresponding initializations.
12754
12755 * keyboard.c (Qdeactivate_mark): New var.
12756 (command_loop_1): Use it to call `deactivate-mark'.
12757 (syms_of_keyboard): Initialize it.
12758
12759 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12760 to another frame.
12761 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12762 Don't call set_tty_color_mode.
12763 (store_frame_param): Reset previous_frame rather than call
12764 set_tty_color_mode.
12765 * term.c (set_tty_color_mode): Rewrite.
12766 * dispextern.h (set_tty_color_mode): New type.
12767 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12768
127692008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12770
12771 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12772 for generic chars, which do not exist any more in emacs-unicode.
12773
127742008-04-08 Michael Albinus <michael.albinus@gmx.de>
12775
12776 * coding.c (detect_coding_emacs_mule)
12777 (Ffind_operation_coding_system): Fix typo.
12778
127792008-04-08 Jason Rumney <jasonr@gnu.org>
12780
12781 * w32uniscribe.c (SNAME): Extract only symbol name.
12782
12783 * w32font.h (struct w32_metric_cache): New struct.
12784 (w32font_info): Use it.
12785 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12786 (CACHE_BLOCKSIZE): New constants.
12787
12788 * w32font.c (Qja, Qko, Qzh): New symbols.
12789 (syms_of_w32font): Initialise them.
12790 (font_matches_spec): Use them to filter by language.
12791 (recompute_cached_metrics): Remove function.
12792 (compute_metrics, clear_cached_metrics): New functions.
12793 (w32font_encode_char): Use them to manage metric cache.
12794 (w32font_text_extents): Cache metrics for all glyphs on demand.
12795 Delay converting glyph indices to WORD until needed.
12796 (w32font_open_internal): Initialize metric cache to empty.
12797 (registry_to_w32_charset): Charset should always be a symbol.
12798 (fill_in_logfont, list_all_matching_fonts): Family should
12799 always be a symbol.
12800
128012008-04-06 Jason Rumney <jasonr@gnu.org>
12802
12803 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12804 Give up if glyph indices not supported. Use uniscribe obtained
12805 ABC widths for individual metrics. Map glyph clusters back to
12806 characters using fClusterStart flag. Return number of glyphs
12807 produced, not chars processed.
12808 (uniscribe_shape): Map char at FROM to current glyph.
12809
128102008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12811
12812 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12813 Use SetMenuItemHierarchicalMenu.
12814
128152008-04-05 Jason Rumney <jasonr@gnu.org>
12816
12817 * image.c (pbm_load): Allow color values up to 65535.
12818 Throw an error if max_color_idx is outside the supported range.
12819 Report an error when image size is invalid.
12820 Read two bytes at a time when raw images have max_color_idx above 255.
12821
128222008-04-05 Eli Zaretskii <eliz@gnu.org>
12823
12824 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12825 cFileName a file name that includes `?' characters, use the 8+3
12826 alias in cAlternateFileName instead.
12827
128282008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12829
12830 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12831 append "CCL: Quitted" when the CCL program is quitted.
12832 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12833
12834 * ccl.h (struct ccl_program): New member quit_silently.
12835
128362008-04-05 Chong Yidong <cyd@stupidchicken.com>
12837
12838 * search.c (compile_pattern_1): Treat non-nil and non-string of
12839 search-spaces-regexp as nil.
12840
12841 * minibuf.c (Fassoc_string): Tweak docstring.
12842
128432008-04-05 Eli Zaretskii <eliz@gnu.org>
12844
12845 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12846 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12847 2008-03-14 to force inode be positive.
12848
12849 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12850 _S_* ones, since we now use our own sys/stat.h.
12851 (stat, fstat): Don't mangle the inode number.
12852 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12853
128542008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12855
12856 * frame.h (struct frame): Give one more bit to `visible' since we use
12857 values larger than 1 to indicate obscured frames on ttys.
12858
12859 * keymap.c (Qkeymap_canonicalize): New var.
12860 (Fmap_keymap_internal): New fun.
12861 (describe_map): Use keymap-canonicalize.
12862
12863 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12864 (Fundo_boundary): Set them.
12865 (syms_of_undo): Initialize them.
12866 (record_point): Use them instead of last_point_position*.
12867 (last_undo_buffer): Change type.
12868
128692008-04-04 Jason Rumney <jasonr@gnu.org>
12870
12871 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12872 (recompute_cached_metrics): Don't set ascent and descent per char.
12873
12874 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12875 (uniscribe_check_otf): Add GC protection before consing.
12876 Rearrange loop for counting features.
12877
128782008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12879
12880 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12881 buffer with byte-size of source buffer.
12882
128832008-04-03 Chong Yidong <cyd@stupidchicken.com>
12884
12885 * callint.c (Fcall_interactively): Handle temporary region even
12886 when shift-select-mode is off.
12887
128882008-04-03 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12891
128922008-04-03 Kenichi Handa <handa@m17n.org>
12893
12894 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12895 (CATEGORY_MASK_UTF_16): Likewise.
12896 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12897 binary file.
12898 (detect_coding): Add null-byte detection for a binary file.
12899 (detect_coding_system): Likewise.
12900
129012008-04-03 Jason Rumney <jasonr@gnu.org>
12902
12903 * w32uniscribe.c: New file.
12904
12905 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12906
12907 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12908
12909 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12910 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12911 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12912 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12913 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12914 (Qphonetic): New symbols.
12915 (syms_of_w32font): Initialize them.
12916 (font_supported_scripts): Use them.
12917 (w32font_list_family): List all charsets.
12918 (w32font_text_extents, recompute_cached_metrics): Fix metric
12919 calculations.
12920 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12921 Give opentype fonts their own format.
12922 (font_matches_spec): New arguments backend and logfont.
12923 Handle :otf spec for uniscribe backend.
12924 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12925 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12926
12927 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12928 font backend.
12929 (globals_of_w32fns): Initialize uniscribe font backend.
12930
12931 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12932 dependencies.
12933 (w32uniscribe.$(O)): New file to build.
12934 (FONT_OBJ): Include w32uniscribe.$(O).
12935 (LIBS): Add uniscribe libraries.
12936
12937 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12938
129392008-04-02 Chong Yidong <cyd@stupidchicken.com>
12940
12941 * callint.c (Vshift_select_mode): New var.
12942 (Finteractive): Document new ^ spec.
12943 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12944 is present.
12945
12946 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12947 (command_loop_1): Avoid running the direct display versions of
12948 forward-char and backward-char if shift-selection may occur.
12949 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12950 shift-translation takes place.
12951
12952 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12953 avoid clobbering by define-minor-mode.
12954
12955 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12956 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12957
12958 * syntax.c (Fforward_word): Add ^ interactive spec.
12959
12960 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12961 (Fscroll_right): Add ^ interactive spec.
12962
129632008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12964
12965 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12966
12967 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12968
12969 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12970
129712008-03-31 Juri Linkov <juri@jurta.org>
12972
12973 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12974
129752008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12976
12977 * gtkutil.c (xg_set_geometry): Fix indentation.
12978 (xg_resize_outer_widget): Remove.
12979 (x_wm_size_hint_off): Fix indentation.
12980 (xg_frame_set_char_size): Call flush_and_sync after
12981 gtk_window_resize.
12982 (x_wm_set_size_hint): Pass NULL as geometry window to
12983 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12984 Add menu bar and tool bar height to base height.
12985 (xg_update_frame_menubar, free_frame_menubar)
12986 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12987 (update_frame_tool_bar, free_frame_tool_bar):
12988 Change xg_resize_outer_widget to xg_frame_set_char_size.
12989
129902008-03-30 Michael Albinus <michael.albinus@gmx.de>
12991
12992 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12993 (Fdbus_call_method): New parameter TIMEOUT.
12994 (dbus-send-signal): Optimize UNGCPRO call.
12995
129962008-03-29 Juri Linkov <juri@jurta.org>
12997
12998 * window.c (Fdisplay_buffer): Move call to
12999 Vsplit_window_preferred_function out of conditions that check
13000 if window is eligible for vertical splitting.
13001 When Vsplit_window_preferred_function is non-nil, call it and use
13002 its non-nil return value as window. Otherwise, continue doing
13003 vertical splitting using Fsplit_window with arg horflag=nil.
13004 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13005 default value from `split-window' to nil.
13006
130072008-03-29 Juri Linkov <juri@jurta.org>
13008
13009 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13010 for interactive code letters 'b' and 'B'.
13011
130122008-03-29 Eli Zaretskii <eliz@gnu.org>
13013
13014 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13015 multibyte string.
13016
130172008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13018
13019 * keyboard.c (pending_funcalls): New var.
13020 (timer_check): Run it.
13021 (syms_of_keyboard): Initialize it.
13022 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13023 (Vdelete_terminal_functions): New vars.
13024 (syms_of_terminal): Initialize them.
13025 (Fdelete_terminal): Run delete-terminal-functions.
13026 * xdisp.c (safe_eval): Rewrite.
13027 (safe_call2): New fun.
13028 * frame.c (Qdelete_frame_functions): New var.
13029 (syms_of_frame): Initialize it.
13030 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13031 * lisp.h (safe_call2, pending_funcalls): Declare.
13032
130332008-03-28 Andreas Schwab <schwab@suse.de>
13034
13035 * indent.c (Fmove_to_column): Move declaration before statements.
13036
130372008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13038
13039 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13040 (struct frame): Use bit fields for boolean vars.
13041
13042 * process.c (server_accept_connection): Simplify naming.
13043 (emacs_get_tty_pgrp): Use SDATA.
13044
13045 * coding.c (decode_coding_object): Fix last change.
13046
130472008-03-27 Jason Rumney <jasonr@gnu.org>
13048
13049 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13050
130512008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13052
13053 * charset.c (Fdefine_charset_internal): Change the way of
13054 registering charsets in Vcharset_order_list.
13055 (syms_of_charset): Make the charset `eight-bit' supplementary.
13056
130572008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13058
13059 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13060 operations, to avoid having the difference between pointers
13061 overflow.
13062
130632008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13064
13065 * indent.c (check_display_width): New fun.
13066 (scan_for_column): Use it.
13067
13068 * data.c (syms_of_data): Mark most-positive-fixnum and
13069 most-negative-fixnum as constants.
13070
13071 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13072
13073 * indent.c (scan_for_column): Extract from current_column_1.
13074 Merge with the same code from Fmove_to_column.
13075 (current_column_1, Fmove_to_column): Use it.
13076
130772008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13078
13079 * keymap.c (map_keymap_internal): New fun.
13080 (map_keymap): Use it.
13081 (Fmap_keymap_internal): New fun.
13082 (Fmap_keymap): Remove left-out test from before make_save_value.
13083
13084 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13085
13086 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13087 Use XCAR/XCDR.
13088
13089 * process.h (struct Lisp_Process): Remove filter_multibyte.
13090 * process.c (QCfilter_multibyte): Remove.
13091 (setup_process_coding_systems): Don't use filter_multibyte.
13092 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13093 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13094 (Fset_process_filter_multibyte): Change the coding-system to
13095 approximate the previous behavior.
13096 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13097 coding-system.
13098
13099 * coding.c (decode_coding_object): When not decoding into a buffer,
13100 obey the coding system's preference of (uni|multi)byte.
13101
131022008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13103
13104 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13105 every char is changed and has a different byte-length.
13106 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13107 Fix int -> EMACS_INT.
13108
131092008-03-23 David Hansen <david.hansen@gmx.net>
13110
13111 * dbusbind.c (xd_read_message): Remove extra copying of message
13112 strings. Check for NULL `interface' or `member'.
13113
131142008-03-22 Eli Zaretskii <eliz@gnu.org>
13115
13116 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13117 cFileName a file name that includes `?' characters, use the 8+3
13118 alias in cAlternateFileName instead.
13119
131202008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13121
13122 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13123
131242008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13125
13126 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13127 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13128 work on current_buffer only instead (that was already the case
13129 for some of the code anyway).
13130 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13131 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13132 (SET_PT, SET_PT_BOTH): Adjust.
13133 * intervals.h (set_point, temp_set_point, set_point_both)
13134 (temp_set_point_both): Remove redundant declarations.
13135
131362008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * fileio.c (Finsert_file_contents):
13139 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13140 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13141 when buffer != current_buffer anyway.
13142
131432008-03-20 Andreas Schwab <schwab@suse.de>
13144
13145 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13146 as default.
13147
131482008-03-19 Jason Rumney <jasonr@gnu.org>
13149
13150 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13151 (syms_of_w32fns): Initialize them.
13152 (HOURGLASS_ID): New constant.
13153 (x_window_to_frame): Don't check hourglass_window.
13154 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13155 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13156 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13157 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13158 Only change the cursor if hourglass is not active.
13159 (Fx_create_frame): Initialize frame's current_cursor.
13160 (hourglass_atimer): Remove.
13161 (hourglass_started): New function.
13162 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13163 (show_hourglass): Adapt to w32, changing argument to frame.
13164
13165 * w32term.h (struct w32_output): Remove hourglass_window.
13166 Add current_cursor.
13167
13168 * eval.c (call_debugger, Fsignal):
13169 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13170 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13171 (Fexecute_extended_command, cancel_hourglass_unwind):
13172 * minibuf.c (read_minibuf):
13173 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13174
131752008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13176
13177 * window.c (run_funs): New fun.
13178 (run_window_configuration_change_hook): Use it to run the buffer-local
13179 and the global part of the hook.
13180
13181 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13182 (unwind_format_mode_line): Restore selected window.
13183 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13184
131852008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13186
13187 * editfns.c (Fchar_equal): Check they are valid characters.
13188
13189 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13190
131912008-03-17 Andreas Schwab <schwab@suse.de>
13192
13193 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13194 against a charset.
13195
13196 * lisp.h (Fbuffer_list): Declare.
13197
131982008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13199
aac0c6e3
MR
13200 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13201 handlebox_widget is != 0.
13202
132032008-03-16 Juri Linkov <juri@jurta.org>
13204
13205 * callint.c (Fcall_interactively): For interactive code letters
13206 'b' and 'B' put the buffer list into the list of default "future"
13207 values of the minibuffer.
13208
132092008-03-16 Andreas Schwab <schwab@suse.de>
13210
13211 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13212 modifiers.
13213
13214 * regex.c (re_match_2_internal): Correct matching of a charset
13215 against latin-1 characters.
13216
132172008-03-16 Kenichi Handa <handa@m17n.org>
13218
13219 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13220 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13221 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13222 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13223 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13224 CHAR_STRING_ADVANCE.
13225 (produce_chars): Fix for the case that the source and the
13226 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13227 instead of CHAR_STRING_ADVANCE.
13228 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13229 STRING_CHAR_ADVANCE.
13230
132312008-03-15 Andreas Schwab <schwab@suse.de>
13232
13233 * regex.c (re_match_2_internal): Correct matching of eight bit
13234 characters in unibyte strings.
13235
132362008-03-15 Martin Rudalics <rudalics@gmx.at>
13237
13238 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13239 at end of range when it coincides with the end of the buffer.
13240
132412008-03-14 Eli Zaretskii <eliz@gnu.org>
13242
13243 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13244
13245 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13246
132472008-03-14 Jason Rumney <jasonr@gnu.org>
13248
13249 * editfns.c (initial_tz): New variable.
13250 (syms_of_editfns): Initialize it.
13251 (Fset_time_zone_rule): Set it when first called.
13252 Use it when TZSTRING is nil.
13253
13254 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13255 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13256 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13257 (globals_of_w32fns): Initialize them.
13258 (compute_tip_xy): Use them to position tooltips.
13259
132602008-03-14 Glenn Morris <rgm@gnu.org>
13261
13262 * emacs.c (main): Revert previous change.
13263 (standard_args): Revert -internal-script back to -scriptload,
13264 and remove the long-option form.
13265
132662008-03-13 Glenn Morris <rgm@gnu.org>
13267
13268 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13269 Remove option -enable-font-backend.
13270
132712008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13272
13273 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13274
132752008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13276
13277 * xterm.c (x_connection_closed): For GTK: If this is the last
13278 terminal just exit without closing the display.
13279
132802008-03-11 Jason Rumney <jasonr@gnu.org>
13281
13282 * w32font.c (w32font_full_name): Use floor to round.
13283
f0131492 132842008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13285
13286 * sound.c (alsa_configure): Declare vol at beginning of block.
13287
13288 * fontset.c (Ffontset_info): Remove extra semicolon.
13289
132902008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13291
13292 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13293 size of resulting string.
13294
132952008-03-10 Jason Rumney <jasonr@gnu.org>
13296
13297 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13298
132992008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13300
13301 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13302 Don't pretend as if characters with display property haven't been
13303 consumed for string-replacing-string case.
13304
133052008-03-08 Kim F. Storm <storm@cua.dk>
13306
13307 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13308 (get_next_display_element, next_element_from_string)
13309 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13310
133112008-03-08 Andreas Schwab <schwab@suse.de>
13312
13313 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13314
133152008-03-06 Jason Rumney <jasonr@gnu.org>
13316
13317 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13318 when charset not specified. Only translate ANSI to unicode when
13319 font_type is truetype.
13320 (w32font_coverage_ok): New function.
13321 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13322
133232008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13324
13325 * lread.c (Fread_char): Resolve modifiers.
13326 (Fread_char_exclusive): Likewise.
13327
13328 * character.c (char_resolve_modifier_mask): New function.
13329 (char_string): Use char_resolve_modifier_mask.
13330 (Fchar_resolve_modifiers): New function.
13331 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13332 function.
13333
133342008-03-04 Jason Rumney <jasonr@gnu.org>
13335
13336 * makefile.w32-in: Always include w32font.c in the build.
13337 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13338
133392008-03-04 Andreas Schwab <schwab@suse.de>
13340
13341 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13342 (versionclean): Likewise.
13343
133442008-03-04 Juanma Barranquero <lekktu@gmail.com>
13345
13346 * .cvsignore: Add oo.
13347
133482008-03-03 Andreas Schwab <schwab@suse.de>
13349
13350 * coding.c (decode_coding_object): Inhibit gap shrinking while
13351 decoding in place.
13352
133532008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13354
13355 * w32term.c: Remove unused include "gnu.h".
13356 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13357
13358 * gnu.h: Rename to ...
13359 * emacs-icon.h: ... this.
13360 * xterm.c: Use emacs-icon.h instead of gnu.h.
13361 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13362
133632008-03-03 Juanma Barranquero <lekktu@gmail.com>
13364
13365 * w32font.c: Include math.h.
13366
133672008-03-03 Jason Rumney <jasonr@gnu.org>
13368
13369 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13370 Compute options separately.
13371 (w32font_open_internal): Set glyph_idx before caching metrics.
13372
13373 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13374 Define if system headers don't.
13375 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13376 (w32font_encode_char): Don't declare here.
13377
13378 * w32font.c (Quniscribe, QCformat): New symbols.
13379 (syms_of_w32font): Define them.
13380 (w32font_has_char): Indicate uncertainty.
13381 (w32font_encode_char): Encode as glyph point. Make static.
13382 (recompute_cached_metrics): New function.
13383 (w32font_open_internal): Use it. Set font to use glyph points
13384 initially. Set format based on type of font.
13385 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13386 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13387 on it. Set format based on information available here.
13388 (add_font_entity_to_list): Identify backend based on opentype_only.
13389
133902008-03-02 Andreas Schwab <schwab@suse.de>
13391
13392 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13393
13394 * coding.c (decode_coding_big5, produce_chars):
13395 Fix typos in last change.
13396
133972008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13398
13399 * gnu.h: New icon.
13400
134012008-03-02 Kenichi Handa <handa@m17n.org>
13402
13403 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13404 `dos', don't decode '\r' if that is the last in the source.
13405 (decode_coding_utf_16, decode_coding_emacs_mule)
13406 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13407 (decode_coding_raw_text, decode_coding_charset): Likewise.
13408 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13409
134102008-03-01 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13413
134142008-03-01 Kim F. Storm <storm@cua.dk>
13415
13416 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13417
134182008-03-01 Jason Rumney <jasonr@gnu.org>
13419
13420 * w32font.c (w32font_full_name): New function.
13421 (w32font_open_internal): Use it.
13422
134232008-03-01 Kim F. Storm <storm@cua.dk>
13424
13425 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13426
134272008-03-01 Jason Rumney <jasonr@gnu.org>
13428
13429 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13430
134312008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13432
13433 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13434 xg_frame_resized when the event is for the edit widget.
13435
13436 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13437
13438 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13439 set_char_size.
13440 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13441 operations on widgets here. Just set frame size if needed.
13442 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13443 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13444 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13445 the whole frame.
13446 (xg_create_tool_bar): Move attachment of the tool bar to
13447 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13448 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13449
134502008-03-01 Jason Rumney <jasonr@gnu.org>
13451
13452 * w32fns.c (w32_msg_pump): Disable debug code.
13453
134542008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13455
13456 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13457
134582008-02-29 Chong Yidong <cyd@stupidchicken.com>
13459
13460 * xdisp.c (next_overlay_string): Don't set
13461 overlay_strings_at_end_processed_p if we're currently reading from
13462 a display string.
13463
134642008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13465
13466 * xdisp.c (get_overlay_strings_1): Fix typo.
13467
134682008-02-29 Chong Yidong <cyd@stupidchicken.com>
13469
13470 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13471
134722008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13473
13474 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13475
13476 * xdisp.c (display_mode_element): Cancel the previous change.
13477 (decode_mode_spec): Likewise.
13478 (handle_auto_composed_prop): Don't make composition if it->string
13479 is a string.
13480
134812008-02-27 Kim F. Storm <storm@cua.dk>
13482
13483 * lisp.h (GLYPH): Change type from int to struct with separate char
13484 and face_id members.
13485 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13486 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13487 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13488 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13489 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13490 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13491 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13492 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13493 handle new Lisp glyph code encoding, either an integer or a cons.
13494
13495 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13496 (GLYPH_ALIAS): Delete.
13497 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13498 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13499 (GLYPH_FROM_CHAR): Replace macro by ...
13500 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13501
13502 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13503 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13504 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13505 (GLYPH_INVALID_P): New macro.
13506 (spec_glyph_lookup_face): Update prototype.
13507
13508 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13509 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13510 new glyph code encoding.
13511 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13512 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13513
13514 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13515 Adapt to new glyph type and new glyph code encoding.
13516
13517 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13518
13519 * indent.c (current_column, current_column_1, Fmove_to_column)
13520 (compute_motion): Adapt to new glyph code encoding.
13521
13522 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13523
135242008-02-27 Chong Yidong <cyd@stupidchicken.com>
13525
13526 * process.c (wait_reading_process_output): Check for window
13527 changes caused by timers.
13528 Suggested by Johan Bockgård.
13529
135302008-02-27 Glenn Morris <rgm@gnu.org>
13531
13532 * emacs.c (USAGE1): Add `--disable-font-backend'.
13533
135342008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13535
13536 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13537 is made to the buffer.
13538
135392008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13540
13541 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13542 (face_at_string_position):
13543 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13544 (face_at_string_position):
13545 * xdisp.c (display_string, next_overlay_change):
13546 * buffer.h (overlays_at):
13547 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13548 Update callers.
13549
135502008-02-26 Chong Yidong <cyd@stupidchicken.com>
13551
13552 * editfns.c (Fformat): Doc fix.
13553
135542008-02-26 Juanma Barranquero <lekktu@gmail.com>
13555
13556 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13557 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13558 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13559
135602008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13561
13562 * buffer.c (Fbuffer_swap_text): New function.
13563 (syms_of_buffer): Defsubr it.
13564
135652008-02-25 Chong Yidong <cyd@stupidchicken.com>
13566
13567 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13568
135692008-02-25 Jason Rumney <jasonr@gnu.org>
13570
13571 * w32font.c (w32font_draw): Draw one character at a time when padding.
13572
135732008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13574
13575 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13576 Handle a nil arg. Use run_window_configuration_change_hook.
13577 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13578 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13579 Use run_window_configuration_change_hook.
13580
135812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13582
13583 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13584 1-pixel width.
13585
135862008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13587
13588 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13589 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13590 if the glyph in the font is zero pixel with.
13591
13592 * dispextern.h (struct glyph_string): New member padding_p.
13593
13594 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13595
13596 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13597
13598 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13599
13600 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13601
13602 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13603
136042008-02-25 Jason Rumney <jasonr@gnu.org>
13605
13606 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13607
136082008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13609
13610 Allow fine-grained image-cache flushing.
13611 * dispextern.h (struct image): Add `dependencies' field.
13612 (clear_image_caches): Change arg to Lisp_Object.
13613 * image.c (make_image): Initialize `dependencies' field.
13614 (clear_image_cache): Change arg to allow fine-grained flushing.
13615 Perform the flush even if image-cache-eviction-delay is nil.
13616 (clear_image_caches): Change arg to Lisp_Object.
13617 (Fclear_image_cache): Expand meaning of the argument.
13618 (mark_image): Mark `dependencies' field.
13619 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13620 (lface_hash): Use XHASH rather than XFASTINT.
13621 (face_at_buffer_position): Fix int -> EMACS_INT position.
13622 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13623 (select_frame_for_redisplay): Remove code duplication.
13624 (redisplay_internal): Adapt arg to call to clear_image_caches.
13625
136262008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13627
13628 * s/vms4-0.h:
13629 * s/vms4-2.h:
13630 * s/vms4-4.h:
13631 * s/vms5-5.h: Remove, unused.
13632
13633 * s/irix5-2.h:
13634 * s/irix6-0.h:
13635 * s/riscos5.h:
13636 * s/mach-bsd4-3.h:
13637 * m/mips4.h: Remove files for obsolete systems.
13638
13639 * Makefile.in:
13640 * filelock.c:
13641 * unexmips.c:
13642 * m/hp9000s300.h:
13643 * m/iris4d.h:
13644 * s/aix3-1.h:
13645 * s/hpux.h:
13646 * s/msdos.h:
13647 * s/usg5-0.h:
13648 * s/usg5-2-2.h:
13649 * s/usg5-2.h:
13650 * s/usg5-3.h: Remove references to obsolete variables.
13651
13652 * s/irix5-0.h: Remove, move all the contents ...
13653 * s/irix6-5.h: ... here. Simplify.
13654 * config.in: Regenerate.
13655
136562008-02-24 Jason Rumney <jasonr@gnu.org>
13657
13658 * w32term.c (x_draw_glyph_string_background): Clear the background
13659 manually when cleartype is in use.
13660 (x_draw_glyph_string_foreground): Draw text transparently when
13661 cleartype is in use.
13662
13663 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13664 a font into it unless we have to.
13665
136662008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13667
13668 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13669 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13670
aac0c6e3
MR
136712008-02-18 Jason Rumney <jasonr@gnu.org>
13672
13673 * w32fns.c (Fw32_shell_execute): Encode parameters.
13674
136752008-02-09 Eli Zaretskii <eliz@gnu.org>
13676
13677 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13678
136792008-02-05 Juanma Barranquero <lekktu@gmail.com>
13680
13681 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13682
136832008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13684
13685 * xterm.c (x_set_offset): Don't change the gravity if
13686 CHANGE_GRAVITY is -1.
13687
136882008-02-23 Chong Yidong <cyd@stupidchicken.com>
13689
13690 * fileio.c (auto_save_error_occurred): New var.
13691 (auto_save_error): Set it.
13692 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13693 error occurred.
13694
136952008-02-23 Eli Zaretskii <eliz@gnu.org>
13696
13697 * w32.c (globals_of_w32): Add initializations for
13698 g_b_init_get_sid_sub_authority and
13699 g_b_init_get_sid_sub_authority_count.
13700
137012008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13702
13703 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13704 (font_parse_xlfd): Use them for sanity check.
13705 (Finternal_set_font_style_table): Make sure the table is bijective.
13706
13707 Consolidate the image_cache to the terminal struct.
13708 * termhooks.h (P_): Remove redundant def.
13709 (struct terminal): New field `image_cache'.
13710 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13711 of FRAME_X_IMAGE_CACHE.
13712 * xterm.h (struct x_display_info): Remove image_cache field.
13713 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13714 * w32term.h (struct w32_display_info): Remove image_cache field.
13715 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13716 * macterm.h (struct mac_display_info): Remove image_cache field.
13717 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13718 * xterm.c (x_term_init):
13719 * w32term.c (w32_term_init):
13720 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13721 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13722 Remove declarations.
13723 (clear_image_caches, mark_image_cache): New declarations.
13724 * xfaces.c (clear_face_cache):
13725 * xdisp.c (redisplay_internal): Use clear_image_caches.
13726 * image.c (clear_image_cache): Don't check that a frame is on
13727 a window-system before checking if it shares the same cache.
13728 (clear_image_caches): New function.
13729 (Fclear_image_cache): Use it.
13730 (mark_image): Move from allo.c.
13731 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13732 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13733 (mark_object): Don't call mark_image_cache for frames.
13734 (mark_terminals): Call mark_image_cache.
13735
13736 * lisp.h (Fdelete_terminal): Declare.
13737
13738 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13739 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13740 wrong_type_argument.
13741
137422008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13743
13744 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13745 malayalam.el, and tamil.el. Add sinhala.el.
13746
137472008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13748
13749 * xterm.c (x_connection_closed): Consolidate identical tests.
13750 (x_delete_terminal): Don't crash if called via x_connection_closed.
13751
137522008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13753
13754 * xdisp.c (decode_mode_spec): New arg string.
13755 (display_mode_element): Adjust for the above change.
13756
137572008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13758
13759 * callint.c (Fcall_interactively): Use AREF.
13760
137612008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13762
13763 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13764
137652008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13766
13767 * xfns.c (Fx_show_tip): Set string to " " if empty.
13768
137692008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13770
13771 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13772 with Qt.
13773
137742008-02-17 Kenichi Handa <handa@m17n.org>
13775
13776 * ftfont.c (ftfont_shape): Return Lispy number.
13777
13778 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13779 for GCs.
13780 (Finternal_set_font_selection_order): Call font_update_sort_order
13781 only when enable_font_backend is set.
13782 (realize_x_face): Set face->font_info to that of default face only
13783 when enable_font_backend is set.
13784
13785 * xdisp.c (handle_composition_prop): Set it->c to the fist
13786 character of the composed region.
13787 (fill_composite_glyph_string): Set base_face->font_info to
13788 s->font_info. Get a face for ascii from base_face->ascii_face.
13789 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13790 with a face already decided.
13791 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13792 non-negative.
13793 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13794 call font_prepare_composition unconditionally.
13795
13796 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13797
13798 * xterm.h (struct x_display_info): New member font.
13799
13800 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13801 (x_set_mouse_face_gc, x_new_font): Likewise.
13802 (x_term_init): Setup display_info->font.
13803 (x_delete_terminal): Free display_info->font.
13804
13805 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13806
13807 * ftxfont.c (ftxfont_default_fid): Delete it.
13808 (ftxfont_open): Set xfont->fid to 0.
13809 (ftxfont_end_for_frame): Clear data specific to the frame and the
13810 font-driver.
13811
13812 * xftfont.c (xftfont_default_fid): Delete it.
13813 (xftfont_open): Set xfont->fid to 0.
13814
13815 * fontset.c (FONTSET_OBJLIST): New macro.
13816 (fontset_find_font): Update font-object list of the fontset.
13817 (free_realized_fontset): New function.
13818 (free_face_fontset): Call free_realized_fontset.
13819 (Ffont_info): Call font_close_object only when enable_font_backend
13820 is set.
13821
13822 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13823 [HAVE_NTGUI]: Include w32term.h.
13824 [MAC_OS]: Include macterm.ch.
13825 (font_otf_ValueRecord): Use make_number.
13826 (font_finish_cache): Fix handling of reference count.
13827 (font_clear_cache): Update num_fonts.
13828 (font_open_entity): Update smallest_char_width and
13829 smallest_font_height of the frame.
13830 (font_close_object): Update num_fonts.
13831 (Fclear_font_cache): Fix finding the target cache data.
13832
138332008-02-16 Glenn Morris <rgm@gnu.org>
13834
13835 * fontset.c (Finternal_char_font): Fix compilation warning.
13836
138372008-02-16 Eli Zaretskii <eliz@gnu.org>
13838
13839 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13840 instead of char arrays. Enlarge the size of array passed to
13841 get_token_information.
13842
13843 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13844 warnings.
13845
138462008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13847
13848 * .gdbinit: Don't set `args', it breaks gdb --args.
13849
138502008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13851
13852 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13853 within a narrowed buffer.
13854
138552008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13856
13857 * coding.c (decode_coding_object, encode_coding_object):
13858 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13859
138602008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13861
13862 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13863 hardcoding 1.
13864 (detect_coding_system):
13865 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13866 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13867 * insdel.c (insert_from_gap):
13868 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13869 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13870 (string_to_multibyte):
13871 * character.c (chars_in_text, multibyte_chars_in_text):
13872 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13873
13874 * character.h (FETCH_STRING_CHAR_ADVANCE)
13875 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13876 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13877 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13878
13879 * casefiddle.c (casify_region): Only call after-change and composition
13880 functions on the part of the region that was changed.
13881
13882 * keyboard.c (read_avail_input):
13883 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13884
138852008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13886
13887 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13888 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13889
138902008-02-11 Juanma Barranquero <lekktu@gmail.com>
13891
13892 * w32menu.c (push_submenu_start, push_submenu_end)
13893 (push_left_right_boundary, push_menu_pane, push_menu_item):
13894 * keyboard.c (read_key_sequence): Don't pass args with side effects
13895 to AREF, it fails when compiling with -DENABLE_CHECKING.
13896
138972008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13898
13899 * Makefile.in (${lispsource}international/charprop.el):
13900 Delete this target.
13901
13902 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13903 emacs-unicode-2.
13904
139052008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13906
13907 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13908
139092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13910
13911 * frame.c (Qnoelisp): New symbol.
13912 (syms_of_frame): Initialize it.
13913 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13914 harmless Elisp code, from a strong `force' from x_connection_closed.
13915 * frame.h (Qnoelisp): Declare.
13916 * xterm.c (x_connection_closed): Pass `noelisp'.
13917
13918 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13919 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13920 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13921 rather than `int' for the type of `type'.
13922
139232008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13924
13925 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13926
13927 * Makefile.in (GNUC): Remove support for gcc-1.x.
13928
139292008-02-10 Richard Stallman <rms@gnu.org>
13930
13931 * lisp.h (ASET): Use AREF, not ASLOT.
13932
139332008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13934
13935 * lisp.h (ASET): Check bounds.
13936
139372008-02-10 Glenn Morris <rgm@gnu.org>
13938
13939 * buffer.c (mode-name): Doc fix.
13940
139412008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13942
13943 * Makefile.in:
13944 * emacs.c:
13945 * gmalloc.c:
13946 * keyboard.c:
13947 * lisp.h:
13948 * m/ibm370aix.h:
13949 * process.c:
13950 * regex.c:
13951 * s/hpux.h:
13952 * sysdep.c:
13953 * sysselect.h:
13954 * systty.h:
13955 * unexec.c:
13956 * w32term.c:
13957 * xsmfns.c:
13958 * xterm.c: Remove code that deals with obsolete variables.
13959
13960 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13961
13962 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13963 nothing else needs it anymore.
13964
139652008-02-09 Eli Zaretskii <eliz@gnu.org>
13966
13967 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13968 instead of unibyte_char_to_multibyte.
13969
139702008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * s/gnu-linux.h: Remove commented out code.
13973
13974 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13975
13976 * Makefile.in: Update what RMS says about using autoconf.
13977 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13978 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13979 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13980 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13981
139822008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13983
13984 * keymap.c (Fkey_description): Move side effect outside of macro call.
13985
13986 * xfaces.c (Finternal_make_lisp_face):
13987 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13988
13989 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13990 (syms_of_fontset): Use ASET.
13991
13992 * fns.c (concat): Move side effect outside of macro call.
13993 (hash_clear): Use ASET.
13994
139952008-02-08 Richard Stallman <rms@gnu.org>
13996
13997 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13998 If FORCE, and frame has a surrogate minibuffer for another frame,
13999 delete the other frame first.
14000
140012008-02-07 Timo Savola <timo.savola@iki.fi>
14002
14003 * xterm.c (x_detect_focus_change): Handle embed client message.
14004 (handle_one_xevent): Ditto.
14005 (handle_one_xevent): If embedded and we get a button press/release,
14006 request focus.
14007 (xembed_set_info, xembed_send_message): New functions.
14008 (x_make_frame_visible): Call xembed_set_info if embedded.
14009 (x_make_frame_invisible): Call xembed_set_info if embedded.
14010 (x_term_init): Initialize Xatom_XEMBED.
14011 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14012 (x_iconify_frame): Ditto.
14013
14014 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14015 (enum xembed_info, enum xembed_message, enum xembed_focus)
14016 (enum xembed_modifier, enum xembed_accelerator): New.
14017 (xembed_set_info, xembed_send_message): Declare.
14018 (FRAME_X_EMBEDDED_P): New.
14019
14020 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14021 gtk_plug_new.
14022
14023 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14024 window ID of a frame.
14025 (x_window): Reparent frame if embedded.
14026 (Fx_create_frame): Don't set border width if embedded.
14027
14028 * emacs.c (USAGE3): Add --parent-id.
14029 (standard_args): Ditto.
14030
140312008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14032
14033 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14034
140352008-02-07 Jim Meyering <meyering@redhat.com>
14036
14037 Use "do...while (0)", not "if (1)...else" in macro definitions.
14038 The latter provokes a warning from gcc about the empty else, when
14039 followed by ";". Also, without that trailing semicolon, it would
14040 silently swallow up any following statement.
14041 * syntax.h (SETUP_SYNTAX_TABLE)
14042 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14043 * buffer.h (DECODE_POSITION): Likewise.
14044 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14045 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14046 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14047 (FETCH_CHAR_ADVANCE): Likewise.
14048 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14049
140502008-02-07 Jim Meyering <meyering@redhat.com>
14051
14052 * lread.c [lint]: Don't include <sys/inode.h>.
14053
140542008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14055
14056 * xselect.c (x_handle_dnd_message):
14057 * xmenu.c (digest_single_submenu, xmenu_show):
14058 * xdisp.c (with_echo_area_buffer_unwind_data)
14059 (format_mode_line_unwind_data, unwind_format_mode_line)
14060 (display_menu_bar):
14061 * eval.c (Ffetch_bytecode):
14062 * doc.c (store_function_docstring):
14063 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14064 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14065 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14066
140672008-02-07 Kenichi Handa <handa@m17n.org>
14068
14069 * ftxfont.c (ftxfont_open): Don't set
14070 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14071
14072 * ftfont.c (ftfont_open): Fix previous change.
14073
140742008-02-06 Jason Rumney <jasonr@gnu.org>
14075
14076 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14077 Use cached metrics for ASCII characters.
14078 (w32font_open_internal): Don't set font's owning_frame.
14079 Cache metrics for ASCII characters.
14080
14081 * w32font.h (struct w32font_info): Add ascii_metrics.
14082 Remove owning_frame.
14083
140842008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14085
14086 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14087 to negative value.
14088
14089 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14090
14091 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14092
14093 * charset.c (syms_of_charset): Set QCtest and Qeq.
14094
140952008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14096
14097 * process.c (Fstart_process):
14098 * callproc.c (Fcall_process): Handle the case where
14099 Funhandled_file_name_directory returns nil.
14100
14101 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14102 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14103 * font.c (check_gstring): Use them and AREF to access the vector before
14104 we know it's really a gstring.
14105 (Ffont_shape_text): Fix typo.
46e722a9 14106 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14107
14108 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14109 Declare.
14110
14111 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14112
141132008-02-05 Jason Rumney <jasonr@gnu.org>
14114
14115 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14116 Set smallest_font_height and smallest_char_width in display info.
14117
141182008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14119
14120 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14121
141222008-02-05 Miles Bader <miles@gnu.org>
14123
14124 * xfaces.c (get_lface_attributes, merge_named_face)
14125 (lookup_named_face, lookup_derived_face, realize_named_face):
14126 Revert 2008-02-01 change by cyd@stupidchicken.com.
14127
141282008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14129
14130 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14131 fallback fonts.
14132 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14133
141342008-02-04 Jason Rumney <jasonr@gnu.org>
14135
14136 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14137 set full_name.
14138 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14139
141402008-02-03 Jason Rumney <jasonr@gnu.org>
14141
14142 * makefile.w32-in (OBJ1): Include font.o here.
14143 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14144
141452008-02-02 Jason Rumney <jasonr@gnu.org>
14146
14147 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14148
141492008-02-01 Jason Rumney <jasonr@gnu.org>
14150
14151 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14152
14153 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14154
141552008-02-01 Andreas Schwab <schwab@suse.de>
14156
14157 * Makefile.in (shortlisp, lisp): Update for rename of
14158 ../lisp/language/myanmar.el.
14159
141602008-02-01 Chong Yidong <cyd@stupidchicken.com>
14161
14162 * xfaces.c (get_lface_attributes): Delete function.
14163 (merge_named_face, lookup_named_face, lookup_derived_face)
14164 (realize_named_face): Call lface_from_face_name directly, and use
14165 the fact that merge_face_vectors does not alter its FROM argument.
14166
141672008-02-01 Jason Rumney <jasonr@gnu.org>
14168
14169 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14170 input in the default locale. Handle non-Unicode multibyte input.
14171
141722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14173
14174 * fontset.c (reorder_font_vector): Exclude nil elements from the
14175 font group. Don't try multiple fonts.
14176 (fontset_font): Adjust for the above change.
14177 (Finternal_char_font): Return nil if the found font doesn't
14178 contain the character ch.
14179
14180 * Makefile.in (lisp, shortlisp): Add cham.el.
14181
141822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14183
14184 * font.h (FONTP): Make it return 1 also for a font-object.
14185
14186 * .gdbinit (xfontset): New function.
14187
14188 * font.c (font_find_for_lface): Check if the character C is
14189 supported or not only for the first font.
14190
14191 * fontset.c (reorder_font_vector): Fix typo.
14192 (fontset_find_font): Don't add a font-spec specifying a script.
14193 Use 0 (not Qt) for the indication of empty font-group. Change the
14194 format of RFONT-DEF. Return Qt if no font in the font-group
14195 support the character.
14196 (fontset_font): Adjust for the above change. If no font was
14197 found the character, remember that.
14198 (face_for_char): Adjust for the change of RFONT-DEF.
14199 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14200 no font for the target.
14201 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14202
142032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14204
14205 * font.c (font_load_for_face): Handle the case that the font in
14206 face->lface is a string.
14207
142082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14209
14210 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14211
142122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14213
14214 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14215 Fix previous change. If the frame is not on a window system,
14216 signal an error.
14217
142182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14219
14220 * coding.c (decode_coding_object, encode_coding_object): Adjust
14221 marker positions after conversion.
14222
14223 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14224
142252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14226
14227 * font.c (font_find_for_lface): Fix the handling of the return
14228 value of font_has_char.
14229 (Ffont_shape_text): Fix previous change.
14230
14231 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14232 (fontset_ref_and_range): Delete it.
14233 (fontset_find_font): Call char_table_ref_and_range instead of
14234 FONTSET_REF_AND_RANGE.
14235 (make_fontset): Don't setup font groups of Latin here.
14236 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14237 (new_fontset_from_font): Make the specified font the default for
14238 all Latin characters.
14239
142402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14241
14242 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14243 is on a window system before accessing the fontset of the frame.
14244
142452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14246
14247 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14248
14249 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14250 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14251
14252 * font.c (Ffont_shape_text): If the font driver doesn't have a
14253 shaper function, make zero-width glyphs to have at least one-pixel
14254 width. Fix setting of `to' field of glyphs.
14255
142562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14257
14258 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14259 glyphs.
14260
14261 * font.h (struct font_driver): Improve docstring of member `shape'.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * composite.c (syms_of_composite): Fix docstring of
14266 auto-composition-function.
14267
14268 * font.h (LGLYPH_SIZE): New macro.
14269
14270 * font.c (Ffont_fill_gstring): Stop filling when a character not
14271 supported by the font is found.
14272 (Ffont_shape_text): When a shape callback function returns nil,
14273 try at most two more times with larger gstring.
14274 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14275
14276 * xdisp.c (handle_auto_composed_prop): Change the argument to
14277 auto-composition-function.
14278
14279 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14280 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14281 Lispy glyph and store it in the lgstring.
14282
14283 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14284
14285 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14286
142872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14288
14289 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14290
14291 * fontset.c (Vfont_encoding_charset_alist): New variable.
14292 (syms_of_fontset): DEFVAR it.
14293 (reorder_font_vector, fontset_find_font): Optimize for the case of
14294 no need of reordering.
14295 (face_for_char): Map the charset property by
14296 Vfont_encoding_charset_alist.
14297
142982008-02-01 Jason Rumney <jasonr@gnu.org>
14299
14300 * w32font.c (logfonts_match): Don't check adstyle here.
14301 (font_matches_spec): Check here against physical font instead.
14302 (add_font_entity_to_list): Avoid some substitutions.
14303
14304 * font.c (font_parse_fcname): Default weight and slant to normal.
14305 (font_score): Prefer normal fonts if weight or slant unspecified.
14306 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14307 match freetype scores.
14308
143092008-02-01 Jason Rumney <jasonr@gnu.org>
14310
14311 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14312 font, as it may have been deleted.
14313 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14314 most common hyphenless variation.
14315 (logfonts_match): Check generic family.
14316 (font_matches_spec): Don't check generic family here.
14317 (fill_in_logfont): Set generic family based on adstyle.
14318
14319 * w32font.h (w32font_get_cache): Update declaration.
14320
143212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14322
14323 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14324
14325 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14326 If none of the new drivers are available, call font_update_drivers
14327 with the old drivers.
14328
14329 * w32font.c (w32font_get_cache): Adjust the argument type.
14330
14331 * xfont.c (xfont_get_cache): Adjust the argument type.
14332
14333 * font.h (struct font_driver): Change argument type of get_cache.
14334
14335 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14336
14337 * font.c (Ffont_get): Fix arguments to Fassoc.
14338 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14339 (font_clear_cache): New function.
14340 (font_list_entities, font_matching_entity): Use font_get_cache.
14341 (font_update_drivers): Call font_clear_cache when finishing a driver.
14342
14343 * fontset.c (fontset_find_font): Fix previous change.
14344
143452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14346
14347 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14348 dpyinfo->font_table.
14349 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14350 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14351
14352 * font.c (font_at): Handle the case that the arg C is negative.
14353 Handle the unibyte case.
14354 (Ffont_at): Call font_at with the arg C -1.
14355
14356 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14357 the position here, and call font_at with the arg C -1.
14358 Don't check the range of the existing composition at the point.
14359
143602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14361
14362 * fontset.c (fontset_add): New args charset_id and family.
14363 Change caller.
14364 (load_font_get_repertory, fontset_find_font): Assume that
14365 font_spec is always a font-spec object.
14366 (Fset_fontset_font): Always store a font-spec object in a fontset.
14367
14368 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14369 instead of get_property_and_range.
14370
143712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14372
14373 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14374 (xftfont_open): Don't keep locking face.
14375 (xftfont_close): Don't unlock face.
14376 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14377
14378 * fontset.c (fontset_find_font): Don't prefer a font of
14379 supplementary charset.
14380
143812008-02-01 Kenichi Handa <handa@m17n.org>
14382
14383 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14384 script, langsys_tag to langsys, new member script.
14385 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14386 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14387 listing to the script specified in that property. Fix arg to
14388 OTF_check_features.
14389
143902008-02-01 Jason Rumney <jasonr@gnu.org>
14391
14392 * w32font.h: New file.
14393
14394 * w32font.c: Include it.
14395 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14396 (w32font_open): Set owning_frame.
14397 (w32font_text_extents): Use owning_frame.
14398 (struct font_callback_data): Add opentype_only field.
14399 (add_font_entity_to_list): Use it to filter fonts.
14400 Don't check against full name.
14401 (w32font_list_internal): New function.
14402 (w32font_list): Use it.
14403 (w32font_match_internal): New function.
14404 (w32font_match): Use it.
14405 (w32font_open_internal): New function.
14406 (w32font_open): Use it.
14407 (w32font_get_cache, w32font_close, w32font_has_char)
14408 (w32font_encode_char, w32font_text_extents, w32font_draw):
14409 Make non-static.
14410
14411 * makefile.w32-in (w32font.o): Depend on w32font.h.
14412
144132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14414
14415 * charset.c (Fdefine_charset_internal): Record a supplementary
14416 charset at the tail of Vcharset_order_list.
14417
14418 * font.c (Ffont_shape_text): Fix the return value.
14419
14420 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14421
14422 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14423
144242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14425
14426 * ftfont.c (struct OpenTypeSpec): New struct.
14427 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14428 (ftfont_get_open_type_spec): New function.
14429 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14430
14431 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14432
144332008-02-01 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32font.c (add_font_entity_to_list): Compare only the beginning
14436 of full name.
14437
144382008-02-01 Kenichi Handa <handa@m17n.org>
14439
14440 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14441 Never return HANDLED_RECOMPUTE_PROPS.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * font.c (font_gstring_produce): Delete it.
14446
14447 * composite.h (COMPOSITION_METHOD):
14448 Handle COMPOSITION_WITH_GLYPH_STRING.
14449
144502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14451
14452 * xfont.c (Qx): Delete.
14453 (syms_of_xfont): Don't initialize Qx.
14454
14455 * composite.h (enum composition_method):
14456 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14457
144582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14459
14460 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14461 (choose_face_font): Accept new form of font-spec.
14462
14463 * frame.h (font_driver_list): Declare it unconditionally.
14464 (struct frame): Define members font_driver_list and font_data_list
14465 unconditionally.
14466
14467 * fontset.c: Include "font.h" unconditionally.
14468 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14469 (Fset_fontset_font): Accept a font-spec object.
14470
14471 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14472 PIXEL_SIZE part a wild card.
14473
14474 * dispextern.h (struct glyph_string): Define members clip and
14475 num_clips unconditionally.
14476 (struct face): Define members font_info and extra unconditionally.
14477
14478 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14479 ftfont_info only when HAVE_LIBOTF is defined.
14480
144812008-02-01 Andreas Schwab <schwab@suse.de>
14482
14483 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14484 and end.
14485
144862008-02-01 Jason Rumney <jasonr@gnu.org>
14487
14488 * w32font.c (w32font_driver): Add new fields.
14489
144902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14491
14492 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14493 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14494 (LIBES): Add @M17N_FLT_CFLAGS@.
14495
14496 * composite.c (compose_text): Don't treat the new style
14497 composition specially.
14498
14499 * emacs.c (main): Call syms_of_font unconditionally.
14500
14501 * font.h (FONT_ENTITY_NOT_LOADABLE)
14502 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14503 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14504 (struct font_driver): New member shape.
14505 (font_registry_charsets): Extern it.
14506 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14507 (font_otf_capability, font_drive_otf): Delete their externs.
14508
14509 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14510 (font_charset_alist, font_registry_charsets): Move from xfont.c
14511 and rename.
14512 (font_prop_validate_otf): New function.
14513 (font_property_table): Register it for QCotf.
14514 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14515 (font_drive_otf): Delete.
14516 (font_prepare_composition): New arg F. Adjust for the change of
14517 lispy gstring.
14518 (font_find_for_lface): New arg C.
14519 (font_load_for_face): Adjust for the change of font_find_for_lface.
14520 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14521 lispy gstring.
14522 (Ffont_shape_text): New function.
14523 (Fopen_font): If the font size is not given, use 12-pixel.
14524 (Ffont_at): New arg STRING.
14525 (syms_of_font): Initalize font_charset_alist.
14526 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14527 conditionally.
14528
14529 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14530 fonts of the same font-spec. Change the format of RFONT-DEF.
14531 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14532 Adjust for the change of RFONT-DEF.
14533 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14534
14535 * ftfont.h: New file.
14536
14537 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14538 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14539 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14540 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14541 font_otf_capability and font_drive_otf, set ftfont_shape.
14542 (ftfont_list): Adjust for the change of :otf property value.
14543 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14544 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14545 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14546 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14547 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14548 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14549
14550 * w32term.c (x_draw_composite_glyph_string_foreground):
14551 Adjust for the change of lispy gstring.
14552
14553 * xdisp.c (handle_composition_prop): Adjust for the change of
14554 lispy gstring. Call a function for auto-composition with the
14555 third arg it->window.
14556 (fill_composite_glyph_string): Adjust for the change of lispy string.
14557 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14558
14559 * xfaces.c (set_font_frame_param): Adjust for the change of
14560 font_find_for_lface.
14561
14562 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14563 (xfont_registry_charsets): Likewise. Change caller.
14564 (syms_of_xfont): Don't handle x_font_charset_alist.
14565
14566 * xftfont.c: Include "ftfont.h".
14567 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14568 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14569 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14570 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14571 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14572 Set xftfont_driver.shape to xftfont_shape.
14573
14574 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14575 the change of lispy gstring.
14576
145772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14578
14579 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14580
145812008-02-01 Jason Rumney <jasonr@gnu.org>
14582
14583 * w32font.c (w32font_draw): Fill background manually.
14584
145852008-02-01 Jason Rumney <jasonr@gnu.org>
14586
14587 * font.c (Qfontp): Remove unused symbol.
14588 (QCantialias): New symbol.
14589 (syms_of_font): Define it.
14590 (font_property_table): Set a validator for QCantialias.
14591
14592 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14593 Define if not already.
14594 (QCfamily): Share with xfaces.c.
14595 (Qstandard, Qsubpixel, Qnatural): New symbols.
14596 (syms_of_w32font): Define them. Don't define QCfamily here.
14597 (w32_antialias_type, lispy_antialias_type): New functions.
14598 (w32_enumfont_pattern_entity): New arg requested_font.
14599 Set antialias parameter if non-default was requested.
14600 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14601
146022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14603
14604 * lread.c (read1): Undo the previous change.
14605
146062008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14607
14608 * frame.c (Fdelete_frame): Call font_update_drivers only when
14609 USE_FONT_BACKEND is defined.
14610
146112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14612
14613 * font.h (struct font_bitmap): New member bits_per_pixel.
14614 (struct font_driver): New members start_for_frame and end_for_frame.
14615 (struct font_data_list): New struct.
14616 (font_put_frame_data, font_get_frame_data): Extern them.
14617
14618 * frame.h (struct frame): New member font_data_list.
14619
14620 * font.c (font_update_drivers): Call driver->start_for_frame and
14621 driver->end_for_frame at proper timings.
14622 (font_put_frame_data, font_get_frame_data): New functions.
14623 (Ffont_spec): Add usage in the docstring.
14624
14625 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14626 (Fdelete_frame): Call font_update_drivers.
14627
14628 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14629 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14630 (xftfont_get_xft_draw): New function.
14631 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14632 (xftfont_end_for_frame): New function.
14633 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14634
14635 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14636 Change argument. Cache GCs in the per-frame data.
14637 (struct ftxfont_frame_data): New struct.
14638 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14639 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14640 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14641 (ftxfont_end_for_frame): New function.
14642 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14643
14644 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14645
146462008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * xselect.c (Vselection_coding_system)
14649 (Vnext_selection_coding_system): Delete them.
14650 (syms_of_xselect): Don't declare selection-coding-system and
14651 next-selection-coding-system. They are declared in select.el.
14652
146532008-02-01 Jason Rumney <jasonr@gnu.org>
14654
14655 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14656
14657 * w32fns.c: Include imm.h.
14658 (get_composition_string_fn, get_ime_context_fn): New optional
14659 system functions.
14660 (globals_of_w32fns): Load them from imm32.dll.
14661 (ignore_ime_char): New flag.
14662 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14663 WM_IME_ENDCOMPOSITION messages.
14664
14665 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14666 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14667
146682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14669
14670 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14671 (READCHAR_REPORT_MULTIBYTE): New macro.
14672 (readchar): New 2nd arg MULTIBYTE.
14673 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14674 Make symbol's name multibyte according to the multibyteness of the
14675 source.
14676
146772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14678
14679 * xfaces.c (face_for_overlay_string): Call lookup_face with
14680 correct arguments (fix of synching with the trunk).
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14685 (font_prop_validate_non_neg, font_prop_validate_spacing):
14686 Delete argument prop_index.
14687 (font_property_table): Change arguments to validater. Change Callers.
14688 (font_lispy_object): Delete.
14689 (font_at): Use font_find_object instead fo font_lispy_object.
14690
146912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14692
14693 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14694 and file names.
14695
146962008-02-01 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14699 (font_matches_spec): Remove debug output.
14700 (add_font_entity_to_list): Avoid using substituted fonts.
14701
147022008-02-01 Jason Rumney <jasonr@gnu.org>
14703
14704 * doc.c (Fsnarf_documentation):
14705 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14706
147072008-02-01 Miles Bader <miles@gnu.org>
14708
14709 * dispextern.h (struct glyph_row): Only define "clip" field if
14710 HAVE_WINDOW_SYSTEM is defined.
14711
147122008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14713
14714 Fix up multi-tty merge.
14715
14716 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14717 and indentation.
14718
14719 * xfaces.c (free_realized_face, clear_face_gcs):
14720 Include font_done_for_face in the input_blocked section, just in case.
14721
14722 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14723 (get_char_face_and_encoding): Undo last change and remove the *other*
14724 duplicate definition (i.e. keep the one that's better scoped and that
14725 includes code for the font-backend).
14726
14727 * terminal.c (create_terminal): Default keyboard_coding to
14728 `no-conversion' and terminal_coding to `undecided'.
14729
14730 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14731
14732 * fontset.c (free_realized_fontsets): Check that the table entry does
14733 contain a fontset before trying to compare it to `base'.
14734
14735 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14736 syms_of_charset, and syms_of_coding earlier because init_window_once
14737 now needs Vcoding_system_hash_table to be setup.
14738
14739 * coding.h (default_buffer_file_coding): Remove.
14740
14741 * coding.c (default_buffer_file_coding): Remove.
14742 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14743 than ->symbol, and use the terminal-local coding system.
14744 (syms_of_coding): Don't setup the coding-systems that are not
14745 terminal-local.
14746 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14747
14748 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14749 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14750
14751 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14752 in chartab.c and were re-added here by mistake.
14753 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14754
14755 * doc.c (Fsnarf_documentation):
14756 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14757 src to etc.
14758
14759 * ChangeLog.10: Add mistakenly removed entry.
14760
147612008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14762
14763 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14764
147652008-02-01 Miles Bader <miles@gnu.org>
14766
14767 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14768 Add extra args to FACE_FOR_CHAR.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14773 in sequence.
14774
14775 * chartab.c (map_sub_char_table, map_char_table): If the range
14776 contains just one character, call the function with that character
14777 even if the depth is not 3.
14778
147792008-02-01 Jason Rumney <jasonr@gnu.org>
14780
14781 * w32font.c (w32font_text_extents): Calculate metrics for the
14782 whole string.
14783
147842008-02-01 Jason Rumney <jasonr@gnu.org>
14785
14786 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14787
147882008-02-01 Jason Rumney <jasonr@gnu.org>
14789
14790 * w32term.c (x_set_glyph_string_clipping): Use
14791 get_glyph_string_clip_rects.
14792 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14793 Adjust for the change of struct glyph_string.
14794
14795 * w32font.c (w32font_draw): Do clipping here.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * xftfont.c (xftfont_draw): Adjust for the change of struct
14800 glyph_string.
14801
14802 * xterm.c (x_set_glyph_string_clipping): Use
14803 get_glyph_string_clip_rects.
14804 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14805 Adjust for the change of struct glyph_string.
14806
14807 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14808 the resulting clip(s}.
14809 (expose_overlaps): Add arg r. Change callers. Set it to
14810 row->clip temporarily.
14811 (expose_window): Redraw rows overlapping the exposed area.
14812
14813 * dispextern.h (struct glyph_row): New member clip.
14814 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14815 clip_height, new member clip, and num_clips.
14816
148172008-02-01 Kenichi Handa <handa@m17n.org>
14818
14819 * data.c (Fchar_or_string_p): Fix docstring.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14824 create a temporary XftDraw object.
14825
148262008-02-01 Kenichi Handa <handa@m17n.org>
14827
14828 * font.c (Ffontp): Fix docstring.
14829
14830 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14831 strong evidence of ISO-2022.
14832
148332008-02-01 Kenichi Handa <handa@m17n.org>
14834
14835 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14836 SYNTAX_ENTRY_FOLLOW_PARENT.
14837
148382008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14839
14840 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14841 its type.
14842 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14843 Update to the new type of weak_hash_tables and next_weak.
14844
14845 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14846 a plain C pointer to Lisp_Hash_Table.
14847
14848 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14849 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14850 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14851 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14852 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14853 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14854 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14855 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14856 (GC_EQ): Remove since they've been identical to their non-GC_
14857 alter-egos ever since the markbit was eradicated.
14858
14859 * alloc.c:
14860 * buffer.c:
14861 * buffer.h:
14862 * data.c:
14863 * fileio.c:
14864 * filelock.c:
14865 * fns.c:
14866 * frame.h:
14867 * lisp.h:
14868 * macterm.c:
14869 * print.c:
14870 * process.c:
14871 * w32fns.c:
14872 * w32menu.c:
14873 * w32term.c:
14874 * xfns.c:
14875 * xmenu.c:
14876 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14877
148782008-02-01 Kenichi Handa <handa@m17n.org>
14879
14880 * chartab.c (map_sub_char_table): Make it work for the top-level
14881 char-table. Fix handling of parent char-table.
14882 (map_char_table): Adjust for the above change.
14883
148842008-02-01 Jason Rumney <jasonr@gnu.org>
14885
14886 * w32font.c (Qgdi): Rename from Qw32.
14887
148882008-02-01 Jason Rumney <jasonr@gnu.org>
14889
14890 * w32bdf.c (get_quoted_string): Make function static.
14891
148922008-02-01 Kenichi Handa <handa@m17n.org>
14893
14894 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14895 bigger ascent and descent than those of the font, use them as
14896 font's ascent and descent.
14897
148982008-02-01 Kenichi Handa <handa@m17n.org>
14899
14900 * Makefile.in (${lispsource}international/charprop.el): Move this
14901 target within "#ifdef HAVE_UNIDATA" and "#endif".
14902
149032008-02-01 Kenichi Handa <handa@m17n.org>
14904
14905 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14906 (shortlisp): Add ../lisp/language/tai-viet.el.
14907
149082008-02-01 Ulrich Mueller <ulm@gentoo.org>
14909
14910 * Makefile.in (${lispsource}international/charprop.el): Depend on
14911 temacs${EXEEXT}.
14912
149132008-02-01 Jason Rumney <jasonr@gnu.org>
14914
14915 * w32font.c (w32font_close): Delete the GDI font object.
14916
14917 * w32menu.c: Include character.h.
14918
14919 * w32proc.c: Likewise.
14920
14921 * w32select.c: Likewise.
14922
14923 * makefile.w32-in (w32proc.o): Depend on character.h.
14924
149252008-02-01 Jason Rumney <jasonr@gnu.org>
14926
14927 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14928
14929 * w32menu.c (syms_of_w32menu): Likewise.
14930
14931 * w32proc.c (syms_of_ntproc): Likewise.
14932
14933 * w32select.c (syms_of_w32select): Likewise.
14934
14935 * w32term.c (syms_of_w32term): Likewise.
14936
149372008-02-01 Jason Rumney <jasonr@gnu.org>
14938
14939 * w32font.c (w32font_draw): Delete brush after using it.
14940
149412008-02-01 Jason Rumney <jasonr@gnu.org>
14942
14943 * w32font.c (w32font_open): Don't set font_idx.
14944 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14945 to font settings.
14946 (w32font_draw): Fill background explicitly.
14947
149482008-02-01 Jason Rumney <jasonr@gnu.org>
14949
14950 * w32term.c (w32_initialize): Don't call w32font_initialize.
14951
14952 * w32font.c (w32font_info): Remove subranges.
14953 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14954 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14955 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14956 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14957 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14958 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14959 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14960 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14961 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14962 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14963 New symbols.
14964 (font_callback_data): New struct.
14965 (w32font_list, w32font_match): Use it.
14966 (w32font_open): Don't populate subranges.
14967 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14968 (w32font_encode_char): Always return unicode code-point as-is.
14969 (w32font_text_extents): Supply a transformation matrix to
14970 GetGlyphOutline. Never look up by glyph index. Avoid looping
14971 twice. Use unicode version of GetTexExtentPoint32 instead of
14972 glyph index version.
14973 (set_fonts_frame): Remove.
14974 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14975 set frame parameter. Use backward compatible fake foundries.
14976 Save generic family in extra slot under QCfamily. Make width slot
14977 constant. Save QCspacing value. Save list of scripts instead of
14978 binary subranges.
14979 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14980 (add_font_entity_to_list): Use font_callback_data struct. Filter
14981 unwanted fonts.
14982 (add_one_font_entity_to_list): Use font_callback_data struct.
14983 (w32_registry): Default to iso10646_1.
14984 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14985 string font registries. Don't fill in font name if it is a generic
14986 family name, fill family instead. Use spacing, family and script
14987 extra info to fill pitch, family and charset fields.
14988 (list_all_matching_fonts): Use font_callback_data struct.
14989 (unicode_range_for_char): Remove.
14990 (font_supported_scripts): New function.
14991 (w32font_initialize): Remove.
14992 (syms_of_w32font): Update which symbols are defined.
14993
149942008-02-01 Jason Rumney <jasonr@gnu.org>
14995
14996 * font.c (font_pixel_size): Reverse assq_no_quit args.
14997
14998 * w32term.h (FONT_WIDTH): Report max width, not average.
14999 (FONT_MAX_WIDTH): Remove.
15000 (FONT_AVG_WIDTH): New macro.
15001
15002 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15003 redefinition of FONT_WIDTH.
15004
15005 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15006 (w32_cache_char_metrics): Use FONT_WIDTH.
15007
15008 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15009
150102008-02-01 Jason Rumney <jasonr@gnu.org>
15011
15012 * w32font.c (w32font_open): Make lfHeight negative.
15013
15014 * w32fns.c (x_default_font_parameter): Use new style font name.
15015 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15016
150172008-02-01 Jason Rumney <jasonr@gnu.org>
15018
15019 * w32font.c (QCsubranges): New symbol.
15020 (w32font_open, w32font_has_char): Get subranges from subproperty
15021 of extra.
15022 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15023 (syms_of_w32font): Define :subranges symbol.
15024
15025 * font.c (font_put_extra): Expose externally.
15026
15027 * font.h (font_put_extra): Move declaration from font.c.
15028
15029 * font.c (Ffont_get): Use font driver to determine otf capability.
15030 (adjust_anchor): Check if driver defines anchor_point before using.
15031
15032 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15033 (w32font_draw): Use options.
15034 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15035 Fix detection of truetype fonts.
15036 (registry_to_w32_charset): Handle charsets other than iso8859-1
15037 expressed as lisp symbols.
15038 (w32_registry): Express charset as lisp symbol.
15039 (fill_in_logfont): Reverse pixel and point height logic.
15040 Don't set width here. Set quality to default.
15041
15042 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15043 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15044
15045 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15046 Remove redundant loop and allocation.
15047
15048 * makefile.w32-in (font.o, w32font.o): New objects.
15049 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15050 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15051
15052 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15053 STORE_XCHARB a valid l-value.
15054
15055 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15056 calculations for non-Truetype fonts.
15057 (x_draw_glyph_string): Sync with xterm.c.
15058 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15059 Remove redundant code.
15060 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15061
15062 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15063 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15064
15065 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15066 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15067
15068 * w32font.c: New file for w32 font backend.
15069
150702008-02-01 Kenichi Handa <handa@m17n.org>
15071
15072 * term.c: Don't include "buffer.h" twice.
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * character.c (Funibyte_string): New function.
15077 (syms_of_character): Defsubr it.
15078
150792008-02-01 Jason Rumney <jasonr@gnu.org>
15080
15081 * w32term.c [USE_FONT_BACKEND]:
15082 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15083 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15084 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15085 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15086 (x_free_frame_resources): Sync with xterm.c.
15087
150882008-02-01 Andreas Schwab <schwab@suse.de>
15089
15090 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15091 char-table size.
15092
150932008-02-01 Kenichi Handa <handa@m17n.org>
15094
15095 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15096
150972008-02-01 Kenichi Handa <handa@m17n.org>
15098
15099 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15100 font_otf_gpos, add font_drive_otf.
15101
15102 * fontset.c (fontset_find_font): Pay attention to font size
15103 specified for a font.
15104 (reorder_font_vector): Check contents of font_def.
15105
15106 * font.c (struct otf_list): Delete it.
15107 (otf_list): Make it a lisp variable.
15108 (otf_open): Use lispy otf_list.
15109 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15110 (check_otf_features): New function.
15111 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15112 New functions.
15113 (font_drive_otf): New function merging font_otf_gsub and
15114 font_otf_gpos.
15115 (font_open_for_lface): New arg spec. Change argument order.
15116 (font_load_for_face): Adjust for the change of font_open_for_lface.
15117 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15118 Ffont_otf_gpos.
15119 (syms_of_font): Staticpro otf_list. Delete defsubr of
15120 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15121
15122 * xfaces.c (set_font_frame_param): Adjust for the change of
15123 font_open_for_lface.
15124
15125 * font.h (font_open_for_lface): Adjust prototype.
15126 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15127 member otf_drive.
15128 (font_otf_gsub, font_otf_gpos): Delete externs.
15129 (font_drive_otf): Extern it.
15130
151312008-02-01 Kenichi Handa <handa@m17n.org>
15132
15133 * font.c (font_at): If the window W is not on a window system,
15134 return Qnil.
15135
15136 * coding.c (produce_chars, encode_coding): Don't call
15137 insert_from_gap if no characters to produce.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15142 Fclear_face_cache.
15143
15144 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15145
151462008-02-01 Miles Bader <miles@gnu.org>
15147
15148 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15149 Parse "--disable-font-backend" option.
15150 (standard_args): Add "--disable-font-backend" option.
15151
151522008-02-01 Kenichi Handa <handa@m17n.org>
15153
15154 * fontset.c (fontset_find_font): New function.
15155 (fontset_font): Use fontset_find_font.
15156 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15157 Register the specified font for all Latin characters.
15158 (new_fontset_from_font): Register the specified font for all Latin
15159 characters.
15160 (dump_fontset): For a realized fontset, include the base fontset
15161 name in the returned vector.
15162
151632008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * character.h (CHAR_STRING): Cast C to unsigned on calling
15166 char_string.
15167
15168 * character.c (char_string): Type of arg C changed to unsigned.
15169 Signal an error if C is an invalid character code.
15170
15171 * editfns.c (general_insert_function, Fchar_to_string):
15172 Use CHARACTERP, not INTEGERP.
15173
151742008-02-01 Kenichi Handa <handa@m17n.org>
15175
15176 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15177 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15178
15179 * regex.c (analyse_first): Fix for multibyte characters in "case
15180 charset:" and "case categoryspec:".
15181
151822008-02-01 Andreas Schwab <schwab@suse.de>
15183
15184 * Makefile.in (LIBES): Move standard libraries to the end.
15185
151862008-02-01 Kenichi Handa <handa@m17n.org>
15187
15188 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15189 nonzero, don't shrink the buffer nextb.
15190
15191 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15192
15193 * coding.c (coding_alloc_by_making_gap): New arg offset.
15194 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15195 offset.
15196 (decode_coding_iso_2022): Update coding->safe_charsets.
15197 (decode_coding_gap): Temporarily set
15198 current_buffer->text->inhibit_shrinking to 1.
15199
152002008-02-01 Kenichi Handa <handa@m17n.org>
15201
15202 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15203 indexing into elements of s->cmp and s->char2b.
15204
152052008-02-01 Juanma Barranquero <lekktu@gmail.com>
15206
15207 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15208
152092008-02-01 Kenichi Handa <handa@m17n.org>
15210
15211 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15212 target_multibyte instead of multibyte.
15213 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15214 (bcmp_translate): Change the argument name from multibyte to
15215 target_multibyte.
15216
152172008-02-01 Kenichi Handa <handa@m17n.org>
15218
15219 These changes are to compile a regexp into a pattern that can be
15220 used both for multibyte and unibyte targets.
15221
15222 * Makefile.in (search.o): Depend on charset.h.
15223
15224 * character.c (multibyte_char_to_unibyte_safe): New function.
15225
15226 * search.c: Include "charset.h".
15227 (compile_pattern_1): Delete argument multibyte. Don't set
15228 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15229 (compile_pattern): Don't compare cp->buf.target_multibyte.
15230 Compare cp->buf.charset_unibyte.
15231 (compile_pattern): Set cp->buf.target_multibyte.
15232
15233 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15234
15235 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15236
15237 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15238 multibyte. Change callers.
15239 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15240 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15241 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15242 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15243 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15244 (regex_compile): Make the compiled pattern usable both for
15245 multibyte and unibyte targets.
15246 (analyse_first): Make the fastmap usable both for multibyte and
15247 unibyte targets.
15248 (TRANSLATE_VIA_MULTIBYTE): Delete.
15249 (re_match_2_internal): Pay attention to the case that the
15250 multibyteness of bufp and target may be different.
15251
152522008-02-01 Kenichi Handa <handa@m17n.org>
15253
15254 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15255 empty box occupy at least one column width.
15256
152572008-02-01 Miles Bader <miles@gnu.org>
15258
15259 * Makefile.in: Remove redundant HAVE_XFT clause.
15260
152612008-02-01 Kenichi Handa <handa@m17n.org>
15262
15263 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15264
152652008-02-01 Kenichi Handa <handa@m17n.org>
15266
15267 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15268 being nil.
15269
152702008-02-01 Kenichi Handa <handa@m17n.org>
15271
15272 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15277
152782008-02-01 Kenichi Handa <handa@m17n.org>
15279
15280 * search.c (simple_search): Fix previous change.
15281
152822008-02-01 Kenichi Handa <handa@m17n.org>
15283
15284 * xftfont.c (ftfont_font_format): Extern declaration.
15285
15286 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15287
15288 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15289 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15290
15291 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15292 (ftfont_font_format): Fix previous change.
15293
15294 * font.h (Ffont_xlfd_name): EXFUN it.
15295
15296 * font.c (font_parse_xlfd): Fix the array size of `f'.
15297 (register_font_driver): Use EQ to compare driver->type.
15298
15299 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15300 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15301 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15302
153032008-02-01 Kenichi Handa <handa@m17n.org>
15304
15305 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15306 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15307
153082008-02-01 Kenichi Handa <handa@m17n.org>
15309
15310 * xfont.c (xfont_open): Set font->format.
15311
15312 * xftfont.c (xftfont_open): Set font->format.
15313
15314 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15315 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15316 (ftfont_open): Set font->format.
15317 (ftfont_font_format): New function.
15318
15319 * font.h (struct font): New member format.
15320
15321 * font.c (Qopentype): New variable.
15322 (syms_of_font): Defsym it.
15323 (Fquery_font): Change the format of the last element of the return
15324 value.
15325
153262008-02-01 Kenichi Handa <handa@m17n.org>
15327
15328 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15329 last resort.
15330
153312008-02-01 Kenichi Handa <handa@m17n.org>
15332
15333 * coding.c (detect_coding_charset): Fix detection of multi-byte
15334 charset.
15335
153362008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15337
15338 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15339
153402008-02-01 Kenichi Handa <handa@m17n.org>
15341
15342 * xdisp.c (get_next_display_element): Set it->face_id for the
15343 first component of a composition.
15344 (x_produce_glyphs): Check if the font is changed or not for composition.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * fontset.c (Qlatin): New variable.
15349 (syms_of_fontset): Define it as a lisp symbol.
15350 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * font.c (font_unparse_fcname): Pay attention to the case that
15355 some of font property is a null string.
15356
153572008-02-01 Kenichi Handa <handa@m17n.org>
15358
15359 * term.c: Include "composite.h".
15360 (encode_terminal_code): Output all components of composition.
15361 Check the size of encode_terminal_src.
15362 (produce_glyphs): For composition, call produce_composite_glyph.
15363 (append_composite_glyph, produce_composite_glyph): New functions.
15364
15365 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15366 is not found, get font_info from the current ascii face.
15367
153682008-02-01 Kenichi Handa <handa@m17n.org>
15369
15370 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15371 buffer-file-name to Qnil before calling insert_from_buffer.
15372
15373 * font.c (font_unparse_fcname): Pay attention to the case that
15374 foundry is a null string.
15375
153762008-02-01 Kenichi Handa <handa@m17n.org>
15377
15378 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15379
15380 * font.c (Qunicode_sip): New variable.
15381 (syms_of_font): Declare it as a Lisp symbol.
15382
15383 * font.h (Qunicode_sip): Extern it.
15384
153852008-02-01 Kenichi Handa <handa@m17n.org>
15386
15387 * composite.c (get_composition_id): Pay attention to TAB component.
15388
15389 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15390 TAB. Adjust for the change of s->char2b which always points to
15391 the first element of allocated memory.
15392
15393 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15394
15395 * xdisp.c (handle_composition_prop): Set it->c to the first
15396 non-TAB component.
15397 (fill_composite_glyph_string): Change argument.
15398 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15399 (x_produce_glyphs): Fix handling of left/right padding.
15400
154012008-02-01 Kenichi Handa <handa@m17n.org>
15402
15403 * coding.c (detect_coding_system): Fix for handling off
15404 inhibit_iso_escape_detection. Fix for the case that no coding
15405 system is defined for a specific coding category.
15406
154072008-02-01 Kenichi Handa <handa@m17n.org>
15408
15409 * font.c (font_matching_entity): Delete unused local var.
15410
15411 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15412 opening a font.
15413
15414 * fileio.c (Finsert_file_contents): On recovering a file, assume
15415 Unix-like eol.
15416 (choose_write_coding_system): On auto-saving a file, force
15417 Unix-like eol.
15418
15419 * coding.c (setup_coding_system): Fix setting of
15420 coding->common_flags based on eol_type.
15421 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15422 inherit from it.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * alloc.c (NSTATICS): Increas to 0x600.
15427
154282008-02-01 Kenichi Handa <handa@m17n.org>
15429
15430 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15431 (ftfont_list): Don't check :name property.
15432 (ftfont_match): New function.
15433 (ftfont_pattern_entity): If the pattern doesn't contain
15434 FC_SPACING, don't assume FC_MONO.
15435
15436 * font.h (struct font_driver): New member `match'.
15437 (font_update_drivers): Adjust prototype.
15438
15439 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15440 property of FONT.
15441 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15442 them unconditionally.
15443 (font_matching_entity): New function.
15444 (font_open_by_name): Try font_matching_entity if exact match is
15445 not found.
15446 (font_update_drivers): Delete the arg FONT. Return a list of
15447 actually used backends. Don't free faces, font caches here.
15448 Don't store data in frame parameters. Don't call x_set_font.
15449 (Ffont_spec): Store :name property as is.
15450 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15451 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15452 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15453 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15454 Call font->driver->otf_gsub instead of font_otf_gsub.
15455
15456 * frame.c (x_set_font_backend): Do more works that were done in
15457 font_update_drivers before.
15458
15459 * xfont.c (xfont_match): New function.
15460 (xfont_driver): Set xfont_driver.match to xfont_match.
15461 (xfont_draw): Set font in GC if necessary.
15462
15463 * ftxfont.c (ftxfont_match): New function.
15464 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15465
15466 * xftfont.c (xftfont_match): New function.
15467 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15468
154692008-02-01 Kenichi Handa <handa@m17n.org>
15470
15471 * font.h (struct font): New member scalable.
15472 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15473 (font_otf_gsub): Adjust prototype.
15474
15475 * font.c (font_otf_capability): Fix handling of the default langsys.
15476 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15477 Check the contents of SPEC.
15478 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15479 (check_gstring): New function.
15480 (REPLACEMENT_CHARACTER): New macro.
15481 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15482 glyph codes of GSTRING.
15483 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15484 (font_prepare_composition): Set cmp->glyph_len.
15485 (font_open_entity): Set font->scalable.
15486 (Ffont_get): Handle :otf property.
15487 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15488 functions.
15489 (Fquery_font): Use font->font.full_name.
15490 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15491 Sfont_otf_alternates.
15492
15493 * ftfont.c (ftfont_open): Set font->font.full_name and
15494 font->font.name properly. Fix calculation of font->font.height
15495 and font->min_width.
15496
15497 * ftxfont.c (ftxfont_create_gcs): New function.
15498 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15499 (ftxfont_draw_backgrond): Fix filling region.
15500 (ftxfont_default_fid): New function.
15501 (ftxfont_open): Set xfont->fid to the return value of
15502 ftxfont_default_fid.
15503 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15504 (ftxfont_done_face): Free only GCs that are created by
15505 ftxfont_create_gcs.
15506 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15507
15508 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15509 Clip to src->width, etc (not src->clip_XXX).
15510
15511 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15512 FontBackend frame parameter.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * font.h (struct font_driver_list): New member `on'.
15517 (Fclear_font_cache): EXFUN it.
15518 (font_update_drivers): Extern it.
15519
15520 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15521 (font_list_entities): Check driver_list->on.
15522 (register_font_driver): Initalize `on' member to 0.
15523 (font_update_drivers): New function.
15524 (Fclear_font_cache): Check driver_list->on.
15525
15526 * frame.h (Qfont_backend): Extern it.
15527 (x_set_font_backend): Extern it.
15528
15529 * frame.c (Qfont_backend): New variable.
15530 (frame_parms): New element for font-backend.
15531 (x_set_font_backend): New function.
15532
15533 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15534 FontBackend frame parameter.
15535 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15536 x_set_font_backend.
15537
15538 * xfont.c (xfont_list): Don't try listing by :name property if the
15539 name is not for XLFD.
15540
155412008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15544 (LGLYPH_SET_TO): New macros.
15545 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15546 element of G is vector or not.
15547 (font_at): Extern it.
15548
15549 * font.c: Include window.h.
15550 (font_lispy_object): New function.
15551 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15552 end of valid glyph.
15553 (font_close_object): Fix getting (struct font *).
15554 (font_at): New function.
15555 (Ffont_get): If FONT is a font-object, get entity from it.
15556 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15557 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15558 range check.
15559 (Ffont_at): New function.
15560 (syms_of_font): Defsubr Sfont_at.
15561
15562 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15563 before the entry for Qcomposition.
15564 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15565 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15566 the font in gstring.
15567 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15568 LGLYPH_FORM (g) to detect the end of valid glyph.
15569 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15570 we are composing with gstring.
15571
15572 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15573 Check if adjustment is vector or not.
15574
15575 * Makefile.in (font.o): Make it depends on window.h.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15580 adjustment is vector or not.
15581
155822008-02-01 Miles Bader <miles@gnu.org>
15583
15584 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15589 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15590 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15591
15592 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15593 (DEVICE_DELTA): Fix typo.
15594 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15595 LGLYPH format.
15596
15597 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15598 the change of LGLYPH format.
15599
156002008-02-01 Kenichi Handa <handa@m17n.org>
15601
15602 * ftfont.c (ftfont_list): Fix typo.
15603 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15604
156052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15606
15607 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15608
15609 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15610 xftface_info is non-NULL.
15611
156122008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15613
15614 * ftfont.c (ftfont_list): Move misplaced #endif.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * ftfont.c (ftfont_list): Pay attention to the case that
15619 FC_CAPABILITY is not defined.
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * xftfont.c (xftfont_open): Set charset related members to -1.
15624
15625 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15626 QCname.
15627 (ftfont_open): Set charset related members to -1.
15628
15629 * fontset.c (Votf_script_alist): New variable.
15630 (syms_of_fontset): Initialize it.
15631 (fontset_font): Delete unused variable.
15632
15633 * fontset.h (Votf_script_alist): Extern it.
15634
15635 * font.c (font_find_for_lface): Optimize code.
15636
15637 * font.h (font_close_object, font_merge_old_spec): Extern them.
15638
156392008-02-01 Kenichi Handa <handa@m17n.org>
15640
15641 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15642 (syms_of_font): Initialize them.
15643 (font_pixel_size): Allow float value in dpi.
15644 (font_prop_validate_type): Delete.
15645 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15646 Change caller.
15647 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15648 (font_prop_validate_extra): Delete.
15649 (font_prop_validate_spacing): New function.
15650 (font_property_table): Add elements for all known properties.
15651 (get_font_prop_index): Rename from check_font_prop_name. New
15652 argument FROM. Change caller.
15653 (font_prop_validate): Validate all known properties.
15654 (font_put_extra): Delete argument force. Change caller.
15655 (font_expand_wildcards): Make it static. Fix the way of shrinking
15656 the possible range.
15657 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15658 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15659 Change caller.
15660 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15661 (font_parse_fcname): Delete argument merge. Fix parsing of point
15662 size. Don't validate properties values here. Change caller.
15663 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15664 (font_open_by_name): Delete unused variable.
15665 (Ffont_spec): Likewise. Validate property values.
15666 (Ffont_match_p): New function.
15667
15668 * font.h (QCscalable): Extern it.
15669 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15670
15671 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15672
15673 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15674 (xfont_list_pattern): New function.
15675 (xfont_list): Use xfont_list_pattern.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * font.h (Flist_fonts): EXFUN it.
15680
156812008-02-01 Jason Rumney <jasonr@gnu.org>
15682
15683 * w32term.c (w32_initialize): Add back smoothing_type and
15684 smoothing_enabled definitions.
15685
156862008-02-01 Kenichi Handa <handa@m17n.org>
15687
15688 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15689 s->face->font on determining underline position.
15690
156912008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15694 (font_has_char): Accept font-object too.
15695 (font_find_for_lface): Try at first with a size specified in face.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15700 font_open_by_name.
15701
157022008-02-01 Kenichi Handa <handa@m17n.org>
15703
15704 * font.h (QCspacing, QCdpi): Extern them.
15705 (enum font_spacing): New enum.
15706 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15707
15708 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15709 (QCspacing, QCdpi): New variables.
15710 (syms_of_font): Initialize them.
15711 (font_pixel_size): New function.
15712 (font_put_extra): New function.
15713 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15714 in FONT_EXTRA.
15715 (font_parse_fcname): Handle enumerated values (e.g. bold).
15716 Fix handling font size. Add QCname property that contains only
15717 unknown properties.
15718 (font_score): Change argument. Change caller. Pay attention to
15719 FONT_PIXEL_SIZE_QUANTUM.
15720 (font_sort_entites, font_list_entities, font_find_for_lface)
15721 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15722 (Ffont_spec): Add QCname property that contains only unknown properties.
15723
15724 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15725 include weight in listing pattern, instead check weight of each
15726 listed font. Don't include scalable in pattern. Pay attention to
15727 FONT_PIXEL_SIZE_QUANTUM.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * font.c (font_parse_fcname): Fix parsing of point-size.
15732 (font_unparse_fcname): Produce symbolic names for style properties.
15733 (font_list_entities): Handle float size correctly.
15734 (font_open_by_name): Prefer `normal' property values if the name
15735 doesn't specify them.
15736
15737 * fontset.c (Finternal_char_font): Use font_get_name, not
15738 Ffont_xlfd_name.
15739
15740 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15741 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15742 pattern. Don't force scalable.
15743
15744 * xftfont.c (xftfont_open): For generating a name, start from
15745 96-byte buffer.
15746
157472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15748
15749 * frame.h (x_new_fontset2): Fix prototype.
15750
157512008-02-01 Kenichi Handa <handa@m17n.org>
15752
15753 * font.h (struct font_driver): Delete member parse_name.
15754 (font_match_p, font_get_spec, font_parse_fcname)
15755 (font_unparse_fcname): Extern them.
15756 (font_get_name): Adjust prototype.
15757
15758 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15759 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15760 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15761 unnecessary checks for weight, slant, and swidth.
15762 (font_parse_fcname): New function.
15763 (font_unparse_fcname): New function.
15764 (font_parse_name): New function.
15765 (font_match_p): New function.
15766 (font_get_name): Change return value to Lisp string.
15767 (font_get_spec): New function.
15768 (Qunspecified, Qignore_defface): Don't extern them.
15769 (font_find_for_lface): Assume that LFACE is fully specified.
15770 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15771 object, use it for FACE.
15772 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15773 driver->parse_name.
15774 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15775
15776 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15777 prototype.
15778
15779 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15780 argument F. Don't call Fnew_fontset. Instead, directly call
15781 make_fontset.
15782
15783 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15784
15785 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15786 of x_new_fontset2.
15787
15788 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15789 (Qsans__serif): New variables.
15790 (ftfont_generic_family_list): New variable.
15791 (syms_of_ftfont): Initialize the above variables.
15792 (ftfont_pattern_entity): Delete argument NAME.
15793 (ftfont_list_generic_family): New function.
15794 (ftfont_parse_name): Delete this function.
15795 (ftfont_list): Try generic family only when FcFontList found no font.
15796 (ftfont_list_family): Fix args to FcObjectSetBuild.
15797
15798 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15799 object in attrs[LFACE_FONT_INDEX].
15800 (set_lface_from_font_name): Cancel all changes for font-backend.
15801 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15802 function.
15803 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15804 font object in QCfont attribute.
15805 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15806 (realize_default_face) [USE_FONT_BACKEND]: Call
15807 set_lface_from_font_and_fontset.
15808
15809 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15810 "fixed", and signal error here if no suitable font was found.
15811
15812 * xfont.c (xfont_parse_name): Delete this function.
15813
15814 * xftfont.c (xftfont_open): Change coding style of error
15815 handling. Generate fontconfig's fontname pattern.
15816
15817 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15818 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15819
15820 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15821 Both args FONTSET and FONT_OBJECT must be existing ones.
15822
158232008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15824
15825 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15826
158272008-02-01 Kenichi Handa <handa@m17n.org>
15828
15829 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15830
15831 * font.h (struct font): Fix typo.
15832
15833 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15834 XLFD_XXX_INDEX.
15835 (enum xlfd_field_mask): New enum.
15836 (intern_font_field): Changed argument. Change caller. If digits
15837 are followed by non-digits, return a symbol.
15838 (font_expand_wildcards): New function.
15839 (font_parse_xlfd): Fix wildcard handling.
15840 (Ffont_spec): If :name is specified, reflect the info in the other
15841 properties.
15842
15843 * ftfont.c (ftfont_pattern_entity): Fix typo.
15844 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15845 locale.
15846
158472008-02-01 Kenichi Handa <handa@m17n.org>
15848
15849 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15850
15851 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15852 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15853 registry doesn't specify encoding part.
15854 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15855 (font_open_by_name): At first try parsing the name.
15856 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15857 as Lisp symbols.
15858
15859 * fontset.c (reorder_font_vector): Pay attention to the case that
15860 the 3rd element of font_def is nil.
15861 (fontset_font): For the default fontset, append one more fontset
15862 elements for a script-based font specification. Don't add script
15863 attribute on finding a font.
15864 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15865 font name.
15866 (fontset_ascii_font): If a font can't be opened, return nil.
15867
15868 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15869 (ftfont_pattern_entity): New function.
15870 (ftfont_get_cache): Assume that freetype_font_cache is already
15871 initialized.
15872 (ftfont_list): Handle the case that a file is specified in font
15873 name. Use ftfont_pattern_entity to generate entities.
15874 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15875 (syms_of_ftfont): Initialize freetype_font_cache.
15876
15877 * xftfont.c (xftfont_open): Make the font name fontconfig's
15878 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15879 (xftfont_close): Free font->font.name if not NULL.
15880
15881 * xfont.c (xfont_list): If script is specified for a font, return
15882 null_vector.
15883 (xfont_list_family): Declare argument type.
15884
15885 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15886 name, set LFACE_FONT (lface) to nil.
15887
15888 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15889 return Qnil.
15890
158912008-02-01 Kenichi Handa <handa@m17n.org>
15892
15893 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15894 (standard_args): Add "-enable-font-backend".
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15899 (struct xftdraw_list, xftdraw_list): Delete them.
15900 (register_xftdraw, check_xftdraw): Delete them.
15901 (xftfont_prepare_face): Don't call register_xftdraw.
15902 (xftfont_done_face): Don't call check_xftdraw.
15903 (xftfont_draw): Get background color only when with_background is
15904 nonzero.
15905
15906 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 These changes are for the new font handling codes.
15911
15912 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15913 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15914 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15915 (FONTSRC, FONTOBJ): New variables.
15916 (obj): Add $(FONTOBJ).
15917 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15918 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15919 @LIBOTF_LIBS@.
15920 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15921 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15922
15923 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15924
15925 * character.h (Vscript_representative_chars): Extern it.
15926
15927 * character.c (Vscript_representative_chars): New variable.
15928 (syms_of_character): Declare it as a Lisp variable.
15929
15930 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15931 enable_font_backend is nonzero, accept the composition method
15932 COMPOSITION_WITH_GLYPH_STRING.
15933
15934 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15935 enumeration COMPOSITION_WITH_GLYPH_STRING.
15936
15937 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15938 members clip_x, clip_y, clip_width, and clip_height.
15939 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15940
15941 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15942 --enable-font-backend. Call syms_of_font.
15943
15944 * fns.c (assoc_no_quit): New function.
15945
15946 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15947 (face_for_font, new_fontset_from_font)
15948 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15949
15950 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15951 (fontset_font, fontset_ascii, face_for_char)
15952 (make_fontset_for_ascii_face, Ffont_info)
15953 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15954 is nonzero, use font-backend mechanism.
15955 (find_font_encoding): Make it non-static.
15956 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15957 New functions.
15958
15959 * frame.h (struct frame): New members resx and resy.
15960 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15961 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15962
15963 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15964 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15965
15966 * lisp.h (assoc_no_quit): Extern it.
15967
15968 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15969 Through out the file, use FONT_INFO_FROM_FACE instead of
15970 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15971 rif->per_char_metric.
15972 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15973 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15974 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15975 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15976 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15977 nonzero, use font-backend mechanism.
15978 (get_per_char_metric): New function.
15979
15980 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15981 (set_lface_from_font_name)
15982 (set_font_frame_param, free_realized_face)
15983 (prepare_face_for_display, clear_face_gcs)
15984 (Finternal_set_font_selection_order, realize_x_face)
15985 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15986 font-backend mechanism.
15987 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15988 (load_face_font) [USE_FONT_BACKEND]: Abort.
15989 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15990 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15991
15992 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15993 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15994 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15995 nonzero, register all available font drivers. Call
15996 x_default_font_parameter for deciding a font.
15997 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15998
15999 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16000 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16001 (x_set_glyph_string_clipping_exactly)
16002 (x_compute_glyph_string_overhangs)
16003 (x_draw_glyph_string_foreground)
16004 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16005 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16006 enable_font_backend is nonzero, use font-backend mechanism.
16007 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16008
160092008-02-01 Kenichi Handa <handa@m17n.org>
16010
16011 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16012 system_eol_type.
16013 (syms_of_coding): Initialize system_eol_type.
16014
16015 * process.c (Fset_process_coding_system): Inherit system's eol
16016 format if necessary.
16017
160182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16019
16020 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * coding.c (decode_eol): Pay attention to buffer relocation in
16025 del_range_2.
16026 (decode_coding): Call decode_eol before restoring undo_list.
16027
160282008-02-01 Kenichi Handa <handa@m17n.org>
16029
16030 * charset.c (Fdefine_charset_internal): Fix setting of
16031 emacs_mule_bytes.
16032
160332008-02-01 Kenichi Handa <handa@m17n.org>
16034
16035 * keyboard.c (read_char): Check if C is a character or not before
16036 looking up Vkeyboard_translate_table.
16037
160382008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16041 condition to terminate the loop.
16042
160432008-02-01 Kenichi Handa <handa@m17n.org>
16044
16045 * coding.c (produce_composition): Compare charbuf[i] instead of
16046 args[i] against 0.
16047 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16052 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16053 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16054 detect_coding.
16055 (emacs_mule_char): Handle old style (Emacs 20) component character
16056 of a composition.
16057 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16058 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16059 composition rule.
16060 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16061
160622008-02-01 Kenichi Handa <handa@m17n.org>
16063
16064 * coding.c (encode_coding_ccl): Allocate destination dynamically
16065 when necessary.
16066
160672008-02-01 Kenichi Handa <handa@m17n.org>
16068
16069 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16070 the loop. When quitted, show a proper error message.
16071
160722008-02-01 Kenichi Handa <handa@m17n.org>
16073
16074 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16075 src->clip_head and src->clip_tail temporarily instead of src->hl.
16076
16077 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16078 character sequence.
16079 (Fccl_execute_on_string): Use ASET, not XSET.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16084
160852008-02-01 Kenichi Handa <handa@m17n.org>
16086
16087 * coding.c (decode_coding): Fix the condition of terminating the
16088 decoding loop.
16089
160902008-02-01 Kenichi Handa <handa@m17n.org>
16091
16092 * data.c (Faset): On setting a character bigger than 255 in a
16093 unibyte string, signal an error instead of make the string multibyte.
16094
160952008-02-01 Kenichi Handa <handa@m17n.org>
16096
16097 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16098 made by a mapping table.
16099
161002008-02-01 Kenichi Handa <handa@m17n.org>
16101
16102 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16103 not.
16104 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16105 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16106
16107 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16108 s->face is NULL or not.
16109
161102008-02-01 Kenichi Handa <handa@m17n.org>
16111
16112 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16113 (x_draw_glyph_string): Fix drawing of right_overhang and
16114 left_overhang around/on cursor.
16115
16116 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16117
161182008-02-01 Kenichi Handa <handa@m17n.org>
16119
16120 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * coding.c (Fdefine_coding_system_internal)
16125 (Fdefine_coding_system_alias): Avoid a duplicated element in
16126 Vcoding_system_alist.
16127
161282008-02-01 Kenichi Handa <handa@m17n.org>
16129
16130 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16131
16132 * coding.c (Qcoding_system_define_form): New variable.
16133 (syms_of_coding): Intern and staticpro it.
16134 (Fcoding_system_p): Check Qcoding_system_define_form.
16135 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16136
16137 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16138 Fcoding_system_p.
16139 (CHECK_CODING_SYSTEM): If ID is not available, call
16140 Fcheck_coding_system.
16141 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16142 Try also Fcheck_coding_system.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * coding.c (code_conversion_restore): GCPRO arg.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * character.c (lisp_string_width): Check multibyteness of STRING.
16151
161522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16153
16154 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16155 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16156 (decode_mac_font_name): Use decode_coding_c_string instead of
16157 decode_coding.
16158 (x_load_font): Initialize fontp->fontset to -1. Set
16159 fontp->encoding_type.
16160
161612008-02-01 Kenichi Handa <handa@m17n.org>
16162
16163 * search.c (search_buffer): Give up BM search on case-fold-search
16164 if one of a target character has a case-equivalence of different
16165 byte length even if that target charcter is an ASCII.
16166 (simple_search): Fix calculation of byte length of matched text.
16167 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16168
161692008-02-01 Kenichi Handa <handa@m17n.org>
16170
16171 * coding.c (decode_coding): Fix handling of invalid bytes.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16176 Unicode characters.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * coding.c (encode_coding_object): If a pre-write-conversion
16181 function makes a new buffer, kill it.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * coding.c (QCascii_compatible_p): New variable.
16186 (syms_of_coding): Initialize it.
16187 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16188 calling string_char.
16189 (record_conversion_result): Add `default:' case.
16190 (coding_charset_list): Delete unused variable `coding_type'.
16191 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16192 property in the plist of the coding system.
16193 (Fcoding_system_put): Check QCascii_compatible_p.
16194
161952008-02-01 Miles Bader <miles@gnu.org>
16196
16197 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16198 removed calculation of frame `f', as it's now used.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16203 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16204 (UNIDATA): New variable.
16205 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16206 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16207 $(RUN_TEMACS) unconditionally.
16208
162092008-02-01 Kenichi Handa <handa@m17n.org>
16210
16211 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16212 (admindir): New variable.
16213 ($(lispsource)international/charprop.el): New target.
16214
162152008-02-01 Miles Bader <miles@gnu.org>
16216
16217 * character.c (chars-in-region): Remove obsolete function.
16218 (syms_of_character): Remove its initialization.
16219
162202008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16221
16222 * w32select.c (validate_coding_system)
16223 (setup_windows_coding_system): New functions.
16224 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16225 setup_windows_coding_system.
16226 (setup_config, Fw32_get_clipboard_data): Use
16227 validate_coding_system.
16228 (Fx_selection_exists): Move call to setup_config to a place
16229 where signals are allowed.
16230
16231 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16232 (Fcheck_coding_system): Add declarations.
16233
162342008-02-01 Kenichi Handa <handa@m17n.org>
16235
16236 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16237
162382008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16239
16240 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16241 string as the second argument for x_new_fontset.
16242
162432008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16246 (encode_coding_object): Use safe_call instead of call2.
16247
162482008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16251
16252 * Makefile.in (lisp): Include charprop.el.
16253
162542008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16255
16256 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16257 Not sure if it's unnecessary.
16258
162592008-02-01 Steven Tamm <steventamm@mac.com>
16260
16261 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16262 some possibly unnecessary fontset checking code that crashed
16263 when creating a new frame.
16264
162652008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16268 lookup_face.
16269
16270 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16271
16272 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16277 (coding_charset_list): New function.
16278
16279 * coding.h (coding_charset_list): Extern it.
16280
162812008-02-01 Kenichi Handa <handa@m17n.org>
16282
16283 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16284 concatenation of family and registry.
16285
162862008-02-01 Kenichi Handa <handa@m17n.org>
16287
16288 * character.h (BYTE8_STRING): Fix typo.
16289
16290 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16291 string to multibyte (sync to HEAD).
16292
16293 * casefiddle.c (casify_region): Handle changes in byte-length
16294 using replace_range_2 (sync to HEAD).
16295
162962008-02-01 Andreas Schwab <schwab@suse.de>
16297
16298 * chartab.c (map_char_table): GCPRO table and arg.
16299
163002008-02-01 Kenichi Handa <handa@m17n.org>
16301
16302 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16303 already at limit.
16304
163052008-02-01 Kenichi Handa <handa@m17n.org>
16306
16307 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16308 instead of fast_c_string_match_ignore_case.
16309 (find_font_encoding): Change argument to Lisp_Object. Use
16310 fast_string_match_ignore_case instead of
16311 fast_c_string_match_ignore_case. Change caller.
16312
163132008-02-01 Kenichi Handa <handa@m17n.org>
16314
16315 * xdisp.c (get_next_display_element): In unibyte case, decide to
16316 display in octal form by checking a character by
16317 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16318
16319 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16320
16321 * character.c (unibyte_has_multibyte_table): New variable.
16322
16323 * character.h (unibyte_has_multibyte_table): Extern it.
16324 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16325
163262008-02-01 Kenichi Handa <handa@m17n.org>
16327
16328 * coding.c (encode_coding_iso_2022): Fix handling of charset
16329 annotation.
16330
163312008-02-01 Kenichi Handa <handa@m17n.org>
16332
16333 * coding.c (setup_coding_system): If coding_system is nil, use
16334 Qundecided.
16335 (Fterminal_coding_system): Return nil if terminal coding system is
16336 `undecided'.
16337 (syms_of_coding): Define coding-system `undecided' here. Setup
16338 terminal_coding as `undecided'.
16339
163402008-02-01 Kenichi Handa <handa@m17n.org>
16341
16342 * xdisp.c (message_dolog, set_message_1): Call
16343 unibyte_char_to_multibyte with arg type int.
16344
16345 * lread.c (read1): Fix reading of a char-table.
16346
16347 * print.c (print_object): Include sub char-table in circularities
16348 detection.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16353 Append the found sequences in car of ARGS instead of prepending.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * fileio.c (report_file_error): Make a unibyte string from
16358 strerror (errorno).
16359 (Fsubstitute_in_file_name): Fix the arg to
16360 unibyte_char_to_multibyte. It is evaluated twice.
16361
163622008-02-01 Kenichi Handa <handa@m17n.org>
16363
16364 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16365
163662008-02-01 Kenichi Handa <handa@m17n.org>
16367
16368 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16369 BOM is not found.
16370 (detect_coding, detect_coding_system): Optimization for ISO-2022
16371 when no 8-bit data is found.
16372
163732008-02-01 Jason Rumney <jasonr@gnu.org>
16374
16375 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16376
163772008-02-01 Kenichi Handa <handa@m17n.org>
16378
16379 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16380 CHARS.
16381
163822008-02-01 Steven Tamm <steventamm@mac.com>
16383
16384 * macterm.c (mac_encode_char): Add charset argument and update
16385 to use encoding_type.
16386 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16387 switch to pure fontset.
16388 (decode_mac_font_name): Temporarily remove decoding.
16389 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16390 (x_load_font): Temporarily remove encoding.
16391
163922008-02-01 Kenichi Handa <handa@m17n.org>
16393
16394 * xfaces.c (Fface_font): If frame is not on a window system,
16395 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16396 refer to face->font.
16397 (split_font_name_into_vector, build_font_name_from_vector)
16398 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16399 when HAVE_WINDOW_SYSTEM is defined.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16404 (x_produce_glyphs): Fix setting of members of cmp in case
16405 cmp->glyph_len is zero.
16406
16407 * fontset.c (Fset_fontset_font): Fix docstring.
16408 (Ffontset_info): Make it backward compatible. New arg ALL.
16409
164102008-02-01 Kim F. Storm <storm@cua.dk>
16411
16412 * process.c (read_process_output): Grow decoding_buf when needed;
16413 this could cause a crash in allocate_string and compact_small_strings.
16414
164152008-02-01 Kenichi Handa <handa@m17n.org>
16416
16417 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16418
164192008-02-01 Kenichi Handa <handa@m17n.org>
16420
16421 * coding.c (setup_coding_system): Set coding->common_flags
16422 correctly for raw-text.
16423 (consume_chars): On encoding unibyte text by raw-text, don't check
16424 multibyte form.
16425 (encode_coding): On encoding by raw-text, never use translation tables.
16426
16427 * fileio.c (e_write): Short cut for the case of no encoding.
16428
164292008-02-01 Kenichi Handa <handa@m17n.org>
16430
16431 * coding.c (detect_coding, detect_coding_system): Delete unused
16432 variables.
16433
164342008-02-01 Kenichi Handa <handa@m17n.org>
16435
16436 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16437 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16438
164392008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * coding.c (Ffind_coding_systems_region_internal): Include
16442 raw-text and no-conversion in the result.
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16447 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16448 FONT_DEF.
16449 (font_def_arg, add_arg, from_arg, to_arg): New args.
16450 (set_fontset_font): Change argument.
16451 (Fset_fontset_font): Fix for the case that TARGET is a script
16452 name and charset name.
16453 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16454
164552008-02-01 Kenichi Handa <handa@m17n.org>
16456
16457 * fontset.c (fontset_font): Rename from fontset_face. Change return
16458 value.
16459 (face_suitable_for_char_p, face_for_char): Adjust for the change
16460 of fontset_font.
16461 (make_fontset_for_ascii_face): Fix setting of the fontset element
16462 for ASCII.
16463 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16464 to get a font name.
16465 (Ffontset_info): Adjust for the change of fontset_font.
16466
16467 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16468
16469 * character.h (LEADING_CODE_LATIN_1_MIN)
16470 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16471
164722008-02-01 Kenichi Handa <handa@m17n.org>
16473
16474 * editfns.c (check_translation): New function.
16475 (Ftranslate_region_internal): Handle M:N mapping.
16476
164772008-02-01 Kenichi Handa <handa@m17n.org>
16478
16479 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16480
164812008-02-01 Kenichi Handa <handa@m17n.org>
16482
16483 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16484 goto invalid_code.
16485 (decode_coding_iso_2022): Fix handling of invalid designation.
16486
16487 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16488 after calling code_conversion_save.
16489
164902008-02-01 Kenichi Handa <handa@m17n.org>
16491
16492 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16493
16494 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16495
16496 * fontset.c: Include "intervals.h".
16497 (fontset_face): Fix comparing of Lisp_Objects.
16498 (free_face_fontset, new_fontset_from_font_name): Fix
16499 Lisp_Object/int mixup.
16500
16501 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16502
16503 * coding.c: Add many prototypes for static functions.
16504 (get_translation_table): Allow max_lookup to be NULL.
16505 (decode_coding, Ffind_coding_systems_region_internal)
16506 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16507 get_translation_table with max_lookup NULL.
16508
165092008-02-01 Kenichi Handa <handa@m17n.org>
16510
16511 * coding.c (get_translation_table): Declare it as Lisp_Object.
16512 (LOOKUP_TRANSLATION_TABLE): New macro.
16513 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16514 instead of CHAR_TABLE_REF.
16515
165162008-02-01 Kenichi Handa <handa@m17n.org>
16517
16518 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16519 annotation data format.
16520 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16521 Change arguments FROM and TO to single argument NCHARS. Change caller.
16522 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16523 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16524 (decode_coding_ccl, decode_coding_charset): Pay attention to
16525 coding->charbuf_used.
16526 (get_translation): New function.
16527 (produce_chars): New arguments translation_table and last_block.
16528 Translate characters here. Return number of carryover chars.
16529 Change caller.
16530 (produce_composition): New argument pos. Change caller.
16531 Adjust for the change of annotation data format.
16532 (produce_charset, produce_annotation): Likewise.
16533 (decode_coding, encode_coding): Don't call translate_chars.
16534 (consume_chars): New arg translation_table. Change caller.
16535 (translate_chars): Delete.
16536 (syms_of_coding): Make translation-table's number of extra slots 2.
16537
165382008-02-01 Kenichi Handa <handa@m17n.org>
16539
16540 * search.c (simple_search): Fix setting this_pos_byte in backward
16541 search.
16542
16543 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16544 byte sequence.
16545 (detect_coding_ccl): Fix setting of the variable valids.
16546
165472008-02-01 Kenichi Handa <handa@m17n.org>
16548
16549 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16550
16551 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16552
16553 * editfns.c (Ftranslate_region_internal): Rename from
16554 Ftranslate_region. Accept a char-table in TABLE.
16555 (syms_of_editfns): Defsubr Stranslate_region_internal.
16556
16557 * xfaces.c (set_lface_from_font_name): If a font is specified for
16558 a frame, generate a fontset from the font.
16559 (build_scalable_font_name): If the scalable font is requested for
16560 a specific size, don't change that size.
16561 (try_font_list): Try a scalable font also in the case that a
16562 pattern string is specified.
16563
165642008-02-01 Kenichi Handa <handa@m17n.org>
16565
16566 * xfaces.c (Fface_font): New optional arg CHARACTER.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * charset.h (CHARSET_OFFSET): New macro.
16571
165722008-02-01 Kenichi Handa <handa@m17n.org>
16573
16574 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16575
16576 * fontset.c (fontset_face): Handle the case that repertory is a
16577 char-table.
16578 (find_font_encoding): Return nil for unknown encoding.
16579 (Fset_fontset_font): Ignore a font of unknown encoding.
16580
165812008-02-01 Kenichi Handa <handa@m17n.org>
16582
16583 * keymap.c (describe_vector): Handle default value of a char table.
16584
16585 * fontset.c (fontset_face): Handle fallback fonts correctly.
16586 (Ffontset_info): Return infomation about fallback fonts.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * fontset.c (FONTSET_DEFAULT): New macro.
16591 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16592 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16593 the case that it is nil.
16594 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16595 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16596
16597 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16598 subset or superset.
16599
166002008-02-01 Kenichi Handa <handa@m17n.org>
16601
16602 * emacs.c (main): Call init_charset after syms_of_XXX.
16603
16604 * charset.c (Vcharset_map_directory): Delete.
16605 (Vcharset_map_path): New variable.
16606 (load_charset_map_from_file): Use Vcharset_map_path instead.
16607 (init_charset): Initialize Vcharset_map_path.
16608 (syms_of_charset): Delete declaration of "charset-map-directory",
16609 add declaration of "charset-map-path".
16610
166112008-02-01 Kenichi Handa <handa@m17n.org>
16612
16613 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16614 ASCII only string.
16615
16616 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16617
16618 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16619 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16620
166212008-02-01 Kenichi Handa <handa@m17n.org>
16622
16623 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16624
16625 * coding.c (QCmnemonic, QCdefalut_char)
16626 (QCdecode_translation_table, QCencode_translation_table)
16627 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16628 (get_translation_table): Return a list of translation tables if
16629 necessary.
16630 (decode_coding): Call get_translation_table with ENCODEP 0.
16631 (char_encodable_p): If translation_table is non-nil, always call
16632 translate_char.
16633 (Fdefine_coding_system_internal): Accept list of translation
16634 tables as :encode-translation-table and :decode-translation-table.
16635 (Fcoding_system_put): New function.
16636 (syms_of_coding): Declare new symbols. Defsubr
16637 Scoding_system_put.
16638 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16639 typically JISX0212.
16640
16641 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16642 when the charset is superset type.
16643
16644 * character.c (translate_char): Accept list of translation tables.
16645
166462008-02-01 Kenichi Handa <handa@m17n.org>
16647
16648 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16649 (CODING_ATTR_TRANS_TBL): New macro.
16650
16651 * coding.c (get_translation_table): New function.
16652 (translate_chars): Fix the bug of skipping annotation data.
16653 (decode_coding, encode_coding): Utilize get_translation_table.
16654 (char_encodable_p, Funencodable_char_position): Translate char if
16655 necessary.
16656 (Ffind_coding_systems_region_internal)
16657 (Fcheck_coding_systems_region): Setup translation table for encode
16658 in a coding system attribute vector in advance.
16659 (Fdefine_coding_system_internal): Allow a symbol as translation
16660 table. For shift-jis type coding system, allow 4th charset.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16665
16666 * xdisp.c (get_next_display_element): Pass -1 as POS to
16667 FACE_FOR_CHAR if displaying a C-string.
16668
166692008-02-01 Kenichi Handa <handa@m17n.org>
16670
16671 * composite.c (get_composition_id): Handle xoff and yoff in a
16672 composition rule.
16673
16674 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16675 (struct composition): New member lbearing and rbearing.
16676
16677 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16678 (x_get_glyph_overhangs): Handle a composition glyph.
16679 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16680
16681 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16682 composition glyph.
16683
166842008-02-01 Kenichi Handa <handa@m17n.org>
16685
16686 * print.c: Include charset.h.
16687 (Vprint_charset_text_property): New variable.
16688 (Qdefault): Extern it.
16689 (PRINT_STRING_NON_CHARSET_FOUND)
16690 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16691 (print_check_string_result): New variable.
16692 (print_check_string_charset_prop): New function.
16693 (print_prune_charset_plist): New variable.
16694 (print_prune_string_charset): New function.
16695 (print_object): Call print_prune_string_charset if
16696 Vprint_charset_text_property is not t.
16697 (print_interval): Print nothing if interval->plist is nil.
16698 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16699 variable. Init and staticpro print_prune_charset_plist.
16700
167012008-02-01 Kenichi Handa <handa@m17n.org>
16702
16703 * fontset.c (new_fontset_from_font_name): Use the specified font
16704 for all characters in the new fontset.
16705
16706 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16707 OBJECT args.
16708
16709 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16710 OBJECT args for composition too.
16711
16712 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16713 OBJECT args.
16714
167152008-02-01 Kenichi Handa <handa@m17n.org>
16716
16717 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16718
16719 * fontset.c (reorder_font_vector): Adjust for the change of
16720 FONT_DEF format.
16721 (fontset_face): New arg id. Change caller.
16722 (face_for_char): New args pos and object.
16723 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16724 (fs_query_fontset): Check NAME by Fassoc too.
16725 (Fset_fontset_font): Allow non-XLFD font name.
16726 (Ffontset_info): Adjust for the change of FONT_DEF format.
16727
16728 * fontset.h (face_for_char): Adjust prototype.
16729
16730 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16731 (append_space, extend_face_to_end_of_line)
16732 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16733 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16734
16735 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16736 POS and OBJECT args.
16737
16738 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16739 POS and OBJECT args.
16740
167412008-02-01 Jason Rumney <jasonr@gnu.org>
16742
16743 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16744 of GlobalAlloc'ed memory.
16745
167462008-02-01 Kenichi Handa <handa@m17n.org>
16747
16748 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16749
16750 * charset.h (charset_table_used): Delete extern.
16751
16752 * charset.c (charset_table_used): Make it static.
16753 (map_charset_chars): Fix args to c_function with.
16754
16755 * chartab.c (map_sub_char_table_for_charset): Fix args to
16756 c_function with.
16757
16758 * coding.h (enum coding_result_code): Delete
16759 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16760
16761 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16762 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16763 (Vlast_code_conversion_error): New variables.
16764 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16765 (ONE_MORE_BYTE): Record error if any instead of signaling an
16766 error. If non-ASCII multibyte char is found, return the negative
16767 value of the code. All callers changed to check it.
16768 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16769 (record_conversion_result): New function. Change all codes setting
16770 coding->result to call this function.
16771 (detect_coding_utf_8, decode_coding_utf_8)
16772 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16773 Don't use the local variable incomplete.
16774 (emacs_mule_char): Change the second arg to `const'.
16775 (decode_coding): Fix of flushing out unprocessed data.
16776 (make_conversion_work_buffer): Fix making of a work buffer.
16777 (decode_coding_object): Return coding->dst_object.
16778
16779 * fontset.c (set_fontset_font): Fix args.
16780
16781 * lisp.h (CHARACTERBITS): Define as 22.
16782
16783 * process.c (send_process): Be sure to set coding->src_multibyte.
16784
16785 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16786
167872008-02-01 Kenichi Handa <handa@m17n.org>
16788
16789 * xdisp.c (handle_auto_composed_prop): Give limit to
16790 Fnext_single_char_property_change.
16791
167922008-02-01 Kenichi Handa <handa@m17n.org>
16793
16794 * composite.c (syms_of_composite): Don't make the composition hash
16795 table weak.
16796
16797 * fontset.c (Fset_fontset_font): Fix docstring.
16798
16799 * lisp.h (detect_coding_system): Adjust prototype.
16800
16801 * fileio.c (kill_workbuf_unwind): Delete this function.
16802 (Finsert_file_contents): Adjust the call of detect_coding_system.
16803 Get conversion_buffer by code_conversion_save. Use the macro
16804 CODING_MAY_REQUIRE_DECODING. After decoding, update
16805 coding_system.
16806
16807 * coding.h (make_conversion_work_buffer): Delete extern.
16808 (code_conversion_save): Extern it.
16809
16810 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16811 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16812 (decode_coding_utf_8): Don't do eol converion.
16813 (detect_coding_utf_16): Check coding->src_chars, not
16814 coding->src_bytes. Add heuristics for those that have no signature.
16815 (decode_coding_emacs_mule, decode_coding_iso_2022)
16816 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16817 Don't do eol converion.
16818 (adjust_coding_eol_type): Return a new coding system.
16819 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16820 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16821 each change.
16822 (decode_coding): Pay attention to undo_list. Do eol conversion for
16823 all types of coding-systems (if necessary).
16824 (Vcode_conversion_work_buf_list): Delete it.
16825 (Vcode_conversion_reused_workbuf): Rename from
16826 Vcode_conversion_reused_work_buf.
16827 (Vcode_conversion_workbuf_name): New variable.
16828 (reused_workbuf_in_use): New variable.
16829 (make_conversion_work_buffer): Delete the arg DEPTH.
16830 (code_conversion_restore): Change argument to cons.
16831 (code_conversion_save): Delete the argument BUFFER. Change callers.
16832 (detect_coding_system): New argument src_chars. Change callers.
16833 Fix for utf-16 detection.
16834 (init_coding_once): Don't use ISO_carriage_return.
16835 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16836 reused_workbuf_in_use.
16837
168382008-02-01 Kenichi Handa <handa@m17n.org>
16839
16840 * keymap.c (store_in_keymap): Pay attention to the case that idx
16841 is a cons specifying a character range.
16842
168432008-02-01 Kenichi Handa <handa@m17n.org>
16844
16845 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16846 HANDLED_RECOMPUTE_PROPS.
16847
16848 * coding.c (Fdefine_coding_system_internal): Fix checking of
16849 ascii compatibility.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * charset.c (find_charsets_in_text): Delete unused locale variable.
16854 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16855
16856 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16857 Resync charset_list to Vemacs_mule_charset_list.
16858
16859 * keymap.c (store_in_keymap): Pay attention to the case that idx
16860 is a cons specifying a character range.
16861
168622008-02-01 Kenichi Handa <handa@m17n.org>
16863
16864 * composite.c (update_compositions): Bind inhibit-read-only, etc
16865 to t before calling remove-list-of-text-properties.
16866
16867 * print.c (print_object): Always print ASCII chars as is.
16868
168692008-02-01 Kenichi Handa <handa@m17n.org>
16870
16871 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16872
16873 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16874 is a char table.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16879
168802008-02-01 Kenichi Handa <handa@m17n.org>
16881
16882 * xfaces.c (set_lface_from_font_name): Fix for the case that
16883 FONTNAME is not fontset name.
16884
168852008-02-01 Kenichi Handa <handa@m17n.org>
16886
16887 * fns.c (base64_encode_1): Fix previous change.
16888
168892008-02-01 Kenichi Handa <handa@m17n.org>
16890
16891 * fontset.c (set_fontset_font): New function.
16892 (Fset_fontset_font): If a font is specified for a charset, use
16893 map_charset_chars to store the font spec in a fontset.
16894
168952008-02-01 Kenichi Handa <handa@m17n.org>
16896
16897 * fontset.c (fontset_face): Create a fallback fontset on demand.
16898 (make_fontset): Don't create a fallback fontset here.
16899 (free_face_fontset): Free a fallback fontset (if any) too.
16900 (n_auto_fontsets): Delete this variable.
16901 (auto_fontset_alist): New variable.
16902 (new_fontset_from_font_name): Check auto_fontset_alist.
16903 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16904 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16905 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16906 Defsubr Sfontset_list_all.
16907
169082008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16911
169122008-02-01 Kenichi Handa <handa@m17n.org>
16913
16914 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16915
169162008-02-01 Kenichi Handa <handa@m17n.org>
16917
16918 * editfns.c (Fgoto_char): Fix docstring.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * insdel.c (insert_from_gap): Adjust intervals correctly.
16923
169242008-02-01 Jason Rumney <jasonr@gnu.org>
16925
16926 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16927 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16928 (w32_initialize): Try to load it.
16929 (x_get_font_repertory): Use it if available.
16930 (w32_encode_char): Add shortcut for unicode output.
16931
16932 * w32fns.c (w32_load_system_font): Default charset to -1.
16933 (x_to_w32_charset): Match all fonts for unicode.
16934 (w32_to_x_charset): New parameter matching. Don't return partial
16935 or wildcard charsets.
16936 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16937 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16938 (w32_to_x_font): Match charset to real charset.
16939 (enum_font_cb2): Always list unicode versions.
16940
16941 * makefile.w32-in (temacs): Increase EMHEAP.
16942
169432008-02-01 Jason Rumney <jasonr@gnu.org>
16944
16945 * w32term.c (w32_encode_char): New charset parameter.
16946 font_info.encoding becomes encoding_type.
16947 (x_get_font_repertory): New function. Warning: stub only!
16948 (x_new_font): Return quickly if font already set.
16949 (x_new_fontset): fontsetname parameter is Lisp_Object.
16950 Use new fs_query_fontset. Try new_fontset_from_font_name.
16951 Use fontset_name for return value.
16952
16953 * w32term.h: Declare x_get_font_repertory.
16954
16955 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16956 place of find_charset_in_text. Use encode_coding_object in place
16957 of encode_coding.
16958 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16959 decode_coding.
16960
16961 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16962 of x_new_fontset.
16963 (w32_load_system_font): Initialize charset as unicode.
16964 font_info.encoding becomes encoding_type.
16965 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16966 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16967 (syms_of_w32fns): Set get_font_repertory_func.
16968
16969 * w32console.c: Include character.h. Use terminal_encode_buffer
16970 from term.c.
16971 (write_glyphs): Use new version of encode_terminal_code. Use
16972 encode_coding_object in place of encode_coding.
16973
16974 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16975 encoding becomes encoding_type.
16976
16977 * term.c (terminal_encode_buffer): Make externally visible.
16978
16979 * makefile.w32-in: Add character.h dependancies.
16980 (character.o, chartab.o): New targets.
16981
169822008-02-01 Kenichi Handa <handa@m17n.org>
16983
16984 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16985 CODING_ID_EOL_TYPE.
16986
169872008-02-01 Andreas Schwab <schwab@suse.de>
16988
16989 * coding.c (produce_chars): Revert last change.
16990
169912008-02-01 Kenichi Handa <handa@m17n.org>
16992
16993 * charset.h (charset_unicode): Extern it.
16994
16995 * charset.c (string_xstring_p): Check by (C >= 0x100).
16996 (find_charsets_in_text): Change format of the arc CHARSETS. New
16997 arg MULTIBYTE.
16998 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16999 change of find_charsets_in_text.
17000 (Fsplit_char): Fix doc. Never return unknown.
17001
17002 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17003
17004 * coding.c (Fdefine_coding_system_alias): Update
17005 Vcoding_system_list.
17006
17007 * fontset.c (load_font_get_repertory): Pay attention to the case
17008 that ENCODING of a font is specified by a char-table.
17009
17010 * xterm.c (x_get_font_repertory): Handle the case that the
17011 encoding of font is other than Unicode.
17012
170132008-02-01 Kenichi Handa <handa@m17n.org>
17014
17015 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17016 if a character is encodable by the terminal coding system. If
17017 not, produces proper number of `?'s. Update
17018 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17019 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17020
170212008-02-01 Kenichi Handa <handa@m17n.org>
17022
17023 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17024 variables.
17025 (encode_terminal_code): Change argument. Encode multiple
17026 characters at once. Store the result of encoding in
17027 terminal_encode_buffer.
17028 (write_glyphs, insert_glyphs): Adjust for the change of
17029 encode_terminal_code.
17030 (term_init): Initialize terminal_encode_buffer and
17031 terminal_encode_buf_size.
17032
17033 * coding.c (consume_chars): If coding->src_object is nil, don't
17034 check annotation.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * character.c (char_string): Use ASCII_CHAR_P instead of
17039 SINGLE_BYTE_CHAR_P.
17040
170412008-02-01 Kenichi Handa <handa@m17n.org>
17042
17043 * xdisp.c (handle_auto_composed_prop): Check if the last
17044 characters of auto-composed region is newly composed with the
17045 following characters.
17046 (handle_composition_prop): Fix checking of point being inside
17047 composition.
17048
170492008-02-01 Kenichi Handa <handa@m17n.org>
17050
17051 * fns.c (concat): Don't change multibyteness of the result by
17052 concatenating an 8-bit character.
17053
17054 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17055 multibyteness of the result when newelt is an 8-bit character.
17056
170572008-02-01 Dave Love <fx@gnu.org>
17058
17059 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17060 EMACS_INT.
17061
17062 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17063
17064 * xfaces.c (face_numeric_value): Declare dim size_t.
17065 (Finternal_lisp_face_equal_p): Remove unused f.
17066
17067 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17068 (MATRIX_ROW): Remove unused vars.
17069 (draw_glyphs, x_insert_glyphs, fast_find_position)
17070 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17071 byte/char counts.
17072
17073 * regex.c (regex_compile): Remove unused var.
17074
17075 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17076
17077 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17078 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17079
17080 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17081
17082 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17083
17084 * fileio.c (Fwrite_region): Remove unused var.
17085
17086 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17087 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17088
17089 * composite.c (Fremove_list_of_text_properties): Declare.
17090
17091 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17092 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17093 (coding_inherit_eol_type): Remove unused attrs.
17094 (detect_coding): Cast arg of detect_eol.
17095
17096 * charset.c (syms_of_charset): Remove unused var p.
17097 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17098 byte/char counts.
17099
17100 * casetab.c (set_case_table): Remove unused var.
17101
17102 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17103 unused vars.
17104
171052008-02-01 Dave Love <fx@gnu.org>
17106
17107 * xterm.c (x_bitmap_mask): Declare.
17108
171092008-02-01 Dave Love <fx@gnu.org>
17110
17111 * xterm.c (x_term_init): Fix type error.
17112
17113 * lisp.h: Add Funibyte_char_to_multibyte.
17114
17115 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17116 (Fset_coding_system_priority): Doc fix.
17117
17118 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17119
17120 * indent.c (check_composition): Make start and end EMACS_INT.
17121
17122 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17123
17124 * xdisp.c (handle_composition_prop, check_point_in_composition):
17125 Make buffer positions EMACS_INT.
17126
17127 * composite.c (find_composition, run_composition_function)
17128 (update_compositions, Ffind_composition_internal): Make buffer
17129 positions EMACS_INT.
17130
17131 * composite.h (find_composition, update_compositions): Make
17132 position args EMACS_INT.
17133
17134 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17135
17136 * intervals.c (get_property_and_range):
17137 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17138
17139 * unexalpha.c: Don't include varargs.h.
17140
171412008-02-01 Dave Love <fx@gnu.org>
17142
17143 * coding.h (ENCODE_UTF_8): New.
17144
17145 * Makefile.in (gtkutil.o): Depend on coding.h.
17146
17147 * coding.c (Fset_coding_system_priority): Doc fix.
17148
171492008-02-01 Kenichi Handa <handa@m17n.org>
17150
17151 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17152 the case of auto saving.
17153
171542008-02-01 Andreas Schwab <schwab@suse.de>
17155
17156 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17157 `range' from GC.
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17162
171632008-02-01 Kenichi Handa <handa@m17n.org>
17164
17165 * fileio.c (choose_write_coding_system): Return a decided coding system.
17166 (Fwrite_region): Set Vlast_coding_system_used to the return value
17167 of choose_write_coding_system.
17168
171692008-02-01 Kenichi Handa <handa@m17n.org>
17170
17171 * charset.c (Fset_charset_priority): Pay attention to duplicated
17172 arguments.
17173
17174 * coding.c (QCcategory): New variable.
17175 (syms_of_coding): Defsym it. Set all elements of
17176 Vcoding_category_table and their symbol values.
17177 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17178 coding-category-XXX, and coding-category-list.
17179 (Fdefine_coding_system_internal): Add category in the plist.
17180
171812008-02-01 Kenichi Handa <handa@m17n.org>
17182
17183 * callproc.c (Fcall_process): Handle carryover correctly.
17184
17185 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17186 (raw_text_coding_system): Check NILP (coding_system).
17187 (coding_inherit_eol_type): Check NILP (coding_system) and
17188 NILP (parent).
17189 (consume_chars): Fix for the case of raw-text.
17190
17191 * process.c (read_process_output): Handle carryover correctly.
17192
171932008-02-01 Dave Love <fx@gnu.org>
17194
17195 * regex.c (re_search_2): Fix last change.
17196
171972008-02-01 Kenichi Handa <handa@m17n.org>
17198
17199 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17200 target_multibyte. Even in a unibyte case, return a converted
17201 multibyte char.
17202 (GET_CHAR_AFTER): New macro.
17203 (PATFETCH): Translate via multibyte char.
17204 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17205 (SETUP_MULTIBYTE_RANGE): New macro.
17206 (regex_compile): Setup compiled code so that its multibyteness
17207 matches that of a target. Fix the handling of "[X-YZ]" using
17208 SETUP_MULTIBYTE_RANGE.
17209 (analyse_first) <charset>: For filling fastmap for all multibyte
17210 characters, don't check by BASE_LEADING_CODE_P.
17211 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17212 the same as RE_MULTIBYTE_P (bufp) now.
17213 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17214 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17215 (TRANSLATE_VIA_MULTIBYTE): New macro.
17216 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17217 It is the same as RE_MULTIBYTE_P (bufp) now.
17218 <exactn>: Translate via multibyte.
17219 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17220 translate it.
17221 <charset, charset_not>: Fetch a character by
17222 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17223 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17224 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17225 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17226 by GET_CHAR_AFTER.
17227 (bcmp_translate): Likewise.
17228
17229 * search.c (compile_pattern): Check the member target_multibyte,
17230 not the member multibyte of buf.
17231
17232 * lread.c (read1): While reading a string, set force_singlebyte
17233 and force_multibyte correctly.
17234
17235 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17236 up of unibyte_to_multibyte_table.
17237
172382008-02-01 Kenichi Handa <handa@m17n.org>
17239
17240 * coding.c (setup_coding_system): If coding has
17241 post-read-conversion or pre-write-conversion, set
17242 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17243 respectively.
17244 (decode_coding_gap): Run post-read-conversion if any.
17245
17246 * fileio.c (Finsert_file_contents): Even if we read into a
17247 unibyte buffer, check if we must decode the result or not.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * coding.c (make_conversion_work_buffer): Change the work buffer
17252 name to the same one as that of Emacs 21.
17253
172542008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * coding.h (make_conversion_work_buffer): Adjust prototype.
17257 (code_conversion_restore): Don't extern it.
17258
17259 * coding.c (detected_mask): Delete unused variable.
17260 (decode_coding_iso_2022): Pay attention to the byte sequence of
17261 CTEXT extended segment, and retain those bytes as is.
17262 (decode_coding_ccl): Delete unused variable `valids'.
17263 (setup_coding_system): Delete unused variable `category'.
17264 (consume_chars): Delete unused variable `category'. Make it work
17265 for non-multibyte case.
17266 (make_conversion_work_buffer): Change argument.
17267 (saved_coding): Delete unused variable.
17268 (code_conversion_restore): Don't check saved_coding->destination.
17269 (code_conversion_save): New function.
17270 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17271 instead of record_unwind_protect.
17272 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17273 (detect_coding_system): Delete unused variable `mask'.
17274 (Fdefine_coding_system_internal): Delete unused variable id.
17275
17276 * fileio.c (kill_workbuf_unwind): New function.
17277 (Finsert_file_contents): On replacing, call
17278 make_conversion_work_buffer with correct args, and call
17279 record_unwind_protect with the first arg kill_workbuf_unwind.
17280
17281 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17282
172832008-02-01 Kenichi Handa <handa@m17n.org>
17284
17285 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17286 (fontset_add): Fix for the case that TO is less than TO1.
17287 (Ffontset_info): Don't use fallback fontset on checking the
17288 default fontset.
17289 (dump_fontset): New function for debugging.
17290
17291 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17292 coding_type is Qcharset.
17293
172942008-02-01 Kenichi Handa <handa@m17n.org>
17295
17296 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17297 (map_char_table): Don't inherit the value from the parent on
17298 initializing VAL. Adjust for the above change.
17299
173002008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * coding.c (Qsignature, Qendian): Delete these variables.
17303 (syms_of_coding): Don't initialize them.
17304 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17305 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17306 detect_info->found.
17307 (decode_coding_utf_16): Don't detect BOM here.
17308 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17309 is NOT utf_16_without_bom.
17310 (setup_coding_system): For a coding system of type utf-16, check
17311 if the attribute :endian is Qbig or not (not nil or not), and set
17312 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17313 (detect_coding): If coding type is utf-16 and BOM detection is
17314 required, detect it.
17315 (Fdefine_coding_system_internal): For a coding system of type
17316 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17317
173182008-02-01 Kenichi Handa <handa@m17n.org>
17319
17320 * coding.c (coding_set_source): Fix for the case that the current
17321 buffer is different from coding->src_object.
17322 (decode_coding_object): Don't use the conversion work buffer if
17323 DST_OBJECT is a buffer.
17324
173252008-02-01 Dave Love <fx@gnu.org>
17326
17327 * lread.c (read_emacs_mule_char) [len==2]: Index
17328 emacs_mule_charset correctly.
17329
173302008-02-01 Dave Love <fx@gnu.org>
17331
17332 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17333 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17334 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17335 treated specially.)
17336 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17337 (detected_mask): Remove Big5 bits.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 The following changes are to make the font rescaling facility
17342 compatible with Emacs 21.
17343
17344 * xfaces.c (Vface_font_rescale_alist): Rename from
17345 Vface_resizing_fonts.
17346 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17347 (font_rescale_ratio): Rename from font_resizing_ratio.
17348 (split_font_name): Set font->rescale_ratio.
17349 (better_font_p): Pay attention to font->rescale_ratio.
17350 (build_scalable_font_name): Likewise. Change RESX, and RESY
17351 fields.
17352 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17353
173542008-02-01 Kenichi Handa <handa@m17n.org>
17355
17356 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17357 (Qutf_16_le): Remove these variables.
17358 (syms_of_coding): Don't DEFSYM them.
17359 (decode_coding_utf_16): Fix handling of BOM.
17360 (encode_coding_utf_16): Fix handling of BOM.
17361
173622008-02-01 Kenichi Handa <handa@m17n.org>
17363
17364 * fileio.c (Finsert_file_contents): On replacing, before decoding
17365 the file into the work buffer, set point of the work buffer to the end.
17366
173672008-02-01 Dave Love <fx@gnu.org>
17368
17369 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17370
173712008-02-01 Dave Love <fx@gnu.org>
17372
17373 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17374 and fix C types.
17375
173762008-02-01 Kenichi Handa <handa@m17n.org>
17377
17378 * xdisp.c (SKIP_GLYPHS): New macro.
17379 (set_cursor_from_row): Pay attention to string display properties.
17380
17381 * category.c (copy_category_entry): Fix for the case that RANGE
17382 is an integer.
17383
17384 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17385
17386 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * charset.c (Fcharset_id_internal): New function.
17391 (syms_of_charset): Defsubr it.
17392
17393 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17394 with the last arg charset_list acquired from coding.
17395 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17396 the attribute coding_attr_ccl_valids.
17397
17398 * coding.h (enum define_coding_ccl_arg_index): Set the first
17399 member coding_arg_ccl_decoder to coding_arg_max.
17400
17401 * ccl.h (ccl_driver): Adjust prototype.
17402
17403 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17404 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17405 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17406 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17407 last arg Qnil.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17412 call encode_char.
17413
17414 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17415
174162008-02-01 Dave Love <fx@gnu.org>
17417
17418 * composite.c (syms_of_composite): Make composition_hash_table weak.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17423 (font_name_registry): Don't extern them.
17424 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17425
17426 * fontset.h (Qfontset): Don't extern it.
17427 (new_fontset_from_font_name): Extern it.
17428
17429 * fontset.c: Give 8 extra slots to fontset objects.
17430 (Qfontset_info): New variable.
17431 (syms_of_fontset): Defsym it.
17432 (FONTSET_FALLBACK): New macro.
17433 (fontset_face): Try also the default fontset.
17434 (make_fontset): Realize a fallback fontset from the default fontset.
17435 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17436 using split_font_name_into_vector and build_font_name_from_vector.
17437 (Fset_fontset_font): Access the elements of font_spec by enum
17438 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17439 name by using split_font_name_into_vector.
17440 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17441 generate a proper font name from the fontset name. Update
17442 Vfontset_alias_alist.
17443 (n_auto_fontsets): New variable.
17444 (new_fontset_from_font_name): New function.
17445 (Ffont_info): Store the information about fonts generated from the
17446 default fontset in the first extra slot of the returned char-table.
17447
17448 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17449 (font_name_registry): Delete function.
17450 (split_font_name_into_vector): New function.
17451 (build_font_name_from_vector): New function.
17452 (font_list): The argument REGISTRY is now a list of registry names.
17453 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17454 specifies an explicit font name, return the name as is. Make a
17455 list of registy names.
17456
17457 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17458 of x_new_fontset.
17459 (Fx_create_frame): Don't call x_new_fontset here. Just use
17460 x_list_fonts to check the existence of fonts.
17461
17462 * xterm.h (x_new_fontset): Adjust prototype.
17463
17464 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17465 string. Use new_fontset_from_font_name to create a fontset from a
17466 font name.
17467
174682008-02-01 Kenichi Handa <handa@m17n.org>
17469
17470 * syntax.c (Vfind_word_boundary_function_table): New name for
17471 Vnext_word_boundary_function_table.
17472 (find-word-boundary-function-table): New name for
17473 next-word-boundary-function-table.
17474
174752008-02-01 Dave Love <fx@gnu.org>
17476
17477 * Makefile.in: Fix some dependencies.
17478
17479 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17480 set it to nil before returning.
17481
17482 * composite.c (update_compositions): Fix type error.
17483
17484 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * xterm.c (x_new_font): Optimize for the case that the font is
17489 already set for the frame.
17490
174912008-02-01 Kenichi Handa <handa@m17n.org>
17492
17493 * chartab.c (char_table_ascii): Check if the char table contents
17494 is sub-char-table or not.
17495 (char_table_set, char_table_set_range): Fix argument to
17496 char_table_ascii.
17497
17498 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17499 (detect_coding_utf_8, detect_coding_utf_16)
17500 (detect_coding_emacs_mule, detect_coding_iso_2022)
17501 (detect_coding_sjis, detect_coding_big5)
17502 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17503 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17504 sequence is valid in this coding system. Change callers.
17505 (MAX_ANNOTATION_LENGTH): New macro.
17506 (ADD_ANNOTATION_DATA): New macro.
17507 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17508 ADD_ANNOTATION_DATA. Change the format of annotation data.
17509 (ADD_CHARSET_DATA): New macro.
17510 (emacs_mule_char): New argument ID. Change callers.
17511 (decode_coding_emacs_mule, decode_coding_iso_2022)
17512 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17513 Produce charset annotation data in coding->charbuf.
17514 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17515 to charset annotation data in coding->charbuf.
17516 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17517 coding->common_flags if the coding system is iso-2022 based and
17518 uses designation.
17519 (produce_composition): Adjust for the new annotation data format.
17520 (produce_charset): New function.
17521 (produce_annotation): Handle charset annotation.
17522 (handle_composition_annotation, handle_charset_annotation): New
17523 functions.
17524 (consume_chars): Handle charset annotation. Utilize the above two
17525 functions.
17526 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17527 buffer, get the deleted text as a string and set
17528 coding->src_object to that string.
17529 (detect_coding, detect_coding_system): Use the new struct
17530 coding_detection_info.
17531
17532 * coding.h (struct coding_detection_info): New structure.
17533 (struct coding_system): Adjust prototype of the member `detector'.
17534 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17535
175362008-02-01 Kenichi Handa <handa@m17n.org>
17537
17538 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17539
175402008-02-01 Dave Love <fx@gnu.org>
17541
17542 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17543 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17544 to new local and nullify apropos_accumulate before returning.
17545 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17546
175472008-02-01 Kenichi Handa <handa@m17n.org>
17548
17549 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17550 correctly.
e3eea1fc 17551
aac0c6e3
MR
175522008-02-01 Dave Love <fx@gnu.org>
17553
17554 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17555
175562008-02-01 Kenichi Handa <handa@m17n.org>
17557
17558 The following changes are to make character composition happen
17559 automatically on displaying.
17560
17561 * Makefile.in (lisp, shortlisp): Add composite.elc.
17562
17563 * composite.h (Qauto_composed, Vauto_composition_function)
17564 (Qauto_composition_function): Extern them.
17565
17566 * composite.c (Vcomposition_function_table)
17567 (Qcomposition_function_table): Delete variables.
17568 (Qauto_composed, Vauto_composition_function)
17569 (Qauto_composition_function): New variables.
17570 (run_composition_function): Don't call
17571 compose-chars-after-function.
17572 (update_compositions): Clear `auto-composed' text property.
17573 (compose_chars_in_text): Delete this function.
17574 (syms_of_composite): Staticpro Qauto_composed and
17575 Qauto_composition_function. Declare Vauto_composition_function as
17576 a Lisp variable.
17577
17578 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17579
17580 * xdisp.c (it_props): Add an entry for Qauto_composed.
17581 (handle_auto_composed_prop): New function.
17582
17583 * xselect.c (selection_data_to_lisp_data): Don't call
17584 compose_chars_in_text.
17585
175862008-02-01 Dave Love <fx@gnu.org>
17587
17588 * keyboard.c (read_char): Modify checking around use of
17589 Vkeyboard_translate_table.
17590
17591 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17592 and fix C types.
17593
175942008-02-01 Kenichi Handa <handa@m17n.org>
17595
17596 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17597 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17598 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17599 the case that the last byte is '\r' correctly.
17600 (decode_coding): Flush out the unprocessed data correctly.
17601 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17602
176032008-02-01 Dave Love <fx@gnu.org>
17604
17605 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17606 Add XK_ISO... case.
17607 (xaw_scroll_callback): Revert last change.
17608
176092008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17612
176132008-02-01 Kenichi Handa <handa@m17n.org>
17614
17615 * xfaces.c (Vface_resizing_fonts): New variable.
17616 (struct font_name): New member `resizing_ratio'.
17617 (font_resizing_ratio): New function.
17618 (split_font_name): Set font->resizing_ratio.
17619 (better_font_p): Pay attention to font->resizing_ratio.
17620 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17621 RESX, and RESY fields.
17622 (try_alternative_families): Try scalable fonts if
17623 Vscalable_fonts_allowed is not Qt.
17624 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17625
176262008-02-01 Dave Love <fx@gnu.org>
17627
17628 * xterm.c (xaw_scroll_callback): Cast correctly.
17629
176302008-02-01 Dave Love <fx@gnu.org>
17631
17632 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17633 (lispy_kana_keys): Comment out.
17634 (make_lispy_event) [XK_kana_A]: Comment out.
17635
17636 * xterm.c (xaw_scroll_callback): Cast call_data.
17637 (XTread_socket): Deal with ASCII keysyms.
17638 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17639
176402008-02-01 Dave Love <fx@gnu.org>
17641
17642 * xterm.c (Vx_keysym_table): New.
17643 (syms_of_xterm): Initialize it.
17644 (XTread_socket): Use it.
17645 From head: Eliminate incorrect optimization that tried to avoid
17646 decoding the output of X*LookupString.
17647 (x_get_font_repertory): Delete charset declaration.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17652 return 0.
17653 (Fdefine_coding_system_internal): Setup
17654 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17655
176562008-02-01 Dave Love <fx@gnu.org>
17657
17658 * coding.c (Fcheck_coding_system): Doc fix.
17659
17660 * editfns.c (Finsert_byte): Return a proper value.
17661
176622008-02-01 Kenichi Handa <handa@m17n.org>
17663
17664 * coding.c (decode_coding): Fix args to translate_chars. Pay
17665 attention to Vstandard_translation_table_for_decode.
17666 (encode_coding): Fix args to translate_chars. Pay attention to
17667 Vstandard_translation_table_for_encode.
17668
17669 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17670 SINGLE_BYTE_CHAR_P.
17671
17672 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17673 not by SINGLE_BYTE_CHAR_P.
17674
17675 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17676 SINGLE_BYTE_CHAR_P.
17677
17678 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17679 SINGLE_BYTE_CHAR_P.
17680
17681 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17682 by SINGLE_BYTE_CHAR_P.
17683
17684 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17685 SINGLE_BYTE_CHAR_P.
17686
176872008-02-01 Dave Love <fx@gnu.org>
17688
17689 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17690
176912008-02-01 Dave Love <fx@gnu.org>
17692
17693 * fns.c (Flanginfo): Fix typo.
17694
17695 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17696
176972008-02-01 Kenichi Handa <handa@m17n.org>
17698
17699 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17700 (detect_coding_emacs_mule, detect_coding_iso_2022)
17701 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17702 incomplete byte sequence. Don't update *mask when correctly detected.
17703 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17704 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17705 (detect_coding, detect_coding_system): Adjust for the changes above.
17706
177072008-02-01 Kenichi Handa <handa@m17n.org>
17708
17709 * character.c (char_string): Rename from
17710 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17711 (string_char): Rename from string_char.
17712
17713 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17714 if C is greater than MAX_3_BYTE_CHAR.
17715 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17716 string_char instead of string_char_with_unification.
17717
177182008-02-01 Dave Love <fx@gnu.org>
17719
17720 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * keymap.c (push_key_description): Pay attention to force_multibyte.
17725
17726 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17727
177282008-02-01 Dave Love <fx@gnu.org>
17729
17730 * charset.c (define_charset_internal): Rename `supprementary'.
17731
17732 * Makefile.in (lisp, shortlisp): Remove latin-N.
17733
177342008-02-01 Dave Love <fx@gnu.org>
17735
17736 * xfns.c (x_window, x_window): Use use_xim.
17737
17738 * xterm.c (use_xim): Initialize.
17739 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17740 (x_term_init): Maybe set use_xim.
17741
17742 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17743
177442008-02-01 Kenichi Handa <handa@m17n.org>
17745
17746 * search.c (search_buffer): Fix case-fold-search of multibyte
17747 characters.
17748 (boyer_moore): Rename the last argument to char_high_bits.
17749
177502008-02-01 Kenichi Handa <handa@m17n.org>
17751
17752 * xdisp.c (display_string): Fix for the case of zero width glyph.
17753
17754 * xfns.c (x_set_font): Change the error message of the case that
17755 x_new_fontset returns Qt.
17756
17757 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17758 (Finternal_set_lisp_face_attribute): Use signal_error for the
17759 error of invalid fontset.
17760
17761 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17762 fontset, return Qt.
17763
177642008-02-01 Dave Love <fx@gnu.org>
17765
17766 * unexelf.c (unexec): Make .got handling not SGI-specific.
17767
17768 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17769
17770 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17771
17772 * keyboard.c (read_key_sequence): Fix type error.
17773
17774 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17775 type error.
17776
17777 * fontset.c (fontset_add): Return Lisp_Object.
17778
177792008-02-01 Dave Love <fx@gnu.org>
17780
17781 * charset.h (charset_ordered_list_tick): Declare extern.
17782
177832008-02-01 Kenichi Handa <handa@m17n.org>
17784
17785 The following changes (and some of 2008-02-01 changes of mine) are
17786 for handling syntax, category, and case conversion for unibyte
17787 characters by converting them to multibyte on the fly. With these
17788 changes, we don't have to setup syntax and case tables for unibyte
17789 characters in each language environment.
17790
17791 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17792 multibyte if necessary.
17793
17794 * bytecode.c (Fbyte_code): Likewise.
17795
17796 * character.h (LEADING_CODE_LATIN_1_MIN)
17797 (LEADING_CODE_LATIN_1_MAX): New macros.
17798 (unibyte_to_multibyte_table): Extern it.
17799 (unibyte_char_to_multibyte): New macro.
17800 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17801 (CHAR_LEADING_CODE): New macro.
17802 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17803
17804 * character.c (unibyte_to_multibyte_table): New variable.
17805 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17806 (multibyte_char_to_unibyte): If C is an eight-bit character,
17807 convert it to the corresponding byte value.
17808
17809 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17810 not 1, signals an error. Update the elements of
17811 unibyte_to_multibyte_table.
17812 (init_charset_once): Initialize unibyte_to_multibyte_table.
17813 (syms_of_charset): Define the charset `iso-8859-1'.
17814
17815 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17816 as is without converting it to unibyte. In a unibyte buffer,
17817 convert C to multibyte before checking the syntax.
17818
17819 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17820
17821 * minibuf.c (Fminibuffer_complete_word): Use the macro
17822 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17823
17824 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17825
17826 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17827 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17828 that is zero, convert an eight-bit char to multibyte.
17829 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17830 non-emacs case.
17831 (PATFETCH): Convert an eight-bit char to multibyte.
17832 (HANDLE_UNIBYTE_RANGE): New macro.
17833 (regex_compile): Setup the compiled pattern for multibyte chars
17834 even if the given regex string is unibyte. Use PATFETCH_RAW
17835 instead of PATFETCH in many places. To handle `charset'
17836 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17837 only for ASCII chars.
17838 (analyse_first) <exactn>: Simplify because the compiled pattern
17839 is multibyte.
17840 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17841 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17842 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17843 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17844 multibyte always 1.
17845 (re_search_2): In emacs, set the locale variable multibyte to 1,
17846 otherwise to 0. New local variable target_multibyte. Check it
17847 to decide the multibyteness of STR1 and STR2. If
17848 target_multibyte is zero, convert unibyte chars to multibyte
17849 before translating and checking fastmap.
17850 (TARGET_CHAR_AND_LENGTH): New macro.
17851 (re_match_2_internal): In emacs, set the locale variable multibyte
17852 to 1, otherwise to 0. New local variable target_multibyte. Check
17853 it to decide the multibyteness of STR1 and STR2. Use
17854 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17855 <charset, charset_not>: If multibyte is nonzero, check fastmap
17856 only for ASCII chars. Call bcmp_translate with
17857 target_multibyte, not with multibyte.
17858 <begline>: Declare the local variable C as `unsigned'.
17859 (bcmp_translate): Change the last arg name to target_multibyte.
17860
17861 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17862 the regexp pattern and the matching target. Set cp->buf.multibyte
17863 to the multibyteness of the regexp pattern. Set
17864 cp->but.target_multibyte to the multibyteness of the matching target.
17865 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17866 FETCH_STRING_CHAR_ADVANCE.
17867 (Freplace_match): Convert unibyte chars to multibyte.
17868
17869 * syntax.c (char_quoted, back_comment, scan_words)
17870 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17871 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17872 unibyte chars to multibyte.
17873 (skip_chars): Delete the arg syntaxp, and move the code for
17874 handling syntaxes to skip_syntaxes. Change callers.
17875 Fix the case that the multibyteness of STRING and the current
17876 buffer doesn't match.
17877 (skip_syntaxes): New function.
17878 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17879 SINGLE_BYTE_CHAR_P.
17880
178812008-02-01 Kenichi Handa <handa@m17n.org>
17882
17883 * xfaces.c (QCfontset): New variable.
17884 (LFACE_FONTSET): New macro.
17885 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17886 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17887 (Finternal_set_lisp_face_attribute)
17888 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17889 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17890 check also LFACE_FONTSET_INDEX.
17891 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17892 attrs[LFACE_FONT_INDEX].
17893 (syms_of_xfaces): Intern and staticpro QCfontset.
17894
17895 * dispextern.h (enum lface_attribute_index): New member
17896 LFACE_FONTSET_INDEX.
17897
17898 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * coding.c (coding_set_destination): Fix coding->destination for
17903 the case converting a region.
17904 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17905 (encode_coding_object): Fix coding->dst_pos and
17906 coding->dst_pos_byte for the case converting a region.
17907
17908 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17909
17910 * character.h (BYTE8_STRING): New macro.
17911
17912 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17913
179142008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17917 characters by octal form.
17918
17919 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17920
17921 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17922 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17923 _fetch_multibyte_char_len.
17924 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17925
17926 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17927
17928 * casefiddle.c (casify_object): Simplify. Handle the case that
17929 the case conversion change the byte length.
17930 (casify_region): Likewise.
17931
17932 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17933
17934 * character.c (_fetch_multibyte_char_len): Delete this variable.
17935 (syms_of_character): Setup Vprintable_chars.
17936
17937 * editfns.c (Fchar_equal): Fix for the unibyte case.
17938 (Finsert_byte): New function.
17939 (syms_of_editfns): Defsubr it.
17940
17941 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17942 of direct code 0x3ffff.
17943
17944 * search.c (Freplace_match): Fix for the unibyte case.
17945
179462008-02-01 Kenichi Handa <handa@m17n.org>
17947
17948 * lread.c (safe_to_load_p): Fix the logic.
17949
17950 * syntax.c (scan_words): Don't treat characters belonging to
17951 different scripts as constituting a word.
17952
17953 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17954
17955 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17956
17957 * emacs.c (main): In the case of --unibyte, instead of aborting on
17958 finding non-empty buffer, make it unibyte.
17959
179602008-02-01 Kenichi Handa <handa@m17n.org>
17961
17962 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17963 to create a fontset.
17964
179652008-02-01 Dave Love <fx@gnu.org>
17966
17967 * character.c (Funibyte_char_to_multibyte): Doc fix.
17968
17969 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17970
179712008-02-01 Kenichi Handa <handa@m17n.org>
17972
17973 * fontset.c (fontset_add): Make the type `int'.
17974 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17975
17976 * character.c (unibyte_char_to_multibyte)
17977 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17978 charset_unibyte, not charset_primary.
17979
17980 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17981
17982 * charset.c (charset_unibyte): Rename from charset_primary.
17983 (Funibyte_charset): Rename from Fprimary_charset.
17984 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17985 (syms_of_charset): Adjust for the above changes.
17986
17987 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17988 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17989 it->multibyte_p is zero.
17990
17991 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17992 Delete extern.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * coding.c (Fdefine_coding_system_internal): Fix category setting
17997 for a coding system of type iso-2022.
17998
179992008-02-01 Kenichi Handa <handa@m17n.org>
18000
18001 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18002
180032008-02-01 Kenichi Handa <handa@m17n.org>
18004
18005 * syntax.c (Vnext_word_boundary_function_table): New variable.
18006 (next-word-boundary-function-table): Declare it as a Lisp variable
18007 in syms_of_syntax.
18008 (scan_words): Call functions in Vnext_word_boundary_function_table
18009 if any.
18010
18011 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18012
18013 * fontset.c (fs_load_font): If fontp->charset is not negative,
18014 return fontp without setting its members.
18015
180162008-02-01 Dave Love <fx@gnu.org>
18017
18018 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18019
18020 * m/sparc.h (HAVE_ALLOCA): Delete.
18021
18022 * s/irix6-5.h: Don't include strings.h.
18023 (bcopy, bzero, bcmp): Don't undef.
18024
18025 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18026
18027 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18028 (TIOCSIGSEND): Don't test IRIX6.
18029 (bcopy, bzero, bcmp): Define conditionally.
18030
180312008-02-01 Kenichi Handa <handa@m17n.org>
18032
18033 * buffer.c (Qas, Qmake, Qto): New variables.
18034 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18035 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18036
18037 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18038 we are inserting a process output into a multibyte buffer.
18039
18040 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18041 multibyte_char_to_unibyte.
18042
18043 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18044 by the primary charset, make it eight-bit char.
18045 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18046
18047 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18048 (charset_8_bit__control, charset_8_bit_graphic)
18049 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18050 (define_charset_internal): New function.
18051 (syms_of_charset): Call define_charset_internal for pre-defined
18052 charsets.
18053
18054 * charset.h (charset_8_bit): Extern it.
18055
18056 * coding.c (make_conversion_work_buffer): Adjust for the change
18057 of Fset_buffer_multibyte.
18058 (encode_coding_raw_text): Increment p0 in the loop.
18059
18060 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18061
18062 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18063 for the change of Fset_buffer_multibyte.
18064
18065 * fns.c (Fstring_to_multibyte): New function.
18066 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18067
180682008-02-01 Dave Love <fx@gnu.org>
18069
18070 * xfns.c (x_put_x_image): Declare args.
18071
18072 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18073 (try_font_list): Declare an arg.
18074
18075 * xdisp.c (message2_nolog, set_message): Declare an arg.
18076
18077 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18078
18079 * syntax.c (scan_sexps_forward): Declare an arg.
18080
18081 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18082 Declare an arg.
18083
18084 * lisp.h (Fnew_fontset): Declare.
18085
18086 * keymap.c (push_key_description): Call CHARACTERP correctly.
18087
18088 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18089 (face_for_char): Delete unused vars.
18090 (Fset_fontset_font): Doc fix. Delete unused vars.
18091
18092 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18093
18094 * composite.c (update_compositions): Declare arg.
18095
18096 * cm.c (calccost, cmgoto): Declare args.
18097
18098 * charset.c: Remove `emacs' conditional. Doc fixes.
18099 (map_char_table_for_charset): Declare.
18100
18101 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18102
18103 * ccl.c: Remove `emacs' conditional.
18104
181052008-02-01 Kenichi Handa <handa@m17n.org>
18106
18107 The following changes are to allow specifying multiple font
18108 patterns for a character range (specified by script or charset).
18109
18110 * Makefile.in (abbrev.o): Depend on syntax.h.
18111 (xfaces.o): Depend on charset.h.
18112
18113 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18114 SINGLE_BYTE_CHAR_P.
18115
18116 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18117
18118 * character.h (Vchar_script_table): Extern it.
18119
18120 * character.c (Vscript_alist): Delete.
18121 (Vchar_script_table, Qchar_script_table): New variable.
18122 (syms_of_character): Declare Vchar_script_table as a lisp variable
18123 and initialize it.
18124
18125 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18126 have property char-table-extra-slots, make no extra slot.
18127
18128 * dispextern.h (struct face): Delete member `charset'.
18129 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18130 SINGLE_BYTE_CHAR_P.
18131 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18132 Add prototypes.
18133 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18134 (generate_ascii_font_name): Rename from generate_ascii_font.
18135
18136 * fontset.h (get_font_repertory_func): New prototype.
18137 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18138 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18139
18140 * fontset.c (Qprepend, Qappend): New variables.
18141 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18142 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18143 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18144 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18145 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18146 (load_font_get_repertory): New functions.
18147 (fontset_set): Delete.
18148 (fontset_face): New arg FACE. Return face ID, not face.
18149 Complete re-write to handle new fontset structure. Change caller.
18150 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18151 (face_for_char): Don't call lookup_face.
18152 (make_fontset_for_ascii_face): New arg FACE.
18153 (fs_load_font): New arg CHARSET_ID. Don't check
18154 Vfont_encoding_alist here.
18155 (find_font_encoding): New function.
18156 (list_fontsets): Use STRINGP, not ! NILP.
18157 (accumulate_script_ranges): New function.
18158 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18159 re-written to handle new fontset structure.
18160 (Ffontset_font): Return a copy of element.
18161 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18162 docstring of font-encoding-alist.
18163
18164 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18165 (Fset_fotset_font): Fix arguments to 5.
18166
18167 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18168
18169 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18170 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18171 (highlight_trailing_whitespace): Adjust for the change of
18172 lookup_named_face.
18173
18174 * xfaces.c: Include charset.h.
18175 (load_face_font): Delete argument C. Change caller.
18176 (generate_ascii_font_name): Rename from generate_ascii_font.
18177 (font_name_registry): New function.
18178 (cache_face): Store ascii faces before non-ascii faces in buckets.
18179 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18180 Lookup only ascii faces.
18181 (lookup_non_ascii_face): New function.
18182 (lookup_named_face): Delete argument C. Change caller.
18183 (lookup_derived_face): Delete argument C. Change caller.
18184 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18185 a string, just call font_list with it.
18186 (choose_face_font): Delete arguments FACE and C. New arg
18187 FONT_SPEC. Change caller.
18188 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18189 Change caller.
18190 (realize_non_ascii_face): New function.
18191 (realize_x_face): Call load_face_font here.
18192 (realize_tty_face): Delete argument C. Change caller.
18193 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18194 get a face ID.
18195 (dump_realized_face): Don't print charset of FACE.
18196
18197 * xfns.c (x_set_font): Always call x_new_fontset and
18198 store_frame_parameter.
18199 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18200 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18201
18202 * xterm.h (x_get_font_repertory): Extern it.
18203
18204 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18205 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18206 it->multibyte_p is zero.
18207 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18208 (x_new_fontset): If FONTSETNAME doesn't match any existing
18209 fontsets, create a new one.
18210 (x_get_font_repertory): New function.
18211
182122008-02-01 Kenichi Handa <handa@m17n.org>
18213
18214 * coding.c (Ffind_coding_systems_region_internal): Detect an
18215 ASCII only string correctly.
18216
18217 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18218 version is 0.
18219
182202008-02-01 Kenichi Handa <handa@m17n.org>
18221
18222 * lread.c: Include "coding.h".
18223 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18224 (load_each_byte, unread_char): New variables.
18225 (readchar_backlog): Delete.
18226 (readchar): Return a character unless load_each_byte is nonzero.
18227 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18228 cons. If unread_char is not -1, simply return it.
18229 (unreadchar): Handle the case that readcharfun is
18230 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18231 (read_multibyte): Delete.
18232 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18233 (read_emacs_mule_char): New functions.
18234 (Fload): Even if the file doesn't have the extension ".elc", if
18235 safe_to_load_p returns a positive version number, assume that the
18236 file contains bytecompiled code. If the version is less than 22,
18237 load the file while decoding multibyte sequences by emacs-mule.
18238 (readevalloop): Don't use readchar_backlog.
18239 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18240 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18241 (read_escape): Delete the arg BYTEREP.
18242 (read1): Set load_each_byte to 1 temporarily while handling
18243 #@NUMBER. Don't call read_multibyte.
18244 (read_vector): Call Fread with a cons. If readcharfun is
18245 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18246 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18247 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18248 and Qload_force_doc_strings.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * xdisp.c (face_before_or_after_it_pos): Call
18253 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18254
182552008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * character.h (TRAILING_CODE_P): New macro.
18258 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18259 (string_char_with_unification): Fix prototype.
18260 (Vscript_alist): Extern it.
18261
18262 * character.c (Vscript_alist): New variable.
18263 (string_char_with_unification, str_as_unibyte)
18264 (string_escape_byte8): Add `const' to local variables.
18265 (syms_of_character): Declare script-alist as a Lisp variable.
18266
18267 * charset.h (Vcharset_ordered_list): Extern it.
18268 (charset_ordered_list_tick): Extern it.
18269 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18270 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18271 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18272 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18273 (Funify_charset): Adjust for the change of Funify_charset.
18274
18275 * charset.c (charset_ordered_list_tick): New variable.
18276 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18277 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18278 deunify intead of unify a charset.
18279 (string_xstring_p): Add `const' to local variables.
18280 (find_charsets_in_text): Add `const' to arguments and local variables.
18281 (encode_char): Adjust for the change of Funify_charset. Fix
18282 detecting of invalid code.
18283 (Fset_charset_priority): Increment charset_ordered_list_tick.
18284 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18285 and TO_CODE.
18286
18287 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18288 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18289 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18290 (decode_coding_ccl, consume_chars)
18291 (Ffind_coding_systems_region_internal)
18292 (Fcheck_coding_systems_region): Add `const' to local variables.
18293
18294 * print.c (print_object): Use octal form for printing the
18295 contents of a bool vector.
18296
182972008-02-01 Dave Love <fx@gnu.org>
18298
18299 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18300 <version == 20>: Refuse to load.
18301
183022008-02-01 Dave Love <fx@gnu.org>
18303
18304 * fns.c: Move coding.h.
18305 (Qcodeset, Qdays, Qmonths): New.
18306 (concat): Use CHARACTERP instead of INTEGERP.
18307 (Flocale_codeset): Delete.
18308 (Flanginfo): New function.
18309 (syms_of_fns): Change accordingly.
18310
18311 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18312
183132008-02-01 Dave Love <fx@gnu.org>
18314
18315 * casetab.c (init_casetab_once, init_casetab_once): Fix
18316 CHAR_TABLE_SET call.
18317
18318 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18319
18320 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18321
18322 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18323 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18324 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18325
18326 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18327
18328 * coding.c (ENCODE_DESIGNATION, decode_eol)
18329 (make_conversion_work_buffer, code_conversion_restore)
18330 (Fdefine_coding_system_internal): Convert Lisp types.
18331 (code_conversion_restore): Use EQ, not ==.
18332 (Fencode_coding_string): Fix code_convert_string call.
18333
18334 * coding.h (code_convert_region): Fix prototype.
18335
18336 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18337
18338 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18339 (Ffontset_info): Convert Lisp types.
18340
18341 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18342
18343 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18344
18345 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18346
18347 * chartab.c: Include "...h", not <...h> in some cases.
18348
18349 * callproc.c (Fcall_process): Remove unused variables.
18350
183512008-02-01 Dave Love <fx@gnu.org>
18352
18353 * coding.c (Fset_coding_system_priority): Allow null arg list.
18354
183552008-02-01 Dave Love <fx@gnu.org>
18356
18357 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18358 (Fself_insert_and_exit): Use CHARACTERP.
18359
18360 * callproc.c (Fcall_process): Remove unused vars.
18361
18362 * xterm.c (XTread_socket): Add extra dead keysyms.
18363
18364 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18365
18366 * dispextern.h: Remove prototypes for redraw_frame,
18367 redraw_garbaged_frames.
18368
18369 * cmds.c (Fself_insert_command): Use CHARACTERP.
18370
18371 * chartab.c (make_sub_char_table): Remove unused var.
18372 (Fset_char_table_default, Fmap_char_table): Doc fix.
18373
18374 * keymap.c (access_keymap): Remove generic char code.
18375 (push_key_description): Use CHARACTERP.
18376
183772008-02-01 Dave Love <fx@gnu.org>
18378
18379 * charset.c: Doc fixes.
18380 (Funify_charset): Extra checking.
18381
183822008-02-01 Dave Love <fx@gnu.org>
18383
18384 * lread.c: Remove some unused variables.
18385 (safe_to_load_p): If safe, return the magic number version byte.
18386 (Fload): Maybe use load-with-code-conversion.
18387
183882008-02-01 Kenichi Handa <handa@m17n.org>
18389
18390 * category.c (Fmodify_category_entry): Don't modify the contents
18391 of category_set for characters out of the range. Avoid
18392 unnecessary modification.
18393
18394 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18395 Vchar_unify_table. The default value of the table is now nil.
18396
18397 * character.c (syms_of_character): Setup Vchar_width_table for
18398 eight-bit-control and raw-byte chars.
18399
18400 * charset.h (enum define_charset_arg_index): Delete
18401 charset_arg_parents and add charset_arg_subset and
18402 charset_arg_superset.
18403 (enum charset_attr_index): Delete charset_parents and add
18404 charset_subset and charset_superset.
18405 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18406 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18407 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18408 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18409 (CHARSET_SUPERSET): New macros.
18410 (charset_work): Extern it.
18411 (ENCODE_CHAR): Use charset_work.
18412 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18413 (map_charset_chars): Extern it.
18414
18415 * charset.c (load_charset_map): Set the default value of encoder
18416 and deunifier char-tables to nil.
18417 (map_charset_chars): Change argument. Change callers. Use
18418 map_char_table_for_charset instead of map_char_table.
18419 (Fmap_charset_chars): New optional args from_code and to_code.
18420 (Fdefine_charset_internal): Adjust for the change of
18421 `define-charset' (:parents -> :subset or :superset).
18422 (charset_work): New variable.
18423 (encode_char, syms_of_charset): Adjust for the change of
18424 Fdefine_charset_internal.
18425 (Ffind_charset_string): Setup the vector `charsets' correctly.
18426
18427 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18428 the previous change.
18429 (char_table_ref_and_range): Adjust for the above change.
18430 (map_sub_char_table_for_charset): New function.
18431 (map_char_table_for_charset): New function.
18432
18433 * keymap.c (describe_vector): Handle a char-table directly here.
18434 (describe_char_table): Delete.
18435
18436 * lisp.h (map_charset_chars): Delete.
18437
184382008-02-01 Dave Love <fx@gnu.org>
18439
18440 * fns.c (count_combining): Comment out (unused).
18441 (Flocale_codeset): New.
18442 (syms_of_fns): Defsubr it.
18443
18444 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18445 (size_t): Remove.
18446
184472008-02-01 Dave Love <fx@gnu.org>
18448
18449 * Makefile.in (chartab.o): Depend on charset.h.
18450
184512008-02-01 Kenichi Handa <handa@m17n.org>
18452
18453 * character.c (syms_of_character): Set the default value of
18454 Vprintable_chars to Qnil.
18455
184562008-02-01 Dave Love <fx@gnu.org>
18457
18458 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18459
184602008-02-01 Kenichi Handa <handa@m17n.org>
18461
18462 * charset.c (load_charset_map): Handle the case that from < to
18463 correctly.
18464
18465 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18466 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18467 Pay attention to raw-8-bit chars.
18468
184692008-02-01 Kenichi Handa <handa@m17n.org>
18470
18471 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18472 It is not bytecompiled now.
18473
18474 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18475 (charset_jisx0208): New variables.
18476 (Fdefine_charset_internal): Setup them if appropriate.
18477 (init_charset_once): Initialize them to -1.
18478
18479 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18480 (charset_jisx0208): Extern them.
18481
18482 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18483 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18484 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18485 (setup_iso_safe_charsets): Fix arguments to Fassq.
18486 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18487 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18488 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18489 (encode_coding_iso_2022): Change the 1st arg to
18490 ENCODE_ISO_CHARACTER to a variable.
18491
184922008-02-01 Kenichi Handa <handa@m17n.org>
18493
18494 * charset.h (enum define_charset_arg_index): New enums
18495 charset_arg_min_code and charset_arg_max_code.
18496 (struct charset): New member char_index_offset.
18497
18498 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18499 Take charset->char_index_offset into account.
18500 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18501 args[charset_arg_max_code]. Setup charset.char_index_offset.
18502 (syms_of_charset): Fix args to Fdefine_charset_internal.
18503
185042008-02-01 Dave Love <fx@gnu.org>
18505
18506 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18507
185082008-02-01 Dave Love <fx@gnu.org>
18509
18510 * coding.c: Doc fixes.
18511 (Fcoding_system_aliases): Fix return value.
18512 (Qmac): Remove (duplicated) definition.
18513
185142008-02-01 Dave Love <fx@gnu.org>
18515
362654a6
JB
18516 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18517 New functions.
aac0c6e3
MR
18518
18519 * character.c (Fstring): Doc fix.
18520
18521 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18522
362654a6 18523 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18524 (font-encoding-alist): Doc fix.
18525
185262008-02-01 Dave Love <fx@gnu.org>
18527
18528 * term.c (costs_set): Declare static, non-initialized for pcc.
18529 (encode_terminal_code): Remove unused var.
18530
18531 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18532 for K&R.
18533
18534 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18535
18536 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18537 (suffixes): Move out of make_subsidiaries for K&R.
18538
18539 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18540
18541 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18542
185432008-02-01 Dave Love <fx@gnu.org>
18544
18545 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18546
18547 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18548
185492008-02-01 Yong Lu <lyongu@asia-infonet.com>
18550
18551 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18552
18553 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18558 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18559
185602008-02-01 Kenichi Handa <handa@m17n.org>
18561
18562 * coding.c (decode_coding_charset): Adjust for the change of
18563 Fdefine_coding_system_internal.
18564 (Fdefine_coding_system_internal): For a coding system of
18565 `charset' type, store a list of charset IDs in
18566 `charset_attr_charset_valids' element of coding attributes.
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18571 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18572 caller. Handle 2-byte and 3-byte charsets correctly.
18573 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18574 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18575 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18576 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18577 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18578 sequence.
18579 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18580 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18581 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18582 and alt&rule composition.
18583 (decode_coding_iso_2022): Handle composition correctly.
18584 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18585
18586 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18587 re-defining a charset. If the charset has :emacs-mule-id, setup
18588 emacs_mule_bytes.
18589 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18590
185912008-02-01 Kenichi Handa <handa@m17n.org>
18592
18593 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18594 (encode_coding_big5, encode_coding_charset): If coding requires safe
18595 encoding, produce a character specified by
18596 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18597
185982008-02-01 Dave Love <fx@gnu.org>
18599
18600 * xterm.c (XSetIMValues): Declare.
18601
18602 * process.c: Conditionally include sys/wait.h, pty.h.
18603
18604 * print.c (print_object): Fix print format for 64-bit systems.
18605
18606 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18607
18608 * buffer.c (emacs_strerror): Declare.
18609
18610 * fontset.c (Fclear_face_cache): Declare.
18611 (accumulate_font_info): Comment-out (unused).
18612 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18613 variables.
18614
18615 * character.h (string_escape_byte8): Declare.
18616
18617 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18618 unused vars.
18619 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18620 (Fmap_charset_chars): Doc fix.
18621
18622 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18623 (Fset_coding_system_priority, Fset_coding_system_priority)
18624 (Fdefine_coding_system_internal): Doc fix.
18625
186262008-02-01 Dave Love <fx@gnu.org>
18627
18628 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18629
186302008-02-01 Kenichi Handa <handa@m17n.org>
18631
18632 * character.c (string_escape_byte8): Make multibyte string with
18633 correct size.
18634
18635 * charset.c (Fmake_char): Delete unnecessary code.
18636
186372008-02-01 Kenichi Handa <handa@m17n.org>
18638
18639 * xfns.c (x_encode_text): Allocate coding.destination here, and
18640 call encode_coding_object with dst_object Qnil.
18641
18642 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18643 multibyte form correctly.
18644
18645 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18646 against Vfont_encoding_alist.
18647
18648 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18649 handling of charset list.
18650 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18651 (decode_coding_object): Move point to coding->dst_pos before
18652 calling post-read-conversion function.
18653 (encode_coding_object): Give correct arguments to
18654 pre-write-conversion. Ignore the return value of
18655 pre-write-conversion function. Pay attention to the case that
18656 pre-write-conversion changes the current buffer. If dst_object is
18657 Qt, even if coding->src_bytes is zero, allocate at least one byte
18658 to coding->destination.
18659
18660 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18661
18662 * charset.c (Fmake_char): Make it more backward compatible.
18663 (Fmap_charset_chars): Fix docstring.
18664
186652008-02-01 Dave Love <fx@gnu.org>
18666
18667 * coding.c: Doc fixes.
18668 (Fdefine_coding_system_alias): Use names, not symbols, in
18669 coding-system-alist.
18670
186712008-02-01 Kenichi Handa <handa@m17n.org>
18672
18673 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18674 of calling free_realized_face.
18675
186762008-02-01 Yong Lu <lyongu@asia-infonet.com>
18677
18678 * charset.c (read_hex): Don't treat SPC as a comment starter.
18679 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18680 (Fdecode_char): Fix typo.
18681
186822008-02-01 Kenichi Handa <handa@m17n.org>
18683
18684 * charset.h (struct charset): New member `code_space_mask'.
18685
18686 * coding.c (coding_set_source): Delete the local variable beg_byte.
18687 (encode_coding_charset, Fdefine_coding_system_internal):
18688 Delete the local variable charset.
18689 (Fdefine_coding_system_internal): Setup
18690 attrs[coding_attr_charset_valids] correctly.
18691
18692 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18693 member to check if CODE is valid or not.
18694 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18695 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18696 is within the range of charset->min_code and carset->max_code.
18697
186982008-02-01 Dave Love <fx@gnu.org>
18699
18700 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18701
18702 * dispextern.h (generate_ascii_font): Fix return type.
18703
18704 * xfaces.c (generate_ascii_font): Fix arg declaration.
18705
18706 * coding.c (coding_inherit_eol_type)
18707 (Fset_terminal_coding_system_internal)
18708 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18709
187102008-02-01 Kenichi Handa <handa@m17n.org>
18711
18712 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18713 multiple charsets correctly.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * search.c (boyer_moore): Fix handling of multibyte character
18718 translation.
18719
18720 * xdisp.c (display_mode_element): When the variable `elt' is
18721 changed, update `this' and `lisp_string'.
18722
187232008-02-01 Kenichi Handa <handa@m17n.org>
18724
18725 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18726
18727 * callproc.c (Fcall_process): Be sure to give the current buffer
18728 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18729
18730 * charset.c (struct charset_map_entries): New struct.
18731 (load_charset_map): Rename from parse_charset_map. New args
18732 entries and n_entries. Change caller.
18733 (load_charset_map_from_file): Rename from load_charset_map.
18734 Change caller. New arg control_flag. Call load_charset_map at
18735 the tail.
18736 (load_charset_map_from_vector): New function.
18737 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18738 (encode_char): If the charset is compact, change a character index
18739 to a code point.
18740
18741 * coding.c (coding_alloc_by_making_gap): Check the case that the
18742 source and destination are the same correctly.
18743 (decode_coding_raw_text): Set coding->consumed_char and
18744 coding->consumed to 0.
18745 (produce_chars): If coding->chars_at_source is nonzero, update
18746 coding->consumed_char and coding->consumed before calling
18747 alloc_destination.
18748 (Fdefine_coding_system_alias): Register ALIAS in
18749 Vcoding_system_alist.
18750 (syms_of_coding): Define `no-conversion' coding system at the tail.
18751
18752 * fileio.c (Finsert_file_contents): Set coding_system instead of
18753 val. If the current buffer is multibyte, always call
18754 decode_coding_gap.
18755
18756 * xfaces.c (try_font_list): Give higher priority to fontset's
18757 family than face's family.
18758
187592008-02-01 Kenichi Handa <handa@m17n.org>
18760
18761 * callproc.c (Fcall_process): Be sure to give the current buffer
18762 to decode_coding_c_string.
18763
18764 * xfaces.c (try_font_list): Give a family specified in a fontset
18765 higher priority than a family specified in a face.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18770 Fix arguments to insert_from_buffer.
18771
18772 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18773
187742008-02-01 Kenichi Handa <handa@m17n.org>
18775
18776 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18777 (decode_coding_gap): Set coding->dst_multibyte correctly.
18778
187792008-02-01 Kenichi Handa <handa@m17n.org>
18780
18781 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18782 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18783 (encode_coding_utf_16): Substitute coding->default_char for
18784 non-Unicode characters.
18785 (decode_coding): Don't call record_insert here.
18786 (setup_coding_system): Initialize `surrogate' of
18787 coding->spec.utf_16 to 0.
18788 (EMIT_ONE_BYTE): Fix for multibyte case.
18789
18790 * insdel.c (insert_from_gap): Call record_insert.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * casefiddle.c (casify_region): Fix multibyte case.
18795
18796 * character.c (c_string_width): Add return type `int'.
18797 (char_string_with_unification): Delete arg ADVANCED.
18798
18799 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18800 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18801 (CHAR_STRING_ADVANCE): Make it do-while statement.
18802
18803 * chartab.c (sub_char_table_set_range): Optimize for the case
18804 DEPTH == 3. Add workaround code for a GCC optimization bug.
18805
18806 * charset.c (parse_charset_map): Remove an unused variable.
18807
18808 * coding.c: Delete unused variables.
18809
18810 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18811 earlier. If inserted is zero and the coding system doesn't
18812 require flushing, don't call decode_coding_gap.
18813
18814 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18815
188162008-02-01 Kenichi Handa <handa@m17n.org>
18817
18818 The following changes are for using Unicode as an internal
18819 character model, and use UTF-8 format for buffer/string
18820 representation.
18821
18822 * .gdbinit (xchartable): Adjust for the change of char table structure.
18823 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18824
18825 * Makefile.in (obj): Add character.o and chartab.o.
18826 (lisp, shortlisp): Remove utf-8.elc.
18827 (*.o): For many files, change dependency on charset.h to
18828 character.h, and add dependency on character.h.
18829 (character.o, chartab.o): New targets.
18830
18831 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18832 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18833 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18834 of "charset.h".
18835
18836 * dired.c, filelock.c: Include "character.h".
18837
18838 * alloc.c: Include "character.h" instead of "charset.h".
18839 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18840 (syms_of_alloc): Remove defsubr for Smake_char_table.
18841
18842 * buffer.c: Include "character.h" instead of "charset.h", don't
18843 include "coding.h".
18844 (Fset_buffer_multibyte): Adjust for UTF-8.
18845
18846 * buffer.h: EXFUN Fbuffer_live_p.
18847
18848 * callproc.c: Include "character.h" instead of "charset.h".
18849 (Fcall_process): Big change for the new code-conversion APIs.
18850
18851 * casetab.c: Include "character.h" instead of "charset.h".
18852 (set_canon, set_identity, shuffle): Adjust for the new
18853 map_char_table spec.
18854 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18855 accessing the char table structure.
18856
18857 * chartab.c: New file that implements char table.
18858
18859 * category.c: Include "character.h".
18860 (copy_category_entry): New function.
18861 (copy_category_table): Call map_char_table and copy_category_entry.
18862 (Fmake_category_table): Initialize all top-level slots.
18863 (char_category_set): New function.
18864 (modify_lower_category_set): Delete.
18865 (Fmodify_category_entry): Call char_table_ref_and_range.
18866
18867 * category.h (CATEGORY_SET): Just call char_category_set.
18868
18869 * ccl.c: Include "character.h".
18870 (Qccl, Qcclp): New variables.
18871 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18872 it's less than 256.
18873 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18874 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18875 and DST type.
18876 (ccl_driver): Change types of argument, adjust code accordingly.
18877 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18878 ccl_driver.
18879 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18880
18881 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18882 New members src_multibyte, dst_multibyte, consumed, and produced.
18883 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18884 (CODING_SPEC_CCL_PROGRAM): New macro.
18885 (ccl_driver): Update prototype.
18886 (Qccl, Qcclp, Fccl_program_p): Extern them.
18887 (CHECK_CCL_PROGRAM): New macro.
18888
18889 * character.c, character.h, chartab.c: New files.
18890
18891 * charset.c: Mostly re-written. Move character and multibyte sequence
18892 handling codes to character.c.
18893
18894 * charset.h: Mostly re-written. Move character and multibyte sequence
18895 handling codes to character.h.
18896
18897 * coding.c, coding.h: Mostly re-written.
18898
18899 * composite.c: Include "character.h" instead of "charset.h".
18900 (CHAR_WIDTH): Move to character.h.
18901 (HASH_KEY, HASH_VALUE): Delete.
18902
18903 * composite.h (enum composition_method): Change order of enumeration
18904 symbols.
18905
18906 * data.c: Include "character.h" instead of "charset.h".
18907 (Faref): Call CHAR_TABLE_REF for a char table.
18908 (Faset): Call CHAR_TABLE_SET for a char table.
18909
18910 * dispextern.h (free_realized_face, check_face_attribytes)
18911 (generate_ascii_font): Extern them.
18912 (free_realized_multibyte_face): Delete extern.
18913
18914 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18915 table structure.
18916
18917 * editfns.c: Include "character.h" instead of "charset.h".
18918 (Fchar_to_string): Always call CHAR_STRING.
18919
18920 * emacs.c (main): Call init_charset_once, init_charset,
18921 syms_of_chartab, and syms_of_character.
18922
18923 * fileio.c: Include "character.h" instead of "charset.h".
18924 (Finsert_file_contents): Big change for the new code-conversion API.
18925 (choose_write_coding_system, Fwrite_region): Likewise.
18926 (build_annotations_2): Delete.
18927 (e_write): Big change for the new code-conversion API.
18928
18929 * fns.c: Include "character.h" instead of "charset.h".
18930 (copy_sub_char_table): Move to chartab.c.
18931 (Fcopy_sequence): Call copy_char_table for a char table.
18932 (concat): Delete codes calling count_multibyte.
18933 (string_char_to_byte, string_byte_to_char): Adjust for the new
18934 multibyte form.
18935 (internal_equal): Adjust for the change of char table structure.
18936 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18937 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18938 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18939 (char_table_translate, optimize_sub_char_table)
18940 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18941 chartab.c.
18942 (char_table_ref_and_index): Delete.
18943 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18944 (Fmd5): Call preferred_coding_system instead of accessing
18945 Vcoding_category_list. Adjust for the new code-conversion API.
18946 (syms_of_fns): Move defsubr for char table related functions to
18947 chartab.c.
18948
18949 * fontset.c: Mostly re-written.
18950
18951 * fontset.h (struct font_info): Change type of the member encoding_type.
18952 (enum FONT_SPEC_INDEX): New enum.
18953 (fontset_font_pattern, fs_load_font): Update prototype.
18954 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18955
18956 * indent.c: Include "character.h" instead of "charset.h".
18957 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18958
18959 * insdel.c: Include "character.h" instead of "charset.h".
18960 (copy_text): Don't refer to Vnonascii_translation_table.
18961 (insert_from_gap): New function.
18962
18963 * keyboard.c: Include "character.h" instead of "charset.h".
18964 (command_loop_1): Never call direct_output_forward_char before
18965 a non-ASCII character.
18966 (read_char): If Vkeyboard_translate_table is a char table, always
18967 translate a character.
18968
18969 * keymap.c: Include "character.h".
18970 (store_in_keymap): Handle the case that IDX is a cons.
18971 (Fdefine_key): Handle the case that KEY is a cons and the car part
18972 is also a cons (range).
18973 (push_key_description): Adjust for the new character code.
18974 (describe_vector): Call describe_char_table for a char table.
18975 (describe_char_table): New function.
18976
18977 * keymap.h (describe_char_table): Extern it.
18978
18979 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18980 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18981 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18982 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18983 Delete.
18984 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18985 structure.
18986 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18987 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18988 (CHARTAB_SIZE_BITS_3): New macros.
18989 (chartab_size): Extern it.
18990 (struct Lisp_Char_Table): Re-design.
18991 (struct Lisp_Sub_Char_Table): New structure.
18992 (HASH_KEY, HASH_VALUE): Move from fns.c.
18993 (CHARACTERBITS): Define as 22.
18994 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18995 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18996 (GC_SUB_CHAR_TABLE_P): New macro.
18997 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18998 (code_convert_string_norecord): Deleted extern.
18999 (init_character_once, syms_of_character, init_charset)
19000 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19001
19002 * lread.c: Include "character.h".
19003 (read_multibyte): New arg NBYTES.
19004 (read_escape): Change the meaning of returned *BYTEREP.
19005 (to_multibyte): Delete.
19006 (read1): Adjust the handling of char table and string.
19007
19008 * print.c: Include "character.h" instead of "charset.h".
19009 (print_string): Convert 8-bit raw bytes to octal form by
19010 string_escape_byte8.
19011 (print_object): Adjust for the new multibyte form. Print 8-bit
19012 raw bytes always in octal form. Handle sub char table correctly.
19013
19014 * process.c: Include "character.h" instead of "charset.h".
19015 (read_process_output, send_process): Adjust for the new
19016 code-conversion API.
19017
19018 * puresize.h (BASE_PURESIZE): Increase.
19019
19020 * regex.c: Include "character.h" instead of "charset.h".
19021 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19022 (regex_compile): Accept a range whose starting and ending
19023 character have different leading bytes.
19024 (analyse_first): Adjust for the above change.
19025
19026 * search.c: Include "character.h" instead of "charset.h".
19027 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19028 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19029
19030 * syntax.c: Include "character.h" instead of "charset.h".
19031 (syntax_parent_lookup): Delete.
19032 (Fmodify_syntax_entry): Accept a cons as CHAR.
19033 (skip_chars): Adjust for the new multibyte form.
19034 (init_syntax_once): Call char_table_set_range instead of directly
19035 accessing the structure of a char table.
19036
19037 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19038 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19039 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19040 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19041
19042 * term.c: Include "buffer.h" and "character.h".
19043 (encode_terminal_code, write_glyphs): Adjust for the new
19044 code-conversion API.
19045 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19046
19047 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19048
19049 * xdisp.c: Include "character.h".
19050 (get_next_display_element): Adjust for the new multibyte form.
19051 (disp_char_vector): Adjust for the new char table structure.
19052 (decode_mode_spec_coding): Adjust for the new structure of
19053 coding system.
19054 (decode_mode_spec): Adjust for the new code-conversion API.
19055
19056 * xfaces.c: Include "character.h" instead of "charset.h".
19057 (load_face_font): Adjust for the change of choose_face_font and
19058 FS_LOAD_FONT.
19059 (generate_ascii_font): New function.
19060 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19061 (set_font_frame_param): Adjust for the change of choose_face_font.
19062 (free_realized_face): Make it public.
19063 (free_realized_faces_for_fontset): Rename from
19064 free_realized_multibyte_face. Free also faces realized for ASCII.
19065 (choose_face_font): Change arguments. Adjust for the change of
19066 fontset_font_pattern and FS_LOAD_FONT.
19067
19068 * xfns.c: Include "character.h".
19069 (x_encode_text): Adjust for the new code-conversion API.
19070
19071 * xselect.c: Don't include "charset.h".
19072 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19073
19074 * xterm.c: Include "character.h".
19075 (x_encode_char): New argument CHARSET. Change caller.
19076 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19077 Call ENCODE_CHAR instead of SPLIT_CHAR.
19078 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19079 CHAR_WIDTH instead of CHARSET_WIDTH.
19080 (XTread_socket): Adjust for the new code-conversion API.
19081 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19082 (x_load_font): Adjust for the change of struct font.
19083
190842008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19085
19086 * xfaces.c (face_at_buffer_position): Remove unused vars.
19087
190882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19089
19090 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19091 Fix overflow checking.
19092
190932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19094
19095 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19096 Cancel previous change.
19097
190982008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19099
19100 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19101 ccl->eight_bit_control. Fix check for buffer overflow.
19102 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19103 (ccl_driver): Initialize extra_bytes to 0.
19104
191052008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19106
19107 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19108 return it ORed with ctrl_modifier.
19109
191102008-01-29 Miles Bader <miles@gnu.org>
19111
19112 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19113
191142008-01-28 Jason Rumney <jasonr@gnu.org>
19115
19116 * w32.c (stat): Don't double check for networked drive.
19117
191182008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19119
19120 * window.c (run_window_configuration_change_hook): New function.
19121 Code extracted from set_window_buffer. Set the selected frame.
19122 (set_window_buffer): Use it.
19123 * window.h (run_window_configuration_change_hook): Declare.
19124 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19125
19126 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19127
191282008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19129
19130 * Makefile.in: Remove references to unused macros.
19131
191322008-01-26 Eli Zaretskii <eliz@gnu.org>
19133
19134 * w32.c (g_b_init_get_sid_sub_authority)
19135 (g_b_init_get_sid_sub_authority_count): New static variables.
19136 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19137 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19138 (init_user_info): Use them to retrieve uid and gid.
19139 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19140 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19141 st_uid and st_gid of the file.
19142
191432008-01-26 Jason Rumney <jasonr@gnu.org>
19144
19145 * w32.c (logon_network_drive): New function.
19146 (stat): Use it.
19147
191482008-01-26 Chong Yidong <cyd@stupidchicken.com>
19149
19150 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19151 invisible text covered with an ellipsis.
19152
191532008-01-25 Richard Stallman <rms@gnu.org>
19154
19155 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19156 jump back to beginning. Move some other initializations after that.
19157 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19158 New variables.
19159 (syms_of_xdisp): Init them.
19160
19161 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19162
19163 * buffer.c (reset_buffer_local_variables):
19164 Implement `permanent-local-hook'.
19165 (Qpermanent_local_hook): New variable.
19166 (syms_of_buffer): Init and staticpro it.
19167
191682008-01-25 Michael Albinus <michael.albinus@gmx.de>
19169
19170 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19171
191722008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19173
19174 * fns.c (Fclrhash): Return TABLE.
19175
191762008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19177
19178 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19179 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19180 is set even without positional changes.
19181 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19182
19183 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19184
191852008-01-23 Jason Rumney <jasonr@gnu.org>
19186
19187 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19188
19189 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19190 the unicode range available in MULE by locale-coding-system.
19191 Improve dbcs lead byte detection. Set event timestamp and modifiers
19192 earlier.
19193
191942008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19195
19196 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19197 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19198 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19199 when used on child processes.
19200
192012008-01-21 Michael Albinus <michael.albinus@gmx.de>
19202
19203 * dbusbind.c (Fdbus_method_return_internal): Rename from
19204 Fdbus_method_return.
19205 (Fdbus_unregister_object): Move to dbus.el.
19206 (Fdbus_call_method, Fdbus_method_return_internal)
19207 (Fdbus_send_signal): Improve debug messages.
19208
192092008-01-20 Martin Rudalics <rudalics@gmx.at>
19210
19211 * undo.c (undo_inhibit_record_point): New variable.
19212 (syms_of_undo): Initialize it.
19213 (record_point): Don't record point when undo_inhibit_record_point
19214 is set.
19215
192162008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19217
19218 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19219
19220 * xdisp.c (Qauto_hscroll_mode): New var.
19221 (syms_of_xdisp): Initialize it.
19222 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19223 window's buffer.
19224 (hscroll_windows): Don't check automatic_hscrolling_p here.
19225
19226 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19227 vscroll if we're setting window-buffer to the value it already has.
19228
192292008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19230
19231 * m/intel386.h: Remove references to XENIX.
19232
192332008-01-17 Andreas Schwab <schwab@suse.de>
19234
19235 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19236 instead of HAVE_X86_64_LIB64_DIR.
19237 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19238
192392008-01-17 Glenn Morris <rgm@gnu.org>
19240
19241 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19242 to HAVE_X86_64_LIB64_DIR.
19243
192442008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19245
19246 * s/irix3-3.h:
19247 * s/irix4-0.h:
19248 * s/386-ix.h:
19249 * s/domain.h:
19250 * s/hpux9-x11r4.h:
19251 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19252
19253 * sysdep.c: Remove code containing references to symbols defined
19254 by unsupported systems.
19255
192562008-01-16 Glenn Morris <rgm@gnu.org>
19257
19258 * coding.c (select-safe-coding-system-function): Doc fix.
19259
192602008-01-15 Glenn Morris <rgm@gnu.org>
19261
19262 * config.in: Revert 2008-01-13 change: this is a generated file.
19263
192642008-01-13 Tom Tromey <tromey@redhat.com>
19265
19266 * lisp.h: Fix typo.
19267
192682008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19269
19270 * m/sequent-ptx.h:
19271 * m/sequent.h:
19272 * s/ptx.h:
19273 * s/ptx4-2.h:
19274 * s/ptx4.h: Remove files for systems no longer supported.
19275
19276 * callproc.c (Fcall_process): Fix previous change.
19277
192782008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19279
19280 * unexsunos4.c: Remove file, system not supported anymore.
19281
19282 * m/mips.h:
19283 * m/intel386.h:
19284 * callproc.c:
19285 * config.in:
19286 * ecrt0.c:
19287 * emacs.c:
19288 * fileio.c:
19289 * frame.c:
19290 * getpagesize.h:
19291 * keyboard.c:
19292 * lread.c:
19293 * process.c:
19294 * puresize.h:
19295 * sysdep.c:
19296 * systty.h:
19297 * syswait.h:
19298 * unexec.c:
19299 * xdisp.c:
19300 * alloc.c: Remove code containing references to symbols defined by
19301 unsupported systems.
19302
193032008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19304
19305 * coding.c (detect_coding_mask): Fix previous change.
19306
193072008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19308
19309 * coding.c (detect_coding_iso2022): New arg
19310 latin_extra_code_state. Allow Latin extra codes only
19311 when *latin_extra_code_state is nonzero.
19312 (detect_coding_mask): If there is a NULL byte, detect the encoding
19313 as UTF-16 or binary. If Latin extra codes exist, detect the
19314 encoding as ISO-2022 only when there's no other proper encoding is
19315 found.
19316
193172008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19318
19319 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19320 #ifdef MAC_OS.
19321
193222008-01-08 Richard Stallman <rms@gnu.org>
19323
19324 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19325
193262008-01-06 Nick Roberts <nickrob@snap.net.nz>
19327
19328 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19329 menu bar in parentheses.
19330
193312008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19332
19333 * m/7300.h:
19334 * m/acorn.h:
19335 * m/alliant-2800.h:
19336 * m/alliant.h:
19337 * m/alliant1.h:
19338 * m/alliant4.h:
19339 * m/altos.h:
19340 * m/amdahl.h:
19341 * m/apollo.h:
19342 * m/att3b.h:
19343 * m/aviion-intel.h:
19344 * m/aviion.h:
19345 * m/celerity.h:
19346 * m/clipper.h:
19347 * m/cnvrgnt.h:
19348 * m/convex.h:
19349 * m/cydra5.h:
19350 * m/delta88k.h:
19351 * m/dpx2.h:
19352 * m/dual.h:
19353 * m/elxsi.h:
19354 * m/f301.h:
19355 * m/gould-np1.h:
19356 * m/gould.h:
19357 * m/i860.h:
19358 * m/ibmps2-aix.h:
19359 * m/ibmrt-aix.h:
19360 * m/ibmrt.h:
19361 * m/irist.h:
19362 * m/is386.h:
19363 * m/isi-ov.h:
19364 * m/mega68.h:
19365 * m/mg1.h:
19366 * m/news-r6.h:
19367 * m/news-risc.h:
19368 * m/news.h:
19369 * m/nh3000.h:
19370 * m/nh4000.h:
19371 * m/ns16000.h:
19372 * m/ns32000.h:
19373 * m/nu.h:
19374 * m/orion.h:
19375 * m/orion105.h:
19376 * m/paragon.h:
19377 * m/pfa50.h:
19378 * m/plexus.h:
19379 * m/pyramid.h:
19380 * m/pyrmips.h:
19381 * m/sh3el.h:
19382 * m/sps7.h:
19383 * m/sr2k.h:
19384 * m/stride.h:
19385 * m/sun1.h:
19386 * m/sun2.h:
19387 * m/sun3-68881.h:
19388 * m/sun3-fpa.h:
19389 * m/sun3-soft.h:
19390 * m/sun3.h:
19391 * m/sun386.h:
19392 * m/symmetry.h:
19393 * m/tad68k.h:
19394 * m/tahoe.h:
19395 * m/targon31.h:
19396 * m/tek4300.h:
19397 * m/tekxd88.h:
19398 * m/tower32.h:
19399 * m/tower32v3.h:
19400 * m/ustation.h:
19401 * m/wicat.h:
19402 * m/xps100.h:
19403 * s/cxux.h:
19404 * s/cxux7.h:
19405 * s/dgux.h:
19406 * s/dgux4.h:
19407 * s/dgux5-4-3.h:
19408 * s/dgux5-4r2.h:
19409 * s/esix.h:
19410 * s/esix5r4.h:
19411 * s/hiuxmpp.h:
19412 * s/hiuxwe2.h:
19413 * s/iris3-5.h:
19414 * s/iris3-6.h:
19415 * s/isc2-2.h:
19416 * s/isc3-0.h:
19417 * s/isc4-0.h:
19418 * s/isc4-1.h:
19419 * s/newsos5.h:
19420 * s/newsos6.h:
19421 * s/osf1.h:
19422 * s/osf5-0.h:
19423 * s/riscix1-1.h:
19424 * s/riscix12.h:
19425 * s/sco4.h:
19426 * s/sco5.h:
19427 * s/sunos4-0.h:
19428 * s/sunos4-1.h:
19429 * s/sunos413.h:
19430 * s/sunos4shr.h:
19431 * s/umax.h:
19432 * s/unipl5-2.h:
19433 * s/xenix.h:
19434 * cxux-crt0.s:
19435 * unexapollo.c:
19436 * unexconvex.c:
19437 * unexenix.c:
19438 * unexsni.c: Remove files for systems no longer supported.
19439
19440 * m/intel386.h: Remove references to unsupported systems.
19441
19442 * w32.c (get_emacs_configuration): Remove reference to i860.
19443
19444 * sysdep.c: Remove dead code.
19445
194462008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19447
19448 * s/rtu.h:
19449 * m/masscomp.h: Remove files. Platform is obsolete.
19450
194512008-01-04 Michael Albinus <michael.albinus@gmx.de>
19452
19453 * dbusbind.c (Fdbus_method_return): New function.
19454 (xd_read_message): Add the serial number to the event.
19455 (Fdbus_register_method): Activate the function.
19456
194572008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19458
19459 * keyboard.c (read_key_sequence): Fix typo.
19460
194612008-01-03 Michael Albinus <michael.albinus@gmx.de>
19462
19463 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19464 (xd_signature, xd_append_arg): Handle element type detection for
19465 empty arrays.
19466 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19467 SDATA () calls; this must be solved more general.
19468 (Fdbus_register_signal): Use SBYTES instead of strlen.
19469
194702008-01-03 Magnus Henoch <magnus@zemdatav>
19471
19472 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19473 unsigned int for byte values (necessary for big-endian platform).
19474 (Fdbus_call_method): Handle the case of no returned arguments.
19475
194762007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19477
19478 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19479
194802007-12-31 Magnus Henoch <mange@freemail.hu>
19481
19482 * dbusbind.c (xd_signature): Signature of variant is just "v".
19483
194842007-12-30 Michael Albinus <michael.albinus@gmx.de>
19485
19486 * dbusbind.c: Fix several errors and compiler warnings.
19487 Reported by Tom Tromey <tromey@redhat.com>.
19488 (XD_ERROR, XD_DEBUG_MESSAGE)
19489 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19490 (xd_append_arg): Part for basic D-Bus types rewritten.
19491 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19492 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19493 appropriate.
19494 (xd_read_message): Return Qnil. Don't signal an error; it is not
19495 useful during event reading.
19496 (Fdbus_register_signal): Signal an error if the check for
19497 FUNCTIONP fails.
19498 (Fdbus_register_method): New function. The implementation is not
19499 complete, the call of the function signals an error therefore.
19500 (Fdbus_unregister_object): New function, renamed from
19501 Fdbus_unregister_signal. The initial check signals an error, if
19502 the object is not well formed.
19503
195042007-12-30 Richard Stallman <rms@gnu.org>
19505
19506 * textprop.c (get_char_property_and_overlay):
19507 Signal error if POSITION is out of range in a buffer.
19508
195092007-12-29 Martin Rudalics <rudalics@gmx.at>
19510
19511 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19512 because the original parameters are in pure storage now.
19513
195142007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19515
19516 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19517
195182007-12-22 Eli Zaretskii <eliz@gnu.org>
19519
19520 * callint.c (syms_of_callint) <command-history>: Add reference to
19521 history-length in the doc string.
19522
195232007-12-17 Jason Rumney <jasonr@gnu.org>
19524
19525 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19526 before passing as wParam.
19527
195282007-12-22 Michael Albinus <michael.albinus@gmx.de>
19529
19530 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19531 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19532 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19533 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19534 as number.
19535 (Fdbus_call_method): Fix docstring.
19536
195372007-12-21 Michael Albinus <michael.albinus@gmx.de>
19538
19539 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19540 New macros.
19541 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19542 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19543 Simplify.
19544 (xd_signature): New function.
19545 (xd_append_arg): Compute also signatures. Major rewrite.
19546 (xd_retrieve_arg): Make debug messages friendly.
19547 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19548 Check for signatures of arguments.
19549
195502007-12-19 Michael Albinus <michael.albinus@gmx.de>
19551
19552 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19553 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19554 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19555 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19556 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19557 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19558 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19559 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19560 (xd_retrieve_value): Remove. Functionality included in ...
19561 (xd_append_arg): New function.
19562 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19563
195642007-12-16 Michael Albinus <michael.albinus@gmx.de>
19565
19566 * dbusbind.c (top): Include <stdio.h>.
19567 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19568 dbus_message_new_method_call and dbus_message_new_signal.
19569 (Fdbus_register_signal): Rename unique_name to uname.
19570 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19571 non-existing unique name. Fix typos in matching rule. Return an
19572 object which is useful in Fdbus_unregister_signal.
19573 (Fdbus_unregister_signal): Reimplementation, in order to remove
19574 only the corresponding entry.
19575 (Vdbus_registered_functions_table): Change the order of entries.
19576 Apply these changes in xd_read_message and Fdbus_register_signal.
19577
195782007-12-16 Andreas Schwab <schwab@suse.de>
19579
19580 * fileio.c (Finsert_file_contents): Fix overflow check to not
19581 depend on undefined integer overflow.
19582
195832007-12-14 Jason Rumney <jasonr@gnu.org>
19584
19585 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19586 for characters above 127.
19587
195882007-12-13 Jason Rumney <jasonr@gnu.org>
19589
19590 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19591 before dereferencing array.
19592 (lookup_vk_code): Remove zero comparison.
19593
195942007-12-14 Michael Albinus <michael.albinus@gmx.de>
19595
19596 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19597 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19598 Use `unsigned int' instead of `uint'.
19599 (xd_read_message, Fdbus_register_signal): Split expressions into
19600 multiple lines before operators "&&" and "||", according to the
19601 GNU Coding Standards.
19602
196032007-12-14 Eli Zaretskii <eliz@gnu.org>
19604
19605 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19606
196072007-12-12 Juri Linkov <juri@jurta.org>
19608
19609 * buffer.c (Frename_buffer): In interactive spec replace
19610 `read-buffer' with `read-string' that uses `buffer-name-history'
19611 as history, and the current buffer's name as default.
19612
196132007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19614
19615 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19616 manipulating the backtrace manually.
19617 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19618 (struct backtrace, backtrace_list): Remove.
19619 (command_loop_1): Remove dead var `no_direct'.
19620
19621 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19622 preserve non-built-in buffer-local variables.
19623 (Fkill_all_local_variables): Don't re-create&re-set permanent
19624 buffer-local variables.
19625
196262007-12-09 Juri Linkov <juri@jurta.org>
19627
19628 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19629 Lisp code that uses `read-buffer' with current buffer as default.
19630
196312007-12-08 Michael Albinus <michael.albinus@gmx.de>
19632
19633 * dbusbind.c (xd_read_message): Generate an event for every
19634 registered handler. There might be several handlers registered
19635 for the same signal.
19636 (Fdbus_register_signal): Don't overwrite a registration for the
19637 same signal. Add a new registration if handlers are different.
19638 (Vdbus_registered_functions_table): Rework doc string.
19639
196402007-12-07 Michael Albinus <michael.albinus@gmx.de>
19641
19642 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19643 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19644 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19645 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19646 Unify argument lists.
19647 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19648 arguments and hash table keys. Use unique name for service.
19649 (Fdbus_unregister_signal): Remove checks.
19650 (Vdbus_registered_functions_table): Fix doc string.
19651
196522007-12-05 Magnus Henoch <mange@freemail.hu>
19653
19654 * process.c (make_process): Initialize pty_flag to 0.
19655
196562007-12-05 Jason Rumney <jasonr@gnu.org>
19657
19658 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19659 specified XBMs.
19660
196612007-12-05 Richard Stallman <rms@gnu.org>
19662
19663 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19664
196652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19666
19667 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19668 New variable.
19669 (mac_try_close_socket) [MAC_OSX]: New function.
19670 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19671 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19672
19673 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19674 Use mac_try_close_socket.
19675
196762007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19677
19678 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19679 reloc_base.
19680 (copy_dysymtab): Compute relocation base here.
19681 (rebase_reloc_address) [__ppc64__]: New function.
19682 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19683 changed.
19684
196852007-12-05 Jason Rumney <jasonr@gnu.org>
19686
19687 * w32proc.c (sys_spawnve): Quote args with wildcards.
19688
196892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19690
19691 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19692 __objc_* sections.
19693 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19694
196952007-12-05 Michael Albinus <michael.albinus@gmx.de>
19696
19697 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19698 Move check for Vdbus_registered_functions_table to
19699 xd_read_queued_messages.
19700 (xd_read_queued_messages): Protect xd_read_message calls by
19701 internal_condition_case_1.
19702
197032007-12-04 Michael Albinus <michael.albinus@gmx.de>
19704
19705 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19706 Qdbus_system_bus and Qdbus_session_bus, respectively.
19707 (Vdbus_intern_symbols): Remove.
19708 (Vdbus_registered_functions_table): New hash table.
19709 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19710 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19711 Rewrite in order to manage registered functions by hash table
19712 Vdbus_registered_functions_table.
19713
197142007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19715
19716 * xterm.c: Update URL to Window Manager Specification in comment.
19717
197182007-12-02 Michael Albinus <michael.albinus@gmx.de>
19719
19720 * config.in (HAVE_DBUS): Add.
19721
19722 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19723 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19724 (obj): Add $(DBUS_OBJ).
19725 (LIBES): Add $(DBUS_LIBS).
19726 (dbusbind.o): New target.
19727
19728 * dbusbind.c: New file.
19729
19730 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19731
19732 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19733 (Qdbus_event): New Lisp symbol.
19734 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19735 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19736 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19737
19738 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19739
197402007-12-01 Richard Stallman <rms@gnu.org>
19741
19742 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19743
197442007-11-30 Jason Rumney <jasonr@gnu.org>
19745
19746 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19747 (w32con_reset_terminal_modes): Clear screen buffer.
19748 (w32_face_attributes): Don't use color indexes that are out of range.
19749 Only reverse the default colors.
19750
19751 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19752 WINDOWSNT.
19753
19754 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19755
197562007-11-29 Jason Rumney <jasonr@gnu.org>
19757
19758 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19759 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19760 if the terminal colors are initialized.
19761 (unspecified_fg, unspecified_bg): Remove unused declarations.
19762
197632007-11-29 Andreas Schwab <schwab@suse.de>
19764
19765 * keyboard.c (apply_modifiers): Fix typo.
19766
197672007-11-29 Richard Stallman <rms@gnu.org>
19768
19769 * keymap.c (Fcurrent_local_map): Doc fix.
19770
197712007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19772
19773 * s/gnu-kfreebsd.h: New file.
19774
197752007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19776
19777 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19778 Don't cast redundantly.
19779
19780 * keyboard.c (KEY_TO_CHAR): New macro.
19781 (parse_modifiers, apply_modifiers): Accept integer arguments.
19782 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19783 for chars and symbol keys.
19784 After doing such remapping, apply function-key-map again.
19785
197862007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19787
19788 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19789 compiled anymore.
19790
197912007-11-26 Andreas Schwab <schwab@suse.de>
19792
19793 * process.c (list_processes_1): Fix indentation level of the
19794 command column.
19795
197962007-11-23 Andreas Schwab <schwab@suse.de>
19797
19798 * editfns.c (Fformat): Handle %c specially since it requires the
19799 argument to be of type int.
19800
198012007-11-23 Markus Triska <markus.triska@gmx.at>
19802
19803 * emacs.c (main): Call init_editfns before init_process, since
19804 init_process sets Vprocess_connection_type depending on OS release.
19805
198062007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19807
19808 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19809 (find_symbol_value): Use do_symval_forwarding.
19810
19811 * data.c (set_internal): Set the value in the `cons-cell' (for
19812 Buffer_Local_values) not only for frame-local variables.
19813
198142007-11-22 Andreas Schwab <schwab@suse.de>
19815
19816 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19817 values to sprintf.
19818 * keymap.c (Fsingle_key_description): Likewise.
19819 * print.c (print_object): Likewise.
19820
198212007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19822
19823 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19824 file for image is nil.
19825
198262007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19827
19828 * term.c: Include stdarg.h.
19829 (fatal): Implement using varargs.
19830 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19831
198322007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19833
19834 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19835 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19836 Update call to buffer_slot_type_mismatch.
19837 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19838 (buffer_slot_type_mismatch): Update.
19839 * buffer.c (buffer_local_types): Remove.
19840 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19841 (defvar_per_buffer): Set the type in the buffer_objfwd.
19842
198432007-11-21 Jason Rumney <jasonr@gnu.org>
19844
19845 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19846 CreateFileMapping returns NULL on failure.
19847
198482007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19849
19850 * search.c (Fset_match_data): Remove the `evaporate' feature.
19851 (unwind_set_match_data): Don't use the `evaporate' feature.
19852
198532007-11-21 Jason Rumney <jasonr@gnu.org>
19854
19855 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19856
19857 * w32console.c (w32con_write_glyphs): Remove unused variables.
19858
198592007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19860
19861 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19862
19863 * s/darwin.h (MULTI_KBOARD): Remove.
19864
19865 * macfns.c (x_create_tip_frame, Fx_create_frame)
19866 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19867
198682007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19869
19870 * buffer.c (Fbuffer_local_value): Remove redundant test.
19871 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19872 than in `current-buffer' to match the comment.
19873 Do the swap using swap_in_global_binding.
19874
19875 * data.c (store_symval_forwarding, set_internal):
19876 * eval.c (specbind): Remove dead code.
19877
19878 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19879 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19880 Since we do not want to see internal Lisp_*fwd objects here.
19881
198822007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19883
19884 * sysdep.c (init_system_name): Use getaddrinfo if available.
19885
19886 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19887 (x_scroll_bar_note_movement): start, end, with, height in struct
19888 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19889
198902007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19891
19892 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19893
198942007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19895
19896 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19897 This undoes Richard's change of 14-Oct-2002.
19898
19899 * alloc.c (allocate_other_vector):
19900 * lisp.h (allocate_other_vector): Remove.
19901
19902 * window.c (struct save_window_data): Move non-lisp data to the end
19903 and make it `int' rather than Lisp_Object.
19904 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19905 Done wrap/unwrap integer values.
19906 (Fset_window_configuration, compare_window_configurations):
19907 Update use of fields to their new types.
19908
19909 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19910 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19911 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19912 (SET_SCROLL_BAR_X_WINDOW): Remove.
19913 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19914 Access the new x_window field directly.
19915 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19916 Don't wrap/unwrap integers into Lisp_Objects.
19917 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19918 (x_scroll_bar_report_motion):
19919 Don't wrap/unwrap integers into Lisp_Objects.
19920 (x_term_init): Use SDATA.
19921 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19922 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19923 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19924 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19925 * xfns.c (x_set_background_color):
19926 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19927 Access the new x_window field directly.
19928
19929 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19930 (allocate_pseudovector): Make non-static.
19931
19932 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19933 (allocate_pseudovector): Declare.
19934 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19935
199362007-11-15 Andreas Schwab <schwab@suse.de>
19937
19938 * editfns.c (Fformat): Correctly format EMACS_INT values.
19939 Also take precision into account when formatting an integer.
19940
19941 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19942
199432007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19944
19945 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19946 (syms_of_keyboard): Defsubr it.
19947
19948 * data.c (swap_in_global_binding): Fix longstanding bug where
19949 store_symval_forwarding was not called with the right second argument,
19950 thus causing objfwd-ing from being dropped.
19951
199522007-11-14 Juanma Barranquero <lekktu@gmail.com>
19953
19954 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19955 (Fx_display_pixel_height, Fx_display_planes)
19956 (Fx_display_color_cells, Fx_server_max_request_size)
19957 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19958 (Fx_display_visual_class, Fx_display_save_under):
19959 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19960 (Fx_display_pixel_height, Fx_display_planes)
19961 (Fx_display_color_cells, Fx_server_max_request_size)
19962 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19963 (Fx_display_mm_height, Fx_display_mm_width)
19964 (Fx_display_backing_store, Fx_display_visual_class)
19965 (Fw32_select_font, Fx_display_save_under):
19966 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19967 (Fx_display_pixel_height, Fx_display_planes)
19968 (Fx_display_color_cells, Fx_server_max_request_size)
19969 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19970 (Fx_display_save_under): Fix typos in docstrings.
19971
199722007-11-14 Juanma Barranquero <lekktu@gmail.com>
19973
19974 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19975 corresponding to deleted entries; they are an implementation detail.
19976 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19977 Remove variables.
19978 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19979 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19980 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19981 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19982 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19983 (Fw32_define_rgb_color, Fw32_load_color_file)
19984 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19985 Fix typos in docstrings.
19986 (Fx_server_version): Reflow docstring.
19987 (Fw32_shell_execute): Doc fixes.
19988
199892007-11-13 Juanma Barranquero <lekktu@gmail.com>
19990
19991 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19992 if w32_parse_hot_key returned nil.
19993
199942007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19995
19996 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19997
199982007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19999
aac0c6e3
MR
20000 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20001
20002 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20003
20004 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20005 Remove W32_SCROLL_BAR_CLICK_EVENT.
20006
20007 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20008 Add MULTIMEDIA_KEY_EVENT.
20009
20010 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20011 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20012 (make_lispy_event) [WINDOWSNT]: Use it to translate
20013 MULTIMEDIA_KEY_EVENT.
20014
20015 * w32term.h (WM_APPCOMMAND): Define if not already.
20016 (GET_APPCOMMAND_LPARAM): Likewise.
20017
20018 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20019 WM_APPCOMMAND.
20020
20021 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20022 (syms_of_w32fns): Export and initialize it.
20023 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20024
200252007-11-09 Chong Yidong <cyd@stupidchicken.com>
20026
20027 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20028 twice.
20029
20030 * xdisp.c (handle_face_prop): Fix last change.
20031
200322007-11-09 Richard Stallman <rms@gnu.org>
20033
20034 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20035 not just for after-strings and before-strings.
20036 Call face_for_overlay_string and pass the overlay to it.
20037 (handle_display_prop): Determine whether property came from an overlay.
20038 Pass OVERLAY arg to handle_single_display_spec.
20039 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20040 (load_overlay_strings): Fill in it->string_overlays.
20041 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20042
20043 * xfaces.c (face_for_overlay_string): Function renamed from
20044 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20045
20046 * dispextern.h (struct it): New elt string_overlays.
20047 New elt from_overlay, also in stack.
20048 Rearrange a few elements.
20049 (face_for_overlay_string): Decl renamed from
20050 face_at_buffer_position_no_overlays, and add argument.
20051
200522007-11-09 Richard Stallman <rms@gnu.org>
20053
20054 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20055 to get the base face for an overlay string.
20056
20057 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20058
20059 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20060
20061 * xdisp.c (handle_stop): Move some code out of loop.
20062
200632007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20064
20065 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20066 Fix conversion from Lisp object to ATSUFontID.
20067
200682007-11-09 Jason Rumney <jasonr@gnu.org>
20069
20070 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20071
200722007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20073
20074 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20075 Don't assume regions are aligned to page boundary.
20076 (print_load_command_name): Add LC_UUID if defined.
20077
200782007-11-09 Richard Stallman <rms@gnu.org>
20079
20080 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20081
200822007-11-07 Jason Rumney <jasonr@gnu.org>
20083
20084 * s/windows95.h: Remove.
20085
200862007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20087
20088 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20089 abort with a message on unhandled store_type values.
20090
200912007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20092
20093 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20094 Remove HAVE_X11R5 and HAVE_X11R4.
20095
200962007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20097
20098 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20099
201002007-11-01 Johan Bockgård <bojohan@gnu.org>
20101
20102 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20103 Don't set s->stippled_p here, since it has already been set by
20104 x_set_glyph_string_gc from x_draw_glyph_string.
20105
201062007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20107
20108 * sunfns.c: Remove file.
20109
20110 * m/sun386.h:
20111 * m/sun2.h:
20112 * m/sparc.h: Remove Sun windows code.
20113
201142007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20115
20116 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20117 (init_keyboard): Set current_kboard's window-system to nil.
20118 (tty_read_avail_input): Typo.
20119 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20120
201212007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20122
20123 * s/usg5-4.h:
20124 * s/usg5-3.h:
20125 * s/ptx.h:
20126 * m/is386.h:
20127 * m/ibmps2-aix.h:
20128 * Makefile.in: Remove all mentions of X10.
20129
20130 * dispnew.c (syms_of_display): Don't mention version 10.
20131
201322007-10-28 Juanma Barranquero <lekktu@gmail.com>
20133
20134 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20135 ($(BLD)/abbrev.$(O)): Remove.
20136
201372007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20138
20139 Rewrite abbrev.c in Elisp.
20140 * image.c (Qcount): Don't declare as extern.
20141 (syms_of_image): Initialize and staticpro `Qcount'.
20142 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20143 * emacs.c (main): Don't call syms_of_abbrev.
20144 * Makefile.in (obj): Remove abbrev.o.
20145 (abbrev.o): Remove.
20146 * abbrev.c: Remove.
20147
201482007-10-26 Martin Rudalics <rudalics@gmx.at>
20149
20150 * window.c (window_min_size_2): Don't count header-line.
20151
201522007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20153
20154 * frame.h (struct frame): Move all bit fields after the first bit
20155 field to take advantage of the available space. Group all the
20156 chars together to reduce wasted space due to padding.
20157
201582007-10-26 Juanma Barranquero <lekktu@gmail.com>
20159
20160 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20161
20162 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20163 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20164 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20165 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20166 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20167 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20168 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20169 (last_marked, mark_object_loop_halt): Make static.
20170
20171 * frame.c (syms_of_frame) <delete-frame-functions>:
20172 Fix typo in docstring.
20173
201742007-10-25 Juanma Barranquero <lekktu@gmail.com>
20175
20176 * w32.c (init_environment): Fix tiny memory leak.
20177 (w32_get_resource): Remove unused variable `ok'.
20178
201792007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20180
20181 Make `window-system' into a keyboard-local variable (rather than
20182 frame-local as done originally by multi-tty).
20183
20184 * keyboard.h (struct kboard): Add Vwindow_system.
20185 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20186 (mark_kboards): Mark Vwindow_system.
20187
20188 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20189 (init_display): Don't set the obsolete `window-system' frame-param.
20190
20191 * xterm.c (x_term_init):
20192 * w32term.c (w32_create_terminal):
20193 * term.c (init_tty): Set Vwindow_system.
20194 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20195 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20196
20197 * xfns.c (Fx_create_frame, x_create_tip_frame):
20198 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20199 * macfns.c (Fx_create_frame):
20200 Don't set the obsolete `window-system' frame-param.
20201
20202 * frame.h (Qwindow_system): Remove.
20203 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20204 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20205
202062007-10-24 Richard Stallman <rms@gnu.org>
20207
20208 * frame.c (x_figure_window_size): For fullscreen case,
20209 set USPosition | PPosition without clobbering rest of window_prompting.
20210
20211 * keyboard.c (Fcurrent_idle_time): Doc fix.
20212
20213 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20214
202152007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20216
20217 * process.c (unwind_request_sigio): Only define if __ultrix__.
20218
20219 * callproc.c (child_setup): Remove spurious *.
20220
20221 * lisp.h (Fget_text_property): Declare.
20222 (have_menus_p): Declare it here rather than in sys-dep header files.
20223 * macterm.h (have_menus_p):
20224 * msdos.h (have_menus_p):
20225 * xterm.h (have_menus_p): Remove.
20226
20227 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20228 (Fmake_variable_frame_local): Just check the variable's const-ness
20229 rather than checking nil or t.
20230
202312007-10-22 Jason Rumney <jasonr@gnu.org>
20232
20233 * w32fns.c: Include math.h.
20234 (w32_abort): Declaration moved to nt/config.nt.
20235
20236 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20237 (abort): Redefinition moved to nt/config.nt.
20238
20239 * m/windowsnt.h: Remove.
20240
202412007-10-22 Juanma Barranquero <lekktu@gmail.com>
20242
20243 * emacs.c (Fdump_emacs): Fix typo in message.
20244 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20245 <installation-directory>: Reflow docstring.
20246
202472007-10-22 Juri Linkov <juri@jurta.org>
20248
20249 * minibuf.c: Allow minibuffer default to be a list of default values.
20250 With empty input use the first element of this list as returned default.
20251 (string_to_object)
20252 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20253 (read_minibuf): If defalt is cons, set histstring to its car.
20254 (Fread_string): If default_value is cons, set val to its car.
20255 (Fread_buffer): If def is cons, use its car.
20256 (Fcompleting_read): If defalt is cons, set val to its car.
20257
202582007-10-21 Michael Albinus <michael.albinus@gmx.de>
20259
20260 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20261
202622007-10-20 Juanma Barranquero <lekktu@gmail.com>
20263
20264 * doc.c (Fdocumentation): Check for advice in all cases.
20265
202662007-10-19 Chong Yidong <cyd@stupidchicken.com>
20267
20268 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20269
202702007-10-19 Richard Stallman <rms@gnu.org>
20271
20272 * doc.c (Fdocumentation): Check for and handle an advised function.
20273
202742007-10-19 Juanma Barranquero <lekktu@gmail.com>
20275
20276 * process.c (Fset_process_filter): Doc fix.
20277
202782007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20279
20280 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20281 which caused key-translation-map to applied repeatedly (thus breaking
20282 double-mode).
20283
202842007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20285
20286 * xselect.c (x_own_selection, x_handle_selection_clear)
20287 (x_clear_frame_selections):
20288 * w32menu.c (list_of_panes, list_of_items):
20289 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20290 * textprop.c (validate_plist, interval_has_all_properties)
20291 (interval_has_some_properties, interval_has_some_properties_list)
20292 (add_properties, text_property_list):
20293 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20294 * minibuf.c (Fassoc_string):
20295 * macselect.c (x_own_selection, x_clear_frame_selections)
20296 (Fx_disown_selection_internal):
20297 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20298 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20299
203002007-10-17 Chong Yidong <cyd@stupidchicken.com>
20301
20302 * process.c: Link to libs for calling res_init() if available.
20303 (Fmake_network_process): Call res_init() before getaddrinfo or
20304 gethostbyname, if possible.
20305
203062007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20307
20308 * lread.c (read1): Set pvectype for char_tables.
20309
20310 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20311 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20312 Add type checks.
20313 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20314
20315 * alloc.c (free_misc): Use XMISCTYPE.
20316 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20317
203182007-10-17 Glenn Morris <rgm@gnu.org>
20319
20320 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20321 (syms_of_minibuf): Add Qcompletion_ignore_case.
20322 * dired.c (Qcompletion_ignore_case): Change to external.
20323 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20324 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20325 (Fread_file_name): Use it rather than intern'ing.
20326
20327 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20328 (Fread_coding_system): Ignore case of user input.
20329
203302007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20331
20332 * xdisp.c (handle_display_prop): Ignore display specs after
20333 replacing one when string text is being replaced.
20334 (handle_single_display_spec): Pretend as if characters with display
20335 property haven't been consumed only when buffer text is being replaced.
20336
203372007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20338
20339 * xfns.c (Fx_create_frame, Fx_display_list):
20340 * window.c (window_fixed_size_p, enlarge_window)
20341 (shrink_window_lowest_first):
20342 * macterm.c (init_font_name_table):
20343 * macfns.c (Fx_create_frame, Fx_display_list):
20344 * lread.c (close_load_descs):
20345 * keyboard.c (read_char_x_menu_prompt):
20346 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20347 * coding.c (code_convert_region_unwind): Test the type of an object
20348 rather than just !NILP before extracting data from it.
20349
20350 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20351
20352 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20353 (XMISCANY): New macro.
20354 (XMISCTYPE): Use it.
20355 (struct Lisp_Misc_Any): New type.
20356 (union Lisp_Misc): Use it.
20357 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20358 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20359 (find_symbol_value, set_internal, default_value, Fset_default)
20360 (Fmake_variable_buffer_local, Fmake_local_variable)
20361 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20362 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20363 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20364 * alloc.c (allocate_buffer): Set the size and tag.
20365 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20366 Use XMISCANY.
20367 (die): Follow the GNU convention for error messages.
20368 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20369 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20370 tag any more.
20371 (set_buffer_internal_1):
20372 * frame.c (store_frame_param):
20373 * eval.c (specbind):
20374 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20375
20376 * doc.c (Fsnarf_documentation): Simplify.
20377
203782007-10-14 Juanma Barranquero <lekktu@gmail.com>
20379
20380 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20381 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20382
203832007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20384
20385 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20386
203872007-10-14 Juanma Barranquero <lekktu@gmail.com>
20388
20389 * eval.c (do_autoload): Don't save autoloads.
20390
20391 * data.c (Ffset): Save autoload of the function being set.
20392
203932007-10-07 John Paul Wallington <jpw@pobox.com>
20394
20395 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20396 parameter before setting up faces.
20397
203982007-10-13 Eli Zaretskii <eliz@gnu.org>
20399
20400 * ccl.c (Fregister_code_conversion_map):
20401 * keyboard.c (append_tool_bar_item): Reformat last change.
20402
20403 * lisp.h (eabs): Rename from `abs'. All callers changed.
20404
204052007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20406
20407 * buffer.c (add_overlay_mod_hooklist):
20408 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20409 * fontset.c (make_fontset):
20410 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20411 (append_tool_bar_item):
20412 * macmenu.c (grow_menu_items):
20413 * w32menu.c (grow_menu_items):
20414 * xmenu.c (grow_menu_items): Use larger_vector.
20415
204162007-10-13 Eli Zaretskii <eliz@gnu.org>
20417
20418 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20419 selected frame'' on MSDOS).
20420
204212007-10-12 Martin Rudalics <rudalics@gmx.at>
20422
20423 * frame.c (Qexplicit_name): New variable.
20424 (x_report_frame_params): Report it in parameter alist.
20425 (syms_of_frame): Intern and staticpro it.
20426
204272007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20428
20429 * macfns.c (x_create_tip_frame): Set terminal for frame.
20430
204312007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20432
20433 * frame.c (Qenvironment): Remove.
20434 (syms_of_frame) <Qenvironment>: Don't initialize.
20435 (Fdelete_frame): Don't treat the `environment' param specially.
20436 * frame.h (Qenvironment): Don't declare.
20437 * callproc.c (set_initial_environment): Don't set unused frame param.
20438
20439 * frame.c (Fframe_with_environment): Remove.
20440 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20441
20442 * lisp.h (Fframe_with_environment): Don't declare.
20443
204442007-10-10 Juanma Barranquero <lekktu@gmail.com>
20445
20446 * indent.c (indent_tabs_mode, last_known_column)
20447 (last_known_column_modified): Make static.
20448 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20449
204502007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20451
20452 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20453
204542007-10-09 Jason Rumney <jasonr@gnu.org>
20455
20456 * w32term.c (x_set_window_size): Disable code that attempts to tell
20457 Lisp code about a size change before it actually happens.
20458
204592007-10-09 Richard Stallman <rms@gnu.org>
20460
20461 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20462 return HANDLED_RETURN.
20463
204642007-10-08 Martin Rudalics <rudalics@gmx.at>
20465
20466 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20467 when there's an unread command event.
20468
20469 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20470 window autoselection act appropriately when leaving selected frame.
20471 (syms_of_frame): Initialize focus_follows_mouse.
20472 * frame.h (focus_follows_mouse): Extern it.
20473 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20474 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20475 * msdos.c (dos_rawgetc): Likewise.
20476 * w32term.c (w32_read_socket): Likewise.
20477 * xterm.c (handle_one_xevent): Likewise.
20478 * xdisp.c (syms_of_xdisp): In doc-string of
20479 mouse-autoselect-window mention focus-follows-mouse.
20480
204812007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20482
20483 * macterm.c (mac_load_query_font): Fix missing return value.
20484 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20485 Add BLOCK_INPUT.
20486
204872007-10-08 Richard Stallman <rms@gnu.org>
20488
20489 * xdisp.c (get_window_cursor_type): Implement documented behavior
20490 for cursor-in-non-selected-windows = t.
20491
204922007-10-08 Jason Rumney <jasonr@gnu.org>
20493
20494 * w32.c (w32_get_resource): Always close registry keys.
20495
204962007-10-08 Jason Rumney <jasonr@gnu.org>
20497
20498 * makefile.w32-in (LIBS): Add COMCTL32.
20499
20500 * w32fns.c (globals_of_w32fns): Init common controls.
20501
205022007-10-08 Richard Stallman <rms@gnu.org>
20503
20504 * image.c (our_memory_buffer): Rename from omfib_buffer.
20505
205062007-10-08 Richard Stallman <rms@gnu.org>
20507
20508 * buffer.c (Foverlays_at): Doc fix.
20509
205102007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * fns.c (Fplist_put): Preserve uneven tail data.
20513
205142007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20515
20516 * termhooks.h (enum event_kind): Remove trailing comma.
20517
20518 * frame.h (enum): Remove trailing comma.
20519
205202007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20521
20522 * w32proc.c (delete_child): Don't terminate threads of zombies.
20523
205242007-10-08 Martin Rudalics <rudalics@gmx.at>
20525
20526 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20527
20528 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20529 last-repeatable-command.
20530 (init_kboard): Initialize Vlast_repeatable_command.
20531 (command_loop_1): Set it to real_this_command unless that was
20532 bound to an input event.
20533 (mark_kboards): Mark it.
20534
205352007-10-08 Richard Stallman <rms@gnu.org>
20536
20537 * eval.c (condition-case): Doc fix.
20538
205392007-10-08 Masatake YAMATO <jet@gyve.org>
20540
20541 * xfaces.c (tty_supports_face_attributes_p): Fix code
20542 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20543 was copied and not edited.
20544
205452007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20546
20547 Add new `input-decode-map' keymap and use it for terminal
20548 escape sequences.
20549 * keyboard.h (struct kboard): Add Vinput_decode_map.
20550 Remove Vlocal_key_translation_map.
20551 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20552 (init_kboard): Init input-decode-map.
20553 Replace local-key-translation-map back with key-translation-map.
20554 (syms_of_keyboard): Declare input-decode-map.
20555 Remove local-key-translation-map. Update docstrings.
20556 (mark_kboards): Mark Vinput_decode_map.
20557 Don't mark Vlocal_key_translation_map.
20558 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20559 Replace local-key-translation-map back with key-translation-map.
20560 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20561 Bind in input-decode-map rather than function-key-map.
20562
20563 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20564 This was made redundant by the previous introduction of XSETPVECTYPE.
20565
205662007-10-09 Richard Stallman <rms@gnu.org>
20567
20568 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20569
205702007-09-29 Richard Stallman <rms@gnu.org>
20571
20572 * eval.c (internal_condition_case_2, internal_condition_case_1)
20573 (internal_condition_case): Reenable abort if x_catching_errors ()
20574 to see if that really happens and why.
20575
205762007-10-06 Andreas Schwab <schwab@suse.de>
20577
20578 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20579
205802007-10-04 Juanma Barranquero <lekktu@gmail.com>
20581
20582 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20583
205842007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20585
20586 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20587
205882007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20589
20590 * window.h (struct window):
20591 * window.c (struct save_window_data, struct saved_window):
20592 * termhooks.h (struct terminal):
20593 * process.h (struct Lisp_Process):
20594 * frame.h (struct frame):
20595 * buffer.h (struct buffer):
20596 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20597 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20598 The size field of (pseudo)vectors is now unsigned.
20599 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20600
20601 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20602 Turn `count' into an integer.
20603
20604 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20605 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20606 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20607 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20608 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20609
20610 * alloc.c (allocate_pseudovector): New fun.
20611 (ALLOCATE_PSEUDOVECTOR): New macro.
20612 (allocate_window, allocate_terminal, allocate_frame)
20613 (allocate_process): Use it.
20614 (mark_vectorlike): New function.
20615 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20616 (mark_terminals): Use it.
20617 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20618 (Fmake_byte_code): Use XSETPVECTYPE.
20619
20620 * frame.c (Fframe_parameters): Minor simplification.
20621
20622 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20623
20624 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20625
20626 * buffer.c (Fget_buffer_create, init_buffer_once):
20627 * lread.c (defsubr):
20628 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20629
20630 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20631 defined differently in the m/*.h files.
20632 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20633 (XSETPVECTYPE): New macro.
20634 (XSETPSEUDOVECTOR): Use it.
20635
20636 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20637 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20638
20639 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20640 * lread.c (defvar_per_buffer):
20641 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20642
20643 * window.c (candidate_window_p): Only consider as visible frames that
20644 are on the same terminal.
20645
20646 * m/ibms390x.h (MARKBIT): Remove unused macro.
20647
206482007-10-01 Juanma Barranquero <lekktu@gmail.com>
20649
20650 * lread.c (Fload): Fix typo in docstring.
20651
206522007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20653
20654 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20655 of a non-zero value can't yield zero.
20656
206572007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20658
20659 * term.c (term_clear_mouse_face, term_mouse_highlight)
20660 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20661
20662 * print.c (safe_debug_print): Use XHASH.
20663
20664 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20665 Lisp elements such as tags.
20666 (XHASH): New macro.
20667 (EQ): Use it.
20668 (SREF, SSET, STRING_COPYIN): Use SDATA.
20669 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20670
20671 * alloc.c (mark_terminal): Remove left-over declaration.
20672 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20673 (allocate_vectorlike): Remove type argument. Adjust callers.
20674 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20675 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20676
20677 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20678 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20679 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20680 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20681 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20682 Use them.
20683
20684 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20685 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20686 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20687
206882007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20689
20690 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20691 loaded by default.
20692
206932007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20694
20695 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20696 on this tty.
20697 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20698
20699 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20700 Update all users.
20701 (handle_one_term_event): Use Gpm_DrawPointer.
20702 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20703 Signal errors instead of returning nil. Always return nil.
20704 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20705 Make it a noop if gpm-mouse was not activated.
20706 (syms_of_term): Update names.
20707
207082007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20709
20710 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20711 (init_sys_modes): Check that gpm_tty is the current tty.
20712
20713 * alloc.c (allocate_terminal): Set the vector size to only count the
20714 lisp fields. Initialize those to nil.
20715 (mark_object): Don't treat terminals specially.
20716 (mark_terminal): Remove.
20717 (mark_terminals): Use mark_object instead.
20718
20719 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20720 the GC to the beginning.
20721
20722 * indent.h:
20723 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20724
20725 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20726
207272007-09-25 Jason Rumney <jasonr@gnu.org>
20728
20729 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20730
20731 * w32console.c (create_w32cons_output): Remove.
20732
20733 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20734
20735 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20736 (reset_sys_modes): Use reset_terminal_modes_hook.
20737
207382007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20739
20740 * eval.c (do_autoload): Don't output any message.
20741
207422007-09-24 Juri Linkov <juri@jurta.org>
20743
20744 * emacs.c (standard_args): Change priority of "--no-splash"
20745 from 40 to 3. Add "--no-desktop" with the same priority.
20746
207472007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20748
20749 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20750 and optimize the case where they are all 1.
20751
207522007-09-23 Johannes Weiner <hannes@saeurebad.de>
20753
20754 * lisp.h (abs): Define if not defined.
20755 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20756 Don't define `abs', since it's defined in lisp.h.
20757
207582007-09-22 Eli Zaretskii <eliz@gnu.org>
20759
20760 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20761 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20762 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20763 (init_tty): Use DEV_TTY instead of "/dev/tty".
20764 [WINDOWSNT]: No need to protect from NAME arg being null.
20765
207662007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20767
20768 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20769 up the tty state.
20770
207712007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20772
20773 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20774 (gpm_tty): Change its type.
20775 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20776 (gpm_tty): Change its type and initialize it.
20777 (Fterm_open_connection): Check the frame is indeed a tty.
20778 Use the new gpm_tty.
20779 (Fterm_close_connection): Use the new gpm_tty.
20780 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20781 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20782
207832007-09-21 Juanma Barranquero <lekktu@gmail.com>
20784
20785 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20786 underline_color, to draw strike-through.
20787
207882007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20789
20790 * lisp.h (allocate_terminal): Declare.
20791
20792 * window.c (candidate_window_p): Consider frames that are being placed
20793 by the user as somewhere between visible and iconified.
20794 (window_loop): Prefer windows on the current frame.
20795 (Fselect_window): Move the use of select-frame to the beginning so we
20796 can just delegate all the work (it'll call us back anyway).
20797
20798 * frame.c (Qdisplay_environment_variable):
20799 * frame.h (Qdisplay_environment_variable): Delete.
20800
20801 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20802 of the first arg, since that value may be a union.
20803
20804 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20805 parameter rather than Qdisplay_environment_variable. If all else
20806 fails, look for DISPLAY in initial-environment.
20807
208082007-09-21 Glenn Morris <rgm@gnu.org>
20809
20810 * Makefile.in (emacstool): Remove target.
20811 (lisp, shortlisp): Remove termdev.elc.
20812
208132007-09-21 Markus Triska <markus.triska@gmx.at>
20814
20815 * xterm.c (x_delete_display): Compile session management conditionally.
20816
208172007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20818
20819 * callproc.c (getenv_internal_1): New function.
20820 (getenv_internal): Use it.
20821 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20822
20823 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20824 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20825 (Fset_terminal_parameter): Work with dead terminals as well.
20826 (Fmodify_terminal_parameters): Remove.
20827
20828 * terminal.c (get_terminal): Handle terminals.
20829 Make sure the terminal returned is live.
20830 (create_terminal): Use allocate_terminal.
20831 (mark_terminals): Move to alloc.c.
20832 (delete_terminal): Use terminal->name as liveness status.
20833 NULL out fields after freeing their contents.
20834 Don't deallocate the object.
20835 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20836 rather than an int.
20837 (Fterminal_live_p): Accept non-integer arguments.
20838 (Fterminal_list): Return terminal objects rather than an ints.
20839
20840 * alloc.c (enum mem_type): New member for `terminal' objects.
20841 (allocate_terminal): New function.
20842 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20843 Handle terminals.
20844 (mark_terminal): New fun.
20845 (mark_terminals): Move from terminal.c.
20846
20847 * term.c (get_tty_terminal): Don't treat output_initial specially.
20848 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20849 (delete_tty): Use terminal->name as liveness status.
20850
20851 * termhooks.h (struct terminal): Make it into a pseudovector.
20852 Remove `deleted' replaced by checking `name's nullness.
20853
20854 * print.c (print_object): Handle terminals.
20855
20856 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20857 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20858
20859 * frame.c (make_terminal_frame):
20860 * keyboard.c (tty_read_avail_input):
20861 * w32term.c (x_delete_terminal):
20862 * xfns.c (Fx_create_frame, x_create_tip_frame):
20863 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20864
208652007-09-20 Glenn Morris <rgm@gnu.org>
20866
20867 * process.c (Fmake_network_process): Doc fix.
20868
208692007-09-19 Jason Rumney <jasonr@gnu.org>
20870
20871 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20872
208732007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20874
20875 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20876 Fix a C warning regarding variable constness.
20877
20878 * xterm.c (handle_one_xevent): Fix a C warning.
20879
208802007-09-18 Jason Rumney <jasonr@gnu.org>
20881
20882 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20883
208842007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20885
20886 * gtkutil.c (gdpy_def): New variable.
20887 (xg_initialize): Initialize gdpy_def.
20888 (xg_display_close): If no other display exists, set gdpy_def to a
20889 new connection.
20890
208912007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20892
20893 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20894 when we have no file name for the icon.
20895 (xg_tool_bar_expose_callback): Remove.
20896 (xg_create_tool_bar): Don't connect expose signal to
20897 xg_tool_bar_expose_callback.
20898 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20899
209002007-09-16 Andreas Schwab <schwab@suse.de>
20901
20902 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20903 values instead of zapping them.
20904
209052007-09-14 Glenn Morris <rgm@gnu.org>
20906
20907 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20908 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20909 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20910 scope and rename to omfib_buffer for clarity.
20911 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20912
209132007-09-14 Kenichi Handa <handa@m17n.org>
20914
20915 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20916
209172007-09-13 Jason Rumney <jasonr@gnu.org>
20918
20919 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20920
20921 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20922
20923 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20924 (mac_term_init): Call here instead, passing rif.
20925
209262007-09-13 Glenn Morris <rgm@gnu.org>
20927
20928 * s/hpux.h: No longer define `static' as nothing.
20929
209302007-09-13 Johan Bockgård <bojohan@gnu.org>
20931
20932 * callint.c (Fcall_interactively): Remove unused var `fun'.
20933
209342007-09-12 Romain Francoise <romain@orebokech.com>
20935
20936 * window.c (prefer_window_split_horizontally, display_buffer):
20937 Revert 2007-09-08 change.
20938
209392007-09-12 Glenn Morris <rgm@gnu.org>
20940
20941 * alloca.c: Remove file.
20942 * Makefile.in (alloca): Do not undef.
20943 (allocaobj, alloca.o): Remove.
20944 (otherobj): Remove allocaobj.
20945 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20946 * regex.c (C_ALLOCA): Remove all references and code that was only
20947 used when this was defined.
20948 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20949 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20950 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20951
20952 * Makefile.in (SOURCES, unlock, relock): Delete.
20953
20954 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20955 (menu_grab_callback): All uses changed.
20956
20957 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20958 (x_reply_selection_request): All uses changed.
20959
209602007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20961
20962 * lread.c (load_warn_old_style_backquotes): Change message to look
20963 better when it appears in the middle of byte-compiler messages.
20964
209652007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20966
20967 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20968
20969 * xterm.c (x_create_terminal): Add comment.
20970
20971 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20972
209732007-09-10 Richard Stallman <rms@gnu.org>
20974
20975 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20976
209772007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20978
20979 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20980 (DEFUN): Document `intspec', use it instead of `prompt'.
20981
20982 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20983
20984 * data.c (Finteractive_form): If the interactive specification starts
20985 with a `(', use it as a Lisp form.
20986
20987 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20988 name and file modes.
20989
20990 * callint.c (Fcall_interactively): Comment fixes.
20991
209922007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20993
20994 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20995 and compiled functions.
20996
209972007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20998
20999 * window.c (prefer_window_split_horizontally): New variable.
21000 (display_buffer): Consider splitting window horizontally depending
21001 on prefer_window_split_horizontally.
21002
210032007-09-08 Eli Zaretskii <eliz@gnu.org>
21004
21005 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21006
210072007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21008
21009 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21010
21011 * frame.c (x_set_frame_parameters): Check number is positive before
21012 using XFASTINT.
21013
21014 * window.c (freeze_window_start): Don't presume selected_window holds
21015 a window object.
21016 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21017
210182007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21019
21020 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21021
210222007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21023
21024 * window.c (Vsplit_window_preferred_function): New var.
21025 (Fdisplay_buffer): Use it.
21026 (syms_of_window): Export, and initialize it.
21027
210282007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21029
21030 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21031
210322007-09-06 Glenn Morris <rgm@gnu.org>
21033
21034 * gtkutil.c (menu_grab_callback) <cnt>:
21035 * xselect.c (x_reply_selection_request) <cnt>: Move static
21036 variable to file scope.
21037
210382007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21039
21040 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21041 consistent values of selected_frame and selected_window.
21042
210432007-09-04 Jason Rumney <jasonr@gnu.org>
21044
21045 * w32console.c (initialize_w32_display): Zero unused hooks.
21046
210472007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21048
21049 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21050 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21051
210522007-09-04 Jason Rumney <jasonr@gnu.org>
21053
21054 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21055 in w32console.c. Set up input. Remove XXX comments that have been
21056 confirmed as correct.
21057
21058 * s/ms-w32.h (MULTI_KBOARD): Define.
21059
21060 * w32console.c (one_and_only_w32cons): Remove.
21061 (initialize_w32_display): Take terminal argument.
21062
21063 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21064 initialize_w32_display.
21065 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21066
21067 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21068
21069 * keyboard.c (discard_mouse_events): Discard it.
21070 (make_lispy_event): Translate it to a lisp event.
21071 (lispy_wheel_names): Add wheel-left and right events.
21072 (syms_of_keyboard): Enlarge wheel_syms.
21073
21074 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21075 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21076
21077 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21078
21079 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21080 from WM_MOUSEHWHEEL.
21081 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21082
21083 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21084 terminal.
21085
21086 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21087 keyboard for the terminal.
21088
210892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21090
21091 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21092 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21093 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21094 and resume-tty-function to resume-tty-hook.
21095 (Fsuspend_tty, Fresume_tty): Use new names.
21096
210972007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21098
21099 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21100 if it starts with "n:".
21101
211022007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21103
21104 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21105
211062007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21107
21108 * frame.h:
21109 * frame.c (Qterm_environment_variable): Remove.
21110 (syms_of_frame): Don't init and staticpro it.
21111
21112 * callproc.c (getenv_internal): Remove special case for $TERM.
21113
21114 * callproc.c (Vinitial_environment): New variable.
21115 (set_initial_environment): Initialize it.
21116 (syms_of_callproc): Declare it.
21117 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21118 TERM under which a process runs is never related to the TERM in which
21119 Emacs is running.
21120
211212007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21122
21123 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21124 * s/darwin.h: ... do it here.
21125
211262007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21127
21128 * lisp.h (set_initial_environment): Rename from set_global_environment.
21129
21130 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21131 removed by mistake on the multi-tty branch.
21132
21133 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21134 (Fmodify_frame_parameters): Return a value.
21135
21136 * image.c (png_load): Comment-out var only used in commented-out code.
21137
21138 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21139 before passing it to mark_object.
21140
21141 * xfaces.c (internal_resolve_face_name): Return a value.
21142 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21143
21144 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21145 (x_icon): Comment-out var only used in commented-out code.
21146
211472007-08-29 Romain Francoise <romain@orebokech.com>
21148
21149 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21150 QUIT hasn't been provided.
21151
211522007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21153
21154 * callproc.c (child_setup, getenv_internal): Use the
21155 display-environment-variable and term-environment-variable frame params.
21156 (set_initial_environment): Initialise Vprocess_environment.
21157
21158 * config.in: Disable multi-keyboard support on a mac.
21159
21160 * frame.c (Qterm_environment_variable)
21161 (Qdisplay_environment_variable): New variables.
21162 (syms_of_frame): Intern and staticpro them.
21163 (Fmake_terminal_frame): Disable output method test.
21164
21165 * frame.h: Declare them here.
21166
21167 * macfns.c (x_set_mouse_color): Get rif from the frame.
21168 (x_set_tool_bar_lines): Don't use updating_frame.
21169 (mac_window): Add 2 new parameters for consistency with other systems.
21170 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21171 frame parameters following what is done in X11 and w32. Don't use
21172 FRAME_MAC_DISPLAY_INFO.
21173 (Fx_open_connection, start_hourglass): Remove window-system check.
21174 (x_create_tip_frame): Get the keyboard from the terminal.
21175
21176 * macmenu.c: Reorder includes.
21177 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21178
21179 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21180 terminal parameter.
21181 (x_clear_frame): Add a frame parameter.
21182 (note_mouse_movement): Get rif from the frame.
21183 (mac_term_init): Initialize the terminal.
21184 (mac_initialize): Make static and move terminal initialization ...
21185 (mac_create_terminal): ... to this new function.
21186
21187 * macterm.h (struct mac_display_info): Add terminal.
21188 (mac_initialize): Delete declaration.
21189
21190 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21191
21192 * sysdep.c: Comment out text after #endif.
21193
21194 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21195 is defined. Better initialize ttys in windows. Use terminal
21196 specific mouse_position_hook.
21197
21198 * termhooks.h (union display_info): Add mac_display_info.
21199
21200 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21201 Set the default minibuffer frame, window_system and the rest of the
21202 frame parameters following what is done in X11.
21203
21204 * w32term.c (w32_initialize): Make static.
21205
21206 * xselect.c (x_handle_selection_clear): Only access
21207 terminal->kboard when MULTI_KBOARD is defined.
21208
21209 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21210 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21211
212122007-08-29 Jason Rumney <jasonr@gnu.org>
21213
21214 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21215 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21216
21217 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21218 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21219
21220 * keyboard.c (restore_kboard_configuration): Only define when
21221 MULTI_KBOARD defined.
21222
21223 * makefile.w32-in: Update dependancies from Makefile.in.
21224 (OBJ1): Add terminal.$(O)
21225
21226 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21227 Don't define function body.
21228 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21229
21230 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21231
21232 * w32.c (request_sigio, unrequest_sigio): Remove.
21233
21234 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21235 (w32con_clear_frame, w32con_clear_end_of_line)
21236 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21237 (w32con_delete_glyphs, w32con_set_terminal_window)
21238 (scroll_line, w32_sys_ring_bell): Add frame arg.
21239 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21240 Add terminal arg.
21241 (PICK_FRAME): Remove.
21242 (w32con_write_glyphs): Use frame specific terminal coding.
21243 (one_and_only_w32cons): New global variable.
21244 (initialize_w32_display): Use it for storing hooks.
21245 (create_w32cons_output): New function.
21246
21247 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21248 arg a frame.
21249
21250 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21251 Set window_system.
21252 (x_set_tool_bar_lines): Don't use updating_frame.
21253 (Fx_create_frame): Set terminal and ref count.
21254 (Fx_open_connection): Remove window-system check.
21255
21256 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21257
21258 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21259 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21260 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21261 Add frame arg.
21262 (x_delete_terminal, w32_create_terminal): New functions.
21263 (w32_term_init): Create a terminal.
21264 (w32_initialize): Move terminal specific initialization to
21265 w32_create_terminal.
21266
21267 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21268 (w32_clear_rect, w32_clear_area): Use background from frame.
21269 (w32_display_info): Add terminal.
21270 (w32_sys_ring_bell, x_delete_display): Declare here.
21271
21272 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21273
21274 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21275
212762007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21277
21278 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21279 Fix get_named_tty calls for the controlling tty.
21280
212812007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21282
194d44e7 21283 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21284
212852007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21286
21287 * term.c (tty_insert_glyphs): Add missing first parameter.
21288
212892007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21290
21291 * buffer.c (Fbuffer_list, Fbury_buffer):
21292 Take frame->buried_buffer_list into account.
21293
21294 * cm.c (current_tty): New variable, for cmputc().
21295 (cmputc): Use it.
21296 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21297 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21298 (cmgoto): Add tty parameter. Pass it on to calccost().
21299 Use emacs_tputs() instead of tputs().
21300
21301 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21302 tputs().
21303 (current_tty): New variable, for cmputc().
21304 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21305
21306 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21307 (internal_condition_case, internal_condition_case_1)
21308 (internal_condition_case_2): Don't abort when x_catching_errors.
21309
21310 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21311 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21312 prevent crashes caused by bogus longjmps in read_char.
21313
21314 * keymap.h (Fset_keymap_parent): Add EXFUN.
21315
21316 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21317 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21318 Remove redundant definition.
21319
21320 * macfns.c (x_set_mouse_color, x_make_gc):
21321 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21322
21323 * w32term.c (x_free_frame_resources):
21324 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21325 (w32_initialize): Use the accessor macros for terminal characteristics.
21326
21327 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21328 Use the accessor macros for terminal characteristics.
21329 * msdos.c (internal_terminal_init): Use the accessor macros for
21330 terminal characteristics.
21331 (ScreenVisualBell, internal_terminal_init):
21332 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21333
21334 * termopts.h (no_redraw_on_reenter): Declare.
21335
21336 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21337 (mark_terminals, mark_ttys): Declare.
21338 (Fgarbage_collect): Call them.
21339 (mark_object): Mark buried_buffer_list.
21340
21341 * prefix-args.c: Include stdlib.h for exit.
21342
21343 * syssignal.h: Add comment.
21344
21345 * indent.c: Include stdio.h.
21346
21347 * window.h (Vinitial_window_system): Declare.
21348 (Vwindow_system): Delete declaration.
21349
21350 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21351
21352 * image.c (lookup_image): Don't initialize `c' until the xasserts
21353 have been run.
21354
21355 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21356 FRAME_FOREGROUND_PIXEL.
21357
21358 * print.c (print_preprocess): Don't lose print_depth levels while
21359 iterating.
21360
21361 * widget.c (update_from_various_frame_slots):
21362 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21363
21364 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21365 frames.
21366 (window_internal_height): Remove bogus make_number call.
21367 (init_window_once): Call make_terminal_frame with two zero parameters.
21368
21369 * fileio.c (Fread_file_name): Update comment.
21370
21371 * callint.c (Fcall_interactively):
21372 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21373 Make sure it is correctly unwound.
21374
21375 * xsmfns.c (x_session_close): New function.
21376
21377 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21378 Delete declarations.
21379
21380 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21381 (x_output): Remove background_pixel and foreground_pixel fields.
21382 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21383 (x_delete_device, x_session_close): Declare.
21384
21385 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21386 (read_filtered_event): Call `read_char' with a local
21387 `wrong_kboard_jmpbuf'.
21388
21389 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21390 Don't call single_kboard_state. Use FRAME_RIF.
21391
21392 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21393 systems.
21394
21395 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21396 (Fframe_with_environment, Fset_input_meta_mode)
21397 (Fset_quit_char): EXFUN.
21398 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21399 (init_sys_modes, reset_sys_modes): Update prototypes.
21400 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21401
21402 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21403 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21404 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21405 Delete declarations.
21406 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21407 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21408 New declarations.
21409
21410 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21411 already does that during init_display(). Call syms_of_keymap
21412 before syms_of_keyboard. Call `syms_of_terminal'.
21413 Call set_initial_environment, not set_process_environment.
21414 (shut_down_emacs): Call reset_all_sys_modes() instead of
21415 reset_sys_modes().
21416
21417 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21418 (internal_resolve_face_name, resolve_face_name_error): New functions.
21419 (resolve_face_name): Protect against loops and errors thrown by Fget.
21420 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21421 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21422
21423 * scroll.c: Replace CURTTY() with local variables throughout the
21424 file (where applicable).
21425 (calculate_scrolling, calculate_direct_scrolling)
21426 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21427 characteristics.
21428
21429 * keymap.c (Vfunction_key_map): Remove.
21430 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21431 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21432 (Vkey_translation_map): Remove.
21433 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21434 (Fdescribe_buffer_bindings)
21435 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21436 Update for terminal-local key-translation-map.
21437
21438 * Makefile.in (callproc.o): Update dependencies.
21439 (lisp, shortlisp): Add termdev.elc.
21440 (obj): Add terminal.o.
21441 (terminal.o): Add dependencies.
21442 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21443 (data.o, fns.o): Add termhooks.h dependency.
21444 (SOME_MACHINE_LISP): Add dnd.elc.
21445 (minibuf.o): Fix typo.
21446 Update dependencies.
21447
21448 * data.c (do_symval_forwarding, store_symval_forwarding)
21449 (find_symbol_value): Use the selected frame's keyboard, not
21450 current_kboard.
21451
21452 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21453 Vwindow_system.
21454
21455 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21456 Fmenu_bar_open.
21457 (syms_of_xmenu): Update defsubr.
21458 (mouse_position_for_popup, Fx_popup_menu)
21459 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21460 (set_frame_menubar, free_frame_menubar)
b97439ce 21461 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21462 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21463 an X frame.
21464
21465 * xselect.c (x_own_selection): Abort if not an X frame.
21466 (some_frame_on_display): Check if it is an X frame.
21467 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21468
21469 * coding.c: Include frame.h and termhooks.h.
21470 (terminal_coding, keyboard_coding): Delete.
21471 (Fset_terminal_coding_system_internal)
21472 (Fset_keyboard_coding_system_internal)
21473 (Fkeyboard_coding_system)
21474 (Fterminal_coding_system): Add a terminal parameter.
21475 Get terminal_coding from the terminal.
21476 (init_coding_once): Don't call setup_coding_system here.
21477
21478 * dispextern.h (set_scroll_region, turn_off_insert)
21479 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21480 (tty_clear_end_of_line, tty_setup_colors)
21481 (delete_tty, updating_frame)
21482 (produce_special_glyphs, produce_glyphs, write_glyphs)
21483 (insert_glyphs): Remove.
21484 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21485 (tty_turn_off_highlight, get_tty_size): Add declaration.
21486 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21487
21488 * frame.h (enum output_method): Add output_initial.
21489 (struct x_output): Delete.
21490 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21491 Access foreground_pixel and background_pixel directly from the frame.
21492 (tty_display): Delete.
21493 (struct frame): Add buried_buffer_list, foreground_pixel,
21494 background_pixel and terminal. Delete kboard.
21495 (union output_data): Add tty.
21496 (FRAME_KBOARD): Get the kboard from the terminal.
21497 (FRAME_INITIAL_P): New macro.
21498 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21499 (Qterm_environment_variable, Qdisplay_environment_variable)
21500 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21501 New declarations.
21502
21503 * termchar.h (tty_output, tty_display_info): New structures.
21504 (tty_list): Declare.
21505 (FRAME_TTY, CURTTY): New macros.
21506 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21507 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21508 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21509 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21510
21511 * callproc.c: Include frame.h and termhooks.h, for terminal
21512 parameters.
21513 (add_env): New function.
21514 (child_setup): Use it.
21515 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21516 (getenv_internal): Fix get_terminal_param call.
21517 (Fgetenv_internal, egetenv): Update doc.
21518 (syms_of_callproc): Initialize Vprocess_environment to nil.
21519 Register and initialize them. Remove obsolete defvars. Update doc
21520 strings.
21521 (child_setup): Handle Vlocal_environment_variables.
21522 (getenv_internal): Add terminal parameter.
21523 Handle Vlocal_environment_variables.
21524 (Fgetenv_internal): Add terminal parameter.
21525 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21526 environment in a frame (not terminal) parameter. Update doc strings.
21527 (set_initial_environment): Rename from set_global_environment.
21528 Store Emacs environment in initial frame parameter.
21529
21530 * xdisp.c (redisplay_internal): Update references to
21531 `previous_terminal_frame'.
21532 (display_mode_line, Fformat_mode_line): Replace calls to
21533 `push_frame_kboard' with `push_kboard'.
21534 (get_glyph_string_clip_rects): Add extra parentheses and
21535 braces to prevent compiler warnings.
21536 (calc_pixel_width_or_height): Add xassert to check that the
21537 frame is alive. Don't call `lookup_image' on a termcap frame.
21538 (message2_nolog, message3_nolog, redisplay_internal)
21539 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21540 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21541 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21542 (Fx_display_pixel_width, Fx_display_pixel_height)
21543 (Fx_display_planes, Fx_display_color_cells)
21544 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21545 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21546 (Fx_display_backing_store, Fx_display_visual_class)
21547 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21548 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21549
21550 * xfns.c (x_set_foreground_color x_set_background_color)
21551 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21552 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21553 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21554 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21555 terminal that is being deleted.
21556 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21557 frame parameter, and make sure it overrides any user-supplied setting.
21558 (Fx_close_connection, Fx_synchronize): Unify argument names with
21559 the rest of the DEFUNs.
21560
21561 * dispnew.c (Fsend_string_to_terminal): Update call to
21562 `get_tty_terminal'.
21563 (Fredraw_frame, Fsend_string_to_terminal)
21564 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21565 FRAME_TERMCAP_P and FRAME_TTY.
21566 (window_change_signal): Don't believe width/height values that are
21567 impossibly small.
21568 (Vinitial_window_system): Rename from Vwindow_system.
21569 (termscript, Wcm, rif): Delete.
21570
21571 * termhooks.h (struct terminal): New struct containing the
21572 previously global text display hooks and new members NAME,
21573 DELETED and PARAM_ALIST.
21574 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21575 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21576 (FRAME_RIF): New macros.
21577 (get_terminal_param, get_device): New declarations.
21578 (termscript): Delete declaration.
21579
21580 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21581 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21582 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21583 FRAME_FOREGROUND_PIXEL.
21584 (x_fully_uncatch_errors): Disable definition.
21585 (x_scroll_bar_expose): Fix reference to foreground pixel.
21586 (XTread_socket): Disable loop on all X displays.
21587 (x_delete_terminal): Don't set terminal->deleted and let
21588 delete_terminal delete the frames on the terminal.
21589 (x_delete_display): Doc update to reflect changes in
21590 delete_terminal.
21591 (x_display_info) <terminal>: Move member earlier in the struct.
21592 (deleting_tty): Remove old variable.
21593 (Fsuspend_tty): Call clear_tty_hooks.
21594 (Fresume_tty, init_tty): Call set_tty_hooks.
21595 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21596 errors on X frames.
21597 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21598 (handle_one_xevent): Initialize `f' to NULL.
21599 (x_delete_terminal, x_create_terminal): New functions.
21600 (XTset_terminal_modes, XTreset_terminal_modes)
21601 (XTread_socket, x_connection_closed, x_term_init)
21602 (x_term_init, x_delete_display): Add terminal parameter.
21603 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21604 X connections.
21605
21606 * frame.c: Include termchar.h.
21607 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21608 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21609 (Qdisplay_environment_variable): New vars.
21610 (Fframep): Deal with output_initial.
21611 (Fframe-live-p): Doc fix.
21612 (Fwindow-system): New function.
21613 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21614 (make_terminal_frame): Don't create frames on a terminal that is
21615 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21616 (store_frame_param): Check for found_for_frame before calling XFRAME.
21617 (Fmake_terminal_frame): Handle NULL tty names correctly.
21618 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21619 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21620 frames to refer to a deleted frame in their 'environment parameter.
21621 (Fframe_with_environment): New function.
21622 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21623 (get_future_frame_param): New function.
21624 (Fmake_terminal_frame): Use it.
21625 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21626
21627 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21628 * sysdep.c (reset_sys_modes): Update for renames.
21629
21630 * keyboard.c (tty_read_avail_input): New function.
21631 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21632 (syms_of_keyboard): Defsubr them.
21633 (Fset_input_meta_mode, Fset_quit_char): New functions.
21634 (Fset_input_mode): Split to above functions.
21635 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21636 parameter. Use it in call to `read_char'.
21637 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21638 Set wrong_kboard_jmpbuf correctly in recursive calls.
21639 Use current_kboard to access Vkeyboard_translate_table.
21640 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21641 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21642 Update longjmp invocations. Remember the original current_kboard,
21643 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21644 changes it. Comment out unnecessary calls to
21645 `record_single_kboard_state' and `any_kboard_state'.
21646 Update recursive calls.
21647 (wrong_kboard_jmpbuf): Remove global variable.
21648 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21649 Handle deleted interrupted_kboards correctly; that is a legal
21650 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21651 and read_char calls. Abort if interrupted_kboard died in read_char.
21652 (any_kboard_state, single_kboard_state)
21653 (push_frame_kboard): Remove function.
21654 (pop_kboard): Switch out of single_kboard mode if the kboard has
21655 been deleted. Remove unused variable. Help debugging by not
21656 changing current_kboard unnecessarily. Set current_kboard to the
21657 kboard of the selected frame when the stored kboard object has
21658 been deleted before pop_kboard.
21659 (temporarily_switch_to_single_kboard): Change first parameter to a
21660 frame pointer. Throw an error when caller wants to change kboards
21661 while in single_kboard mode. Don't push_kboard if we weren't in
21662 single kboard state. Don't pop_kboard if we popped into any
21663 kboard state.
21664 (restore_kboard_configuration): Abort if pop_kboard changed the
21665 kboard in single_kboard mode. Call pop_kboard only after setting
21666 up single_kboard mode.
21667 (Frecursive_edit): Switch to single_kboard mode only in nested
21668 command loops.
21669 (cmd_error, command_loop, command_loop_1, timer_check):
21670 Comment out unnecessary call to `any_kboard_state' and
21671 `record_single_kboard_state'.
21672 (delete_kboard): Exit single_kboard mode if we have just deleted
21673 that kboard. Use FRAME_KBOARD.
21674 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21675 `fatal_error_signal'.
21676 (record_single_kboard_state): Don't push_kboard if we weren't in
21677 single kboard state. Don't pop_kboard if we popped into any
21678 kboard state.
21679 (push_frame_kboard): Rename to push_kboard.
21680 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21681 (read_avail_input): Read input from all terminals.
21682 (mark_kboards): Also mark Vkeyboard_translate_table.
21683 (kbd_buffer_store_event_hold): Simplify condition.
21684 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21685 (Vkeyboard_translate_table): Move to struct kboard.
21686 (init_kboard): Initialize Vkeyboard_translate_table.
21687 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21688 Vkeyboard_translate_table. Update doc strings. Update docs of
21689 local-function-key-map and function-key-map.
21690
21691 * terminal.c: New file.
21692
21693 * term.c: Include errno.h.
21694 (Vring_bell_function, device_list, initial_device)
21695 (next_device_id, ring_bell, update_begin, update_end)
21696 (set_terminal_window, cursor_to, raw_cursor_to)
21697 (clear_to_end, clear_frame, clear_end_of_line)
21698 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21699 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21700 (syms_of_term): Move their initialization to terminal.c.
21701 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21702 (Ftty_display_color_cells)
21703 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21704 (clear_tty_hooks, set_tty_hooks)
21705 (init_tty, maybe_fatal): New functions.
21706 (Ftty_type): Return nil if terminal is not on a tty instead of
21707 throwing an error. Doc update.
21708 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21709 Doc update. Initialize new subrs and variables.
21710 (delete_tty): Use terminal->deleted.
21711 (tty_set_terminal_modes): Rename from set_terminal_modes.
21712 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21713 (set_scroll_region): Rename to `tty_set_scroll_region'.
21714 (turn_on_insert): Rename to `tty_turn_on_insert'.
21715 (turn_off_insert): Rename to `tty_turn_off_insert'.
21716 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21717 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21718 (toggle_highligh): Rename to `tty_toggle_highlight'.
21719 (background_highlight): Rename to `tty_background_highlight'.
21720 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21721 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21722 (tty_set_scroll_region, tty_background_highlight)
21723 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21724 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21725 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21726 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21727 Add static modifier.
21728 (tty_reset_terminal_modes, tty_set_terminal_window)
21729 (tty_set_scroll_region, tty_background_highlight)
21730 (tty_highlight_if_desired, tty_cursor_to)
21731 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21732 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21733 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21734 renames.
21735
217362007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21737
21738 * keyboard.c: Qrtl is new.
21739 (parse_tool_bar_item): Handle :rtl keyword.
21740 (syms_of_keyboard): Intern :rtl keyword.
21741
21742 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21743
21744 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21745 so no Lisp code is executed.
21746 (file_for_image, find_rtl_image): New functions.
21747 (xg_get_image_for_pixmap): Use file_for_image.
21748 (update_frame_tool_bar): If direction is RTL, use RTL image if
21749 defined. Use Gtk stock images if defined.
21750
217512007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21752
21753 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21754 for nonexistent or zero-width glyph in composition glyph.
21755
217562007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21759
21760 * xdisp.c (Finvisible_p): New function.
21761 (syms_of_xdisp): defsubr it.
21762
217632007-08-24 Juanma Barranquero <lekktu@gmail.com>
21764
21765 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21766 Doc fixes.
21767
217682007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21769
21770 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21771
217722007-08-24 Martin Rudalics <rudalics@gmx.at>
21773
21774 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21775 whether decoding has modified buffer contents.
21776
217772007-08-24 Jason Rumney <jasonr@gnu.org>
21778
21779 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21780 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21781 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21782 (init_svg_functions) [HAVE_NTGUI]: New function.
21783 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21784 (svg_load_image): Use them.
21785 (svg_load_image) [HAVE_NTGUI]: Implement background.
21786
217872007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21788
21789 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21790 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21791 (LIBX): Remove @RSVG_LIBS@.
21792 (LIBES): Add $(RSVG_LIBS).
21793
21794 * image.c (svg_load_image): Blend with specified background if exists.
21795 Use IMAGE_BACKGROUND. Add Mac OS Support.
21796
21797 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21798 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21799 Remove macros.
21800 [MAC_OSX] (socket_callback): Do nothing.
21801 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21802 ReceiveNextEvent.
21803 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21804 socket_callback.
21805 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21806
218072007-08-22 Glenn Morris <rgm@gnu.org>
21808
21809 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21810
218112007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21812
21813 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21814
21815 * image.c: Add support for SVG images. Some additional comments
21816 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21817 (svg_image_p): New function to test for SVG image.
21818 (svg_load): New function to load SVG image.
21819 (svg_load_image): New function, helper for svg_load.
21820 (Qsvg): New Lisp_object.
21821 (svg_keyword_index): New enum.
21822 (svg_format): New static `image_keyword' struct.
21823 (svg_type): New static `image_type' struct.
21824 (librsvg/rsvg.h): Include it.
21825
218262007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21827
21828 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21829
218302007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21831
21832 * lread.c (Qold_style_backquotes): New var.
21833 (syms_of_lread): Init and staticpro it.
21834 (load_warn_old_style_backquotes): New fun.
21835 (Fload): Use them to warn about old style backquotes.
21836 (end_of_file_error, Fload): Remove unused vars.
21837
21838 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21839
21840 * lread.c (Vold_style_backquotes): New var.
21841 (syms_of_lread): Init and export it to Elisp.
21842 (read1): Set it when we find an old-style (back)quote.
21843
218442007-08-22 Jason Rumney <jasonr@gnu.org>
21845
21846 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21847
218482007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21849
21850 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21851
218522007-08-19 Richard Stallman <rms@gnu.org>
21853
21854 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21855
218562007-08-19 Andreas Schwab <schwab@suse.de>
21857
21858 * alloc.c (pure): Round PURESIZE up.
21859
218602007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21861
21862 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21863 active frame.
21864
218652007-08-16 Richard Stallman <rms@gnu.org>
21866
21867 * eval.c (Fcommandp): Add parens to clarify.
21868
21869 * minibuf.c (Fall_completions): Use enum for type of table.
21870
21871 * emacs.c (USAGE2): Improve text.
21872
218732007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21874
21875 * term.c (tty_default_color_capabilities): Declare static
21876 variables in file scope, to avoid HPUX compiler problem.
21877
218782007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21879
21880 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21881 to gtk_toolbar_insert.
21882
218832007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21884
21885 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21886
21887 * insdel.c (reset_var_on_error): New fun.
21888 (signal_before_change, signal_after_change):
21889 Use it to reset (after|before)-change-functions to nil in case of error.
21890 Bind inhibit-modification-hooks to t.
21891 Don't bind (after|before)-change-functions to nil while they run.
21892
218932007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21894
21895 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21896 filling pixmap with stippled background.
21897
218982007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21899
21900 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21901 Don't use invisible frame as parent window for repositioning.
21902
219032007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21904
21905 * print.c (new_backquote_output): Rename from old_backquote_output.
21906 (print): Inverse its logic (according to its name) so as to match the
21907 behavior of new_backquote_flag in lread.c.
21908
219092007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21910
21911 * gmalloc.c (posix_memalign): New function.
21912
21913 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21914 ActivateControl/DeactivateControl here.
21915 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21916 frame-notice-user-settings is non-nil.
21917 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21918 for kEventParamFMFontStyle.
21919 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21920 mac_pass_command_to_system and mac_pass_control_to_system here.
21921 (XTread_socket): Call ActivateControl/DeactivateControl here.
21922 (XTread_socket) [TARGET_API_MAC_CARBON]:
21923 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21924 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21925 for window repositioning.
21926
219272007-08-08 Glenn Morris <rgm@gnu.org>
21928
21929 * Replace `iff' in doc-strings and comments.
21930
219312007-08-07 Chong Yidong <cyd@stupidchicken.com>
21932
21933 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21934
219352007-08-07 Martin Rudalics <rudalics@gmx.at>
21936
21937 * fileio.c (Finsert_file_contents): Run format-decode and
21938 after_insert_file_functions on entire buffer when REPLACE is
21939 non-nil and inhibit modification_hooks and point_motion_hooks.
21940 For consistency, run after_insert_file_functions iff something
21941 got inserted. Move signal_after_change and update_compositions
21942 after code running after_insert_file_functions. Make sure that
21943 undo_list doesn't record intermediate steps of the decoding process.
21944
219452007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21946
21947 * emacs.c (main)
21948 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21949 Call malloc_enable_thread on interactive startup.
21950
21951 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21952 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21953 [USE_PTHREAD]: Conditionalize with it.
21954 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21955 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21956 New functions.
21957
219582007-08-06 Chong Yidong <cyd@stupidchicken.com>
21959
21960 * xdisp.c (redisplay_window): When restoring original buffer
21961 position, make sure it is still valid.
21962
21963 * image.c (png_load): Ignore png-supplied background color.
21964
219652007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21966
21967 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21968 Use kCFAbsoluteTimeIntervalSince1970.
21969
21970 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21971 New variable.
21972 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21973 event loop should be quit.
21974 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21975 Quit dialog event loop if quit_dialog_event_loop is set.
21976
21977 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21978 (Selection): New typedef. Use instead of ScrapRef.
21979 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21980 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21981 (mac_clear_selection): Rename from clear_scrap.
21982 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21983 scrap_has_target_type. All uses changed.
21984 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21985 (mac_selection_has_target_p): New functions.
21986 (mac_put_selection_value): Rename from put_scrap_string.
21987 (mac_get_selection_value): Rename from get_scrap_string.
21988 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21989 (put_scrap_private_timestamp, scrap_has_target_type)
21990 (get_scrap_private_timestamp): Remove functions.
21991 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21992 (x_own_selection, x_get_local_selection):
21993 Use mac_valid_selection_value_p.
21994 (x_own_selection): Don't use put_scrap_private_timestamp.
21995 Record OWNERSHIP-INFO into Vselection_alist instead.
21996 (x_get_local_selection): Don't check type if request is local.
21997 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21998 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21999
220002007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22001
22002 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22003 add comment explaining why.
22004
220052007-08-03 Richard Stallman <rms@gnu.org>
22006
22007 * fileio.c (Fvisited_file_modtime): Use make_time.
22008
220092007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22010
22011 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22012 build.
22013
220142007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22015
22016 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22017
220182007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22019
22020 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22021
220222007-07-30 Richard Stallman <rms@gnu.org>
22023
22024 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22025
220262007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22027
22028 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22029
220302007-07-28 Nick Roberts <nickrob@snap.net.nz>
22031
22032 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22033 remote default-directory.
22034
22035 * buffer.c (mode-line-format): Update doc string.
22036
220372007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22038
22039 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22040 scroll bar gap.
22041 (x_scroll_bar_create): Set bar->fringe_extended_p.
22042 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22043 on frame edge. Check fringe background extension. Don't clear
22044 extended fringe background area.
22045
22046 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22047 (w32_fill_area): Enclose multiple statements with do ... while (0).
22048
22049 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22050 Extend fringe background to scroll bar gap.
22051 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22052 Set bar->fringe_extended_p.
22053 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22054 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22055 background extension. Don't clear extended fringe background area.
22056
22057 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22058 New member fringe_extended_p.
22059
220602007-07-25 Glenn Morris <rgm@gnu.org>
22061
22062 * Relicense all FSF files to GPLv3 or later.
22063
22064 * COPYING: Switch to GPLv3.
22065
220662007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22067
22068 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22069
22070 * data.c (Finteractive_form): Check for the presence of an
22071 `interactive-form' symbol property more thoroughly.
22072
22073 * data.c (Finteractive_form): Use an `interactive-form' property if
22074 present, analogous to the function-documentation property.
22075
220762007-07-24 Jason Rumney <jasonr@gnu.org>
22077
22078 * w32fns.c (x_real_positions): Get real position from OS instead of
22079 calculating it.
22080
220812007-07-23 Jason Rumney <jasonr@gnu.org>
22082
22083 * filelock.c (current_lock_owner): Allow for @ sign in username.
22084
220852007-07-22 Nick Roberts <nickrob@snap.net.nz>
22086
22087 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22088 remote default-directory.
22089
22090 * buffer.c (mode-line-format): Describe above case in doc string.
22091
220922007-07-20 Eli Zaretskii <eliz@gnu.org>
22093
22094 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22095 Define if not defined.
22096
220972007-07-18 Jason Rumney <jasonr@gnu.org>
22098
22099 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22100
221012007-07-18 Richard Stallman <rms@gnu.org>
22102
22103 * data.c (Fsetq_default): Doc fix.
22104
22105 * eval.c (Fsetq): Doc fix.
22106
221072007-07-18 Juanma Barranquero <lekktu@gmail.com>
22108
22109 * coding.c (Ffind_operation_coding_system):
22110 * eval.c (For, Fand): Doc fixes.
22111 Reported by Johan Bockgård.
22112
221132007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22114
22115 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22116
22117 * xterm.h: Declare x_ewmh_activate_frame.
22118
22119 * xterm.c (x_ewmh_activate_frame): New function.
22120 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22121
221222007-07-17 Martin Rudalics <rudalics@gmx.at>
22123
22124 * window.c (Fdisplay_buffer): If largest or LRU window is the
22125 only window, split it even if it is not eligible for splitting.
22126 This restores the original behavior broken by the 2007-07-15
22127 change.
22128
221292007-07-17 Glenn Morris <rgm@gnu.org>
22130
22131 * abbrev.c (abbrev_check_chars): New function.
22132 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22133 Call abbrev_check_chars to check abbrev characters are word
22134 constituents. Doc fix.
22135
221362007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22137
22138 * process.c (Fstart_process, Fmake_network_process)
22139 (read_process_output): Fix up last changes.
22140
221412007-07-16 Eli Zaretskii <eliz@gnu.org>
22142
22143 * makefile.w32-in (clean): Don't delete *~.
22144
221452007-07-16 Andreas Schwab <schwab@suse.de>
22146
22147 * window.c (Fdisplay_buffer): Use NILP.
22148 (Fset_window_scroll_bars): Likewise.
22149
221502007-07-15 Martin Rudalics <rudalics@gmx.at>
22151
22152 * window.c (window_min_size_2): New function.
22153 (window_min_size_1, size_window, Fdisplay_buffer)
22154 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22155 windows without mode- or header-lines when window-min-height is
22156 too small.
22157 (size_window): Reset nodelete_p after testing it, following an
22158 earlier note by Kim F. Storm.
22159 (display_buffer): Do not set split_height_threshold to twice the
22160 value of window_min_height to avoid changing the value of a
22161 customizable variable. Rather explicitly check whether the
22162 height of the window that shall be splitted is at least as large
22163 as split_height_threshold.
22164 (Fwindow_full_width_p): New defun.
22165 (syms_of_window): Defsubr it.
22166
22167 * window.h: Add EXFUN for Fwindow_full_width_p.
22168
221692007-07-14 Jason Rumney <jasonr@gnu.org>
22170
22171 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22172
221732007-07-14 Richard Stallman <rms@gnu.org>
22174
22175 * eval.c (maybe_call_debugger): New function.
22176 (find_handler_clause): Use maybe_call_debugger.
22177 Call it when the handler says `debug'.
22178 Eliminate DEBUGGER_VALUE_PTR.
22179 (Fsignal): Eliminate debugger_value.
22180 (Qdebug): New variable.
22181 (syms_of_eval): Initialize it.
22182
221832007-07-14 Juanma Barranquero <lekktu@gmail.com>
22184
22185 * eval.c (Fprogn):
22186 * keyboard.c (Ftrack_mouse):
22187 * print.c (Fwith_output_to_temp_buffer):
22188 * window.c (Fsave_window_excursion): Doc fix.
22189
221902007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22191
22192 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22193
221942007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22195
22196 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22197 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22198 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22199 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22200 Remove unused encoding_carryover.
22201 * process.c: Adjust all functions accordingly.
22202
222032007-07-12 Richard Stallman <rms@gnu.org>
22204
22205 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22206
222072007-07-11 Jason Rumney <jasonr@gnu.org>
22208
22209 * makefile.w32-in (LIBS): Include OLE32.
22210
22211 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22212 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22213
222142007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22215
22216 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22217 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22218 from a Lisp_Object into a bare pointer.
22219 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22220 Adjust the code correspondingly.
22221
22222 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22223
22224 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22225 (term_show_mouse_face): Remove unused var `j'.
22226 (handle_one_term_event): Remove unused vars `i' and `j'.
22227 Don't cast return value of ttyname since it's not necessary.
22228
222292007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22230
22231 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22232 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22233
22234 * fns.c (map_char_table): Use an array of int for `indices' rather than
22235 an array of Lisp_Objects (which are only ever integers anyway).
22236 (Fmap_char_table): Update caller.
22237 * lisp.h: Update prototype.
22238 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22239 * fontset.c (Ffontset_info):
22240 * casetab.c (set_case_table): Update callers.
22241
22242 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22243
22244 * keymap.c (struct accessible_keymaps_data)
22245 (struct where_is_internal_data): New structures.
22246 (accessible_keymaps_1, where_is_internal_1): Use them to change
22247 interface to adhere to the one used by map_keymap.
22248 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22249 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22250
22251 * keymap.h (map_keymap_function_t): More informative prototype.
22252
222532007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22254
22255 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22256 (looking_at_1): Don't change search_regs and last_thing_searched
22257 if `inhibit-changing-match-data' is non-nil.
22258 (string_match_1, search_buffer, set_search_regs): Likewise.
22259 (syms_of_search): Add Lisp level definition for
22260 `inhibit-changing-match-data' and set it to nil.
22261 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22262 start and end of the match, instead of using values in search_regs.
22263
222642007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22265
22266 * minibuf.c (Fcompleting_read): New value `confirm-only'
22267 for `require-match'.
22268
222692007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22270
22271 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22272 part of the 2007-06-27 change to syms_of_fileio.
22273
222742007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22275
22276 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22277 Check WINDOWP before using XWINDOW. Consolidate return statements.
22278
222792007-06-27 Richard Stallman <rms@gnu.org>
22280
22281 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22282
222832007-06-27 Juanma Barranquero <lekktu@gmail.com>
22284
22285 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22286
222872007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22288
22289 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22290 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22291 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22292 (_free_internal, memalign): Use them.
22293 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22294 Initialize to PTHREAD_MUTEX_INITIALIZER.
22295 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22296 (morecore_nolock): Rename from morecore. All uses changed.
22297 Use only nolock versions of internal allocation functions.
22298 (_malloc_internal_nolock, _realloc_internal_nolock)
22299 (_free_internal_nolock): New functions created from
22300 _malloc_internal, _realloc_internal, and _free_internal.
22301 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22302 Copy hook value to automatic variable before its use.
22303 (memalign): Copy hook value to automatic variable before its use.
22304
223052007-06-26 Kenichi Handa <handa@m17n.org>
22306
22307 * coding.c (Ffind_operation_coding_system): Docstring improved.
22308 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22309
223102007-06-25 David Kastrup <dak@gnu.org>
22311
22312 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22313 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22314 cater for additional parameter.
22315
22316 * keymap.h: Adjust number of parameters to `current-active-maps'.
22317
22318 * doc.c (Fsubstitute_command_keys): Adjust call of
22319 `current-active-maps'.
22320
223212007-06-25 David Kastrup <dak@gnu.org>
22322
22323 * callint.c (Fcall_interactively): Make the parsing of interactive
22324 specs somewhat more readable.
22325
223262007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22327
22328 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22329 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22330 if extended background has already been filled.
22331
223322007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22333
22334 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22335 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22336
22337 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22338 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22339 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22340 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22341 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22342 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22343 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22344 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22345 Run timers during dialog popup.
22346 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22347
223482007-06-21 Jason Rumney <jasonr@gnu.org>
22349
22350 * image.c (convert_mono_to_color_image): Swap fore and background.
22351
223522007-06-20 Jason Rumney <jasonr@gnu.org>
22353
22354 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22355 (w32_free_bdf_font): Unmap memory not handle.
22356
223572007-06-20 Sam Steingold <sds@gnu.org>
22358
22359 * gmalloc.c (__morecore): Fix the declaration to comply with the
22360 definition.
22361
223622007-06-20 Juanma Barranquero <lekktu@gmail.com>
22363
22364 * w32term.c (w32_delete_display): Remove leftover declaration.
22365 (w32_define_cursor, w32_initialize): Make static.
22366
22367 * w32.c (_wsa_errlist): Fix typo in error message.
22368 (init_environment): Ignore any environment variable from the
22369 registry having a null value.
22370
223712007-06-20 Glenn Morris <rgm@gnu.org>
22372
22373 * Makefile.in (LIBGIF): Default to -lgif.
22374
223752007-06-17 Jason Rumney <jasonr@gnu.org>
22376
22377 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22378 unicode strings.
22379
223802007-06-16 Juanma Barranquero <lekktu@gmail.com>
22381
22382 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22383 Fix typo in docstring.
22384
223852007-06-16 Eli Zaretskii <eliz@gnu.org>
22386
22387 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22388 and their keybindings.
22389
223902007-06-15 Chong Yidong <cyd@stupidchicken.com>
22391
22392 * composite.c (update_compositions): Fix last fix.
22393
223942007-06-14 Jason Rumney <jasonr@gnu.org>
22395
22396 * w32.c (get_process_times_fn): New function pointer.
22397 (globals_of_w32): Intialize it if present in kernel32.dll.
22398 (w32_get_internal_run_time): New function.
22399
22400 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22401
224022007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22403
22404 * composite.c (update_compositions): Check the validness of
22405 compositions.
22406
224072007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22408
22409 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22410 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22411
22412 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22413 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22414
22415 * macgui.h (USE_MAC_TOOLBAR): New define.
22416
22417 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22418 Return immediately unless popup is activated.
22419
22420 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22421 background to scroll bar gap.
22422 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22423 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22424 scroll bars on frame edge. Check fringe background extension.
22425 Don't clear extended fringe background area.
22426 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22427 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22428 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22429 [USE_MAC_TOOLBAR]: New macros.
22430 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22431 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22432 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22433 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22434 [USE_MAC_TOOLBAR]: New functions.
22435 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22436 manually if previous repositioning has failed.
22437 (mac_handle_keyboard_event): Use precomputed event kind.
22438 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22439 as tool bar item click. Handle mouse movement over tool bar items.
22440
22441 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22442 toolbar_win_gravity.
22443 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22444 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22445 Add externs.
22446
22447 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22448 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22449
224502007-06-14 Chong Yidong <cyd@stupidchicken.com>
22451
22452 * image.c (search_image_cache): Remove unused variable.
22453
224542007-06-13 Chong Yidong <cyd@stupidchicken.com>
22455
22456 * xfns.c, xmenu.c: Link to xaw3d if available.
22457
224582007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22459
22460 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22461 frame_foreground and frame_background.
22462
22463 * image.c (lookup_image): Save frame foreground and background colors.
22464 (search_image_cache): Check if saved and current frame colors match.
22465
224662007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22467
22468 * regex.c (regex_compile): Remove the `regnum' counter.
22469 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22470
224712007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22472
22473 * term.c: Include intervals.h to declare Fget_text_property.
22474
224752007-06-10 Jason Rumney <jasonr@gnu.org>
22476
22477 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22478
224792007-06-08 Juanma Barranquero <lekktu@gmail.com>
22480
22481 * callint.c (Fcall_interactively):
22482 * editfns.c (Fdelete_and_extract_region):
22483 * fileio.c (Fread_file_name):
22484 * fns.c (Fmapconcat):
22485 * keyboard.c (cmd_error_internal):
22486 * keymap.c (Fkey_description):
22487 * lread.c (openp):
22488 * minibuf.c (read_minibuf):
22489 * search.c (wordify):
22490 * sunfns.c (sel_read):
22491 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22492 * xfns.c (x_default_scroll_bar_color_parameter):
22493 * xmenu.c (menu_help_callback):
22494 * xselect.c (Fx_get_atom_name):
22495 * xterm.c (x_term_init): Use empty_unibyte_string.
22496
224972007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22498
22499 * alloc.c (init_strings): Initialize canonical empty strings.
22500 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22501 canonical empty string when the requested size is 0.
22502
22503 * emacs.c (empty_unibyte_string): Rename from empty_string.
22504 (empty_multibyte_string): New canonical empty string.
22505 (syms_of_emacs): Don't initialize empty_string.
22506
22507 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22508 string, if appropriate.
22509 (empty_unibyte_string, empty_multibyte_string): New externs.
22510 (empty_string): Remove extern.
22511
22512 * lread.c (syms_of_lread): Use empty_unibyte_string.
22513
225142007-06-07 Jason Rumney <jasonr@gnu.org>
22515
22516 * s/ms-w32.h: Don't define HAVE_TZNAME.
22517
22518 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22519
225202007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22521
22522 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22523
22524 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22525 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22526
22527 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22528 Don't call next handler.
22529 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22530 Remove argument. Install handler to application.
22531 (set_frame_menubar): Don't change deep_p.
22532 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22533 FRAME_OUTER_TO_INNER_DIFF_Y.
22534 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22535 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22536 [HAVE_DIALOGS]: New macros.
22537 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22538 Use them.
22539 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22540
22541 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22542 init_service_handler. All callers changed. Return OSStatus value.
22543
22544 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22545 All callers changed so as not to call SetPortWindowPort.
22546 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22547 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22548 mac_draw_string_common.
22549 (mac_draw_image_string_qd): Likewise.
22550 (mac_draw_string_common): Use them. Add INLINE.
22551 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22552 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22553 GetGlobalMouse.
22554 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22555 and FRAME_OUTER_TO_INNER_DIFF_Y.
22556 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22557 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22558 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22559 repositioning window to mac_handle_window_event.
22560 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22561 saving window location to mac_handle_window_event
22562 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22563 (install_menu_target_item_handler): Remove argument in extern.
22564 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22565 Also accept command events.
22566 (do_keystroke): New function created from XTread_socket.
22567 (init_command_handler): Remove functions.
22568 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22569 and save window location by kEventWindowShowing and kEventWindowHiding
22570 handlers here. Don't call next handler for window state change and
22571 focus events.
22572 (mac_handle_application_event, mac_handle_keyboard_event)
22573 [TARGET_API_MAC_CARBON]: New functions.
22574 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22575 kEventWindowShowing and kEventWindowHiding events. Move installation
22576 of mouse, font, text input and menu target item handlers to
22577 install_application_handler.
22578 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22579 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22580 New function.
22581 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22582 Register it.
22583 (XTread_socket) [TARGET_API_MAC_CARBON]:
22584 Consolidate SendEventToEventTarget calls.
22585 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22586 Move application activation handler to mac_handle_application_event.
22587 Move keyboard handler to mac_handle_keyboard_event.
22588 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22589 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22590 init_command_handler. Call install_application_handler.
22591
22592 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22593 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22594
225952007-06-07 Glenn Morris <rgm@gnu.org>
22596
22597 * emacs.c (main): Use `emacs-copyright' in --version output.
22598
225992007-06-06 Chong Yidong <cyd@stupidchicken.com>
22600
22601 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22602
226032007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22604
22605 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22606
22607 * macgui.h: Replace WindowPtr with WindowRef.
22608
22609 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22610 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22611 Replace ControlHandle with ControlRef.
22612 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22613
22614 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22615 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22616 Replace ControlHandle with ControlRef.
22617 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22618 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22619
22620 * macterm.h (struct scroll_bar): Rename member control_handle_low
22621 and control_handle_high to control_ref_low and control_ref_high.
22622 All uses changed.
22623 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22624 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22625 respectively. All uses changed.
22626 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22627 (install_window_handler, remove_window_handler): Replace WindowPtr
22628 with WindowRef in externs.
22629
226302007-06-05 Juanma Barranquero <lekktu@gmail.com>
22631
22632 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22633
226342007-06-03 Nick Roberts <nickrob@snap.net.nz>
22635
22636 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22637
22638 * frame.c (Fmouse_position, Fmouse_pixel_position):
22639 Condition on HAVE_GPM too.
22640
22641 * term.c (term_mouse_highlight): Remove unused variables.
22642 (Fterm_open_connection): Set gpm_zerobased to 1.
22643 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22644 Use zero based co-ordinates.
22645 (handle_one_term_event): Report a drag as mouse movement too.
22646
22647 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22648
226492007-06-03 Chong Yidong <cyd@stupidchicken.com>
22650
22651 * image.c (search_image_cache): New function. Require background
22652 color match if background color is unspecified in the image spec.
22653 (uncache_image, lookup_image): Use it.
22654
226552007-06-01 Juanma Barranquero <lekktu@gmail.com>
22656
22657 * window.c (Fshrink_window): Reflow docstring.
22658
226592007-06-02 Chong Yidong <cyd@stupidchicken.com>
22660
22661 * Version 22.1 released.
22662
226632007-06-01 Richard Stallman <rms@gnu.org>
22664
22665 * xfns.c (x_encode_text): Add GCPRO.
22666
226672007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22668
22669 * xfns.c (x_set_name_internal): Save encoded name before
22670 x_encode_text in case string data is relocated.
22671
226722007-05-31 Richard Stallman <rms@gnu.org>
22673
22674 * buffer.c (syms_of_buffer): Doc fix.
22675
226762007-05-30 Nick Roberts <nickrob@snap.net.nz>
22677
22678 * sysdep.c (init_sys_modes): Add rather than replace with
22679 O_NONBLOCK.
22680
22681 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22682 term_mouse_moveto.
22683
22684 * termhooks.h (term_mouse_moveto): New extern.
22685
22686 * term.c (mouse_face_window): Rename...
22687 (Qmouse_face_window): ...to this.
22688 (term_show_mouse_face, term_clear_mouse_face)
22689 (term_mouse_highlight): Use Qmouse_face_window.
22690 (term_mouse_moveto): New function.
22691 (term_mouse_position): Make it work.
22692 (syms_of_term): Uncomment assignment to mouse_position_hook.
22693 Staticpro Qmouse_face_window.
22694
226952007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22696
22697 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22698 around current_column call.
22699
227002007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22701
22702 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22703 * xdisp.c (next_element_from_buffer):
22704 * window.c (delete_window):
22705 * term.c (term_mouse_highlight):
22706 * msdos.c (getdefdir):
22707 * macterm.c (mac_create_bitmap_from_bitmap_data)
22708 (init_font_name_table):
22709 * fns.c (Fsxhash):
22710 * data.c (Fmake_local_variable):
22711 * ccl.c (ccl_driver): Likewise.
22712
227132007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22714
22715 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22716 Call mac_wakeup_from_rne on window size change.
22717
227182007-05-25 Chong Yidong <cyd@stupidchicken.com>
22719
22720 * image.c (uncache_image): Fix typo.
22721
227222007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22723
22724 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22725
227262007-05-22 Richard Stallman <rms@gnu.org>
22727
22728 * xterm.c (x_connection_closed): Remove NO_RETURN.
22729
227302007-05-22 Martin Rudalics <rudalics@gmx.at>
22731
22732 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22733
227342007-05-21 Chong Yidong <cyd@stupidchicken.com>
22735
22736 * image.c (uncache_image): New function.
22737 (Fimage_refresh): New function.
22738
227392007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22740
22741 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22742
227432007-05-20 Nick Roberts <nickrob@snap.net.nz>
22744
22745 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22746 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22747
227482007-05-20 Nick Roberts <nickrob@snap.net.nz>
22749
22750 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22751 conditional on [HAVE_GPM_H].
22752
227532007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22754
22755 * syntax.c (skip_chars): Update syntax-table only after we checked that
22756 the new location is valid.
22757
227582007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22759
22760 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22761 mac_get_window_bounds.
22762
227632007-05-20 Nick Roberts <nickrob@snap.net.nz>
22764
22765 * Makefile.in (LIBGPM): Allow it to be set from configure.
22766 If set then link Emacs with it.
22767
22768 * config.in: Regenerate.
22769
22770 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22771 New externs.
22772
22773 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22774 Include gpm.h.
22775 (handle_one_term_event, term_gpm): New externs.
22776
22777 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22778 and allow it to be interrupted by SIGIO.
22779
22780 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22781 (wait_reading_process_output): Wait on gpm_fd too.
22782 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22783 (add_gpm_wait_descriptor_called_flag): New variable.
22784 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22785
22786 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22787 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22788 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22789 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22790 (make_lispy_event): Add case GPM_CLICK_EVENT.
22791 (read_avail_input): Handle mouse input.
22792
22793 * term.c (write_glyphs_with_face): New function.
22794 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22795 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22796 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22797 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22798 (last_mouse_x, last_mouse_y): New variables.
22799 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22800 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22801 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22802 (Fterm_close_connection): New functions.
22803 (term_init): Initialise mouse_face_window.
22804
228052007-05-19 Chong Yidong <cyd@stupidchicken.com>
22806
22807 * xdisp.c (redisplay_window): If first window line is a
22808 continuation line, recompute the new window start instead of
22809 recentering.
22810
228112007-05-18 Glenn Morris <rgm@gnu.org>
22812
22813 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22814 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22815
228162007-05-17 Glenn Morris <rgm@gnu.org>
22817
22818 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22819
228202007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22821
22822 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22823 dead key repeat and up events.
22824
228252007-05-14 Chong Yidong <cyd@stupidchicken.com>
22826
22827 * image.c (pbm_load): Check image size for monochrome pbm.
22828
228292007-05-13 Chong Yidong <cyd@stupidchicken.com>
22830
22831 * xterm.c (XTread_socket): Revert last change.
22832
228332007-05-12 Chong Yidong <cyd@stupidchicken.com>
22834
22835 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22836
22837 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22838
228392007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22840
22841 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22842 mixup (YAILOM).
22843
228442007-05-07 Andreas Schwab <schwab@suse.de>
22845
22846 * keymap.c (Flookup_key): Fix typo in last change.
22847
228482007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22849
22850 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22851 mapping for unibyte strings.
22852
228532007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22854
22855 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22856 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22857
228582007-04-29 Richard Stallman <rms@gnu.org>
22859
22860 * insdel.c (replace_range): For undo, record insertion first.
22861
228622007-04-29 Andreas Schwab <schwab@suse.de>
22863
22864 * lisp.h (VECSIZE): Use OFFSETOF.
22865
228662007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22867
22868 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22869 disabled lines.
22870
228712007-04-28 Richard Stallman <rms@gnu.org>
22872
22873 * lread.c (read_escape): In a string, \s is always space.
22874
228752007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22876
22877 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22878
22879 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22880 submenu for menu bar items.
22881
22882See ChangeLog.10 for earlier changes.
22883
22884;; Local Variables:
22885;; coding: utf-8
22886;; add-log-time-zone-rule: t
aac0c6e3
MR
22887;; End:
22888
e3eb1dae 22889 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22890
22891 This file is part of GNU Emacs.
22892
22893 GNU Emacs is free software: you can redistribute it and/or modify
22894 it under the terms of the GNU General Public License as published by
22895 the Free Software Foundation, either version 3 of the License, or
22896 (at your option) any later version.
22897
22898 GNU Emacs is distributed in the hope that it will be useful,
22899 but WITHOUT ANY WARRANTY; without even the implied warranty of
22900 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22901 GNU General Public License for more details.
22902
22903 You should have received a copy of the GNU General Public License
22904 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22905
22906;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40